summaryrefslogtreecommitdiff
path: root/tools/source/debug
AgeCommit message (Collapse)AuthorFilesLines
2017-05-09cleanup osl/diagnose.h includesJochen Nitschke1-1/+0
with command > git grep -l osl/diagnose.h *.cxx | xargs grep -L -w 'OSL_\w*' | xargs sed -i '/#include *\(<\|\"\)osl\/diagnose.h\(>\|\"\).*/d' headers need more work Change-Id: I906519ebbd47a04703b4fa5943b2f7abea7a97ab Reviewed-on: https://gerrit.libreoffice.org/37350 Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-11-25introduce DBG_UNHANDLED_EXCEPTION_WHEN for calls with an explanatory messageEike Rathke1-1/+7
Change-Id: Ic80f2ed2c0fdff20d1ee1968bec2840bf914fb5e
2016-06-13improve formatting of DBG_UNHANDLED_EXCEPTION messageNoel Grandin1-7/+6
put more useful info on the same line, and indent following lines, to visually separate them from new log messages. Change-Id: Ieda71aebf68420a0521ce98c621b0236d533bc53
2016-06-09reduce "no DbgTestSolarMutex function set" warningNoel Grandin1-19/+15
Change-Id: I68c67e77a2759c8542dd4a44a78a9fcf8aa7dcc0 Reviewed-on: https://gerrit.libreoffice.org/26056 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-3/+3
Change-Id: Ia5acfb564f913d52cd25b5d64d06b5280b94cb72
2015-11-09com::sun::star->css in tools/ and ucb/Noel Grandin1-3/+3
Change-Id: I695ff721efd63b8ca0dd3c61ba5a4fef2c43cde6 Reviewed-on: https://gerrit.libreoffice.org/19854 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-08Avoid pain when using selective debuginfoTor Lillqvist1-6/+3
Compile in the DbgUnhandledException function always. Change-Id: I302954598e599e8db71967974b18ade54ca2de13
2015-08-26Bin the fairly useless DbgDialog stuff and handle falloutTor Lillqvist1-245/+16
See (short) discussion on the mailing list, "How was it again, is the DbgDialog useful?". Change-Id: Ibde1eb13f16edf94f1f7aebd0befd1b0b171d5c4
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-1/+1
Change-Id: Iedee28da32a4333a414e06877f87851345bb4e9b
2015-01-05Some loplugin:revisibility clean-upStephan Bergmann1-1/+1
Stumbled across such redundant visibility re-specifications when looking at the odd case of cppu_unsatisfied_iquery_msg declared CPPU_DLLPUBLIC in cppu/source/cppu/cppu_opt.cxx and used in inline code in include/com/sun/star/uno/Reference.hxx with only a declaration lacking CPPU_DLLPUBLIC visible, and wondering how that actually works on Windows. However, this plugin is probably not worth it being run all the time, so committing it to compilerplugins/clang/store/. Change-Id: Ibc3c4e7499213de1b419ce7eb85455cb832e1510
2014-12-18Revert "Work around a Clang trunk (towards 3.6) -Werror,-Wunused-value"Stephan Bergmann1-13/+0
This reverts commit 146bd125a01742b2a6561a4a23735f37867d8221, Clang's r224465 does not look really useful the way it is, so work around that directly in Clang for now.
2014-12-18Work around a Clang trunk (towards 3.6) -Werror,-Wunused-valueStephan Bergmann1-0/+13
Change-Id: I3ee32c5bd379bb851f8f255faa93d96227dcff84
2014-12-10long is 32 bit on Windows x86_64 platformDavid Ostrovsky1-1/+1
So that this is always wrong (on this platform) to write: reinterpret_cast<foo>(reinterpret_cast<long>(bar)) it should be: renterpret_cast<foo>(reinterpret_cast<sal_uIntPtr>(bar)) Change-Id: Ia286246ee1616988f755c2d2054b26efacc51af0 Reviewed-on: https://gerrit.libreoffice.org/13366 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-09-23loplugin: cstylecast, update PTR_CAST macro to use static_castNoel Grandin1-1/+1
I introduce a template method into the PTR_CAST machinery to maintain constness. There is now a FIXME in sd/../docshell.cxx because I needed to use a dynamic_cast there to work around the games it appears to be playing with OLE in-place activation. Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, dropping the GCC-extension, unnecessary use of typeof from tools/rtti.hxx Change-Id: Iba5ace1aa27e02b34fcc91af1e658c43371afd03
2014-07-14loplugin:unreffunNoel Grandin1-10/+3
Change-Id: Idc0f3ef53f48b2e77e4cecbcdbbc44a115c6ec2e
2014-05-22fix-includes.pl: toolsThomas Arnhold1-1/+1
Change-Id: I66b3dc79998de018eae1c7eff8ce23f95e3c3f33
2014-03-31Remove now unused obsolete tools/debug.hxx functionalityStephan Bergmann1-502/+0
Change-Id: I1bc585af8f0189dfa219bd42a5f09871a006c6ea
2014-03-28Remove now unused DBG_CTOR etc. featureStephan Bergmann1-504/+7
Change-Id: Id5e3191ea1a505bd7d46af355edb99e184b5fcb1
2014-03-25Remove now unused tools/debug.hxx profiling functionalityStephan Bergmann1-185/+1
Change-Id: I13adca8c2f929c8a9226b26ef57b26363dfdf0b3
2014-03-25Reduce some functions to localStephan Bergmann1-30/+4
Change-Id: Ia2d7eaaa1381fe46839b0d52a91bdc3a439fa418
2014-03-25osl_setDetailedDebugMessageFunc is effectively doing nothingStephan Bergmann1-44/+0
...since the osl/diagnose.h macros got rebased onto sal/log.hxx, so remove the corresponding tools/debug.h functionality. Change-Id: Ife4b5b1a2608230d0dbfc3fa8852243c89ed292f
2014-03-25Remove unused DBG_FUNC_* slotsStephan Bergmann1-19/+1
Change-Id: Ief6661ed4bb57546014deef5b10d20fc3a4894fe
2014-03-25DBG_OUT_WARNING is unusedStephan Bergmann1-9/+0
...and thus DgbData::nWarningOut is unused, too. Change-Id: I388d2be7dafbfdc173a731dc7daf1c8b5efcd61d
2014-02-03At least warn when DBG_TESTSOLARMUTEX has not been set upStephan Bergmann1-0/+3
Change-Id: I5ae5318685ffe45bd9616d06eea21a93585715f2
2014-01-16Avoid warnings: unused parameterTor Lillqvist1-1/+5
Change-Id: I92fd33e020772eac735f133f467207da9635e9b4
2014-01-16always build an empty DbgUnhandledException, to allow debug=t builds without ↵Bjoern Michaelsen1-3/+2
--enable-dbgutils
2014-01-10Use boolStephan Bergmann1-5/+5
Change-Id: I7b48d8b9e162f9e4447bfcfcc0bbd1158bd35f5b
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-09Improve ErrorCodeIOException messagesStephan Bergmann1-0/+1
...and clean up some includes. Change-Id: Ia5843cd38f967722d7173a6c87fba26064e3ffd6
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-1/+1
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-06-30Clean String and sal_Bool in toolsNorbert Thiebaud1-51/+51
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-06-10fix file and lineno info for DBG_UNHANDLED_EXCEPTIONNoel Grandin1-2/+5
which I broke in commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Ic30e985cc356d81013ced1ce74ec6c78469d9882
2013-05-21fix for linkingNoel Grandin1-1/+1
caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec
2013-05-21move DBG_UNHANDLED_EXCEPTION out of lineNoel Grandin1-0/+49
makes it easier to set a breakpoint on it. Plus it's getting a little big to be a macro. Change-Id: I2827aa3618ba966fbc85a4a56e0e794a55630730 Reviewed-on: https://gerrit.libreoffice.org/3988 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-27-Wunused-macrosStephan Bergmann1-1/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2012-12-27Check for __GNUC__ instead of GCC in sourcesTor Lillqvist1-1/+1
We still have checks for $(COM) being GCC or MSC in makefiles, of course. But there is no reason to pass -D$(COM) to compilations. Checking the built-in compiler-specific macros __GNUC__, _MSC_VER (etc) is the right thing to do. Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592
2012-08-19cleanup files in tools/sourcePhilipp Riemer1-1/+1
This is a follow-up patch of 7710faa45640d25a83136a35044aafdb1b168d88. Change-Id: I1f54cbe5c3170e9a79e11e9b9c1da3791419a4ba
2012-08-18re-indent falsely formatted code in tools/sourcePhilipp Riemer1-19/+19
Change-Id: Ibc26313e79dd5f992c4bfb9454a9798fb1a78f00
2012-08-18removed ascii-art and blank lines in tools/sourcePhilipp Riemer1-85/+9
Change-Id: I3f95d12a8c325c96c586253b5d9bb7dce24c0858
2012-08-13fdo#39468: Translated German comments in core/toolsOliver Günther1-27/+25
Change-Id: I5b6fd5712f08dae180bdd3b57b63713946b82433
2012-07-31fdo#48549 System::Beep() removalMathieu Vonlanthen1-11/+0
Change-Id: I402202e199dfc8c2462859d00529f2782f6228b0
2012-07-11re-base on ALv2 code. Includes:Michael Meeks1-23/+14
Avoid some uses of non portable #!/bin/bash in shell scripts. Patch contributed by Pedro Giffuni http://svn.apache.org/viewvc?view=revision&revision=1235297 remove redundant namespace, patch contributed Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1162610 removal of OS/2 port changes, and preferring our similiar tools/inc/tools/solar.h DLLPOSTFIX cleanup. i118595 - Removal of the use of getopt() from rscdep. Patch contributed by Andre Fische http://svn.apache.org/viewvc?view=revision&revision=1202270
2012-06-29Remove some unused defines and controlsThomas Arnhold1-3/+0
Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
2012-01-20Remove some dated Windows-only debug stuff.Stephan Bergmann1-321/+0
2012-01-11valgrind: update unused code post virtual dtor cmis fixCaolán McNamara1-17/+0
2012-01-10Remove cruft in debug toolsMarcel Metz1-73/+2
2011-11-27remove include of pch header from toolsNorbert Thiebaud2-4/+0
2011-11-23Changed sal/log.h -> sal/log.hxx, drop _S from C++ streaming log macros.Stephan Bergmann1-8/+8
A compile time check ensures the common case of streaming just a plain C-style string literal still produces reasonably compact call-site code. The format-string variants are still available in sal/detail/log.h, but only to be used in obsolete osl/diagnose.h etc., and going to be removed again eventually.
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann1-74/+36
* New SAL_INFO..., SAL_WARN... macros. * New SAL_STREAM supersedes OSL_FORMAT. * oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now). * TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site cleanup). * Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet addressed. * Some replacements tools String -> rtl::OUString.
2011-05-01Remove some OS/2 codeFrancois Tigeot1-31/+1