diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-02-20 14:31:40 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-02-20 14:31:40 +0000 |
commit | ae4b228419367dd170acf7251a82413d890ad61a (patch) | |
tree | 72eea7e0448d7d00a8d11121d797e7177115e648 /gdb/gdbarch.c | |
parent | 7f6ef0c0b8517b25e34e9f5c1208afefef50aec9 (diff) | |
download | gdb-ae4b228419367dd170acf7251a82413d890ad61a.zip gdb-ae4b228419367dd170acf7251a82413d890ad61a.tar.gz gdb-ae4b228419367dd170acf7251a82413d890ad61a.tar.bz2 |
* gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.
* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter.
* mem-break.c (default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Likewise.
* target.h (default_memory_remove_breakpoint)
(default_memory_insert_breakpoint): Likewise.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter. Replace current_gdbarch by gdbarch.
* m32r-tdep.c (m32r_memory_insert_breakpoint)
(m32r_memory_remove_breakpoint): Likewise.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 3c5a282..613064c 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -309,8 +309,8 @@ struct gdbarch startup_gdbarch = 0, /* inner_than */ 0, /* breakpoint_from_pc */ 0, /* adjust_breakpoint_address */ - 0, /* memory_insert_breakpoint */ - 0, /* memory_remove_breakpoint */ + default_memory_insert_breakpoint, /* memory_insert_breakpoint */ + default_memory_remove_breakpoint, /* memory_remove_breakpoint */ 0, /* decr_pc_after_break */ 0, /* deprecated_function_start_offset */ default_remote_register_number, /* remote_register_number */ @@ -2139,7 +2139,7 @@ gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info gdb_assert (gdbarch->memory_insert_breakpoint != NULL); if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_memory_insert_breakpoint called\n"); - return gdbarch->memory_insert_breakpoint (bp_tgt); + return gdbarch->memory_insert_breakpoint (gdbarch, bp_tgt); } void @@ -2156,7 +2156,7 @@ gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info gdb_assert (gdbarch->memory_remove_breakpoint != NULL); if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_memory_remove_breakpoint called\n"); - return gdbarch->memory_remove_breakpoint (bp_tgt); + return gdbarch->memory_remove_breakpoint (gdbarch, bp_tgt); } void |