diff options
author | Pierre Muller <muller@sourceware.org> | 2010-10-15 23:08:04 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-10-15 23:08:04 +0000 |
commit | 3a9d7214ad8cf9b43b5cc52e3f4adba8ead032cc (patch) | |
tree | 0aac557747b14087ded19c40cc9545a30c172ded /gdb | |
parent | ab27a17180b94419ca1a7aa7135b4defb4062e6b (diff) | |
download | gdb-3a9d7214ad8cf9b43b5cc52e3f4adba8ead032cc.zip gdb-3a9d7214ad8cf9b43b5cc52e3f4adba8ead032cc.tar.gz gdb-3a9d7214ad8cf9b43b5cc52e3f4adba8ead032cc.tar.bz2 |
* p-typeprint.c (pascal_type_print_method_args): Fix problem in
display of type of method arguments.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/p-typeprint.c | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 203dc3c..c23a749 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr> + + * p-typeprint.c (pascal_type_print_method_args): Fix problem in + display of type of method arguments. + 2010-10-15 Tom Tromey <tromey@redhat.com> PR python/11948: diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index c0752b7..0d476ce 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++; |