am 1bc6169f: Merge "Remove dead code that looked like part of debuggerd."
* commit '1bc6169f80fb02957695351ce8b4f49d0c019382': Remove dead code that looked like part of debuggerd.
This commit is contained in:
commit
2e9dcd21d3
|
@ -23,19 +23,6 @@ void crash1(void);
|
|||
void crashnostack(void);
|
||||
static int do_action(const char* arg);
|
||||
|
||||
static void debuggerd_connect()
|
||||
{
|
||||
char tmp[1];
|
||||
int s;
|
||||
sprintf(tmp, "%d", gettid());
|
||||
s = socket_local_client("android:debuggerd",
|
||||
ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM);
|
||||
if(s >= 0) {
|
||||
read(s, tmp, 1);
|
||||
close(s);
|
||||
}
|
||||
}
|
||||
|
||||
static void maybeabort() {
|
||||
if(time(0) != 42) {
|
||||
abort();
|
||||
|
|
|
@ -28,13 +28,6 @@ extern "C" {
|
|||
*/
|
||||
extern void *load_file(const char *fn, unsigned *sz);
|
||||
|
||||
/* Connects your process to the system debugger daemon
|
||||
* so that on a crash it may be logged or interactively
|
||||
* debugged (depending on system settings).
|
||||
*/
|
||||
extern void debuggerd_connect(void);
|
||||
|
||||
|
||||
/* This is the range of UIDs (and GIDs) that are reserved
|
||||
* for assigning to applications.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue