From 85dfc5c81e213a1fc67c8c50d0e1101659c61d6e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 14 Oct 2009 13:59:06 -0700 Subject: Report experssion stack slot use back from loc2c. --- loc2c-test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'loc2c-test.c') 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;"); -- cgit