amd64-linux: expose system register FS_BASE and GS_BASE for Linux.
[deliverable/binutils-gdb.git] / gdb / features / i386 / amd64-linux.c
index 02aeba523d05f723a87b75112caa750c57c80933..0e921ba9a162758c5fc1bfb523d43bba1e4d8b92 100644 (file)
@@ -151,5 +151,9 @@ initialize_tdesc_amd64_linux (void)
   feature = tdesc_create_feature (result, "org.gnu.gdb.i386.linux");
   tdesc_create_reg (feature, "orig_rax", 57, 1, NULL, 64, "int");
 
+  feature = tdesc_create_feature (result, "org.gnu.gdb.i386.segments");
+  tdesc_create_reg (feature, "fs_base", 58, 1, NULL, 64, "int");
+  tdesc_create_reg (feature, "gs_base", 59, 1, NULL, 64, "int");
+
   tdesc_amd64_linux = result;
 }
This page took 0.027761 seconds and 4 git commands to generate.