10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef _LIBPROC_IMPL_H_
26 #define _LIBPROC_IMPL_H_
27
28 #include <unistd.h>
29 #include <limits.h>
30 #include "libproc.h"
31 #include "symtab.h"
32
33 // data structures in this file mimic those of Solaris 8.0 - libproc's Pcontrol.h
34
35 #define BUF_SIZE (PATH_MAX + NAME_MAX + 1)
36
37 // list of shared objects
38 typedef struct lib_info {
39 char name[BUF_SIZE];
40 uintptr_t base;
41 struct symtab* symtab;
42 int fd; // file descriptor for lib
43 struct lib_info* next;
44 } lib_info;
45
46 // list of threads
47 typedef struct thread_info {
48 lwpid_t lwp_id;
49 pthread_t pthread_id; // not used cores, always -1
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef _LIBPROC_IMPL_H_
26 #define _LIBPROC_IMPL_H_
27
28 #include <unistd.h>
29 #include <limits.h>
30
31 struct ps_prochandle;
32
33 #include "libproc.h"
34 #include "symtab.h"
35
36 // data structures in this file mimic those of Solaris 8.0 - libproc's Pcontrol.h
37
38 #define BUF_SIZE (PATH_MAX + NAME_MAX + 1)
39
40 // list of shared objects
41 typedef struct lib_info {
42 char name[BUF_SIZE];
43 uintptr_t base;
44 struct symtab* symtab;
45 int fd; // file descriptor for lib
46 struct lib_info* next;
47 } lib_info;
48
49 // list of threads
50 typedef struct thread_info {
51 lwpid_t lwp_id;
52 pthread_t pthread_id; // not used cores, always -1
|