Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kris Warkentin <kewarken@qnx.com>
To: Daniel Simard <Daniel.Simard@simplernetworks.com>
Cc: gdb@sources.redhat.com
Subject: Re: The step over function of gdb enters header file code
Date: Mon, 07 Feb 2005 15:10:00 -0000	[thread overview]
Message-ID: <42077BFF.5010305@qnx.com> (raw)
In-Reply-To: <23BEE0D8F55D0747A13EFE0A6937FFA11B4B@simnet.simplernetworks.com>

Try 'next' instead of 'step'.  This is a feature, not a bug - it's 
actually very handy to be able to step into headers in many cases.  
Alternatively, you could try compiling with -gstabs+.  The last time I 
checked, gcc wouldn't generate stabs debug info for headers.

cheers,

Kris

Daniel Simard wrote:

>Hi, 
>
>I am not sure if it is the right place to post those kings of questions,
>but if it is not please tell me where to post it.
>
>I am trying to debug an existing module that is using STL (string,
>vector etc...). When I break it the code, I want to trace it using the
>"step over" command of gdb, the debugger continually enters and break
>into STL header file code. I know that those header files are using
>template, but is it possible to tell gdb to not trace into system code
>when using "step over" command. I tried kdevelop and ddd debuggers and
>both are doing the same thing. My version of gdb is 6.1.
>
>Thanks
>___________________
>Daniel-Olivier Simard, eng. 
>Firmware Designer 
>Simpler Networks Inc.
>1840 TransCanada, Suite 100 
>Dorval, Québec, Canada, H9P 1H7
>Phone : (514) 684-2112 x354 
>Fax : (514) 684-2127
>
>  
>


      reply	other threads:[~2005-02-07 14:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-07 13:49 Daniel Simard
2005-02-07 15:10 ` Kris Warkentin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42077BFF.5010305@qnx.com \
    --to=kewarken@qnx.com \
    --cc=Daniel.Simard@simplernetworks.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox