[Bug 241773] lldb does not display external variables properly.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 7 06:53:27 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241773
--- Comment #2 from bc979 at lafn.org ---
I modified testlib to be:
master# vi testlib.c
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
char id[4];
int sock;
void testfunc() {
struct stat sb;
stat("testlib.c", &sb);
strcpy (id, "aa");
sock = 5;
printf ("sock = %d, id = %s\n", sock, id);
printf("Size of testlib.c is %i bytes.\n", (int)sb.st_size);
}
The results are exatly the same other than there is the extra line of output.
(lldb) p id
(char [4]) $0 = ""
(lldb) p sock
(int) $1 = 0
(lldb) p &id
(char (*)[4]) $2 = 0x000000080024d000
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list