summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/shared/gdbstub
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m68k/shared/gdbstub')
-rw-r--r--c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h8
-rw-r--r--c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c11
2 files changed, 0 insertions, 19 deletions
diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
index 5dbb72185c..35afa770cd 100644
--- a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
+++ b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h
@@ -32,7 +32,6 @@ struct rtems_gdb_stub_thread_info {
int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len);
-
char* mem2hstr(char *buf, const unsigned char *mem, int count);
int hstr2mem(unsigned char *mem, const char *buf, int count);
void set_mem_err(void);
@@ -171,14 +170,9 @@ enum regnames {D0,D1,D2,D3,D4,D5,D6,D7,
#define NUM_REGS 72
-
-
-
-
void mips_gdb_stub_install(int enableThreads) ;
#endif /* defined (__mips__) */
-
#define MEMOPT_READABLE 1
#define MEMOPT_WRITEABLE 2
@@ -186,6 +180,4 @@ void mips_gdb_stub_install(int enableThreads) ;
int gdbstub_add_memsegment(unsigned,unsigned,int);
-
-
#endif /* _GDB_IF_H */
diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
index 4ad7482f27..3ca47623a8 100644
--- a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
+++ b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c
@@ -129,11 +129,9 @@ int current_thread_registers[NUMREGBYTES/4];
typedef void (*ExceptionHook)(int); /* pointer to function with int parm */
typedef void (*Function)(); /* pointer to a function */
-
extern void putDebugChar(); /* write a single character */
extern int getDebugChar(); /* read and return a single char */
-
/************************/
/* FORWARD DECLARATIONS */
/************************/
@@ -154,7 +152,6 @@ const char gdb_hexchars[]="0123456789abcdef";
#define highhex(x) gdb_hexchars [(x >> 4) & 0xf]
#define lowhex(x) gdb_hexchars [x & 0xf]
-
/* We keep a whole frame cache here. "Why?", I hear you cry, "doesn't
GDB handle that sort of thing?" Well, yes, I believe the only
@@ -206,7 +203,6 @@ static ExceptionHook oldExceptionHook;
*/
const short exceptionSize[] = { 4,4,6,6,4,4,4,30,29,10,16,46,12,4,4,4 };
-
/************* jump buffer used for setjmp/longjmp **************************/
jmp_buf remcomEnv;
@@ -322,7 +318,6 @@ asm(" lea 4(%sp),%sp"); /* pull off 68000 return address */
#endif
asm(" rte");
-
#if M68K_HAS_VBR
/* This function is called when a 68020 exception occurs. It saves
* all the cpu and fpcp regs in the _registers array, creates a frame on a
@@ -493,7 +488,6 @@ saveDone: \n\
");
#endif
-
/*
* remcomHandler is a front end for handle_exception. It moves the
* stack pointer into an area reserved for debugger use in case the
@@ -553,7 +547,6 @@ char ch;
return (-1);
}
-
/* scan for the sequence $<data>#<checksum> */
void getpacket(buffer)
char * buffer;
@@ -610,7 +603,6 @@ char * buffer;
/* send the packet in buffer. The host get's one chance to read it.
This routine does not wait for a positive acknowledge. */
-
/*
* Send the packet in buffer and wait for a positive acknowledgement.
*/
@@ -664,7 +656,6 @@ char remcomInBuffer[BUFMAX];
char remcomOutBuffer[BUFMAX];
static short error;
-
void debug_error(
char * format,
char * parm
@@ -954,7 +945,6 @@ void handle_exception(int exceptionVector)
mem2hex (regptr, remcomOutBuffer, sizeof registers);
break;
-
case 'G': /* set the values of the CPU registers - return OK */
regptr = registers;
#if defined(GDB_STUB_ENABLE_THREAD_SUPPORT)
@@ -1243,7 +1233,6 @@ void handle_exception(int exceptionVector)
}
}
-
void
initializeRemcomErrorFrame()
{