public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: update field names in gdb-gdb.py.in
@ 2022-09-26 21:34 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-09-26 21:34 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=be40200bc9a8cdfae120dd26c433a7ddefbd770c

commit be40200bc9a8cdfae120dd26c433a7ddefbd770c
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Fri Sep 23 09:21:18 2022 -0400

    gdb/testsuite: update field names in gdb-gdb.py.in
    
    Patches that renamed the type::length and type::target_type fields
    didn't update gdb-gdb.py.in accordingly, do that.
    
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29599
    Change-Id: I0f3f37a94d43497789156b0ded4d2f2dd5b89496

Diff:
---
 gdb/gdb-gdb.py.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/gdb-gdb.py.in b/gdb/gdb-gdb.py.in
index a6148d6dd67..c43f54e202d 100644
--- a/gdb/gdb-gdb.py.in
+++ b/gdb/gdb-gdb.py.in
@@ -115,7 +115,7 @@ class StructTypePrettyPrinter:
         fields.append(
             "instance_flags = %s" % TypeFlagsPrinter(self.val["m_instance_flags"])
         )
-        fields.append("length = %d" % self.val["length"])
+        fields.append("length = %d" % self.val["m_length"])
         fields.append("main_type = %s" % self.val["main_type"])
         return "\n{" + ",\n ".join(fields) + "}"
 
@@ -260,7 +260,7 @@ class StructMainTypePrettyPrinter:
         fields.append("code = %s" % self.val["code"])
         fields.append("flags = [%s]" % self.flags_to_string())
         fields.append("owner = %s" % self.owner_to_string())
-        fields.append("target_type = %s" % self.val["target_type"])
+        fields.append("target_type = %s" % self.val["m_target_type"])
         if self.val["nfields"] > 0:
             for fieldno in range(self.val["nfields"]):
                 fields.append(self.struct_field_img(fieldno))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-26 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 21:34 [binutils-gdb] gdb/testsuite: update field names in gdb-gdb.py.in Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).