diff options
| author | Tom Tromey <tromey@adacore.com> | 2026-03-10 08:15:24 -0600 |
|---|---|---|
| committer | Tom Tromey <tromey@adacore.com> | 2026-03-11 08:26:46 -0600 |
| commit | 969c57240e14cb84060c7256208d31fc7d38ec83 (patch) | |
| tree | 88568e0c21a17257b2e4d884b51fbc7c00949feb /gdb/python | |
| parent | 5877cffc87449ed2392e60a5b98ddc389388b9e3 (diff) | |
| download | binutils-969c57240e14cb84060c7256208d31fc7d38ec83.tar.gz binutils-969c57240e14cb84060c7256208d31fc7d38ec83.tar.bz2 binutils-969c57240e14cb84060c7256208d31fc7d38ec83.zip | |
Return bool from valid_task_id
This changes valid_task_id to return bool and updates some callers.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python')
| -rw-r--r-- | gdb/python/py-breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c index 408d4b9d857..c5d3d7e2d7e 100644 --- a/gdb/python/py-breakpoint.c +++ b/gdb/python/py-breakpoint.c @@ -371,7 +371,6 @@ bppy_set_task (PyObject *self, PyObject *newvalue, void *closure) { gdbpy_breakpoint_object *self_bp = (gdbpy_breakpoint_object *) self; long id; - int valid_id = 0; BPPY_SET_REQUIRE_VALID (self_bp); @@ -386,6 +385,7 @@ bppy_set_task (PyObject *self, PyObject *newvalue, void *closure) if (! gdb_py_int_as_long (newvalue, &id)) return -1; + bool valid_id = false; try { valid_id = valid_task_id (id); |
