[Simh] RE : Segmentation fault when running the MIcrovax emulator
J. David Bryan
jdbryan at acm.org
Sun Jan 8 15:04:59 EST 2012
On Sunday, January 8, 2012 at 2:00, Sergey Oboguev wrote:
> If you compile it, rather than using pre-built binary, can you compile
> in debug mode, run under gdb and see the stack at fault point, and also
> the fault location?
I agree that knowing where the fault occurs would be helpful now.
If I read the makefile supplied with SIMH correctly, a non-Win32
compilation already includes debug info (via the "-g" switch):
CC = gcc -std=c99 -U__STRICT_ANSI__ -g $(OS_CCDEFS) -I .
Brian, if you have gdb on your system, you should be able to start SIMH
with gdb, issue the gdb "run" command, and then when the segfault occurs,
issue the gdb "backtrace" command to print the call stack. This should
show us where the problem is occuring.
-- Dave
More information about the Simh
mailing list