Mail Archives: djgpp/1996/12/17/16:12:55
Thomas Demmer wrote:
>
> Trying the same on my AIX (but gdb 4.16, too bad)
> works as expected.
I include here (only for fun) the output, when debugging
it on a Sun with gdb 4.16:
---------------------------------------------
main-45 % gdb ./test
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.3),
Copyright 1996 Free Software Foundation, Inc...
(gdb) tb main
Breakpoint 1 at 0x10774: file test.c, line 12.
(gdb) r
Starting program: /var/tmproot/rho/./test
main (argc=1, argv=0xeffffa2c) at test.c:12
-12 double f=-0.1,g=0.2;
(gdb) n
15 signal(SIGFPE,bar) ;
(gdb) n
16 foo=sqrt(f/g);
(gdb) n
18 return 0;
(gdb) n
19 }
(gdb) n
0x106bc in _start ()
(gdb) n
Single stepping until exit from function _start,
which has no line number information.
Program exited normally.
(gdb) q
main-46 %
--------------------------------------------
As you can see, there is no exception and I tried it also
at home under W95 in a DOS-box and there is also NO exception
generated (486 DX2/66).
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -