Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/gdb Make this at least compile on platforms that...



details:   https://anonhg.NetBSD.org/src/rev/dfb8b2173978
branches:  trunk
changeset: 484190:dfb8b2173978
user:      ws <ws%NetBSD.org@localhost>
date:      Mon Mar 27 16:31:05 2000 +0000

description:
Make this at least compile on platforms that don't define BREAKPOINT.
Bug found by Soren S. Jorvang <soren%wheel.dk@localhost>
Maybe we should completely exclude this file from compilation
on these platforms?

diffstat:

 gnu/usr.bin/gdb/remote-ipkdb.c |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (39 lines):

diff -r 3d3b0e45c8c9 -r dfb8b2173978 gnu/usr.bin/gdb/remote-ipkdb.c
--- a/gnu/usr.bin/gdb/remote-ipkdb.c    Mon Mar 27 16:27:16 2000 +0000
+++ b/gnu/usr.bin/gdb/remote-ipkdb.c    Mon Mar 27 16:31:05 2000 +0000
@@ -341,16 +341,22 @@
        printf_unfiltered("\tAttached to IPKDB at %s.\n", host);
 }
 
+#ifdef BREAKPOINT
 static char bpt[] = BREAKPOINT;
+#endif
 
 static int
 ipkdb_insert_breakpoint(addr, save)
        CORE_ADDR addr;
        char *save;
 {
+#ifdef BREAKPOINT
        ipkdb_read_bytes(addr, save, sizeof bpt);
        ipkdb_write_bytes(addr, bpt, sizeof bpt);
        return 0;
+#else
+       error("Don't know how to insert breakpoint");
+#endif
 }
 
 static int
@@ -358,8 +364,12 @@
        CORE_ADDR addr;
        char *save;
 {
+#ifdef BREAKPOINT
        ipkdb_write_bytes(addr, save, sizeof bpt);
        return 0;
+#else
+       error("Don't know how to remove breakpoint");
+#endif
 }
 
 static void



Home | Main Index | Thread Index | Old Index