$ ./run-gdb.sh attach 43
GECKO_PATH = /home/m_fujii/B2G_emu/B2G/gecko
B2G_DEBUG = 1
B2G_NOOPT = 1
GECKO_OBJDIR = /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug
Attached; pid = 43
Listening on port 11043
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gdb -x /tmp/b2g.gdbinit.m_fujii /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug/dist/bin/b2g
GNU gdb (GDB) 7.1-android-gg2
Copyright (C) 2010 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=i686-linux-gnu --target=arm-elf-linux".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug/dist/bin/b2g...done.
Remote debugging from host 127.0.0.1
0x42951e98 in js::frontend::TokenStream::isCurrentTokenEquality (this=0xbe92a8e0)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/frontend/TokenStream.h:514
514 return TokenKindIsEquality(currentToken().type);
(gdb) bt
#0 JS_DefineFunction (cx=0x485d2da0, objArg=0x4554be60, name=0x42f7cf5e "getElementsByTagName",
call=0x419cd1b9 , nargs=1, attrs=1)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsapi.cpp:5049
#1 0x419bb89c in xpc_qsDefineQuickStubs
(cx=0x485d2da0, proto=0x4554be60, flags=1, ifacec=6, interfaces=0x43767f24,
tableSize=170, table=0x42f7b64c, propspecs=0x4387aa18, funcspecs=0x438db800,
stringTable=0x42f7cbd8 "name")
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCQuickStubs.cpp:316
#2 0x41a19f20 in xpc::DOM_DefineQuickStubs
(cx=0x485d2da0, proto=0x4554be60, flags=1, count=6, iids=0x43767f24)
at /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug/js/xpconnect/src/dom_quickstubs.cpp:27496
#3 0x4148b55e in nsDOMClassInfo::PostCreatePrototype
(this=0x492d4540, cx=0x485d2da0, proto=0x4554be60)
at /home/m_fujii/B2G_emu/B2G/gecko/dom/base/nsDOMClassInfo.cpp:5134
#4 0x41493f1c in nsNodeSH::PostCreatePrototype
(this=0x492d4540, cx=0x485d2da0, proto=0x4554be60)
at /home/m_fujii/B2G_emu/B2G/gecko/dom/base/nsDOMClassInfo.cpp:7849
#5 0x419b6c22 in XPCWrappedNativeProto::CallPostCreatePrototype
(this=0x492d4560, ccx=...)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCWrappedNativeProto.cpp:121
#6 0x419b6b9e in XPCWrappedNativeProto::Init
(this=0x492d4560, ccx=..., scriptableCreateInfo=0xbe929f54, callPostCreatePrototype=true)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCWrappedNativeProto.cpp:102
#7 0x419b6fec in XPCWrappedNativeProto::GetNewOrUsed
(ccx=..., scope=0x4875af40, classInfo=0x492d4540,
scriptableCreateInfo=0xbe929f54, offsets=0x1, callPostCreatePrototype=true)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCWrappedNativeProto.cpp:210
#8 0x419ad88e in ConstructSlimWrapper (ccx=..., aHelper=..., xpcScope=0x4875af40, rval=0xbe929fd8)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCWrappedNative.cpp:3806
#9 0x41977e0a in XPCConvert::NativeInterface2JSObject
(lccx=..., d=0x44c000f8, dest=0x0, aHelper=...,
iid=0x42c8eca8, Interface=0x439043f8, allowNativeWrapper=true, pErr=0xbe92a08c)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCConvert.cpp:877
#10 0x419bcd2a in xpc_qsXPCOMObjectToJsval
(lccx=..., aHelper=..., iid=0x42c8eca8, iface=0x439043f8, rval=0x44c000f8)
at /home/m_fujii/B2G_emu/B2G/gecko/js/xpconnect/src/XPCQuickStubs.cpp:993
#11 0x419ca56a in nsIDOMDocument_CreateElement (cx=0x485d2da0, argc=1, vp=0x44c000f8)
at /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug/js/xpconnect/src/dom_quickstubs.cpp:3297
#12 0x427c09a6 in js::CallJSNative
(cx=0x485d2da0, native=0x419ca32d , args=...)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jscntxtinlines.h:364
#13 0x427c7b06 in js::InvokeKernel (cx=0x485d2da0, args=..., construct=js::NO_CONSTRUCT)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsinterp.cpp:367
#14 0x427d4e20 in js::Interpret
(cx=0x485d2da0, entryFrame=0x44c00020, interpMode=js::JSINTERP_NORMAL)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsinterp.cpp:2475
#15 0x427c7810 in js::RunScript (cx=0x485d2da0, script=..., fp=0x44c00020)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsinterp.cpp:324
#16 0x427c82d2 in js::ExecuteKernel (cx=0x485d2da0, script=..., scopeChain=..., thisv=...,
type=js::EXECUTE_GLOBAL, evalInFrame=0x0, result=0x0)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsinterp.cpp:509
#17 0x427c84d6 in js::Execute (cx=0x485d2da0, script=..., scopeChainArg=..., rval=0x0)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsinterp.cpp:547
#18 0x4271bd56 in JS::Evaluate (cx=0x0, obj=..., options=..., chars=0x0,
length=1085380929, rval=0x4856fe50)
at /home/m_fujii/B2G_emu/B2G/gecko/js/src/jsapi.cpp:5712
#19 0x41402b02 in nsJSContext::EvaluateString (this=0x48f0d7e0,
aScript=..., aScopeObject=0x45528040,
aPrincipal=0x4856fe50, aOriginPrincipal=0x478efe50,
aURL=0x478f0e08 "app://system.gaiamobile.org/js/keyboard_manager.js", aLineNo=1,
aVersion=JSVERSION_DEFAULT, aRetValue=0x0, aIsUndefined=0xbe92afdf)
at /home/m_fujii/B2G_emu/B2G/gecko/dom/base/nsJSEnvironment.cpp:1534
#20 0x41161a64 in nsScriptLoader::EvaluateScript (this=0x48b8b5c0, aRequest=0x478f0e40, aScript=...)
at /home/m_fujii/B2G_emu/B2G/gecko/content/base/src/nsScriptLoader.cpp:850
#21 0x41161510 in nsScriptLoader::ProcessRequest (this=0x48b8b5c0, aRequest=0x478f0e40)
at /home/m_fujii/B2G_emu/B2G/gecko/content/base/src/nsScriptLoader.cpp:743
#22 0x41161eca in nsScriptLoader::ProcessPendingRequests (this=0x48b8b5c0)
at /home/m_fujii/B2G_emu/B2G/gecko/content/base/src/nsScriptLoader.cpp:920
#23 0x41162dc6 in nsScriptLoader::ParsingComplete (this=0x48b8b5c0, aTerminated=false)
at /home/m_fujii/B2G_emu/B2G/gecko/content/base/src/nsScriptLoader.cpp:1231
#24 0x410a45ea in nsContentSink::DidBuildModelImpl (this=0x48fcf300, aTerminated=false)
at /home/m_fujii/B2G_emu/B2G/gecko/content/base/src/nsContentSink.cpp:1462
#25 0x4168113e in nsHtml5TreeOpExecutor::DidBuildModel (this=0x48fcf300, aTerminated=false)
at /home/m_fujii/B2G_emu/B2G/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:149
#26 0x4167eec4 in nsHtml5TreeOperation::Perform (this=0x48fb3ad8, aBuilder=0x48fcf300,
aScriptElement=0xbe92b664)
at /home/m_fujii/B2G_emu/B2G/gecko/parser/html/nsHtml5TreeOperation.cpp:639
#27 0x41682178 in nsHtml5TreeOpExecutor::RunFlushLoop (this=0x48fcf300)
at /home/m_fujii/B2G_emu/B2G/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:564
#28 0x41680be4 in nsHtml5ExecutorReflusher::Run (this=0x497510f0)
at /home/m_fujii/B2G_emu/B2G/gecko/parser/html/nsHtml5TreeOpExecutor.cpp:66
#29 0x420ec466 in nsThread::ProcessNextEvent (this=0x40304320, mayWait=false, result=0xbe92b747)
at /home/m_fujii/B2G_emu/B2G/gecko/xpcom/threads/nsThread.cpp:620
#30 0x4208d58e in NS_ProcessNextEvent_P (thread=0x40304320, mayWait=false)
at /home/m_fujii/B2G_emu/B2G/gecko/objdir-gonk-debug/xpcom/build/nsThreadUtils.cpp:237
#31 0x41e1d356 in mozilla::ipc::MessagePump::Run (this=0x40302430, aDelegate=0x4032b0c0)
at /home/m_fujii/B2G_emu/B2G/gecko/ipc/glue/MessagePump.cpp:82
#32 0x42144f38 in MessageLoop::RunInternal (this=0x4032b0c0)
at /home/m_fujii/B2G_emu/B2G/gecko/ipc/chromium/src/base/message_loop.cc:216
#33 0x42144ed2 in MessageLoop::RunHandler (this=0x4032b0c0)
at /home/m_fujii/B2G_emu/B2G/gecko/ipc/chromium/src/base/message_loop.cc:209
#34 0x42144e7a in MessageLoop::Run (this=0x4032b0c0)
at /home/m_fujii/B2G_emu/B2G/gecko/ipc/chromium/src/base/message_loop.cc:183
#35 0x41cdbefa in nsBaseAppShell::Run (this=0x403ef820)
at /home/m_fujii/B2G_emu/B2G/gecko/widget/xpwidgets/nsBaseAppShell.cpp:163
#36 0x41b37d8c in nsAppStartup::Run (this=0x449b4070)
at /home/m_fujii/B2G_emu/B2G/gecko/toolkit/components/startup/nsAppStartup.cpp:290
#37 0x40b24eee in XREMain::XRE_mainRun (this=0xbe92ba00)
at /home/m_fujii/B2G_emu/B2G/gecko/toolkit/xre/nsAppRunner.cpp:3794
#38 0x40b2512c in XREMain::XRE_main (this=0xbe92ba00, argc=1, argv=0xbe92dc14, aAppData=0x37950)
at /home/m_fujii/B2G_emu/B2G/gecko/toolkit/xre/nsAppRunner.cpp:3860
#39 0x40b252da in XRE_main (argc=1, argv=0xbe92dc14, aAppData=0x37950, aFlags=0)
at /home/m_fujii/B2G_emu/B2G/gecko/toolkit/xre/nsAppRunner.cpp:3935
#40 0x00009e18 in do_main (argc=1, argv=0xbe92dc14)
at /home/m_fujii/B2G_emu/B2G/gecko/b2g/app/nsBrowserApp.cpp:164
#41 0x0000a0b4 in main (argc=1, argv=0xbe92dc14)
at /home/m_fujii/B2G_emu/B2G/gecko/b2g/app/nsBrowserApp.cpp:249
(gdb)