aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
AgeCommit message (Collapse)AuthorFilesLines
1994-11-18 * defs.h, infcmd.c (reg_names): Don't declare as constant.Stan Shebs1-45/+41
* remote-mips.c (mips_open): Read and set the processor type. * mips-tdep.c (mips_set_processor_type): Always return an int.
1994-11-03 * corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,Stu Grossman1-0/+1
remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c, remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c, w89k-rom.c, target.c, target.h: Add support for target_stop(). * gdbtk.c (gdb_stop): Switch to target_stop(). * ChangeLog: Fix comment to make shebs happy...
1994-10-06 * remote-mips.c (break_insn): Remove.Ian Lance Taylor1-10/+4
(BREAK_INSN, BREAK_INSN_SIZE): Define. (mips_insert_breakpoint): Use BREAK_INSN, not break_insn. (mips_remove_breakpoint): Likewise.
1994-09-15 * remote-mips.c (mips_error): Place NORETURN macro correctly.Stan Shebs1-1/+1
* TODO: Add item about START_INFERIOR_TRAPS_EXPECTED.
1994-08-17 * remote-mips.c: Remove unused declaration of mips_load.Jim Kingdon1-3/+0
1994-08-10Modified Files:Kung Hsu1-0/+9
ChangeLog remote-mips.c * remote-mips.c (mips_open): add code to handle baud rate.
1994-07-18Modified Files:Kung Hsu1-0/+2
remote-mips.c ChangeLog * remote-mips.c (mips_readchar): Fix a bug in checking <IDT> prompt.
1994-06-30 * remote-mips.c: Replace all \r chars with \015.Stan Shebs1-5/+20
(mips_receive_header): Display control characters readably. (mips_xfer_memory): Add a simple progress display.
1994-02-05 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM orJim Kingdon1-4/+12
ZERO_REGNUM, just read it as zero without talking to the board.
1994-02-05 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):Jim Kingdon1-15/+79
New functions. (mips_store_word): Change calling convention to return errors, and to provide old contents if the caller wants it. (mips_xfer_memory): Deal with errors from mips_store_word. * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT define now that remote-mips.c doesn't use BREAKPOINT.
1994-01-31* remote-mips.c: Use unfiltered, not filtered, output most places.Jim Kingdon1-15/+39
1994-01-28* remote-mips.c (mips_ops): Fix docstring.Jim Kingdon1-2/+4
1994-01-22 * remote-mips.c (mips_initialize): Clear mips_initializing viaJim Kingdon1-2/+16
cleanup chain, not directly. * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are munging the timeout due to the limited range of c_cc[VTIME].
1994-01-14 * remote-mips.c (mips_request, mips_wait): Correct prototypes.Ian Lance Taylor1-2/+2
1994-01-11 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocolJim Kingdon1-10/+22
to convert a signal number with appropriate bounds checking.
1994-01-11* remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).Jim Kingdon1-3/+3
1994-01-06 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.Jim Kingdon1-1/+1
* Move target_signal_from_host, target_signal_to_host, and store_waitstatus from inftarg.c to target.c. procfs needs them. * target.c: Include "wait.h" and <signal.h>. * target.h, infrun.c (proceed), proceed callers: Pass new code TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with enums being treated as unsigned and is cleaner. * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or TARGET_SIGNAL_0. * infcmd.c (signal_command), infrun.c (signals_info): Don't allow user to specify numeric equivalent of TARGET_SIGNAL_DEFAULT.
1994-01-04Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs1-2/+2
* remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
1994-01-04 * target.h: Add enum target_waitkind, enum target_signal, andJim Kingdon1-18/+37
struct target_waitstatus. Change status argument to target_wait to be struct target_waitstatus * instead of int *. * target.h, infrun.c, all targets: Change type of signal arguments to resume(), proceed(), and target_resume() from int to enum target_signal. * All targets (*_wait, *_resume): Change accordingly. * infcmd.c (program_info, signal_command), throughout infrun.c, * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff. * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex signal code stuff right with the new signals would be non-trivial). * inferior.h (stop_signal): Make it enum target_signal not int. * target.c, target.h (target_signal_to_string, target_signal_to_name, target_signal_from_name): New functions. * inftarg.c, target.h (target_signal_to_host, target_signal_from_host, store_waitstatus): New functions. * procfs.c (procfs_notice_signals): Use them. * i960-tdep.c (i960_fault_to_signal): New function, to replace print_fault. * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
1993-12-31 * remote-mips.c: Add timeout parameter to mips_request andJim Kingdon1-25/+31
mips_receive_packet. (callers): pass in mips_receive_wait except mips_initialize (where we use it to clean up the kludge where we had been changing mips_receive_wait temporarily) and mips_wait (where we pass in -1 for no timeout).
1993-12-31 * remote-mips.c (mips_error): New function.Jim Kingdon1-21/+46
* remote-mips.c: Use it instead of error() most places. * remote-mips.c (mips_receive_packet): New arg throw_error. (mips_initialize): Use it not catch_errors. * defs.h: Declare error_pre_print and warning_pre_print here... * main.c: ...not here.
1993-12-30 * remote-mips.c (mips_error): New function.Jim Kingdon1-22/+52
* remote-mips.c: Use it instead of error() most places.
1993-12-26 * valops.c (call_function_by_hand, push_word), defs.h (push_word),Jim Kingdon1-1/+1
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c, ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c, config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c: Use REGISTER_SIZE, unsigned LONGEST, and {store,extract}_unsigned_integer, instead of sizeof (REGISTER_TYPE) and REGISTER_TYPE. * All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE. * hppa-tdep.c (pa_print_fp_reg): Remove unused variable val. * Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c. Add lynx-nat.c.
1993-11-01Change the stream argument to _filtered to GDB_FILE *.Thomas Lord1-5/+5
Change all references to stdout/stderr to gdb_stdout/gdb_stderr. Replace all calls to stdio output functions with calls to corresponding _unfiltered functions (`fprintf_unfiltered') Replaced calls to fopen for output to gdb_fopen. Added sufficient goo to utils.c and defs.h to make the above work. The net effect is that stdio output functions are only directly used in utils.c. Elsewhere, the _unfiltered and _filtered functions and GDB_FILE type are used. In the near future, GDB_FILE will stop being equivalant to FILE. The semantics of some commands has changed in a very subtle way: called in the right context, they may cause new occurences of prompt_for_continue() behavior. The testsuite doesn't notice anything like this, though. Please respect this change by not reintroducing stdio output dependencies in the main body of gdb code. All output from commands should go to a GDB_FILE. Target-specific code can still use stdio directly to communicate with targets.
1993-10-21add pid argument to mips_waitDavid D. Zuhn1-1/+2
1993-10-16* breakpoint.c (breakpoint_thread_match break_command_1):Stu Grossman1-1/+1
Thread-specific breakpoint support. * breakpoint.h (struct breakpoint): Add thread id field. * fork-child.c (fork_inferior): Move call to init_thread_list() back a bit so that init_trace_fun can do thread functions. * hppa-tdep.c (restore_pc_queue): Add pid to call to target_wait. * hppab-nat.c (child_resume): Handle default pid. * hppah-nat.c (child_resume): Handle default pid. * i386lynx-nat.c (child_wait): New arg pid. * inflow.c (kill_command): Reset thread list. * infptrace.c (child_resume): Handle default pid. * infrun.c: Thread-specific breakpoint support. * inftarg.c (child_wait): Add pid arg. * osfsolib.c (solib_create_inferior_hook): Add pid to call to target_resume. * procfs.c: Multi-thread support. * remote-bug.c (bug_wait): Add pid arg. * remote-hms.c (hms_wait): Add pid arg. * remote-mips.c (mips_wait): Add pid arg. * remote-mon.c (monitor_wait): Add pid arg. * remote-nindy.c (nindy_wait): Add pid arg. * remote-sim.c (gdbsim_wait): Add pid arg. * remote-udi.c (udi_wait): Add pid arg. * remote-vx.c (vx_wait): Add pid arg. * remote-z8k.c (sim_wait): Add pid arg. * remote.c (remote_wait): Add pid arg. * solib.c (solib_create_inferior_hook): Add pid to call to target_resume. * target.h (struct target_ops): Add pid arg to to_wait and to_notice_signals. * thread.c (valid_thread_id): New func to validate thread #s. * (pid_to_thread_id): New func to do the obvious. * thread.h: Prototypes for above. * coff-solib.c (coff_solib_add): Use nameoffset field to locate filename.
1993-09-20* remote.c, remote-mips.c: Use sr_get_debug not remote_debug.Jim Kingdon1-13/+14
1993-08-24 * target.c, target.h: Add "set remotedebug" command.Jim Kingdon1-23/+13
* remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and "set m88ksnoop" options and use generic "set remotedebug" instead.
1993-08-02Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)Stu Grossman1-3/+3
* Makefile.in (CLIBS): Reorder to make Lynx ld happy. * (HFILES): New file thread.h. * (OBS): New file thread.c. * configure.in: Host config for Lynx/386. * fork-child.c (fork_inferior): Call init_thread_list(). * infrun.c (resume): Add pid to invocation of target_resume(). * (wait_for_inferior): Pay attention to pid from target_wait(). Multi-threading code now uses this to determine what to do. * inftarg.c (child_wait): Conditionalize based on CHILD_WAIT macro. Use target_pid_to_str() macro throughout when printing pid. * inferior.h (child_resume): Add pid to prototype. * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as argument, instead of using inferior_pid. * procfs.c (procfs_resume): Pass in pid as argument. Ignored for now. Use target_pid_to_str() macro throughout for printing process id. * remote-adapt.c (adapt_resume): Pass in pid as argument. * remote-eb.c (eb_resume): Pass in pid as argument. * remote-es.c (es1800_resume): Pass in pid as argument. * remote-hms.c (hms_resume): Pass in pid as argument. * remote-mips.c (mips_resume): Pass in pid as argument. * remote-mm.c (mm_resume): Pass in pid as argument. * remote-monitor.c (monitor_resume): Pass in pid as argument. * remote-nindy.c (nindy_resume): Pass in pid as argument. * remote-sa.sparc.c (remote_resume): Pass in pid as argument. * remote-sim.c (rem_resume): Pass in pid as argument. * remote-sp64sim.c (simif_resume): Pass in pid as argument. * remote-st.c (st2000_resume): Pass in pid as argument. * remote-udi.c (udi_resume): Pass in pid as argument. * remote-vx.c (vx_resume): Pass in pid as argument. * remote-z8k.c (rem_resume): Pass in pid as argument. * remote.c (remote_resume): Pass in pid as argument. * solib.c (solid_create_inferior_hook): Pass inferior_pid to target_resume(). * target.c (normal_pid_to_str): New routine to print out process ID normally. * target.h (struct target_ops): Add pid to prototype at to_resume(). (target_resume): Add pid argument. * (target_pid_to_str): Default definition for normal type pids. * thread.c, thread.c: New modules for multi thread/process control.
1993-07-28 * remote-mips.c (_initialize_remote_mips): Added "timeout" andIan Lance Taylor1-0/+15
"retransmit-timeout" variables to set mips_receive_wait and mips_retransmit_wait, respectively.
1993-07-10 * findvar.c, defs.hJim Kingdon1-15/+19
({extract,store}_{signed_integer,unsigned_integer,address}): New routines to replace SWAP_TARGET_AND_HOST. All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-06-29fix include file ordering problem (bfd.h vs. symfile.h)David D. Zuhn1-1/+1
1993-06-13 * defs.h, main.c (catch_errors): Add return_mask arg.Jim Kingdon1-1/+3
stack.c (print_frame_info): Pass RETURN_MASK_ERROR. other callers: Pass RETURN_MASK_ALL. (return_to_top_level), callers: Add return_reason arg. * utils.c (quit): Use return_to_top_level (RETURN_QUIT) instead of error (). * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Use SET_TOP_LEVEL not setjmp (to_top_level). * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
1993-06-11 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,Ian Lance Taylor1-1/+1
not an integer.
1993-06-11 * remote-mips.c (mips_send_packet): Don't print garbage characterIan Lance Taylor1-2/+1
in debugging info. (mips_request): Don't check that remote pid is 0, because sometimes it isn't.
1993-06-08 * symfile.{c,h} (generic_load): New function.Jim Kingdon1-69/+2
remote{,-nindy,-eb,-mips}.c: Use it.
1993-04-28 * Remote targets (mourn): Call unpush_target.Jim Kingdon1-0/+1
1993-04-10Fix typo, change appropriate instances of -2 to SERIAL_TIMEOUT, addIan Lance Taylor1-22/+23
explicit != 0 tests, improve comments.
1993-04-09 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert toStu Grossman1-16/+23
new serial interface.
1993-02-22 * remote-mips.c: New file; implements MIPS remote debuggingIan Lance Taylor1-28/+166
protocol. * config/idt.mt: New file; uses remote-mips.c * configure.in (mips-idt-ecoff): New target; uses idt.mt. * mips-tdep.c (mips_fpu): New variable; controls use of MIPS floating point coprocessor. (mips_push_dummy_frame): If not mips_fpu, don't save floating point registers. (mips_pop_frame): If not mips_fpu, don't restore floating point registers. (_initialize_mips_tdep): New function; let the user reset mips_fpu variable. * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not mips_fpu, don't use fp0 as floating point return register. (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point registers. Also added remote-mips.c to .Sanitize file.
1993-02-12Checkpoint. Runs "hello, world", sets breakpoints, isn't too gracefulIan Lance Taylor1-0/+1246
about program termination. This file probably should not be part of gdb 4.8, although it wouldn't do any actual harm. Not yet added to .Sanitize.