From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12754 invoked by alias); 23 Jan 2002 11:45:25 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12622 invoked from network); 23 Jan 2002 11:45:15 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 23 Jan 2002 11:45:15 -0000 Received: by fw-cam.cambridge.arm.com; id LAA18428; Wed, 23 Jan 2002 11:45:12 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma017220; Wed, 23 Jan 02 11:44:01 GMT Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id RAA22431; Tue, 22 Jan 2002 17:09:45 GMT Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id RAA03486; Tue, 22 Jan 2002 17:09:44 GMT Message-Id: <200201221709.RAA03486@cam-mail2.cambridge.arm.com> X-Mailer: exmh version 2.0.2 2/24/98 To: gdb@sources.redhat.com, Andrew Cagney cc: Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: ARM floating point regs regression Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 23 Jan 2002 03:45:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-01/txt/msg00258.txt.bz2 Andrew, The following regressions in the testsuite seem to be coming from this patch: 2002-01-20 Andrew Cagney * doublest.h (floatformat_from_type): Declare. * doublest.c (floatformat_from_type): New function. (convert_typed_floating): Use. * valprint.c (print_floating): Replace checks for IEEE_FLOAT with call to function floatformat_from_type. All these occur after an "info all-registers", which causes gdb to segfault: ERROR: Couldn't send p t_char_values(0,0) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values(0,0) ERROR: Couldn't send p t_char_values('a','b') to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values('a','b') ERROR: Couldn't send p t_char_values(char_val1,char_val2) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values(char_val1,char_val2) ERROR: Couldn't send p t_char_values('a',char_val2) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values('a',char_val2) ERROR: Couldn't send p t_char_values(char_val1,'b') to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_char_values(char_val1,'b') ERROR: Couldn't send p t_short_values(0,0) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_short_values(0,0) ERROR: Couldn't send p t_short_values(10,-23) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_short_values(10,-23) ERROR: Couldn't send p t_short_values(short_val1,short_val2) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_short_values(short_val1,short_val2) ERROR: Couldn't send p t_short_values(10,short_val2) to GDB. UNRESOLVED: gdb.base/callfuncs.exp: p t_short_values(10,short_val2) (gdb) info all-reg r0 0x0 0 r1 0x200c8774 537692020 r2 0x2 2 r3 0x200c877c 537692028 r4 0xefbfd334 -272641228 r5 0xefbfd264 -272641436 r6 0xefbfd26c -272641428 r7 0x1 1 r8 0x0 0 r9 0x0 0 r10 0x0 0 r11 0xefbfd238 -272641480 r12 0xefbfd204 -272641532 sp 0xefbfd22c -272641492 lr 0x1ccc 7372 pc 0x1bf8 7160 Program received signal SIGSEGV, Segmentation fault. floatformat_is_nan (fmt=0x0, val=0xefbfcc14 "") at /nfs/sun18//work/rearnsha/gnusrc/src/gdb/src/gdb/doublest.c:457 457 if (! fmt->exp_nan) (top-gdb) p fmt $1 = (struct floatformat *) 0x0 (top-gdb) where #0 floatformat_is_nan (fmt=0x0, val=0xefbfcc14 "") at /nfs/sun18//work/rearnsha/gnusrc/src/gdb/src/gdb/doublest.c:457 #1 0x0007ba4c in c_val_print (type=0x1c0d80, valaddr=0xefbfcc14 "", embedded_offset=0, address=0, stream=0x1ae000, format=0, deref_ref=1, recurse=0, pretty=Val_no_prettyprint) at /nfs/sun18//work/rearnsha/gnusrc/src/gdb/src/gdb/c-valprint.c:439 #2 0x00016400 in val_print (type=0x1c0d80, valaddr=0xefbfcc14 "", embedded_offset=0, address=0, stream=0x1ae000, format=0, deref_ref=1, recurse=0, pretty=Val_pretty_default) ... Breakpoint 3, print_floating (valaddr=0xefbfcc14 "", type=0x1c0d80, stream=0x0) at /nfs/sun18//work/rearnsha/gnusrc/src/gdb/src/gdb/valprint.c:551 551 const struct floatformat *fmt = floatformat_from_type (type); (top-gdb) p type $2 = (struct type *) 0x1c0d80 (top-gdb) p *type $3 = {code = TYPE_CODE_FLT, name = 0x527c8 "builtin_type_arm_ext_littlebyte_bigword", tag_name = 0x0, length = 12, upper_bound_type = 0, lower_bound_type = 0, objfile = 0x0, target_type = 0x0, pointer_type = 0x0, reference_type = 0x0, cv_type = 0x1c0d80, as_type = 0x1c0d80, flags = 0, nfields = 0, fields = 0x0, vptr_basetype = 0x0, vptr_fieldno = -1, type_specific = { arg_types = 0x0, cplus_stuff = 0x0, floatformat = 0x0}}