This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: handle "MiniDebuginfo" section


>>>>> "Ulrich" == Ulrich Weigand <uweigand@de.ibm.com> writes:

Tom> Can you try the appended?

Ulrich> Yes, that works for me!  Thanks for the quick fix!

I'm going to check it in with this ChangeLog:

2012-11-29  Tom Tromey  <tromey@redhat.com>

	* gdb.base/gnu-debugdata.exp (run, pipeline): Don't use lassign.

Ulrich> FAIL: gdb.base/gnu-debugdata.exp: objcopy 1
Ulrich> Apparently this happens because:
Ulrich> objcopy -S --remove-section .gdb_index --remove-section .comment
Ulrich> --keep-symbols=/home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata.keep_symbols
Ulrich> /home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata
Ulrich> /home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata.mini_debuginfo

Ulrich> returns a non-zero exit code since the original binary has no .gdb_index
Ulrich> section (probably because the system compiler is old) ...

My system doesn't make a .gdb_index by default.
So it must be something else.

Does your objcopy work if you omit that --remove-section?
I wonder if it is an objcopy difference.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]