projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002-10-01 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git]
/
gdb
/
remote-utils.c
diff --git
a/gdb/remote-utils.c
b/gdb/remote-utils.c
index 207761299f29d931ffb971ff72ff8a60b8713c9b..ba150e34d5d9b13d82ebe416d9eb4056962f07a8 100644
(file)
--- a/
gdb/remote-utils.c
+++ b/
gdb/remote-utils.c
@@
-1,6
+1,7
@@
/* Generic support for remote debugging interfaces.
/* Generic support for remote debugging interfaces.
- Copyright 1993, 1994, 1998 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 1995, 1996, 1998, 2000, 2001
+ Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-50,6
+51,7
@@
#include "gdbcore.h" /* for exec_bfd */
#include "inferior.h" /* for generic_mourn_inferior */
#include "remote-utils.h"
#include "gdbcore.h" /* for exec_bfd */
#include "inferior.h" /* for generic_mourn_inferior */
#include "remote-utils.h"
+#include "regcache.h"
void _initialize_sr_support (void);
void _initialize_sr_support (void);
@@
-84,7
+86,7
@@
usage (char *proto, char *junk)
fprintf_unfiltered (gdb_stderr, "Unrecognized arguments: `%s'.\n", junk);
error ("Usage: target %s [DEVICE [SPEED [DEBUG]]]\n\
fprintf_unfiltered (gdb_stderr, "Unrecognized arguments: `%s'.\n", junk);
error ("Usage: target %s [DEVICE [SPEED [DEBUG]]]\n\
-where DEVICE is the name of a device or HOST:PORT", proto
, proto
);
+where DEVICE is the name of a device or HOST:PORT", proto);
return;
}
return;
}
@@
-154,19
+156,12
@@
gr_generic_checkin (void)
void
gr_open (char *args, int from_tty, struct gr_settings *gr)
{
void
gr_open (char *args, int from_tty, struct gr_settings *gr)
{
- DCACHE *dcache;
-
target_preopen (from_tty);
sr_scan_args (gr->ops->to_shortname, args);
unpush_target (gr->ops);
gr_settings = gr;
target_preopen (from_tty);
sr_scan_args (gr->ops->to_shortname, args);
unpush_target (gr->ops);
gr_settings = gr;
- if ((dcache = gr_get_dcache()) == NULL)
- gr_set_dcache (dcache_init (gr->readfunc, gr->writefunc));
- else
- dcache_invd (dcache);
-
if (sr_get_desc () != NULL)
gr_close (0);
if (sr_get_desc () != NULL)
gr_close (0);
@@
-177,24
+172,24
@@
gr_open (char *args, int from_tty, struct gr_settings *gr)
if (sr_get_device () == NULL)
usage (gr->ops->to_shortname, NULL);
if (sr_get_device () == NULL)
usage (gr->ops->to_shortname, NULL);
- sr_set_desc (
SERIAL_OPEN
(sr_get_device ()));
+ sr_set_desc (
serial_open
(sr_get_device ()));
if (!sr_get_desc ())
perror_with_name ((char *) sr_get_device ());
if (baud_rate != -1)
{
if (!sr_get_desc ())
perror_with_name ((char *) sr_get_device ());
if (baud_rate != -1)
{
- if (
SERIAL_SETBAUDRATE
(sr_get_desc (), baud_rate) != 0)
+ if (
serial_setbaudrate
(sr_get_desc (), baud_rate) != 0)
{
{
-
SERIAL_CLOSE
(sr_get_desc ());
+
serial_close
(sr_get_desc ());
perror_with_name (sr_get_device ());
}
}
perror_with_name (sr_get_device ());
}
}
-
SERIAL_RAW
(sr_get_desc ());
+
serial_raw
(sr_get_desc ());
/* If there is something sitting in the buffer we might take it as a
response to a command, which would be bad. */
/* If there is something sitting in the buffer we might take it as a
response to a command, which would be bad. */
-
SERIAL_FLUSH_INPUT
(sr_get_desc ());
+
serial_flush_input
(sr_get_desc ());
/* default retries */
if (sr_get_retries () == 0)
/* default retries */
if (sr_get_retries () == 0)
@@
-227,7
+222,7
@@
sr_readchar (void)
{
int buf;
{
int buf;
- buf =
SERIAL_READCHAR
(sr_get_desc (), sr_get_timeout ());
+ buf =
serial_readchar
(sr_get_desc (), sr_get_timeout ());
if (buf == SERIAL_TIMEOUT)
error ("Timeout reading from remote system.");
if (buf == SERIAL_TIMEOUT)
error ("Timeout reading from remote system.");
@@
-243,7
+238,7
@@
sr_pollchar (void)
{
int buf;
{
int buf;
- buf =
SERIAL_READCHAR
(sr_get_desc (), 0);
+ buf =
serial_readchar
(sr_get_desc (), 0);
if (buf == SERIAL_TIMEOUT)
buf = 0;
if (sr_get_debug () > 0)
if (buf == SERIAL_TIMEOUT)
buf = 0;
if (sr_get_debug () > 0)
@@
-286,7
+281,7
@@
sr_write (char *a, int l)
{
int i;
{
int i;
- if (
SERIAL_WRITE
(sr_get_desc (), a, l) != 0)
+ if (
serial_write
(sr_get_desc (), a, l) != 0)
perror_with_name ("sr_write: Error writing to remote");
if (sr_get_debug () > 0)
perror_with_name ("sr_write: Error writing to remote");
if (sr_get_debug () > 0)
@@
-403,7
+398,7
@@
gr_close (int quitting)
if (sr_is_open ())
{
if (sr_is_open ())
{
-
SERIAL_CLOSE
(sr_get_desc ());
+
serial_close
(sr_get_desc ());
sr_set_desc (NULL);
}
sr_set_desc (NULL);
}
@@
-502,9
+497,7
@@
gr_create_inferior (char *execfile, char *args, char **env)
pass non-matching data on. */
int
pass non-matching data on. */
int
-gr_multi_scan (list, passthrough)
- char *list[];
- int passthrough;
+gr_multi_scan (char *list[], int passthrough)
{
char *swallowed = NULL; /* holding area */
char *swallowed_p = swallowed; /* Current position in swallowed. */
{
char *swallowed = NULL; /* holding area */
char *swallowed_p = swallowed; /* Current position in swallowed. */
This page took
0.024953 seconds
and
4
git commands to generate.