This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] Fix PR 29609, being able to set a breakpoint on goto/continue/break


On 4/30/07, Daniel Jacobowitz <drow@false.org> wrote:
Stop me if I misunderstand.  But wasn't this bug originally about -O0?
Assuming so, Tristan is correct and his fix of moving the goto into
its own basic block is probably necessary in addition to fixing up the
locus.

It really is not necessary. You can have a location for the if-statement and another location for the goto-statement, not even if the goto_expr is not there, and not even at -O0.

 Please make sure GDB does not appear to step onto the break at
-O0 when the condition is false.

Yeah, this is what I'm currently trying to figure out.


Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]