Unix Programming - GDB and stepping over stl source code

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2005 > GDB and stepping over stl source code





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author GDB and stepping over stl source code
j_mckitrick@bigfoot.com

2005-02-24, 5:58 pm


I love stl::string(s). They work very well for many application-level
projects. But I hate how GDB steps into their code. Is there a way I
can skip this inline code that is part of stl strings? Unfortunately,
'next' doesn't help, since much of the stl code is 'inline.'

jonathon

Paul Pluzhnikov

2005-02-24, 5:58 pm

j_mckitrick@bigfoot.com writes:

> But I hate how GDB steps into their code.


Platform? g++ version? gdb version? compilation flags?

> Unfortunately,
> 'next' doesn't help, since much of the stl code is 'inline.'


It *should* help (inline has nothing to do with this, unless you
compile with '-g -O2'), but IIRC some combinations of gcc/gdb/OS
in fact do not work correctly.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com