This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: fix PR 13596
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 03 Feb 2012 08:19:09 -0700
- Subject: FYI: fix PR 13596
I'm checking this in.
This fixes PR 13596. The bug was that gdb did not build on HPUX 11.
I think the problem was an incomplete change earlier; in any case, this
simple patch was tested by the patch reporter and fixes the problem.
Tom
2012-02-03 Tom Tromey <tromey@redhat.com>
PR gdb/13596:
* solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
bfd_lookup_symbol_from_symtab.
* solib-pa64.c (pa64_solib_create_inferior_hook): Use
gdb_bfd_lookup_symbol_from_symtab.
Index: solib-pa64.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-pa64.c,v
retrieving revision 1.32
diff -u -r1.32 solib-pa64.c
--- solib-pa64.c 4 Jan 2012 08:17:11 -0000 1.32
+++ solib-pa64.c 3 Feb 2012 15:17:54 -0000
@@ -383,8 +383,8 @@
routine. */
load_addr = regcache_read_pc (get_current_regcache ())
- tmp_bfd->start_address;
- sym_addr = bfd_lookup_symbol_from_symtab (tmp_bfd, cmp_name,
- "__dld_break");
+ sym_addr = gdb_bfd_lookup_symbol_from_symtab (tmp_bfd, cmp_name,
+ "__dld_break");
sym_addr = load_addr + sym_addr + 4;
/* Create the shared library breakpoint. */
Index: solib.h
===================================================================
RCS file: /cvs/src/src/gdb/solib.h,v
retrieving revision 1.32
diff -u -r1.32 solib.h
--- solib.h 4 Jan 2012 08:17:11 -0000 1.32
+++ solib.h 3 Feb 2012 15:17:54 -0000
@@ -86,9 +86,9 @@
/* Look up symbol from symbol table. */
-extern CORE_ADDR bfd_lookup_symbol_from_symtab (bfd *abfd,
- int (*match_sym) (asymbol *,
- void *),
- void *data);
+extern CORE_ADDR gdb_bfd_lookup_symbol_from_symtab (bfd *abfd,
+ int (*match_sym) (asymbol *,
+ void *),
+ void *data);
#endif /* SOLIB_H */