tbreak main not work, Debugger not work

Sysprogs forums Forums VisualGDB tbreak main not work, Debugger not work

This topic contains 2 replies, has 2 voices, and was last updated by  support 3 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25310

    ExtSol
    Participant

    Hi,

    I tried to add break point to main with parameter, but not work. How can i stop debugging when reach main?

    In VS 2017 and 2019 both, do not work debugging.

    Please see de pictures, and i share my project at this link:

    https://drive.google.com/open?id=1c5lWZ_0vl7CMaqzAYuhMipdB8AryRcLf

    • This topic was modified 3 months, 1 week ago by  ExtSol.
    Attachments:
    You must be logged in to view attached files.
    #25314

    ExtSol
    Participant

    C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi “C:\Users\ExtSol\Desktop\VisualGDBTemplate\VisualGDB\Debug\VisualGDBTemplate”
    [ 0 ms] -gdb-version
    [ 34 ms] =thread-group-added,id=”i1″
    [ 34 ms] ~”GNU gdb (GDB) 8.0.1\n”
    [ 34 ms] ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    [ 34 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    [ 35 ms] ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    [ 35 ms] ~”\nFor bug reporting instructions, please see:\n”
    [ 35 ms] ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    [ 35 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    [ 35 ms] ~”For help, type \”help\”.\n”
    [ 35 ms] ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    [ 35 ms] ~”Reading symbols from C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDB\\Debug\\VisualGDBTemplate…”
    [ 35 ms] ~”done.\n”
    [ 36 ms] ~”GNU gdb (GDB) 8.0.1\n”
    [ 36 ms] ~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
    [ 36 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    [ 36 ms] ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    [ 36 ms] ~”\nFor bug reporting instructions, please see:\n”
    [ 36 ms] ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    [ 36 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    [ 36 ms] ~”For help, type \”help\”.\n”
    [ 36 ms] ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    [ 36 ms] ^done
    [ 36 ms] -list-features
    [ 37 ms] ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    [ 37 ms] -gdb-set disassembly-flavor intel
    [ 37 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
    [ 37 ms] -gdb-set print demangle off
    [ 37 ms] ^done
    [ 38 ms] set remotetimeout 60
    [ 47 ms] &”set remotetimeout 60\n”
    [ 47 ms] =cmd-param-changed,param=”remotetimeout”,value=”60″
    [ 47 ms] ^done
    [ 47 ms] target remote :49841
    [ 47 ms] &”target remote :49841\n”
    [ 53 ms] ~”Remote debugging using :49841\n”
    [ 59 ms] =thread-group-started,id=”i1″,pid=”42000″
    [ 59 ms] =thread-created,id=”1″,group-id=”i1″
    [ 61 ms] ~”Reset_Handler () at C:/Users/ExtSol/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32/STM32F1xxxx/StartupFiles/startup_stm32f103xb.c:572\n”
    [ 61 ms] ~”572\t\tfor (pSource = &_sidata, pDest = &_sdata; pDest != &_edata; pSource++, pDest++)\n”
    [ 61 ms] *stopped,frame={addr=”0x080001dc”,func=”Reset_Handler”,args=[],file=”C:/Users/ExtSol/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32/STM32F1xxxx/StartupFiles/startup_stm32f103xb.c”,fullname=”C:\\Users\\ExtSol\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.stm32\\STM32F1xxxx\\StartupFiles\\startup_stm32f103xb.c”,line=”572″},thread-id=”1″,stopped-threads=”all”
    [ 62 ms] ^done
    [ 62 ms] info shared
    [ 71 ms] &”info shared\n”
    [ 71 ms] ~”No shared libraries loaded at this time.\n”
    [ 71 ms] ^done
    [ 71 ms] mon halt
    [ 71 ms] &”mon halt\n”
    [ 73 ms] ^done
    [ 73 ms] mon reset init
    [ 73 ms] &”mon reset init\n”
    [ 90 ms] @”target halted due to debug-request, current mode: Thread \n”
    [ 90 ms] @”xPSR: 0x01000000 pc: 0x080001dc msp: 0x20005000\n”
    [ 91 ms] ^done
    [ 91 ms] load
    [ 101 ms] &”load\n”
    [ 145 ms] ~”Loading section .isr_vector, size 0x10c lma 0x8000000\n”
    [ 145 ms] +download,{section=”.isr_vector”,section-size=”268″,total-size=”6422″}
    [ 146 ms] +download,{section=”.isr_vector”,section-sent=”268″,section-size=”268″,total-sent=”268″,total-size=”6422″}
    [ 146 ms] ~”Loading section .text, size 0x1c4 lma 0x800010c\n”
    [ 146 ms] +download,{section=”.text”,section-size=”452″,total-size=”6422″}
    [ 146 ms] ~”Loading section .init_array, size 0x4 lma 0x80002d0\n”
    [ 146 ms] +download,{section=”.init_array”,section-size=”4″,total-size=”6422″}
    [ 146 ms] ~”Loading section .fini_array, size 0x4 lma 0x80002d4\n”
    [ 146 ms] +download,{section=”.fini_array”,section-size=”4″,total-size=”6422″}
    [ 223 ms] ~”Start address 0x80001dc, load size 728\n”
    [ 223 ms] ~”Transfer rate: 5 KB/sec, 182 bytes/write.\n”
    [ 223 ms] ^done
    [ 224 ms] -data-evaluate-expression “sizeof(void *)”
    [ 233 ms] ^done,value=”4″
    [ 233 ms] -data-evaluate-expression “sizeof(int)”
    [ 243 ms] ^done,value=”4″
    [ 243 ms] -data-evaluate-expression “sizeof(short)”
    [ 243 ms] ^done,value=”2″
    [ 243 ms] -data-evaluate-expression “sizeof(long)”
    [ 243 ms] ^done,value=”4″
    [ 243 ms] -data-evaluate-expression “sizeof(long long)”
    [ 244 ms] ^done,value=”8″
    [ 244 ms] -data-evaluate-expression “sizeof(char)”
    [ 244 ms] ^done,value=”1″
    [ 244 ms] -data-evaluate-expression “sizeof(wchar_t)”
    [ 244 ms] ^error,msg=”No symbol \”wchar_t\” in current context.”
    [ 244 ms] -data-evaluate-expression “sizeof(float)”
    [ 244 ms] ^done,value=”4″
    [ 244 ms] -data-evaluate-expression “sizeof(double)”
    [ 244 ms] ^done,value=”8″
    [ 244 ms] -data-evaluate-expression “sizeof(long double)”
    [ 245 ms] ^done,value=”8″
    [ 267 ms] info target
    [ 276 ms] &”info target\n”
    [ 276 ms] ~”Symbols from \”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDB\\Debug\\VisualGDBTemplate\”.\n”
    [ 276 ms] ~”Remote serial target in gdb-specific protocol:\n”
    [ 276 ms] ~”Debugging a target over a serial line.\n”
    [ 276 ms] ~”\tWhile running this, GDB does not access memory from…\n”
    [ 276 ms] ~”Local exec file:\n”
    [ 276 ms] ~”\t`C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDB\\Debug\\VisualGDBTemplate’, file type elf32-littlearm.\n”
    [ 276 ms] ~”\tEntry point: 0x80001dc\n”
    [ 276 ms] ~”\t0x08000000 – 0x0800010c is .isr_vector\n”
    [ 276 ms] ~”\t0x0800010c – 0x080002d0 is .text\n”
    [ 276 ms] ~”\t0x080002d0 – 0x080002d4 is .init_array\n”
    [ 276 ms] ~”\t0x080002d4 – 0x080002d8 is .fini_array\n”
    [ 276 ms] ~”\t0x20000000 – 0x20000000 is .data\n”
    [ 276 ms] ~”\t0x20000000 – 0x20000020 is .bss\n”
    [ 276 ms] ^done
    [ 278 ms] -break-insert -f C:/Users/ExtSol/Desktop/VisualGDBTemplate/VisualGDBTemplate.c:16
    [ 290 ms] ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x080002a8″,func=”main”,file=”VisualGDBTemplate.c”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDBTemplate.c”,line=”16″,thread-groups=[“i1″],times=”0″,original-location=”C:/Users/ExtSol/Desktop/VisualGDBTemplate/VisualGDBTemplate.c:16″}
    [ 290 ms] -break-after 1 0
    [ 300 ms] ^done
    [ 300 ms] info symbol 0x80002a8
    [ 300 ms] &”info symbol 0x80002a8\n”
    [ 300 ms] ~”main + 24 in section .text\n”
    [ 300 ms] ^done
    [ 300 ms] info line *0x80002a8
    [ 301 ms] &”info line *0x80002a8\n”
    [ 301 ms] ~”Line 16 of \”VisualGDBTemplate.c\” starts at address 0x80002a8 <main+24> and ends at 0x80002ae <main+30>.\n”
    [ 301 ms] ^done
    [ 301 ms] -file-list-exec-source-files
    [ 302 ms] ^done,files=[{file=”C:/Users/ExtSol/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.stm32/STM32F1xxxx/StartupFiles/startup_stm32f103xb.c”,fullname=”C:\\Users\\ExtSol\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.stm32\\STM32F1xxxx\\StartupFiles\\startup_stm32f103xb.c”},{file=”VisualGDBTemplate.c”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDBTemplate.c”},{file=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\machine/_default_types.h”,fullname=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\machine\\_default_types.h”},{file=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\sys/_stdint.h”,fullname=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\sys\\_stdint.h”},{file=”CMSIS/Include/core_cm3.h”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\CMSIS\\Include\\core_cm3.h”},{file=”CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\CMSIS\\Device\\ST\\STM32F1xx\\Include\\system_stm32f1xx.h”},{file=”../../../../../../../newlib/newlib/libc/misc/init.c”,fullname=”/q/gnu/newlib-nano/gcc-arm-none-eabi-6-2017-q2-update/src/newlib-build/arm-eabi/thumb/cortex_m3/newlib/libc/misc/../../../../../../../newlib/newlib/libc/misc/init.c”},{file=”CMSIS/Device/ST/STM32F1xx/Source/system_stm32f1xx.c”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\CMSIS\\Device\\ST\\STM32F1xx\\Source\\system_stm32f1xx.c”}]
    [ 303 ms] -data-evaluate-expression “&_estack”
    [ 312 ms] ^done,value=”0x20005000″
    [ 312 ms] -var-create – * “*((void **)0x20004ffc)”
    [ 324 ms] ^done,name=”var1″,numchild=”0″,value=”0x20004ffc”,type=”void *”,has_more=”0″
    [ 324 ms] -var-assign “var1″ 0x1e16e18a
    [ 336 ms] ^done,value=”0x1e16e18a”
    [ 336 ms] -data-evaluate-expression “\*\(\(void\ \*\*\)0x20004ffc\)”
    [ 336 ms] ^done,value=”0x1e16e18a”
    [ 336 ms] -break-insert -f main
    [ 339 ms] ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x08000294″,func=”main”,file=”VisualGDBTemplate.c”,fullname=”C:\\Users\\ExtSol\\Desktop\\VisualGDBTemplate\\VisualGDBTemplate.c”,line=”13″,thread-groups=[“i1″],times=”0″,original-location=”main”}
    [ 1959 ms] -break-delete 1
    [ 1960 ms] ^done
    [ 1960 ms] -gdb-exit
    [ 1960 ms] ^exit
    [ 1960 ms] =thread-group-exited,id=”i1″

    #25318

    support
    Keymaster

    Hi,

    This looks like another instance of this issue. Please follow the instructions in another thread to obtain another diagnostic log and we should be able to fix it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.