Rename internal Python functions to start with an underscore
authorChristian Biesinger <cbiesinger@google.com>
Thu, 15 Aug 2019 16:29:04 +0000 (11:29 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 15 Aug 2019 19:21:57 +0000 (14:21 -0500)
commit08235187bcdd66599884f33b046cf8abcf949727
tree25b24ee7c7e7f2faafd82583addf7b4dac38cc57
parent080a488354d63fec9791a26fadd15e0c5246983d
Rename internal Python functions to start with an underscore

I could not tell if GdbSetPythonDirectory is internal or not because
I could not find any references to it, so I left it as-is.

Tested by running the testsuite on gdb.python/*.exp; everything still
passes.

2019-08-15  Christian Biesinger  <cbiesinger@google.com>

* python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
leading underscore.
(GdbOutputErrorFile): Likewise.
(global scope): Adjust constructor calls to GdbOutput{,Error}File
accordingly.
(execute_unwinders): Rename to have a leading underscore.
(auto_load_packages): Likewise.
(global scope): Adjust call to auto_load_packages accordingly.
(GdbSetPythonDirectory): Likewise.
* python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
instead of execute_unwinders.

gdb/testsuite/ChangeLog:

2019-08-15  Christian Biesinger  <cbiesinger@google.com>

* gdb.python/python.exp: Expect a leading underscore on
GdbOutput{,Error}File.
gdb/ChangeLog
gdb/python/lib/gdb/__init__.py
gdb/python/py-unwind.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp