From e4f5412df15caa046a7decf6313f379af4e612dc Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 27 May 2021 14:12:37 +0200 Subject: [PATCH] crash-stack: Drop dead code Change-Id: Ib463525ae36cd1db3910748e3246e327dc13533f --- src/crash-stack/proc.c | 7 ------- src/crash-stack/proc.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/crash-stack/proc.c b/src/crash-stack/proc.c index 858336e..9174960 100644 --- a/src/crash-stack/proc.c +++ b/src/crash-stack/proc.c @@ -245,13 +245,6 @@ create_maps_end: return map; } -int print_proc_maps(int pid) -{ - char cmd[32]; - snprintf(cmd, sizeof(cmd), "cat /proc/%d/maps 1>&2", pid); - return system(cmd); -} - char *get_thread_states(const int *tids, int n) { int i; diff --git a/src/crash-stack/proc.h b/src/crash-stack/proc.h index 69d6e92..48cc42c 100644 --- a/src/crash-stack/proc.h +++ b/src/crash-stack/proc.h @@ -44,12 +44,6 @@ int proc_state(int pid); struct mem_map *create_maps(int pid); /* - * simple routine to print process maps for - * debugging or advanced error reporting - */ -int print_proc_maps(int pid); - -/* * returns a pointer to dynamically allocated array of characters representing * thread states as found in /proc//status */ -- 2.7.4