summaryrefslogtreecommitdiff
path: root/gdb/p-typeprint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2011-03-10 20:25:44 +0000
committerMichael Snyder <msnyder@specifix.com>2011-03-10 20:25:44 +0000
commit81bc1f63ce74e97ed39a2989f5acbcf64a8d2178 (patch)
treede402dc2039f245579a8e9a6bc86d9ed7a044685 /gdb/p-typeprint.c
parent6fca94e1bdda6b44341bc4339ee25839e009bfee (diff)
downloadgdb-81bc1f63ce74e97ed39a2989f5acbcf64a8d2178.tar.gz
Revert previous change.
Diffstat (limited to 'gdb/p-typeprint.c')
-rw-r--r--gdb/p-typeprint.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c
index fb3f3a14b1b..54a761d464a 100644
--- a/gdb/p-typeprint.c
+++ b/gdb/p-typeprint.c
@@ -156,18 +156,18 @@ void
pascal_type_print_method_args (char *physname, char *methodname,
struct ui_file *stream)
{
- fputs_filtered (methodname, stream);
+ int is_constructor = (strncmp (physname, "__ct__", 6) == 0);
+ int is_destructor = (strncmp (physname, "__dt__", 6) == 0);
- if (physname && (*physname != 0))
+ if (is_constructor || is_destructor)
{
- int is_constructor = (strncmp (physname, "__ct__", 6) == 0);
- int is_destructor = (strncmp (physname, "__dt__", 6) == 0);
+ physname += 6;
+ }
- if (is_constructor || is_destructor)
- {
- physname += 6;
- }
+ fputs_filtered (methodname, stream);
+ if (physname && (*physname != 0))
+ {
fputs_filtered (" (", stream);
/* We must demangle this. */
while (isdigit (physname[0]))