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: gdb frames


Hi All,
          I am trying to undertsand the working of gdb, but i get lost . Plz
can one tell me once a "NORMAL_STACK" is created by get_frame_language()
with level -1 . Who and where is the stack for actuall main() is created,
none of my functions for extra_info, chain are being called, niether is my
PC set?. How does this all works?

You mean?


(gdb) set debug frame 1
(gdb) break main
(gdb) run

The unwinder doesn't come into play until a stack operation such as:

(gdb) up

What is the normal flow for stacks?


Secondly: For new target should we not use DEPRECATED function?

Yes (that's why they are deprecated).


Andrew



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