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


Hello Felix,

On Thu, Jul 29, 2004 at 11:58:40AM -0700, Felix Lee wrote:
> how about just that.  something like "asm 30" that will print all
> the machine instructions that correspond to line 30 of the
> source.

Do you mean something like the following?

(gdb) info line 223
Line 223 of "main.c" starts at address 0x804e384 <main+64>
   and ends at 0x804e3a0 <main+92>.
(gdb) disas 0x804e384 0x804e3a0

With kind regards,
Baurjan.


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