GDB breakpoint not getting hit

Sysprogs forums Forums VisualGDB GDB breakpoint not getting hit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #399
    Anonymous
    Participant

    Hi, my breakpoints aren’t getting hit. I’m running from inside vmplayer connecting to a host linux computer. Debugging works on the host in qtcreator, so it should work with VisualGDB too right? It executes fine, but no debugging. I set it up to use the vmplayer shared folder, (the “manual mapping” option). but this shouldn’t be a problem, the sources are now the same on both computers.

    Your VisualGDB trial expires in 30 days!
    gdb --interpreter mi --args "/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo"
    =thread-group-added,id="i1"
    GNU gdb (GDB) SUSE (7.5.1-2.1.1)
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later 
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-suse-linux".
    For bug reporting instructions, please see:
    ...
    Reading symbols from /home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo...
    done.
    -list-features
    ^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","python"]
    -gdb-set stop-on-solib-events 1
    OK
    -inferior-tty-set /dev/pts/4
    OK
    -data-list-register-names
    ^done,register-names=["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15","mxcsr","","","","","","","","","","","","","","","","","orig_rax","al","bl","cl","dl","sil","dil","bpl","spl","r8l","r9l","r10l","r11l","r12l","r13l","r14l","r15l","ah","bh","ch","dh","ax","bx","cx","dx","si","di","bp","","r8w","r9w","r10w","r11w","r12w","r13w","r14w","r15w","eax","ebx","ecx","edx","esi","edi","ebp","esp","r8d","r9d","r10d","r11d","r12d","r13d","r14d","r15d"]
    -gdb-set disassembly-flavor intel
    OK
    -gdb-set print demangle off
    OK
    -gdb-version
    GNU gdb (GDB) SUSE (7.5.1-2.1.1)
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-suse-linux".
    For bug reporting instructions, please see:
    .
    OK
    -break-insert -f main
    ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004015e7",func="main",file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c",line="131",times="0",original-location="main"}
    info target
    &"info targetn"
    Symbols from "/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo".
    Local exec file:
    `/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo', file type elf64-x86-64.
    Entry point: 0x4014f0
    0x0000000000400238 - 0x0000000000400254 is .interp
    0x0000000000400254 - 0x0000000000400274 is .note.ABI-tag
    0x0000000000400274 - 0x0000000000400298 is .note.gnu.build-id
    0x0000000000400298 - 0x000000000040041c is .hash
    0x0000000000400420 - 0x000000000040045c is .gnu.hash
    0x0000000000400460 - 0x00000000004009d0 is .dynsym
    0x00000000004009d0 - 0x0000000000400c24 is .dynstr
    0x0000000000400c24 - 0x0000000000400c98 is .gnu.version
    0x0000000000400c98 - 0x0000000000400d08 is .gnu.version_r
    0x0000000000400d08 - 0x0000000000400d38 is .rela.dyn
    0x0000000000400d38 - 0x00000000004011b8 is .rela.plt
    0x00000000004011b8 - 0x00000000004011d2 is .init
    0x00000000004011e0 - 0x00000000004014f0 is .plt
    0x00000000004014f0 - 0x000000000042dcf4 is .text
    0x000000000042dcf4 - 0x000000000042dcfd is .fini
    0x000000000042dd00 - 0x0000000000454cc0 is .rodata
    0x0000000000454cc0 - 0x00000000004558d4 is .eh_frame_hdr
    0x00000000004558d8 - 0x0000000000458a84 is .eh_frame
    0x0000000000658dc0 - 0x0000000000658dc8 is .init_array
    0x0000000000658dc8 - 0x0000000000658dd0 is .fini_array
    0x0000000000658dd0 - 0x0000000000658dd8 is .jcr
    0x0000000000658dd8 - 0x0000000000658ff8 is .dynamic
    0x0000000000658ff8 - 0x0000000000659000 is .got
    0x0000000000659000 - 0x0000000000659198 is .got.plt
    0x00000000006591a0 - 0x00000000006591ec is .data
    0x0000000000659200 - 0x00000000006d9278 is .bss
    OK
    -break-insert -f /home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129
    &"No source file named /home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c.n"
    ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="",pending="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129",times="0",original-location="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129"}
    -file-list-exec-source-files
    ^done,files=[{file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c"},{file="texts.h",fullname="/home/pc/Programming/libcrm114-20100726/texts.h"},{file="/usr/include/bits/time.h",fullname="/usr/include/bits/time.h"},{file="/usr/include/sys/times.h",fullname="/usr/include/sys/times.h"},{file="/usr/include/time.h",fullname="/usr/include/time.h"},{file="/usr/include/bits/confname.h",fullname="/usr/include/bits/confname.h"},{file="crm114_lib.h",fullname="/home/pc/Programming/libcrm114-20100726/crm114_lib.h"},{file="/usr/lib64/gcc/x86_64-suse-linux/4.7/include/stddef.h",fullname="/usr/lib64/gcc/x86_64-suse-linux/4.7/include/stddef.h"},{file="/usr/include/bits/types.h",fullname="/usr/include/bits/types.h"},{file="../sysdeps/x86_64/crtn.S"},{file="elf-init.c"},{file="crm114_regex_tre.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_regex_tre.c"},{file="crm114_util.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_util.c"},{file="crm114_strnhash.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_strnhash.c"},{file="crm114_vector_tokenize.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_vector_tokenize.c"},{file="crm114_matrix_util.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix_util.h"},{file="crm114_datalib.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_datalib.c"},{file="crm114_matrix_util.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix_util.h"},{file="crm114_matrix_util.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_matrix_util.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_matrix_util.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix_util.h"},{file="crm114_matrix.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_matrix.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_pca_lib_fncts.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_pca_lib_fncts.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_pca.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_pca.c"},{file="crm114_fast_substring_compression.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_fast_substring_compression.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_svm_quad_prog.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_svm_quad_prog.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_svm_lib_fncts.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_svm_lib_fncts.c"},{file="crm114_matrix.h",fullname="/home/pc/Programming/programming_shared/libcrm114-20100726/crm114_matrix.h"},{file="crm114_svm.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_svm.c"},{file="crm114_hyperspace.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_hyperspace.c"},{file="crm114_bit_entropy.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_bit_entropy.c"},{file="crm114_markov_microgroom.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_markov_microgroom.c"},{file="crm114_markov.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_markov.c"},{file="crm114_base.c",fullname="/home/pc/Programming/libcrm114-20100726/crm114_base.c"},{file="../sysdeps/x86_64/crti.S"},{file="init.c"},{file="../sysdeps/x86_64/start.S"}]
    -exec-run
    =thread-group-started,id="i1",pid="11151"
    =thread-created,id="1",group-id="i1"
    ^running
    *running,thread-id="all"
    =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
    &"Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2n"
    &"Try: zypper install -C "debuginfo(build-id)=ecb8ef1a6904a2a3ec60a527f415f520c8636158"n"
    =library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
    *stopped,reason="solib-event",added=[library="linux-vdso.so.1"],thread-id="1",stopped-threads="all",core="0"
    -break-list
    ^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="7",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="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="18",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="0x00000000004015e7",func="main",file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c",line="131",times="0",original-location="main"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="
    ",pending="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129",times="0",original-location="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129"}]}
    info shared
    &"info sharedn"
    From To Syms Read Shared Object Library
    0x00007ffff7ddbac0 0x00007ffff7df4be9 Yes /lib64/ld-linux-x86-64.so.2
    No linux-vdso.so.1
    OK
    -exec-continue
    ^running
    *running,thread-id="1"
    =library-loaded,id="/usr/local/lib64/libtre.so.5",target-name="/usr/local/lib64/libtre.so.5",host-name="/usr/local/lib64/libtre.so.5",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib64/libm.so.6",target-name="/lib64/libm.so.6",host-name="/lib64/libm.so.6",symbols-loaded="0",thread-group="i1"
    =library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="/lib64/libc.so.6",symbols-loaded="0",thread-group="i1"
    &"Missing separate debuginfo for /lib64/libm.so.6n"
    &"Try: zypper install -C "debuginfo(build-id)=24fba01931c773fd5b4688b34c4acde47ea77cb9"n"
    &"Missing separate debuginfo for /lib64/libc.so.6n"
    &"Try: zypper install -C "debuginfo(build-id)=bd1473e8e6a4c10a14731b5be4b35b4e87db2af7"n"
    *stopped,reason="solib-event",added=[library="/usr/local/lib64/libtre.so.5",library="/lib64/libm.so.6",library="/lib64/libc.so.6"],thread-id="1",stopped-threads="all",core="2"
    -break-list
    ^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="7",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="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="18",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="0x00000000004015e7",func="main",file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c",line="131",times="0",original-location="main"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="
    ",pending="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129",times="0",original-location="/home/pc/Programming/programming_shared/libcrm114-20100726/simple_demo.c:129"}]}
    info shared
    &"info sharedn"
    From To Syms Read Shared Object Library
    0x00007ffff7ddbac0 0x00007ffff7df4be9 Yes /lib64/ld-linux-x86-64.so.2
    No linux-vdso.so.1
    0x00007ffff7bcd060 0x00007ffff7bd86f0 Yes /usr/local/lib64/libtre.so.5
    0x00007ffff78b26a0 0x00007ffff791af08 Yes /lib64/libm.so.6
    0x00007ffff751f470 0x00007ffff764f9f0 Yes /lib64/libc.so.6
    OK
    -exec-continue
    ^running
    *running,thread-id="1"
    =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004015e7",func="main",file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c",line="131",times="1",original-location="main"}
    *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x00000000004015e7",func="main",args=[],file="simple_demo.c",fullname="/home/pc/Programming/libcrm114-20100726/simple_demo.c",line="131"},thread-id="1",stopped-threads="all",core="2"
    -break-delete 1
    OK
    -exec-continue
    ^running
    *running,thread-id="all"
    =thread-exited,id="1",group-id="i1"
    =thread-group-exited,id="i1",exit-code="0"
    *stopped,reason="exited-normally"
    #2028
    Anonymous
    Participant

    Weird, now it works.. I didn’t change anything. Oh well, sorry about the useless thread, you can delete it.

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