This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: External debug symbols
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Alexander Larsson <alexl at redhat dot com>
- Cc: Elena Zannoni <ezannoni at redhat dot com>, gdb at sources dot redhat dot com, Jim Blandy <jimb at redhat dot com>
- Date: Tue, 24 Sep 2002 06:42:19 +0200 (IST)
- Subject: Re: External debug symbols
On Mon, 23 Sep 2002, Alexander Larsson wrote:
> > For the below, in theory is Ok, but I would suggest looking at the
> > function openp() (in source.c) and how it is used in the solib_open()
> > function in solib.c. The tricky part is going to be assuring that the
> > filename is portable, i.e. working on windows/dos systems where the
> > directory separator is '\'. Look at IS_DIR_SEPARATOR, IS_ABSOLUTE_PATH
> > in the libiberty directory.
>
> I don't want to use openp() because i don't want the first availible file.
> I want the first one that matches the checksum. I can't see how i can use
> openp() to accomplish that.
Nevertheless, the code that analizes file names must be portable, so it
has to use IS_DIR_SEPARATOR, IS_ABSOLUTE_PATH, and the like instead of a
literal '/' etc.