Closed Bug 1164636 Opened 9 years ago Closed 9 years ago

Make android GDB setup work with emulator builds

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1219807

People

(Reporter: bholley, Assigned: gbrown)

References

Details

Brad says that he will resource this once we get emulator mochitests hooked up to mach, which is bug 1164596.
I recently verified that gdb (JimDB) works fine with the Android emulator, and the coming-soon "mach emulator" command. https://wiki.mozilla.org/Mobile/Fennec/Android/GDB is helpful.

JimDB has support for running mochitests, and that too works fine with the emulator: work through the JimDB prompts and mochitests are launched on the emulator, with the debugger running.

I would like to see mach support for downloading and installing JimDB, similar to "mach emulator" - I can do that.

To make things even more simple and discoverable, it would be great if we could integrate JimDB with "mach mochitest", but I can't quite visualize that, yet.
(In reply to Geoff Brown [:gbrown] from comment #1)
> I recently verified that gdb (JimDB) works fine with the Android emulator,
> and the coming-soon "mach emulator" command.
> https://wiki.mozilla.org/Mobile/Fennec/Android/GDB is helpful.

Last I checked this wasn't the case, and I had to modify a bunch of the python scripts to get it to partially work. I guess that's been fixed?
(In reply to Geoff Brown [:gbrown] from comment #1)
> I would like to see mach support for downloading and installing JimDB,
> similar to "mach emulator" - I can do that.
> 
> To make things even more simple and discoverable, it would be great if we
> could integrate JimDB with "mach mochitest", but I can't quite visualize
> that, yet.

Those both sound great. Also, when things are a mach command, the developer _knows_ it's supposed to a supported use-case, and is more confident filing bugs when it doesn't work.
:snorp has patches that let us run jimdb python scripts inside the gdb that's included in the NDK. That would make it a lot easier to run jimdb since the user should already have a copy of the NDK installed.
Assignee: nobody → gbrown
(In reply to Jim Chen [:jchen] [:darchons] from comment #4)
> :snorp has patches that let us run jimdb python scripts inside the gdb
> that's included in the NDK. That would make it a lot easier to run jimdb
> since the user should already have a copy of the NDK installed.

Let's see these patches.
Flags: needinfo?(snorp)
Depends on: 1219807
(In reply to Geoff Brown [:gbrown] from comment #5)
> Let's see these patches.

Sounds interesting, but I'm not going to get into that. In bug 1219807, I deployed jimdb binaries to tooltool, for use from mach -- good enough for me.
Flags: needinfo?(snorp)
This ended up being implemented in bug 1219807. mach can download, configure and run jimdb and jimdb can debug Firefox on a phone, tablet, or emulator.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.