1 /* |
1 /* |
2 * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
103 }; |
103 }; |
104 |
104 |
105 int pathmap_open(const char* name); |
105 int pathmap_open(const char* name); |
106 |
106 |
107 void print_debug(const char* format,...); |
107 void print_debug(const char* format,...); |
|
108 void print_error(const char* format,...); |
108 bool is_debug(); |
109 bool is_debug(); |
109 |
110 |
110 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); |
111 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); |
111 |
112 |
112 // reads thread info using libthread_db and calls above callback for each thread |
113 // reads thread info using libthread_db and calls above callback for each thread |