[Libreoffice] Debugging UNO references in gdb

David Tardon dtardon at redhat.com
Mon May 30 22:39:44 PDT 2011

On Mon, May 30, 2011 at 09:57:16AM +0200, Andor E wrote:
> Hello,
> I'm trying to debug an issue with bookmarks in the Writer import
> filter. Right now my biggest problem is, that I don't know how to get
> information from the UNO reference objects. The import filter uses
> cursors and text ranges to insert the bookmarks into the document. I'm
> pretty sure, that the problem lies somewhere here, but I can't query
> the cursors and text ranges to make sure. Is there a helper function
> for gdb or a trick to do this?

FWIW, I have this in ~/.gdbinit :

set print object on

def pu
    print $arg0._pInterface
def xu
    if $arg0._pInterface
        print *$arg0._pInterface

Then I use

pu xSomething

to get real C++ type of the interface or

xu xSomething

to display it directly.


More information about the LibreOffice mailing list