Help Locating Base Code
Lionel Elie Mamane
lionel at mamane.lu
Tue Aug 7 22:32:45 PDT 2012
On Tue, Aug 07, 2012 at 06:50:22PM -0700, Joel Madero wrote:
> I'm trying to locate the code that handles the dialog that appears when you
> do the following steps in base:
To answer this kind of questions, I find it useful to run a build with
symbols (debug build) under gdb. Then, when the dialog is open, just
press CTRL-C in gdb, and look at the backtrace. Usually you'll even be
in the right thread, else have a look at "thread apply all bt 10" and
usually it is quite clear which thread is the right one.
In this case:
#4 0x00007f003f85217c in RunDialog::run (this=0x2e2a8c0)
at /home/master/src/libreoffice/core/vcl/unx/gtk/fpicker/SalGtkPicker.cxx:183
#5 0x00007f003f8581e1 in SalGtkFilePicker::execute (this=0x25bfba0)
at /home/master/src/libreoffice/core/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx:995
#6 0x00007f004bbd9bfa in sfx2::FileDialogHelper_Impl::implDoExecute (
this=this at entry=0x25bf0f0)
at /home/master/src/libreoffice/core/sfx2/source/dialog/filedlghelper.cxx:1336
#7 0x00007f004bbdb18a in sfx2::FileDialogHelper_Impl::execute (this=0x25bf0f0)
at /home/master/src/libreoffice/core/sfx2/source/dialog/filedlghelper.cxx:1604
#8 0x00007f004bbdff7c in sfx2::FileDialogHelper::Execute (this=0x7fff3b0c4830)
at /home/master/src/libreoffice/core/sfx2/source/dialog/filedlghelper.cxx:2409
#9 0x00007f001f47c298 in pcr::FormComponentPropertyHandler::impl_browseForImage_nothrow (this=0x29ba300, _out_rNewValue=empty uno::Any, _rClearBeforeDialog=...)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/formcomponenthandler.cxx:2814
#10 0x00007f001f4747cd in pcr::FormComponentPropertyHandler::onInteractivePropertySelection (this=0x29ba300, _rPropertyName="ImageURL", _rData=empty uno::Any, _rxInspectorUI=...)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/formcomponenthandler.cxx:1472
#11 0x00007f001fcc0c12 in rptui::GeometryHandler::onInteractivePropertySelection (this=0x2beaa10, PropertyName="ImageURL", Primary=<optimized out>, _rData=empty uno::Any, _rxInspectorUI=...)
at /home/master/src/libreoffice/core/reportdesign/source/ui/inspection/GeometryHandler.cxx:1483
#12 0x00007f001f3a31e2 in pcr::OPropertyBrowserController::Clicked (this=0x2819870, _rName="ImageURL", _bPrimary=<optimized out>)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/propcontroller.cxx:1351
#13 0x00007f001f3dd267 in pcr::OBrowserListBox::buttonClicked (this=0x2da3e40, _pLine=0x2bc0300, _bPrimary=<optimized out>)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/browserlistbox.cxx:904
#14 0x00007f001f42bcaa in pcr::OBrowserLine::OnButtonClicked (this=0x2bc0300, _pButton=0x2bc56d0)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/browserline.cxx:502
#15 0x00007f001f42bc4d in pcr::OBrowserLine::LinkStubOnButtonClicked (pThis=0x2bc0300, pCaller=0x2bc56d0)
at /home/master/src/libreoffice/core/extensions/source/propctrlr/browserline.cxx:499
#16 0x00007f004911d1e8 in Link::Call (this=this at entry=0x2bc58c8, pCaller=pCaller at entry=0x2bc56d0)
at /home/master/src/libreoffice/core/solver/unxlngx6/inc/tools/link.hxx:140
#17 0x00007f004916ae79 in Control::ImplCallEventListenersAndHandler (this=
0x2bc56d0, nEvent=1102, rHandler=..., pCaller=0x2bc56d0)
at /home/master/src/libreoffice/core/vcl/source/control/ctrl.cxx:383
#18 0x00007f004914fc7a in Button::Click (this=0x2bc56d0)
at /home/master/src/libreoffice/core/vcl/source/control/button.cxx:122
#19 0x00007f004915471b in PushButton::Tracking (this=0x2bc56d0, rTEvt=...)
at /home/master/src/libreoffice/core/vcl/source/control/button.cxx:1288
#20 0x00007f0049589244 in Window::EndTracking (this=0x2bc56d0, nFlags=<optimized out>)
at /home/master/src/libreoffice/core/vcl/source/window/window2.cxx:758
#21 0x00007f00495c0a11 in ImplHandleMouseEvent (pWindow=pWindow at entry=
0x27f0e50, nSVEvent=nSVEvent at entry=2, bMouseLeave=bMouseLeave at entry=0 '\000', nX=1021, nY=462, nMsgTime=471828910, nCode=1, nMode=3)
at /home/master/src/libreoffice/core/vcl/source/window/winproc.cxx:810
#22 0x00007f00495c63f7 in ImplHandleSalMouseButtonUp (pWindow=pWindow at entry=0x27f0e50, pEvent=pEvent at entry=0x7fff3b0c5630)
at /home/master/src/libreoffice/core/vcl/source/window/winproc.cxx:2089
#23 0x00007f00495c56a2 in ImplWindowFrameProc (pWindow=0x27f0e50, nEvent=<optimized out>, pEvent=0x7fff3b0c5630)
at /home/master/src/libreoffice/core/vcl/source/window/winproc.cxx:2418
#24 0x00007f003f84ab25 in SalFrame::CallCallback (this=this at entry=0x27f12e0, nEvent=nEvent at entry=4, pEvent=pEvent at entry=0x7fff3b0c5630)
at /home/master/src/libreoffice/core/vcl/inc/salframe.hxx:294
#25 0x00007f003f846bc6 in GtkSalFrame::signalButton (pEvent=0x2cef980, frame=0x27f12e0)
at /home/master/src/libreoffice/core/vcl/unx/gtk/window/gtkframe.cxx:2882
--
Lionel
More information about the LibreOffice
mailing list