aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2026-02-20 12:47:51 -0700
committerTom Tromey <tromey@adacore.com>2026-02-23 05:29:11 -0700
commit9d71572cbaf558051255c5f8b8fa577e40387e64 (patch)
tree1cee38f4c9116f8c18f8864121bece546e5bb14a /gdb/python/python-internal.h
parent0ab23e2707ad6099bb21d52b32dd9a096fe61f8c (diff)
downloadbinutils-9d71572cbaf558051255c5f8b8fa577e40387e64.tar.gz
binutils-9d71572cbaf558051255c5f8b8fa577e40387e64.tar.bz2
binutils-9d71572cbaf558051255c5f8b8fa577e40387e64.zip
Return gdbpy_ref<> from symtab_to_symtab_object
This changes symtab_to_symtab_object to return a gdbpy_ref<>, using the type system to convey that a new reference is always returned. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index 979bf2498da..8d101e8afb6 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -496,7 +496,7 @@ PyObject *gdbpy_register_tui_window (PyObject *self, PyObject *args,
PyObject *kw);
gdbpy_ref<> symtab_and_line_to_sal_object (struct symtab_and_line sal);
-PyObject *symtab_to_symtab_object (struct symtab *symtab);
+gdbpy_ref<> symtab_to_symtab_object (struct symtab *symtab);
gdbpy_ref<> symbol_to_symbol_object (struct symbol *sym);
PyObject *block_to_block_object (const struct block *block,
struct objfile *objfile);