summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:53:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 21:53:28 +0000
commit72bbcf17e37ba0c6a1daacdf91e2f5a905496426 (patch)
treef255525562cbd96dba63ec915accb2f04d9743d9
parent7353e1506f50c7b98c670ac69ff9030cb2287d95 (diff)
downloadrtems-72bbcf17e37ba0c6a1daacdf91e2f5a905496426.tar.bz2
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* mips-stub.c: Removed warnings.
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog4
-rw-r--r--c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c11
2 files changed, 10 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog b/c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog
index ed0634b60f..b870b2a58a 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-01 Joel Sherrill <joel@OARcorp.com>
+
+ * mips-stub.c: Removed warnings.
+
2002-10-02 Joel Sherrill <joel@OARcorp.com>
* rtems-stub-glue.c: Removed should only be common copy.
diff --git a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
index 9018ed36e9..d0ef76228b 100644
--- a/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
+++ b/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
@@ -1269,10 +1269,10 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
case 'Z': /* Add breakpoint */
{
int ret, type, len;
- unsigned char *address;
+ unsigned *address;
struct z0break *z0;
- ret = parse_zbreak(inBuffer, &type, &address, &len);
+ ret = parse_zbreak(inBuffer, &type, (unsigned char **)&address, &len);
if (!ret) {
strcpy(outBuffer, "E01");
break;
@@ -1328,7 +1328,7 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
/* Fill it */
z0->address = address;
- if( z0->address == (unsigned char *) frame->epc )
+ if( z0->address == (unsigned *) frame->epc )
{
/* re-asserting the breakpoint that put us in here, so
we'll add the breakpoint but leave the code in place
@@ -1396,10 +1396,11 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
else
{
int ret, type, len;
- unsigned char *address;
+ unsigned *address;
struct z0break *z0;
- ret = parse_zbreak(inBuffer, &type, &address, &len);
+
+ ret = parse_zbreak(inBuffer, &type, (unsigned char **)&address, &len);
if (!ret) {
strcpy(outBuffer, "E01");
break;