summaryrefslogtreecommitdiff
path: root/dbgserver
Commit message (Collapse)AuthorAgeFilesLines
* dbgserver: eradicate last vestiges of 'dbgclient*', fix solib visibilitydbgserver.pre20190810Frank Ch. Eigler2019-08-092-17/+18
|
* source-file eradicationFrank Ch. Eigler2019-08-093-5/+5
|
* dbgserver: defeat "eu-" program_prefix naming for dbgserver* componentsFrank Ch. Eigler2019-08-091-0/+5
| | | | They don't overlap binutils names, so no need to prefix.
* dbgserver: add man page for dbgserver-find.1Frank Ch. Eigler2019-08-094-34/+199
| | | | ... with a lot of shared text between it and dbgserver.8
* dbgserver: dist the new man page, or else srpm is incompleFrank Ch. Eigler2019-08-081-1/+1
|
* dbgserver: add man8 page, tweak webapiFrank Ch. Eigler2019-08-084-8/+176
| | | | | now with a man page! webapi change: /source-file//path.c to /source/path.c
* dbgserver-find: don't convert build-id string to bytesAaron Merey2019-08-071-24/+4
| | | | | dbgserver/dbgserver-find.c: remove build-id string conversion as dbgserver-client can handle hex string build-ids.
* dbgserver client: CURLOPT_ACCEPT_ENCODING pass char* instead of longAaron Merey2019-08-071-1/+1
| | | | | dbgserver/dbgserver-client.c: curl_easy_setopt called with CURLOPT_ACCEPT_ENCODING expects a char* argument and can segfault if passed a long. Replace 1L with "".
* dbgserver client: add command-line frontendAaron Merey2019-08-072-1/+114
| | | | | | | dbgserver/dbgserver-find.c: new command-line frontend for dbgserver. dbgserver/Makefile.am: build dbgserver-find along with dbgserver. config/elfutils.spec.in: add dbgserver-find to the dbgserver-libs package.
* dbgserver: add note re. curl_easy_escape() as future source-file caching ↵Frank Ch. Eigler2019-08-061-0/+3
| | | | name-generator
* dbgserver client: add more curl optionsFrank Ch. Eigler2019-08-061-0/+5
| | | | Enable compression and redirection following, set a user-agent.
* dbgserver-client: change names of dbgclient_find_*() to dbgserver_find_*()Aaron Merey2019-08-023-9/+9
|
* dbgserver client cache: escape '.'s in filenames too, to prevent ↵Frank Ch. Eigler2019-08-011-1/+1
| | | | path/../path escapes
* dbgserver-client: support source-file fetching/cachingFrank Ch. Eigler2019-08-011-4/+17
| | | | Uglyish, but rewrite / chars in filename to '#', so cache directories don't get crazy nested
* dbgclient: use thread-safe strtok_r() for tokenizing $DBGSERVER_URLSFrank Ch. Eigler2019-08-011-11/+7
|
* dbgserver client: check for env vars before even creating tmp file / cache ↵Frank Ch. Eigler2019-08-011-22/+24
| | | | directory
* dbgserver client: fix -ENOSYS error case; simplify rmdir cleanupFrank Ch. Eigler2019-08-011-12/+3
|
* dbgserver client: restore empty-directory cleanupFrank Ch. Eigler2019-08-011-0/+15
|
* dbgserver client: normal exit to avoid error label chainFrank Ch. Eigler2019-08-011-14/+12
|
* dbgserver client: tmpfile, simplify, fix error handling pathsFrank Ch. Eigler2019-07-312-183/+183
|
* dbgserver: pass back Last-Modified: response header for all filesFrank Ch. Eigler2019-07-311-7/+25
|
* dbgserver: support -t 0 (never rescan)Frank Ch. Eigler2019-07-301-3/+8
|
* dbgserver-client: add $DBGSERVER_TIMEOUT env varFrank Ch. Eigler2019-07-301-2/+9
| | | | instead of hardcoding it at 5
* dbgserver: prefer wal logging for sqlite dbFrank Ch. Eigler2019-07-301-0/+1
|
* dbgserver: add path parameter to dbgclient_find_*()Aaron Merey2019-07-293-43/+59
| | | | | | | | | | dbgserver/dbgserver-client.c: add parameter for returning path of file downloaded from server. Some clients may prefer this to an fd. Also call curl init functions after checking whether the cache contains a copy of the target file. dbgserver/dbgserver-client.h: see prev dbgserver/dbgserver.cxx: see prev libdwlf/dwfl_build_id_find_elf.c,find-debuginfo.c: see prev.
* dbgserver: add source file indexing & serviceFrank Ch. Eigler2019-07-281-73/+323
| | | | also: normalize all persistent tables so file names / buildids are not repeatedly stored
* dbgserver.txt: retiredFrank Ch. Eigler2019-07-251-64/+0
|
* normalized sqliteFrank Ch. Eigler2019-07-251-35/+128
|
* dbgserver: as fallback, delegate to upstream dbgserverFrank Ch. Eigler2019-07-204-23/+76
| | | | | Have dbgserver link against its own client library. Fallback to making outbound query, relaying the resulting fd in the cache.
* dbgclient: replace custom error codes with errno, modify user apiAaron Merey2019-07-192-95/+114
| | | | | | | | | | | | | | | | | | dbgserver/dbgserver-client.c: Custom error codes replaced with errno. dbgclient_build_id_find() replaced with dbgclient_find_{debuginfo,source,executable}(). Removed dbgclient_enabled(), dbgclient_find_*() now returns -ENOENT if $DBGSERVER_URLS is not defined. dbgclient_query_server() now properly handles GET requests for source files. dgbserver/dbgserver-client.h: Removed enum dbgclient_file_type and custom error codes. dbgclient_build_id_find() declaration replaced with dbgclient_find_{debuginfo,source,executable}(). libdwfl/dwfl_build_id_find_elf.c,find-debuginfo.c: remove dbgclient_enabled(), replace dbgclient_build_id_find with dbgclient_find_{executable,debuginfo}. Signed-off-by: Aaron Merey <amerey@redhat.com>
* dbgserver: rework packaging of client into dlopen()'d solibFrank Ch. Eigler2019-07-186-0/+2129
so libdw is back to its svelte dependency-free form