Closed
Bug 598155
Opened 14 years ago
Closed 14 years ago
Add an option to the DEBUG intent to launch and attach gdbserver
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: cjones, Assigned: cjones)
Details
Attachments
(1 file)
2.27 KB,
patch
|
Details | Diff | Splinter Review |
I'd like to set things up so that one can do something like adb forward tcp:12345 tcp:12345 adb shell am start -a org.mozilla.gecko.DEBUG -n org.mozilla.fennec/org.mozilla.fennec.App --gdbserver localhost:12345 fennec would look for gdbserver in known locations, say /data/local/gdbserver and /data/gdbserver for starters. If it's found, (something) would fork and daemonize the gdbserver process, attaching it to fennec's PID and binding it to the specified address. If all that succeeds, then fennec would bypass showing the "Launch app" button and start fennec. If not, the button would be shown.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
On my galaxy s with 2.1, I see E/Gecko ( 4891): 0 == prctl(HAS_PTRACE) --- NO PTRACE!!! :( which means that both breakpad and non-root gdb are DOA.
Assignee | ||
Comment 3•14 years ago
|
||
FTR on my desktop, with an equivalent check, I get 1 == prctl(HAS_PTRACE) --- yay! :)
Assignee | ||
Comment 4•14 years ago
|
||
Brad reports on an N1 with 2.2 I/Gecko ( 592); 1 == prctl(HAS_PTRACE) --- we have ptrace! :) so it's either something turned back on in 2.2 or device specific.
Assignee | ||
Comment 5•14 years ago
|
||
(Brad's device is rooted, and mine is in theory but doesn't appear to be in practice.)
Assignee | ||
Comment 6•14 years ago
|
||
This can't work on 2.1 so I don't care anymore.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•