From: Andrew Cagney <cagney@gnu.org>
To: Emilio Ugo GIUFFRIDA <emilio.giuffrida@st.com>
Cc: gdb@sources.redhat.com
Subject: Re: Problem with unsigned char * data
Date: Fri, 21 May 2004 15:25:00 -0000 [thread overview]
Message-ID: <40AE1F3C.4030003@gnu.org> (raw)
In-Reply-To: <000001c43e95$75dd67b0$9a8182a4@CTN000514>
> Gentlemen,
>
> I have a problem with gdb/Insight :-(
>
> On a board, when a "unsigned char *" pointer is badly initialized to
> 0xffffffff( that for us is outside the memory ), trying to print the pointer's value in the local variable window or in the watchpoint window makes the GUI crash.
>
> Using the gdb console, the answer is quite verbose, but correct:
> (gdb) print pt1
> $6 =
> Error: Error in st200emu : Cannot read buffer at memory adress 0xffffffff
> Adaptor error on: read memory access at address (Exception 5 while executing ROM command)
>
> It seems that gdb tries to read at 0xffffffff and, for pointers to unsigned char, displays by default the string pointed.
>
> Do you know if there is a gdb option disabling this behaviour?
Which target are you using?
The message appears to come from the target and that should recover from
these error conditions reporting them back to GDB.
The other option is to look at the ``mem'' command, it was added to
address this problem of errant targets (I'm not sure of its status
though - doesn't appear to be tested).
Andrew
prev parent reply other threads:[~2004-05-21 15:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 18:09 Emilio Ugo GIUFFRIDA
2004-05-20 21:14 ` Daniel Jacobowitz
2004-05-21 15:25 ` Andrew Cagney [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=40AE1F3C.4030003@gnu.org \
--to=cagney@gnu.org \
--cc=emilio.giuffrida@st.com \
--cc=gdb@sources.redhat.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