From owner-freebsd-openoffice Sat Aug 10 8:53:29 2002 Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DB9637B400 for <openoffice@FreeBSD.ORG>; Sat, 10 Aug 2002 08:53:26 -0700 (PDT) Received: from tomts20-srv.bellnexxia.net (tomts20.bellnexxia.net [209.226.175.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65A7A43E75 for <openoffice@FreeBSD.ORG>; Sat, 10 Aug 2002 08:51:36 -0700 (PDT) (envelope-from kevin.hendricks@sympatico.ca) Received: from localhost.localdomain ([65.93.133.235]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020810155034.GZDR11295.tomts20-srv.bellnexxia.net@localhost.localdomain>; Sat, 10 Aug 2002 11:50:34 -0400 Content-Type: text/plain; charset="iso-8859-1" From: "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca> To: Martin Blapp <mb@imp.ch> Subject: Re: [porting-dev] Re: Crash with Test-Document in the second run. Memory allocation problem Date: Sat, 10 Aug 2002 11:52:29 -0400 X-Mailer: KMail [version 1.4] Cc: <dev@porting.openoffice.org>, <openoffice@FreeBSD.ORG> References: <20020810163251.P92422-100000@levais.imp.ch> In-Reply-To: <20020810163251.P92422-100000@levais.imp.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208101152.29839.kevin.hendricks@sympatico.ca> Sender: owner-freebsd-openoffice@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-openoffice.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-openoffice> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-openoffice> X-Loop: FreeBSD.ORG Hi, > //********************************************************************** >******************************************* 920 // private > method > (gdb) p m_pDataContainer > $7 = (SvtHistoryOptions_Impl *) 0x81c5700 > (gdb) p m_pDataContainer->AppendItem > $8 = &SvtHistoryOptions_Impl::AppendItem(EHistoryType, rtl::OUString > const&, rtl::OUString const&, rtl::OUString const&, rtl::OUString > const&) > > How can I debug that function pointer ? I am not sure what you are asking here. You might want to look a tthe parameters being passed in. For any OUString dump the "buffer" using x/20x and you can look at the second byte of every short (uniocode char) to see what the ascii code for that string would be (just ignore the the high byte zeros from the unicode). For all pointers simply ask gdb to print the contents of that pointer (dereference), print * (m_pDataContainer) That shoudl dump the structure and its values. Hope this helps, Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-openoffice" in the body of the message