diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-03 10:25:18 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-08-03 10:27:00 -0600 |
commit | 5c9adb880eb1ed259007a376b305027d397948e8 (patch) | |
tree | 1f56baaffdeea73d1b57841fd9a189a43cdb68f3 /gdb | |
parent | 30baee6865571bb0385dbc6ee7e06701e1253028 (diff) | |
download | gdb-5c9adb880eb1ed259007a376b305027d397948e8.zip gdb-5c9adb880eb1ed259007a376b305027d397948e8.tar.gz gdb-5c9adb880eb1ed259007a376b305027d397948e8.tar.bz2 |
Remove f-string from DAP
One more f-string snuck into the DAP code, in breakpoint.py. Most of
them were removed here:
https://sourceware.org/pipermail/gdb-patches/2023-June/200023.html
but I think this one landed after that patch.
While DAP only supports Python 3.5 and later, f-strings were added in
3.6, so remove this.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30708
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/python/lib/gdb/dap/breakpoint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/lib/gdb/dap/breakpoint.py b/gdb/python/lib/gdb/dap/breakpoint.py index 0aab4f3..76ff129 100644 --- a/gdb/python/lib/gdb/dap/breakpoint.py +++ b/gdb/python/lib/gdb/dap/breakpoint.py @@ -352,7 +352,7 @@ def _catch_exception(filterId, **args): if filterId in ("assert", "exception", "throw", "rethrow", "catch"): cmd = "-catch-" + filterId else: - raise Exception(f"Invalid exception filterID: {filterId}") + raise Exception("Invalid exception filterID: " + str(filterId)) result = gdb.execute_mi(cmd) # A little lame that there's no more direct way. for bp in gdb.breakpoints(): |