Date: Fri, 08 Nov 2019 09:33:47 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 241773] lldb does not display external variables properly. Message-ID: <bug-241773-227-PgBZB2bMDM@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-241773-227@https.bugs.freebsd.org/bugzilla/> References: <bug-241773-227@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=241773 --- Comment #4 from bc979@lafn.org --- Apparently I misunderstood. Here is a lldb session with changes to testprog: 8 int main(int argc, char **argv) { 9 strcpy (id, "yy"); 10 sock = 88; -> 11 testfunc(); 12 unknown = 9; 13 printf ("id (%x) = %s\n", (int)&id, id); 14 printf ("sock(%x) = %d\n", (int)&sock, sock); (lldb) p id (char [4]) $0 = "" (lldb) p sock (int) $1 = 0 (lldb) p &sock (int *) $2 = 0x000000080024d004 (lldb) p & id (char (*)[4]) $3 = 0x000000080024d000 (lldb) p *id (char) $4 = '\0' Even after setting the variables, lldb doesn't find the right values although it seems to get the right addresses. After testfunc is called, nothing has changed from before. -- 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-227-PgBZB2bMDM>
