Joel Brobecker
e4d013fc0f
Update the copyright notice of some of the files I missed
in the previous copyright update.
17 years ago
Daniel Jacobowitz
9b254dd1ce
Updated copyright notices for most files.
19 years ago
Joel Brobecker
1d52ba212b
Switch the license of all .h files to GPLv3.
19 years ago
Daniel Jacobowitz
6aba47ca06
Copyright updates for 2007.
20 years ago
Andrew Cagney
113dd8b27d
2003-02-27 Andrew Cagney <cagney@redhat.com>
* remote-sim.h (sim_open, sim_load, sim_create_inferior): Rename
_bfd to bfd.
23 years ago
Andrew Cagney
836cc9f493
Index: include/gdb/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.c (gdbsim_insert_breakpoint)
(gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
code.
Index: include/gdb/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* remote-sim.h (SIM_RC): Delete unused SIM_RC_UNKNOWN_BREAKPOINT,
SIM_RC_INSUFFICIENT_RESOURCES and SIM_RC_DUPLICATE_BREAKPOINT.
(sim_set_breakpoint, sim_clear_breakpoint): Delete declarations.
(sim_clear_all_breakpoints, sim_enable_breakpoint): Ditto.
(sim_enable_all_breakpoints, sim_disable_breakpoint): Ditto.
(sim_disable_all_breakpoints): Ditto.
Index: sim/common/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com>
* Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
(sim-break_h): Delete macro.
(sim-break.o): Delete rule.
* sim-break.c: Delete file.
* sim-break.h: Delete file.
* sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
(STATE_BREAKPOINTS): Delete macro.
(sim_state_base): Delete field breakpoints.
* sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
sim_break_install to array.
23 years ago
Andrew Cagney
75c4388adb
Index: sim/common/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* run-sim.h: Add #ifdef RUN_SIM_H wrapper.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
to here from "gdb/remote-sim.h".
Index: include/gdb/ChangeLog
2002-07-17 Andrew Cagney <cagney@redhat.com>
* remote-sim.h: Update copyright.
(sim_set_callbacks, sim_size, sim_trace)
(sim_set_trace, sim_set_profile_size, sim_kill): Delete. Moved to
"sim/common/run-sim.h".
24 years ago
Andrew Cagney
3c25f8c7b0
Move include/callback.h and include/remote-sim.h to include/gdb/.
Update accordingly.
24 years ago
Nick Clifton
4f1d9bd8e2
Fix typos in ChangeLogs; add coff/external.h; fix copyright dates
25 years ago
Andrew Cagney
baa7ae6f10
When SIM_HAVE_ENVIRONMENT: use sim_set_trace() to enable tracing
instead of sim_trace() to run the program; include support for ``-o''
option (operating environment); when a signal occurs, only continue
execution when operating environment mode.
Update d10v.
27 years ago
Andrew Cagney
c1a8de50ed
(sim_resume): Clarify use of SIGGNAL.
(sim_stop_reason): Clarify meaning of sim_signalled.
27 years ago
Richard Henderson
252b5132c7
19990502 sourceware import
27 years ago
Stan Shebs
071ea11e85
Initial creation of sourceware repository
27 years ago
Andrew Cagney
fbb8b6b9ab
For sim_fetch_register / sim_store_register: Add LENGTH parameter,
return actual size of register, 0 if not applicable, -1 of legacy
implementation.
29 years ago
Andrew Cagney
aaa11abe42
Clarify meaning of sim_signalled's SIGRC argument. Document that this
isn't possible in sim-reason.c and just return the target SIGRC
instead.
For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*.
Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead
of `run' it single steps the simulator. Allows testing of single step
without full GDB.
29 years ago
Rob Savoye
5805612890
* include/libiberty.h: Add extern "C" { so it can be used with C++
progrms.
* include/remote-sim.h: Add extern "C" { so it can be used with C++
programs.
29 years ago
Andrew Cagney
9e03a68f13
Add LMA_P and DO_WRITE arguments to sim/common/sim-load.c:sim_load_file().
Update all simulators.
Clarify behavour of sim_load in remote-sim.h
29 years ago
Andrew Cagney
5ccb90201f
remote-sim.h: Clarify sim_read, sim_write MEM argument.
29 years ago
Stu Grossman
94dbc1213b
* remote-sim.h (SIM_RC): Add a bunch of new return codes for
breakpoint stuff.
* Add functions to tell the simulator to set/clear/enable/disable
intrinsic breakpoints.
29 years ago
Andrew Cagney
fafce69ab1
Add ABFD argument to sim_create_inferior. Document.
Add file sim-hload.c - generic load for hardware only simulators.
Review each simulators sim_open, sim_load, sim_create_inferior so that
they more closely match required behavour.
29 years ago
Andrew Cagney
247fccdeb5
Add ABFD argument to sim_open call. Pass through to sim_config so
that image properties such as endianness can be checked.
More strongly document the expected behavour of each of the sim_*
interfaces.
Add default endian argument to simulator config macro
SIM_AC_OPTION_ENDIAN. Use in sim_config.
29 years ago
Andrew Cagney
aa02a0b0f2
sim_kill() isn't used.
29 years ago
Andrew Cagney
1fa0cc2dfc
Restrict simulator commands to an enabled simulator.
29 years ago
Andrew Cagney
50a2a69182
Watchpoint interface.
29 years ago
Andrew Cagney
ff82f21409
Part II of adding callback argument to sim_open(). Update all the
other simulators; remove SIM_DESC from depreciated function
sim_set_callbacks().
29 years ago
Andrew Cagney
24aa2b57af
Depreciate sim_set_callbacks() function. Set simulator callbacks
during sim_open().
29 years ago
Andrew Cagney
2e61a3ad9c
Graft sim/common event and other code onto the mips simulator.
29 years ago
Andrew Cagney
8517f62b16
Ref gdb/11763 - can't stop a running simulator:
o Provide poll_quit callback to simulators
so that they can poll for SIGINT on
clueless OS's.
o Add sim_stop to simulators so that clients
can request a halt (eg gdbtk's STOP button)
Works for PPC!
o Re-arange remote-sim.c so that the
hard work is moved from gdbsim_resume()
to gdbsim_wait() (where it should be).
29 years ago
David Edelsohn
a1cb1f4b9c
* remote-sim.h (struct _bfd): Declare.
(sim_load): Return SIM_RC. New arg `abfd'.
(sim_create_inferior): Return SIM_RC. Delete arg `start_address'.
29 years ago
Andrew Cagney
87e43259f1
Cleanups to compile under FreeBSD
29 years ago
David Edelsohn
38498962ba
(sim_open): Update comment.
29 years ago
David Edelsohn
b0d8c28f61
* remote-sim.h (SIM_OPEN_KIND, SIM_RC): New enums.
(sim_open): New argument `kind'.
29 years ago
Andrew Cagney
05e4e44f95
* remote-sim.h: New file, copied in from gdb/remote-sim.h. One
day this will be placed in a directory of its own.
29 years ago
David Edelsohn
8f2d2d61fa
Add some more comments.
30 years ago
David Edelsohn
286f83b430
* remote-sim.h (sim_state, SIM_DESC): New types.
(sim_open): Return a `descriptor' as result.
(*): New argument of descriptor result from sim_open.
* remote-sim.c (gdbsim_desc): Renamed from gdbsim_open_p.
(gdbsim_open): Record result of sim_open in gdbsim_desc.
Pass argv list to sim_open, argv[0] = pseudo program name.
(*): Pass gdbsim_desc to sim_foo fns.
30 years ago
David Edelsohn
163a75afdb
* remote-sim.h: Update some comments.
* remote-sim.c (gdb_os_error): New function.
(init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
(gdb_os_printf_filtered): Use gdb_stdout, not stdout.
30 years ago
David Edelsohn
4da8b2a5f4
* callback.h: Deleted, moved to ../include.
* callback.c: Deleted, moved to ../sim/common.
* Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
(callback.o): Delete rule.
* remote-sim.h: No longer include callback.h
(sim_callback_write_stdout): Delete prototype.
* remote-sim.c (init_callbacks,end_callbacks): New functions.
(gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
(gdb_callback, callbacks_initialized): New static globals.
(gdbsim_open): Call init_callbacks.
(gdbsim_close): Call end_callbacks.
(simulator_command): Call init_callbacks.
30 years ago
Steve Chamberlain
4a29aa8458
* srcwin.cpp (CSrcScroll1::OnDraw): Don't show disabled
splats unless a breakpoint is possible.
* gui.mak: Include mips config.
* prebuilt/mips/elf32-target.h: Regenerated.
31 years ago
Steve Chamberlain
cc274a2ecb
Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
(GETENV_PROVIDED, FCLOSE_PROVIDED): New.
* doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
* remote-sim.[ch] (sim_callback_write_stdout): New.
31 years ago
Steve Chamberlain
6b009ef680
Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
(GETENV_PROVIDED, FCLOSE_PROVIDED): New.
* doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
* remote-sim.[ch] (gdbsim_write_stdout): New.
31 years ago
Fred Fish
6c9638b444
Update FSF address.
31 years ago
Stan Shebs
fb506180fa
* config/h8300/h8300.mt: Renamed from h8300hms.mt.
* config/h8500/h8500.mt: Renamed from h8500hms.mt.
* config/z8k/z8k.mt: Renamed from z8ksim.mt.
* configure, configure.in: Update to reflect renamings.
* remote-sim.c (sim): New command, passes commands to simulator.
(simulator_command): New function.
(gdbsim_ops): Clean up.
* remote-sim.h (sim_do_command): Declare.
* sh-tdep.c (memory_size): Remove command.
* Makefile.in (SIM, SIM_OBS): New variables.
(CLIBS, CDEPS): Add value of SIM.
(DEPFILES): Add value of SIM_OBS
* config/arm/arm.mt, config/h8300/h8300.mt, config/h8500/h8500.mt,
config/sh/sh.mt, config/sparc/sp64sim.mt, config/w65/w65.mt,
config/z8k/z8k.mt: Remove simulator files from TDEPFILES,
define in SIM_OBS and SIM.
config/sparc/sp64sim.mt (SIMFILES): Remove.
* remote-z8k.c: Remove, was superseded by remote-sim.c
* Makefile.in, mpw-make.in: Remove references to remote-z8k.c.
31 years ago
David Edelsohn
47424e7931
* remote-sim.h (sim_verbose): Delete.
Document callbacks needed.
(sim_*): Change result to void where there isn't one.
(sim_open): Clarify argument and error response.
(sim_close): Declare.
(sim_load): Change bfd_handle argument to file name. Clarify result.
(sim_create_inferior): Renamed from sim_set_args.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn argument.
* remote-sim.c (gdbsim_kill): Add comment describing purpose.
(gdbsim_load): Try sim_load first.
(gdbsim_create_inferior): Call sim_create_inferior.
(gdbsim_open): Handle args == NULL. Update call to sim_open.
(gdbsim_close): Call sim_close.
(gdbsim_files_info): Update call to sim_info.
(gdbsim_ops): Realign comments.
32 years ago
David Edelsohn
c7efaa16dc
* remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
(sim_set_pc): Update prototype.
(sim_read, sim_write): Ditto, and use unsigned char *buf.
(sim_fetch_register, sim_store_register): Use unsigned char *buf.
(sim_info): Pass printf function as argument, add verbose argument.
(sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
(gdbsim_files_info): Update call to sim_info.
33 years ago
David Edelsohn
592f517aa3
* remote-sim.h (sim_stop): New enum.
(sim_stop_signal): Change prototype, result is enum sim_stop.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
33 years ago
Jim Kingdon
40b92220c5
* remote-sim.h: New file.
* remote-sim.c: Add remote debug feature. Rename stuff to distinguish
interface to simulator from gdb-specific stuff. Other changes.
start-sanitize-v9
* remote-sp64sim.c: Renamed to remote-sim.c.
Use sr_get_debug instead of our own sim_verbose/simif_snoop.
Use gnutarget in call to bfd_openr.
Rename simif_* to gdbsim_*.
* config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
end-sanitize-v9
33 years ago
David Edelsohn
b562a1861c
remote-sim.h: New file.
remote-sp64sim.h (sim_*): External fns. (simif_*): Internal fns.
sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
(dump_ccreg, sparc_print_register_hook): New fns.
33 years ago