[PATCH 4/7] Pull out common parts of _initialize_{i386,amd64}_linux_nat
Mark Kettenis
mark.kettenis@xs4all.nl
Fri Jun 27 09:21:00 GMT 2014
> From: Gary Benson <gbenson@redhat.com>
> Date: Fri, 27 Jun 2014 10:10:06 +0100
>
> This commit adds two new helpers, x86_linux_create_target
> and x86_linux_register_target, to hold the parts of
> _initialize_i386_linux_nat and _initialize_amd64_linux_nat
> which are common.
Please stick to the existing naming convention. Functions in i386-*.c
start with i386_, functions in amd64-*.c start with amd64_.
>
> gdb/
> 2014-06-27 Gary Benson <gbenson@redhat.com>
>
> * amd64-linux-nat.c (x86_linux_create_target): New function.
> (x86_linux_register_target): Likewise.
> (_initialize_amd64_linux_nat): Delegate to the above new functions.
> * i386-linux-nat.c (x86_linux_create_target): New function.
> (x86_linux_register_target): Likewise.
> (_initialize_i386_linux_nat): Delegate to the above new functions.
More information about the Gdb-patches
mailing list