x86_64-linux-gnu-gdb.exe crash if using -O0 flag

Sysprogs forums Forums VisualKernel x86_64-linux-gnu-gdb.exe crash if using -O0 flag

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7093
    Paul
    Participant

    the x86_64-linux-gnu-gdb.exe crash when debugging if  using -O0 flag to build module, remove it everything is OK.

    piece of gdb log:

    add-symbol-file E:/workspace/bcache/VisualGDBCache/bcache-Debug/bcache.o 0xffffffffa0429000 -s .note.gnu.build-id 0xffffffffa045c000 -s .init.text 0xffffffffa0472000 -s __ksymtab_gpl 0xffffffffa045c030 -s __kcrctab_gpl 0xffffffffa045c0f0 -s .rodata 0xffffffffa045c160 -s .smp_locks 0xffffffffa045f6d0 -s __bug_table 0xffffffffa045f7bc -s __mcount_loc 0xffffffffa045fc60 -s __ksymtab_strings 0xffffffffa0460868 -s .data 0xffffffffa0461000 -s .data.unlikely 0xffffffffa0461b48 -s __verbose 0xffffffffa0461b50 -s .gnu.linkonce.this_module 0xffffffffa04621a0 -s .bss 0xffffffffa04623e0 -s .symtab 0xffffffffa0473000 -s .strtab 0xffffffffa047ca20
    &”add-symbol-file E:/workspace/bcache/VisualGDBCache/bcache-Debug/bcache.o 0xffffffffa0429000 -s .note.gnu.build-id 0xffffffffa045c000 -s .init.text 0xffffffffa0472000 -s __ksymtab_gpl 0xffffffffa045c030 -s __kcrctab_gpl 0xffffffffa045c0f0 -s .rodata 0xffffffffa045c160 -s .smp_locks 0xffffffffa045f6d0 -s __bug_table 0xffffffffa045f7bc -s __mcount_loc 0xffffffffa045fc60 -s __ksymtab_strings 0xffffffffa0460868 -s .data 0xffffffffa0461000 -s .data.unlikely 0xffffffffa0461b48 -s __verbose 0xffffffffa0461b50 -s .gnu.linkonce.this_module 0xffffffffa04621a0 -s .bss 0xffffffffa04623e0 -s .symtab 0xffffffffa0473000 -s .strtab 0xffffffffa047ca20\n”
    add symbol table from file “E:/workspace/bcache/VisualGDBCache/bcache-Debug/bcache.o” at
    .text_addr = 0xffffffffa0429000
    .note.gnu.build-id_addr = 0xffffffffa045c000
    .init.text_addr = 0xffffffffa0472000
    __ksymtab_gpl_addr = 0xffffffffa045c030
    __kcrctab_gpl_addr = 0xffffffffa045c0f0
    .rodata_addr = 0xffffffffa045c160
    .smp_locks_addr = 0xffffffffa045f6d0
    __bug_table_addr = 0xffffffffa045f7bc
    __mcount_loc_addr = 0xffffffffa045fc60
    __ksymtab_strings_addr = 0xffffffffa0460868
    .data_addr = 0xffffffffa0461000
    .data.unlikely_addr = 0xffffffffa0461b48
    __verbose_addr = 0xffffffffa0461b50
    .gnu.linkonce.this_module_addr = 0xffffffffa04621a0
    .bss_addr = 0xffffffffa04623e0
    .symtab_addr = 0xffffffffa0473000
    .strtab_addr = 0xffffffffa047ca20
    (y or n) [answered Y; input not from terminal]
    Reading symbols from E:/workspace/bcache/VisualGDBCache/bcache-Debug/bcache.o…
    &”warning: section .note.gnu.build-id not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”
    &”warning: section __ksymtab_gpl not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”
    &”warning: section __kcrctab_gpl not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”
    &”warning: section .gnu.linkonce.this_module not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”
    &”warning: section .symtab not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”
    &”warning: section .strtab not found in E:\\workspace\\bcache\\VisualGDBCache\\bcache-Debug\\bcache.o\n”

    If more information need, please do not hesitate to tell me :).

    #7108
    Paul
    Participant

    to build gdb 7.10 fix the issue.

    #7125
    Julian
    Participant

    “to build gdb 7.10 fix the issue”

    Seems like this answer doesn’t have quite enough detail. Are we talking about the GDB version on the target machine or the Windows VisualKernel host?
    The GDB on the VisualKernel host at “C:\Program Files (x86)\Sysprogs\VisualKernel\KernelTools\…” is version 7.7 with VisualKernel 2.0

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