]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/doc: update examples in gdb.Progspace and gdb.Objfile docs
authorAndrew Burgess <aburgess@redhat.com>
Wed, 10 Jan 2024 15:43:06 +0000 (15:43 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 12 Jan 2024 11:21:34 +0000 (11:21 +0000)
commit7ccdf9c0fb4b57739bf3028d5d4b40bf63fd9c65
tree17054306ba7add024a941fc4bfce6bb79224b955
parent53d0889088d00661c97dfd9496f0aea7c4499f32
gdb/doc: update examples in gdb.Progspace and gdb.Objfile docs

This commit updates the Python example code in the gdb.Progspace and
gdb.Objfile sections of the docs.  Changes made:

  1. Use @value{GDBP} for the GDB prompt rather than
  hard-coding (gdB),

  2. Use @group...@end group to split the example code into
  unbreakable chunks, and

  3. Add parenthesis to the Python print() calls in the examples.  In
  Python 2 it was OK to drop the parenthesis, but now GDB is Python 3
  only, example code should include the parenthesis.

Approved-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
gdb/doc/python.texi