From c18be923ef2ab59f29f55706b725f886c110113b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 10 Jan 2002 23:32:25 +0000 Subject: [PATCH] 2002-01-10 Michael Snyder * Makefile.in: Add rules for gcore.o and linux-proc.o. * gcore.c: Include cli/cli-decode.h instead of command.h. --- gdb/ChangeLog | 3 +++ gdb/Makefile.in | 8 +++++++- gdb/gcore.c | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 195405f1ede..09073070f73 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2002-01-10 Michael Snyder + * Makefile.in: Add rules for gcore.o and linux-proc.o. + * gcore.c: Include cli/cli-decode.h instead of command.h. + * main.c (captured_main): Add new command line option "--pid". If the second command line argument (following the symbol-file) begins with a digit, try to attach to it before trying to open diff --git a/gdb/Makefile.in b/gdb/Makefile.in index d9b79a738f5..0c92c1efc18 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1,5 +1,5 @@ # Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, -# 1999, 2000, 2001 Free Software Foundation, Inc. +# 1999, 2000, 2001, 2002 Free Software Foundation, Inc. # This file is part of GDB. @@ -1334,6 +1334,12 @@ corefile.o: corefile.c $(dis_asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \ $(target_h) $(gdbthread_h) $(gdb_string_h) $(regcache_h) +gcore.o: gcore.c $(defs_h) $(command_h) $(inferior_h) $(gdbcore_h) \ + $(BFD_SRC)/elf-bfd.h $(symfile_h) $(objfiles_h) + +linux-proc.o: linux-proc.c $(defs_h) $(inferior_h) $(gregset_h) \ + $(gdbcore_h) $(gdbthread_h) $(BFD_SRC)/elf-bfd.h + cp-abi.o: cp-abi.c $(defs_h) $(value_h) $(cp_abi_h) cp-valprint.o: cp-valprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \ diff --git a/gdb/gcore.c b/gdb/gcore.c index 48ed6a3b594..2e81d5bb7cd 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -19,7 +19,7 @@ Boston, MA 02111-1307, USA. */ #include "defs.h" -#include "command.h" +#include "cli/cli-decode.h" #include "inferior.h" #include "gdbcore.h" #include "elf-bfd.h" -- 2.30.2