[gdb/python] Use gdbpy_handle_gdb_exception in valpy_assign_core

In valpy_assign_core we have:
...
  catch (const gdb_exception &except)
    {
      gdbpy_convert_exception (except);
      return false;
     }
...

Use instead:
...
  catch (const gdb_exception &except)
    {
      return gdbpy_handle_gdb_exception (false, except);
    }
...

No functional changes.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Tom de Vries
2024-09-24 13:06:32 +02:00
parent fa61a48db2
commit e1863c7d7c

View File

@@ -921,8 +921,7 @@ valpy_assign_core (value_object *self, struct value *new_value)
}
catch (const gdb_exception &except)
{
gdbpy_convert_exception (except);
return false;
return gdbpy_handle_gdb_exception (false, except);
}
return true;