aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-01-23 19:45:12 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-01-23 19:45:12 +0000
commitf29d9b6d302bcf6ec42feb3a3bdbabe534177258 (patch)
treee8ddca4ae25ea1472aeb05ee45155b2708318e6c /gdb/gdbserver
parent329de8034380c56e873a54c9f5f28b9fe3f939c7 (diff)
downloadgdb-f29d9b6d302bcf6ec42feb3a3bdbabe534177258.zip
gdb-f29d9b6d302bcf6ec42feb3a3bdbabe534177258.tar.gz
gdb-f29d9b6d302bcf6ec42feb3a3bdbabe534177258.tar.bz2
* config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
* config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise. * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise. * gdbserver/low-sim.c (#include "defs.h"): Removed. (mygeneric_load): Rename from generic_load. * gdbserver/low-hppabsd.c (#include "server.h"): Added. (#include "defs.h"): Removed. (inferior_pid, perror_with_name): Remove declarations. * gdbserver/low-linux.c: Likewise. * gdbserver/low-nbsd.c: Likewise. * gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. * i386-stub.c: Re-indent. * m68k-stub.c: Re-indent.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/low-hppabsd.c4
-rw-r--r--gdb/gdbserver/low-linux.c4
-rw-r--r--gdb/gdbserver/low-nbsd.c7
-rw-r--r--gdb/gdbserver/low-sim.c7
-rw-r--r--gdb/gdbserver/low-sparc.c4
-rw-r--r--gdb/gdbserver/low-sun3.c4
6 files changed, 8 insertions, 22 deletions
diff --git a/gdb/gdbserver/low-hppabsd.c b/gdb/gdbserver/low-hppabsd.c
index d031e30..5719915 100644
--- a/gdb/gdbserver/low-hppabsd.c
+++ b/gdb/gdbserver/low-hppabsd.c
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#include "server.h"
#include <sys/wait.h>
#include "frame.h"
#include "inferior.h"
@@ -41,8 +41,6 @@ char *registers = my_registers;
#include <machine/reg.h>
extern int errno;
-extern int inferior_pid;
-void perror_with_name ();
/* Start an inferior process and returns its pid.
ALLARGS is a vector of program-name and args. */
diff --git a/gdb/gdbserver/low-linux.c b/gdb/gdbserver/low-linux.c
index c718c4e..ce57d32 100644
--- a/gdb/gdbserver/low-linux.c
+++ b/gdb/gdbserver/low-linux.c
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#include "server.h"
#include <sys/wait.h>
#include "frame.h"
#include "inferior.h"
@@ -47,8 +47,6 @@ char *registers = my_registers;
#endif
extern int errno;
-extern int inferior_pid;
-void perror_with_name ();
static void initialize_arch (void);
diff --git a/gdb/gdbserver/low-nbsd.c b/gdb/gdbserver/low-nbsd.c
index fc54845..0ff8524 100644
--- a/gdb/gdbserver/low-nbsd.c
+++ b/gdb/gdbserver/low-nbsd.c
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#include "server.h"
#include <sys/types.h>
#include <sys/wait.h>
#include "frame.h"
@@ -34,11 +34,6 @@ char *registers = my_registers;
#include <sys/ptrace.h>
#include <machine/reg.h>
-// extern int sys_nerr;
-// extern char **sys_errlist;
-extern int inferior_pid;
-void perror_with_name ();
-
#define RF(dst, src) \
memcpy(&registers[REGISTER_BYTE(dst)], &src, sizeof(src))
diff --git a/gdb/gdbserver/low-sim.c b/gdb/gdbserver/low-sim.c
index a0a9aa6..d82aad1 100644
--- a/gdb/gdbserver/low-sim.c
+++ b/gdb/gdbserver/low-sim.c
@@ -18,9 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
-#include "bfd.h"
#include "server.h"
+#include "bfd.h"
#include "callback.h" /* GDB simulator callback interface */
#include "remote-sim.h" /* GDB simulator interface */
@@ -41,7 +40,7 @@ static SIM_DESC gdbsim_desc = 0;
does not support loading itself. */
static void
-generic_load (bfd *loadfile_bfd)
+mygeneric_load (bfd *loadfile_bfd)
{
asection *s;
@@ -131,7 +130,7 @@ create_inferior (char *program, char **argv)
/* Load the program into the simulator. */
if (abfd)
if (sim_load (gdbsim_desc, program, NULL, 0) == SIM_RC_FAIL)
- generic_load (abfd);
+ mygeneric_load (abfd);
/* Create an inferior process in the simulator. This initializes SP. */
sim_create_inferior (gdbsim_desc, abfd, argv, /* env */ NULL);
diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c
index 34e4192..b7f3486 100644
--- a/gdb/gdbserver/low-sparc.c
+++ b/gdb/gdbserver/low-sparc.c
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#include "server.h"
#include <sys/wait.h>
#include "frame.h"
#include "inferior.h"
@@ -46,8 +46,6 @@ char *registers = my_registers;
extern int sys_nerr;
extern char **sys_errlist;
extern int errno;
-extern int inferior_pid;
-void perror_with_name ();
/* Start an inferior process and returns its pid.
ALLARGS is a vector of program-name and args. */
diff --git a/gdb/gdbserver/low-sun3.c b/gdb/gdbserver/low-sun3.c
index e1e64b6..17a64b5 100644
--- a/gdb/gdbserver/low-sun3.c
+++ b/gdb/gdbserver/low-sun3.c
@@ -18,7 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#include "server.h"
#include "<sys/wait.h>"
#include "frame.h"
#include "inferior.h"
@@ -43,8 +43,6 @@ char *registers = my_registers;
extern int sys_nerr;
extern char **sys_errlist;
extern int errno;
-extern int inferior_pid;
-void perror_with_name ();
/* Start an inferior process and returns its pid.
ALLARGS is a vector of program-name and args. */