From owner-freebsd-sparc64@FreeBSD.ORG Tue May 6 11:15:17 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B410C37B404 for ; Tue, 6 May 2003 11:15:14 -0700 (PDT) Received: from sigma.freebsdhackers.net (loaks-171-132.goldengate.net [216.250.171.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 551D043FCB for ; Tue, 6 May 2003 11:15:11 -0700 (PDT) (envelope-from shane@freebsdhackers.net) Received: by sigma.freebsdhackers.net (Postfix, from userid 1099) id 6912E6AB; Tue, 6 May 2003 13:15:10 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by sigma.freebsdhackers.net (Postfix) with ESMTP id 58B03679 for ; Tue, 6 May 2003 13:15:10 -0500 (CDT) Date: Tue, 6 May 2003 13:15:05 -0500 (CDT) From: Shane Kinney To: freebsd-sparc64@freebsd.org Message-ID: <20030506130913.O912-100000@sigma.freebsdhackers.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: GDB Bug? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2003 18:15:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm having some issues with GDB 5.2 on my Sun Ultra 10 (UltraSPARC IIi) which is running FreeBSD 5.0-RELEASE (GENERIC Kernel), that I don't see a problem report for, but I don't know if it is a bug or not. If I create a small C program like this (in a file called test.c): #include int main(void) { printf("sup\n"); return(0); } Then compile it with these flags: gcc -g -o test test.c When I try to step through the program with GDB I get this error: This GDB was configured as "sparc64-portbld-freebsd5.0"... (gdb) break main Breakpoint 1 at 0x1007a4: file test.c, line 4. (gdb) run Starting program: /usr/home/mod6/test warning: Cannot insert breakpoint -2: Error accessing memory address 0x2ac0: Bad address. Anyone know what this might be? Any help would be greatly appreciated! If you need more information, please let me know. Thanks, ~Shane Kinney pgp key: http://www.freebsdhackers.net/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+t/uuIyUr/yoGQnYRAsk0AJ99427xPxKiMp+Hp0rjkUIXWUkSywCeL1ui QGMNMy94G1MxfuLlP3Hj8Jo= =Bagw -----END PGP SIGNATURE-----