[LLVMbugs] [Bug 7877] New: "Dwarf Error: bad offset" when compiling with debugging symbols (-g)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 12 13:03:16 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7877
Summary: "Dwarf Error: bad offset" when compiling with
debugging symbols (-g)
Product: tools
Version: 2.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: release blocker
Priority: P
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: antonio at compleasy.com
CC: llvmbugs at cs.uiuc.edu
Compiling this code
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
with these commands
llvm-gcc.exe -Wall -g <a_dir>\main.c -o <a_dir>\main.o
llvm-g++.exe -o <a_dir>\main.exe <a_dir>\main.o
on a Windows XP, generates a good executable that I am able to run without any
problem.
However I cannot debug it, and when I run this command
gdb main.exe
with a GNU gdb 7.1 I get this complain from gdb
....
This GDB was configured as "mingw32".
...
Reading symbols from <a_dir>/main.exe...Dwarf Error: bad offset (0x409000) in
compilation unit header (offset 0x0 + 6) [in module <a_dir>/firts.exe]
Please note, to keep this report more readable I replaced actual directories
with <a_dir>.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list