Hello community, here is the log from the commit of package gdb checked in at Wed Mar 7 01:46:43 CET 2007. -------- --- gdb/gdb.changes 2007-03-05 22:06:14.000000000 +0100 +++ /mounts/work_src_done/STABLE/gdb/gdb.changes 2007-03-06 18:47:28.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Mar 6 18:47:10 CET 2007 - schwab@suse.de + +- Better handling of ppc64 function descriptor symbols. + +------------------------------------------------------------------- New: ---- elf-symtab-read.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.Y28456/_old 2007-03-07 01:46:33.000000000 +0100 +++ /var/tmp/diff_new_pack.Y28456/_new 2007-03-07 01:46:33.000000000 +0100 @@ -21,7 +21,7 @@ Autoreqprov: on PreReq: %{install_info_prereq} Version: 6.6 -Release: 13 +Release: 14 Summary: The GNU Debugger Source: gdb-%{version}.tar.bz2 Patch1: gdb-misc.patch @@ -39,6 +39,7 @@ Patch15: solib-extract-address.diff Patch16: pc-regnum.diff Patch17: show-endian.diff +Patch18: elf-symtab-read.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -84,6 +85,7 @@ %patch15 %patch16 %patch17 -p1 +%patch18 %build CFLAGS="$RPM_OPT_FLAGS" \ @@ -139,6 +141,8 @@ %endif %changelog +* Tue Mar 06 2007 - schwab@suse.de +- Better handling of ppc64 function descriptor symbols. * Mon Mar 05 2007 - schwab@suse.de - Remove obsolete patch. - Fix show endian. ++++++ elf-symtab-read.diff ++++++ Index: gdb/elfread.c =================================================================== RCS file: /cvs/src/src/gdb/elfread.c,v retrieving revision 1.57 diff -u -a -p -u -p -a -r1.57 gdb/elfread.c --- gdb/elfread.c 9 Jan 2007 17:58:50 -0000 1.57 +++ gdb/elfread.c 6 Mar 2007 17:10:24 -0000 @@ -182,7 +182,10 @@ elf_symtab_read (struct objfile *objfile offset = ANOFFSET (objfile->section_offsets, sym->section->index); if (dynamic - && sym->section == &bfd_und_section + && (sym->section == &bfd_und_section + /* On PowerPC64 we also want to add the function descriptor + symbols. */ + || strcmp (sym->section->name, ".opd") == 0) && (sym->flags & BSF_FUNCTION)) { struct minimal_symbol *msym; @@ -309,7 +312,9 @@ elf_symtab_read (struct objfile *objfile { if (sym->flags & (BSF_GLOBAL | BSF_WEAK)) { - if (sym->section->flags & SEC_LOAD) + if (sym->flags & BSF_FUNCTION) + ms_type = mst_text; + else if (sym->section->flags & SEC_LOAD) { ms_type = mst_data; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org