Don't step into STL

View: New views
4 Messages — Rating Filter:   Alert me  

Don't step into STL

by daviddoria :: Rate this Message:

| View Threaded | Show Only this Message

Is there anyway to set the debugger so when I "step into", it doesn't get into crazy stuff (ie. vector.h) that I haven't written? Ie. only step into until a step would step outside of files in my project?

Thanks,

Dave

Re: Don't step into STL

by Nick Roberts :: Rate this Message:

| View Threaded | Show Only this Message

 > Is there anyway to set the debugger so when I "step into", it doesn't get
 > into crazy stuff (ie. vector.h) that I haven't written? Ie. only step into
 > until a step would step outside of files in my project?

I don't think so but it would be neat if GDB could be made to step into a
function when that line has debug information was available and over when it
wasn't.

--
Nick                                           http://www.inet.net.nz/~nickrob

Re: Don't step into STL

by Paul Pluzhnikov-4 :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, Jan 24, 2009 at 1:28 PM, Nick Roberts <nickrob@...> wrote:
>  > Is there anyway to set the debugger so when I "step into", it doesn't get
>  > into crazy stuff (ie. vector.h) that I haven't written?

How could GDB know what you have, and what you haven't written yet?

>> Ie. only step into
>> until a step would step outside of files in my project?

By the same token, GDB has no idea what constitutes your project,
and what doesn't.

> I don't think so but it would be neat if GDB could be made to step into a
> function when that line has debug information was available and over when it
> wasn't.

With STL templates, if your source is compiled with debug info, then any
STL you #include and use will have it as well.

There is an idea to implement a "step into the outermost function on current
line, without stepping into any functions used to set up parameters".

Will that address your actual needs?
Maybe it will get done this year ...

Cheers,
--
Paul Pluzhnikov

Re: Don't step into STL

by daviddoria :: Rate this Message:

| View Threaded | Show Only this Message

Yea perfect - that's exactly what I want.  Ok I'll just wait for the next version :)