2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* monitor/monitor.h: Remove STREQ, STNEQ (pollute namespace),
	RTEMS_MONITOR_PROMPT (pollutes namespace, useless).
	* monitor/mon-command.c: Add RTEMS_MONITOR_PROMPT.
	* monitor/mon-monitor.c: Apply private version of STREQ.
This commit is contained in:
Ralf Corsepius
2003-09-19 12:48:15 +00:00
parent e7f38e8237
commit 330dbdb055
4 changed files with 13 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/monitor.h: Remove STREQ, STNEQ (pollute namespace),
RTEMS_MONITOR_PROMPT (pollutes namespace, useless).
* monitor/mon-command.c: Add RTEMS_MONITOR_PROMPT.
* monitor/mon-monitor.c: Apply private version of STREQ.
2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/symbols.h: Convert to private header.

View File

@@ -18,6 +18,10 @@
#include <string.h>
#include <stdlib.h>
#ifndef MONITOR_PROMPT
#define MONITOR_PROMPT "rtems" /* will have '> ' appended */
#endif
/*
* 2001-01-30 KJO (vac4050@cae597.rsc.raytheon.com):
* Fixed rtems_monitor_command_lookup() to accept partial

View File

@@ -36,6 +36,8 @@
#include <rtems/monitor.h>
#define STREQ(a,b) (strcmp(a,b) == 0)
/* set by trap handler */
extern rtems_tcb *debugger_interrupted_task;
extern rtems_context *debugger_interrupted_task_context;

View File

@@ -444,16 +444,8 @@ void rtems_monitor_symbol_cmd(int, char **, unsigned32, boolean);
extern rtems_symbol_table_t *rtems_monitor_symbols;
#ifndef MONITOR_PROMPT
#define MONITOR_PROMPT "rtems" /* will have '> ' appended */
#endif
#define MONITOR_WAKEUP_EVENT RTEMS_EVENT_0
#define STREQ(a,b) (strcmp(a,b) == 0)
#define STRNEQ(a,b,n) (strncmp(a,b,n) == 0)
#ifdef __cplusplus
}
#endif