aboutsummaryrefslogtreecommitdiff
path: root/gdb/osf-share
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/osf-share')
-rw-r--r--gdb/osf-share/cma_attr.h9
-rw-r--r--gdb/osf-share/cma_deb_core.h38
-rw-r--r--gdb/osf-share/cma_debug_client.h12
-rw-r--r--gdb/osf-share/cma_handle.h15
-rw-r--r--gdb/osf-share/cma_mutex.h6
-rw-r--r--gdb/osf-share/cma_stack_int.h6
-rw-r--r--gdb/osf-share/cma_tcb_defs.h32
7 files changed, 76 insertions, 42 deletions
diff --git a/gdb/osf-share/cma_attr.h b/gdb/osf-share/cma_attr.h
index 389fd6f..1066227 100644
--- a/gdb/osf-share/cma_attr.h
+++ b/gdb/osf-share/cma_attr.h
@@ -40,7 +40,8 @@
/*
* FUNCTIONAL DESCRIPTION:
*
- * cma__int_attr_get_priority - Performs the work of cma_attr_get_priority
+ * cma__int_attr_get_priority - Performs the work of
+ * cma_attr_get_priority
*
* FORMAL PARAMETERS:
*
@@ -139,7 +140,8 @@
(_int_att_) = cma__validate_default_attr (_att_); \
cma__int_lock ((_int_att_)->mutex); \
(*(_setting_)) \
- = ((_int_att_)->inherit_sched ? cma_c_sched_inherit : cma_c_sched_use_default); \
+ = ((_int_att_)->inherit_sched \
+ ? cma_c_sched_inherit : cma_c_sched_use_default); \
cma__int_unlock ((_int_att_)->mutex); \
}
@@ -304,7 +306,8 @@ typedef struct CMA__T_CACHE {
typedef struct CMA__T_INT_ATTR {
cma__t_object header; /* Common header */
struct CMA__T_INT_ATTR *attributes; /* Point to controlling attr */
- struct CMA__T_INT_MUTEX *mutex; /* Serialize access to object */
+ struct CMA__T_INT_MUTEX *mutex; /* Serialize access to
+ object */
cma_t_priority priority; /* Priority of new thread */
cma_t_sched_policy policy; /* Sched policy of thread */
cma_t_boolean inherit_sched; /* Is scheduling inherited? */
diff --git a/gdb/osf-share/cma_deb_core.h b/gdb/osf-share/cma_deb_core.h
index f0a9c34..d6069d2 100644
--- a/gdb/osf-share/cma_deb_core.h
+++ b/gdb/osf-share/cma_deb_core.h
@@ -87,7 +87,8 @@ typedef struct CMA__T_DEBUG_STATE {
cma__t_int_mutex *mutex; /* Mutex for registering clients */
cma_t_integer client_count; /* Count of debug clients */
cma__t_deb_registry clients[cma__c_deb_max_clients+1];
- /* Array of current debug clients */
+ /* Array of current debug
+ clients */
} cma__t_debug_state;
@@ -122,30 +123,36 @@ extern cma__t_known_object cma__g_known_threads;
*/
/* Get information while in debugger context */
-extern void cma__deb_get
- (cma__t_int_tcb *,cma_t_debug_get,cma_t_address,cma_t_integer,cma_t_integer);
+extern void cma__deb_get (cma__t_int_tcb *,
+ cma_t_debug_get,
+ cma_t_address,
+ cma_t_integer,cma_t_integer);
/* Set information while in debugger context */
-extern void cma__deb_set (cma__t_int_tcb *,cma_t_debug_set,cma_t_address,cma_t_integer);
+extern void cma__deb_set (cma__t_int_tcb *, cma_t_debug_set,
+ cma_t_address, cma_t_integer);
extern void cma__init_debug (void);
extern void cma__reinit_debug (cma_t_integer);
-extern void cma__deb_anytcb_to_tcb (cma_t_tcb_header *,cma__t_int_tcb **);
+extern void cma__deb_anytcb_to_tcb (cma_t_tcb_header *, cma__t_int_tcb **);
-extern void cma__deb_fac_to_client (cma_t_integer,cma_t_key *);
+extern void cma__deb_fac_to_client (cma_t_integer, cma_t_key *);
-extern void cma__deb_get_client_info (cma_t_key,cma_t_address *,cma_t_boolean *);
+extern void cma__deb_get_client_info (cma_t_key, cma_t_address *,
+ cma_t_boolean *);
-extern void cma__deb_get_context (cma__t_int_tcb *,cma_t_key,cma_t_address *);
+extern void cma__deb_get_context (cma__t_int_tcb *, cma_t_key,cma_t_address *);
extern cma__t_int_tcb *cma__deb_get_self_tcb (void);
extern void cma__deb_get_time_slice (cma_t_interval *);
-extern cma__t_int_tcb *cma__deb_next_tcb
- (cma__t_int_tcb *,cma_t_integer *,cma_t_integer *,cma_t_boolean *);
+extern cma__t_int_tcb *cma__deb_next_tcb (cma__t_int_tcb *,
+ cma_t_integer *,
+ cma_t_integer *,
+ cma_t_boolean *);
extern cma_t_boolean cma__deb_set_alert (cma__t_int_tcb *);
@@ -155,10 +162,13 @@ extern void cma__deb_set_force_dispatch (cma_t_address );
extern void cma__deb_set_time_slice (cma_t_interval);
-extern void cma__deb_show_thread
- (cma__t_int_tcb *,cma_t_boolean,cma_t_boolean,cma___t_debug_ctx,cma__t_eol_routine,
- cma__t_eol_routine,cma__t_print_symbol);
+extern void cma__deb_show_thread (cma__t_int_tcb *, cma_t_boolean,
+ cma_t_boolean, cma___t_debug_ctx,
+ cma__t_eol_routine,
+ cma__t_eol_routine, cma__t_print_symbol);
extern void
-cma__deb_show_stats (cma__t_int_tcb *,cma_t_boolean,cma_t_boolean,cma__t_eol_routine,cma__t_eol_routine,cma__t_print_symbol);
+cma__deb_show_stats (cma__t_int_tcb *, cma_t_boolean,
+ cma_t_boolean, cma__t_eol_routine,
+ cma__t_eol_routine, cma__t_print_symbol);
#endif
diff --git a/gdb/osf-share/cma_debug_client.h b/gdb/osf-share/cma_debug_client.h
index adb0909..8a3d333 100644
--- a/gdb/osf-share/cma_debug_client.h
+++ b/gdb/osf-share/cma_debug_client.h
@@ -175,21 +175,25 @@ typedef enum CMA_T_DEBUG_SET {
/*
* Routine to register with the CMA debug dispatcher.
*/
-extern void cma_debug_register (cma_t_address,cma_t_key,cma_t_integer,cma_t_boolean);
+extern void cma_debug_register (cma_t_address,
+ cma_t_key,cma_t_integer, cma_t_boolean);
/*
* Routine to get get thread state needed by the CMA debug client.
*/
-extern void cma_debug_get (cma_t_thread *,cma_t_debug_get,cma_t_address,cma_t_integer);
+extern void cma_debug_get (cma_t_thread *,
+ cma_t_debug_get, cma_t_address,cma_t_integer);
/*
* Get thread context given an sp and a key
*/
-extern void cma_debug_get_sp_context (cma_t_address,cma_t_key,cma_t_address *);
+extern void cma_debug_get_sp_context (cma_t_address,
+ cma_t_key, cma_t_address *);
/*
* Routine to set thread state as needed by the CMA debug client.
*/
-extern void cma_debug_set (cma_t_thread *,cma_t_debug_set,cma_t_address,cma_t_integer);
+extern void cma_debug_set (cma_t_thread *,
+ cma_t_debug_set, cma_t_address,cma_t_integer);
#endif
diff --git a/gdb/osf-share/cma_handle.h b/gdb/osf-share/cma_handle.h
index e63de01..d1bd646 100644
--- a/gdb/osf-share/cma_handle.h
+++ b/gdb/osf-share/cma_handle.h
@@ -165,18 +165,21 @@ typedef struct CMA__T_INT_HANDLE {
extern void cma__clear_handle (cma_t_handle *);
-extern void cma__object_to_handle (cma__t_object *,cma_t_handle *);
+extern void cma__object_to_handle (cma__t_object *, cma_t_handle *);
extern cma__t_int_attr * cma__validate_default_attr (cma_t_handle *);
-extern cma_t_status cma__val_defattr_stat (cma_t_handle *,cma__t_int_attr **);
+extern cma_t_status cma__val_defattr_stat (cma_t_handle *, cma__t_int_attr **);
-extern cma__t_object * cma__validate_handle (cma_t_handle *,cma_t_natural );
+extern cma__t_object * cma__validate_handle (cma_t_handle *, cma_t_natural );
-extern cma_t_status cma__val_hand_stat (cma_t_handle *,cma_t_natural,cma__t_object **);
+extern cma_t_status cma__val_hand_stat (cma_t_handle *,
+ cma_t_natural, cma__t_object **);
-extern cma__t_object *cma__validate_handle_null (cma_t_handle *,cma_t_natural);
+extern cma__t_object *cma__validate_handle_null (cma_t_handle *,
+ cma_t_natural);
-extern cma_t_status cma__val_handnull_stat (cma_t_handle *,cma_t_natural,cma__t_object **);
+extern cma_t_status cma__val_handnull_stat (cma_t_handle *,
+ cma_t_natural, cma__t_object **);
#endif
diff --git a/gdb/osf-share/cma_mutex.h b/gdb/osf-share/cma_mutex.h
index c178630..77d5290 100644
--- a/gdb/osf-share/cma_mutex.h
+++ b/gdb/osf-share/cma_mutex.h
@@ -50,7 +50,8 @@ typedef struct CMA__T_INT_MUTEX {
struct CMA__T_INT_MUTEX *int_lock; /* Internal protection for mutex */
cma__t_atomic_bit event; /* Clear when unlock requires action */
cma__t_atomic_bit waiters; /* Clear when threads are waiting */
- cma__t_atomic_bit bitbucket; /* Fake bit to keep friendlies locked */
+ cma__t_atomic_bit bitbucket; /* Fake bit to keep friendlies
+ locked */
cma_t_mutex_kind mutex_kind; /* Kind of mutex */
cma__t_semaphore semaphore; /* Semaphore for low-level wait */
} cma__t_int_mutex;
@@ -144,7 +145,8 @@ typedef struct CMA__T_INT_MUTEX {
cma__assert_warn ( \
(__utcb__ == ((cma__t_int_mutex *)mutex)->owner), \
"attempt to release mutx owned by another thread"); \
- ((cma__t_int_mutex *)mutex)->owner = (cma__t_int_tcb *)cma_c_null_ptr; \
+ ((cma__t_int_mutex *) mutex)->owner \
+ = (cma__t_int_tcb *)cma_c_null_ptr; \
} \
cma__unset (((cma__t_int_mutex *)mutex)->unlock); \
if (!cma__test_and_set (&((cma__t_int_mutex *)mutex)->event)) { \
diff --git a/gdb/osf-share/cma_stack_int.h b/gdb/osf-share/cma_stack_int.h
index bf76f60..23297f5 100644
--- a/gdb/osf-share/cma_stack_int.h
+++ b/gdb/osf-share/cma_stack_int.h
@@ -35,7 +35,8 @@
*/
#define cma___c_first_free_chunk 0
-#define cma___c_min_count 2 /* Smallest number of chunks to leave */
+#define cma___c_min_count 2 /* Smallest number of chunks
+ to leave */
#define cma___c_end (-1) /* End of free list (flag) */
#define cma__c_yellow_size 0
@@ -111,7 +112,8 @@ typedef struct CMA___T_INT_HOLE {
#endif
typedef struct CMA__T_INT_STACK {
- cma__t_object header; /* Common header (sequence, type info */
+ cma__t_object header; /* Common header (sequence,
+ type info */
cma__t_int_attr *attributes; /* Backpointer to attr obj */
cma___t_cluster *cluster; /* Stack's cluster */
cma_t_address stack_base; /* base address of stack */
diff --git a/gdb/osf-share/cma_tcb_defs.h b/gdb/osf-share/cma_tcb_defs.h
index 6622050..077f642 100644
--- a/gdb/osf-share/cma_tcb_defs.h
+++ b/gdb/osf-share/cma_tcb_defs.h
@@ -100,7 +100,8 @@ typedef struct CMA__T_TCB_TIME {
typedef enum CMA__T_DEBEVT {
cma__c_debevt_activating = 1, /* First transition to running */
cma__c_debevt_running = 2, /* Any transition to running */
- cma__c_debevt_preempting = 3, /* Preemted (replaced) another thread */
+ cma__c_debevt_preempting = 3, /* Preemted (replaced) another
+ thread */
cma__c_debevt_blocking = 4, /* Any transition to blocked */
cma__c_debevt_terminating = 5, /* Final state transition */
cma__c_debevt_term_alert = 6, /* Terminated due to alert/cancel */
@@ -135,7 +136,8 @@ typedef enum CMA__T_SUBSTATE {
* Per-thread state for the debugger
*/
typedef struct CMA__T_TCB_DEBUG {
- cma_t_boolean on_hold; /* Thread was put on hold by debugger */
+ cma_t_boolean on_hold; /* Thread was put on hold by
+ debugger */
cma_t_boolean activated; /* Activation event was reported */
cma_t_boolean did_preempt; /* Thread preempted prior one */
cma_t_address start_pc; /* Start routine address */
@@ -151,7 +153,8 @@ typedef struct CMA__T_TCB_DEBUG {
} cma__t_tcb_debug;
typedef struct CMA__T_TCB_SCHED {
- cma_t_integer adj_time; /* Abs. time in ticks of last prio adj */
+ cma_t_integer adj_time; /* Abs. time in ticks of last
+ prio adj */
cma_t_integer tot_time; /* Weighted ave in ticks (scaled) */
cma_t_integer time_stamp; /* Abs. time in ticks of last update */
cma_t_integer cpu_time; /* Weighted average in ticks */
@@ -160,7 +163,8 @@ typedef struct CMA__T_TCB_SCHED {
cma_t_priority priority; /* Thread priority */
cma_t_sched_policy policy; /* Scheduling policy of thread */
cma_t_boolean rtb; /* "Run 'Till Block" scheduling */
- cma_t_boolean spp; /* "Strict Priority Preemption" sched */
+ cma_t_boolean spp; /* "Strict Priority
+ Preemption" sched */
cma_t_boolean fixed_prio; /* Fixed priority */
cma__t_sched_class class; /* Scheduling class */
struct CMA__T_VP *processor; /* Current processor (if running) */
@@ -194,9 +198,10 @@ typedef enum CMA__T_THKIND {
#define cma__c_thkind__dim (cma__c_thkind__last + 1)
typedef enum CMA__T_SYSCALL_STATE {
- cma__c_syscall_ok = 1, /* syscall was not interrupted */
- cma__c_syscall_intintrpt = 1, /* syscall was interrupted by VTALRM */
- cma__c_syscall_extintrpt = 2 /* syscall was interrupted by external signal */
+ cma__c_syscall_ok = 1, /* syscall was not interrupted */
+ cma__c_syscall_intintrpt = 1, /* syscall was interrupted by VTALRM */
+ cma__c_syscall_extintrpt = 2 /* syscall was interrupted by
+ external signal */
} cma__t_syscall_state;
@@ -210,7 +215,8 @@ typedef struct CMA__T_INT_TCB {
*/
cma__t_object header; /* Common object header */
cma__t_tcb_pad pad1; /* Pad required to align prolog */
- cma_t_tcb_prolog prolog; /* Standard prolog for tasks, threads */
+ cma_t_tcb_prolog prolog; /* Standard prolog for tasks,
+ threads */
/*
* Floating part of TCB (fields here on are free to be moved and resized).
@@ -224,7 +230,8 @@ typedef struct CMA__T_INT_TCB {
struct CMA__T_INT_CV
*term_cv; /* CV for join */
struct CMA__T_INT_MUTEX
- *tswait_mutex; /* Mutex for thread-synchronous waits */
+ *tswait_mutex; /* Mutex for
+ thread-synchronous waits */
struct CMA__T_INT_CV
*tswait_cv; /* CV for thread-synchronous waits */
cma_t_start_routine start_code; /* Address of start routine */
@@ -246,10 +253,13 @@ typedef struct CMA__T_INT_TCB {
# endif
struct sigaction sigaction_data[NSIG];
#endif
- cma_t_natural syscall_state; /* set if one of the cma wrapped syscalls was interrupted. */
+ cma_t_natural syscall_state; /* set if one of the cma
+ wrapped syscalls was
+ interrupted. */
cma_t_boolean detached; /* Set if already detached */
cma_t_boolean terminated; /* Set if terminated */
- cma_t_integer joiners; /* Count of joiners, for zombie frees */
+ cma_t_integer joiners; /* Count of joiners, for
+ zombie frees */
cma__t_int_alert alert; /* Current alert state info */
struct CMA__T_INT_CV
*wait_cv; /* CV thread is currently waiting on */