GNU bug report logs - #79360
30.2; lldb shows incorrect code location when no column number is available

Previous Next

Package: emacs;

Reported by: Gustav HÃ¥llberg <gustav <at> gmail.com>

Date: Mon, 1 Sep 2025 14:44:02 UTC

Severity: normal

Found in version 30.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gustav HÃ¥llberg <gustav <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.2;
 lldb shows incorrect code location when no column number is available
Date: Mon, 1 Sep 2025 16:42:33 +0200
[Message part 1 (text/plain, inline)]
In (lldb), there is a bug that positions the source code location on the
last character of the previous line if lldb doesn't report a column number.

Example, save the following as "t.s" and compile (on x86-64) with "gcc -g
t.s -o t":

        .global _main
_main:
        xor %eax,%eax
        ret

and debug using (lldb "lldb ./t"):

(lldb) *b main*
  :
(lldb) *run*
  :
(lldb)
*disas*t`main:
    0x555555555129 <+0>: xorl   %eax, %eax
->  0x55555555512b <+2>: retq

but the source code location ends up at the last character of the "xor
%eax..." line.

Attaching proposed pach against 66ef930ebea4618c1dac71a09495766476ced1d6.
[Message part 2 (text/html, inline)]
[0001-lldb-bugfix-source-code-location-without-column.patch (application/octet-stream, attachment)]

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.