From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1806 invoked by alias); 7 Feb 2005 14:54:19 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1448 invoked from network); 7 Feb 2005 14:53:46 -0000 Received: from unknown (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 7 Feb 2005 14:53:46 -0000 Received: from [10.12.1.181] (dhcpa181.ott.qnx.com [10.12.1.181]) by nimbus.ott.qnx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1PLMZL9Q; Mon, 7 Feb 2005 09:28:23 -0500 Message-ID: <42077BFF.5010305@qnx.com> Date: Mon, 07 Feb 2005 15:10:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: Daniel Simard CC: gdb@sources.redhat.com Subject: Re: The step over function of gdb enters header file code References: <23BEE0D8F55D0747A13EFE0A6937FFA11B4B@simnet.simplernetworks.com> In-Reply-To: <23BEE0D8F55D0747A13EFE0A6937FFA11B4B@simnet.simplernetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2005-02/txt/msg00027.txt.bz2 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 > > >