forked from Imagelibrary/rtems
2006-09-14 Joel Sherrill <joel@OARcorp.com>
* shared/gdbstub/mips-stub.c: Removed warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2006-09-14 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* shared/gdbstub/mips-stub.c: Removed warnings.
|
||||||
|
|
||||||
2006-03-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2006-03-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: AC_CONFIG_SRCDIR(csb350).
|
* configure.ac: AC_CONFIG_SRCDIR(csb350).
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ struct z0break
|
|||||||
** written. Making it a char * as on the i386 will cause
|
** written. Making it a char * as on the i386 will cause
|
||||||
** the zbreaks to mess up the breakpoint instructions
|
** the zbreaks to mess up the breakpoint instructions
|
||||||
*/
|
*/
|
||||||
unsigned *address;
|
unsigned char *address;
|
||||||
unsigned instr;
|
unsigned instr;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -502,7 +502,7 @@ hex2mem (char *buf, void *_addr, int length)
|
|||||||
memory. */
|
memory. */
|
||||||
static unsigned char *
|
static unsigned char *
|
||||||
bin2mem (
|
bin2mem (
|
||||||
unsigned char *buf,
|
char *buf,
|
||||||
unsigned char *mem,
|
unsigned char *mem,
|
||||||
int count
|
int count
|
||||||
)
|
)
|
||||||
@@ -1204,14 +1204,15 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
|
|||||||
/* Save current thread registers if necessary */
|
/* Save current thread registers if necessary */
|
||||||
if (current_thread != thread) {
|
if (current_thread != thread) {
|
||||||
ret = rtems_gdb_stub_set_thread_regs(
|
ret = rtems_gdb_stub_set_thread_regs(
|
||||||
current_thread, (unsigned int *) ¤t_thread_registers);
|
current_thread,
|
||||||
|
(unsigned int *) (void *)¤t_thread_registers);
|
||||||
ASSERT(ret);
|
ASSERT(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read new registers if necessary */
|
/* Read new registers if necessary */
|
||||||
if (tmp != thread) {
|
if (tmp != thread) {
|
||||||
ret = rtems_gdb_stub_get_thread_regs(
|
ret = rtems_gdb_stub_get_thread_regs(
|
||||||
tmp, (unsigned int *) ¤t_thread_registers);
|
tmp, (unsigned int *) (void *)¤t_thread_registers);
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
/* Thread does not exist */
|
/* Thread does not exist */
|
||||||
@@ -1229,10 +1230,10 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
|
|||||||
case 'Z': /* Add breakpoint */
|
case 'Z': /* Add breakpoint */
|
||||||
{
|
{
|
||||||
int ret, type, len;
|
int ret, type, len;
|
||||||
unsigned *address;
|
unsigned char *address;
|
||||||
struct z0break *z0;
|
struct z0break *z0;
|
||||||
|
|
||||||
ret = parse_zbreak(inBuffer, &type, (unsigned char **)&address, &len);
|
ret = parse_zbreak(inBuffer, &type, &address, &len);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
strcpy(outBuffer, "E01");
|
strcpy(outBuffer, "E01");
|
||||||
break;
|
break;
|
||||||
@@ -1287,7 +1288,7 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
|
|||||||
/* Fill it */
|
/* Fill it */
|
||||||
z0->address = address;
|
z0->address = address;
|
||||||
|
|
||||||
if( z0->address == (unsigned *) frame->epc )
|
if( z0->address == (unsigned char *) frame->epc )
|
||||||
{
|
{
|
||||||
/* re-asserting the breakpoint that put us in here, so
|
/* re-asserting the breakpoint that put us in here, so
|
||||||
we'll add the breakpoint but leave the code in place
|
we'll add the breakpoint but leave the code in place
|
||||||
@@ -1353,10 +1354,10 @@ void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int ret, type, len;
|
int ret, type, len;
|
||||||
unsigned *address;
|
unsigned char *address;
|
||||||
struct z0break *z0;
|
struct z0break *z0;
|
||||||
|
|
||||||
ret = parse_zbreak(inBuffer, &type, (unsigned char **)&address, &len);
|
ret = parse_zbreak(inBuffer, &type, &address, &len);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
strcpy(outBuffer, "E01");
|
strcpy(outBuffer, "E01");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user