From: Shahab Vahedi <shahab.vahedi@gmail.com>
To: Olivia Nelson <the.warl0ck.1989@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Can't print in gdb
Date: Tue, 8 Dec 2020 12:25:32 +0100 [thread overview]
Message-ID: <X89irMGNxT1N1T6t@gmail.com> (raw)
In-Reply-To: <CAJZVxRn6hwMKL73bOGY5N4UYFZO0csFyKBGhAvFTU0m0v4ZLAw@mail.gmail.com>
You will need either to typecast:
(gdb) printf "prefix:%s\n", (char *) substr
Or use the member variable:
(gdb) printf "prefix:%s\n", substr.str
Cheers,
Shahab
prev parent reply other threads:[~2020-12-08 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-08 1:52 Olivia Nelson
2020-12-08 8:58 ` Andreas Schwab
2020-12-08 11:25 ` Shahab Vahedi [this message]
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=X89irMGNxT1N1T6t@gmail.com \
--to=shahab.vahedi@gmail.com \
--cc=gdb@sourceware.org \
--cc=the.warl0ck.1989@gmail.com \
/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).