This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This doesn't work. It hightlights why the edge condition can't be cleanly resolved. You can't rely on ``func_start == loc'' as an identifier of this special case. The prolog analysis / skip will just make the behavior confusing / conunter intitive and the doco really messy. Look at the heated debate that occures with ``break foo'' vs ``break *foo'' vs ``break lineof(foo)''.Michael Snyder formulates:1) Use find_pc_partial_function to determine bounds and distinguish between in-bounds and out-of-bounds locations. 2) For func_start > loc >= func_end, use a frame-relative bp. 3) For func_start == loc or loc < func_start or loc > func_end, use a frameless bp.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |