This is the mail archive of the gdb@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]

Re: breaking at for-loop test line


Daniel Jacobowitz <drow@false.org>:
> I've been thinking for a while about a better interface for this, but I
> haven't come up with one yet.
> 
> In the mean time, you can take a look at the disassembly, figure out
> where the condition is, and set a breakpoint there using break *<addr>.
> GDB could also make it much easier to figure out where the condition is
> than it does now...

how about just that.  something like "asm 30" that will print all
the machine instructions that correspond to line 30 of the
source.  in a gui, this would be something like, selecting a
source line would highlight the corresponding lines in a
disassembly window.  or in a mixed source/asm window, an option
to choose whether it's ordered by source or by asm.
--


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