This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Don't need %d in TARGET_CHAR_SIGNED
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 20 Dec 2001 17:24:58 +0000
- Subject: [patch] Don't need %d in TARGET_CHAR_SIGNED
Just FYI,
Due to a few querks in gdbarch.sh, the %d isn't needed. gdbarch.sh
forces the type to (long) and prints using %ld. (Yes it is a bug).
Andrew
2001-12-20 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
format.
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.99
diff -p -r1.99 gdbarch.sh
*** gdbarch.sh 2001/12/20 03:26:08 1.99
--- gdbarch.sh 2001/12/20 17:21:21
*************** v::TARGET_ADDR_BIT:int:addr_bit::::8 * s
*** 385,391 ****
v::TARGET_BFD_VMA_BIT:int:bfd_vma_bit::::8 * sizeof (void*):TARGET_ARCHITECTURE->bits_per_address::0
#
# One if \`char' acts like \`signed char', zero if \`unsigned char'.
! v::TARGET_CHAR_SIGNED:int:char_signed::::1:-1:1::%d::
#
v::IEEE_FLOAT:int:ieee_float::::0:0::0:::
#
--- 385,391 ----
v::TARGET_BFD_VMA_BIT:int:bfd_vma_bit::::8 * sizeof (void*):TARGET_ARCHITECTURE->bits_per_address::0
#
# One if \`char' acts like \`signed char', zero if \`unsigned char'.
! v::TARGET_CHAR_SIGNED:int:char_signed::::1:-1:1::::
#
v::IEEE_FLOAT:int:ieee_float::::0:0::0:::
#