Article View: gnu.gdb.bug
Article #10076gdb3.5 core dumps when printing illegal floats
From: Glenn Engel
Date: Tue, 17 Jul 1990 16:54
Date: Tue, 17 Jul 1990 16:54
30 lines
1799 bytes
1799 bytes
When gdb3.5 attempts to print a floating point value which is illegal, it gives an error the first time and then core dumps. An example where this can easily happen is when printing a union with an int and a float field. Here's an example: GDB 3.5, Copyright (C) 1989 Free Software Foundation, Inc. There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details. GDB is free software and you are welcome to distribute copies of it under certain conditions; type "info copying" to see the conditions. Type "help" for a list of commands. (gdb) p/f (int) -4503758 $1 = Invalid floating value encountered or computed. (gdb) p/f (int) -4503758 Floating exception - core dumped Gdb was configured for hp9k320. -- Glenn ------------------------------------------------- | ___ | | | / / | Glenn R. Engel | | HEWLETT/hp/PACKARD | glenne@hplsla.hp.com | | /__/ | (206) 335-2066 | | Lake Stevens | NN7N | | Instrument Division | | -------------------------------------------------
Technical Details
Message-ID:
<9007171654.AA06893@hplslk.lsid.hp.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenneShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,f753722aff9066f3,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-07-17 14:12:50 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!HPLSLA.HP.COM!glenne From: glenne@HPLSLA.HP.COM (Glenn Engel) Newsgroups: gnu.gdb.bug Subject: gdb3.5 core dumps when printing illegal floats Message-ID: <9007171654.AA06893@hplslk.lsid.hp.com> Date: 17 Jul 90 16:54:46 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: glenne@hplsla.hp.com Distribution: gnu Organization: GNUs Not Usenet Lines: 30 Posted: Tue Jul 17 17:54:46 1990