summaryrefslogtreecommitdiff
path: root/dbgserver/dbgserver-client.h
blob: 29b97ee1b7d2dce30ff14c10c1a1876d05f8e484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifdef __cplusplus
extern "C" {
#endif

/* Query the urls contained in $DBGSERVER_URLS for a file with
   the specified type and build id.  If build_id_len == 0, the
   build_id is supplied as a lowercase hexadecimal string; otherwise
   it is a binary blob of given legnth.

   If successful, return a file descriptor to the target, otherwise
   return a posix error code. */
int dbgserver_find_debuginfo (const unsigned char *build_id_bytes,
                             int build_id_len,
                             char **path);

int dbgserver_find_executable (const unsigned char *build_id_bytes,
                               int build_id_len,
                               char **path);

int dbgserver_find_source (const unsigned char *build_id_bytes,
                           int build_id_len,
                           const char *filename,
                           char **path);

#ifdef __cplusplus
}
#endif