From 3a9d7214ad8cf9b43b5cc52e3f4adba8ead032cc Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Fri, 15 Oct 2010 23:08:04 +0000 Subject: [PATCH] * p-typeprint.c (pascal_type_print_method_args): Fix problem in display of type of method arguments. --- gdb/ChangeLog | 5 +++++ gdb/p-typeprint.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 203dc3c2c6b..c23a749e4ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-10-16 Pierre Muller + + * p-typeprint.c (pascal_type_print_method_args): Fix problem in + display of type of method arguments. + 2010-10-15 Tom Tromey PR python/11948: diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index c0752b7d78c..0d476cec206 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -165,14 +165,15 @@ pascal_type_print_method_args (char *physname, char *methodname, if (physname && (*physname != 0)) { - int i = 0; - int len = 0; - char storec; - char *argname; fputs_filtered (" (", stream); /* we must demangle this */ while (isdigit (physname[0])) { + int len = 0; + int i; + char storec; + char *argname; + while (isdigit (physname[len])) { len++; -- 2.30.2