mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 22:11:53 -06:00
gdbstub: Remove gdb_has_xml variable
GDB has XML support since 6.7 which was released in 2007. It's time to remove support for old GDB versions without XML support. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20230912224107.29669-12-akihiko.odaki@daynix.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20231009164104.369749-19-alex.bennee@linaro.org>
This commit is contained in:
parent
8e6d3ea2f5
commit
213316d401
3 changed files with 0 additions and 25 deletions
|
@ -349,11 +349,6 @@ static CPUState *gdb_get_cpu(uint32_t pid, uint32_t tid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool gdb_has_xml(void)
|
|
||||||
{
|
|
||||||
return !!gdb_get_cpu_process(gdbserver_state.g_cpu)->target_xml;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char *get_feature_xml(const char *p, const char **newp,
|
static const char *get_feature_xml(const char *p, const char **newp,
|
||||||
GDBProcess *process)
|
GDBProcess *process)
|
||||||
{
|
{
|
||||||
|
@ -1086,11 +1081,6 @@ static void handle_set_reg(GArray *params, void *user_ctx)
|
||||||
{
|
{
|
||||||
int reg_size;
|
int reg_size;
|
||||||
|
|
||||||
if (!gdb_get_cpu_process(gdbserver_state.g_cpu)->target_xml) {
|
|
||||||
gdb_put_packet("");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params->len != 2) {
|
if (params->len != 2) {
|
||||||
gdb_put_packet("E22");
|
gdb_put_packet("E22");
|
||||||
return;
|
return;
|
||||||
|
@ -1107,11 +1097,6 @@ static void handle_get_reg(GArray *params, void *user_ctx)
|
||||||
{
|
{
|
||||||
int reg_size;
|
int reg_size;
|
||||||
|
|
||||||
if (!gdb_get_cpu_process(gdbserver_state.g_cpu)->target_xml) {
|
|
||||||
gdb_put_packet("");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!params->len) {
|
if (!params->len) {
|
||||||
gdb_put_packet("E14");
|
gdb_put_packet("E14");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -32,8 +32,6 @@ enum {
|
||||||
typedef struct GDBProcess {
|
typedef struct GDBProcess {
|
||||||
uint32_t pid;
|
uint32_t pid;
|
||||||
bool attached;
|
bool attached;
|
||||||
|
|
||||||
/* If gdb sends qXfer:features:read:target.xml this will be populated */
|
|
||||||
char *target_xml;
|
char *target_xml;
|
||||||
} GDBProcess;
|
} GDBProcess;
|
||||||
|
|
||||||
|
|
|
@ -45,14 +45,6 @@ int gdbserver_start(const char *port_or_device);
|
||||||
|
|
||||||
void gdb_set_stop_cpu(CPUState *cpu);
|
void gdb_set_stop_cpu(CPUState *cpu);
|
||||||
|
|
||||||
/**
|
|
||||||
* gdb_has_xml() - report of gdb supports modern target descriptions
|
|
||||||
*
|
|
||||||
* This will report true if the gdb negotiated qXfer:features:read
|
|
||||||
* target descriptions.
|
|
||||||
*/
|
|
||||||
bool gdb_has_xml(void);
|
|
||||||
|
|
||||||
/* in gdbstub-xml.c, generated by scripts/feature_to_c.py */
|
/* in gdbstub-xml.c, generated by scripts/feature_to_c.py */
|
||||||
extern const GDBFeature gdb_static_features[];
|
extern const GDBFeature gdb_static_features[];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue