This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Patch: Handle relative paths in .debug_line
- From: Garrison <garrison at mail dot ru>
- To: jimb at redhat dot com
- Cc: cagney at gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Thu, 30 Sep 2004 04:51:36 +0400
- Subject: Re: Patch: Handle relative paths in .debug_line
- References: <415B569E.2080805@mail.ru>
Garrison wrote:
Hi!
I've taken a look at dwarf standard, and I have a question (possibly
already answered elsewhere): it is specified that relative paths in list
are related to compilation directory, so why not make the substitution
while parsing the list? If it's OK please take a look at attached patch
(sorry if it wraps this time). It's against current CVS HEAD.
I'm not sure I got those make_cleanup() calls right, if so please correct
me.
Also I looked at regressions - this patch makes approximately the same number
of failures as original relative paths patch. Test case gdb.base/unload.exp
might show the reason - there seems to be a problem in handling relative paths
within regression testing scripts:
Running ../../../gdb-dejagnu/gdb/testsuite/gdb.base/unload.exp ...
ERROR: couldn't open "../../../gdb-dejagnu/gdb/testsuite/gdb.base/../../../gdb-dejagnu/gdb/testsuite/gdb.base/unloadshr.c":
no such file or directory
FAIL: gdb.base/unload.exp: rerun to shared library breakpoint
--
Kind regards,
Igor V. Kovalenko