mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-20 09:31:29 +00:00
* symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
comment explaining that hand-written assembly code can have line number info but no debug info for an enclosing function.
This commit is contained in:
parent
b82eaaea7a
commit
b77b1eb785
@ -1,3 +1,9 @@
|
|||||||
|
2001-11-26 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
|
||||||
|
comment explaining that hand-written assembly code can have line
|
||||||
|
number info but no debug info for an enclosing function.
|
||||||
|
|
||||||
2001-11-26 Jakub Jelinek <jakub@redhat.com>
|
2001-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sparc-nat.c (fetch_inferior_registers): Don't rely
|
* sparc-nat.c (fetch_inferior_registers): Don't rely
|
||||||
|
13
gdb/symtab.c
13
gdb/symtab.c
@ -1570,13 +1570,12 @@ find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent)
|
|||||||
|
|
||||||
INIT_SAL (&val); /* initialize to zeroes */
|
INIT_SAL (&val); /* initialize to zeroes */
|
||||||
|
|
||||||
/* Don't even think about line numbers if we can't find a function
|
/* It's tempting to assume that, if we can't find debugging info for
|
||||||
symbol for PC. */
|
any function enclosing PC, that we shouldn't search for line
|
||||||
if (find_pc_function (pc) == NULL)
|
number info, either. However, GAS can emit line number info for
|
||||||
{
|
assembly files --- very helpful when debugging hand-written
|
||||||
val.pc = pc;
|
assembly code. In such a case, we'd have no debug info for the
|
||||||
return val;
|
function, but we would have line info. */
|
||||||
}
|
|
||||||
|
|
||||||
if (notcurrent)
|
if (notcurrent)
|
||||||
pc -= 1;
|
pc -= 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user