cs01 / cs01/gdbgui

Query: bug in display of array values?

Open
#428 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
521
PR merge metrics
No merged PRs in 30d

Description

Sorry if I'm being dense here. Also sorry if I missed seeing an explanation in previous posts (I did look through several pages of them, but didn;t find anything that seemed relevant)

Here's the relevant code snippet:

Screen Shot 2022-04-22 at 3 31 36 PM

Here's how gdb shows the value of the *inputs* array variable, which is what I would expect:

Screen Shot 2022-04-22 at 3 34 15 PM

Here's how gdbgui shows the value of the *inputs* array variable, which I am having trouble understanding:

Screen Shot 2022-04-22 at 3 37 29 PM

Is this expected behavior for gdbgui?

If so, is there a place someone can point me to where this is explained? My confusion: why, in, for example, the third line in that screenshot, are there two values shown? Why isn't there just a single value of zero, which is what I would expect the value of *inputs[0][0]* to be...?

Thanks in advance for any clarification --

Contributor guide

Open the contributing guide

Research direction

The report provides screenshots of gdb and gdbgui output but names no repository files, tests, or entry point. Start by reproducing the displayed array in gdbgui and compare its rendering with gdb; done means explaining whether the two values are expected or identifying a reproducible display bug.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.