ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use / handling of debug information for structures


From: Roul Oldenburger
Subject: Re: use / handling of debug information for structures
Date: Mon, 25 Aug 2003 09:00:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Thanks for this info,

so DDD more or less 'only' acts as a GUI set on top of a debugger...

someone from the gdb maillist already told me gdb gets the information I am looking for from the .stabstr section of the debug information part in the executable. This seems to be the same way objdump does it.

Thanks for the help
Roul

address@hidden wrote:
Hello everyone,

I am not sure to put my question in here but someone knowing the internals of ddd might be able to answer it.

ddd is able to display instances of structure types and their components .... it also displays the addresses/offsets, subtypes and of course their values.

My question is, how does ddd retrieve this information?

I am trying to use the debug information gcc can add to executables to reconstruct trees of structures. Using 'objdump --stabs' delivers enough information to do this, but I will get strings and like to know if this information is held in another form ... probably a ready to use linked list of types and subtypes??


DDD works by sending commands to the inferior debugger (e.g. gdb), and
reading it's output. To see what happens behind the scenes, try using
    ddd --trace

Now, even when the mouse pointer passes over a piece of text in the
source window, you will see the commands issued and the results returned.


Andrew.

---------------------------------------------
This message was sent using M-Web Airmail - JUST LIKE THAT
M-Web: S.A.'s most trusted and reliable Internet Service Provider.
http://airmail.mweb.co.za/




_______________________________________________
Ddd mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/ddd

--
Mit freundlichen Grüßen

^-----------------------------------------------------------+
| Rheinmetall Defence Electronics GmbH     Brüggeweg 54     |
|                                          Postbox 44 84 44 |
| Roul Oldenburger                         28284 Bremen     |
| SPMU                                     Germany          |
| Software Development                                      |
|                                                           |
|      Phone: +49 421 457 2410                              |
|      Email: address@hidden           |
|      Web:   http://www.rheinmetall.com/                   |
|             http://www.rheinmetall-de.com/                |
*-----------------------------------------------------------/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]