Skip to content

Debug info for constants have no line information #14873

Open
@dwblaikie

Description

@dwblaikie
Bugzilla Link 14501
Version unspecified
OS All
Blocks #14702 llvm/llvm-bugzilla-archive#24345
CC @DougGregor,@echristo,@fredriss,@sunfishcode,@pogo59

Extended Description

GDB 7.5 test suite's gdb.pytho/python.exp tests a fairly specific case:

int func() {
func2();
return 0;
}

break at line 2 (the call to func2)
step into func2
go up (gdb "up" command) one frame
print the line of the pc ("python print gdb.find_pc_line(gdb.selected_frame().pc()).line")

The instruction following the func2 call is assigned to the same line as "return 0" in GCC's debug info. In Clang's debug info this line has no debug info of its own, so it is on the same line as the prior instruction (the call to func2).

Subtle/may or may not be an important issue, but this might be as good a place as any to start thinking about/tracking how Clang's fast isel constant emission may be adversely impacting debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions