[Top] [All Lists]

tools for modifying dwarf symbols

To: Linux Mips Mailing List <>
Subject: tools for modifying dwarf symbols
From: Gerald Champagne <>
Date: 12 Sep 2002 17:30:59 -0500
Original-recipient: rfc822;
Is there a tool that will allow me to modify the path of filenames in
dwarf symbols in an elf file?  I've looked at everything in binutils,
but these tools only manipulate the binary portion of elf files.  I
don't see any similar tools for modifying dwarf debug symbols in an elf

My problem is that my debugger can't read the source files when absolute
paths are used in filenames.  In my environment, I have to compile on
one system using one path to the files, then later I have to access the
same data from the debugger using a different path.  This works when the
filenames are embedded using relative paths.  Larger systems like the
linux kernel or the pmon boot loader use absolute path names everywhere
in the makefiles.  These absolute paths are embedded in the elf file and
my debugger gets confused.

Is there a tool or library that will simplify manipulating the dwarf
data in the elf files?



<Prev in Thread] Current Thread [Next in Thread>
  • tools for modifying dwarf symbols, Gerald Champagne <=