GDB Bug?
Shane Kinney
shane at freebsdhackers.net
Tue May 6 11:15:17 PDT 2003
-----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-----
More information about the freebsd-sparc64
mailing list