~> gdb ./gdb_test GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc64-marcel-freebsd"... (gdb) break main Breakpoint 1 at 0x100684: file gdb_test.c, line 6. (gdb) list 1 #include 2 #include 3 4 int main(void) 5 { 6 int i = 0; 7 long l = LONG_MAX; 8 9 while (i++ < 10) { 10 l--; (gdb) 11 printf("Decrementing l\n"); 12 } 13 14 printf("LONG_MAX - 10 = %ld\n", l); 15 16 return (0); 17 } (gdb) run Starting program: /usr/home/gahr/gdb_test Breakpoint 1, main () at gdb_test.c:6 6 int i = 0; (gdb) next 7 long l = LONG_MAX; (gdb) 9 while (i++ < 10) { (gdb) 10 l--; (gdb) 11 printf("Decrementing l\n"); (gdb) 0x0000000000200b80 in _PROCEDURE_LINKAGE_TABLE_ () (gdb) Single stepping until exit from function _PROCEDURE_LINKAGE_TABLE_, which has no line number information. Warning: Cannot insert breakpoint 0. Error accessing memory address 0xc0078de8: Bad address. (gdb) Cannot find bounds of current function (gdb)