* [python] (trivial) Remove documentation prompts from example
@ 2009-01-14 13:46 Phil Muldoon
2009-01-14 17:34 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Phil Muldoon @ 2009-01-14 13:46 UTC (permalink / raw)
To: Project Archer
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
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
>end
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.
Regards
Phil
ChangeLog:
2009-01-14 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Python Commands): Remove documentation
prompts from scripted example.
[-- Attachment #2: gdb.texinfo.patch2 --]
[-- Type: text/plain, Size: 315 bytes --]
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:
@smallexample
(@value{GDBP}) python
-Type python script
-End with a line saying just "end".
>print 23
>end
23
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [python] (trivial) Remove documentation prompts from example
2009-01-14 13:46 [python] (trivial) Remove documentation prompts from example Phil Muldoon
@ 2009-01-14 17:34 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2009-01-14 17:34 UTC (permalink / raw)
To: Phil Muldoon; +Cc: Project Archer
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> 2009-01-14 Phil Muldoon <pmuldoon@redhat.com>
Phil> * gdb.texinfo (Python Commands): Remove documentation
Phil> prompts from scripted example.
Looks good. Feel free to check in doc fixes without a review -- just
an "FYI" patch to the list.
thanks,
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-14 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14 13:46 [python] (trivial) Remove documentation prompts from example Phil Muldoon
2009-01-14 17:34 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).