This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: [PATCH] Add tree and rtl accessor functions for debuggers


At 3:10 PM -0700 5/10/01, Mark Mitchell wrote:

>It would be even better to teach GDB to do this.
>
>It shouldn't be a very big project given that DWARF2 can conveniently
>represent macro definitions and that cpplib makes expanding macros a
>snap.

I guess that's ok, if you are using DWARF2.  But we're not.

On the other hand (thinking out loud), if DWARF2 is not a 
requirement, I suppose gdb could be hacked to allow a new path 
command of headers (much like dir), and have gdb expression 
processing handle undefined function id references to see if they are 
defined as macros in the specified headers, expand it, and use the 
result.  I am not sure how hard that would be to do and it does have 
the down side of not being able to handle conditionally defined 
macros.

Ira


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