Andrew Cagney
2649061d59
Multi-arch REGISTER_BYTES_OK.
2000-12-15 12:33:08 +00:00
Kevin Buettner
b8c9b27d1e
Replace free() with xfree().
2000-12-15 01:01:51 +00:00
Andrew Cagney
7f7e9482db
* remote.c (remote_write_bytes): Add default case to switch
...
initializing ``todo''. Ditto for ``nr_bytes''.
* top.c (catch_errors): Always initialize ``val''.
* solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size
returning an unknown size.
* gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''.
* breakpoint.c (break_at_finish_at_depth_command_1): Initialise
extra_args to NULL.
(break_at_finish_command_1): Ditto.
2000-11-27 02:18:44 +00:00
Andrew Cagney
76995688e8
Replace asprintf() / vasprintf() with xasprintf() xvasprintf().
2000-11-20 02:06:19 +00:00
Andrew Cagney
4ad5b0f716
Fix ``show remotewritesize'' was doing a set.
2000-11-14 13:45:38 +00:00
J.T. Conklin
4930751aae
* TODO: Note abstraction layer violation where "ocd reset" command
...
must invalidate the dcache, and how this might be fixed.
* monitor.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(monitor_open): Removed code that created local dcache.
(flush_monitor_dcache): Removed (unused function).
(monitor_resume): Removed call to dcache_invd().
(monitor_load): Likewise.
(monitor_xfer_memory): Changed to call monitor_write_memory(),
monitor_write_memory_block(), and monitor_read_memory() instead
of dcache_xfer_memory().
* monitor.h (flush_monitor_dcache): Removed (unused function).
* ocd.c (#include "dcache.h"): Removed.
(ocd_dcache): Removed.
(ocd_open): Removed code that created local dcache.
(ocd_resume): Removed call to dcache_invd().
(ocd_xfer_memory): Changed to call ocd_write_bytes() and
ocd_read_bytes() instead of dcache_xfer_memory().
(bdm_reset_command): Invalidate target dcache.
* remote-bug.c (bug_load): Remove call to dcache_invd().
(bug_resume): Likewise.
(bug_settings): Remove dcache, readfunc, and writefunc fields
from initializer.
(bug_xfer_memory): Changed to call bug_read_memory() and
bug_write_memory() instead of dcache_xfer_memory().
* remote-nindy.c (#include "dcache.h"): Removed.
(nindy_dcache): Removed.
(nindy_open): Removed code that created local dcache.
(nindy_resume): Removed call to dcache_invd().
(nindy_load): Likewise.
(nindy_xfer_inferior_memory): Changed to call ninMemPut() and
ninMemGet() instead of dcache_xfer_memory().
* remote-sds.c (#include "dcache.h"): Removed.
(sds_dcache): Removed.
(sds_open): Removed code that created local dcache.
(sds_resume): Removed call to dcache_invd().
(sds_xfer_memory): Changed to call sds_write_bytes() and
sds_read_bytes() instead of dcache_xfer_memory().
* remote-utils.c (gr_open): Removed code that created local dcache.
* remote-utils.h (#include "dcache.h"): Removed.
(struct gr_settings): Removed dcache, readfunc, and writefunc fields.
(gr_get_dcache, gr_set_dcache): Removed macro definitions.
* remote.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(remote_open_1): Removed code that created local dcache.
(remote_async_open_1): Likewise.
(remote_resume): Removed call to dcache_invd().
(remote_async_resume): Likewise.
(remote_xfer_memory): Changed to call remote_write_bytes() and
remote_read_bytes() instead of dcache_xfer_memory().
* wince.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(child_create_inferior): Removed code that created local dcache.
(child_xfer_memory): Changed to call remote_write_bytes() and
remote_read_bytes() instead of dcache_xfer_memory().
(child_resume): Removed call to dcache_invd().
* target.c (target_dcache): Added.
(target_load): Invalidate target_dcache.
(do_xfer_memory): New function.
(target_xfer_memory): Reimplement in terms of dcache_xfer_memory().
(target_xfer_memory_partial): Likewise.
(initialize_targets): Create target_dcache.
* target.h (#include "dcache.h"): Added.
(target_open): Invalidate target_dcache.
(target_resume): Likewise.
(do_xfer_memory): New declaration.
* dcache.c (dcache_init): Removed reading and writing arguments.
(dcache_struct): Removed read_memory and write_memory fields.
(dcache_write_line): Call do_xfer_memory.
(dcache_read_line): Likewise.
(dcache_xfer_memory): Likewise.
(dcache_invalidate): Renamed from dcache_invd.
(dcache_init): Updated.
(dcache_xfer_memory): Updated.
* dcache.h (memxferfunc): Removed definition.
2000-11-03 22:00:56 +00:00
David Anderson
e26cc3490a
Corrected spelling errors in comments
2000-10-23 22:49:29 +00:00
Kevin Buettner
c338868aa6
Protoization.
2000-10-18 03:29:25 +00:00
Fernando Nasser
40e3f985d2
2000-10-13 Fernando Nasser <fnasser@cygnus.com>
...
* remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
(read_frame): Do not call error() on communication error when
reading checksum, but return failure instead and log message.
2000-10-13 21:41:21 +00:00
J.T. Conklin
8edbea78dc
* dcache.c (dcache_info): Output a cache line's state vector so it
...
lines up under the data vector.
* dcache.c (dcache_read_line): New function.
(dcache_peek_byte): Use it.
(dcache_alloc): Return NULL if write of reclaimed cache line fails.
(dcache_peek_byte, dcache_poke_byte): Return failure if
dcache_alloc() returns a NULL data block pointer.
(dcache_xfer_memory): Don't force writeback unless we were writing.
* monitor.c (monitor_expect): Change places where immediate_quit
is set to 1 or 0 to increments and decrements respectively. This
allows such changes to nest properly.
* ocd.c (ocd_start_remote): Likewise.
* remote-adapt.c (expect): Likewise.
* remote-array.c (expect): Likewise.
* remote-eb.c (expect): Likewise.
* remote-e7000.c (e7000_start_remote): Likewise.
* remote-mips.c (mips_expect_timeout, mips_getstring): Likewise.
* remote-nrom.c (expect): Likewise.
* remote-os9k.c (expect): Likewise.
* remote-sds.c (sds_start_remote): Likewise.
* remote-st.c (expect): Likewise.
* remote-utils.c (sr_expect): Likewise.
* remote.c (remote_start_remote): Likewise.
* tracepoint.c (read_actions): Likewise.
* remote-mips.c (mips_getstring): Balance changes to immediate_quit.
2000-09-01 00:12:10 +00:00
Andrew Cagney
e1b09194cb
2000-08-20 Michael Chastain <chastain@redhat.com>
...
* remote.c (read_frame): Handle SERIAL_TIMEOUT while reading
checksum.
2000-08-24 10:48:22 +00:00
J.T. Conklin
e99586d56a
* MAINTAINERS: Add myself as dcache.c maintainer.
...
* remote-nindy.c (nindy_load): Invalidate dcache.
* dcache.c (dcache_invd): Renamed from dcache_flush. The term
flush with respect to caches usually implies that data will be
written to memory.
(dcache_init, dcache_xfer_memory): Updated.
* monitor.c (flush_monitor_dcache, monitor_resume, monitor_load):
Updated.
* ocd.c (ocd_open, ocd_resume, bdm_reset_command): Updated.
* remote-bug.c (bug_load, bug_resume): Updated.
* remote-nindy.c (nindy_open, nindy_resume): Updated.
* remote-sds.c (sds_open, sds_resume): Updated.
* remote-utils.c (gr_open): Updated.
* remote.c (remote_open_1, remote_resume, remote_async_resume,
remote_cisco_open): Updated.
* wince.c (child_create_inferior, child_resume): Updated.
* monitor.c (monitor_open): Free dcache before creating a new one.
* dcache.c (dcache_free): New function.
* dcache.h (dcache_free): New prototype.
-------------------------------------------------------------------
2000-08-18 22:52:23 +00:00
J.T. Conklin
f1d7622b95
* monitor.c (monitor_open): If a dcache has already been created,
...
invalidate it rather than creating another.
* ocd.c (ocd_open): Likewise.
* remote-nindy.c (nindy_open): Likewise.
* remote-sds.c (sds_open): Likewise.
* remote-utils.c (gr_open): Likewise.
* remote.c (remote_open_1, remote_cisco_open): Likewise.
* dcache.c (dcache_alloc): Changed to take address of line as an
argument, and to invalidate cache line before returning.
(dcache_peek_byte): Updated.
(dcache_poke_byte): Updated.
-------------------------------------------------------------------
2000-08-10 18:54:27 +00:00
Elena Zannoni
a4c8257b03
2000-08-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
...
* objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss
here, let the users of the macro do it.
* symtab.h (ANOFFSET): Detect here if the section index is not
initialized.
* xcoffread.c (find_targ_sec): Don't treat .bss as special,
because some objfiles may not have that section at all.
* coffread.c (cs_to_section): Ditto.
* elfread.c (elf_symtab_read): Detect an uninitialized index
value.
(elfstab_offset_sections): The macro ANOFFSET cannot be used as an
lvalue anymore.
* remote.c (get_offsets, remote_cisco_objfile_relocate): Don't use
ANOFFSET as an lvalue.
* objfiles.c (objfile_relocate, objfile_relocate): Don't use
ANOFFSET as an lvalue.
* symfile.c (default_symfile_offsets): Don't use ANOFFSET as an
lvalue.
2000-08-07 15:02:48 +00:00
Andrew Cagney
d471ea57ab
Re-implement ``set/show remote Z-packet ...'' commands so that each Z
...
packet sub-type can be explicitly controled.
2000-08-04 09:32:19 +00:00
Andrew Cagney
8e2481732f
Use add_set_auto_boolean_cmd() to implement ``set remote ?-packet''
...
command.
2000-08-02 05:40:25 +00:00
Kevin Buettner
fba45db2fa
Protoization.
2000-07-30 01:48:28 +00:00
J.T. Conklin
8c9cdfe810
* remote-nindy.c (nindy_fetch_word, nindy_store_word): Removed
...
(nindy_xfer_inferior_memory): Use dcache_xfer_memory() instead of
breaking transfer into chunks and using nindy_fetch_word() and
nindy_store_word().
* remote-bug.c (bug_xfer_memory): Use dcache_xfer_memory() instead
of breaking transfer into chunks and using gr_fetch_word() and
gr_store_word().
* remote.c (remote_fetch_word, remote_store_word): Removed.
* remote-utils.h (gr_fetch_word, gr_store_word): Removed.
* remote-utils.c (gr_fetch_word, gr_store_word): Removed.
* dcache.h (dcache_fetch, dcache_poke, dcache_poke_block): Removed.
* dcache.c (dcache_fetch, dcache_poke): Removed.
2000-06-19 18:59:07 +00:00
Kevin Buettner
8ab8638139
Eliminate use of PARAMS.
2000-06-12 01:33:49 +00:00
Andrew Cagney
53904c9e67
Change signature of function add_set_enum_cmd() so that it uses
...
constant character pointers. Update everything.
As a consequence fix infrun's follow-fork plugging a small memory leak.
2000-06-08 00:52:56 +00:00
Kevin Buettner
507f3c78fb
Eliminate PARAMS from function pointer declarations.
2000-06-04 00:41:10 +00:00
Kevin Buettner
a14ed312fd
PARAMS removal.
2000-05-28 01:12:42 +00:00
Andrew Cagney
1ed2a1352d
Fix signature of add_set_enum_cmd. Change VAR parameter to char**.
...
Cleanup signature of add_set_cmd. Change VAR parameter to void*.
2000-05-16 03:03:13 +00:00
Elena Zannoni
b8fbeb1874
Elena Zannoni <ezannoni@kwikemart.cygnus.com>
...
* objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
SECT_OFF_RODATA): Define as functions of OBJFILE. Add
sect_index_text, sect_index_data, sect_index_rodata,
sect_index_bss to objfile structure.
* gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
SECT_OFF_RODATA): Remove.
* objfiles.c (allocate_objfile): Initialize
sect_index_{text,data,bss,rodata} to -1, for error detection.
* symfile.c (default_symfile_offsets): Initialize
sect_index_{text,data,bss,rodata} from bfd information.
* xcoffread.c (xcoff_symfile_offsets): Ditto.
* somread.c (som_symfile_offsets): Initialize
sect_index_{text,data,bss,rodata}.
* coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c,
hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c,
mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h,
remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c,
stabsread.c, symfile.c, xcoffread.c:
Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the
current objfile.
* xcoffread.c: Add new field objfile to find_targ_sec_arg.
2000-05-04 16:52:34 +00:00
Andrew Cagney
bc1821e659
* remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.c
...
(MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h
(BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE),
gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR,
FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS,
ADDRESS_TO_POINTER): Delete default definition. Handled by
gdbarch.
* gdbarch.sh: Make multi-arch defaults, defaults for non-
multi-arch targets.
(REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC,
MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT,
REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION):
Provide default/legacy implementation.
(REGISTER_NAMES, CALL_DUMMY): Allow legacy definition.
* gdbarch.h, gdbarch.c: Re-generate.
2000-04-17 02:27:37 +00:00
Andrew Cagney
480ff1fb28
Fix thread-extra-info name. qfThreadExtraInfo ->qThreadExtraInfo.
2000-03-29 08:29:00 +00:00
Michael Snyder
9d1f7ab2c8
2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
...
* remote.c (remote_threads_extra_info): new function.
Implement the extra thread info query for "info threads".
(remote_threads_info): clean up a bit.
(use_threadinfo_query, use_threadextra_query): new variables.
Control whether GDB will use the new or old protocol for
thread info queries.
(remote_open_1): initialize new variables.
(remote_async_open_1): ditto.
(remote_cisco_open): ditto.
2000-03-21 01:22:05 +00:00
Elena Zannoni
cca728d0c9
2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
...
* remote.c (remote_async_detach): Use target_mourn_inferior(), to
make sure that all is cleaned up after we disconnect from the
target.
(remote_detach): Ditto.
2000-02-18 17:00:18 +00:00
Andrew Cagney
03f2053f96
Replace ../include/wait.h with gdb_wait.h.
2000-02-09 08:52:47 +00:00
Andrew Cagney
ce808e9171
From JTC: Reduce default remote_timeout to two. Flush defunct code.
2000-02-09 03:28:18 +00:00
Andrew Cagney
1216fa2c08
From JTC: Handle NAK from target stub.
2000-02-09 02:51:55 +00:00
Jason Molenda
8b93c6380e
import gdb-2000-02-02 snapshot
2000-02-03 04:14:45 +00:00
Jason Molenda
d9fcf2fb1c
import gdb-2000-02-01 snapshot
2000-02-02 00:21:19 +00:00
Jason Molenda
0d06e24ba7
import gdb-2000-01-10 snapshot
2000-01-11 03:07:37 +00:00
Jason Molenda
ed9a39ebf9
import gdb-1999-12-21 snapshot
1999-12-22 21:45:38 +00:00
Jason Molenda
c4093a6ab3
import gdb-1999-12-13 snapshot
1999-12-14 01:06:04 +00:00
Jason Molenda
c2d11a7da0
import gdb-1999-12-06 snapshot
1999-12-07 03:56:43 +00:00
Jason Molenda
11cf874164
import gdb-1999-11-08 snapshot
1999-11-09 01:23:30 +00:00
Jason Molenda
e514a9d642
import gdb-1999-10-25 snapshot
1999-10-26 03:43:48 +00:00
Jason Molenda
917317f4c6
import gdb-1999-10-18 snapshot
1999-10-19 02:47:02 +00:00
Jason Molenda
2df3850c7b
import gdb-1999-10-11 snapshot
1999-10-12 04:37:53 +00:00
Jason Molenda
2acceee218
import gdb-1999-10-04 snapshot
1999-10-05 23:13:56 +00:00
Jason Molenda
6426a772a2
import gdb-1999-09-28 snapshot
1999-09-28 21:55:21 +00:00
Jason Molenda
c2c6d25f0d
import gdb-1999-09-21
1999-09-22 03:28:34 +00:00
Jason Molenda
cff3e48be7
import gdb-1999-09-13 snapshot
1999-09-13 21:40:00 +00:00
Stan Shebs
d4f3574e77
import gdb-1999-09-08 snapshot
1999-09-09 00:02:17 +00:00
Jason Molenda
104c1213b4
import gdb-1999-08-30 snapshot
1999-08-31 01:14:27 +00:00
Jason Molenda
53a5351d90
import gdb-1999-08-23 snapshot
1999-08-23 22:40:00 +00:00
Jason Molenda
7be570e7ce
import gdb-1999-08-16 snapshot
1999-08-16 19:57:19 +00:00
Jason Molenda
96baa820df
import gdb-1999-08-09 snapshot
1999-08-09 21:36:23 +00:00