This is the mail archive of the gdb@sourceware.org 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: gdb / dbx / pstack question - getting function argument addresses from stack


> Thanks for the reply! It's starting to make sense... Would you mind
> elaborating on "issue a series of print commands"? I'm not sure of
> what exactly I need to print...

You want to print the value of the input registers. They should be
accessible through the $i0, $i1, ... convenience variables. In other
words:

    (gdb) print /x $i0
    $1 = 0xfeedface

(for instance). While going from frame to frame, just print the value
of all input register.  Your script can then parse the output, collect
the information you're looking for, and then produce the output you
want.

-- 
Joel


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