From 8b87fbe6bb5f682fef889630664884ea8e7d6444 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Wed, 15 Sep 2021 13:34:14 +0100 Subject: gdb/python: new gdb.architecture_names function Add a new function to the Python API, gdb.architecture_names(). This function returns a list containing all of the supported architecture names within the current build of GDB. The values returned in this list are all of the possible values that can be returned from gdb.Architecture.name(). --- gdb/python/python-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/python/python-internal.h') diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 022d4a6..2ad3bc9 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -469,6 +469,7 @@ PyObject *objfpy_get_xmethods (PyObject *, void *); PyObject *gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw); PyObject *gdbarch_to_arch_object (struct gdbarch *gdbarch); +PyObject *gdbpy_all_architecture_names (PyObject *self, PyObject *args); PyObject *gdbpy_new_register_descriptor_iterator (struct gdbarch *gdbarch, const char *group_name); -- cgit v1.1