]> git.ipfire.org Git - ipfire-3.x.git/blob - gdb/patches/gdb-6.3-ppcdotsolib-20041022.patch
wget: LDFLAGS were accidentially overwritten
[ipfire-3.x.git] / gdb / patches / gdb-6.3-ppcdotsolib-20041022.patch
1 2004-10-22 Andrew Cagney <cagney@gnu.org>
2
3 * solib-svr4.c (enable_break): Convert a symbol descriptor into
4 the corresponding function entry point.
5 (solib_break_names): Delete "._dl_debug_state", no longer needed.
6
7 2007-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 Port to GDB-6.7.
10
11 Index: gdb-6.8.50.20090802/gdb/solib-svr4.c
12 ===================================================================
13 --- gdb-6.8.50.20090802.orig/gdb/solib-svr4.c 2009-08-03 10:03:36.000000000 +0200
14 +++ gdb-6.8.50.20090802/gdb/solib-svr4.c 2009-08-03 10:51:15.000000000 +0200
15 @@ -1431,7 +1431,15 @@ enable_break (struct svr4_info *info)
16 {
17 sym_addr = bfd_lookup_symbol (tmp_bfd, *bkpt_namep);
18 if (sym_addr != 0)
19 - break;
20 + {
21 + /* The symbol might be a descriptor, convert to into the
22 + corresponding code address. */
23 + sym_addr = gdbarch_convert_from_func_ptr_addr (target_gdbarch,
24 + sym_addr,
25 + tmp_bfd_target);
26 + if (sym_addr != 0)
27 + break;
28 + }
29 }
30
31 if (sym_addr != 0)