Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Why is .gdbinit specified explicitly?

Oh, I see. I somehow misinterpreted "command file" as "command line". Thanks for pointing it out.

-sergey


On Mon, May 20, 2013 at 6:37 PM, Marc Khouzam <marc.khouzam@xxxxxxxxxxxx> wrote:
I'm not sure what you mean by GDB command-line.  We launch GDB with 'gdb --nx'.  We then specify the gdbinit file to be used, by using an MI command.  '.gdbinit' is used because it is specified in the launch configuration.

The idea was to allow people extending DSF-GDB to easily override any configuration that was being done by default.


Best regards,

Marc


----- Original Message -----
From: Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent: 20-05-2013 16:48
Subject: Re: [cdt-dev] Why is .gdbinit specified explicitly?


A desire to support different init files in different configurations doesn't seem to be relevant to the choice of the default gdb command line.


On Mon, May 20, 2013 at 1:15 PM, Eugene Ostroukhov <eostroukhov@xxxxxxxxx> wrote:
I assume it's for scenarios like having different init files in different debug configurations.


On Mon, May 20, 2013 at 12:14 PM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:
This only makes it more mysterious. Why pass .gdbinit after --nx on the command line? What purpose does it achieve?

-sergey


On Mon, May 20, 2013 at 12:02 PM, Eugene Ostroukhov <eostroukhov@xxxxxxxxx> wrote:
There's this comment in GDBBackend:197 (my line number might be slightly off), don't know if you've seen it:

// Don't read the gdbinit file here.  It is read explicitly in

// the LaunchSequence to make it easier to customize.

gdbCommandLine.append(" --nx"); //$NON-NLS-1$



On Mon, May 20, 2013 at 11:20 AM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:
Does anybody know why DSF GDB default for GDB command line is ".gdbint"? Doesn't GDB load .gdbinit anyway, even when it is not specified on the command line?

-sergey 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top