This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] ARI fix: Replace dirent.h by gdb_dirent.h in linux-fork.c


> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Date: Mon, 8 Oct 2007 14:35:01 +0200
> 
>  This one is almost like the previous that fixed the wait header.
> 
> OK to commit?

It probably doesn't matter on Linux, but in general it is better to
leave the headers in the same order when replacing <xxx.h> with
"gdb_xxx.h".

Mark

> ChangeLog entry:
> 
> 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
> 
>         * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of
> <dirent.h>.
>         Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
> 
> 
> 
> Index: linux-fork.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/linux-fork.c,v
> retrieving revision 1.13
> diff -u -p -r1.13 linux-fork.c
> --- linux-fork.c        8 Oct 2007 07:43:42 -0000       1.13
> +++ linux-fork.c        8 Oct 2007 12:27:45 -0000
> @@ -27,10 +27,10 @@
>  #include "linux-fork.h"
>  #include "linux-nat.h"
>  #include "gdb_wait.h"
> +#include "gdb_dirent.h"
> 
>  #include <sys/ptrace.h>
>  #include <sys/param.h>
> -#include <dirent.h>
>  #include <ctype.h>
> 
>  struct fork_info *fork_list;
> Index: Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/gdb/Makefile.in,v
> retrieving revision 1.940
> diff -u -p -r1.940 Makefile.in
> --- Makefile.in 8 Oct 2007 07:43:42 -0000       1.940
> +++ Makefile.in 8 Oct 2007 12:27:46 -0000
> @@ -2236,7 +2236,7 @@ linespec.o: linespec.c $(defs_h) $(symta
>         $(objc_lang_h) $(linespec_h) $(exceptions_h) $(language_h)
>  linux-fork.o: linux-fork.c $(defs_h) $(inferior_h) $(regcache_h)
> $(gdbcmd_h) \
>         $(infcall_h) $(gdb_assert_h) $(gdb_string_h) $(linux_fork_h) \
> -       $(linux_nat_h) $(gdb_wait_h)
> +       $(linux_nat_h) $(gdb_wait_h) $(gdb_dirent_h)
>  linux-nat.o: linux-nat.c $(defs_h) $(inferior_h) $(target_h)
> $(gdb_string_h) \
>         $(gdb_wait_h) $(gdb_assert_h) $(linux_nat_h) $(gdbthread_h) \
>         $(gdbcmd_h) $(regcache_h) $(regset_h) $(inf_ptrace_h) $(auxv_h) \
> 
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]