[Bug 241773] lldb does not display external variables properly.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 3 00:39:00 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773
--- Comment #8 from bc979 at lafn.org ---
Having upgraded to 12.2, I ran the lldb session again. Lldb had degraded
significantly. Stepping through the call to testfunc yields the following:
6
7 void testfunc(void);
8 int main(int argc, char **argv) {
-> 9 testfunc();
10 unknown = 9;
11 printf ("id (%x) = %s\n", (int)&id, id);
12 printf ("sock(%x) = %d\n", (int)&sock, sock);
(lldb) n
Size of testlib.c is 262 bytes.
id (203d74) = aa
sock(203d78) = 5
unknown (203d70) = 9
Process 26735 exited with status = 0 (0x00000000)
lldb no longer stops on the next statement but runs to completion. The output
is correct as always.
Stepping into testfunc works however a print inside testfunc yields the
following:
Process 26847 stopped
* thread #1, name = 'testprog', stop reason = step over
frame #0: 0x000000080024d6e2 testlib.so`testfunc at testlib.c:14:53
11 stat("testlib.c", &sb);
12 strcpy (id, "aa");
13 sock = 5;
-> 14 printf("Size of testlib.c is %i bytes.\n", (int)sb.st_size);
15 }
16
(lldb) p sock
Program aborted due to an unhandled Error:
Error value was Success. (Note: Success values must still be checked prior to
being destroyed).
Stack dump:
0. Program arguments: lldb testprog
1. HandleCommand(command = "p sock")
#0 0x0000000003b15cae (/usr/bin/lldb+0x3b15cae)
#1 0x0000000003b13f25 (/usr/bin/lldb+0x3b13f25)
#2 0x0000000003b165b0 (/usr/bin/lldb+0x3b165b0)
#3 0x00000008046c9b70 (/lib/libthr.so.3+0x14b70)
Abort (core dumped)
Basically, 12.2 lldb is not suitable for development work. It looks like I am
going to have to revert back to 12.1.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list