From 145fc8c08b50a4582c46d601afd8fa89c71dabaf Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 4 Nov 2002 22:19:11 +0000 Subject: 2002-11-04 Joel Sherrill * src/_servtgt.c: Removed warning by adding support for ITRON tasks and rolling multiple loops into 1. * src/m68k/rdbg_f.c: Removed warning. --- c/src/librdbg/ChangeLog | 6 ++++++ c/src/librdbg/src/_servtgt.c | 39 ++++++++++++++------------------------- c/src/librdbg/src/m68k/rdbg_f.c | 9 +++++++-- 3 files changed, 27 insertions(+), 27 deletions(-) (limited to 'c/src/librdbg') diff --git a/c/src/librdbg/ChangeLog b/c/src/librdbg/ChangeLog index 77eda7a649..7eaf86c905 100644 --- a/c/src/librdbg/ChangeLog +++ b/c/src/librdbg/ChangeLog @@ -1,3 +1,9 @@ +2002-11-04 Joel Sherrill + + * src/_servtgt.c: Removed warning by adding support for ITRON + tasks and rolling multiple loops into 1. + * src/m68k/rdbg_f.c: Removed warning. + 2002-10-31 Joel Sherrill * src/i386/any/remdeb_xdr.c: Removed warnings. diff --git a/c/src/librdbg/src/_servtgt.c b/c/src/librdbg/src/_servtgt.c index 0ec9f3c1bf..07e380674c 100644 --- a/c/src/librdbg/src/_servtgt.c +++ b/c/src/librdbg/src/_servtgt.c @@ -285,35 +285,24 @@ TgtThreadList (PID_LIST * plst, /* Process entry */ unsigned size) { /* Output buffer size */ int curr = 0; - Objects_Id id; + int api; + Objects_Id id, min_id, max_id; unsigned index; - id = _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id; - - while (id < _Objects_Information_table[OBJECTS_CLASSIC_API][1]->maximum_id) { - index = id - _Objects_Information_table[OBJECTS_CLASSIC_API][1]->minimum_id; - if (_Objects_Information_table[OBJECTS_CLASSIC_API][1]-> - local_table[1 + index] != NULL) { - threads[curr] = (unsigned) id; - curr++; + for ( api=OBJECTS_CLASSIC_API ; api <= OBJECTS_ITRON_API ; api++ ) { + min_id = _Objects_Information_table[api][1]->minimum_id; + max_id = _Objects_Information_table[api][1]->maximum_id; + id = min_id; + + while (id < max_id) { + index = id - min_id; + if (_Objects_Information_table[api][1]->local_table[1 + index] != NULL) { + threads[curr] = (unsigned) id; + curr++; + } + id++; } - id++; } - id = _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id; - - while (id < _Objects_Information_table[OBJECTS_POSIX_API][1]->maximum_id) { - index = - id - _Objects_Information_table[OBJECTS_POSIX_API][1]->minimum_id; - if (_Objects_Information_table[OBJECTS_POSIX_API][1]-> - local_table[1 + index] != NULL) { - threads[curr] = (unsigned) id; - curr++; - } - id++; - } - -#warning "ignores ITRON tasks and could be a single loop" - return curr; } diff --git a/c/src/librdbg/src/m68k/rdbg_f.c b/c/src/librdbg/src/m68k/rdbg_f.c index bd591b3375..a7b58a26c1 100644 --- a/c/src/librdbg/src/m68k/rdbg_f.c +++ b/c/src/librdbg/src/m68k/rdbg_f.c @@ -18,8 +18,13 @@ #include #include - void -CtxToRegs (const CPU_Exception_frame * ctx, xdr_regs * regs) +m68k_isr_entry set_vector( + rtems_isr_entry handler, + rtems_vector_number vector, + int type +); + +void CtxToRegs (const CPU_Exception_frame * ctx, xdr_regs * regs) { regs->r_dreg[0] = ctx->d0; regs->r_dreg[1] = ctx->d1; -- cgit v1.2.3