[Libreoffice-bugs] [Bug 97432] Breakpoints ignore when macro first run

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 16 10:06:42 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=97432

--- Comment #10 from himajin100000 at gmail.com ---
further logging suggested that
this line creates pThisCopy(INSTANCE-1,just for later explanation) as another
instance than *this(INSTANCE-2)

https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#2100

Then pThisCopy is given to SbxHint constructor

https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#2112

Later, at some point I cannot tell when,

SbMethod::SetDebugFlags is called ,with static_cast<int>(n) being 1.
https://opengrok.libreoffice.org/xref/core/include/basic/sbmeth.hxx?r=c02c4df9#60

probably *this in SetDebugFlags is referencing INSTANCE-1, not INSTANCE-2.

mpBroadcaster = std::move(pSaveBroadcaster);
mpBroadcaster->Broadcast( SbxHint( nHintId, pThisCopy ) );
SAL_INFO("basic",static_cast<int>(GetDebugFlags())); // INSTANCE-2
SAL_INFO("basic",static_cast<int>(pThisCopy->GetDebugFlags())); // INSTANCE-1

gave me
0
1

https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#1160

this pMeth after the SbMethod::Broadcast call is , as the same as the one
before the call, INSTANCE-2.

INSTANCE-2 is used to initialize SbRuntime here as I mentioned in the previous
post.

https://opengrok.libreoffice.org/xref/core/basic/source/classes/sbxmod.cxx?r=91937535#1168

I think this is somewhat related to this bug.

Any thoughts?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191216/e119eadf/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list