epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.11k stars 69 forks source link

MemoryVisualizer should allow an actual 'address' to be entered. #72

Closed epasveer closed 2 years ago

epasveer commented 2 years ago

The 'Starting address' field should allow an address to be entered. Instead, it gives an error of 'not an address'.

image

image

epasveer commented 2 years ago

When the MemoryVisualizer is given a variable expression (&variable, $pc, etc.), it sends this to gdb. gdb will return the address result.

Typically it is in the form of '0x400c12'.

For some reason, it the variable expression is '0x400c12', gdb will return the address result in the form set by 'output-radix'.

show output-radix
Default output radix for printing of values is 10.

The default radix is 10. So the result is:

done,value=\"4197394\"

If the default radix is set to hex:

set output-radix 16
Output radix now set to decimal 16, hex 10, octal 20.

Things work:

done,value=\"0x400c12\"

I don't like forcing 'output-radix' to make Seer work. So I'll change the MemoryVisualizer to support both results:

done,value=\"4197394\"
done,value=\"0x400c12\"
epasveer commented 2 years ago

Fix for memory and array visualizers. Closing task.

image image