diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-13 21:38:47 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-13 21:38:47 +0000 |
commit | 6503b91ee3225a4b976d419bf27fe56fb5668d22 (patch) | |
tree | 78b8bd2963d34f096467fa6229dc88ae5ca63471 /gdb/gdbarch.c | |
parent | 2d6520ee207ec339308f7876b2036b7dbeb5cbd1 (diff) | |
download | gdb-6503b91ee3225a4b976d419bf27fe56fb5668d22.zip gdb-6503b91ee3225a4b976d419bf27fe56fb5668d22.tar.gz gdb-6503b91ee3225a4b976d419bf27fe56fb5668d22.tar.bz2 |
2004-01-13 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
* gdbarch.c: Re-generate.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
FUNCTION_START_OFFSET.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* sparc-tdep.c (sparc32_gdbarch_init): Ditto.
* sh64-tdep.c (sh64_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* m68k-tdep.c (m68k_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* m32r-tdep.c (m32r_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* hppa-tdep.c (hppa_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
* avr-tdep.c (avr_gdbarch_init): Ditto.
* arm-tdep.c (arm_gdbarch_init): Ditto.
* alpha-tdep.c (alpha_gdbarch_init): Ditto.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index bac577b..cb8bbb9 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -526,7 +526,6 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->memory_insert_breakpoint = default_memory_insert_breakpoint; current_gdbarch->memory_remove_breakpoint = default_memory_remove_breakpoint; current_gdbarch->decr_pc_after_break = -1; - current_gdbarch->function_start_offset = -1; current_gdbarch->remote_translate_xfer_address = generic_remote_translate_xfer_address; current_gdbarch->frame_args_skip = -1; current_gdbarch->frameless_function_invocation = generic_frameless_function_invocation_not; @@ -712,9 +711,7 @@ verify_gdbarch (struct gdbarch *current_gdbarch) if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && (current_gdbarch->decr_pc_after_break == -1)) fprintf_unfiltered (log, "\n\tdecr_pc_after_break"); - if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) - && (current_gdbarch->function_start_offset == -1)) - fprintf_unfiltered (log, "\n\tfunction_start_offset"); + /* Skip verify of function_start_offset, invalid_p == 0 */ /* Skip verify of remote_translate_xfer_address, invalid_p == 0 */ if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && (current_gdbarch->frame_args_skip == -1)) @@ -4644,8 +4641,7 @@ CORE_ADDR gdbarch_function_start_offset (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); - /* Check variable changed from pre-default. */ - gdb_assert (gdbarch->function_start_offset != -1); + /* Skip verify of function_start_offset, invalid_p == 0 */ if (gdbarch_debug >= 2) fprintf_unfiltered (gdb_stdlog, "gdbarch_function_start_offset called\n"); return gdbarch->function_start_offset; |