External debug symbols

Eli Zaretskii eliz@is.elta.co.il
Mon Sep 23 21:45:00 GMT 2002


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.



More information about the Gdb mailing list