Date: Sun, 17 Mar 2002 04:00:06 -0800 (PST) From: Yoshikazu GOTO <goto@snowy.to> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/36002: compile is stopped without DDB define Message-ID: <200203171200.g2HC06q18059@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 36002
>Category: kern
>Synopsis: compile is stopped without DDB define
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 17 04:10:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Yoshikazu GOTO
>Release: -current
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
*** subr_witness.c.orig Sun Mar 17 20:59:15 2002
--- subr_witness.c Sun Mar 17 20:37:47 2002
***************
*** 126,133 ****
--- 126,135 ----
static int isitmydescendant(struct witness *parent, struct witness *child);
static int dup_ok(struct witness *);
static int blessed(struct witness *, struct witness *);
+ #if defined(DDB)
static void witness_display_list(void(*prnt)(const char *fmt, ...),
struct witness_list *list);
+ #endif
static void witness_displaydescendants(void(*)(const char *fmt, ...),
struct witness *);
static void witness_leveldescendents(struct witness *parent, int level);
***************
*** 138,144 ****
--- 140,148 ----
static void witness_child_free(struct witness_child_list_entry *wcl);
static struct lock_list_entry *witness_lock_list_get(void);
static void witness_lock_list_free(struct lock_list_entry *lle);
+ #if defined(DDB)
static void witness_display(void(*)(const char *fmt, ...));
+ #endif
static struct lock_instance *find_instance(struct lock_list_entry *lock_list,
struct lock_object *lock);
***************
*** 402,407 ****
--- 406,412 ----
mtx_unlock(&all_mtx);
}
+ #if defined(DDB)
static void
witness_display_list(void(*prnt)(const char *fmt, ...),
struct witness_list *list)
***************
*** 427,433 ****
witness_displaydescendants(prnt, w);
}
}
!
static void
witness_display(void(*prnt)(const char *fmt, ...))
{
--- 432,440 ----
witness_displaydescendants(prnt, w);
}
}
! #endif
!
! #if defined(DDB)
static void
witness_display(void(*prnt)(const char *fmt, ...))
{
***************
*** 459,464 ****
--- 466,472 ----
prnt("%s\n", w->w_name);
}
}
+ #endif
void
witness_lock(struct lock_object *lock, int flags, const char *file, int line)
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203171200.g2HC06q18059>
