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] |
On Tue, 24 Sep 2002, Eli Zaretskii wrote: > > 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. Oh, I missed a place where I should be using IS_DIR_SEPARATOR, new patch attached. Still, I just hardcode / when i want to add directory separators, but this seems to be common in gdb. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson Red Hat, Inc alexl@redhat.com alla@lysator.liu.se He's a fast talking alcoholic vampire hunter who hides his scarred face behind a mask. She's a strong-willed tempestuous barmaid living homeless in New York's sewers. They fight crime!
Attachment:
gdb_debug3.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |