Sysprogs forums › Forums › VisualGDB › VIsualGDB Debugging Exit Without Any Breakpoint HIt
- This topic has 1 reply, 2 voices, and was last updated 6 years, 7 months ago by
support.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
November 21, 2018 at 22:36 #22805
JRamos
ParticipantWhen I run the debug i got a popup with the follow message: VisualGDB debugging exit without any breakpoint hit.
The file runs without any errors and shows the output.
But in GDB Log I found some lines with some errors like:[ 208 ms] -break-insert -f /home/jramos/RPI_Debug/RFTools.cpp:7
[ 216 ms] &”No source file named /home/jramos/RPI_Debug/RFTools.cpp.\n”The breakpoint at line 7 of RFTools seems not be recognized by GDB and exists the RFTools.cpp in that folder.
What can I missing?
Follows the complete GDB LOG:
gdb --interpreter mi --args "/home/jramos/RPI_Debug/../VisualGDB/Debug/RFTools" [ 0 ms] =thread-group-added,id="i1" [ 0 ms] =thread-group-added,id="i1" [ 0 ms] -gdb-version [ 1 ms] ~"GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1\n" [ 1 ms] ~"Copyright (C) 2016 Free Software Foundation, Inc.\n" [ 1 ms] ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" [ 3 ms] ~"This GDB was configured as \"arm-linux-gnueabihf\".\nType \"show configuration\" for configuration details." [ 3 ms] ~"\nFor bug reporting instructions, please see:\n" [ 3 ms] ~"<http://www.gnu.org/software/gdb/bugs/>.\n" [ 3 ms] ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" [ 3 ms] ~"For help, type \"help\".\n" [ 3 ms] ~"Type \"apropos word\" to search for commands related to \"word\"...\n" [ 3 ms] ~"Reading symbols from /home/jramos/RPI_Debug/../VisualGDB/Debug/RFTools..." [ 3 ms] ~"done.\n" [ 8 ms] ~"GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1\n" [ 8 ms] ~"Copyright (C) 2016 Free Software Foundation, Inc.\n" [ 8 ms] ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" [ 10 ms] ~"This GDB was configured as \"arm-linux-gnueabihf\".\nType \"show configuration\" for configuration details." [ 10 ms] ~"\nFor bug reporting instructions, please see:\n" [ 10 ms] ~"<http://www.gnu.org/software/gdb/bugs/>.\n" [ 10 ms] ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" [ 10 ms] ~"For help, type \"help\".\n" [ 10 ms] ~"Type \"apropos word\" to search for commands related to \"word\".\n" [ 10 ms] ^done [ 10 ms] -list-features [ 13 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","python"] [ 13 ms] -gdb-set disassembly-flavor intel [ 16 ms] ^error,msg="No symbol \"disassembly\" in current context." [ 16 ms] ^error,msg="No symbol \"disassembly\" in current context." [ 16 ms] -gdb-set print demangle off [ 19 ms] ^done [ 20 ms] -break-insert -f main [ 23 ms] ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000107aa",func="main(int, char**)",file="RFTools.cpp",fullname="/home/jramos/RPI Debug/RFTools.cpp",line="7",thread-groups=["i1"],times="0",original-location="main"} [ 158 ms] -inferior-tty-set /dev/pts/2 [ 161 ms] ^done [ 168 ms] info target [ 195 ms] &"info target\n" [ 195 ms] ~"Symbols from \"/home/jramos/VisualGDB/Debug/RFTools\".\n" [ 195 ms] ~"Local exec file:\n" [ 195 ms] ~"\t`/home/jramos/VisualGDB/Debug/RFTools', file type elf32-littlearm.\n" [ 195 ms] ~"\tEntry point: 0x106b4\n" [ 195 ms] ~"\t0x00010154 - 0x0001016d is .interp\n" [ 195 ms] ~"\t0x00010170 - 0x00010190 is .note.ABI-tag\n" [ 195 ms] ~"\t0x00010190 - 0x000101b4 is .note.gnu.build-id\n" [ 195 ms] ~"\t0x000101b4 - 0x00010204 is .gnu.hash\n" [ 195 ms] ~"\t0x00010204 - 0x00010314 is .dynsym\n" [ 195 ms] ~"\t0x00010314 - 0x000104ff is .dynstr\n" [ 195 ms] ~"\t0x00010500 - 0x00010522 is .gnu.version\n" [ 195 ms] ~"\t0x00010524 - 0x000105b4 is .gnu.version_r\n" [ 195 ms] ~"\t0x000105b4 - 0x000105cc is .rel.dyn\n" [ 195 ms] ~"\t0x000105cc - 0x0001061c is .rel.plt\n" [ 195 ms] ~"\t0x0001061c - 0x00010628 is .init\n" [ 195 ms] ~"\t0x00010628 - 0x000106b4 is .plt\n" [ 195 ms] ~"\t0x000106b4 - 0x00010898 is .text\n" [ 195 ms] ~"\t0x00010898 - 0x000108a0 is .fini\n" [ 195 ms] ~"\t0x000108a0 - 0x000108ae is .rodata\n" [ 195 ms] ~"\t0x000108b0 - 0x000108bc is .ARM.extab\n" [ 195 ms] ~"\t0x000108bc - 0x000108d4 is .ARM.exidx\n" [ 195 ms] ~"\t0x000108d4 - 0x000108d8 is .eh_frame\n" [ 195 ms] ~"\t0x00020ee8 - 0x00020ef0 is .init_array\n" [ 195 ms] ~"\t0x00020ef0 - 0x00020ef4 is .fini_array\n" [ 195 ms] ~"\t0x00020ef4 - 0x00020ef8 is .jcr\n" [ 195 ms] ~"\t0x00020ef8 - 0x00021000 is .dynamic\n" [ 195 ms] ~"\t0x00021000 - 0x00021038 is .got\n" [ 195 ms] ~"\t0x00021038 - 0x0002103c is .data\n" [ 195 ms] ~"\t0x00021040 - 0x000210d8 is .bss\n" [ 195 ms] ^done <strong>[ 208 ms] -break-insert -f /home/jramos/RPI_Debug/RFTools.cpp:7</strong> <strong>[ 216 ms] &"No source file named /home/jramos/RPI_Debug/RFTools.cpp.\n"</strong> [ 216 ms] ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/home/jramos/RPI_Debug/RFTools.cpp:7",times="0",original-location="/home/jramos/RPI_Debug/RFTools.cpp:7"} [ 216 ms] -file-list-exec-source-files [ 225 ms] ^done,files=[{file="RFTools.cpp",fullname="/home/jramos/RPI Debug/RFTools.cpp"},{file="/usr/include/c++/5/iostream",fullname="/usr/include/c++/5/iostream"},{file="/usr/include/c++/5/cwchar",fullname="/usr/include/c++/5/cwchar"},{file="/usr/include/arm-linux-gnueabihf/c++/5/bits/c++config.h",fullname="/usr/include/arm-linux-gnueabihf/c++/5/bits/c++config.h"},{file="/usr/include/c++/5/debug/debug.h",fullname="/usr/include/c++/5/debug/debug.h"},{file="/usr/include/c++/5/bits/char_traits.h",fullname="/usr/include/c++/5/bits/char_traits.h"},{file="/usr/include/c++/5/clocale",fullname="/usr/include/c++/5/clocale"},{file="/usr/include/c++/5/bits/ios_base.h",fullname="/usr/include/c++/5/bits/ios_base.h"},{file="/usr/include/c++/5/cwctype",fullname="/usr/include/c++/5/cwctype"},{file="/usr/include/c++/5/iosfwd",fullname="/usr/include/c++/5/iosfwd"},{file="/usr/include/c++/5/bits/predefined_ops.h",fullname="/usr/include/c++/5/bits/predefined_ops.h"},{file="/usr/include/c++/5/ext/new_allocator.h",fullname="/usr/include/c++/5/ext/new_allocator.h"},{file="/usr/include/c++/5/ext/numeric_traits.h",fullname="/usr/include/c++/5/ext/numeric_traits.h"},{file="/usr/include/stdio.h",fullname="/usr/include/stdio.h"},{file="/usr/lib/gcc/arm-linux-gnueabihf/5/include/stdarg.h",fullname="/usr/lib/gcc/arm-linux-gnueabihf/5/include/stdarg.h"},{file="<built-in>",fullname="/home/jramos/RPI Debug/<built-in>"},{file="/usr/lib/gcc/arm-linux-gnueabihf/5/include/stddef.h",fullname="/usr/lib/gcc/arm-linux-gnueabihf/5/include/stddef.h"},{file="/usr/include/wchar.h",fullname="/usr/include/wchar.h"},{file="/usr/include/time.h",fullname="/usr/include/time.h"},{file="/usr/include/locale.h",fullname="/usr/include/locale.h"},{file="/usr/include/arm-linux-gnueabihf/bits/types.h",fullname="/usr/include/arm-linux-gnueabihf/bits/types.h"},{file="/usr/include/arm-linux-gnueabihf/c++/5/bits/atomic_word.h",fullname="/usr/include/arm-linux-gnueabihf/c++/5/bits/atomic_word.h"},{file="/usr/include/wctype.h",fullname="/usr/include/wctype.h"},{file="/usr/include/c++/5/iostream",fullname="/usr/include/c++/5/iostream"}] [ 225 ms] -break-after 2 0 [ 228 ms] ^done [ 229 ms] -exec-run [ 233 ms] =thread-group-started,id="i1",pid="19019" [ 233 ms] =thread-created,id="1",group-id="i1" [ 243 ms] =library-loaded,id="/lib/ld-linux-armhf.so.3",target-name="/lib/ld-linux-armhf.so.3",host-name="/lib/ld-linux-armhf.so.3",symbols-loaded="0",thread-group="i1" [ 308 ms] ^running [ 308 ms] *running,thread-id="all" [ 313 ms] &"Cannot parse expression `.L1185 4@r4'.\n" [ 314 ms] &"warning: Probes-based dynamic linker interface failed.\nReverting to original interface.\n" [ 314 ms] &"\n" [ 315 ms] =library-loaded,id="/usr/lib/arm-linux-gnueabihf/libarmmem.so",target-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",host-name="/usr/lib/arm-linux-gnueabihf/libarmmem.so",symbols-loaded="0",thread-group="i1" [ 316 ms] =library-loaded,id="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",target-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",host-name="/usr/lib/arm-linux-gnueabihf/libstdc++.so.6",symbols-loaded="0",thread-group="i1" [ 317 ms] =library-loaded,id="/lib/arm-linux-gnueabihf/libgcc_s.so.1",target-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",host-name="/lib/arm-linux-gnueabihf/libgcc_s.so.1",symbols-loaded="0",thread-group="i1" [ 318 ms] =library-loaded,id="/lib/arm-linux-gnueabihf/libc.so.6",target-name="/lib/arm-linux-gnueabihf/libc.so.6",host-name="/lib/arm-linux-gnueabihf/libc.so.6",symbols-loaded="0",thread-group="i1" [ 319 ms] =library-loaded,id="/lib/arm-linux-gnueabihf/libm.so.6",target-name="/lib/arm-linux-gnueabihf/libm.so.6",host-name="/lib/arm-linux-gnueabihf/libm.so.6",symbols-loaded="0",thread-group="i1" [ 1189 ms] =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000107aa",func="main(int, char**)",file="RFTools.cpp",fullname="/home/jramos/RPI Debug/RFTools.cpp",line="7",thread-groups=["i1"],times="1",original-location="main"} [ 1202 ms] ~"\n" [ 1202 ms] ~"Breakpoint 1, main (argc=1, argv=0x7efffb44) at RFTools.cpp:7\n" [ 1202 ms] &"warning: Source file is more recent than executable.\n" [ 1204 ms] ~"7\t//============================================================================\n" [ 1204 ms] *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x000107aa",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7efffb44"}],file="RFTools.cpp",fullname="/home/jramos/RPI Debug/RFTools.cpp",line="7"},thread-id="1",stopped-threads="all",core="0" [ 1205 ms] info shared [ 1211 ms] &"info shared\n" [ 1220 ms] ~"From To Syms Read Shared Object Library\n" [ 1220 ms] ~"0x76fd7840 0x76feab38 Yes /lib/ld-linux-armhf.so.3\n" [ 1220 ms] ~"0x76fc2568 0x76fc62c4 Yes /usr/lib/arm-linux-gnueabihf/libarmmem.so\n" [ 1220 ms] ~"0x76f065b8 0x76f7d6d8 Yes /usr/lib/arm-linux-gnueabihf/libstdc++.so.6\n" [ 1220 ms] ~"0x76e7f198 0x76e8992c Yes /lib/arm-linux-gnueabihf/libgcc_s.so.1\n" [ 1220 ms] ~"0x76d9bf80 0x76e3dfc8 Yes /lib/arm-linux-gnueabihf/libc.so.6\n" [ 1220 ms] ~"0x76d11c58 0x76d3fd38 Yes /lib/arm-linux-gnueabihf/libm.so.6\n" [ 1220 ms] ^done [ 1242 ms] -break-delete 1 [ 1248 ms] ^done [ 1248 ms] -exec-continue [ 1253 ms] ^running [ 1253 ms] *running,thread-id="all" [ 1255 ms] ~"[Inferior 1 (process 19019) exited normally]\n" [ 1255 ms] =thread-exited,id="1",group-id="i1" [ 1256 ms] =thread-group-exited,id="i1",exit-code="0" [ 1256 ms] *stopped,reason="exited-normally" [ 1281 ms] -gdb-exit [ 1287 ms] ^exit
-
This topic was modified 6 years, 7 months ago by
support. Reason: formatting
November 22, 2018 at 07:04 #22809support
KeymasterHi,
It looks like a problem with debug symbols. Please follow this tutorial to diagnose it.
-
This topic was modified 6 years, 7 months ago by
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.