From df7e526582809b829ee8651a1315a17627cfea4d Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Tue, 19 Aug 2014 15:16:11 +0100 Subject: Rename 32- and 64-bit Intel files from "i386" to "x86" This commit renames nine files that contain code used by both 32- and 64-bit Intel ports such that their names are prefixed with "x86" rather than "i386". All types, functions and variables within these files are likewise renamed such that their names are prefixed with "x86" rather than "i386". This makes GDB follow the convention used by gdbserver such that 32-bit Intel code lives in files called "i386-*", 64-bit Intel code lives in files called "amd64-*", and code for both 32- and 64-bit Intel lives in files called "x86-*". This commit only renames OS-independent files. The Linux ports of both GDB and gdbserver now follow the i386/amd64/x86 convention fully. Some ports still use the old convention where "i386" in file/function/ type/variable names can mean "32-bit only" or "32- and 64-bit" but I don't want to touch ports I can't fully test except where absolutely necessary. gdb/ChangeLog: * i386-nat.h: Renamed as... * x86-nat.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * i386-nat.c: Renamed as... * x86-nat.c: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * common/i386-xstate.h: Renamed as... * common/x86-xstate.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * nat/i386-cpuid.h: Renamed as... * nat/x86-cpuid.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * nat/i386-gcc-cpuid.h: Renamed as... * nat/x86-gcc-cpuid.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * nat/i386-dregs.h: Renamed as... * nat/x86-dregs.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * nat/i386-dregs.c: Renamed as... * nat/x86-dregs.c: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. gdb/gdbserver/ChangeLog: * i386-low.h: Renamed as... * x86-low.h: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. * i386-low.c: Renamed as... * x86-low.c: New file. All type, function and variable name prefixes changed from "i386_" to "x86_". All references updated. --- gdb/amd64fbsd-nat.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'gdb/amd64fbsd-nat.c') diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index fd189ec8241..fe4e009b2c1 100644 --- a/gdb/amd64fbsd-nat.c +++ b/gdb/amd64fbsd-nat.c @@ -32,7 +32,7 @@ #include "amd64-tdep.h" #include "amd64-nat.h" #include "amd64bsd-nat.h" -#include "i386-nat.h" +#include "x86-nat.h" /* Offset in `struct reg' where MEMBER is stored. */ @@ -145,7 +145,7 @@ static void amd64fbsd_mourn_inferior (struct target_ops *ops) { #ifdef HAVE_PT_GETDBREGS - i386_cleanup_dregs (); + x86_cleanup_dregs (); #endif super_mourn_inferior (ops); } @@ -167,14 +167,14 @@ _initialize_amd64fbsd_nat (void) #ifdef HAVE_PT_GETDBREGS - i386_use_watchpoints (t); + x86_use_watchpoints (t); - i386_dr_low.set_control = amd64bsd_dr_set_control; - i386_dr_low.set_addr = amd64bsd_dr_set_addr; - i386_dr_low.get_addr = amd64bsd_dr_get_addr; - i386_dr_low.get_status = amd64bsd_dr_get_status; - i386_dr_low.get_control = amd64bsd_dr_get_control; - i386_set_debug_register_length (8); + x86_dr_low.set_control = amd64bsd_dr_set_control; + x86_dr_low.set_addr = amd64bsd_dr_set_addr; + x86_dr_low.get_addr = amd64bsd_dr_get_addr; + x86_dr_low.get_status = amd64bsd_dr_get_status; + x86_dr_low.get_control = amd64bsd_dr_get_control; + x86_set_debug_register_length (8); #endif /* HAVE_PT_GETDBREGS */ -- cgit v1.2.1