This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix a remote-sim printf fmt, mn10300 buildable
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Fix a remote-sim printf fmt, mn10300 buildable
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 07 Feb 2001 10:29:07 -0800
FYI,
The attatched fixes a printf problem in remote.c (it simplifies the code
a little). I've also managed to build mn10300-elf target.
Andrew
2001-02-07 Andrew Cagney <ac131313@redhat.com>
* remote-sim.c (dump_mem): Cleanup printf format argument.
* MAINTAINERS: Update, mn10300-elf now builds.
Index: MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.68
diff -p -r1.68 MAINTAINERS
*** MAINTAINERS 2001/02/07 03:11:44 1.68
--- MAINTAINERS 2001/02/07 17:54:40
*************** maintainer works with the native maintai
*** 112,118 ****
mn10200 (--target=mn10200-elf broken)
Maintenance only
! mn10300 (--target=mn10300-elf broken)
Andrew Cagney cagney@cygnus.com
ns32k (--target=ns32k-netbsd broken)
--- 112,118 ----
mn10200 (--target=mn10200-elf broken)
Maintenance only
! mn10300 --target=mn10300-elf ,-Werror
Andrew Cagney cagney@cygnus.com
ns32k (--target=ns32k-netbsd broken)
Index: remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.10
diff -p -r1.10 remote-sim.c
*** remote-sim.c 2001/02/02 19:14:33 1.10
--- remote-sim.c 2001/02/07 17:54:40
*************** dump_mem (char *buf, int len)
*** 129,135 ****
long l[2];
memcpy (l, buf, len);
printf_filtered ("\t0x%lx", l[0]);
! printf_filtered (len == 8 ? " 0x%x\n" : "\n", l[1]);
}
else
{
--- 129,137 ----
long l[2];
memcpy (l, buf, len);
printf_filtered ("\t0x%lx", l[0]);
! if (len == 8)
! printf_filtered (" 0x%lx", l[1]);
! printf_filtered ("\n");
}
else
{