kistlin commented on issue #9200: URL: https://github.com/apache/nuttx/issues/9200#issuecomment-1540032498
@anchao thanks for testing. The only difference is I used a dll for Windows. But the command line somewhat works. For VS Code there is already an open issue https://github.com/microsoft/vscode-cpptools/issues/10848. Startup of the GDB server ``` Loading RTOS plugin: C:/../jlink-nuttx.dll... RTOS plugin (API v1.1) loaded successfully RTOS plugin: Loaded Received symbol: g_pidhash (0x240029A8) Received symbol: g_npidhash (0x240029AC) Received symbol: g_tcbinfo (0x080D74B8) Received symbol: g_readytorun (0x24002968) All mandatory symbols successfully loaded. WARNING: Failed to read memory @ address 0x010000FC ERROR: error in read tcbinfo_s reg_offs ret 0 npidhash change from 0 to 128! ERROR: error in get_idx_from_pid return -2 ``` and I get lots of ``` Reading common registers: ERROR: regread 1 regidx 0 error 1 ERROR: Internal error: Register 'r0': RTOS plugin reports 0 bytes register size, while GDB Server expects 4 bytes Read register 'r0' (4 bytes) from hardware: 0x00000000 ERROR: regread 1 regidx 1 error 1 ERROR: Internal error: Register 'r1': RTOS plugin reports 0 bytes register size, while GDB Server expects 4 bytes Read register 'r1' (4 bytes) from hardware: 0x402A0024 ERROR: regread 1 regidx 2 error 1 ``` Here is a command line example output of `info thread` ``` Id Target Id Frame * 1 Thread 57005 () 0x0800a8cc in up_idle () at common/arm_idle.c:63 2 Thread 1 ([PID:000]Idle Task:0003[PRI:000]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 3 Thread 3772776450 ([PID:-522190847]<name...>:0005[PRI:224]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 4 Thread 1684275203 ([PID:1684275202]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 5 Thread 1684275204 ([PID:1684275203]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 6 Thread 1684275205 ([PID:1684275204]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 7 Thread 1684275206 ([PID:1684275205]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 8 Thread 1515847687 ([PID:1515847686]<name...>:0006[PRI:090]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 9 Thread 1684275208 ([PID:1684275207]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 10 Thread 1684275209 ([PID:1684275208]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 11 Thread 3368550410 ([PID:-926416887]<name...>:0007[PRI:200]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 12 Thread 2610626571 ([PID:-1684340726]<name...>:0005[PRI:155]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 13 Thread 2947481612 ([PID:-1347485685]<name...>:0007[PRI:175]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 14 Thread 2947481613 ([PID:-1347485684]<name...>:0007[PRI:175]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 15 Thread 842137614 ([PID:842137613]<name...>:0006[PRI:050]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 16 Thread 1684275215 ([PID:1684275214]<name...>:0006[PRI:100]) 0xbeefdeac in ?? () 17 Thread 1684275216 ([PID:1684275215]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 18 Thread 1684275217 ([PID:1684275216]<name...>:0006[PRI:100]) 0xbeefdeac in ?? () 19 Thread 1684275218 ([PID:1684275217]<name...>:0006[PRI:100]) 0x00000000 in ?? () 20 Thread 1684275219 ([PID:1684275218]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 21 Thread 1684275220 ([PID:1684275219]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 22 Thread 1684275221 ([PID:1684275220]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 23 Thread 1684275222 ([PID:1684275221]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 24 Thread 1684275223 ([PID:1684275222]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 25 Thread 1684275224 ([PID:1684275223]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 26 Thread 1684275225 ([PID:1684275224]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 27 Thread 2947481626 ([PID:-1347485671]<name...>:0007[PRI:175]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 28 Thread 1684275227 ([PID:1684275226]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 29 Thread 1684275228 ([PID:1684275227]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 30 Thread 1684275229 ([PID:1684275228]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 31 Thread 1667432478 ([PID:1667432477]<name...>:0006[PRI:099]) 0x00000000 in ?? () 32 Thread 1684275231 ([PID:1684275230]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 33 Thread 1684275232 ([PID:1684275231]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 34 Thread 1684275233 ([PID:1684275232]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 35 Thread 2526412834 ([PID:-1768554463]<name...>:0007[PRI:150]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 36 Thread 1684275235 ([PID:1684275234]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 37 Thread 1684275236 ([PID:1684275235]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 38 Thread 1684275237 ([PID:1684275236]<name...>:0007[PRI:100]) 0x00000000 in ?? () 39 Thread 1684275238 ([PID:1684275237]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 40 Thread 1684275239 ([PID:1684275238]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 41 Thread 1684275240 ([PID:1684275239]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 42 Thread 1684275241 ([PID:1684275240]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 43 Thread 2947481642 ([PID:-1347485655]<name...>:0007[PRI:175]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 44 Thread 1684275243 ([PID:1684275242]<name...>:0006[PRI:100]) 0x00000000 in ?? () 45 Thread 2947481644 ([PID:-1347485653]<name...>:0007[PRI:175]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 46 Thread 1684275245 ([PID:1684275244]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 47 Thread 1684275246 ([PID:1684275245]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 48 Thread 1684275247 ([PID:1684275246]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 49 Thread 1852702768 ([PID:1852702767]<name...>:0006[PRI:110]) 0x00000000 in ?? () 50 Thread 1684275249 ([PID:1684275248]<name...>:0007[PRI:100]) 0xbeefdeac in ?? () 51 Thread 1684275250 ([PID:1684275249]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 52 Thread 1684275251 ([PID:1684275250]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 53 Thread 1684275252 ([PID:1684275251]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 54 Thread 1684275253 ([PID:1684275252]<name...>:0006[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 55 Thread 1684275254 ([PID:1684275253]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 56 Thread 1684275255 ([PID:1684275254]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 57 Thread 1684275256 ([PID:1684275255]<name...>:0005[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 58 Thread 842137657 ([PID:842137656]<name...>:0005[PRI:050]) 0xf9907f9a in ?? () 59 Thread 842137658 ([PID:842137657]<name...>:0005[PRI:050]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 60 Thread 842137659 ([PID:842137658]<name...>:0006[PRI:050]) 0x1cbd9bfe in ?? () 61 Thread 1684275260 ([PID:1684275259]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 62 Thread 1852702781 ([PID:1852702780]<name...>:0007[PRI:110]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 63 Thread 1852702782 ([PID:1852702781]<name...>:0006[PRI:110]) 0xbeefdeac in ?? () 64 Thread 1010565183 ([PID:1010565182]<name...>:0007[PRI:060]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 65 Thread 1684275264 ([PID:1684275263]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 66 Thread 757923905 ([PID:757923904]<name...>:0005[PRI:045]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 67 Thread 842137666 ([PID:842137665]<name...>:0006[PRI:050]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 68 Thread 1852702787 ([PID:1852702786]<name...>:0006[PRI:110]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 69 Thread 842137668 ([PID:842137667]<name...>:0006[PRI:050]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 70 Thread 842137669 ([PID:842137668]<name...>:0006[PRI:050]) 0x00000000 in ?? () 71 Thread 1684275270 ([PID:1684275269]<name...>:0007[PRI:100]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 72 Thread 1852702791 ([PID:1852702790]<name...>:0006[PRI:110]) 0x0800a8cc in up_idle () at common/arm_idle.c:63 73 Thread 1852702792 ([PID:1852702791]<name...>:0006[PRI:110]) 0xbeefdeac in ?? () ``` It looks ok but I'm not 100% convinced yet, if all these errors are normal. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
