This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdb/libiberty] Improve support for cross debugging shared libraries with DOS style pathnames (from Unix hosts)
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Apr 2010 13:46:15 -0400
- Subject: Re: [gdb/libiberty] Improve support for cross debugging shared libraries with DOS style pathnames (from Unix hosts)
- References: <201004221824.27019.pedro@codesourcery.com>
On Thu, Apr 22, 2010 at 06:24:26PM +0100, Pedro Alves wrote:
> (At some point, this patch also included a new user knob
> to make source file name comparision flavour (and
> mostly s/FILENAME_CMP/source_filename_cmp/,
> s/lbasename/source_lbasename throught the sources/debug info
> handling parts of GDB.) depend on build file system. That's because
> often you stumble on the fact that cross debugging a Windows/SymbianOS
> binary _built_ on non-Unix, includes `\' in debug info, and a Unix
> GDB can't grok that. I mention this, in case someone would
> suggest this new setting should be more general and cover that
> case as well. It shouldn't: the concepts are different --- target
> paths, vs source/debug info/build paths, and you'll want to be
> able to tweak them independently.)
I agree with this patch's approach, and with this separation. One
important way that source paths are different: a host path is clearly
either Unix or DOS. A target path, ditto. A source path, not so
much. It is common to have half and half, e.g. if your toolchain was
built on Linux but ran on Windows.
--
Daniel Jacobowitz
CodeSourcery