diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-10-03 22:42:32 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-10-03 22:42:32 +0000 |
commit | 69dc947abb7ab24bac6cf62db6d05e4b85c6758e (patch) | |
tree | 5a7ebbba181bc5dd532bb310aa24882531053d57 /gdb/remote-bug.c | |
parent | c2a94a7afd8ce232632857a50f40202272670a06 (diff) | |
download | gdb-69dc947abb7ab24bac6cf62db6d05e4b85c6758e.zip gdb-69dc947abb7ab24bac6cf62db6d05e4b85c6758e.tar.gz gdb-69dc947abb7ab24bac6cf62db6d05e4b85c6758e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/remote-bug.c')
-rw-r--r-- | gdb/remote-bug.c | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c index aac148e..25b769e 100644 --- a/gdb/remote-bug.c +++ b/gdb/remote-bug.c @@ -553,13 +553,15 @@ bug_store_register (int regno) return; } +/* Transfer LEN bytes between GDB address MYADDR and target address + MEMADDR. If WRITE is non-zero, transfer them to the target, + otherwise transfer them from the target. TARGET is unused. + + Returns the number of bytes transferred. */ + int -bug_xfer_memory (memaddr, myaddr, len, write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int write; - struct target_ops *target; /* ignored */ +bug_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, + struct target_ops *target) { if (len <= 0) return 0; @@ -823,10 +825,14 @@ done: #define MAX_BREAKS 16 static int num_brkpts = 0; + +/* Insert a breakpoint at ADDR. SAVE is normally the address of the + pattern buffer where the instruction that the breakpoint overwrites + is saved. It is unused here since the bug is responsible for + saving/restoring the original instruction. */ + static int -bug_insert_breakpoint (addr, save) - CORE_ADDR addr; - char *save; /* Throw away, let bug save instructions */ +bug_insert_breakpoint (CORE_ADDR addr, char *save) { sr_check_open (); @@ -848,10 +854,13 @@ bug_insert_breakpoint (addr, save) } } + +/* Remove a breakpoint at ADDR. SAVE is normally the previously + saved pattern, but is unused here since the bug is responsible + for saving/restoring instructions. */ + static int -bug_remove_breakpoint (addr, save) - CORE_ADDR addr; - char *save; /* Throw away, let bug save instructions */ +bug_remove_breakpoint (CORE_ADDR addr, char *save) { if (num_brkpts > 0) { |