From: Simon Marchi <simon.marchi@polymtl.ca>
To: gdb-patches@sourceware.org
Subject: [PATCH 3/3] gdb/testsuite: update field names in gdb-gdb.py.in
Date: Fri, 23 Sep 2022 10:18:01 -0400 [thread overview]
Message-ID: <20220923141801.1106678-4-simon.marchi@polymtl.ca> (raw)
In-Reply-To: <20220923141801.1106678-1-simon.marchi@polymtl.ca>
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
---
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 a6148d6dd67e..c43f54e202d3 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))
--
2.37.3
next prev parent reply other threads:[~2022-09-23 14:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 14:17 [PATCH 0/3] Fix gdb.gdb/python-helper.exp + cleanups Simon Marchi
2022-09-23 14:17 ` [PATCH 1/3] gdb/testsuite: bump duration for the whole test in do_self_tests Simon Marchi
2022-09-23 14:18 ` [PATCH 2/3] gdb/testsuite: use gdb_test in gdb.gdb/python-helper.exp Simon Marchi
2022-09-23 14:18 ` Simon Marchi [this message]
2022-09-23 17:02 ` [PATCH 0/3] Fix gdb.gdb/python-helper.exp + cleanups Luis Machado
2022-09-23 21:35 ` Tom de Vries
2022-09-26 18:01 ` Simon Marchi
2022-09-26 18:39 ` Tom de Vries
2022-09-26 21:33 ` Simon Marchi
2022-09-27 10:34 ` Bruno Larsen
2022-09-27 10:42 ` Luis Machado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220923141801.1106678-4-simon.marchi@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).