martin at minimum dot se
2014-09-12 13:38:03 UTC
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:
Loading Image...
...then I run "stepi", and afterwards it looks like this:
Loading Image...
...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.
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:
Loading Image...
...then I run "stepi", and afterwards it looks like this:
Loading Image...
...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.
You are receiving this mail because:
You are on the CC list for the bug.