On Sat, 14 Aug 1999, Peter Gerwinski wrote:
Dimitrios Bartzos wrote:
(gdb) run [...] ../../../egcs-1.1.2/gcc/p/../toplev.c:1385: Internal compiler error in function fatal_insn
Program exited with code 041. [...]
Is there something I should have setup before I do the 'info stack'?
There should be a breakpoint on the "fatal error" function. Please retry and copy the `.gdbinit' file from the GPC source directory to the directory where you are running the `gdb' session.
Ok, I copied .gdbinit in the p/rts directory and run gdb on gpc1 with the file files.pas
Here's the output:
Breakpoint 1 at 0x1937d4: file ../../../egcs-1.1.2/gcc/p/../toplev.c, line 2139. Breakpoint 2 at 0x193230: file ../../../egcs-1.1.2/gcc/p/../toplev.c, line 1774. Breakpoint 3 (deferred) at "abort" ("abort" was not found). Breakpoint deferred until a shared library containing "abort" is loaded. (gdb) run files.pas Starting program: /ece2/eeof/gcc/gcc/gpc1 files.pas [New process 18403] Detaching after fork from process 18403 gpc1: installation problem, cannot exec `gpc': No such file or directory gpc1: gpc exited with status 255 [New process 18404] Detaching after fork from process 18404 gpc1: installation problem, cannot exec `gpc': No such file or directory gpc1: gpc exited with status 255 Assign Internal_assign Assign_cfile Ioselect Breakpoint 2, error (s=0x1fd30 "internal error--unrecognizable insn:") at ../../../egcs-1.1.2/gcc/p/../toplev.c:1774 1774 verror (s, ap); (gdb) info stack #0 error (s=0x1fd30 "internal error--unrecognizable insn:") at ../../../egcs-1.1.2/gcc/p/../toplev.c:1774 #1 0x192878 in fatal_insn ( message=0x1fd30 "internal error--unrecognizable insn:", insn=0x4007c030) at ../../../egcs-1.1.2/gcc/p/../toplev.c:1375 #2 0x192948 in fatal_insn_not_found (insn=0x4007c030) at ../../../egcs-1.1.2/gcc/p/../toplev.c:1399 #3 0x1324ec in insn_extract (insn=0x1fd30) at insn-extract.c:25 Error accessing memory address 0x0: Invalid argument.
I hope this helps crarify things a little more,
Dimitrios.