Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 2003 13:15:05 -0500 (CDT)
From:      Shane Kinney <shane@freebsdhackers.net>
To:        freebsd-sparc64@freebsd.org
Subject:   GDB Bug?
Message-ID:  <20030506130913.O912-100000@sigma.freebsdhackers.net>

next in thread | raw e-mail | index | archive | help
-----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 <stdio.h>

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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030506130913.O912-100000>