mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-06 03:16:45 +00:00
* remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
no hope of working as is for a long time (in particular, shebs' 27 Jan 95 change confuses the issue further--target_read_memory and xfer_core_file do *not* do the same thing in this context). Revise comment.
This commit is contained in:
parent
e4091a46a5
commit
ba6ef5e5fd
@ -237,10 +237,6 @@ extern struct target_ops remote_ops; /* Forward decl */
|
|||||||
be plenty. */
|
be plenty. */
|
||||||
static int remote_timeout = 2;
|
static int remote_timeout = 2;
|
||||||
|
|
||||||
#if 0
|
|
||||||
int icache;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Descriptor for I/O to remote machine. Initialize it to NULL so that
|
/* Descriptor for I/O to remote machine. Initialize it to NULL so that
|
||||||
remote_open knows that we don't have a file open when the program
|
remote_open knows that we don't have a file open when the program
|
||||||
starts. */
|
starts. */
|
||||||
@ -845,12 +841,11 @@ remote_store_registers (regno)
|
|||||||
|
|
||||||
/* Use of the data cache is disabled because it loses for looking at
|
/* Use of the data cache is disabled because it loses for looking at
|
||||||
and changing hardware I/O ports and the like. Accepting `volatile'
|
and changing hardware I/O ports and the like. Accepting `volatile'
|
||||||
would perhaps be one way to fix it, but a better way which would
|
would perhaps be one way to fix it. Another idea would be to use the
|
||||||
win for more cases would be to use the executable file for the text
|
executable file for the text segment (for all SEC_CODE sections?
|
||||||
segment, like the `icache' code below but done cleanly (in some
|
For all SEC_READONLY sections?). This has problems if you want to
|
||||||
target-independent place, perhaps in target_xfer_memory, perhaps
|
actually see what the memory contains (e.g. self-modifying code,
|
||||||
based on assigning each target a speed or perhaps by some simpler
|
clobbered memory, user downloaded the wrong thing). */
|
||||||
mechanism). */
|
|
||||||
|
|
||||||
/* Read a word from remote address ADDR and return it.
|
/* Read a word from remote address ADDR and return it.
|
||||||
This goes through the data cache. */
|
This goes through the data cache. */
|
||||||
@ -859,19 +854,6 @@ static int
|
|||||||
remote_fetch_word (addr)
|
remote_fetch_word (addr)
|
||||||
CORE_ADDR addr;
|
CORE_ADDR addr;
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
if (icache)
|
|
||||||
{
|
|
||||||
extern CORE_ADDR text_start, text_end;
|
|
||||||
|
|
||||||
if (addr >= text_start && addr < text_end)
|
|
||||||
{
|
|
||||||
int buffer;
|
|
||||||
target_read_memory (addr, &buffer, sizeof (int));
|
|
||||||
return buffer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return dcache_fetch (remote_dcache, addr);
|
return dcache_fetch (remote_dcache, addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user