Remote debugging "Process Exited"

kitts kitts.mailinglists at gmail.com
Thu Jan 31 04:55:50 GMT 2008


On Wednesday 30 Jan 2008 7:10:54 pm Vladimir Prus wrote:
> On Wednesday 30 January 2008 16:00:56 kitts wrote:
> > I am using kdevelop for embedded system development and often the
> > debugger quits while stepping with the error message in gdb view that
> > says "Process Exited".
> >
> > It works fine when using the command line debugger. Is there a solution
> > to this? It happens very often and i always have my fingers crossed when
> > debugging.
> >
> > Im on kdevelop 3.5.0 using KDE 3.5.8.
> >
> > The version of GDB:
> > $ arm-none-eabi-gdb --version
> > GNU gdb (CodeSourcery Sourcery G++ Lite 2007q3-53) 6.6.50.20070821-cvs
>
> Oh, nice!
>
> Can you please enable display of internal commands in gdb console,
> using the popup menu, and send me all output?

I included repositories mentioned at kdevelop.org and upgraded kdevelop to 
3.5.0.7. Still no luck. Below is the output of GDB view.

/home/kishore/Drone/Projects/tools/arm-linux/bin/arm-none-eabi-gdb /home/kishore/Drone/Projects/autopilot/build/src/autopilot --interpreter=mi2 -quiet
(gdb) set print static-members off
set print static-members off
^done
(gdb) set width 0
set width 0
^done
(gdb) set height 0
set height 0
^done
(gdb) handle SIG32 pass nostop noprint
handle SIG32 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG32         No	No	Yes		Real-time event 32
^done
(gdb) handle SIG41 pass nostop noprint
handle SIG41 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG41         No	No	Yes		Real-time event 41
^done
(gdb) handle SIG42 pass nostop noprint
handle SIG42 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG42         No	No	Yes		Real-time event 42
^done
(gdb) handle SIG43 pass nostop noprint
handle SIG43 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG43         No	No	Yes		Real-time event 43
^done
(gdb) set print asm-demangle on
set print asm-demangle on
^done
(gdb) set output-radix 10
set output-radix 10
Output radix now set to decimal 10, hex a, octal 12.
^done
(gdb) cd /home/kishore/Drone/Projects/autopilot
cd /home/kishore/Drone/Projects/autopilot
Working directory /home/kishore/Drone/Projects/autopilot.
^done
(gdb) -list-features
^error,msg="Undefined MI command: list-features"
(gdb) set stop-on-solib-events 1
set stop-on-solib-events 1
^done
(gdb) tty /dev/pts/4
tty /dev/pts/4
^done
(gdb) source gdbinit
source gdbinit
/home/kishore/Drone/Projects/autopilot/gdbinit:2: Error in sourced command 
file:
localhost:3333: Connection refused.
^error,msg="/home/kishore/Drone/Projects/autopilot/gdbinit:2: Error in sourced 
command file:\nlocalhost:3333: Connection refused."
(gdb) -break-insert /home/kishore/Drone/Projects/autopilot/src/fms.c:78
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"}
(gdb) -break-insert /home/kishore/Drone/Projects/autopilot/src/main.c:152
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="0"}
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="0"}]}
(gdb) -stack-list-arguments 0 0 0
No registers.
^error,msg="No registers."
(gdb) -stack-list-locals 0
No registers.
^error,msg="No registers."
(gdb) -thread-list-ids
^done,thread-ids={},number-of-threads="0"
(gdb) -break-condition 1 
^done
(gdb) -break-after 1 0
^done
(gdb) -break-disable 1
^done
(gdb) -break-condition 2 
^done
(gdb) -break-after 2 0
^done
(gdb) -break-enable 2
^done
(gdb) -stack-info-depth 6
No registers.
^error,msg="No registers."
(gdb) quitquit
(gdb) Process exited
/home/kishore/Drone/Projects/tools/arm-linux/bin/arm-none-eabi-gdb /home/kishore/Drone/Projects/autopilot/build/src/autopilot --interpreter=mi2 -quiet
(gdb) set print static-members off
set print static-members off
^done
(gdb) set width 0
set width 0
^done
(gdb) set height 0
set height 0
^done
(gdb) handle SIG32 pass nostop noprint
handle SIG32 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG32         No	No	Yes		Real-time event 32
^done
(gdb) handle SIG41 pass nostop noprint
handle SIG41 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG41         No	No	Yes		Real-time event 41
^done
(gdb) handle SIG42 pass nostop noprint
handle SIG42 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG42         No	No	Yes		Real-time event 42
^done
(gdb) handle SIG43 pass nostop noprint
handle SIG43 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG43         No	No	Yes		Real-time event 43
^done
(gdb) set print asm-demangle on
set print asm-demangle on
^done
(gdb) set output-radix 10
set output-radix 10
Output radix now set to decimal 10, hex a, octal 12.
^done
(gdb) cd /home/kishore/Drone/Projects/autopilot
cd /home/kishore/Drone/Projects/autopilot
Working directory /home/kishore/Drone/Projects/autopilot.
^done
(gdb) -list-features
^error,msg="Undefined MI command: list-features"
(gdb) set stop-on-solib-events 1
set stop-on-solib-events 1
^done
(gdb) tty /dev/pts/4
tty /dev/pts/4
^done
(gdb) source gdbinit
source gdbinit
0x00000400 in ?? ()
requesting target halt and executing a soft reset
core state: ARM
waiting for target halted...
target halted
waiting for target halted...
target halted
waiting for target halted...
target halted
pc (/32): 0x00000000
software breakpoints enabled
Loading section .text, size 0x6c48 lma 0x200000
Loading section .data, size 0x410 lma 0x206c48
Start address 0x200000, load size 28760
Transfer rate: 433 bytes/sec, 305 bytes/write.
^done
(gdb) -break-insert /home/kishore/Drone/Projects/autopilot/src/fms.c:78
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"}
(gdb) -break-insert /home/kishore/Drone/Projects/autopilot/src/main.c:152
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="0"}
(gdb) -break-condition 1 
^done
(gdb) -break-after 1 0
^done
(gdb) -break-disable 1
^done
(gdb) -break-condition 2 
^done
(gdb) -break-after 2 0
^done
(gdb) -break-enable 2
^done
(gdb) -exec-continue
^running
*stopped,reason="breakpoint-hit",bkptno="2",thread-id="0",frame={addr="0x00200c34",func="main",args=[],file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}
(gdb) -file-list-exec-source-file
^done,line="152",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[]}]
(gdb) -stack-list-locals 0
^done,locals=[name="desiredState",name="controls",name="aircraft"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20facc:
 pc = 0x200c34 in main 
(/home/kishore/Drone/Projects/autopilot/src/main.c:152); saved pc 0x200258
 source language c.
 Arglist at 0x20f99c, args: 
 Locals at 0x20f99c, Previous frame's sp is 0x20facc
 Saved registers:
  r11 at 0x20fac4, lr at 0x20fac8, pc at 0x20fac8
^done
(gdb) -stack-info-depth 6
^done,depth="1"
(gdb) -stack-list-frames 0 1
^done,stack=[frame={level="0",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &desiredState
print /x &desiredState
$1 = 0x20f9a0
^done
(gdb) -var-create KDEV0 * "desiredState"
^done,name="KDEV0",numchild="8",value="{...}",type="struct AircraftState"
(gdb) print /x &controls
print /x &controls
$2 = 0x20f9fe
^done
(gdb) -var-create KDEV1 * "controls"
^done,name="KDEV1",numchild="5",value="{...}",type="struct FcsControls"
(gdb) print /x &aircraft
print /x &aircraft
$3 = 0x20fa08
^done
(gdb) -var-create KDEV2 * "aircraft"
^done,name="KDEV2",numchild="2",value="{...}",type="struct Aircraft"
(gdb) print /x &desiredState
print /x &desiredState
$4 = 0x20f9a0
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState
^done
(gdb) print /x &controls
print /x &controls
$5 = 0x20f9fe
^done
(gdb) whatis controls
whatis controls
type = struct FcsControls
^done
(gdb) print /x &aircraft
print /x &aircraft
$6 = 0x20fa08
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -var-evaluate-expression "KDEV0"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV1"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV2"
^done,value="{...}"
(gdb) -exec-step
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x002028ac",func="fmsDesiredAttitude",args=[{name="desiredState",value="0x20f9a0"},
{name="aircraft",value="0x20fa08"}],file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="59"}
(gdb) -file-list-exec-source-file
^done,line="59",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="desiredState",name="aircraft"]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f99c:
 pc = 0x2028ac in fmsDesiredAttitude 
(/home/kishore/Drone/Projects/autopilot/src/fms.c:59); saved pc 0x200c48
 called by frame at 0x20facc
 source language c.
 Arglist at 0x20f98c, args: desiredState=0x20f9a0, aircraft=0x20fa08
 Locals at 0x20f98c, Previous frame's sp is 0x20f99c
 Saved registers:
  r11 at 0x20f994, lr at 0x20f998, pc at 0x20f998
^done
(gdb) -stack-info-depth 6
^done,depth="2"
(gdb) -stack-list-frames 0 2
^done,stack=[frame={level="0",addr="0x002028ac",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="59"},frame={level="1",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) -var-delete "KDEV0"
^done,ndeleted="1"
(gdb) -var-delete "KDEV1"
^done,ndeleted="1"
(gdb) -var-delete "KDEV2"
^done,ndeleted="1"
(gdb) print /x &desiredState
print /x &desiredState
$7 = 0x20f990
^done
(gdb) -var-create KDEV3 * "desiredState"
^done,name="KDEV3",numchild="8",value="0x20f9a0",type="struct AircraftState *"
(gdb) print /x &aircraft
print /x &aircraft
$8 = 0x20f98c
^done
(gdb) -var-create KDEV4 * "aircraft"
^done,name="KDEV4",numchild="2",value="0x20fa08",type="struct Aircraft *"
(gdb) print /x &desiredState
print /x &desiredState
$9 = 0x20f990
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState *
^done
(gdb) print /x &aircraft
print /x &aircraft
$10 = 0x20f98c
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft *
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -var-evaluate-expression "KDEV3"
^done,value="0x20f9a0"
(gdb) -var-evaluate-expression "KDEV4"
^done,value="0x20fa08"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x002028d8",func="fmsDesiredAttitude",args=[{name="desiredState",value="0x20f9a0"},
{name="aircraft",value="0x20fa08"}],file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"}
(gdb) -file-list-exec-source-file
^done,line="61",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="desiredState",name="aircraft"]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f99c:
 pc = 0x2028d8 in fmsDesiredAttitude 
(/home/kishore/Drone/Projects/autopilot/src/fms.c:61); saved pc 0x200c48
 called by frame at 0x20facc
 source language c.
 Arglist at 0x20f98c, args: desiredState=0x20f9a0, aircraft=0x20fa08
 Locals at 0x20f98c, Previous frame's sp is 0x20f99c
 Saved registers:
  r11 at 0x20f994, lr at 0x20f998, pc at 0x20f998
^done
(gdb) -stack-info-depth 6
^done,depth="2"
(gdb) -stack-list-frames 0 2
^done,stack=[frame={level="0",addr="0x002028d8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="1",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &desiredState
print /x &desiredState
$11 = 0x20f990
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState *
^done
(gdb) print /x &aircraft
print /x &aircraft
$12 = 0x20f98c
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft *
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-step
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205bc8",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="62"}
(gdb) -file-list-exec-source-file
^done,line="62",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205bc8 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:62); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205bc8",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="62"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) -var-delete "KDEV3"
^done,ndeleted="1"
(gdb) -var-delete "KDEV4"
^done,ndeleted="1"
(gdb) print /x &pid
print /x &pid
$13 = 0x20f960
^done
(gdb) -var-create KDEV5 * "pid"
^done,name="KDEV5",numchild="6",value="0x207820",type="pid_t *"
(gdb) print /x &desired
print /x &desired
$14 = 0x20f95c
^done
(gdb) -var-create KDEV6 * "desired"
^done,name="KDEV6",numchild="0",value="100000000",type="int32_t"
(gdb) print /x &actual
print /x &actual
$15 = 0x20f958
^done
(gdb) -var-create KDEV7 * "actual"
^done,name="KDEV7",numchild="0",value="0",type="int32_t"
(gdb) print /x &result
print /x &result
$16 = 0x20f96c
^done
(gdb) -var-create KDEV8 * "result"
^done,name="KDEV8",numchild="0",value="2161160",type="int32_t"
(gdb) print /x &dt
print /x &dt
$17 = 0x20f970
^done
(gdb) -var-create KDEV9 * "dt"
^done,name="KDEV9",numchild="0",value="2161140",type="uint32_t"
(gdb) print /x &error
print /x &error
$18 = 0x20f974
^done
(gdb) -var-create KDEV10 * "error"
^done,name="KDEV10",numchild="0",value="2161024",type="int32_t"
(gdb) print /x &derror
print /x &derror
$19 = 0x20f978
^done
(gdb) -var-create KDEV11 * "derror"
^done,name="KDEV11",numchild="0",value="0",type="int32_t"
(gdb) print /x &timeStamp
print /x &timeStamp
$20 = 0x20f964
^done
(gdb) -var-create KDEV12 * "timeStamp"
^done,name="KDEV12",numchild="2",value="{...}",type="struct time"
(gdb) print /x &pid
print /x &pid
$21 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$22 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$23 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$24 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$25 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$26 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$27 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$28 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -var-evaluate-expression "KDEV5"
^done,value="0x207820"
(gdb) -var-evaluate-expression "KDEV6"
^done,value="100000000"
(gdb) -var-evaluate-expression "KDEV7"
^done,value="0"
(gdb) -var-evaluate-expression "KDEV8"
^done,value="2161160"
(gdb) -var-evaluate-expression "KDEV9"
^done,value="2161140"
(gdb) -var-evaluate-expression "KDEV10"
^done,value="2161024"
(gdb) -var-evaluate-expression "KDEV11"
^done,value="0"
(gdb) -var-evaluate-expression "KDEV12"
^done,value="{...}"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205bd0",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="63"}
(gdb) -file-list-exec-source-file
^done,line="63",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205bd0 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:63); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205bd0",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="63"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$29 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$30 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$31 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$32 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$33 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$34 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$35 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$36 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[{name="KDEV9",in_scope="true",type_changed="false"}]
(gdb) -var-evaluate-expression "KDEV9"
^done,value="0"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205be0",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="64"}
(gdb) -file-list-exec-source-file
^done,line="64",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205be0 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:64); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205be0",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="64"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$37 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$38 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$39 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$40 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$41 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$42 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$43 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$44 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[{name="KDEV10",in_scope="true",type_changed="false"}]
(gdb) -var-evaluate-expression "KDEV10"
^done,value="100000000"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205bf4",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="67"}
(gdb) -file-list-exec-source-file
^done,line="67",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205bf4 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:67); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205bf4",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="67"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$45 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$46 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$47 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$48 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$49 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$50 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$51 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$52 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[{name="KDEV11",in_scope="true",type_changed="false"}]
(gdb) -var-evaluate-expression "KDEV11"
^done,value="100000000"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205c00",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="68"}
(gdb) -file-list-exec-source-file
^done,line="68",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205c00 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:68); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205c00",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="68"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$53 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$54 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$55 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$56 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$57 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$58 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$59 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$60 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205c34",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="69"}
(gdb) -file-list-exec-source-file
^done,line="69",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205c34 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:69); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205c34",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="69"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$61 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$62 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$63 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$64 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$65 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$66 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$67 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$68 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205c68",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="72"}
(gdb) -file-list-exec-source-file
^done,line="72",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205c68 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:72); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205c68",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="72"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$69 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$70 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$71 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$72 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$73 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$74 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$75 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$76 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[{name="KDEV9",in_scope="true",type_changed="false"}]
(gdb) -var-evaluate-expression "KDEV9"
^done,value="1000067"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205c7c",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="73"}
(gdb) -file-list-exec-source-file
^done,line="73",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205c7c in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:73); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205c7c",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="73"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$77 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$78 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$79 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$80 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$81 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$82 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$83 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$84 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205c88",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="74"}
(gdb) -file-list-exec-source-file
^done,line="74",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205c88 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:74); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205c88",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="74"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$85 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$86 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$87 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$88 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$89 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$90 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$91 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$92 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205ca0",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="77"}
(gdb) -file-list-exec-source-file
^done,line="77",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205ca0 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:77); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205ca0",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="77"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$93 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$94 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$95 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$96 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$97 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$98 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$99 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$100 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205cf8",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="79"}
(gdb) -file-list-exec-source-file
^done,line="79",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205cf8 in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:79); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205cf8",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="79"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$101 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$102 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$103 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$104 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$105 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$106 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$107 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$108 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[{name="KDEV8",in_scope="true",type_changed="false"}]
(gdb) -var-evaluate-expression "KDEV8"
^done,value="200000099"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00205cfc",func="pidUpdate",args=[{name="pid",value="0x207820"},
{name="desired",value="100000000"},
{name="actual",value="0"}],file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="80"}
(gdb) -file-list-exec-source-file
^done,line="80",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="pid",name="desired",name="actual"]}]
(gdb) -stack-list-locals 0
^done,locals=[name="result",name="dt",name="error",name="derror",name="timeStamp"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f98c:
 pc = 0x205cfc in pidUpdate 
(/home/kishore/Drone/Projects/common/utils/pid.c:80); saved pc 0x2028f8
 called by frame at 0x20f99c
 source language c.
 Arglist at 0x20f954, args: pid=0x207820, desired=100000000, actual=0
 Locals at 0x20f954, Previous frame's sp is 0x20f98c
 Saved registers:
  r4 at 0x20f97c, r5 at 0x20f980, r11 at 0x20f984, lr at 0x20f988, pc at 
0x20f988
^done
(gdb) -stack-info-depth 6
^done,depth="3"
(gdb) -stack-list-frames 0 3
^done,stack=[frame={level="0",addr="0x00205cfc",func="pidUpdate",file="/home/kishore/Drone/Projects/common/utils/pid.c",fullname="/home/kishore/Drone/Projects/common/utils/pid.c",line="80"},frame={level="1",addr="0x002028f8",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="61"},frame={level="2",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &pid
print /x &pid
$109 = 0x20f960
^done
(gdb) whatis pid
whatis pid
type = pid_t *
^done
(gdb) print /x &desired
print /x &desired
$110 = 0x20f95c
^done
(gdb) whatis desired
whatis desired
type = int32_t
^done
(gdb) print /x &actual
print /x &actual
$111 = 0x20f958
^done
(gdb) whatis actual
whatis actual
type = int32_t
^done
(gdb) print /x &result
print /x &result
$112 = 0x20f96c
^done
(gdb) whatis result
whatis result
type = int32_t
^done
(gdb) print /x &dt
print /x &dt
$113 = 0x20f970
^done
(gdb) whatis dt
whatis dt
type = uint32_t
^done
(gdb) print /x &error
print /x &error
$114 = 0x20f974
^done
(gdb) whatis error
whatis error
type = int32_t
^done
(gdb) print /x &derror
print /x &derror
$115 = 0x20f978
^done
(gdb) whatis derror
whatis derror
type = int32_t
^done
(gdb) print /x &timeStamp
print /x &timeStamp
$116 = 0x20f964
^done
(gdb) whatis timeStamp
whatis timeStamp
type = struct time
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00202914",func="fmsDesiredAttitude",args=[{name="desiredState",value="0x20f9a0"},
{name="aircraft",value="0x20fa08"}],file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="69"}
(gdb) -file-list-exec-source-file
^done,line="69",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="desiredState",name="aircraft"]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f99c:
 pc = 0x202914 in fmsDesiredAttitude 
(/home/kishore/Drone/Projects/autopilot/src/fms.c:69); saved pc 0x200c48
 called by frame at 0x20facc
 source language c.
 Arglist at 0x20f98c, args: desiredState=0x20f9a0, aircraft=0x20fa08
 Locals at 0x20f98c, Previous frame's sp is 0x20f99c
 Saved registers:
  r11 at 0x20f994, lr at 0x20f998, pc at 0x20f998
^done
(gdb) -stack-info-depth 6
^done,depth="2"
(gdb) -stack-list-frames 0 2
^done,stack=[frame={level="0",addr="0x00202914",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="69"},frame={level="1",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) -var-delete "KDEV5"
^done,ndeleted="1"
(gdb) -var-delete "KDEV6"
^done,ndeleted="1"
(gdb) -var-delete "KDEV7"
^done,ndeleted="1"
(gdb) -var-delete "KDEV8"
^done,ndeleted="1"
(gdb) -var-delete "KDEV9"
^done,ndeleted="1"
(gdb) -var-delete "KDEV10"
^done,ndeleted="1"
(gdb) -var-delete "KDEV11"
^done,ndeleted="1"
(gdb) -var-delete "KDEV12"
^done,ndeleted="1"
(gdb) print /x &desiredState
print /x &desiredState
$117 = 0x20f990
^done
(gdb) -var-create KDEV13 * "desiredState"
^done,name="KDEV13",numchild="8",value="0x20f9a0",type="struct AircraftState 
*"
(gdb) print /x &aircraft
print /x &aircraft
$118 = 0x20f98c
^done
(gdb) -var-create KDEV14 * "aircraft"
^done,name="KDEV14",numchild="2",value="0x20fa08",type="struct Aircraft *"
(gdb) print /x &desiredState
print /x &desiredState
$119 = 0x20f990
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState *
^done
(gdb) print /x &aircraft
print /x &aircraft
$120 = 0x20f98c
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft *
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -var-evaluate-expression "KDEV13"
^done,value="0x20f9a0"
(gdb) -var-evaluate-expression "KDEV14"
^done,value="0x20fa08"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00202948",func="fmsDesiredAttitude",args=[{name="desiredState",value="0x20f9a0"},
{name="aircraft",value="0x20fa08"}],file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="71"}
(gdb) -file-list-exec-source-file
^done,line="71",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="desiredState",name="aircraft"]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f99c:
 pc = 0x202948 in fmsDesiredAttitude 
(/home/kishore/Drone/Projects/autopilot/src/fms.c:71); saved pc 0x200c48
 called by frame at 0x20facc
 source language c.
 Arglist at 0x20f98c, args: desiredState=0x20f9a0, aircraft=0x20fa08
 Locals at 0x20f98c, Previous frame's sp is 0x20f99c
 Saved registers:
  r11 at 0x20f994, lr at 0x20f998, pc at 0x20f998
^done
(gdb) -stack-info-depth 6
^done,depth="2"
(gdb) -stack-list-frames 0 2
^done,stack=[frame={level="0",addr="0x00202948",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="71"},frame={level="1",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &desiredState
print /x &desiredState
$121 = 0x20f990
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState *
^done
(gdb) print /x &aircraft
print /x &aircraft
$122 = 0x20f98c
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft *
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -var-list-children "KDEV13"
^done,numchild="8",children=[child={name="KDEV13.position",exp="position",numchild="3",type="struct 
GeoPosition"},child={name="KDEV13.euler",exp="euler",numchild="3",type="struct 
EulerOrientation"},child={name="KDEV13.quaternion",exp="quaternion",numchild="4",type="struct 
Quaternion"},child={name="KDEV13.acceleration",exp="acceleration",numchild="3",type="struct 
Acceleration"},child={name="KDEV13.angularRate",exp="angularRate",numchild="3",type="struct 
AngularRate"},child={name="KDEV13.velocity",exp="velocity",numchild="3",type="struct 
Velocity"},child={name="KDEV13.climbAngle",exp="climbAngle",numchild="0",type="int32_t"},child={name="KDEV13.airspeed",exp="airspeed",numchild="0",type="uint16_t"}]
(gdb) -var-evaluate-expression "KDEV13.position"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.euler"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.quaternion"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.acceleration"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.angularRate"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.velocity"
^done,value="{...}"
(gdb) -var-evaluate-expression "KDEV13.climbAngle"
^done,value="40000000"
(gdb) -var-evaluate-expression "KDEV13.airspeed"
^done,value="22057"
(gdb) -var-list-children "KDEV13.euler"
^done,numchild="3",children=[child={name="KDEV13.euler.roll",exp="roll",numchild="0",type="int32_t"},child={name="KDEV13.euler.pitch",exp="pitch",numchild="0",type="int32_t"},child={name="KDEV13.euler.heading",exp="heading",numchild="0",type="int32_t"}]
(gdb) -var-evaluate-expression "KDEV13.euler.roll"
^done,value="200000099"
(gdb) -var-evaluate-expression "KDEV13.euler.pitch"
^done,value="-1552729431"
(gdb) -var-evaluate-expression "KDEV13.euler.heading"
^done,value="100000000"
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x0020294c",func="fmsDesiredAttitude",args=[{name="desiredState",value="0x20f9a0"},
{name="aircraft",value="0x20fa08"}],file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="72"}
(gdb) -file-list-exec-source-file
^done,line="72",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[name="desiredState",name="aircraft"]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20f99c:
 pc = 0x20294c in fmsDesiredAttitude 
(/home/kishore/Drone/Projects/autopilot/src/fms.c:72); saved pc 0x200c48
 called by frame at 0x20facc
 source language c.
 Arglist at 0x20f98c, args: desiredState=0x20f9a0, aircraft=0x20fa08
 Locals at 0x20f98c, Previous frame's sp is 0x20f99c
 Saved registers:
  r11 at 0x20f994, lr at 0x20f998, pc at 0x20f998
^done
(gdb) -stack-info-depth 6
^done,depth="2"
(gdb) -stack-list-frames 0 2
^done,stack=[frame={level="0",addr="0x0020294c",func="fmsDesiredAttitude",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="72"},frame={level="1",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152"}]
(gdb) print /x &desiredState
print /x &desiredState
$123 = 0x20f990
^done
(gdb) whatis desiredState
whatis desiredState
type = struct AircraftState *
^done
(gdb) print /x &aircraft
print /x &aircraft
$124 = 0x20f98c
^done
(gdb) whatis aircraft
whatis aircraft
type = struct Aircraft *
^done
(gdb) -var-update *
^done,changelist=[]
(gdb) -exec-next
^running
*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x00200c48",func="main",args=[],file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="155"}
(gdb) -file-list-exec-source-file
^done,line="155",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c"
(gdb) -break-list
^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="4",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="n",addr="0x0020297c",func="fmsDesiredControls",file="/home/kishore/Drone/Projects/autopilot/src/fms.c",fullname="/home/kishore/Drone/Projects/autopilot/src/fms.c",line="78",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00200c34",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="152",times="1"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[]}]
(gdb) -stack-list-locals 0
^done,locals=[name="desiredState",name="controls",name="aircraft"]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0x20facc:
 pc = 0x200c48 in main 
(/home/kishore/Drone/Projects/autopilot/src/main.c:155); saved pc 0x200258
 source language c.
 Arglist at 0x20f99c, args: 
 Locals at 0x20f99c, Previous frame's sp is 0x20facc
 Saved registers:
  r11 at 0x20fac4, lr at 0x20fac8, pc at 0x20fac8
^done
(gdb) -stack-info-depth 6
^done,depth="1"
(gdb) -stack-list-frames 0 1
^done,stack=[frame={level="0",addr="0x00200c48",func="main",file="/home/kishore/Drone/Projects/autopilot/src/main.c",fullname="/home/kishore/Drone/Projects/autopilot/src/main.c",line="155"}]
(gdb) -var-delete "KDEV13.position"
^done,ndeleted="1"
(gdb) -var-delete "KDEV13.euler.roll"
^done,ndeleted="1"
(gdb) -var-delete "KDEV13.euler.pitch"
^done,ndeleted="1"
(gdb) -var-delete "KDEV13.euler.heading"
^done,ndeleted="1"
(gdb) -var-delete "KDEV13.euler"
(gdb) Process exited

-- 
Cheers!
kitts




More information about the KDevelop mailing list