[PATCH]p-typeprint.c Fix printing of type of method arguments
Pierre Muller
pierre.muller@ics-cnrs.unistra.fr
Fri Oct 15 23:12:00 GMT 2010
The printing of the type of
the arguments of methods was sometimes
messed up...
It appeared that a local variable LEN
was not correctly reset for the next argument.
I committed the patch below that
fixes this problem.
Pierre Muller
Pascal language support maintainer for GDB
gdb/ChangeLog entry:
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.
Index: p-typeprint.c
===================================================================
RCS file: /cvs/src/src/gdb/p-typeprint.c,v
retrieving revision 1.34
diff -u -p -r1.34 p-typeprint.c
--- p-typeprint.c 21 Jun 2010 18:01:51 -0000 1.34
+++ p-typeprint.c 15 Oct 2010 23:04:43 -0000
@@ -165,14 +165,15 @@ pascal_type_print_method_args (char *phy
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++;
More information about the Gdb-patches
mailing list