public inbox for
 help / color / mirror / Atom feed
* elfutils import and debuginfo
@ 2008-03-18  2:11 Stan Cox
  0 siblings, 0 replies; only message in thread
From: Stan Cox @ 2008-03-18  2:11 UTC (permalink / raw)
  To: Frysk List

This "patch" gets this test, which is testing frysk handling of external
debuginfo, to pass:
./TestRunner frysk.hpd.TestSysRoot
 Running testHaveSysRoot(frysk.hpd.TestSysRoot) ...PASS
 OK (1 test)

The test artificially creates a chroot by
creating /usr/bin, /usr/lib/debug, etc under a test directory and
populating that by using cp, debugedit and ed-strip.  With elfutils
0.133 the test hits the case SHT_DYNSYM and ends up returning
DWFL_E_NOERROR.  With elfutils  0.129 DWFL_E_NO_SYMTAB would be returned
resulting in find_debuginfo being called to find the debuginfo.

diff --git a/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
index 7dd9b53..ac13571 100644
--- a/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
+++ b/frysk-imports/elfutils/libdwfl/dwfl_module_getdwarf.c
@@ -253,6 +253,7 @@ load_symtab (struct dwfl_file *file, struct
dwfl_file **symfile,
+#if 0
   if (*symscn != NULL)
     /* We found one, though no SHT_SYMTAB_SHNDX to go with it.  */
     return DWFL_E_NOERROR;
@@ -260,6 +261,7 @@ load_symtab (struct dwfl_file *file, struct
dwfl_file **symfile,
   /* We found no SHT_SYMTAB, so any SHT_SYMTAB_SHNDX was bogus.
      We might have found an SHT_DYNSYM and set *SYMSCN et al though.
   *xndxscn = NULL;
   return DWFL_E_NO_SYMTAB;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-18  2:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18  2:11 elfutils import and debuginfo Stan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).