Closed
Bug 806957
Opened 13 years ago
Closed 13 years ago
JimDB fails to set pending breakpoint on startup
Categories
(Firefox for Android Graveyard :: JimDB, defect, P1)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jchen, Assigned: jchen)
Details
On Galaxy Nexus, 4.1.1, as reported by kats
| Assignee | ||
Comment 1•13 years ago
|
||
kats, can you try running 'set stop-on-solib-events 1' before setting the breakpoint? Then everytime a library loads, gdb should stop:
> ...
> Continuing.
> Stopped due to shared library event
> (gdb) c
> Continuing.
> Stopped due to shared library event
> (gdb) c
> Continuing.
> adb| Loaded libs in 26078ms total, 773ms user, 312ms system, 0 faults
>
> Breakpoint 1, 0x63caee28 in nsWindow::nsWindow() ()
> from /Users/nchen/central/objdir-android/dist/bin/libxul.so
> (gdb)
Also on my Galaxy Nexus 4.1.1, gdb does show the "shlib events" breakpoint. Maybe you can try deleting your moz-gdb/lib/SERIAL directory, and repulling the libraries.
> GNU gdb (GDB) 7.4-android-github.com/darchons
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=x86_64-apple-darwin12.2.0 --target=arm-elf-linux".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> New ADB device is "0149E0820D01300B"
> Using device 0149E0820D01300B
> Choices for object directory to use:
> 0. Do not use object directory
> 1. /Users/nchen/central/objdir-android
> 2. /Users/nchen/central/objdir-android-xul
> Choose from above or enter alternative
> : 1
> Using object directory: /Users/nchen/central/objdir-android
> Set sysroot to "/Users/nchen/moz-gdb/lib/0149E0820D01300B".
> Updated solib-search-path.
> Using package org.mozilla.fennec_nchen.
> Launching org.mozilla.fennec_nchen... Done
> Attaching to parent (pid 17425)... as non-root... Done
> Setting up remote debugging... Done
>
> Run another gdb session to debug child process.
>
> Ready. Use "continue" to resume execution.
> (gdb) maint i b
> Num Type Disp Enb Address What
> -5 shlib events keep y 0x40126aa5 <_start+9157> inf 1
> -6 longjmp master keep n 0x4006d384 <longjmp> inf 1
> -7 longjmp master keep n 0x4006cb80 <_longjmp> inf 1
> -8 longjmp master keep n 0x4006d404 <siglongjmp> inf 1
> -9 jit events keep y 0x5a55b16c <__jit_debug_register_code> inf 1
Comment 2•13 years ago
|
||
(In reply to Jim Chen [:jchen :nchen] from comment #1)
> kats, can you try running 'set stop-on-solib-events 1' before setting the
> breakpoint? Then everytime a library loads, gdb should stop:
>
Doing this didn't work initially but after I clobbered by lib/SERIAL folder it did start working. maint i b now also shows the shlib events breakpoint. I guess upgrading the stock ROM from one version to the next requires blowing away the library cache, which makes sense.
Thanks!
| Assignee | ||
Comment 3•13 years ago
|
||
No problem! It's on my to-do list to make a feature that will detect library changes automatically.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•