diff options
author | Roland McGrath <roland@redhat.com> | 2009-10-14 13:59:06 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-10-14 13:59:49 -0700 |
commit | 85dfc5c81e213a1fc67c8c50d0e1101659c61d6e (patch) | |
tree | 2b332f4011128e356e8dee6a67028f79085b70c6 /loc2c-test.c | |
parent | 4d34dac1c920903635c1ae4133aca65400b1251b (diff) | |
download | systemtap-steved-85dfc5c81e213a1fc67c8c50d0e1101659c61d6e.tar.gz systemtap-steved-85dfc5c81e213a1fc67c8c50d0e1101659c61d6e.tar.xz systemtap-steved-85dfc5c81e213a1fc67c8c50d0e1101659c61d6e.zip |
Report experssion stack slot use back from loc2c.
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/loc2c-test.c b/loc2c-test.c index 17edf1a8..9d4973ed 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -337,11 +337,14 @@ handle_variable (Dwarf_Die *lscopes, int lnscopes, int out, "{\n" " intptr_t value;"); - bool deref = c_emit_location (stdout, head, 1); + unsigned int stack_depth; + bool deref = c_emit_location (stdout, head, 1, &stack_depth); obstack_free (&pool, NULL); - puts (store ? " return;" : + printf (" /* max expression stack depth %u */\n", stack_depth); + + puts (store ? " return;" : " printk (\" ---> %ld\\n\", (unsigned long) value);\n" " return;"); |