From: fam@euphon.net
To: gdb-patches@sourceware.org
Cc: fam@euphon.net, Andreas Schwab <schwab@linux-m68k.org>,
Simon Marchi <simark@simark.ca>
Subject: [PATCH v6 2/3] disass: Add test for /x mode
Date: Sat, 26 Sep 2020 08:35:38 +0100 [thread overview]
Message-ID: <20200926073539.981936-3-fam@euphon.net> (raw)
In-Reply-To: <20200926073539.981936-1-fam@euphon.net>
From: Fam Zheng <famzheng@amazon.com>
gdb/testsuite/ChangeLog:
2020-09-25 Fam Zheng <famzheng@amazon.com>
* gdb.base/disasm-optim.exp: Add test for /x.
---
gdb/testsuite/gdb.base/disasm-optim.exp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gdb/testsuite/gdb.base/disasm-optim.exp b/gdb/testsuite/gdb.base/disasm-optim.exp
index 179e76ad0e..8c28fe10de 100644
--- a/gdb/testsuite/gdb.base/disasm-optim.exp
+++ b/gdb/testsuite/gdb.base/disasm-optim.exp
@@ -38,3 +38,10 @@ gdb_test_sequence "disassemble /s main" \
"disasm-optim\\.h:\r\n22"
"End of assembler dump\\."
}
+
+gdb_test_sequence "disassemble /x main" \
+ "Disassemble main with source" {
+ "Dump of assembler code for function main:"
+ "=> 0x[0-9a-f]* \\<\\+0x0>:"
+ "End of assembler dump\\."
+ }
--
2.25.1
next prev parent reply other threads:[~2020-09-26 7:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-26 7:35 [PATCH v6 0/3] disass: Add /x modifier fam
2020-09-26 7:35 ` [PATCH v6 1/3] disass: Add /x modifier to print offsets in hex fam
2020-09-26 7:35 ` fam [this message]
2020-09-26 7:35 ` [PATCH v6 3/3] disass: Add texinfo doc for the /x modifier fam
2020-09-26 8:18 ` Eli Zaretskii via Gdb-patches
2020-09-26 8:49 ` Fam Zheng
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=20200926073539.981936-3-fam@euphon.net \
--to=fam@euphon.net \
--cc=gdb-patches@sourceware.org \
--cc=schwab@linux-m68k.org \
--cc=simark@simark.ca \
/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