aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-06-25 14:09:47 -0700
committerTim Newsome <tim@sifive.com>2018-06-25 14:09:47 -0700
commitd8c31bfd2c00f44fda0b64d1ce81f97dcd23b802 (patch)
tree4143fb913c2581e8ba8cfbca19041dca534d0a68 /src
parent5d9f48640461fbac5c30958f63a01e666ee64dd4 (diff)
downloadriscv-openocd-d8c31bfd2c00f44fda0b64d1ce81f97dcd23b802.zip
riscv-openocd-d8c31bfd2c00f44fda0b64d1ce81f97dcd23b802.tar.gz
riscv-openocd-d8c31bfd2c00f44fda0b64d1ce81f97dcd23b802.tar.bz2
Revert unnecessary change.
This reduces the diff with upstream. Change-Id: I83eaa6317b4ec183f76ca5f7eb69eefe84aaa17a
Diffstat (limited to 'src')
-rw-r--r--src/server/gdb_server.c4
-rw-r--r--src/server/gdb_server.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 8e2d2ed..b62899d 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -112,6 +112,8 @@ static char *gdb_port_next;
static void gdb_log_callback(void *priv, const char *file, unsigned line,
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
* in helper/log.c when no gdb connections are actually active */
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);
}
-void gdb_sig_halted(struct connection *connection)
+static void gdb_sig_halted(struct connection *connection)
{
char sig_reply[4];
snprintf(sig_reply, 4, "T%2.2x", 2);
diff --git a/src/server/gdb_server.h b/src/server/gdb_server.h
index 1366c76..0c50836 100644
--- a/src/server/gdb_server.h
+++ b/src/server/gdb_server.h
@@ -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_sig_halted(struct connection *connection);
#define ERROR_GDB_BUFFER_TOO_SMALL (-800)
#define ERROR_GDB_TIMEOUT (-801)