Set next statement and run to cursor problem

Sysprogs forums Forums VisualGDB Set next statement and run to cursor problem

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #10352
    sidprice
    Participant

    I am working with an ARM embedded project and I think there is a problem with set next statement. I have been running a small segment of my code so that I can measure a pulse output, checking my timing calculations. To do this I use “Set next statement” followed by “Run to cursor”. What appears to happen is that “Set next statement” does not set the target MCU to the correct place until I use “Run to cursor”, I have to use “Run to cursor” a second time to get the target to actually run to the selected line.

    After the “Set next line” the PC appears to be correct, however the first “Run to cursor” does not run to that line and the PC remains the same.

    Sid

    #10367
    support
    Keymaster

    Hi,

    This is expected if you are debugging optimized code (the mapping between source lines and the actual instructions is very inaccurate then).

    If you can reproduce this in the unoptimized code, please provide us more details so that we could look into this:

    1. A snippet from your source file with the line numbers
    2. A snippet from the gdb log (or the ‘all gdb interaction’ mode of the GDB Session window) showing the commands and gdb responses that are executed in response to using the “Set next statement” command. This should explain what is going on.
    #10390
    sidprice
    Participant

    Code snippet:

    144 int sl_IfWrite( Fd_t fd, unsigned char *pBuffx, int len )
    145 {
    146 _CC3100_ChipSelect(); // Assert the chip select
    147 //
    148 // Write the data as words
    149 //
    150 u_int16_t * pOutput = (u_int16_t * )pBuffx;
    151 for ( int iLoop = 0; iLoop < len ; iLoop += 2, pOutput++ )
    152 {
    153 spi_xfer( SPI1, _CC3100_ByteSwap( *pOutput ) );
    154 }
    155 _CC3100_ChipDeselect(); // Negate the chip select
    156 return ( len ) ;
    157 }

    With the MCU stopped at a breakpoint on line #157 I “Set Next Statment” on line #146:

    info line “C:/DataRoot/Projects/bmp_windows_build/bmp_windows_build/bmp_windows_build/platforms/WifiF4/cc3100.c”:146
    &”info line \”C:/DataRoot/Projects/bmp_windows_build/bmp_windows_build/bmp_windows_build/platforms/WifiF4/cc3100.c\”:146\n”
    ~”Line 146 of \”platforms/WifiF4/cc3100.c\” starts at address 0x80023cc <sl_IfWrite+4> and ends at 0x80023d0 <sl_IfWrite+8>.\n”
    ^done
    -var-create – * $pc
    ^done,name=”var11″,numchild=”0″,value=”0x80023fe <sl_IfWrite+54>”,type=”void (*)()”,has_more=”0″
    -var-assign var11 0x80023cc
    ^done,value=”0x80023cc <sl_IfWrite+4>”
    -var-delete var11
    ^done,ndeleted=”1″
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},frame={level=”1″,addr=”0x080034d6″,func=”_SlDrvRxHdrRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1583″},frame={level=”2″,addr=”0x080034d6″,func=”_SlDrvMsgRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”964″},frame={level=”3″,addr=”0x08003a6c”,func=”_SlDrvMsgReadSpawnCtx”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1424″},frame={level=”4″,addr=”0x0800409e”,func=”_SlNonOsMainLoopTask”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”189″},frame={level=”5″,addr=”0x0800413e”,func=”_SlNonOsSemGet”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”111″},frame={level=”6″,addr=”0x08003c54″,func=”_SlDrvSyncObjWaitTimeout”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”2075″},frame={level=”7″,addr=”0x080029c4″,func=”sl_Start”,file=”simplelink/source/device.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\device.c”,line=”146″},frame={level=”8″,addr=”0x080024ea”,func=”_CC3100_Setup”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”296″},frame={level=”9″,addr=”0x080026c8″,func=”cc3100_init”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”488″},frame={level=”10″,addr=”0x080028a0″,func=”platform_init”,file=”platforms/WifiF4/platform.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\platform.c”,line=”113″},frame={level=”11″,addr=”0x08001538″,func=”main”,file=”main.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\main.c”,line=”54″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[name=”fd”,name=”pBuffx”,name=”len”]},frame={level=”1″,args=[name=”pAlignSize”,name=”pBuf”]},frame={level=”2″,args=[]},frame={level=”3″,args=[name=”pValue”]},frame={level=”4″,args=[]},frame={level=”5″,args=[name=”pSyncObj”,name=”WaitValue”,name=”SetValue”,name=”Timeout”]},frame={level=”6″,args=[name=”pSyncObj”,name=”timeoutVal”,name=”apiIdx”]},frame={level=”7″,args=[name=”pIfHdl”,name=”pDevName”,name=”pInitCallBack”]},frame={level=”8″,args=[]},frame={level=”9″,args=[]},frame={level=”10″,args=[]},frame={level=”11″,args=[name=”argc”,name=”argv”]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},frame={level=”1″,addr=”0x080034d6″,func=”_SlDrvRxHdrRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1583″},frame={level=”2″,addr=”0x080034d6″,func=”_SlDrvMsgRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”964″},frame={level=”3″,addr=”0x08003a6c”,func=”_SlDrvMsgReadSpawnCtx”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1424″},frame={level=”4″,addr=”0x0800409e”,func=”_SlNonOsMainLoopTask”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”189″},frame={level=”5″,addr=”0x0800413e”,func=”_SlNonOsSemGet”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”111″},frame={level=”6″,addr=”0x08003c54″,func=”_SlDrvSyncObjWaitTimeout”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”2075″},frame={level=”7″,addr=”0x080029c4″,func=”sl_Start”,file=”simplelink/source/device.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\device.c”,line=”146″},frame={level=”8″,addr=”0x080024ea”,func=”_CC3100_Setup”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”296″},frame={level=”9″,addr=”0x080026c8″,func=”cc3100_init”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”488″},frame={level=”10″,addr=”0x080028a0″,func=”platform_init”,file=”platforms/WifiF4/platform.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\platform.c”,line=”113″},frame={level=”11″,addr=”0x08001538″,func=”main”,file=”main.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\main.c”,line=”54″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[name=”fd”,name=”pBuffx”,name=”len”]},frame={level=”1″,args=[name=”pAlignSize”,name=”pBuf”]},frame={level=”2″,args=[]},frame={level=”3″,args=[name=”pValue”]},frame={level=”4″,args=[]},frame={level=”5″,args=[name=”pSyncObj”,name=”WaitValue”,name=”SetValue”,name=”Timeout”]},frame={level=”6″,args=[name=”pSyncObj”,name=”timeoutVal”,name=”apiIdx”]},frame={level=”7″,args=[name=”pIfHdl”,name=”pDevName”,name=”pInitCallBack”]},frame={level=”8″,args=[]},frame={level=”9″,args=[]},frame={level=”10″,args=[]},frame={level=”11″,args=[name=”argc”,name=”argv”]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},frame={level=”1″,addr=”0x080034d6″,func=”_SlDrvRxHdrRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1583″},frame={level=”2″,addr=”0x080034d6″,func=”_SlDrvMsgRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”964″},frame={level=”3″,addr=”0x08003a6c”,func=”_SlDrvMsgReadSpawnCtx”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1424″},frame={level=”4″,addr=”0x0800409e”,func=”_SlNonOsMainLoopTask”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”189″},frame={level=”5″,addr=”0x0800413e”,func=”_SlNonOsSemGet”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”111″},frame={level=”6″,addr=”0x08003c54″,func=”_SlDrvSyncObjWaitTimeout”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”2075″},frame={level=”7″,addr=”0x080029c4″,func=”sl_Start”,file=”simplelink/source/device.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\device.c”,line=”146″},frame={level=”8″,addr=”0x080024ea”,func=”_CC3100_Setup”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”296″},frame={level=”9″,addr=”0x080026c8″,func=”cc3100_init”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”488″},frame={level=”10″,addr=”0x080028a0″,func=”platform_init”,file=”platforms/WifiF4/platform.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\platform.c”,line=”113″},frame={level=”11″,addr=”0x08001538″,func=”main”,file=”main.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\main.c”,line=”54″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[name=”fd”,name=”pBuffx”,name=”len”]},frame={level=”1″,args=[name=”pAlignSize”,name=”pBuf”]},frame={level=”2″,args=[]},frame={level=”3″,args=[name=”pValue”]},frame={level=”4″,args=[]},frame={level=”5″,args=[name=”pSyncObj”,name=”WaitValue”,name=”SetValue”,name=”Timeout”]},frame={level=”6″,args=[name=”pSyncObj”,name=”timeoutVal”,name=”apiIdx”]},frame={level=”7″,args=[name=”pIfHdl”,name=”pDevName”,name=”pInitCallBack”]},frame={level=”8″,args=[]},frame={level=”9″,args=[]},frame={level=”10″,args=[]},frame={level=”11″,args=[name=”argc”,name=”argv”]}]
    -var-create –frame 0 –thread 1 – * “while”
    ^error,msg=”-var-create: unable to create variable object”

    If I then use the “Continue command” the MCU stays on line #146:

    -var-create –frame 0 –thread 1 – * “select”
    ^error,msg=”-var-create: unable to create variable object”
    -var-create –frame 0 –thread 1 – * “sl_Select”
    ^error,msg=”-var-create: unable to create variable object”
    -exec-continue
    ^running
    *running,thread-id=”all”
    =breakpoint-modified,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″,thread-groups=[“i1″],times=”2″,original-location=”C:/DataRoot/Projects/bmp_windows_build/bmp_windows_build/bmp_windows_build/platforms/WifiF4/cc3100.c:146″}
    ~”\n”
    ~”Breakpoint 2, sl_IfWrite (fd=0x0, pBuffx=0x7856 \”W\322\260\365\\001OT\320H\362\\020\\023\\230BP\320\”, pBuffx@entry=0x80169a8 <g_H2NCnysPattern+4> \”e\207xV\\377\356\335\273!C4\\022/\234\\030\\004\\064\234\\f\\004\\062\204\\b\\004m\214\\004\\004\265\214\\b\\004\264\214\\004\\004\\060x%lx: 0x%lx <- does not match preamble (0x%X)\\n\”, len=1024, len@entry=4) at platforms/WifiF4/cc3100.c:146\n”
    ~”146\t\t_CC3100_ChipSelect();\t\t// Assert the chip select\n”
    *stopped,reason=”breakpoint-hit”,disp=”keep”,bkptno=”2″,frame={addr=”0x080023cc”,func=”sl_IfWrite”,args=[{name=”fd”,value=”0x0″},{name=”pBuffx”,value=”0x7856 \”W\322\260\365\\001OT\320H\362\\020\\023\\230BP\320\””},{name=”pBuffx@entry”,value=”0x80169a8 <g_H2NCnysPattern+4> \”e\207xV\\377\356\335\273!C4\\022/\234\\030\\004\\064\234\\f\\004\\062\204\\b\\004m\214\\004\\004\265\214\\b\\004\264\214\\004\\004\\060x%lx: 0x%lx <- does not match preamble (0x%X)\\n\””},{name=”len”,value=”1024″},{name=”len@entry”,value=”4″}],file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},thread-id=”1″,stopped-threads=”all”
    -break-after 2 0
    ^done
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},frame={level=”1″,addr=”0x080034d6″,func=”_SlDrvRxHdrRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1583″},frame={level=”2″,addr=”0x080034d6″,func=”_SlDrvMsgRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”964″},frame={level=”3″,addr=”0x08003a6c”,func=”_SlDrvMsgReadSpawnCtx”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1424″},frame={level=”4″,addr=”0x0800409e”,func=”_SlNonOsMainLoopTask”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”189″},frame={level=”5″,addr=”0x0800413e”,func=”_SlNonOsSemGet”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”111″},frame={level=”6″,addr=”0x08003c54″,func=”_SlDrvSyncObjWaitTimeout”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”2075″},frame={level=”7″,addr=”0x080029c4″,func=”sl_Start”,file=”simplelink/source/device.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\device.c”,line=”146″},frame={level=”8″,addr=”0x080024ea”,func=”_CC3100_Setup”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”296″},frame={level=”9″,addr=”0x080026c8″,func=”cc3100_init”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”488″},frame={level=”10″,addr=”0x080028a0″,func=”platform_init”,file=”platforms/WifiF4/platform.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\platform.c”,line=”113″},frame={level=”11″,addr=”0x08001538″,func=”main”,file=”main.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\main.c”,line=”54″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[name=”fd”,name=”pBuffx”,name=”len”]},frame={level=”1″,args=[name=”pAlignSize”,name=”pBuf”]},frame={level=”2″,args=[]},frame={level=”3″,args=[name=”pValue”]},frame={level=”4″,args=[]},frame={level=”5″,args=[name=”pSyncObj”,name=”WaitValue”,name=”SetValue”,name=”Timeout”]},frame={level=”6″,args=[name=”pSyncObj”,name=”timeoutVal”,name=”apiIdx”]},frame={level=”7″,args=[name=”pIfHdl”,name=”pDevName”,name=”pInitCallBack”]},frame={level=”8″,args=[]},frame={level=”9″,args=[]},frame={level=”10″,args=[]},frame={level=”11″,args=[name=”argc”,name=”argv”]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x080023cc”,func=”sl_IfWrite”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”146″},frame={level=”1″,addr=”0x080034d6″,func=”_SlDrvRxHdrRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1583″},frame={level=”2″,addr=”0x080034d6″,func=”_SlDrvMsgRead”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”964″},frame={level=”3″,addr=”0x08003a6c”,func=”_SlDrvMsgReadSpawnCtx”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”1424″},frame={level=”4″,addr=”0x0800409e”,func=”_SlNonOsMainLoopTask”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”189″},frame={level=”5″,addr=”0x0800413e”,func=”_SlNonOsSemGet”,file=”simplelink/source/nonos.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\nonos.c”,line=”111″},frame={level=”6″,addr=”0x08003c54″,func=”_SlDrvSyncObjWaitTimeout”,file=”simplelink/source/driver.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\driver.c”,line=”2075″},frame={level=”7″,addr=”0x080029c4″,func=”sl_Start”,file=”simplelink/source/device.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\simplelink\\source\\device.c”,line=”146″},frame={level=”8″,addr=”0x080024ea”,func=”_CC3100_Setup”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”296″},frame={level=”9″,addr=”0x080026c8″,func=”cc3100_init”,file=”platforms/WifiF4/cc3100.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\cc3100.c”,line=”488″},frame={level=”10″,addr=”0x080028a0″,func=”platform_init”,file=”platforms/WifiF4/platform.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\platforms\\WifiF4\\platform.c”,line=”113″},frame={level=”11″,addr=”0x08001538″,func=”main”,file=”main.c”,fullname=”C:\\DataRoot\\Projects\\bmp_windows_build\\bmp_windows_build\\bmp_windows_build\\main.c”,line=”54″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[name=”fd”,name=”pBuffx”,name=”len”]},frame={level=”1″,args=[name=”pAlignSize”,name=”pBuf”]},frame={level=”2″,args=[]},frame={level=”3″,args=[name=”pValue”]},frame={level=”4″,args=[]},frame={level=”5″,args=[name=”pSyncObj”,name=”WaitValue”,name=”SetValue”,name=”Timeout”]},frame={level=”6″,args=[name=”pSyncObj”,name=”timeoutVal”,name=”apiIdx”]},frame={level=”7″,args=[name=”pIfHdl”,name=”pDevName”,name=”pInitCallBack”]},frame={level=”8″,args=[]},frame={level=”9″,args=[]},frame={level=”10″,args=[]},frame={level=”11″,args=[name=”argc”,name=”argv”]}]

    NOTE: There is a breakpoint on line #146, if I remove the breakpoint, set the next line to #146, and continue it works correctly,

    Sid

    #10391
    support
    Keymaster

    Hi,

    Thanks for clarifying this. It is actually a known behavior of gdb. When jumping to a line with a breakpoint, the breakpoint will get triggered after resuming the program as if the line got reached naturally.

    It should not interfere with anything else; simply press F5 or F10 again to continue debugging.

    #10395
    sidprice
    Participant

    Thanks, Sid

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.