8sa1-binutils-gdb/gdb/python
Andrew Burgess 763b8efdcc gdb/doc: fix the example for get_set_string in Python API docs
The small example for gdb.Parameter.get_set_string does not return a
string.  The documentation is very clear that this method must return
a string, and indeed, inspecting the code in gdb/python/py-param.c
shows that a string return value is required (if an exception is not
thrown).

While inspecting the code in gdb/python/py-param.c I noticed that the
comment for the C++ code that invokes the Python get_set_string method
is wrong, so I updated that too.

gdb/ChangeLog:

	* python/py-param.c (get_set_value): Update header comment.

gdb/doc/ChangeLog:

	* python.texinfo (Parameters In Python): Return empty string in
	small example code.
2021-03-18 16:55:37 +00:00
..
lib/gdb
py-all-events.def
py-arch.c
py-auto-load.c
py-block.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-bpevent.c
py-breakpoint.c
py-cmd.c
py-continueevent.c
py-event-types.def Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c
py-frame.c Also compare frame_id_is_next in frapy_richcompare 2021-02-07 19:08:23 +01:00
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-infevents.c
py-infthread.c
py-instruction.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-instruction.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-objfile.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-param.c gdb/doc: fix the example for get_set_string in Python API docs 2021-03-18 16:55:37 +00:00
py-prettyprint.c
py-progspace.c
py-record-btrace.c
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c gdb: make some variables static 2021-01-20 20:55:05 -05:00
py-record.h
py-ref.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-registers.c
py-signalevent.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c
py-threadevent.c
py-tui.c
py-type.c
py-unwind.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-utils.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-value.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h
python.c
python.h