hugh@toad.com (Hugh Daniel) (09/28/89)
gdb crashes on the simplest of files with the command `info reg`.
System: Sun 3/50, SunOS 4.0.1
Recreate via:
Compile
#include <stdio.h>
main() { puts("Hello"); }
compile
gdb a.out
break main
run
info reg
..
Emulator trap (core dumped)
adb
SIGEMT 7: F-line or A-line op
$C
_convert_from_68881(0xefffa78,0xefffa70) + 16
_registers_info(0x0,0x1) + 108
_execute_command(0x88818,0x1) + f8
_command_loop() + d6
_main(0x2,0xefffb88,0xefffb94) + 7a8
Humm... I dont have a 68881 in my 3/50... $(CC) was cc in my makefile
so it should have been switched to software float.
Sigh, looking at the code I find that the code blindly trys to
access a FPU, sigh. Lets see if turning off the FPU flag in
m-sun3os4.h works...humm cc says:
"dep.c", line 457: c_fpstatus undefined
Well looking at the code there (sun3-dep.c) I dont see a simple way
of fixing this, so I will send you this message now. If you do come
up with a fix, send me the patch and I will test it out. (Like I cant
use gdb till I fix this...)
||ugh Daniel