aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/tdesc.h
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-17 14:38:23 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-18 03:36:25 +0100
commit5a82b8a12b6a9b8167517ab1df1dcdcc4711ffda (patch)
tree9efbd9f8a6b74b3cc36ce38a04e7e92bea65dcbb /gdbserver/tdesc.h
parentfb516a69133999df3e30fccb7c4f5759eb1090eb (diff)
downloadgdb-5a82b8a12b6a9b8167517ab1df1dcdcc4711ffda.zip
gdb-5a82b8a12b6a9b8167517ab1df1dcdcc4711ffda.tar.gz
gdb-5a82b8a12b6a9b8167517ab1df1dcdcc4711ffda.tar.bz2
Namespace the reg class to avoid clashes with OS headers
Fix build issues on NetBSD where the reg symbol exists in public headers. regformats/regdef.h:22:8: error: redefinition struct struct reg ^~~ /usr/include/amd64/reg.h:51:8: note: previous definition struct struct reg { ^~~ gdb/ChangeLog: * regformats/regdef.h: Put reg in gdb namespace. gdbserver/ChangeLog: * regcache.cc (find_register_by_number): Update. * tdesc.cc (init_target_desc): Likewise. * tdesc.h (target_desc::reg_defs): Likewise.
Diffstat (limited to 'gdbserver/tdesc.h')
-rw-r--r--gdbserver/tdesc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/tdesc.h b/gdbserver/tdesc.h
index 5e0df85..f9ca478 100644
--- a/gdbserver/tdesc.h
+++ b/gdbserver/tdesc.h
@@ -31,7 +31,7 @@ struct target_desc : tdesc_element
{
/* A vector of elements of register definitions that
describe the inferior's register set. */
- std::vector<struct reg> reg_defs;
+ std::vector<struct gdb::reg> reg_defs;
/* The register cache size, in bytes. */
int registers_size;