Closed kzidane closed 7 years ago
Right now there is no good way for installing gdb-mi-parser, using installer has many issues, with checking for updates, and prompting the user every time something is updated. A better approach is to use a packager to automatically put all the required files into one, but until that is ready i think the next best thing is to just put contents of https://github.com/llop/gdb-mi-parser/blob/master/index.js into shim.js
@nightwing added per 4d00440.
The state machine that removes array labels is buggy. It can mistakenly confuse arrays and JSON objects with values containing special characters (e.g.,
[
,{
, etc).Sample program:
Reproducing steps:
(In a CS50 workspace)
-g
printf
debug50 <executable>
where<executable>
is the name of the executableprintf
and that should result in a JSON-parsing errorIn this case
gdb
outputs the following when stepping intoprintf
:in particular, the
[
invalue="0x432592 \"[\""
is confused with beginning of array which causes all characters 'til the first=
to be set to' '
and therefore breaking the JSON:@nightwing this depends on
gdb-mi-parser
. We were wondering if we should add as an installer or install and add to the repo directly?CC @crossroads1112 @dmalan @danallan