summaryrefslogtreecommitdiffstats
path: root/lib/plugins/CCpp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move files from lib/plugins to src/pluginsJiri Moskovcak2010-11-101-279/+0
|
* abrtd: convert reporting step to run_action, part 1 (main)Denys Vlasenko2010-11-031-161/+0
| | | | | | | | | | There are a few things which are missing in this commit: for example, the list of possible reporting "paths" is not extracted from abrt_event.conf yet. Part 2 will deal with it. Tested: reporting thru bugzilla and thru logger. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* switch "analyze" step processing to abrt_event.conf-driven wayDenys Vlasenko2010-11-031-294/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce abrt_action.conf; use it for post-create stepDenys Vlasenko2010-11-011-45/+0
| | | | | | | | | | | | | | | | | | | | | | | | This patch replaces only the post-create step with new logic (the step which happens when abrtd detects fresh crash dump dir and needs to decide what to do with it), but it turns out this step is one of hard ones: it needs special handling of UUID. So a good chunk of hard-ish stuff is already in this patch. It also contains logic to collect the log from actions, even though so far it is simply logged. Other steps (like reporting step) will pipe it to clients. post-create step simply has no client to pipe output to. But the code is there already. GetLocalUUID() members in all plugins are unused now and are deleted from all classes. Next patches will move run_event() function into libABRT, so that it can be used from e.g. abrt-handle-crashdump utility if/when we will write it, from clients directly and so on. For now, it lives in MiddleWare.cpp since it is only used there. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce and use xmalloc_fgets/fgetlineDenys Vlasenko2010-10-221-11/+4
| | | | | | | This fixes problems of having long lines truncated - and we do have very long lines sometimes - curl errors with HTML, list of debuginfos etc. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* change dd_opendir API to return dd pointer (no need to dd_init it separately)Denys Vlasenko2010-10-151-10/+10
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* btparser initial integrationKarel Klic2010-10-141-1/+0
|
* move uuid generation for CCpp to a separate program (abrt-action-analyze-c)Denys Vlasenko2010-10-141-165/+31
| | | | | | | | | | | | | | | | | | | | | | | | | This patch splits off uuid generation for CCpp to a separate program: Usage: abrt-action-analyze-c [-v] -d DIR Calculates and saves UUID -v, --verbose be verbose -d DIR Crash dump directory Run tested. Thus, now entire cycle of coredump processing/reporting consists of external programs: abrt-action-analyze-c abrt-action-save-package-data abrt-action-install-debuginfo abrt-action-generate-backtrace abrt-action-bugzilla Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* trivial cleanupsDenys Vlasenko2010-10-131-1/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* s/CD_DUPHASH/FILENAME_DUPHASH/gDenys Vlasenko2010-10-111-2/+2
| | | | | | | This is needed to make duplicate hash visible for separate programs looking at crash dumps. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* rename abrt-debuginfo-install to abrt-action-install-debuginfoDenys Vlasenko2010-09-231-5/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add two flags to dd_opendir()Nikola Pajkovsky2010-09-221-23/+5
| | | | | | | | | | | | | | | | | | | DD_CLOSE_ON_OPEN_ERR - free dump_dir structure when opening dump_dir does not exist DD_FAIL_QUIETLY - suppress message when dump directory does not exist VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); is all removed because there is error_msg("'%s' does not exist", dd->dd_dir); in dd_opendir() which sometimes we don't want to print(DD_FAIL_QUIETLY) example: crash dump directory trimming code running concurrently. Second process may try to delete a directory which is already gone. it should not complain that it is missing. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* This patch splits off CCpp's backtrace generation into a separate tool:Denys Vlasenko2010-09-201-221/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | $ abrt-action-generate-backtrace -z abrt-action-generate-backtrace: invalid option -- 'z' Usage: abrt-action-generate-backtrace -d DIR [-i DIR1:DIR2] [-t SECONDS] [-vs] Generate backtrace, its quality rating, hash, and crashed function Options: -d DIR Crash dump directory -i DIR1:DIR2 Additional debuginfo directories -t SECONDS Kill gdb if it runs for more than SECONDS -v Verbose -s Log to syslog This also allows for debugging and regression testing of abrt-action-generate-backtrace separately - it can be simply run from command-line. Also it provides a better fault isolation - crash in abrt-action-generate-backtrace does not take down abrtd. The code is based on CCpp.cpp. CCpp analyzer is made to spawn a child to do the backtrace generation. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* unhide dump_dir structure from typedefNikola Pajkovsky2010-09-201-5/+5
| | | | | | no other code changes Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* CCpp: better handling of uid and exit condition on bt generationDenys Vlasenko2010-09-161-5/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp: plug a memory leakDenys Vlasenko2010-09-161-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp: skip bt generation earlierDenys Vlasenko2010-09-141-18/+18
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move sha1 to lib/utils; remove small bit of related C++isms in CCpp.cppDenys Vlasenko2010-09-141-47/+17
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp: make gdb timeout configurable; raise it to 120 sec in default config fileDenys Vlasenko2010-09-131-10/+16
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* DebugDump.* -> dump_dir.*Nikola Pajkovsky2010-09-071-1/+0
| | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
* DebugDump.cpp: lowercase and rename functionsNikola Pajkovsky2010-09-021-21/+21
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* get rid of CDebugDump classNikola Pajkovsky2010-08-301-75/+99
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrtlib.h: include <assert.h> and "strbuf.h"Denys Vlasenko2010-08-301-4/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CCpp.cpp: add -Wall -Werror, fix two discovered bugsDenys Vlasenko2010-08-271-5/+4
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* concat_path_file: make it a C function, not C++Denys Vlasenko2010-08-241-5/+10
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* get rid of std::string& as parameterNikola Pajkovsky2010-08-231-48/+79
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* get rid of exceptions in CDebugDump classMichal Toman2010-08-181-16/+44
|
* lower case direcotry(no code changed)Nikola Pajkovsky2010-08-101-0/+1064
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>