public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17384] New: android arm gdb "Cannot access memory at address" when I "stepi" over "blx"
@ 2014-09-12 13:38 martin at minimum dot se
  2014-09-16  8:48 ` [Bug gdb/17384] " martin at minimum dot se
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: martin at minimum dot se @ 2014-09-12 13:38 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17384

            Bug ID: 17384
           Summary: android arm gdb "Cannot access memory at address" when
                    I "stepi" over "blx"
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: martin at minimum dot se

I'm debugging chromium on an android arm devices (nexus5). There is a
particular location in the code where if I put a breakpoint there, hit it, and
then run "next"; then gdb prints "Cannot access memory at address 0x1". If I do
the same thing but I use "stepi" instead of "next" then the error happens when
an "blx" instruction is executed.

Before the error it looks like this in gdb:
http://temp.minimum.se/screenshot_20140912_151327.png

...then I run "stepi", and afterwards it looks like this:
http://temp.minimum.se/screenshot_20140912_151801.png

...I was using the standard gdb 7.6 from the android ndk r10b-rc1 when I first
ran into this issue, however. I compiled an android arm gdb based on gdb master
(3adc1a7 / 7.8.50.20140911-cvs to be specific) and I can repro the same bug
there.

I did google a bit to see if someone else had run into this issue before me and
I found this on stackoverflow:
http://stackoverflow.com/questions/15166351/cant-step-in-gdb-past-thumb-arm-transition-arm-breakpoints-are-not-set

...that bug looks quite similar to my bug, however I have this bugfix in both
of the gdb versions I had reproduced the bug in so this is not the bugfix that
fixes my issue. Note however that this bugfix speaks about "blx REG" and I
suppose my issue is "blx ADDR". (Just guessing, I don't know assembly).

While running gdb built from gdb git master, I also sampled the backtrace
leading up to the call to memory_error_message(). It looked like this:
http://temp.minimum.se/bt_for_memory_error.txt


The chromium binary I'm trying to debug was built by gcc 4.8 from the android
ndk r10b-rc1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2014-10-14 11:01 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 13:38 [Bug gdb/17384] New: android arm gdb "Cannot access memory at address" when I "stepi" over "blx" martin at minimum dot se
2014-09-16  8:48 ` [Bug gdb/17384] " martin at minimum dot se
2014-09-16  9:03 ` palves at redhat dot com
2014-09-16  9:16 ` palves at redhat dot com
2014-09-16 13:41 ` martin at minimum dot se
2014-09-16 13:46 ` martin at minimum dot se
2014-09-16 15:10 ` palves at redhat dot com
2014-09-17  7:57 ` martin at minimum dot se
2014-09-17  9:45 ` martin at minimum dot se
2014-09-17 10:20 ` palves at redhat dot com
2014-09-17 11:23 ` martin at minimum dot se
2014-09-17 11:38 ` palves at redhat dot com
2014-09-17 15:33 ` cvs-commit at gcc dot gnu.org
2014-09-18  7:15 ` martin at minimum dot se
2014-09-18  7:28 ` palves at redhat dot com
2014-09-18  7:33 ` palves at redhat dot com
2014-09-18  8:44 ` palves at redhat dot com
2014-09-18 17:40 ` palves at redhat dot com
2014-09-19 14:54 ` martin at minimum dot se
2014-09-19 15:25 ` palves at redhat dot com
2014-09-22  9:12 ` martin at minimum dot se
2014-09-22 13:12 ` qiyao at gcc dot gnu.org
2014-09-23  9:23 ` qiyao at gcc dot gnu.org
2014-09-23 12:50 ` martin at minimum dot se
2014-09-24 11:57 ` qiyao at gcc dot gnu.org
2014-10-09  8:10 ` qiyao at gcc dot gnu.org
2014-10-14  8:32 ` martin at minimum dot se
2014-10-14 11:01 ` martin at minimum dot se

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).