| commit | bdc8cfc1e43ebc4029cf130c678b9e1a4e4e5682 | [log] [tgz] |
|---|---|---|
| author | Tom Tromey <tom@tromey.com> | Wed Apr 27 15:22:56 2022 -0600 |
| committer | Tom Tromey <tom@tromey.com> | Sun Aug 21 08:03:42 2022 -0600 |
| tree | 8bfc24e3261a01621b4c01020a35db142213c9de | |
| parent | 12f26cb22e56ab8c26dd5a00f32158af561da4cb [diff] |
Fix crash in gdbpy_parse_register_id I noticed that gdbpy_parse_register_id would assert if passed a Python object of a type it was not expecting. The included test case shows this crash. This patch fixes the problem and also changes gdbpy_parse_register_id to be more "Python-like" -- it always ensures the Python error is set when it fails, and the callers now simply propagate the existing exception.