From 1c7724581e56a7cda4dd412b88eabe51e33b0507 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 11 May 2007 19:57:17 +0000 Subject: * gdbarch.sh (overlay_update): New gdbarch function. (struct obj_section): Add forward declaration. * gdbarch.c, gdbarch.h: Regenerate. * symfile.c (simple_overlay_update): Make global. (target_overlay_update): Remove variable. (overlay_is_mapped): Call gdbarch_overlay_update instead of target_overlay_update. (overlay_load_command): Likewise. * symfile.h (struct obj_section): Add forward declaration. (simple_overlay_update): Add prototype. * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update. --- gdb/symfile.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/symfile.h') diff --git a/gdb/symfile.h b/gdb/symfile.h index e28b75b..b24acc1 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -29,6 +29,7 @@ /* Opaque declarations. */ struct section_table; struct objfile; +struct obj_section; struct obstack; struct block; @@ -306,6 +307,9 @@ extern void symbol_file_add_main (char *args, int from_tty); /* Clear GDB symbol tables. */ extern void symbol_file_clear (int from_tty); +/* Default overlay update function. */ +extern void simple_overlay_update (struct obj_section *); + extern bfd_byte *symfile_relocate_debug_section (bfd *abfd, asection *sectp, bfd_byte * buf); -- cgit v1.1