This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Change in binutils-gdb[master]: [RFC][gdb] Make script-extension strict reject unknown extensions
- From: "Tom de Vries (Code Review)" <gerrit at gnutoolchain-gerrit dot osci dot io>
- To: gdb-patches at sourceware dot org
- Cc: Christian Biesinger <cbiesinger at google dot com>
- Date: Mon, 14 Oct 2019 13:41:45 -0400
- Subject: Change in binutils-gdb[master]: [RFC][gdb] Make script-extension strict reject unknown extensions
- Auto-submitted: auto-generated
- References: <gerrit.1571060583000.Ia357a4b0b1042808401578266da80919035ad576@gnutoolchain-gerrit.osci.io>
- Reply-to: tdevries at suse dot de, cbiesinger at google dot com, gdb-patches at sourceware dot org
Tom de Vries has posted comments on this change. ( https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/40 )
Change subject: [RFC][gdb] Make script-extension strict reject unknown extensions
......................................................................
Patch Set 1:
> Patch Set 1:
>
> A couple questions about this:
> - If specified in -ix or a system gdbinit file, does it prevent reading ~/.gdbinit?
I marked ~/.gdbinit execution using:
...
$ cat ~/.gdbinit
python
print ("HERE")
...
And using this command I can see iex is executed after ~/.gdbinit:
...
$ gdb -q -batch -iex "echo bla1\n" -iex "set script-extension strict" -iex "echo bla2\n"
HERE
bla1
bla2
...
But for the system gdbinit, it's yes.
> - Does it prevent reading a file in --command if it doesn't have the extension?
Yes:
...
$ gdb -batch -q -ex "set script-extension strict" --command=bla.bla
Scripting in the "<UNKNOWN>" language is not supported in this copy of GDB.
....
--
To view, visit https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/40
To unsubscribe, or for help writing mail filters, visit https://gnutoolchain-gerrit.osci.io/r/settings
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: Ia357a4b0b1042808401578266da80919035ad576
Gerrit-Change-Number: 40
Gerrit-PatchSet: 1
Gerrit-Owner: Tom de Vries <tdevries@suse.de>
Gerrit-Reviewer: Tom de Vries <tdevries@suse.de>
Gerrit-CC: Christian Biesinger <cbiesinger@google.com>
Gerrit-Comment-Date: Mon, 14 Oct 2019 17:41:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment