Home » Language IDEs » C / C++ IDE (CDT) » Possible reasons for being unable to add Memory monitors?
Possible reasons for being unable to add Memory monitors? [message #1827193] |
Sun, 10 May 2020 03:41 |
Eclipse User |
|
|
|
I'm trying to use Eclipse as the IDE for a custom microprocessor "TestDSP", using the LLVM toolchain via llvm-mi as a remote GDB client. It works overall (e.g. breakpoints are hit, register contents are correctly displayed) but in the "Memory" view the "Add Memory Monitor" button is always disabled (grayed out). The underlying memory reading functionality in LLDB/LLVM-MI appears to work correctly.
The GDB traces (below) do show a number of errors, mostly from commands unsupported by lldb-mi. I already implemented a missing "show endian" on the guess that an error here might be related. Some of the other error responses seem unlikely to be related to memory monitors, e.g. "-gdb-set print object on", so I'm hoping for suggestions as to what is likely to have disabled the memory monitors (I did briefly try looking at the Eclipse code but the scale of the project suggested I wouldn't find a quick win)
This is currently using Eclipse CDT "Photon" release, although I have tried the 2020-03 release with similar results. LLVM 8.0 with its then-inbuilt lldb-mi, because the "TestDSP" target needs to be ported to the current 10.0.
Thanks for any plausible approaches you can suggest.
===
728,297 2-gdb-version
728,297 2^error,msg="Driver. Received command '2-gdb-version'. It was not handled. Command 'gdb-vers\
ion' not in Command Factory"
728,299 (gdb)
728,300 3-environment-cd /home/thomasg/eclipse-workspace-karp/tasm1
728,302 3^done,path="/home/thomasg/eclipse-workspace-karp/tasm1"
728,302 (gdb)
728,303 4-gdb-set breakpoint pending on
728,303 4^done
728,303 (gdb)
728,304 5-enable-pretty-printing
728,305 5^done,supported="0"
728,305 (gdb)
728,305 6-gdb-set python print-stack none
728,306 6^done
728,306 (gdb)
728,307 7-gdb-set print object on
728,308 7^error,msg="The request ''print' error. The option 'object' not found' failed."
728,308 (gdb)
728,309 8-gdb-set print sevenbit-strings on
728,309 8^error,msg="The request ''print' error. The option 'sevenbit-strings' not found' failed."
728,310 (gdb)
728,311 9-gdb-set charset ISO-8859-1
728,311 9^done
728,311 (gdb)
728,313 10source .gdbinit
728,314 &"invalid command 'source .gdbinit'.\n"
728,314 10^done
728,314 (gdb)
728,315 11-gdb-set auto-solib-add on
728,315 11^done
728,315 (gdb)
728,320 12symbol-file /home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1
728,321 &"error: 'symbol-file' is not a valid command.\n"
728,321 12^done
728,321 (gdb)
728,323 13target create /home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1
728,323 14process connect connect://localhost:1234
728,323 15process attach -p 1
728,330 ~"Current executable set to '/home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1' (TestDSP).\\
n"
728,330 13^done
728,330 (gdb)
728,331 =library-loaded,id="/home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1",target-name="/ho\
me/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1",host-name="/home/thomasg/eclipse-workspace-karp\
/tasm1/Debug/tasm1",symbols-loaded="0",loaded_addr="-",size="188"
728,392 14^done
728,392 (gdb)
728,392 (gdb)
729,418 ~"Process 1 stopped\n* thread #1, stop reason = signal SIGSTOP\n frame #0: 0x80000004 tas\
m1`_start at t1.S:11\n 8 \t\n 9 \t_start:\n 10 \t.globl _start\n-> 11 \tstackinit 0x300 \
0x100\n 12 \t add x y\n 13 \t mov x 22\n 14 \t jsr sub1\n\n"
729,418 15^done
729,418 (gdb)
729,418 =thread-created,id="1",group-id="i1"
729,418 =thread-selected,id="1"
729,418 (gdb)
729,418 =library-loaded,id="/home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1",target-name="/ho\
me/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1",host-name="/home/thomasg/eclipse-workspace-karp\
/tasm1/Debug/tasm1",symbols-loaded="0",loaded_addr="0x0000000080000000",size="188"
729,421 16load /home/thomasg/eclipse-workspace-karp/tasm1/Debug/tasm1
729,423 &"error: 'load' is not a valid command.\n"
729,423 16^done
729,423 (gdb)
729,424 17-gdb-show --thread-group i1 language
729,425 17^done,value="mipsassem"
729,426 (gdb)
729,426 18-gdb-set --thread-group i1 language c
729,427 18^done
729,427 (gdb)
729,428 19-interpreter-exec --thread-group i1 console "p/x (char)-1"
729,516 ~"(char) $0 = 0xff\n"
729,516 19^done
729,516 (gdb)
729,517 20-data-evaluate-expression --thread-group i1 "sizeof (void*)"
729,536 20^done,value="4"
729,536 (gdb)
729,537 21-gdb-set --thread-group i1 language mipsassem
729,538 21^done
729,538 (gdb)
729,539 22-interpreter-exec --thread-group i1 console "show endian"
729,539 ~"The target endianness is set automatically (currently little endian)"
729,539 22^done
729,539 (gdb)
729,541 23-stack-info-depth --thread 1
729,541 24-list-thread-groups
729,542 23^done,depth="1"
729,542 (gdb)
729,542 24^done,groups=[{id="i1",type="process",pid="1",executable="/home/thomasg/eclipse-workspace-\
karp/tasm1/Debug/tasm1"}]
729,542 (gdb)
731,670 25-list-thread-groups i1
731,671 25^done,threads=[{id="1",target-id="Thread 1",state="stopped"}]
731,672 (gdb)
735,126 26-stack-select-frame --thread 1 0
735,126 27-stack-list-frames --thread 1
735,128 26^done
735,128 (gdb)
735,128 27^done,stack=[frame={level="0",addr="0x0000000080000004",func="_start",file="t1.S",fullname\
="/home/thomasg/eclipse-workspace-karp/tasm1/src/t1.S",line="11"}]
735,129 (gdb)
736,534 28-thread-info 1
736,535 29-list-thread-groups
736,538 28^done,threads=[{id="1",target-id="Thread 1",frame={level="0",addr="0x0000000080000004",fun\
c="_start",args=[],file="t1.S",fullname="/home/thomasg/eclipse-workspace-karp/tasm1/src/t1.S",line="\
11"},state="stopped"}]
736,538 (gdb)
736,539 29^done,groups=[{id="i1",type="process",pid="1",executable="/home/thomasg/eclipse-workspace-\
karp/tasm1/Debug/tasm1"}]
736,539 (gdb)
742,902 30-stack-list-arguments --thread 1 1
742,903 31-stack-list-locals --thread 1 --frame 0 1
742,903 30^done,stack-args=[frame={level="0",args=[]}]
742,904 (gdb)
742,904 31^done,locals=[]
742,904 (gdb)
|
|
|
Goto Forum:
Current Time: Fri Jul 18 13:45:14 EDT 2025
Powered by FUDForum. Page generated in 0.26839 seconds
|