This is the mail archive of the 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]
Other format: [Raw text]

Re: [PATCH]: Updated patch to output dwarf2 namespace debug info

On Dec 1, 2003, at 3:32 PM, Jason Merrill wrote:

On Mon, 1 Dec 2003 15:14:37 -0500, Daniel Berlin <> wrote:

Then what does the debug info look like?

Right now, no idea.
I just want to make sure
that, in a mythical version of GDB that can actually deal with inlined
functions, 'break N::funcToInline' will still work.

If it worked before, it should work now.
The whole point of the DECL_ABSTRACT part is to make sure we still generate
inlined subroutines in the context in which they are inlined, instead of
the namespace in which they are coming from.

Not exactly. We set DECL_ABSTRACT while we're generating the abstract instance of the debug info for the function. This should have the same context as if it were a non-inline function.
In that case, i'll have to remove the class_or_namespace_scope_p part (otherwise it causes aborts if you remove the DECL_ABSTRACT check) for now.
This may decrease compatibility, but it works, and puts the debug info in the right place.

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