X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmake-target-delegates;h=4388f948908fdef0696a55fbc3203e4bd62186ed;hb=030a2e78acf66c5c12e073ec3887a167da7a7195;hp=b8cf63cd0bd4678c43b78925ba2acf38e6033e74;hpb=d9f719f1adb653ab40a55e4c1b8c300215b400ff;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/make-target-delegates b/gdb/make-target-delegates index b8cf63cd0b..4388f94890 100755 --- a/gdb/make-target-delegates +++ b/gdb/make-target-delegates @@ -1,6 +1,6 @@ #!/usr/bin/perl -# Copyright (C) 2013-2018 Free Software Foundation, Inc. +# Copyright (C) 2013-2020 Free Software Foundation, Inc. # # This file is part of GDB. # @@ -43,11 +43,9 @@ $POINTER_PART = qr,\s*(\*)?\s*,; $CP_SYMBOL = qr,[a-zA-Z_][a-zA-Z0-9_<>:]*,; # Match the return type when it is "ordinary". $SIMPLE_RETURN_PART = qr,((struct|class|enum|union)\s+)?${CP_SYMBOL}+,; -# Match the return type when it is a VEC. -$VEC_RETURN_PART = qr,VEC\s*\([^\)]+\),; # Match a return type. -$RETURN_PART = qr,((const|volatile)\s+)?(${SIMPLE_RETURN_PART}|${VEC_RETURN_PART})${POINTER_PART},; +$RETURN_PART = qr,((const|volatile)\s+)?(${SIMPLE_RETURN_PART})${POINTER_PART},; # Match "virtual". $VIRTUAL_PART = qr,virtual\s,; @@ -225,7 +223,7 @@ sub write_delegator($$@) { if ($return_type ne 'void') { print "return "; } - print "this->beneath->" . $name . " ("; + print "this->beneath ()->" . $name . " ("; print join (', ', @names); print ");\n"; print "}\n\n"; @@ -309,19 +307,19 @@ sub write_debugmethod($$$@) { print " $return_type result;\n"; } - print " fprintf_unfiltered (gdb_stdlog, \"-> %s->$name (...)\\n\", this->beneath->shortname ());\n"; + print " fprintf_unfiltered (gdb_stdlog, \"-> %s->$name (...)\\n\", this->beneath ()->shortname ());\n"; # Delegate to the beneath target. print " "; if ($return_type ne 'void') { print "result = "; } - print "this->beneath->" . $name . " ("; + print "this->beneath ()->" . $name . " ("; print join (', ', @names); print ");\n"; # Now print the arguments. - print " fprintf_unfiltered (gdb_stdlog, \"<- %s->$name (\", this->beneath->shortname ());\n"; + print " fprintf_unfiltered (gdb_stdlog, \"<- %s->$name (\", this->beneath ()->shortname ());\n"; for my $i (0 .. $#argtypes) { if ($i > 0) { print " fputs_unfiltered (\", \", gdb_stdlog);\n" @@ -390,10 +388,10 @@ sub print_class($) { print "struct " . $name . " : public target_ops\n"; print "{\n"; - print " $name ();\n"; - print "\n"; print " const target_info &info () const override;\n"; print "\n"; + print " strata stratum () const override;\n"; + print "\n"; for $name (@delegators) { my $return_type = $return_types{$name};