aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-02-07 18:37:25 +0000
committerAndrew Cagney <cagney@redhat.com>2001-02-07 18:37:25 +0000
commita6da1910ac73f90544967200b2a23835644fc272 (patch)
treea5a2985554240958ba72b6ebb233b5df3355c3a9
parent153f9905cb8aa0ca1f70431d40ea06ab1a4d651f (diff)
downloadgdb-a6da1910ac73f90544967200b2a23835644fc272.zip
gdb-a6da1910ac73f90544967200b2a23835644fc272.tar.gz
gdb-a6da1910ac73f90544967200b2a23835644fc272.tar.bz2
Fix printf fmt of long in remote-sim.c.
mn10300-elf now buildable.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/MAINTAINERS2
-rw-r--r--gdb/remote-sim.c4
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1cf44b5..74ba637 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-07 Andrew Cagney <ac131313@redhat.com>
+
+ * remote-sim.c (dump_mem): Cleanup printf format argument.
+ * MAINTAINERS: Update, mn10300-elf now builds.
+
2001-02-07 Mark Kettenis <kettenis@gnu.org>
* event-top.c: Remove duplicate #include <signal.h>.
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index 764de67..87923a2 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -112,7 +112,7 @@ maintainer works with the native maintainer when resolving API issues.
mn10200 (--target=mn10200-elf broken)
Maintenance only
- mn10300 (--target=mn10300-elf broken)
+ mn10300 --target=mn10300-elf ,-Werror
Andrew Cagney cagney@cygnus.com
ns32k (--target=ns32k-netbsd broken)
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 268f5f7..1976db9 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -129,7 +129,9 @@ dump_mem (char *buf, int len)
long l[2];
memcpy (l, buf, len);
printf_filtered ("\t0x%lx", l[0]);
- printf_filtered (len == 8 ? " 0x%x\n" : "\n", l[1]);
+ if (len == 8)
+ printf_filtered (" 0x%lx", l[1]);
+ printf_filtered ("\n");
}
else
{