diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-08 16:32:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-08 16:32:07 +0000 |
commit | 2f89140dba7214f26e0104de2478ac8b723f3cf9 (patch) | |
tree | 9a35fc1f5123f11a8ebe0d48d8fcb90f56cdc87f /c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h | |
parent | 2002-03-05 Greg Menke <gregory.menke@gsfc.nasa.gov> (diff) | |
download | rtems-2f89140dba7214f26e0104de2478ac8b723f3cf9.tar.bz2 |
2001-03-05 Greg Menke <gregory.menke@gsfc.nasa.gov>
* mips-stub.c: Debugged & tweaked the gdb command processing,
zbreak stuff, breakpoint and step code. Implemented 'T' command
support and debugged remote gdb support w/ the Mongoose bsp.
Added the memory segment support.
* memlimits.h: Disabled all contents in favor of memory sement
support. This file could probably go away.
* rtems-stub-glue.c (rtems_gdb_index_to_stub_id()): New routine.
rtems_gdb_stub_get_register_from_context(): Implemented MIPS version.
rtems_gdb_stub_get_offsets(): Implemented MIPS version.
* README: Updated.
Diffstat (limited to 'c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h')
-rw-r--r-- | c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h b/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h index 05f82123e8..e9fd03c5f2 100644 --- a/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h +++ b/c/src/lib/libbsp/mips/shared/gdbstub/memlimits.h @@ -12,8 +12,8 @@ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef _LIMITS_H_ -#define _LIMITS_H_ +#ifndef _MEMLIMITS_H_ +#define _MEMLIMITS_H_ /* * The macros in this file are specific to a given implementation. @@ -45,6 +45,7 @@ * to have different readability and/or writeability attributes. */ +/* #define K0_LIMIT_FOR_READ (K0BASE+0x18000000) #define K1_LIMIT_FOR_READ (K1BASE+K1SIZE) @@ -67,4 +68,21 @@ && (((K0BASE <= (int)ptr) && ((int)ptr < K0_LIMIT_FOR_STEP)) \ || ((K1BASE <= (int)ptr) && ((int)ptr < K1_LIMIT_FOR_STEP)))) -#endif /* _LIMITS_H_ */ +struct memseg +{ + unsigned begin, end, opts; +}; + +#define MEMOPT_READABLE 1 +#define MEMOPT_WRITEABLE 2 + +#define NUM_MEMSEGS 10 + + +int add_memsegment(unsigned,unsigned,int); +int is_readable(unsigned,unsigned); +int is_writeable(unsigned,unsigned); +int is_steppable(unsigned); +*/ + +#endif /* _MEMLIMITS_H_ */ |