mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
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>
This commit is contained in:
parent
472748485e
commit
a93acde059
7 changed files with 8 additions and 8 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue