Pull out common parts of _initialize_{i386,amd64}_linux_nat
authorGary Benson <gbenson@redhat.com>
Tue, 24 Jun 2014 12:43:30 +0000 (13:43 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 11 Jul 2014 11:24:11 +0000 (12:24 +0100)
commitc1e246a060dd1eab0c2551d86844edb199994ff7
treebb97bd22b5a5c2b39b261bed6444cdaeee9cca1a
parent8c420b8d59e8e045aa733f478adb1d0509d447e3
Pull out common parts of _initialize_{i386,amd64}_linux_nat

This commit adds two new helpers, x86_linux_create_target and
x86_linux_add_target, to hold the parts of _initialize_i386_linux_nat
and _initialize_amd64_linux_nat which are common.

gdb/
2014-07-11  Gary Benson  <gbenson@redhat.com>

* amd64-linux-nat.c (x86_linux_create_target): New function.
(x86_linux_add_target): Likewise.
(_initialize_amd64_linux_nat): Delegate to the above new functions.
* i386-linux-nat.c (x86_linux_create_target): New function.
(x86_linux_add_target): Likewise.
(_initialize_i386_linux_nat): Delegate to the above new functions.
gdb/ChangeLog
gdb/amd64-linux-nat.c
gdb/i386-linux-nat.c