aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-07-31 15:58:20 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-11-10 10:18:22 +0000
commit629bcc68d799ff77a5f174e2f5300f9a26a83521 (patch)
tree2e591d77140d10d5a1b7e8f3fe5eb640d6b5516f /gdb/python/python.c
parent73d7312ff6196747ff64f74ddcc6cb1c032a68b4 (diff)
downloadbinutils-629bcc68d799ff77a5f174e2f5300f9a26a83521.zip
binutils-629bcc68d799ff77a5f174e2f5300f9a26a83521.tar.gz
binutils-629bcc68d799ff77a5f174e2f5300f9a26a83521.tar.bz2
gdb: rename ext_lang_missing_debuginfo_result
In preparation for later commits in this series, rename ext_lang_missing_debuginfo_result to ext_lang_missing_file_result. A later commit will add additional Python APIs to handle different types of missing files beyond just debuginfo. This is just a rename commit, there should be no functional changes after this commit. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index cc06526..cceb7aa 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -128,7 +128,7 @@ static std::optional<std::string> gdbpy_colorize
(const std::string &filename, const std::string &contents);
static std::optional<std::string> gdbpy_colorize_disasm
(const std::string &content, gdbarch *gdbarch);
-static ext_lang_missing_debuginfo_result gdbpy_handle_missing_debuginfo
+static ext_lang_missing_file_result gdbpy_handle_missing_debuginfo
(const struct extension_language_defn *extlang, struct objfile *objfile);
/* The interface between gdb proper and loading of python scripts. */
@@ -1755,10 +1755,10 @@ gdbpy_get_current_objfile (PyObject *unused1, PyObject *unused2)
/* Implement the 'handle_missing_debuginfo' hook for Python. GDB has
failed to find any debug information for OBJFILE. The extension has a
chance to record this, or even install the required debug information.
- See the description of ext_lang_missing_debuginfo_result in
- extension-priv.h for details of the return value. */
+ See the description of ext_lang_missing_file_result in extension-priv.h
+ for details of the return value. */
-static ext_lang_missing_debuginfo_result
+static ext_lang_missing_file_result
gdbpy_handle_missing_debuginfo (const struct extension_language_defn *extlang,
struct objfile *objfile)
{
@@ -1806,7 +1806,7 @@ gdbpy_handle_missing_debuginfo (const struct extension_language_defn *extlang,
if (PyBool_Check (pyo_execute_ret.get ()))
{
bool try_again = PyObject_IsTrue (pyo_execute_ret.get ());
- return ext_lang_missing_debuginfo_result (try_again);
+ return ext_lang_missing_file_result (try_again);
}
if (!gdbpy_is_string (pyo_execute_ret.get ()))
@@ -1826,7 +1826,7 @@ gdbpy_handle_missing_debuginfo (const struct extension_language_defn *extlang,
return {};
}
- return ext_lang_missing_debuginfo_result (std::string (filename.get ()));
+ return ext_lang_missing_file_result (std::string (filename.get ()));
}
/* Compute the list of active python type printers and store them in