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=3D241773 --- Comment #4 from bc979@lafn.org --- Apparently I misunderstood. Here is a lldb session with changes to testpro= g: 8 int main(int argc, char **argv) { 9 strcpy (id, "yy"); 10 sock =3D 88; -> 11 testfunc(); 12 unknown =3D 9; 13 printf ("id (%x) =3D %s\n", (int)&id, id); 14 printf ("sock(%x) =3D %d\n", (int)&sock, sock); (lldb) p id (char [4]) $0 =3D "" (lldb) p sock (int) $1 =3D 0 (lldb) p &sock (int *) $2 =3D 0x000000080024d004 (lldb) p & id (char (*)[4]) $3 =3D 0x000000080024d000 (lldb) p *id (char) $4 =3D '\0' Even after setting the variables, lldb doesn't find the right values althou= gh it seems to get the right addresses. After testfunc is called, nothing has changed from before. --=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-227-PgBZB2bMDM>