From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug in gdb? Date: Tue, 17 Dec 1996 11:45:00 +0100 Organization: TU Chemnitz-Zwickau Lines: 53 Message-ID: <32B679AC.283D@Mathematik.tu-chemnitz.de> References: <32B54E67 DOT 2781 AT LSTM DOT Ruhr-UNI-Bochum DOT De> NNTP-Posting-Host: main.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Thomas Demmer DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 * *****************************************************************