aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-09-30 10:29:00 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-09-30 10:29:00 +0000
commite9e07ba6db5fb651b153da7bde8a6ee4509172f0 (patch)
tree7745602161672924ea8e9d06ef6ecebfe450ecf2 /gdb/ada-lang.c
parentcd2effb255e6018687256a2d10072a1e4da0c6c5 (diff)
downloadgdb-e9e07ba6db5fb651b153da7bde8a6ee4509172f0.zip
gdb-e9e07ba6db5fb651b153da7bde8a6ee4509172f0.tar.gz
gdb-e9e07ba6db5fb651b153da7bde8a6ee4509172f0.tar.bz2
gdb/
Fix printing parameters of inlined functions. * ada-lang.c (is_known_support_routine) (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter for find_frame_funname. * python/py-frame.c (frapy_name): Likewise. * stack.c (find_frame_funname): New parameter funcp. Update the function comment. Fill it in. (print_frame): New variable func. Initialize it by find_frame_funname. Print arguments only if FUNC is not NULL. Use FUNC as the parameter of print_args_stub. * stack.h (find_frame_funname): New parameter funcp. Remove the function declaration comment. gdb/testsuite/ Fix printing parameters of inlined functions. * gdb.dwarf2/dw2-inline-param.exp: New file. * gdb.dwarf2/dw2-inline-param-main.c: New file. * gdb.dwarf2/dw2-inline-param.S: New file.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index fabb272..3eaf649 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -10325,7 +10325,7 @@ is_known_support_routine (struct frame_info *frame)
/* Check whether the function is a GNAT-generated entity. */
- find_frame_funname (frame, &func_name, &func_lang);
+ find_frame_funname (frame, &func_name, &func_lang, NULL);
if (func_name == NULL)
return 1;
@@ -10393,7 +10393,7 @@ ada_unhandled_exception_name_addr_from_raise (void)
char *func_name;
enum language func_lang;
- find_frame_funname (fi, &func_name, &func_lang);
+ find_frame_funname (fi, &func_name, &func_lang, NULL);
if (func_name != NULL
&& strcmp (func_name, exception_info->catch_exception_sym) == 0)
break; /* We found the frame we were looking for... */