Skip to content

Instantly share code, notes, and snippets.

@whitequark
Last active September 25, 2024 12:51
Show Gist options
  • Save whitequark/59520e2de0947da8747061bc2ea91639 to your computer and use it in GitHub Desktop.
Save whitequark/59520e2de0947da8747061bc2ea91639 to your computer and use it in GitHub Desktop.
CXXRTL debug server protocol
@TheZoq2
Copy link

TheZoq2 commented Jan 8, 2024

I'll leave some comments here on things which are unclear while I'm implementing it

In list_items responses with scope != null, are item references relative to the item or the root?

@TheZoq2
Copy link

TheZoq2 commented Jan 8, 2024

If not null, the scope argument allows the client to request items that are nested within that scope. (Items from nested scopes are not returned.)

I interpret the "Items from nested scopes are not returned." as if I have

timer
|- bridge

and query for items with scope = "timer", I should only get timer <item> but not timer bridge <item>, but this seems to not be the case in my example binary
image

@whitequark
Copy link
Author

In list_items responses with scope != null, are item references relative to the item or the root?

Relative to the root (an item always has the same reference, for the avoidance of ambiguity).

@whitequark
Copy link
Author

I interpret the "Items from nested scopes are not returned." as if I have

That is the correct interpretation and I think you have found a bug.

@whitequark
Copy link
Author

I interpret the "Items from nested scopes are not returned." as if I have

This has now been fixed in the cxxrtl-agent implementation branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment