From: Tom Tromey <tromey@redhat.com>
To: Markus Teich <markus.teich@stusta.mhn.de>
Cc: gdb@sourceware.org
Subject: Re: meaning of tags in output
Date: Tue, 23 Apr 2013 18:17:00 -0000 [thread overview]
Message-ID: <87k3ntp0w6.fsf@fleche.redhat.com> (raw)
In-Reply-To: <5170EAF2.3060007@stusta.mhn.de> (Markus Teich's message of "Fri, 19 Apr 2013 08:57:54 +0200")
>>>>> "Markus" == Markus Teich <markus.teich@stusta.mhn.de> writes:
Markus> Is there already a documented list?
There should be some information in the documentation.
If any are missing, we'd appreciate a patch or a bug report...
I don't think there is a complete list. New ones are added whenever
necessary, but historically not always documented.
Markus> Since i am only working with C-Code right now, i tried to filter, which
Markus> tags are relevant for C and which are not.
If you are parsing the CLI output, you should know that MI is designed
for this. Parsing the CLI output is always going to be fragile.
Markus> <synthetic pointer>
Markus> if "this" is not used in a C++ member function it is an
Markus> synthetic pointer. irrelevant for C.
No, synthetic pointers are a DWARF extension typically used when the
compiler supports SRA. GCC emits this in some cases.
Markus> <error reading variable>
Markus> occurs, when a variable is printed which is not yet initialized. Is it
Markus> C++ only?
Pretty much any error can wind up being printed this way.
I don't know of a way to categorize it.
Markus> <address of value unknown>
Markus> ???seems to be for errorhandling in gdb???
I see the code, but I don't know how this could happen.
Markus> <internal function %s>
Markus> ???
You can define internal functions in gdb; this is exposed to users via
Python.
These internal functions are represented as values with "internal
function" type. If you try to print such a value, this is what you get.
Markus> <unavailable>
Markus> ???
I thought this one was documented, but I didn't immediately see it.
Some of a value's contents can be unavailable in some situations.
For example you might be examining saved trace data, and try to print a
register which was not traced.
Markus> <Error reading address %HEX?: %s>
Markus> could not read adress. What is the difference to the next tag?
Markus> <Address %HEX out of bounds>
Markus> Memory access on BADFOOD pointer
I see these both in val_print_string.
The difference comes from the error returned by the target code.
I don't know any more than that.
Markus> <invalid float value>
Markus> google hints: could be serious (stack corruption?).
Or, I think, an invalid bit pattern for a floating-point value.
Tom
next prev parent reply other threads:[~2013-04-23 18:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 6:58 Markus Teich
2013-04-23 18:17 ` Tom Tromey [this message]
2013-04-23 18:53 ` Markus Teich
2013-04-24 19:09 ` Tom Tromey
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=87k3ntp0w6.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=markus.teich@stusta.mhn.de \
/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