From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9202 invoked by alias); 14 Aug 2006 22:08:54 -0000 Received: (qmail 9191 invoked by uid 22791); 14 Aug 2006 22:08:49 -0000 X-Spam-Check-By: sourceware.org Received: from sp604002mt.neufgp.fr (HELO sMtp.neuf.fr) (84.96.92.61) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Aug 2006 22:08:47 +0000 Received: from [127.0.0.1] ([84.100.135.201]) by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0J4000D31DIK0N60@sp604002mt.gpm.neuf.ld> for gdb@sourceware.org; Tue, 15 Aug 2006 00:08:45 +0200 (CEST) Date: Mon, 14 Aug 2006 22:08:00 -0000 From: Olivier Parisy Subject: Associating source to a running program To: gdb@sourceware.org Message-id: <44E0F463.2030500@free.fr> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Antivirus: avast! (VPS 0633-0, 14/08/2006), Outbound message X-Antivirus-Status: Clean User-Agent: Thunderbird 1.5 (Windows/20051201) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00121.txt.bz2 Hi, I'm trying to step through a gcj-compiled java program. I get outputs such as this one: (gdb) step JvRunMain (klass=0xf3c310, argc=1, argv=0x33ec8) at /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc:1552 1552 /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc: No such file or directory. in /home/olivier/gcj/w32gcc/src/gcc/libjava/prims.cc Current language: auto; currently c++ This makes sense, as prims.cc is probably part of libjava runtime, and was only available at gcc/gcj compilation, but not during program execution. Considering that this source code is available elsewhere on the file system, how can I specify to GDB where it can find it? Best regards, Olivier Parisy.