Cleanup for WARNS 3.

This commit is contained in:
Marcel Moolenaar 2008-07-31 16:26:58 +00:00
parent f2512ba12a
commit 820c1c554f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181059
9 changed files with 23 additions and 16 deletions

View File

@ -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

View File

@ -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)
{

View File

@ -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"

View File

@ -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"

View File

@ -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)
{

View File

@ -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"

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;