From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13581 invoked by alias); 28 Feb 2009 13:31:55 -0000 Received: (qmail 13573 invoked by uid 22791); 28 Feb 2009 13:31:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from 27.mail-out.ovh.net (HELO 27.mail-out.ovh.net) (91.121.30.210) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 28 Feb 2009 13:31:48 +0000 Received: (qmail 3670 invoked by uid 503); 28 Feb 2009 14:07:18 -0000 Received: from b6.ovh.net (HELO mail428.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 28 Feb 2009 14:07:18 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 28 Feb 2009 13:31:52 -0000 Received: from 11.156.90-79.rev.gaoland.net (HELO ?192.168.1.101?) (laurent%guerby.net@79.90.156.11) by ns0.ovh.net with SMTP; 28 Feb 2009 13:31:50 -0000 Subject: Re: GDB 6.8 on sparc64-linux not working, idem on powerpc64-linux From: Laurent GUERBY To: Mark Kettenis Cc: gdb@sourceware.org In-Reply-To: <200902281302.n1SD26n5020357@brahms.sibelius.xs4all.nl> References: <1235812429.11347.438.camel@localhost> <1235824612.11347.446.camel@localhost> <200902281302.n1SD26n5020357@brahms.sibelius.xs4all.nl> Content-Type: text/plain Date: Sat, 28 Feb 2009 13:31:00 -0000 Message-Id: <1235827903.11347.484.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 4379187688363859457 X-Ovh-Remote: 79.90.156.11 (11.156.90-79.rev.gaoland.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) 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-02/txt/msg00178.txt.bz2 On Sat, 2009-02-28 at 14:02 +0100, Mark Kettenis wrote: > > From: Laurent GUERBY > > Date: Sat, 28 Feb 2009 13:36:52 +0100 > > > > (gdb) b main > > Breakpoint 1 at 0x1000044c: file toto.c, line 1. > > (gdb) r > > Starting program: /home/guerby/tmp/a.out > > warning: no loadable sections found in added symbol-file system-supplied DSO at 0x100000 > > > > Program received signal SIGTRAP, Trace/breakpoint trap. > > 0x1000044c0002d032 in ?? () > > (gdb) bt > > #0 0x1000044c0002d032 in ?? () > > #1 0x0007d5a400000000 in ?? () > > Cannot access memory at address 0xfffff4f010018940 > > (gdb) n > > Cannot find bounds of current function > > This (and the sparc64 issue) smells like a mismatch between bitness of > gdb and the program you're trying to debug. What does file(1) report > when you run it on your gdb binary and your program's binary? I built GDB as 32 bits indeed, I thought the host choice would not impact the target debugability but it looks like I was wrong. I'm not familiar (yet) with the GDB documentation, is this mentionned somewhere? On powerpc64 rebuilding as 64 bits cured the issue, on sparc64 I will report soon. Thanks for your help! Laurent.