https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773

--- Comment #4 from bc...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to