2007-06-06 Markus Deuling <deuling@de.ibm.com>
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 6 Jun 2007 15:32:25 +0000 (15:32 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 6 Jun 2007 15:32:25 +0000 (15:32 +0000)
* gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
gdbarch_coff_make_msymbol_special.
* coffread.c (coff_symtab_read): Likewise.
* gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
gdbarch_elf_make_msymbol_special.
* elfread.c (elf_symtab_read): Likewise.
* mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
* sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
* gdbarch.c, gdbarch.h: Regenerate.

gdb/ChangeLog
gdb/coffread.c
gdb/elfread.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/mips-tdep.c
gdb/sh64-tdep.c

index 6743fda3c488445e55049846cb14fdc42778ab88..0e866660fa1ea7b0968e600674b4d359c62a262f 100644 (file)
@@ -1,3 +1,15 @@
+2007-06-06  Markus Deuling  <deuling@de.ibm.com>
+
+       * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
+       gdbarch_coff_make_msymbol_special.
+       * coffread.c (coff_symtab_read): Likewise.
+       * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
+       gdbarch_elf_make_msymbol_special.
+       * elfread.c (elf_symtab_read): Likewise.
+       * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
+       * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
+       * gdbarch.c, gdbarch.h: Regenerate.
+
 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
 
        * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
index 62c221e105c3db0fd89dd0f1f58972159250ceb0..a9be6f6914897a069746e0153fd9fc1abcc0157f 100644 (file)
@@ -931,7 +931,8 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
 
            msym = record_minimal_symbol (cs, tmpaddr, ms_type, sec, objfile);
            if (msym)
-             COFF_MAKE_MSYMBOL_SPECIAL (cs->c_sclass, msym);
+             gdbarch_coff_make_msymbol_special
+             (current_gdbarch, cs->c_sclass, msym);
 
            if (SDB_TYPE (cs->c_type))
              {
index a80b8f0854823879289c3818a5c94b54e0a2a1eb..ed217509115723ea8a4166f8e571837f4853dfec 100644 (file)
@@ -410,7 +410,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic,
          if (msym != NULL)
            msym->filename = filesymname;
 #endif
-         ELF_MAKE_MSYMBOL_SPECIAL (sym, msym);
+         gdbarch_elf_make_msymbol_special (current_gdbarch, sym, msym);
        }
     }
 }
index 8c6bc5bfd2ae7365960079bfb48b552089e34789..8e8b8e23b1d0464e87040d7027cfaf35e6db04a3 100644 (file)
@@ -768,12 +768,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
   fprintf_unfiltered (file,
                       "gdbarch_dump: char_signed = %s\n",
                       paddr_d (current_gdbarch->char_signed));
-#ifdef COFF_MAKE_MSYMBOL_SPECIAL
-  fprintf_unfiltered (file,
-                      "gdbarch_dump: %s # %s\n",
-                      "COFF_MAKE_MSYMBOL_SPECIAL(val, msym)",
-                      XSTRING (COFF_MAKE_MSYMBOL_SPECIAL (val, msym)));
-#endif
   fprintf_unfiltered (file,
                       "gdbarch_dump: coff_make_msymbol_special = <0x%lx>\n",
                       (long) current_gdbarch->coff_make_msymbol_special);
@@ -930,12 +924,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
   fprintf_unfiltered (file,
                       "gdbarch_dump: ecoff_reg_to_regnum = <0x%lx>\n",
                       (long) current_gdbarch->ecoff_reg_to_regnum);
-#ifdef ELF_MAKE_MSYMBOL_SPECIAL
-  fprintf_unfiltered (file,
-                      "gdbarch_dump: %s # %s\n",
-                      "ELF_MAKE_MSYMBOL_SPECIAL(sym, msym)",
-                      XSTRING (ELF_MAKE_MSYMBOL_SPECIAL (sym, msym)));
-#endif
   fprintf_unfiltered (file,
                       "gdbarch_dump: elf_make_msymbol_special = <0x%lx>\n",
                       (long) current_gdbarch->elf_make_msymbol_special);
index 467230fdf0d855e5f41785675a6d352e2fb43790..c399475b01ced058788c7f4bee84d1647f70d180 100644 (file)
@@ -1085,22 +1085,10 @@ extern void set_gdbarch_construct_inferior_arguments (struct gdbarch *gdbarch, g
 typedef void (gdbarch_elf_make_msymbol_special_ftype) (asymbol *sym, struct minimal_symbol *msym);
 extern void gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym);
 extern void set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special);
-#if !defined (GDB_TM_FILE) && defined (ELF_MAKE_MSYMBOL_SPECIAL)
-#error "Non multi-arch definition of ELF_MAKE_MSYMBOL_SPECIAL"
-#endif
-#if !defined (ELF_MAKE_MSYMBOL_SPECIAL)
-#define ELF_MAKE_MSYMBOL_SPECIAL(sym, msym) (gdbarch_elf_make_msymbol_special (current_gdbarch, sym, msym))
-#endif
 
 typedef void (gdbarch_coff_make_msymbol_special_ftype) (int val, struct minimal_symbol *msym);
 extern void gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, int val, struct minimal_symbol *msym);
 extern void set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special);
-#if !defined (GDB_TM_FILE) && defined (COFF_MAKE_MSYMBOL_SPECIAL)
-#error "Non multi-arch definition of COFF_MAKE_MSYMBOL_SPECIAL"
-#endif
-#if !defined (COFF_MAKE_MSYMBOL_SPECIAL)
-#define COFF_MAKE_MSYMBOL_SPECIAL(val, msym) (gdbarch_coff_make_msymbol_special (current_gdbarch, val, msym))
-#endif
 
 extern const char * gdbarch_name_of_malloc (struct gdbarch *gdbarch);
 extern void set_gdbarch_name_of_malloc (struct gdbarch *gdbarch, const char * name_of_malloc);
index 761edb5bc973a670d8ca2b4d8a648b4de9edc212..d8412e41315e7f0800a971469f3800530d4e6999 100755 (executable)
@@ -651,8 +651,8 @@ m::int:in_function_epilogue_p:CORE_ADDR addr:addr:0:generic_in_function_epilogue
 # ARGC is the number of elements in the vector.
 # ARGV is an array of strings, one per argument.
 m::char *:construct_inferior_arguments:int argc, char **argv:argc, argv::construct_inferior_arguments::0
-f:=:void:elf_make_msymbol_special:asymbol *sym, struct minimal_symbol *msym:sym, msym::default_elf_make_msymbol_special::0
-f:=:void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym::default_coff_make_msymbol_special::0
+f::void:elf_make_msymbol_special:asymbol *sym, struct minimal_symbol *msym:sym, msym::default_elf_make_msymbol_special::0
+f::void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym::default_coff_make_msymbol_special::0
 v:=:const char *:name_of_malloc:::"malloc":"malloc"::0:NAME_OF_MALLOC
 v:=:int:cannot_step_breakpoint:::0:0::0
 v:=:int:have_nonsteppable_watchpoint:::0:0::0
index a090770727271528a482e23f552f82c1fa3723d7..41ffb959cee1f3f763e2e745ed30f16062564179 100644 (file)
@@ -293,7 +293,7 @@ mips_abi_regsize (struct gdbarch *gdbarch)
    marks it as 16-bit function.  The MSB of the minimal symbol's
    "info" field is used for this purpose.
 
-   ELF_MAKE_MSYMBOL_SPECIAL tests whether an ELF symbol is "special",
+   gdbarch_elf_make_msymbol_special tests whether an ELF symbol is "special",
    i.e. refers to a 16-bit function, and sets a "special" bit in a
    minimal symbol to mark it as a 16-bit function
 
index da0416e24708463799b02139f489a5fc557a22d0..88e1371ec387360b3b7202e6d93720af66a3aa69 100644 (file)
@@ -206,9 +206,8 @@ sh64_register_name (int reg_nr)
    symbol that marks it as 32-bit function.  The MSB of the minimal
    symbol's "info" field is used for this purpose.
 
-   ELF_MAKE_MSYMBOL_SPECIAL
-   tests whether an ELF symbol is "special", i.e. refers
-   to a 32-bit function, and sets a "special" bit in a 
+   gdbarch_elf_make_msymbol_special tests whether an ELF symbol is "special",
+   i.e. refers to a 32-bit function, and sets a "special" bit in a
    minimal symbol to mark it as a 32-bit function
    MSYMBOL_IS_SPECIAL   tests the "special" bit in a minimal symbol  */
 
This page took 0.032404 seconds and 4 git commands to generate.