This is the mail archive of the gdb@sources.redhat.com 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: 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.


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