[Bug 241773] lldb does not display external variables properly.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 8 09:33:47 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773
--- Comment #4 from bc979 at 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.
More information about the freebsd-bugs
mailing list