This is the mail archive of the 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: Can we make set the data-directory to @srcdir@?

On Monday 05 October 2009, Pedro Alves wrote:
> On Sunday 04 October 2009 14:53:58, Pedro Alves wrote:
> > On Friday 02 October 2009 22:05:06, Joel wrote:
> > > > 2009-10-02  Pedro Alves  <>
> > > >
> > > > 	* set data-directory to @srcdir@.
> On second thought, this was a bad idea.  .gdbinit is for the
> top (maybe system) gdb, not for the just built, non-installed
> gdb.  Sorry for the confusion.  I'll revert.

Also, there's one more thing I'd like to point out.  The catch syscall 
testcase partially relies in the fact that GDB will not have the data-
directory automatically set on startup.  This is because, among other things, 
it has to test how GDB behaves when it doesn't have access to the XML files 
for the architecture (or even when those files don't exist at all), and this 
scenario is achieved when data-directory is empty.

Anyway, if we decide to make this parameter be automatically set upon GDB's 
initialization in the build dir, we have to make sure that this doesn't break 
the testcase (I didn't test this specific case yet, but IIRC it's likely that 
it will break).  If it does, we may need to unset it on some situations inside 
the testcase in order to make it work properly.

Just my two cents.  Regards,

Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil

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