Date: Tue, 03 Nov 2020 00:39:00 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 241773] lldb does not display external variables properly. Message-ID: <bug-241773-29464-qVwqfZghZe@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-241773-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-241773-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241773 --- Comment #8 from bc979@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=20=20=20=20 7 void testfunc(void); 8 int main(int argc, char **argv) { -> 9 testfunc(); 10 unknown =3D 9; 11 printf ("id (%x) =3D %s\n", (int)&id, id); 12 printf ("sock(%x) =3D %d\n", (int)&sock, sock); (lldb) n Size of testlib.c is 262 bytes. id (203d74) =3D aa sock(203d78) =3D 5 unknown (203d70) =3D 9 Process 26735 exited with status =3D 0 (0x00000000)=20 lldb no longer stops on the next statement but runs to completion. The out= put is correct as always. Stepping into testfunc works however a print inside testfunc yields the following: Process 26847 stopped * thread #1, name =3D 'testprog', stop reason =3D step over frame #0: 0x000000080024d6e2 testlib.so`testfunc at testlib.c:14:53 11 stat("testlib.c", &sb); 12 strcpy (id, "aa"); 13 sock =3D 5; -> 14 printf("Size of testlib.c is %i bytes.\n", (int)sb.st_size); 15 } 16=20=20=20 (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=20 1. HandleCommand(command =3D "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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241773-29464-qVwqfZghZe>