under the gdb/mi mode,when using -data-disassemble -s startaddress -e endaddress -- 1
if the startaddress or endaddress is out the code field(text section) of the the memory,
&"Cannot access memory at address 0x8100ec00\n"
then type random command,gdb dumped
it shows:
(gdb)
-data-disassemble -s 0x8100ec00 -e 0x8100ec06 -- 1
&"Cannot access memory at address 0x8100ec00\n"
^error,msg="Cannot access memory at address 0x8100ec00"
(gdb)
s
&"s\n"
&"../../gdb/ui-out.c:133: gdb-internal-error: push_level: Asserti
l >= 0 && uiout->level < MAX_UI_OUT_LEVELS' failed.\n"
~"An internal GDB error was detected. This may make further\n"
~"debugging unreliable. Quit this debugging session? (y or n) "