This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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:::
  #

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]