From a6b808b408f304ead418bdf4ebae5b3cea7cf191 Mon Sep 17 00:00:00 2001 From: Hui Zhu Date: Sun, 17 May 2009 12:26:44 +0000 Subject: [PATCH] * i386-tdep.c (i386_process_record): Make it extern. (i386_gdbarch_init): Don't call set_gdbarch_process_record here. * i386-tdep.c (i386_process_record): Declare. * i386-linux-tdep.c (i386_linux_init_abi): Call set_gdbarch_process_record. --- gdb/ChangeLog | 9 +++++++++ gdb/i386-linux-tdep.c | 2 ++ gdb/i386-tdep.c | 4 +--- gdb/i386-tdep.h | 3 +++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b676f116a1f..1fd779b9917 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2009-05-17 Hui Zhu + + * i386-tdep.c (i386_process_record): Make it extern. + (i386_gdbarch_init): Don't call set_gdbarch_process_record + here. + * i386-tdep.c (i386_process_record): Declare. + * i386-linux-tdep.c (i386_linux_init_abi): Call + set_gdbarch_process_record. + 2009-05-17 Vladimir Prus Always report varobj as changed when in_scope attribute changes. diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c index 1f8e42dff25..0f7820d9412 100644 --- a/gdb/i386-linux-tdep.c +++ b/gdb/i386-linux-tdep.c @@ -613,6 +613,8 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->sc_reg_offset = i386_linux_sc_reg_offset; tdep->sc_num_regs = ARRAY_SIZE (i386_linux_sc_reg_offset); + set_gdbarch_process_record (gdbarch, i386_process_record); + /* Initialize the i386_linux_record_tdep. */ i386_linux_record_tdep.size__old_kernel_stat = I386_LINUX_RECORD_SIZE__old_kernel_stat; diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 718a01c1b95..bfd2bab9344 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2982,7 +2982,7 @@ i386_record_lea_modrm (struct i386_record_s *irp) memory that will be changed in current instruction to "record_arch_list". Return -1 if something wrong. */ -static int +int i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr) { @@ -5277,8 +5277,6 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_skip_permanent_breakpoint (gdbarch, i386_skip_permanent_breakpoint); - set_gdbarch_process_record (gdbarch, i386_process_record); - return gdbarch; } diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index c73e7d94a0e..88de54c4bde 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -220,6 +220,9 @@ extern void i386_elf_init_abi (struct gdbarch_info, struct gdbarch *); /* Initialize a SVR4 architecture variant. */ extern void i386_svr4_init_abi (struct gdbarch_info, struct gdbarch *); + +extern int i386_process_record (struct gdbarch *gdbarch, + struct regcache *regcache, CORE_ADDR addr); /* Functions and variables exported from i386bsd-tdep.c. */ -- 2.30.2