[LLVMbugs] [Bug 12209] New: Incorrect debug info for large parameters
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Mar 8 11:45:03 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12209
Bug #: 12209
Summary: Incorrect debug info for large parameters
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: matthewbg at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.c
#include <stdio.h>
#include <string.h>
struct big_struct_t {
int values[10];
};
void foo (struct big_struct_t list) {
int index;
for (index = 0; index < 10; index++)
printf("%4d ", list.values[index]);
}
int main () {
struct big_struct_t list;
memset(&list, 0, sizeof (list));
foo(list);
return 0;
}
$ clang test.c -g && gdb -q -ex "b foo" -ex run -ex "p list" -ex c -ex q
./a.out
Reading symbols from ./a.out...done.
Breakpoint 1 at 0x40057c: file test.c, line 13.
Starting program: ./a.out
Breakpoint 1, foo (list=...) at test.c:13
13 for (index = 0; index < 10; index++)
$1 = {values = {-8368, 32767, 40, 0, 16843009, 16843009, -8928, 32767,
-139593382, 32767}}
Continuing.
0 0 0 0 0 0 0 0 0 0 [Inferior 1 (process 30234)
exited normally]
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list