Cleanup for WARNS 3.
This commit is contained in:
parent
10a841cbfb
commit
26ada4b390
@ -9,7 +9,7 @@ SRCS+= libpthread_md.c
|
||||
SRCS+= libpthread_db.c
|
||||
SRCS+= libthr_db.c
|
||||
INCS= thread_db.h
|
||||
WARNS?= 2
|
||||
WARNS?= 3
|
||||
|
||||
CFLAGS+=-I. -I${.CURDIR}
|
||||
SYM_MAPS+=${.CURDIR}/Symbol.map
|
||||
|
@ -30,8 +30,11 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/procfs.h>
|
||||
#include <string.h>
|
||||
#include <thread_db.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
||||
void
|
||||
pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc)
|
||||
{
|
||||
|
@ -27,9 +27,8 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <proc_service.h>
|
||||
#include <string.h>
|
||||
#include <thread_db.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
@ -27,11 +27,10 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <proc_service.h>
|
||||
#include <thread_db.h>
|
||||
#include <machine/npx.h>
|
||||
#include <string.h>
|
||||
#include <thread_db.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
||||
|
@ -28,8 +28,11 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/procfs.h>
|
||||
#include <thread_db.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
||||
void
|
||||
pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc)
|
||||
{
|
||||
|
@ -27,9 +27,8 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <proc_service.h>
|
||||
#include <string.h>
|
||||
#include <thread_db.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
@ -28,8 +28,11 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/procfs.h>
|
||||
#include <thread_db.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#include "libpthread_db.h"
|
||||
|
||||
void
|
||||
pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc)
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ ps2td(int c)
|
||||
}
|
||||
|
||||
static long
|
||||
pt_map_thread(const td_thragent_t *const_ta, psaddr_t pt, int type)
|
||||
pt_map_thread(const td_thragent_t *const_ta, psaddr_t pt, enum pt_type type)
|
||||
{
|
||||
td_thragent_t *ta = __DECONST(td_thragent_t *, const_ta);
|
||||
struct pt_map *new;
|
||||
@ -1073,7 +1073,7 @@ pt_validate(const td_thrhandle_t *th)
|
||||
return (TD_OK);
|
||||
}
|
||||
|
||||
td_err_e
|
||||
static td_err_e
|
||||
pt_thr_tls_get_addr(const td_thrhandle_t *th, psaddr_t _linkmap, size_t offset,
|
||||
psaddr_t *address)
|
||||
{
|
||||
|
@ -34,13 +34,14 @@
|
||||
|
||||
#include "thread_db_int.h"
|
||||
|
||||
struct pt_map {
|
||||
enum {
|
||||
PT_NONE,
|
||||
PT_USER,
|
||||
PT_LWP
|
||||
} type;
|
||||
enum pt_type {
|
||||
PT_NONE,
|
||||
PT_USER,
|
||||
PT_LWP
|
||||
};
|
||||
|
||||
struct pt_map {
|
||||
enum pt_type type;
|
||||
union {
|
||||
lwpid_t lwp;
|
||||
psaddr_t thr;
|
||||
|
Loading…
Reference in New Issue
Block a user