Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22145

What does it mean by "Dwarf Error: DW_FORM_line_strp used without required section"?

$
0
0

I built an ordinary "Hello World" C program with gcc 14.2.0 on macOS Sequoia 15.0, and I ran perfectly. However, when I tried debugging it with gdb, it showed the error message Dwarf Error: DW_FORM_line_strp used without required section. What does this error message mean?

bash-3.2$ cat hello.c#include <stdio.h>int main(void){    printf("Hello World\n");    return 0;}bash-3.2$ gcc-14 --versiongcc-14 (Homebrew GCC 14.2.0) 14.2.0Copyright (C) 2024 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.bash-3.2$ ./helloHello Worldbash-3.2$ gdb ./helloGNU gdb (GDB) 15.2Copyright (C) 2024 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>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-apple-darwin23.4.0".Type "show configuration" for configuration details.For bug reporting instructions, please see:<https://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".Type "apropos word" to search for commands related to "word"...Reading symbols from ./hello...Reading symbols from /Users/jianfeiye/test/ctest/hello.dSYM/Contents/Resources/DWARF/hello...(gdb) listDwarf Error: DW_FORM_line_strp used without required section(gdb) break mainDwarf Error: DW_FORM_line_strp used without required section(gdb) 

Viewing all articles
Browse latest Browse all 22145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>