Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37714845
en ru br
ALT Linux repos
S:13.2.0.43.854f46b6377-alt2
5.0: 6.6-alt3
4.1: 6.6-alt3
4.0: 6.6-alt2
3.0: 6.3-alt2

Group :: Development/Debuggers
RPM: gdb

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: gdb-6.3-ppcdotsolib-20041022.patch
Download


2004-10-22  Andrew Cagney  <cagney@gnu.org>
 
 	* solib-svr4.c (enable_break): Convert a symbol descriptor into
 	the corresponding function entry point.
 	(solib_break_names): Delete "._dl_debug_state", no longer needed.
2007-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
	Port to GDB-6.7.
 	
Index: gdb-6.8.50.20090802/gdb/solib-svr4.c
===================================================================
--- gdb-6.8.50.20090802.orig/gdb/solib-svr4.c	2009-08-03 10:03:36.000000000 +0200
+++ gdb-6.8.50.20090802/gdb/solib-svr4.c	2009-08-03 10:51:15.000000000 +0200
@@ -1431,7 +1431,15 @@ enable_break (struct svr4_info *info)
 	{
 	  sym_addr = bfd_lookup_symbol (tmp_bfd, *bkpt_namep);
 	  if (sym_addr != 0)
-	    break;
+	    {
+	      /* The symbol might be a descriptor, convert to into the
+		 corresponding code address.  */
+	      sym_addr = gdbarch_convert_from_func_ptr_addr (target_gdbarch,
+							     sym_addr,
+							     tmp_bfd_target);
+	      if (sym_addr != 0)
+		break;
+	    }
 	}
 
       if (sym_addr != 0)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin