This is the mail archive of the gdb-patches@sourceware.org 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: [rfa] Shared object matching for solib-som.c


> Date: Wed, 19 Apr 2006 16:29:09 +0800
> From: Randolph Chung <randolph@tausq.org>
> CC:  gdb-patches@sources.redhat.com
> 
> > Please don't use literal slash characters in GDB sources: they are
> > non-portable.  AFAICS, you simply need to use lbasename here, on both
> > file names.
> 
> I guess you mean "basename" instead of "lbasename".

No, I mean lbasename, the one from libiberty.  That solves a problem
of basename being not portable enough (I think we never use basename
in GDB, only lbasename, but I might be wrong).

> While I agree with your portability comment, I hope nobody is crazy
> enough to use SOM outside of hpux :)

Probably not, but people frequently lift code by copy/paste.  Anyway,
these are our coding standards, AFAIK.

> Anyway, I'll redo this using basename.

Thanks, but please use lbasename.


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