summaryrefslogtreecommitdiff
path: root/solenv/gdb
AgeCommit message (Collapse)Author
2017-01-23Revert "used std::map in SfxItemSet"Noel Grandin
This reverts commit 2757ee9fe610e253e4ccc37423fa420004d0f388. Besides causing a performance regression, I now notice that there is code in SW that relies on iterating over two different SfxItemSet's in parallel, and assumes that missing items are returned as nullptr, which is not the case for my std::map based change. Change-Id: I2b1110350fe4c4b74e5508558e9661ef1e1a103e
2017-01-17Change Idle to be a Timer subclassJan-Marek Glogowski
Drops a lot of duplicated code, as Idle is just a convenience class for instant, mostly low priority timers. Change-Id: I847592e92e86d15ab1cab168bf0e667322e48048
2017-01-17Refactor Scheduler to add Task classJan-Marek Glogowski
Moves all the "task-specific" stuff into a Task class and just keeps the "real" static Scheduler functions in the original Scheduler class. Change-Id: I9eb02d46e2bcf1abb06af5bab1fa0ee734d1984c
2017-01-17tdf#97087 GDB pretty print the Scheduler task listJan-Marek Glogowski
In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
2017-01-17used std::map in SfxItemSetNoel Grandin
instead of naked array SfxItemIter ended up needing to take copies of stuff because various code likes to iterate over the items and delete items inside the loop. The gdb pretty printer is no longer quite as pretty as it was before, but it still prints useful info. Change-Id: I59b07ea42f6b1c74798a15402970b9dbd8233dbe
2016-12-20gdb pretty printers: fix the SwXTextCursor::Impl one even moreMichael Stahl
Turns out that commit 30f3315d52df22716c086836c41465a6c4cb98b5 has removed the SwClient there a long time ago, and the SwUnoCrsr was also renamed... Change-Id: I92932130c5adbea530c39557932efce70c9f75e7
2016-12-20gdb pretty printers: fix BigPtrArray printer for member renameMichael Stahl
Change-Id: Ia9da0c0931a01b2c99c24420a9ba603b47a711c1
2016-12-20gdb pretty printers: fix SwXTextCursor::Impl printer for SwClient renameMichael Stahl
Change-Id: Ief136f57ce60bde1faa0603961aa775967621fbf
2016-12-20gdb pretty printers: fix SwPaM printer for Ring member renamingMichael Stahl
Change-Id: I605e4e972468165e7f5d21681b6e7eeb228dfdc9
2016-12-14solenv: adapt SwPositionPrinter to BigPtrEntry renamingMichael Stahl
Change-Id: I096211333c563b501627fef0dbdec8c3c98d501a
2016-10-23Fix typosAndrea Gelmini
Change-Id: Ib7b17f85c7b6a1937c3f6e1617ceec58074643b4 Reviewed-on: https://gerrit.libreoffice.org/30040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-07-08Resolves: tdf#100452 class Date full (BCE,CE) proleptic Gregorian calendarEike Rathke
... implementing signed years with year 0 gap. Date(31,12,-1) last day BCE Date(1,1,1) first day CE New class Date member functions: * AddYears(sal_Int16) to be used instead of aDate.SetYear(aDate.GetYear()+sal_Int16) to handle year 0 gap. * convenience GetNextYear() to be used insted of GetYear()+1 * convenience GetPrevYear() to be used insted of GetYear()-1 * AddMonths(sal_Int32) * operator=(const css::util::Date&) New class DateTime member functions: * operator=(const css::util::DateTime&) Made some conversion ctors explicit, specifically Date(sal_Int32) Adapted hopefully all places that used a sal_uInt16 year to use sal_Int16 where appropriate. Eliminated some quirks in date handling found on the fly. Added era handling to i18npool icu calendar setting interface, which missing was responsible for 0001-01-01 entered in Calc being set as -0001-01-01, hence subtracting one day resulted in -0002-12-31. Change-Id: I77b39fba9599ebd5067d7864f6c9ebe01f6f578f Reviewed-on: https://gerrit.libreoffice.org/27049 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
2016-06-16Improve output of UnoAnyPrinterStephan Bergmann
Change-Id: I1461264fe7f951c9ecec777c6217d0acfb7e4254
2016-01-02GDB: pretty-print more sw::mark::MarkBase classesJan-Marek Glogowski
Generalize the UnoMark pretty printer to actually print many objects inheriting from sw::mark::MarkBase. Also adds the mark name to the output. Change-Id: Idaec06ba448702ee3a47b474736df954646c0300
2015-12-07loplugin:mergeclasses OOXMLPropertyImpl into OOXMLPropertyNoel Grandin
Change-Id: I1447cfc76c529332450c90a21b6525d3103fe852
2015-12-07loplugin:mergeclasses, merge OOXMLPropertyImpl into OOXMLPropertyNoel Grandin
Change-Id: I73eb7e664c0a53f135c06c3d8ea450bd9493c780
2015-07-30gdb pretty printers for boost can't iterate with Python 3Michael Stahl
Change-Id: Ie2d1cb7312de6f14a5c6de81eefd7a00be6f75c0
2015-07-27gdb pretty printer for SwNodes fails on Python 3 due to "unicode"Michael Stahl
Change-Id: I8e4983a91d4f97a2a20fbeed89d4e0f186c35fad
2015-06-15sw: prefix members of SwNodeIndexMichael Stahl
Change-Id: Ia31c7a91bf78b967e70d288374d9e21439c99221
2015-05-26gdb: SwTxtNode -> SwTextNodeMiklos Vajna
Fixes the unexpected ' ~DeletedNode' lines in the output. Change-Id: I1f59c2cd986addd08e632d0bc1cc53b33048db77
2015-04-08solenv: there are no more SvArrays in need of pretty printingMichael Stahl
Change-Id: Ic4d59228f3295e8400bcacf637ff4def7669b775
2015-04-08solenv: add GDB pretty printer for SfxItemSetMichael Stahl
Change-Id: Ibd74c58efa7f1a24de409820655fb98b4fc13df3
2015-01-29gdb pretty printers: fix the sw::mark::IMark and SwModify printersMichael Stahl
If these are called on a value that is of a different type than what is checked in the children() method, nothing is printed except exceptions about non-existent _iterator. GDB can figure out the dynamic type itself and call the pretty printer only if it's actually a UnoMark so don't register it for IMark. Same thing for SwUnoCrsr, there is already a class for it. Change-Id: I00238f1e3f01741d607eec9d47671302b858b965
2015-01-29gdb pretty printers: remove obsolete tools container printersMichael Stahl
Change-Id: Ieb1e104e8147376405e90ecada308fee05321dcd
2015-01-27Adapt FractionPrinterStephan Bergmann
Change-Id: Ibc6302ea52458874f748f3ec2757bb60ad742fce
2014-11-10Do not deref (potentially dangling) weak_ptrStephan Bergmann
Change-Id: Ic9694aa8bd85fe0548b8f5fc5f52b4bbd6dce1cf
2014-11-10Adapt FractionPrinterStephan Bergmann
Change-Id: Ic297f14ea1bf5f3fa69c80a34439b5d13fc84346
2014-10-24More useful pretty printing of invalid fractionsStephan Bergmann
Change-Id: I5e118182e146645ee8546c69edf21834117a1129
2014-08-20gdb: print the SwNodeIndex properly if there are multiple blocksMichael Stahl
Change-Id: I178d365e71ef3377b1a2cfc115bb297640161efe
2014-01-31Remove UNOIDL "array" and "union" vaporware remnantsStephan Bergmann
...and deprecate what cannot be removed for compatibility. Change-Id: I1ea335af775b867b468b8285113631167729a92a
2013-11-15Add Python 3 compatibility to GDB pretty printers.Jan-Marek Glogowski
GDB on *buntu is linked against Python 3.3, which has many incompatibilities to Python 2, resulting in broken code. This patch uses the Python six library as a compatibility layer. Change-Id: Icb4cc54a1d05afb119376bb5e1430c91cb794d08 Reviewed-on: https://gerrit.libreoffice.org/6688 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-11-15Import Python six v1.4.1.Jan-Marek Glogowski
Python six just consists of a single Python file, so this includes the file as a convenience. Change-Id: I98ed50fba657013f5f3f12a4d13b3ba5558bfa2e Reviewed-on: https://gerrit.libreoffice.org/6687 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-10-22Resolves: fdo#38838 remove UniStringCaolán McNamara
hammer silver nails into coffin and bury in concrete Change-Id: I3fda2ff47738bb33793adab97faba2d439ac9a28
2013-07-28Adapt gdb python pretty-printer to time nano-second precision API changeLionel Elie Mamane
Change-Id: I416d98a298f00ae445a480c738a47758544d317c
2013-06-13Only print the rtl::Reference's pointerStephan Bergmann
...but do not pretty-print its dereferenced value. This is in line with the handling of css::uno::Reference, and avoids gdb Python exceptions when trying to print uninitialized rtl::Reference instances (which can e.g. happen during a "backtrace full"). Change-Id: I9a3c0a6441cf23cba748183226832d2ba23bd531
2013-05-28Added pretty printers for writerfilter OOXML tokenizerCédric Bosdonnat
Change-Id: I0fa2cb8d24cd6862ab1d88ad8ccc033c70bbfa44
2013-05-28SmartPtr pretty printer now behaves according to set print object valueCédric Bosdonnat
Change-Id: Ie8a092b7d91e0f379c7102c3aa12da8eb7666840
2013-05-22Add gdb pretty-printers for basegfxThorsten Behrens
First cut - polygons and B2DRange covered. Change-Id: I042bff8c3fa5c889a926d450090494e2e20f76b1
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-13adapt gdb pretty-printers to libmergedPeter Foley
Change-Id: I80236f3c69abe713ddfa8111e8ff76f83954def4
2013-04-10gdb: make uno::Reference output shorterMiklos Vajna
The original idea to dereference the implementation and show all details sounded nice, but now printing any UNO object that is a bit more complex results in a multi-page output, which makes getting backtraces really hard. Better to just show the dynamic type and the pointer. Change-Id: I340a31b27b059c3d03d9e537de519e286af2e50f
2013-04-09pretty-print SwXTextCursorMiklos Vajna
Change-Id: I98bb5cbcde93a408c44f4f985c06532ab0a37652
2013-04-09pretty-print SwUnoCrsrMiklos Vajna
Change-Id: Ia79e582002c92591694815580eff905b864ea6c5
2013-04-09gdb: pretty-printers for sw::mark::IMark, sw::UnoImplPtr and SwXTextRangeMiklos Vajna
Change-Id: I09b9e5a64b1b2630dbccdd9cf4392376b955dbdd
2013-04-09gdb: get UnoReferencePrinter work againMiklos Vajna
Change-Id: I07d6a24f5c94a115d38ccffde26725b668dab430
2013-02-07gdb: UnoReferencePrinter: prevent ambiguity problems differentlyMichael Stahl
With gdb 7.5.1 the dynamic_cast may cause "Couldn't determine value's most derived type for dynamic_cast", which isn't helpful either. So just print the current XInterface value in case the cast fails. Change-Id: I453b1a8eecbb056853293280195f6475f8852f2b
2013-01-31gdb: UnoReferencePrinter: prevent ambiguity problemsMichael Stahl
gdb 7.5.1 complains about ambiguous base class "XInterface" with cast() so try dynamic_cast() instead. Change-Id: I99a21eea7251e663deee395f6a13ca0ed041e8c9
2013-01-28Only call data()/length() when self is valid()Stephan Bergmann
Change-Id: Icd9c12a10d2183a5159a3aa7a70e90494e8a8183
2013-01-10gdb: print something also for non-recognized node typesMichael Stahl
These do not occur as such but while a node is being destroyed it is still in the nodes array and may have some base class types; without giving these a value gdb will just stop printing the nodes array then. Change-Id: If78c4f633312cf8bad0048b704fe20bd09c7c28f