summaryrefslogtreecommitdiffstats
path: root/src/cli/cli.c
Commit message (Collapse)AuthorAgeFilesLines
* remove abrt-cliDenys Vlasenko2011-06-151-368/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* cli: use deletion through socket. cli does not depend on dbus anymoreDenys Vlasenko2011-06-151-1/+0
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move vector of pd's cod to cli, its only userDenys Vlasenko2011-05-191-0/+23
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: add -L[PFX] "list possible events" functionDenys Vlasenko2011-05-041-15/+32
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: incorporate most of abrt-handle-crashdump functionalityDenys Vlasenko2011-05-041-167/+115
| | | | | | The only finction not included is -l[PFX] - list possible events. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Logger: output "END:" line to delimit appended reports. closes bz#698458Denys Vlasenko2011-04-281-53/+17
| | | | | | Also changes Bugzilla and abrt-cli output format. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* mass replace of crash_data with problem_dataDenys Vlasenko2011-04-231-29/+29
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli is one of several places where we hardcode usage of variousDenys Vlasenko2011-04-081-103/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elements of dump directory. This patch changes it to generic handling, where abrt-cli doesn't know anything about particular elements (like backtrace). Changes in detail: * crash_item->flags how has CD_FLAG_UNIXTIME bit. * format_crash_item(item) returns malloced formatted string (currently only formatted time for items with CD_FLAG_UNIXTIME) or NULL, if item->content is to be used as-is * crash_item->flags how has CD_FLAG_LIST bit, it is set on a small number of elements which are to be shown by abrt-cli -l. * abrt-cli -l doesn't use fixed names, it looks at CD_FLAG_LIST. * abrt-cli -i doesn't use fixed names, it prints all one-line elements: Directory : /var/spool/abrt/ccpp-1298264192-2705 analyzer : CCpp architecture : x86_64 cmdline : metacity comment : Abrt testing, please disregard component : metacity coredump : /var/spool/abrt/ccpp-1298264192-2705/coredump count : 1 crash_function : pa_atomic_load executable : /usr/bin/metacity global_uuid : 1e8b716d2094fb22dccdb5321ac0cf6f14eb6689 hostname : dhcp-25-227.brq.redhat.com kernel : 2.6.34.7-61.fc13.x86_64 os_release : Fedora release 13 (Goddard) package : metacity-2.30.0-3.fc13 rating : 4 reason : Process /usr/bin/metacity was killed by signal 11 (SIGSEGV) time : Mon 21 Feb 2011 05:56:32 AM CET uid : 500 uuid : 453085d0f703b96ddc3a5172dd7d5a29479f5b3f * abrt-cli -i --backtrace is removed. Instead, abrt-cli -i --full is to be used. It shows all elements, one-line and multi-line ones. * abrt-cli code now has an example how to list crast_data_t in the sorted-by-key order. Further ideas: abrt-cli needs -o elem1,elem2,elem3 option which tells which elements to show, and/or -O elem1,elem2,elem3 option which tells elements to NOT show. Rationale: abrt-cli -i --full output is way too long because of smaps, need a way to suppress unneeded elements display Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli: don't require write permissions on dumpdir to print infoMiroslav Lichvar2011-04-041-2/+2
|
* abrt-cli: analyze on info command only when backtrace was requestedMiroslav Lichvar2011-04-041-8/+10
|
* Ticket #178 abrt-cli should provide an option to select analyzerNikola Pajkovsky2011-03-301-3/+28
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* all: don't declare variables inside for loopsCosimo Cecchi2011-03-291-1/+2
|
* Revert "Ticket #178 abrt-cli should provide an option to select analyzer"Jiri Moskovcak2011-03-291-28/+3
| | | | This reverts commit e2b73a97a213d6b317e5410b0dc9d931686442d2.
* Ticket #178 abrt-cli should provide an option to select analyzerNikola Pajkovsky2011-03-291-3/+28
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* abrt-cli: fix inverted logic check for -lDenys Vlasenko2011-03-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Replace FILENAME_MESSAGE with FILENAME_REPORTED_TO.Denys Vlasenko2011-03-181-2/+2
| | | | | | | | | | | This fixes the problem with abrt-cli not showing unreported bugs and abrt-gui not showing "green lamp" for reported bugs. In general, it introduces a way to record reporting results, such as Bugzilla URL, in dump dir. In the future, this enables such functions as "check BZ status". Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* CLI.cpp -> cli.cNikola Pajkovsky2011-03-111-0/+432
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>