Merge pull request #275 from riscv/cleanup

Revert unnecessary change.
This commit is contained in:
Tim Newsome 2018-07-17 12:06:24 -07:00 committed by GitHub
commit c7bcdab242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -112,6 +112,8 @@ static char *gdb_port_next;
static void gdb_log_callback(void *priv, const char *file, unsigned line, static void gdb_log_callback(void *priv, const char *file, unsigned line,
const char *function, const char *string); const char *function, const char *string);
static void gdb_sig_halted(struct connection *connection);
/* number of gdb connections, mainly to suppress gdb related debugging spam /* number of gdb connections, mainly to suppress gdb related debugging spam
* in helper/log.c when no gdb connections are actually active */ * in helper/log.c when no gdb connections are actually active */
int gdb_actual_connections; int gdb_actual_connections;
@ -3086,7 +3088,7 @@ static void gdb_log_callback(void *priv, const char *file, unsigned line,
gdb_output_con(connection, string); gdb_output_con(connection, string);
} }
void gdb_sig_halted(struct connection *connection) static void gdb_sig_halted(struct connection *connection)
{ {
char sig_reply[4]; char sig_reply[4];
snprintf(sig_reply, 4, "T%2.2x", 2); snprintf(sig_reply, 4, "T%2.2x", 2);

View File

@ -47,7 +47,6 @@ static inline struct target *get_target_from_connection(struct connection *conne
} }
void gdb_set_frontend_state_running(struct connection *connection); void gdb_set_frontend_state_running(struct connection *connection);
void gdb_sig_halted(struct connection *connection);
#define ERROR_GDB_BUFFER_TOO_SMALL (-800) #define ERROR_GDB_BUFFER_TOO_SMALL (-800)
#define ERROR_GDB_TIMEOUT (-801) #define ERROR_GDB_TIMEOUT (-801)