* hppa-tdep.c (internalize_unwinds): Use objfile architecture
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Sep 2008 11:45:01 +0000 (11:45 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 5 Sep 2008 11:45:01 +0000 (11:45 +0000)
instead of current_gdbarch.

gdb/ChangeLog
gdb/hppa-tdep.c

index de24f85f7a16053ab5e7a98b42f6d0a1b5e3b183..22da66883bafe66cc6f2247f709a850832cbbfa2 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * hppa-tdep.c (internalize_unwinds): Use objfile architecture
+       instead of current_gdbarch.
+
 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
index 3b4d331e44a5f79ecba6710cef6989d568701db6..4b2ec571e353c73f59d8d3a007cdf6f3cd83a2a5 100644 (file)
@@ -230,6 +230,7 @@ internalize_unwinds (struct objfile *objfile, struct unwind_table_entry *table,
 
   if (size > 0)
     {
+      struct gdbarch *gdbarch = get_objfile_arch (objfile);
       unsigned long tmp;
       unsigned i;
       char *buf = alloca (size);
@@ -241,7 +242,7 @@ internalize_unwinds (struct objfile *objfile, struct unwind_table_entry *table,
         Note that when loading a shared library (text_offset != 0) the
         unwinds are already relative to the text_offset that will be
         passed in.  */
-      if (gdbarch_tdep (current_gdbarch)->is_elf && text_offset == 0)
+      if (gdbarch_tdep (gdbarch)->is_elf && text_offset == 0)
        {
           low_text_segment_address = -1;
 
@@ -251,9 +252,9 @@ internalize_unwinds (struct objfile *objfile, struct unwind_table_entry *table,
 
          text_offset = low_text_segment_address;
        }
-      else if (gdbarch_tdep (current_gdbarch)->solib_get_text_base)
+      else if (gdbarch_tdep (gdbarch)->solib_get_text_base)
         {
-         text_offset = gdbarch_tdep (current_gdbarch)->solib_get_text_base (objfile);
+         text_offset = gdbarch_tdep (gdbarch)->solib_get_text_base (objfile);
        }
 
       bfd_get_section_contents (objfile->obfd, section, buf, 0, size);
This page took 0.028349 seconds and 4 git commands to generate.