* Excluding C++ Library Code
@ 2006-01-18 20:17 Eric Lemings
2006-01-18 20:18 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Eric Lemings @ 2006-01-18 20:17 UTC (permalink / raw)
To: 'gdb@sources.redhat.com'
Greetings,
This should probably be listed in a FAQ somewhere but here goes. How do
I prevent GDB from stepping through/stopping in code (template functions,
inline functions, etc.) contained in standard C++ library header files?
Thanks,
Eric.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Excluding C++ Library Code
2006-01-18 20:17 Excluding C++ Library Code Eric Lemings
@ 2006-01-18 20:18 ` Daniel Jacobowitz
2006-01-18 22:24 ` Dave Korn
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-01-18 20:18 UTC (permalink / raw)
To: Eric Lemings; +Cc: 'gdb@sources.redhat.com'
On Wed, Jan 18, 2006 at 01:08:55PM -0700, Eric Lemings wrote:
> Greetings,
>
> This should probably be listed in a FAQ somewhere but here goes. How do
> I prevent GDB from stepping through/stopping in code (template functions,
> inline functions, etc.) contained in standard C++ library header files?
GDB doesn't support this, unfortunately.
Right now the infrastructure for it isn't there, but someday it will
be. But how would you indicate to the debugger what constituted
"uninteresting" headers?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Excluding C++ Library Code
2006-01-18 20:18 ` Daniel Jacobowitz
@ 2006-01-18 22:24 ` Dave Korn
0 siblings, 0 replies; 6+ messages in thread
From: Dave Korn @ 2006-01-18 22:24 UTC (permalink / raw)
To: 'Daniel Jacobowitz', 'Eric Lemings'; +Cc: gdb
Daniel Jacobowitz wrote:
> On Wed, Jan 18, 2006 at 01:08:55PM -0700, Eric Lemings wrote:
>> Greetings,
>>
>> This should probably be listed in a FAQ somewhere but here goes. How do
>> I prevent GDB from stepping through/stopping in code (template functions,
>> inline functions, etc.) contained in standard C++ library header files?
>
> GDB doesn't support this, unfortunately.
>
> Right now the infrastructure for it isn't there, but someday it will
> be. But how would you indicate to the debugger what constituted
> "uninteresting" headers?
I'd get the compiler (which already knows about system headers vs. user
headers) to pass down the information in a custom DIE myself. But then again,
I haven't thought about it in great depth!
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Excluding C++ Library Code
@ 2006-01-18 20:39 Eric Lemings
2006-01-19 3:54 ` Mike Stump
0 siblings, 1 reply; 6+ messages in thread
From: Eric Lemings @ 2006-01-18 20:39 UTC (permalink / raw)
To: 'Daniel Jacobowitz'
Cc: 'gdb@sources.redhat.com', 'gcc@gcc.gnu.org'
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@false.org]
> Sent: Wednesday, January 18, 2006 1:17 PM
> To: Eric Lemings
> Cc: 'gdb@sources.redhat.com'
> Subject: Re: Excluding C++ Library Code
>
>
> On Wed, Jan 18, 2006 at 01:08:55PM -0700, Eric Lemings wrote:
> > Greetings,
> >
> > This should probably be listed in a FAQ somewhere but here
> goes. How
> > do I prevent GDB from stepping through/stopping in code (template
> > functions, inline functions, etc.) contained in standard
> C++ library
> > header files?
>
> GDB doesn't support this, unfortunately.
>
> Right now the infrastructure for it isn't there, but someday
> it will be. But how would you indicate to the debugger what
> constituted "uninteresting" headers?
I figure the responsibility for this would probably reside more
with the compiler than the debugger (e.g. -gnostdinc++) but I
as hoping it could be done already.
Eric.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Excluding C++ Library Code
2006-01-18 20:39 Eric Lemings
@ 2006-01-19 3:54 ` Mike Stump
2006-01-19 4:31 ` 'Daniel Jacobowitz'
0 siblings, 1 reply; 6+ messages in thread
From: Mike Stump @ 2006-01-19 3:54 UTC (permalink / raw)
To: Eric Lemings
Cc: 'Daniel Jacobowitz', 'gdb@sources.redhat.com',
'gcc@gcc.gnu.org'
On Jan 18, 2006, at 12:22 PM, Eric Lemings wrote:
>> Right now the infrastructure for it isn't there, but someday
>> it will be. But how would you indicate to the debugger what
>> constituted "uninteresting" headers?
>
> I figure the responsibility for this would probably reside more
> with the compiler than the debugger (e.g. -gnostdinc++) but I
> as hoping it could be done already.
Either, we can mark the debug information with `system header', or
gdb can strncmp ("/usr/include") and a few others... :-) gcc has a
slightly easier time know when a header is a system header, but a
project GUI has a easier time having check boxes for components you
want to stop in and which ones you don't want to stop in, with system
headers being just one of the boxes.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Excluding C++ Library Code
2006-01-19 3:54 ` Mike Stump
@ 2006-01-19 4:31 ` 'Daniel Jacobowitz'
0 siblings, 0 replies; 6+ messages in thread
From: 'Daniel Jacobowitz' @ 2006-01-19 4:31 UTC (permalink / raw)
To: Mike Stump
Cc: Eric Lemings, 'gdb@sources.redhat.com',
'gcc@gcc.gnu.org'
On Wed, Jan 18, 2006 at 07:25:58PM -0800, Mike Stump wrote:
> On Jan 18, 2006, at 12:22 PM, Eric Lemings wrote:
> >>Right now the infrastructure for it isn't there, but someday
> >>it will be. But how would you indicate to the debugger what
> >>constituted "uninteresting" headers?
> >
> >I figure the responsibility for this would probably reside more
> >with the compiler than the debugger (e.g. -gnostdinc++) but I
> >as hoping it could be done already.
>
> Either, we can mark the debug information with `system header', or
> gdb can strncmp ("/usr/include") and a few others... :-) gcc has a
> slightly easier time know when a header is a system header, but a
> project GUI has a easier time having check boxes for components you
> want to stop in and which ones you don't want to stop in, with system
> headers being just one of the boxes.
Right - my point was only that I've thought about it long enough to
know it needed some more thinking about :-)
I definitely agree that the debugger should be doing it, not the
compiler. It's not appreciably harder here and it makes more sense to
allow the user to just toggle a switch to suddenly step into libstdc++.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-01-19 3:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-18 20:17 Excluding C++ Library Code Eric Lemings
2006-01-18 20:18 ` Daniel Jacobowitz
2006-01-18 22:24 ` Dave Korn
2006-01-18 20:39 Eric Lemings
2006-01-19 3:54 ` Mike Stump
2006-01-19 4:31 ` 'Daniel Jacobowitz'
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox