diff options
| author | Tom Tromey <tromey@adacore.com> | 2026-02-20 13:20:56 -0700 |
|---|---|---|
| committer | Tom Tromey <tromey@adacore.com> | 2026-02-23 05:29:12 -0700 |
| commit | a93acde059bbdfc038fff232c834a58b3835bdcf (patch) | |
| tree | 3302825f30036f98b533856d166228cc6d298546 /gdb/python/python.c | |
| parent | 472748485eb75a4a5744b6829e47848cba58ef59 (diff) | |
| download | fsf-binutils-gdb-a93acde059bbdfc038fff232c834a58b3835bdcf.zip fsf-binutils-gdb-a93acde059bbdfc038fff232c834a58b3835bdcf.tar.gz fsf-binutils-gdb-a93acde059bbdfc038fff232c834a58b3835bdcf.tar.bz2 | |
Return gdbpy_ref<> from gdbarch_to_arch_object
This changes gdbarch_to_arch_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.c')
| -rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 9862d1a..8739864 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1421,7 +1421,7 @@ gdbpy_colorize_disasm (const std::string &content, gdbarch *gdbarch) return {}; } - gdbpy_ref<> gdbarch_arg (gdbarch_to_arch_object (gdbarch)); + gdbpy_ref<> gdbarch_arg = gdbarch_to_arch_object (gdbarch); if (gdbarch_arg == nullptr) { gdbpy_print_stack (); |
