Summary: | objdump -l reports wrong line numbers | ||
---|---|---|---|
Product: | binutils | Reporter: | Andi Kleen <andi-bz> |
Component: | binutils | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED NOTABUG | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.22 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Andi Kleen
2014-01-11 06:16:35 UTC
Hi Andi,
> But when showing context it should adjust the line nr to the context offset.
Why should it do this ? Is it documented that it will ?
The current behaviour is to display the context leading up to the specified line, rather than the context from the specified line to the line is responsible for generating the disassembly that follows. This makes sense to me. The line number displayed is the number of the line that caused the assembler to be generated.
Cheers
Nick
PS. In future bug reports it would be helpful if you could provide additional information such as the target environment and the command line used to compile the test case. It also helps if you test with the latest binutils. 2.22 is now two releases old...
. |