Cleaned up as part of adding the Monitor test.

This commit is contained in:
Joel Sherrill
1997-09-21 16:58:57 +00:00
parent f37e656d55
commit 5beb562450
53 changed files with 65 additions and 83 deletions

View File

@@ -54,4 +54,4 @@ ${LIB}: ${SRCS} ${OBJS}
all: preinstall ${ARCH} $(SRCS) $(LIB)
preinstall: $(INSTALLED_H_FILES)
$(INSTALL) -m 444 ${INSTALLED_H_FILES} ${PROJECT_RELEASE}/include
$(INSTALL) -m 444 ${INSTALLED_H_FILES} ${PROJECT_RELEASE}/include/rtems

View File

@@ -8,7 +8,7 @@
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <string.h>

View File

@@ -9,7 +9,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -22,7 +22,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -22,7 +22,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -5,7 +5,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -6,7 +6,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -6,12 +6,10 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <monitor.h>
/*
* "next" routine for all objects that are RTEMS manager objects
*/

View File

@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "monitor.h"
#include <rtems/monitor.h>
/* set by trap handler */
extern rtems_tcb *debugger_interrupted_task;

View File

@@ -9,7 +9,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -17,14 +17,12 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */
#include <string.h> /* memcpy() */
#include <monitor.h>
#define NUMELEMS(arr) (sizeof(arr) / sizeof(arr[0]))
/*

View File

@@ -8,7 +8,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <rtems/assoc.h>

View File

@@ -3,7 +3,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -12,7 +12,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "monitor.h"
#include <rtems/monitor.h>
/*
* Various id's for the server

View File

@@ -17,8 +17,8 @@
#include <stdlib.h>
#include <string.h>
#include "monitor.h"
#include "symbols.h"
#include <rtems/monitor.h>
#include <rtems/symbols.h>
rtems_symbol_table_t *

View File

@@ -5,7 +5,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <string.h> /* memcpy() */

View File

@@ -12,7 +12,7 @@
#ifndef __MONITOR_H
#define __MONITOR_H
#include "symbols.h"
#include <rtems/symbols.h>
#include <rtems/error.h> /* rtems_error() */
#ifdef __cplusplus

View File

@@ -31,12 +31,10 @@ typedef struct rtems_symbol_string_block_s {
typedef struct {
rtems_unsigned32 sorted; /* are symbols sorted right now? */
rtems_unsigned32 growth_factor; /* % to grow by when needed */
rtems_unsigned32 next; /* next symbol slot to use when adding */
rtems_unsigned32 size; /* max # of symbols */
rtems_unsigned32 sorted; /* are symbols sorted right now? */
rtems_unsigned32 growth_factor; /* % to grow by when needed */
rtems_unsigned32 next; /* next symbol slot to use when adding */
rtems_unsigned32 size; /* max # of symbols */
/*
* Symbol list -- sorted by address (when we do a lookup)

View File

@@ -54,4 +54,4 @@ ${LIB}: ${SRCS} ${OBJS}
all: preinstall ${ARCH} $(SRCS) $(LIB)
preinstall: $(INSTALLED_H_FILES)
$(INSTALL) -m 444 ${INSTALLED_H_FILES} ${PROJECT_RELEASE}/include
$(INSTALL) -m 444 ${INSTALLED_H_FILES} ${PROJECT_RELEASE}/include/rtems

View File

@@ -8,7 +8,7 @@
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <string.h>

View File

@@ -9,7 +9,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -22,7 +22,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -22,7 +22,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -5,7 +5,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -6,7 +6,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -6,12 +6,10 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <monitor.h>
/*
* "next" routine for all objects that are RTEMS manager objects
*/

View File

@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "monitor.h"
#include <rtems/monitor.h>
/* set by trap handler */
extern rtems_tcb *debugger_interrupted_task;

View File

@@ -9,7 +9,7 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */

View File

@@ -17,14 +17,12 @@
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <stdlib.h> /* strtoul() */
#include <string.h> /* memcpy() */
#include <monitor.h>
#define NUMELEMS(arr) (sizeof(arr) / sizeof(arr[0]))
/*

View File

@@ -8,7 +8,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <rtems/assoc.h>

View File

@@ -3,7 +3,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>

View File

@@ -12,7 +12,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "monitor.h"
#include <rtems/monitor.h>
/*
* Various id's for the server

View File

@@ -17,8 +17,8 @@
#include <stdlib.h>
#include <string.h>
#include "monitor.h"
#include "symbols.h"
#include <rtems/monitor.h>
#include <rtems/symbols.h>
rtems_symbol_table_t *

View File

@@ -5,7 +5,7 @@
*/
#include <rtems.h>
#include "monitor.h"
#include <rtems/monitor.h>
#include <stdio.h>
#include <string.h> /* memcpy() */

View File

@@ -12,7 +12,7 @@
#ifndef __MONITOR_H
#define __MONITOR_H
#include "symbols.h"
#include <rtems/symbols.h>
#include <rtems/error.h> /* rtems_error() */
#ifdef __cplusplus

View File

@@ -31,12 +31,10 @@ typedef struct rtems_symbol_string_block_s {
typedef struct {
rtems_unsigned32 sorted; /* are symbols sorted right now? */
rtems_unsigned32 growth_factor; /* % to grow by when needed */
rtems_unsigned32 next; /* next symbol slot to use when adding */
rtems_unsigned32 size; /* max # of symbols */
rtems_unsigned32 sorted; /* are symbols sorted right now? */
rtems_unsigned32 growth_factor; /* % to grow by when needed */
rtems_unsigned32 next; /* next symbol slot to use when adding */
rtems_unsigned32 size; /* max # of symbols */
/*
* Symbol list -- sorted by address (when we do a lookup)