From: "Martin Liška" <mliska@suse.cz>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] gdbinit: add a new command and fix one
Date: Wed, 29 May 2019 09:54:00 -0000 [thread overview]
Message-ID: <a1653178-2381-f43d-05a6-eea9a341d5e6@suse.cz> (raw)
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
Hi.
The patch is about a small change in .gdbinit file.
Ready for trunk?
Martin
gcc/ChangeLog:
2019-05-29 Martin Liska <mliska@suse.cz>
* gdbinit.in: Fix 'ptc' command. Add tt
that prints TREE_TYPE($).
---
gcc/gdbinit.in | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
[-- Attachment #2: 0001-gdbinit-add-a-new-command-and-fix-one.patch --]
[-- Type: text/x-patch, Size: 533 bytes --]
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index e16c3c8ef87..81c65d2e7b4 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -113,7 +113,7 @@ Works only when an inferior is executing.
end
define ptc
-output (enum tree_code) $.common.code
+output (enum tree_code) $.base.code
echo \n
end
@@ -201,6 +201,14 @@ document pcfun
Print current function.
end
+define tt
+print ($.typed.type)
+end
+
+document tt
+Print TREE_TYPE of the tree node that is $
+end
+
define break-on-diagnostic
break diagnostic_show_locus
end
next reply other threads:[~2019-05-29 9:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-29 9:54 Martin Liška [this message]
2019-05-29 16:20 ` Jeff Law
2019-05-29 18:27 ` Segher Boessenkool
2019-05-30 8:06 ` Martin Liška
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=a1653178-2381-f43d-05a6-eea9a341d5e6@suse.cz \
--to=mliska@suse.cz \
--cc=gcc-patches@gcc.gnu.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).