Discussion:
[Bug gdb/18380] New: 'help python' gives Python 2 example
dholth at gmail dot com
2015-05-06 02:07:20 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Bug ID: 18380
Summary: 'help python' gives Python 2 example
Product: gdb
Version: 7.8
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: dholth at gmail dot com
Target Milestone: ---

Even though gdb embeds Python 3, the help statement shows a Python 2 example.
Typing the example yields SyntaxError. Instead, it should read python print(23)

(gdb) help python
Evaluate a Python command.

The command can be given as an argument, for instance:

python print 23
--
You are receiving this mail because:
You are on the CC list for the bug.
jonah at kichwacoders dot com
2016-10-22 08:29:43 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Jonah Graham <jonah at kichwacoders dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |jonah at kichwacoders dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-18 17:27:55 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |good-first-bug
CC| |tromey at sourceware dot org
Component|gdb |python
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-08 09:44:26 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |tromey at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
cvs-commit at gcc dot gnu.org
2018-09-10 13:50:08 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <***@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5

commit a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5
Author: Tom Tromey <***@tromey.com>
Date: Sat Sep 8 09:13:37 2018 -0600

Fix help text for "python" command

PR python/18380 points out that the example in the "help python" text
will only work in Python 2. This changes the example to be valid
syntax for both Python 2 and Python 3.

gdb/ChangeLog
2018-09-10 Tom Tromey <***@tromey.com>

PR python/18380:
* python/python.c (_initialize_python): Make example in "python"
help work in Python 3.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-10 13:50:59 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18380

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |8.3

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...