From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5983 invoked by alias); 26 Feb 2003 22:50:59 -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 5963 invoked from network); 26 Feb 2003 22:50:59 -0000 Received: from unknown (HELO ms-smtp-01.texas.rr.com) (24.93.36.229) by 172.16.49.205 with SMTP; 26 Feb 2003 22:50:59 -0000 Received: from 192.168.1.101 (cs2417539-214.austin.rr.com [24.175.39.214]) by ms-smtp-01.texas.rr.com (8.12.5/8.12.2) with ESMTP id h1QMj4U1016394 for ; Wed, 26 Feb 2003 17:45:08 -0500 (EST) From: christopher j bottaro To: gdb@sources.redhat.com Subject: relative file paths? Date: Wed, 26 Feb 2003 22:50:00 -0000 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302261651.04300.cjb@cs.utexas.edu> X-SW-Source: 2003-02/txt/msg00576.txt.bz2 gdb won't let me set a breakpoint when i use a relative file name. i have to cd into the dir where the file is to make a break point. its kinda annoying. am i doing something wrong or is this how its suppose to be? ex output: (gdb) pwd Working directory /home/cjb/projects/cs378/linux-2.4.19. (gdb) b arch/um/kernel/hostandtime.c:9 No source file named arch/um/kernel/hostandtime.c. (gdb) cd arch/um/kernel/ Working directory /home/cjb/projects/cs378/linux-2.4.19/arch/um/kernel. (gdb) b hostandtime.c:9 Breakpoint 4 at 0xa0074187: file hostandtime.c, line 9. thanks for the help, -- christopher