This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Look for system.gdbinit in specified --data-directory
On 11/13/2012 09:30 PM, Doug Evans wrote:
> On Wed, Nov 7, 2012 at 9:51 AM, <dje@google.com> wrote:
>> Hi.
>>
>> On targets where system.gdbinit lives in data-directory, IWBN if
>> gdb looked for it in the new place when data-directory is overridden
>> at startup.
>>
>> Ok to check in?
>>
>> 2012-11-07 Doug Evans <dje@google.com>
>>
>> * main.c (gdb_datadir_provided): New static global.
>> (get_init_files): If --data-directory is provided,
>> and SYSTEM_GDBINIT lives in data-directory, look for it there.
>
> Hi.
> I think this is reasonable and it's been soaking awhile (so to speak),
> so I will check this in in a few days if there are no objections.
I agree this is reasonable, but shouldn't this be documented
somewhere?
--
Pedro Alves