diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-10-02 00:49:55 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-10-02 00:49:55 +0000 |
commit | e082ddcac652043505c6d117cab8c66cea33fa78 (patch) | |
tree | 1de1a628d40110f2cd3d3fa872c0fa8fedf613d1 /gdb/remote-adapt.c | |
parent | d64552c5891911a7548901904c4acf9b5e73f922 (diff) | |
download | gdb-e082ddcac652043505c6d117cab8c66cea33fa78.zip gdb-e082ddcac652043505c6d117cab8c66cea33fa78.tar.gz gdb-e082ddcac652043505c6d117cab8c66cea33fa78.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/remote-adapt.c')
-rw-r--r-- | gdb/remote-adapt.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c index f5cc123..6e97c19 100644 --- a/gdb/remote-adapt.c +++ b/gdb/remote-adapt.c @@ -1293,10 +1293,14 @@ adapt_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) #define MAX_BREAKS 8 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 Adapt Monitor is responsible + for saving/restoring the original instruction. */ + static int -adapt_insert_breakpoint (addr, save) - CORE_ADDR addr; - char *save; /* Throw away, let adapt save instructions */ +adapt_insert_breakpoint (CORE_ADDR addr, char *save) { if (num_brkpts < MAX_BREAKS) { @@ -1314,10 +1318,13 @@ adapt_insert_breakpoint (addr, save) } } + +/* Remove a breakpoint at ADDR. SAVE is normally the previously + saved pattern, but is unused here as the Adapt Monitor is + responsible for saving/restoring instructions. */ + static int -adapt_remove_breakpoint (addr, save) - CORE_ADDR addr; - char *save; /* Throw away, let adapt save instructions */ +adapt_remove_breakpoint (CORE_ADDR addr, char *save) { if (num_brkpts > 0) { |