NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

gdb embedded remote debugging fails

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
mabl



Joined: 15 Oct 2012
Posts: 3

PostPosted: Mon Oct 15, 2012 10:21 am    Post subject: gdb embedded remote debugging fails Reply with quote

Hello all,

I' currently trying to get openocd and netbeans to work. Netbeans starts and runs my program. I can also break on existing breakpoints. But pausing and step out/over etc. do not work.

I think this has something to do with how netbeans parses the gdb answers. I see a lot of stuff like:
Code:

14-exec-run
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
~"Note: automatically using hardware breakpoints for read-only addresses.\n"
14^running
*running,thread-id="all"
(gdb)
No answer for: 14-exec-run

Clearly, gdb responded correctly to the -exec-run command. Netbeans just fails to understand it.

Probably the error is somewhere in here:

http://hg.netbeans.org/cnd-main/file/937b85cef788/cnd.debugger.gdb2/src/org/netbeans/modules/cnd/debugger/gdb2/GdbDebuggerImpl.java



Code:


This log is saved to: /tmp/gdb-cmds3788719045230614584.log
NB build: 201207171143
=thread-group-added,id="i1"
~"GNU gdb (32-bit ARM EABI Toolchain JBS-2011.09-69-v2011.09-69-15-g4c24572) 7.2.50.20100908-cvs\n"
~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"--host=x86_64-unknown-linux-gnu --target=arm-none-eabi\".\nFor bug reporting instructions, please see:\n"
~"<https://github.com/jsnyder/arm-eabi-toolchain>.\n"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
*stopped,frame={addr="0x0800715a",func="??",args=[]},thread-id="1",stopped-threads="all"
@"JTAG tap: stm32f4x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)\n"
@"JTAG tap: stm32f4x.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)\n"
@"target state: halted\n"
@"target halted due to debug-request, current mode: Thread \n"
@"xPSR: 0x01000000 pc: 0x08001330 msp: 0x20000400\n"
(gdb)
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6-enable-pretty-printing
7-file-exec-and-symbols  "/home/mabl/Programming/ARM/Projects/matrixLED/build/ch.elf"
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes"]
(gdb)
3^done
(gdb)
4^done
(gdb)
5^done
(gdb)
6^done
(gdb)
7^done
(gdb)
8-file-list-exec-source-file
9cd /home/mabl/Programming/ARM/Projects/matrixLED
10-exec-arguments
11-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
8^done,line="60",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
&"cd /home/mabl/Programming/ARM/Projects/matrixLED\n"
~"Working directory /home/mabl/Programming/ARM/Projects/matrixLED.\n"
9^done
(gdb)
10^done
(gdb)
11^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="0",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
(gdb)
12-break-insert -t _start
12^error,msg="Function \"_start\" not defined."
(gdb)
13-break-insert -t main
13^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x08007084",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="69",times="0",original-location="main"}
(gdb)
14-exec-run
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
~"Note: automatically using hardware breakpoints for read-only addresses.\n"
14^running
*running,thread-id="all"
(gdb)
*stopped,frame={addr="0x08007084",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="69"},thread-id="1",stopped-threads="all"
=thread-selected,id="1"
(gdb)
15-exec-continue
15^running
*running,thread-id="1"
(gdb)
No answer for: 14-exec-run
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="1",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
16-stack-list-frames
16^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 15-exec-continue
17-stack-list-arguments 1
17^done,stack-args=[frame={level="0",args=[]}]
(gdb)
18-exec-next
18^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
19-stack-list-frames
19^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 18-exec-next
20-stack-list-arguments 1
20^done,stack-args=[frame={level="0",args=[]}]
(gdb)
21-exec-next
21^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="2",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
22-stack-list-frames
22^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 21-exec-next
23-stack-list-arguments 1
23^done,stack-args=[frame={level="0",args=[]}]
(gdb)
24-exec-next
24^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
25-stack-list-frames
25^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 24-exec-next
26-stack-list-arguments 1
26^done,stack-args=[frame={level="0",args=[]}]
(gdb)
27-exec-next
27^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="3",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
28-stack-list-frames
28^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 27-exec-next
29-stack-list-arguments 1
29^done,stack-args=[frame={level="0",args=[]}]
(gdb)
30-exec-next
30^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
31-stack-list-frames
31^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 30-exec-next
32-stack-list-arguments 1
32^done,stack-args=[frame={level="0",args=[]}]
(gdb)
33-thread-info
=thread-exited,id="1",group-id="i1"
=thread-created,id="2",group-id="i1"
~"[New Thread 536873500]\n"
=thread-created,id="3",group-id="i1"
~"[New Thread 536873400]\n"
=thread-created,id="4",group-id="i1"
~"[New Thread 536873208]\n"
33^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="1"
(gdb)
34-thread-select 3
34^done,new-thread-id="3",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"}
(gdb)
35-stack-list-frames
36-stack-select-frame 0
37-file-list-exec-source-file
35^done,stack=[frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},frame={level="1",addr="0x08001ebe",func="chSchGoSleepTimeoutS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="190"},frame={level="2",addr="0x08002270",func="chThdSleep",file="./ChibiOS/os/kernel/src/chthreads.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chthreads.c",line="291"},frame={level="3",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
36^done
(gdb)
37^done,line="122",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
38-stack-list-arguments 1
39-thread-info
38^done,stack-args=[frame={level="0",args=[{name="newstate",value="6 '\\006'"}]},frame={level="1",args=[{name="newstate",value="6 '\\006'"},{name="time",value="500"}]},frame={level="2",args=[{name="time",value="500"}]},frame={level="3",args=[]}]
(gdb)
39^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
40-thread-select 4
40^done,new-thread-id="4",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"}
(gdb)
41-stack-list-frames
42-stack-select-frame 0
43-file-list-exec-source-file
41^done,stack=[frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},frame={level="1",addr="0x08002056",func="chSchDoReschedule",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="363"},frame={level="2",addr="0x080015a8",func="_port_switch_from_isr",file="./ChibiOS/os/ports/GCC/ARMCMx/chcore_v7m.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/ports/GCC/ARMCMx/chcore_v7m.c",line="203"}]
(gdb)
42^done
(gdb)
43^done,line="309",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
44-stack-list-arguments 1
45-thread-info
44^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[]},frame={level="2",args=[]}]
(gdb)
45^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
46-thread-info
46^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
47-thread-info
47^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
48-thread-select 3
48^done,new-thread-id="3",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"}
(gdb)
49-stack-list-frames
50-stack-select-frame 0
51-file-list-exec-source-file
49^done,stack=[frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},frame={level="1",addr="0x08001ebe",func="chSchGoSleepTimeoutS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="190"},frame={level="2",addr="0x08002270",func="chThdSleep",file="./ChibiOS/os/kernel/src/chthreads.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chthreads.c",line="291"},frame={level="3",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
50^done
(gdb)
51^done,line="122",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
52-stack-list-arguments 1
53-thread-info
52^done,stack-args=[frame={level="0",args=[{name="newstate",value="6 '\\006'"}]},frame={level="1",args=[{name="newstate",value="6 '\\006'"},{name="time",value="500"}]},frame={level="2",args=[{name="time",value="500"}]},frame={level="3",args=[]}]
(gdb)
53^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
54-stack-select-frame 1
55-file-list-exec-source-file
54^done
(gdb)
55^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
56-stack-select-frame 2
57-file-list-exec-source-file
56^done
(gdb)
57^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
58-stack-select-frame 3
59-file-list-exec-source-file
58^done
(gdb)
59^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
60-thread-info
60^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
61-thread-select 2
61^done,new-thread-id="2",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}
(gdb)
62-stack-list-frames
63-stack-select-frame 0
64-file-list-exec-source-file
62^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
63^done
(gdb)
64^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
65-stack-list-arguments 1
66-thread-info
65^done,stack-args=[frame={level="0",args=[]}]
(gdb)
66^done,threads=[{id="4",target-id="Thread 536873208",details="idle :  : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main :  : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 :  : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="2"
(gdb)
67-exec-next
67^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="4",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
68-stack-list-frames
68^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 67-exec-next
69-stack-list-arguments 1
69^done,stack-args=[frame={level="0",args=[]}]
(gdb)
70-exec-next
70^running
*running,thread-id="2"
(gdb)
*running,thread-id="all"
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="2",stopped-threads="all"
(gdb)
71-stack-list-frames
71^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 70-exec-next
72-stack-list-arguments 1
72^done,stack-args=[frame={level="0",args=[]}]
(gdb)
73-exec-continue
73^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="5",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
74-stack-list-frames
74^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 73-exec-continue
75-stack-list-arguments 1
75^done,stack-args=[frame={level="0",args=[]}]
(gdb)
76-exec-continue
76^running
*running,thread-id="2"
(gdb)
*running,thread-id="all"
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="6",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
77-stack-list-frames
77^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 76-exec-continue
78-stack-list-arguments 1
78^done,stack-args=[frame={level="0",args=[]}]
(gdb)
79-break-delete 1
79^done
(gdb)
80-exec-continue
80^running
*running,thread-id="all"
(gdb)
81-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
82-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
83-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
84-gdb-exit
Back to top
Egor Ushakov
Posted via mailing list.





PostPosted: Wed Oct 17, 2012 9:01 am    Post subject: gdb embedded remote debugging fails Reply with quote

Hi,

thanks for your detailed report!
I've filed the issue: https://netbeans.org/bugzilla/show_bug.cgi?id=220254
We'll try to fix it soon.

Thanks,
Egor

On 10/15/12 02:21 PM, mabl wrote:
Quote:
Hello all,

I' currently trying to get openocd and netbeans to work. Netbeans starts and runs my program. I can also break on existing breakpoints. But pausing and step out/over etc. do not work.

I think this has something to do with how netbeans parses the gdb answers. I see a lot of stuff like:

Code:

14-exec-run
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
~"Note: automatically using hardware breakpoints for read-only addresses.\n"
14^running
*running,thread-id="all"
(gdb)
No answer for: 14-exec-run



Clearly, gdb responded correctly to the -exec-run command. Netbeans just fails to understand it.

Probably the error is somewhere in here:

http://hg.netbeans.org/cnd-main/file/937b85cef788/cnd.debugger.gdb2/src/org/netbeans/modules/cnd/debugger/gdb2/GdbDebuggerImpl.java




Code:


This log is saved to: /tmp/gdb-cmds3788719045230614584.log
NB build: 201207171143
=thread-group-added,id="i1"
~"GNU gdb (32-bit ARM EABI Toolchain JBS-2011.09-69-v2011.09-69-15-g4c24572) 7.2.50.20100908-cvs\n"
~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"--host=x86_64-unknown-linux-gnu --target=arm-none-eabi\".\nFor bug reporting instructions, please see:\n"
~"<https://github.com/jsnyder/arm-eabi-toolchain>.\n"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
*stopped,frame={addr="0x0800715a",func="??",args=[]},thread-id="1",stopped-threads="all"
@"JTAG tap: stm32f4x.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)\n"
@"JTAG tap: stm32f4x.bs tap/device found: 0x06413041 (mfg: 0x020, part: 0x6413, ver: 0x0)\n"
@"target state: halted\n"
@"target halted due to debug-request, current mode: Thread \n"
@"xPSR: 0x01000000 pc: 0x08001330 msp: 0x20000400\n"
(gdb)
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6-enable-pretty-printing
7-file-exec-and-symbols "/home/mabl/Programming/ARM/Projects/matrixLED/build/ch.elf"
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes"]
(gdb)
3^done
(gdb)
4^done
(gdb)
5^done
(gdb)
6^done
(gdb)
7^done
(gdb)
8-file-list-exec-source-file
9cd /home/mabl/Programming/ARM/Projects/matrixLED
10-exec-arguments
11-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
8^done,line="60",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
&"cd /home/mabl/Programming/ARM/Projects/matrixLED\n"
~"Working directory /home/mabl/Programming/ARM/Projects/matrixLED.\n"
9^done
(gdb)
10^done
(gdb)
11^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="0",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
(gdb)
12-break-insert -t _start
12^error,msg="Function \"_start\" not defined."
(gdb)
13-break-insert -t main
13^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x08007084",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="69",times="0",original-location="main"}
(gdb)
14-exec-run
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
=thread-group-started,id="i1",pid="42000"
=thread-created,id="1",group-id="i1"
~"Note: automatically using hardware breakpoints for read-only addresses.\n"
14^running
*running,thread-id="all"
(gdb)
*stopped,frame={addr="0x08007084",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="69"},thread-id="1",stopped-threads="all"
=thread-selected,id="1"
(gdb)
15-exec-continue
15^running
*running,thread-id="1"
(gdb)
No answer for: 14-exec-run
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="1",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
16-stack-list-frames
16^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 15-exec-continue
17-stack-list-arguments 1
17^done,stack-args=[frame={level="0",args=[]}]
(gdb)
18-exec-next
18^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
19-stack-list-frames
19^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 18-exec-next
20-stack-list-arguments 1
20^done,stack-args=[frame={level="0",args=[]}]
(gdb)
21-exec-next
21^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="2",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
22-stack-list-frames
22^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 21-exec-next
23-stack-list-arguments 1
23^done,stack-args=[frame={level="0",args=[]}]
(gdb)
24-exec-next
24^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
25-stack-list-frames
25^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 24-exec-next
26-stack-list-arguments 1
26^done,stack-args=[frame={level="0",args=[]}]
(gdb)
27-exec-next
27^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="3",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="1",stopped-threads="all"
(gdb)
28-stack-list-frames
28^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 27-exec-next
29-stack-list-arguments 1
29^done,stack-args=[frame={level="0",args=[]}]
(gdb)
30-exec-next
30^running
*running,thread-id="1"
(gdb)
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="1",stopped-threads="all"
(gdb)
31-stack-list-frames
31^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 30-exec-next
32-stack-list-arguments 1
32^done,stack-args=[frame={level="0",args=[]}]
(gdb)
33-thread-info
=thread-exited,id="1",group-id="i1"
=thread-created,id="2",group-id="i1"
~"[New Thread 536873500]\n"
=thread-created,id="3",group-id="i1"
~"[New Thread 536873400]\n"
=thread-created,id="4",group-id="i1"
~"[New Thread 536873208]\n"
33^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="1"
(gdb)
34-thread-select 3
34^done,new-thread-id="3",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"}
(gdb)
35-stack-list-frames
36-stack-select-frame 0
37-file-list-exec-source-file
35^done,stack=[frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},frame={level="1",addr="0x08001ebe",func="chSchGoSleepTimeoutS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="190"},frame={level="2",addr="0x08002270",func="chThdSleep",file="./ChibiOS/os/kernel/src/chthreads.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chthreads.c",line="291"},frame={level="3",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
36^done
(gdb)
37^done,line="122",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
38-stack-list-arguments 1
39-thread-info
38^done,stack-args=[frame={level="0",args=[{name="newstate",value="6 '\\006'"}]},frame={level="1",args=[{name="newstate",value="6 '\\006'"},{name="time",value="500"}]},frame={level="2",args=[{name="time",value="500"}]},frame={level="3",args=[]}]
(gdb)
39^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
40-thread-select 4
40^done,new-thread-id="4",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"}
(gdb)
41-stack-list-frames
42-stack-select-frame 0
43-file-list-exec-source-file
41^done,stack=[frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},frame={level="1",addr="0x08002056",func="chSchDoReschedule",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="363"},frame={level="2",addr="0x080015a8",func="_port_switch_from_isr",file="./ChibiOS/os/ports/GCC/ARMCMx/chcore_v7m.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/ports/GCC/ARMCMx/chcore_v7m.c",line="203"}]
(gdb)
42^done
(gdb)
43^done,line="309",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
44-stack-list-arguments 1
45-thread-info
44^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[]},frame={level="2",args=[]}]
(gdb)
45^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
46-thread-info
46^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
47-thread-info
47^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="4"
(gdb)
48-thread-select 3
48^done,new-thread-id="3",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"}
(gdb)
49-stack-list-frames
50-stack-select-frame 0
51-file-list-exec-source-file
49^done,stack=[frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},frame={level="1",addr="0x08001ebe",func="chSchGoSleepTimeoutS",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="190"},frame={level="2",addr="0x08002270",func="chThdSleep",file="./ChibiOS/os/kernel/src/chthreads.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chthreads.c",line="291"},frame={level="3",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
50^done
(gdb)
51^done,line="122",file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",macro-info="0"
(gdb)
52-stack-list-arguments 1
53-thread-info
52^done,stack-args=[frame={level="0",args=[{name="newstate",value="6 '\\006'"}]},frame={level="1",args=[{name="newstate",value="6 '\\006'"},{name="time",value="500"}]},frame={level="2",args=[{name="time",value="500"}]},frame={level="3",args=[]}]
(gdb)
53^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
54-stack-select-frame 1
55-file-list-exec-source-file
54^done
(gdb)
55^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
56-stack-select-frame 2
57-file-list-exec-source-file
56^done
(gdb)
57^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
58-stack-select-frame 3
59-file-list-exec-source-file
58^done
(gdb)
59^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
60-thread-info
60^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="3"
(gdb)
61-thread-select 2
61^done,new-thread-id="2",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}
(gdb)
62-stack-list-frames
63-stack-select-frame 0
64-file-list-exec-source-file
62^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
63^done
(gdb)
64^done,line="97",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",macro-info="0"
(gdb)
65-stack-list-arguments 1
66-thread-info
65^done,stack-args=[frame={level="0",args=[]}]
(gdb)
66^done,threads=[{id="4",target-id="Thread 536873208",details="idle : : READY",frame={level="0",addr="0x08001fa8",func="chSchDoRescheduleBehind",args=[],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="309"},state="stopped"},{id="3",target-id="Thread 536873400",details="main : : CURRENT",frame={level="0",addr="0x08001dd4",func="chSchGoSleepS",args=[{name="newstate",value="6 '\\006'"}],file="./ChibiOS/os/kernel/src/chschd.c",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/ChibiOS/os/kernel/src/chschd.c",line="122"},state="stopped"},{id="2",target-id="Thread 536873500",details="\3203 : : WTOREVT",frame={level="0",addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},state="stopped"}],current-thread-id="2"
(gdb)
67-exec-next
67^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="4",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
68-stack-list-frames
68^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 67-exec-next
69-stack-list-arguments 1
69^done,stack-args=[frame={level="0",args=[]}]
(gdb)
70-exec-next
70^running
*running,thread-id="2"
(gdb)
*running,thread-id="all"
*stopped,reason="end-stepping-range",frame={addr="0x08007162",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"},thread-id="2",stopped-threads="all"
(gdb)
71-stack-list-frames
71^done,stack=[frame={level="0",addr="0x08007162",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="97"}]
(gdb)
No answer for: 70-exec-next
72-stack-list-arguments 1
72^done,stack-args=[frame={level="0",args=[]}]
(gdb)
73-exec-continue
73^running
*running,thread-id="all"
(gdb)
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="5",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
74-stack-list-frames
74^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 73-exec-continue
75-stack-list-arguments 1
75^done,stack-args=[frame={level="0",args=[]}]
(gdb)
76-exec-continue
76^running
*running,thread-id="2"
(gdb)
*running,thread-id="all"
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0800715a",func="main()",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98",times="6",original-location="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0800715a",func="main",args=[],file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"},thread-id="2",stopped-threads="all"
(gdb)
77-stack-list-frames
77^done,stack=[frame={level="0",addr="0x0800715a",func="main",file="main.cpp",fullname="/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp",line="98"}]
(gdb)
No answer for: 76-exec-continue
78-stack-list-arguments 1
78^done,stack-args=[frame={level="0",args=[]}]
(gdb)
79-break-delete 1
79^done
(gdb)
80-exec-continue
80^running
*running,thread-id="all"
(gdb)
81-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
82-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
83-break-insert -f "/home/mabl/Programming/ARM/Projects/matrixLED/main.cpp:98"
84-gdb-exit






Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo