From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25220 invoked by alias); 10 Dec 2001 18:47:44 -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 25168 invoked from network); 10 Dec 2001 18:47:42 -0000 Received: from unknown (HELO dymwsm08.mailwatch.com) (204.253.83.44) by sources.redhat.com with SMTP; 10 Dec 2001 18:47:42 -0000 Received: from MWSC0209.MW4.MAILWATCH.COM (mwsc0209.mw4.mailwatch.com [204.253.83.227]) by dymwsm08.mailwatch.com (8.11.0/8.11.0) with ESMTP id fBAIldh25699 for ; Mon, 10 Dec 2001 13:47:40 -0500 Received: from mail pickup service by MWSC0209.MW4.MAILWATCH.COM with Microsoft SMTPSVC; Mon, 10 Dec 2001 13:47:39 -0500 Received: from 204.253.83.72 ([204.253.83.72]) by MWSC0209 with SMTP id 00020009993ec615-4cac-4d96-a8a6-3464fd8e5233; Mon, 10 Dec 2001 13:47:39 -0500 Received: from eccmfw5.ford.com (mailfw5.ford.com [136.1.1.29]) by dymwsm10.mailwatch.com (8.11.0/8.11.0) with ESMTP id fBAIldE13015 for ; Mon, 10 Dec 2001 13:47:39 -0500 Message-Id: <200112101847.fBAIldE13015@dymwsm10.mailwatch.com> Received: by mailfw5.ford.com id NAA04900 (InterLock SMTP Gateway 4.2 for gdb@sourceware.cygnus.com); Mon, 10 Dec 2001 13:34:55 -0500 (EST) Received: by mailfw5.ford.com (Internal Mail Agent-1); Mon, 10 Dec 2001 13:34:55 -0500 (EST) Received: by mailfw5.ford.com (Internal Mail Agent-0); Mon, 10 Dec 2001 13:34:55 -0500 (EST) Date: Mon, 10 Dec 2001 10:47:00 -0000 From: "Kevin R.J. Ellwood" X-X-Sender: kellwood@boss302.srl.ford.com To: gdb@sourceware.cygnus.com Subject: Odd behavior with souce files MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII HOP-COUNT: 1 X-MAILWATCH-INSTANCEID: 01020009993ec615-4cac-4d96-a8a6-3464fd8e5233 X-OriginalArrivalTime: 10 Dec 2001 18:47:39.0884 (UTC) FILETIME=[24BCFAC0:01C181AB] X-SW-Source: 2001-12/txt/msg00113.txt.bz2 Hello All, I sure hope this is not an FAQ -- I tried to check the manual and could not find anything. I am using gdb to debug a project and, as expected, gdb found the source files. Unfortunately, when I step through the code, gdb complains that it can't find souce code for libraries used by the project (including system libraries). Below is a snippet from a gdb session. 233 else if (n == 0) (gdb) 236 pntr = (double *) malloc((unsigned) n); (gdb) __libc_malloc (bytes=192) at malloc.c:2791 2791 malloc.c: No such file or directory. in malloc.c (gdb) s 2794 in malloc.c (gdb) 2785 in malloc.c (gdb) 2794 in malloc.c (gdb) 2806 in malloc.c Needless to say, I don't want to debug malloc. Is there an option for gdb such that, if a source file is not found, it won't try to step into that particular routine. I have similar problem when gdb encouters, printf, fprintf, etc. Thanks, Kevin ------------------------------- Kevin R.J. Ellwood Materials Science Dept. Scientific Research Lab Dearborn, MI 48121-2153 MD3182 Phone: (313) 322-5535 Fax: (313) 323-1129