aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-05-19 09:24:56 -0600
committerTom Tromey <tromey@adacore.com>2023-05-22 06:52:33 -0600
commit7a8a6f57eced9a8c27a93cb5c5977a33be7b1f72 (patch)
tree8ad393457f1eb4d4f988fb4f970746a0dc3945d9 /gdb/python
parent7b67409b99edca33b76961179286fb43a1714dd2 (diff)
downloadgdb-7a8a6f57eced9a8c27a93cb5c5977a33be7b1f72.zip
gdb-7a8a6f57eced9a8c27a93cb5c5977a33be7b1f72.tar.gz
gdb-7a8a6f57eced9a8c27a93cb5c5977a33be7b1f72.tar.bz2
Remove some FIXME comments from DAP
I recently added a 'dap' component to bugzilla, and I filed a few bugs there. This patch removes the corresponding FIXME comments. A few such comments still exist. In at least one case, I have a fix I'll be submitting eventually; in others I think I need to do a bit of investigation to properly file a bug report.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/dap/bt.py1
-rw-r--r--gdb/python/lib/gdb/dap/evaluate.py2
-rw-r--r--gdb/python/lib/gdb/dap/events.py3
-rw-r--r--gdb/python/lib/gdb/dap/next.py1
4 files changed, 0 insertions, 7 deletions
diff --git a/gdb/python/lib/gdb/dap/bt.py b/gdb/python/lib/gdb/dap/bt.py
index c5ede6e..21cedb7 100644
--- a/gdb/python/lib/gdb/dap/bt.py
+++ b/gdb/python/lib/gdb/dap/bt.py
@@ -46,7 +46,6 @@ def _backtrace(thread_id, levels, startFrame):
set_thread(thread_id)
frames = []
current_number = 0
- # FIXME could invoke frame filters here.
try:
current_frame = gdb.newest_frame()
except gdb.error:
diff --git a/gdb/python/lib/gdb/dap/evaluate.py b/gdb/python/lib/gdb/dap/evaluate.py
index 55d41b0..0581647 100644
--- a/gdb/python/lib/gdb/dap/evaluate.py
+++ b/gdb/python/lib/gdb/dap/evaluate.py
@@ -51,7 +51,6 @@ def _repl(command, frame_id):
}
-# FIXME 'format' & hex
# FIXME supportsVariableType handling
@request("evaluate")
def eval_request(*, expression, frameId=None, context="variables", **args):
@@ -74,7 +73,6 @@ def _variables(ref, start, count):
@request("variables")
# Note that we ignore the 'filter' field. That seems to be
# specific to javascript.
-# FIXME: implement format
def variables(*, variablesReference, start=0, count=0, **args):
result = send_gdb_with_response(
lambda: _variables(variablesReference, start, count)
diff --git a/gdb/python/lib/gdb/dap/events.py b/gdb/python/lib/gdb/dap/events.py
index 5b25470..d9ae603 100644
--- a/gdb/python/lib/gdb/dap/events.py
+++ b/gdb/python/lib/gdb/dap/events.py
@@ -140,13 +140,10 @@ def _on_stop(event):
global _expected_stop
obj = {
"threadId": gdb.selected_thread().global_num,
- # FIXME we don't support non-stop for now.
"allThreadsStopped": True,
}
if isinstance(event, gdb.BreakpointEvent):
# Ignore the expected stop, we hit a breakpoint instead.
- # FIXME differentiate between 'breakpoint', 'function breakpoint',
- # 'data breakpoint' and 'instruction breakpoint' here.
_expected_stop = StopKinds.BREAKPOINT
obj["hitBreakpointIds"] = [x.number for x in event.breakpoints]
elif _expected_stop is None:
diff --git a/gdb/python/lib/gdb/dap/next.py b/gdb/python/lib/gdb/dap/next.py
index 33898ed..636dfce 100644
--- a/gdb/python/lib/gdb/dap/next.py
+++ b/gdb/python/lib/gdb/dap/next.py
@@ -47,5 +47,4 @@ def stepIn(*, threadId, granularity="statement", **args):
@request("continue")
def continue_request(**args):
send_gdb(ExecutionInvoker("continue", None))
- # FIXME Just ignore threadId for the time being, and assume all-stop.
return {"allThreadsContinued": True}