This is the mail archive of the mailing list for the Archer 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]

[python] (trivial) Remove documentation prompts from example

Something I missed yesterday. In the simple example with the GDB's "in-built" Python interpreter I read:

(gdb)  python
Type python script
End with a line saying just "end".
>print 23

But what actually happens is

(gdb) python

As a beginner to this work this confused me for a few seconds. I ended up waiting for the same prompt that was shown in the documentation. (I thought that Python was loading or something). There are two possible ways to fix this. Make GDB match the documentation by printing the "Type python script" prompt, or change the documentation to match GDB behaviour. I opted for the latter as the documentations informs the user how to start and end an interactive Python session in the narrative before the example.




2009-01-14 Phil Muldoon <>

   * gdb.texinfo (Python Commands): Remove documentation
   prompts from scripted example.

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b02ff93..b4b9b27 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -18087,8 +18087,6 @@ containing @code{end}.  For example:
 (@value{GDBP}) python
-Type python script
-End with a line saying just "end".
 >print 23

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