* [RFA/NEWS] source is able to load Python scripts.
@ 2010-01-18 7:04 Joel Brobecker
2010-01-18 17:51 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2010-01-18 7:04 UTC (permalink / raw)
To: gdb-patches; +Cc: Joel Brobecker
This patch documents the fact that the "source" comment is now able to
load Python scripts. It also documents a new setting that was introduced
to configure the behavior of the "source" command.
gdb/ChangeLog:
* NEWS: Document the source command enhancement allowing it
to load Python scripts. Document the "set/show script-extension"
commands.
Ok to commit?
Thanks,
--
Joel
---
gdb/NEWS | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/gdb/NEWS b/gdb/NEWS
index 4b88ee7..98183c4 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -81,6 +81,14 @@ info variables
The info variables command now displays variable definitions. Files
which only declare a variable are not shown.
+source
+ The source command is now capable of sourcing Python scripts.
+ This feature is dependent on the debugger being build with Python
+ support.
+
+ Related to this enhancement is also the introduction a new command
+ "set script-extension" (see below).
+
* New commands (for set/show, see "New options" below)
record save [<FILENAME>]
@@ -163,6 +171,15 @@ show disconnected-tracing
loses its connection to GDB. If 0, the target is to stop tracing
upon disconnection.
+set script-extension off|soft|strict
+show script-extension
+ If set to off, the debugger does not perform any script language
+ recognition, and all sourced files are assumed to be GDB scripts.
+ If set to "soft" (the default), files are sourced according to
+ filename extension, falling back to GDB scripts if the first
+ evaluation failed.
+ If set to "strict", files are sourced according to filename extension.
+
* New remote packets
QTDV
--
1.6.3.3
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [RFA/NEWS] source is able to load Python scripts.
2010-01-18 7:04 [RFA/NEWS] source is able to load Python scripts Joel Brobecker
@ 2010-01-18 17:51 ` Eli Zaretskii
2010-01-19 10:20 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-01-18 17:51 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches, brobecker
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: Joel Brobecker <brobecker@adacore.com>
> Date: Mon, 18 Jan 2010 11:04:25 +0400
>
> This patch documents the fact that the "source" comment is now able to
> load Python scripts. It also documents a new setting that was introduced
> to configure the behavior of the "source" command.
Thanks.
> + Related to this enhancement is also the introduction a new command
> + "set script-extension" (see below). ^^^^^^^^^^^^^^
"of a new command"
> + If set to off, the debugger does not perform any script language
> + recognition, and all sourced files are assumed to be GDB scripts.
> + If set to "soft" (the default), files are sourced according to
> + filename extension, falling back to GDB scripts if the first
> + evaluation failed.
> + If set to "strict", files are sourced according to filename extension.
If it's "strict" and "soft", then it should also be "off", with
quotes, right?
Btw, the patch for the manual that I just approved didn't document
"set script-extension", did I miss something?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA/NEWS] source is able to load Python scripts.
2010-01-18 17:51 ` Eli Zaretskii
@ 2010-01-19 10:20 ` Joel Brobecker
0 siblings, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2010-01-19 10:20 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
> * NEWS: Document the source command enhancement allowing it
> to load Python scripts. Document the "set/show script-extension"
> commands.
Thanks - I checked in the patch after having fixed the issues you spotted.
> Btw, the patch for the manual that I just approved didn't document
> "set script-extension", did I miss something?
Humpf, you're right. I will take care of that ASAP.
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-19 10:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 7:04 [RFA/NEWS] source is able to load Python scripts Joel Brobecker
2010-01-18 17:51 ` Eli Zaretskii
2010-01-19 10:20 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox