Index: i386-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/i386-tdep.c,v retrieving revision 1.230 diff -u -p -r1.230 i386-tdep.c --- i386-tdep.c 29 Jan 2007 17:31:06 -0000 1.230 +++ i386-tdep.c 1 Feb 2007 17:50:51 -0000 @@ -979,6 +979,12 @@ i386_frame_cache (struct frame_info *nex /* This will be added back below. */ cache->saved_regs[I386_EIP_REGNUM] -= cache->base; } + else if (cache->pc == 0) + { + /* We couldn't determine the function start address, bla + bla bla. */ + cache->saved_regs[I386_EBP_REGNUM] = 0; + } else { frame_unwind_register (next_frame, I386_ESP_REGNUM, buf);