gdb/jit: return bool in jit_breakpoint_re_set_internal and jit_read_descriptor
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 22 Jun 2020 12:03:33 +0000 (14:03 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 22 Jun 2020 12:03:33 +0000 (14:03 +0200)
commitbd920864f3dc2cad376989a642ab774aef6b2fce
treefea54fdfbc5e526b872df010b34b96b386d2246a
parentf809832224cc45eb58812f6d4bb03cbf52fad980
gdb/jit: return bool in jit_breakpoint_re_set_internal and jit_read_descriptor

This is a minor refactoring that converts the return type of
jit_read_descriptor and jit_breakpoint_re_set_internal functions
from 'int' to 'bool'.

The return value logic of jit_breakpoint_re_set_internal has been
reversed.  With this patch it now returns true if the jit breakpoint
has been successfully initialized.

gdb/ChangeLog:
2020-06-22  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>

* jit.c (jit_read_descriptor): Use bool as the return type.
(jit_breakpoint_re_set_internal): Use bool as the return type.
Invert the return value logic; return true if the jit breakpoint
has been successfully initialized.
(jit_inferior_init): Update the call to
jit_breakpoint_re_set_internal.
gdb/ChangeLog
gdb/jit.c