This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Prevent internal-error when computing $pc in ARM assembly code
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: Martin Simmons <martin at lispworks dot com>, gdb-patches at sourceware dot org
- Date: Mon, 15 Jun 2015 06:36:13 -0700
- Subject: Re: [PATCH] Prevent internal-error when computing $pc in ARM assembly code
- Authentication-results: sourceware.org; auth=none
- References: <201505200949 dot t4K9nlqt015737 at heapu dot cam dot lispworks dot com> <20150609184408 dot GG2855 at adacore dot com> <86wpz5s31d dot fsf at gmail dot com>
> > It would be good to have a few more details about what causes us
> > to be in a situation where we'd be failing to read memory at
> > an address. Perhaps just showing the disassembled code and
> > a quick explanation of what happens might be sufficient.
>
> I agree with Joel that we need more details about the problem you are
> trying to fix.
I think the problem comes from improper unwinding of a function
having an unusual frame, causing us to use a bogus return address
which could be anywhere, including in an unreadable memory area.
--
Joel