diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:38:43 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:38:43 +0000 |
commit | ae4477d70bc6eee4eefc6738afb128df27e009b4 (patch) | |
tree | fe92c907fa1afc5ff8e62c37b97910ce98113c36 /gdb/mem-break.c | |
parent | 56c5a93512dec53231a6901c3313fa755ee02604 (diff) | |
download | gdb-ae4477d70bc6eee4eefc6738afb128df27e009b4.tar.gz |
2007-06-13 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
gdbarch_breakpoint_from_pc.
* s390-tdep.c (s390_gdbarch_init): Likewise (comment).
* remote.c (remote_insert_breakpoint)
(remote_insert_hw_breakpoint): Likewise.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
* mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
* breakpoint.h (bp_target_info): Likewise (comment).
* breakpoint.c (read_memory_nobpt): Likewise.
* mem-break.c (default_memory_insert_breakpoint): Likewise.
(symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/mem-break.c')
-rw-r--r-- | gdb/mem-break.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mem-break.c b/gdb/mem-break.c index 2122308880f..e538bbc369b 100644 --- a/gdb/mem-break.c +++ b/gdb/mem-break.c @@ -50,7 +50,8 @@ default_memory_insert_breakpoint (struct bp_target_info *bp_tgt) int bplen; /* Determine appropriate breakpoint contents and size for this address. */ - bp = BREAKPOINT_FROM_PC (&bp_tgt->placed_address, &bp_tgt->placed_size); + bp = gdbarch_breakpoint_from_pc + (current_gdbarch, &bp_tgt->placed_address, &bp_tgt->placed_size); if (bp == NULL) error (_("Software breakpoints not implemented for this target.")); |