From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12882 invoked by alias); 24 Jan 2009 21:46:44 -0000 Received: (qmail 12873 invoked by uid 22791); 24 Jan 2009 21:46:43 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Jan 2009 21:46:39 +0000 Received: from zps37.corp.google.com (zps37.corp.google.com [172.25.146.37]) by smtp-out.google.com with ESMTP id n0OLkbd3006175 for ; Sat, 24 Jan 2009 13:46:37 -0800 Received: from rv-out-0506.google.com (rvbk40.prod.google.com [10.140.87.40]) by zps37.corp.google.com with ESMTP id n0OLkYjJ017373 for ; Sat, 24 Jan 2009 13:46:34 -0800 Received: by rv-out-0506.google.com with SMTP id k40so5279159rvb.1 for ; Sat, 24 Jan 2009 13:46:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.164.10 with SMTP id m10mr4993025wfe.184.1232833594244; Sat, 24 Jan 2009 13:46:34 -0800 (PST) In-Reply-To: <18811.34794.239283.316635@kahikatea.snap.net.nz> References: <21645187.post@talk.nabble.com> <18811.34794.239283.316635@kahikatea.snap.net.nz> Date: Sat, 24 Jan 2009 21:46:00 -0000 Message-ID: <8ac60eac0901241346o783b2030odc4a6a5f37adfd0f@mail.gmail.com> Subject: Re: Don't step into STL From: Paul Pluzhnikov To: Nick Roberts Cc: daviddoria , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00164.txt.bz2 On Sat, Jan 24, 2009 at 1:28 PM, Nick Roberts 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