[llvm-commits] [llvm] r46337 - in /llvm/trunk/lib/Target/X86: X86RegisterInfo.cpp X86RegisterInfo.h X86RegisterInfo.td

Evan Cheng evan.cheng at apple.com
Fri Jan 25 12:48:41 PST 2008


Hi Anton,

Here is a silly test case:

#include <stdio.h>
struct ss {
   int x;
   int y;
};
void f(int a, struct ss b) {
=>printf("%d %d\n", a, b.x);
}
int main() {
   struct ss S = {1, 2};
   f(0, S);
   return 0;
}

Problem 1:
(gdb) b main
Line number not known for symbol "main"
Explicitly setting a breakpoint on line 10 works.

Problem 2:
In function f().
(gdb) p a
$2 = -1073743868
(gdb) p b
$3 = {
   x = 2,
   y = 0
}

Any ideas?

Evan

On Jan 24, 2008, at 9:41 PM, Anton Korobeynikov wrote:

> Evan,
>
>> This allows gdb to examine local scalar variables, but not aggregate
>> ones. There are also issues with parameters, even scalar ones.
> Ok. Any other testcases? Owen, ready for another session? :)
>
> -- 
> With best regards, Anton Korobeynikov.
>
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list