aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
AgeCommit message (Collapse)AuthorFilesLines
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-7/+7
1999-08-09import gdb-1999-08-09 snapshotJason Molenda1-18/+2
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-618/+651
1999-07-07import gdb-1999-07-07 pre reformatJason Molenda1-28/+34
1999-04-26import gdb-19990422 snapshotStan Shebs1-5/+3
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+3655
1999-04-16Initial creation of sourceware repositoryStan Shebs1-3655/+0
1999-01-22Fix for PR 18873:Mark Alexander1-1/+4
* remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint. (common_breakpoint): Restore support for instruction breakpoints on non-LSI targets.
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-14/+21
ChangeLog-gdbtk for details.
1998-11-25CARP: --enable-build-warnings=-Werror: Fix problems stopping GDB beingAndrew Cagney1-1/+1
canadian-crossed to host i386-cygwin.
1998-07-23 * remote-mips.c (remote_mips_insert_hw_breakpoint,Dawn Perchik1-0/+30
remote_mips_remove_hw_breakpoint): New functions for hardware breakpoints on LSI targets. * config/mips/tm-embed.h (target_remove_hw_breakpoint, target_insert_hw_breakpoint): Define to call remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint, respectively.
1998-02-17 * remote-mips.c (mips_request): Use unsigned long during parsingFrank Ch. Eigler1-2/+2
returned value from monitor, to prevent accidental sign extension.
1998-02-12* Changed MIPS monitor interface code to be tolerant of slightlyFrank Ch. Eigler1-12/+1
different IDT/sim 6.0 behavior. Extra time and laxness is alloted for monitor entry and exit.
1997-12-22 * remote-mips.c (_initialize_remote_mips): Fix DDB doc string.Mark Alexander1-2/+2
1997-10-06Remove sanitized-out Magic Cap support, will never be releasedStan Shebs1-18/+0
1997-10-05 * remote-mips.c (mips-initialize): Work around flakiness inMark Alexander1-0/+5
some versions of PMON after loading a program.
1997-06-17 * infrun.c (wait_for_inferior): Mark registers as invalid whenMark Alexander1-358/+535
stepping over an instruction that triggered a watchpoint. * remote-mips.c: Numerous changes to support hardware breakpoints and watchpoints on LSI MiniRISC and TinyRISC boards. * mips-tdep.c: Move MIPS16-related macros to config/mips/tm-mips.h. (mips_breakpoint_from_pc): Account for different breakpoint instructions used by PMON and IDT monitor. * config/mips/tm-embed.h: Enable hardware breakpoints on embedded MIPS targets. * config/mips/tm-mips.h: Define breakpoint instructions for PMON and IDT monitor. Move MIPS16-related macros here from mips-tdep.c.
1997-04-15 * remote-mips.c (mips_load): Ensure that PC gets updatedMark Alexander1-4/+4
after a load on LSI target.
1997-03-27 * remote-mips.c: Clean up comment and extraneous semicolonMark Alexander1-11/+12
for mips_monitor_prompt variable.
1997-03-27 * remote-mips.c: Add `set monitor-prompt' command.Mark Alexander1-25/+22
1997-03-06 * remote-mips.c (mips_exit_debug): Some IDT boards don'tBob Manson1-1/+1
send the full exit string. Fixes a bug when trying to load to our mips IDT boards.
1997-02-27 * remote-mips.c: Put back the form feeds.Mark Alexander1-18/+10
1997-02-27 * remote-mips.c: Remove form feeds (^L) from source.Mark Alexander1-24/+45
(mips_initialize): LSI PMON doesn't support 'set regsize' command. (pmon_wait): Don't need to exit and re-enter debug mode on LSI PMON after a continue; it causes target program misbehavior. (mips_fetch_register): Don't fetch unsupported registers; this cuts down on wasted serial traffic.
1997-02-11 * mips-tdep.c (non_heuristic_proc_desc): New function.Mark Alexander1-18/+110
(find_proc_desc): Move non-heuristic proc search code into separate function. (gdb_print_insn_mips): Use non-heuristic method to find procedure descriptor, to avoid prologue examination when disassembling. * remote-mips.c: Add support for new "lsi" target (LSI MiniRISC aka MicroMeteor board). (mips_exit_debug): Prevent protocol reinitialization if an error occurs while exiting debug mode.
1997-02-09 * remote-mips.c (common_breakpoint): Prevent 64-bit addressesMark Alexander1-0/+1
from being sent to 32-bit targets by masking off upper bits. * mips-tdep.c (heuristic_proc_start): Mask off upper 32 bits of PC on 32-bit targets. (mips16_heuristic_proc_desc): Recognize 'addiu s1,sp,n' as a frame setup instruction. (mips32_heuristic_proc_desc): Fix warning found by gcc -Wall. (mips16_skip_prologue): Recognize 'addiu s1,sp,n' as a valid prologue instruction. Fix warnings and bugs found by gcc -Wall. * buildsym.c (finish_block): Improve handling of overlapping blocks; fixes problem on MIPS16 printing function arguments.
1996-12-19 * values.c (unpack_double): Make it compile with MSVC++ 2.x.Mark Alexander1-2/+7
* remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g. when using MSVC++. (common_open): Fix help string.
1996-11-27 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.Mark Alexander1-11/+31
(mips_addr_bits_remove): Declare. * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post errors when hitting breakpoints during inferior function calls in 64-bit programs. (fix_sign_extension): Make public, rename to mips_addr_bits_remove. * utils.c (paddr_nz, preg_nz): New functions, similar to paddr and preg but don't print leading zeroes. * defs.h (paddr_nz, preg_nz): Declare. * remote-mips.c: Use paddr_nz instead of paddr throughout to reduce packet size. (pmon_end_download): Improve timeout error handling.
1996-11-22 * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN.Mark Alexander1-116/+334
(common_breakpoint): Use paddr instead of %x to print 64-bit values. (heuristic_proc_desc): Add tests for 64-bit instructions. (init_extra_frame_info, mips_push_arguments): Recognize additional registers for EABI. * remote-mips.c: Extend DDB target to allow TFTP downloads. * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS): Define.
1996-11-12Patches to add Irix6 host support.Jim Wilson1-1/+1
1996-11-11 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,Dawn Perchik1-25/+33
config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support. * defs.h: Cleanup; add prototypess * corefile.c: Change FIXME #ifdef * win32-nat.c: Include windefs instead of windows.h. * utils.c: Add routines for printing addresses and registers based on type size.
1996-10-10 * remote-mips.c: Use the correct name everywhere (DDB) for NEC'sStan Shebs1-29/+29
VR4300 target. (ddb_ops, pmon_ops): Fix the documentation strings.
1996-09-17Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-2/+5
* remote-mips.c (pmon_wait): CAIRO PMON does not require forced re-entry back into debug mode.
1996-09-16Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-2/+8
* remote-mips.c (mips_load): Ensure that the PC is explicitly loaded after a load to a CAIRO PMON system.
1996-08-30Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-18/+104
* remote-mips.c: Provide support for CAIRO target board. (cairo_open, cairo_ops): Added. (mips_monitor_type): MON_CAIRO Added. (mips_enter_debug, mips_exit_debug, mips_initialize, mips_fetch_registers, common_breakpoint, mips_load, _initialize_remote_mips): Updated. Add simple support for NEC CAIRO Vr4300 development board.
1996-08-14 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.Fred Fish1-2/+0
* config/mips/nm-irix3.h (get_longjmp_target): Add prototype. * remote-mips.c (mips_read_processor_type): Remove prototype. * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static. * irix5-nat.c (fetch_core_registers): Add prototype.
1996-05-28Removed EINVAL reference in remote-mips.c, and put a hardcoded 22 in itsGeoffrey Noer1-1/+1
place which reflects what the boards return.
1996-04-19 * remote-mips.c (encoding): Don't specify size, to avoid bug inIan Lance Taylor1-1/+1
SunOS native compiler.
1996-03-03Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-1/+2
* remote-mips.c (common_breakpoint): Explicitly terminate the returned buffer.
1996-02-12 * somsolib.c (som_solib_add): Use xmalloc rather than bareFred Fish1-2/+2
unchecked call to malloc. * remote-mips.c (pmon_load_fast): ditto. * remote-mm.c (mm_open): ditto. * hpread.c (hpread_lookup_type): ditto. * remote-adapt.c (adapt_open): ditto.
1996-01-16Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion1-99/+923
* remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset, pmon_checkset, pmon_make_fastrec, pmon_check_ack, pmon_load_fast): New functions. Support for the PMON monitor world. (common_open): New function to merge support for different monitors. (mips_open): Use common_open(). (mips_send_command): New function. (mips_send_packet): Scan out-of-sequence packets. (mips_enter_debug, mips_exit_debug): New functions. (pmon_ops): New target definition structure. These changes provide the initial support for the PMON (3.0.83) monitor that appears on the Cogent (CMA101) Vr4300 development board. The changes do not affect the IDT monitor support, other than in the area of dealing with out-of-sequence packets.
1996-01-09 * remote-mips.c (mips_receive_header): Recognize \012 insteadStan Shebs1-1/+7
of \n, but write \n when program sends a \012. * ser-mac.c (mac_input_buffer): Increase size of buffer.
1995-12-07 * remote-mips.c (mips_receive_header): Allow mips_syn_garbage to beStu Grossman1-1/+12
user-settable (via set syn-garbage-limit). Setting it to -1 makes it unlimited.
1995-11-08 * remote-mips.c (mips_initialize): Fix brain damage found byStu Grossman1-2/+0
Jamie. Basically had case statement in the wrong place... * (mips_load): Remove unnecessary `db tty0' command. It's all handled by mips_initialize now.
1995-11-08 * remote-mips.c (mips_initialize): Fix brain damage found byStu Grossman1-5/+8
Jamie. Basically had case statement in the wrong place...
1995-11-07* remote-mips.c (mips_initialize): Updated to talk to VR4300 RISQJackie Smith Cashion1-14/+11
monitor board. The mips_initialize() code seemed to have a "funny" switch statement. I also removed an unnecessary switch into debug monitor mode just before the call to mips_initialize() in mips_load().
1995-11-04 * Makefile.in (INTERNAL_CFLAGS): Add ENABLE_CFLAGS.Stu Grossman1-46/+48
* fork-child.c (fork_inferior): Add call to TARGET_CREATE_INFERIOR_HOOK to allow target specific code to get control just before the new process executes it's first instruction. * remote-mips.c (mips_initialize): Cleanup a bit. Don't try to receive a packet at first. This speeds up initialization a lot. Use TARGET_MONITOR_PROMPT instead of "<IDT>". (common_breakpoint): Use rresponse instead of rerrflg to inspect error code. * symfile.c (syms_from_objfile reread_symbols): Call TARGET_SYMFILE_POSTREAD to allow target specific code to get control after reading new symbols. * target.h: New macros TARGET_SYMFILE_POSTREAD, and TARGET_CREATE_INFERIOR_HOOK. See above for descriptions. * config/mips/{irix5.mh nm-irix5.h}: Delete nm-irix5.h. Make NAT_FILE point directly at ../nm-sysv4.h. * config/mips/{mipsm3.mh nm-m3.h}: Delete nm-m3.h. Make NAT_FILE point directly at ../nm-m3.h. * config/mips/{mipsv4.mh nm-sysv4.h}: Delete nm-sysv4.h. Make NAT_FILE point directly at ../nm-sysv4.h. * config/mips/nm-mips.h: Improve comment at top of file. * config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Change definition into a proper string. start-sanitize-gm * configure configure.in: Add support for --enable-gm. (mips*-*-magic*): Change target from magic to idt. * eval.c expprint.c expression.h parse.c remote-mips.c utils.c: Change GENERAL_MAGIC_HACKS to GENERAL_MAGIC. * magic.c magic.h: Update files from GM. * config/mips/magic.mt: Delete. No longer necessary now that we use --enable mechanism. * config/mips/tm-idt.h: Add GM stuff needed for remote GM box. * config/mips/tm-irix5.h: Add GM stuff needed for native Irix box. * config/mips/tm-magic.h: Move up to config/tm-magic.h. Move all platform specific stuff into tm-irix.h and tm-idt.h. Add defs for TARGET_SYMFILE_POSTREAD and TARGET_CREATE_INFERIOR_HOOK. end-sanitize-gm
1995-10-27 * breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGETStu Grossman1-59/+346
around calls to create_longjmp_breakpoint. Why install the breakpoints if we can't find the longjmp target? * infrun.c (wait_for_inferior): Cleanup comments near call test. * remote-mips.c: Fixed a bunch of prototypes to avoid char/int complaint from picky compilers. Add comment to mips_expect. Replace all instances of sr_get_debug with remote_debug. * (mips_readchar): Don't jam init string to monitor. mips_initialize() handles that. * (mips_receive_header): Print better message when we get too much garbage. * (mips_request): Allow caller to pass in buff to allow them to analyze the returned message. * (mips_initialize): Re-do initialization to try sending a BREAK, a ^C, and then a download escape sequence. Cleanup protocol startup. Eliminate sleeps. Clear breakpoints (if using monitor breakpoints). Re-init frame. * (mips_detach): Close down target. start-sanitize-gm * (mips_resume): Pass signal down to target. * (mips_create_inferior): Start target with TARGET_SIGNAL_PWR. end-sanitize-gm * (mips_wait): Handle return status with registers, or breakpoint stuff. * (mips_kill): Add ^C handling. * (mips_insert_breakpoint mips_remove_breakpoint): Call new breakpoint stuff if enabled. * (calculate_mask remote_mips_set_watchpoint remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint): Hardware watchpoint/breakpoint stuff. * (common_breakpoint): Common code for new monitor breakpoint commands. * (mips_load): Don't use `prompt'. It's a global variable. * top.c (dont_repeat_command): New command for use in user-defined commands to suppress auto-repeat (by hittin return key). start-sanitize-gm * utils.c (request_quit): Call target_kill here. Good idea. Needs a better implementation. end-sanitize-gm * valops.c: Add start of auto function-call abandonment capability. start-sanitize-gm * c-exp.y: Add code (currently disabled) to handle GM dynamic structures (it conflicts with @!). * eval.c (evaluate_subexp_standard): ditto. * expprint.c (print_subexp dump_expression): ditto. * expression.h (enum exp_opcode): ditto. * parse.c (length_of_subexp): ditto. * configure, configure.in: Add mip*-*-magic* target. * magic.c magic.h: Special routines to handle GM stuff (like stepping through dispatcher). end-sanitize-gm
1995-10-23The revision 2.48 change (grossman 1995/10/16) had unfortunatelyJackie Smith Cashion1-23/+17
broken the prompt spotting for the <RISQ> variant of the IDT monitor. Also took this opportunity to add the vr4300 configure.in options.
1995-10-16 * remote-mips.c: Add support for speedy (about 10x faster)Stu Grossman1-12/+298
downloads.
1995-09-01Ideally the "remote-mips.c" prompt spotting code should be updated toJackie Smith Cashion1-3/+9
spot different prompts at run-time, so as to avoid having target specific versions of gdb. This is a pending TODO. Fri Sep 1 08:25:50 1995 James G. Smith <jsmith@beauty.cygnus.com> * configure (mips64*vr4300*-*-elf): Support added. * remote-mips.c (mips_readchar): Change to allow build-time prompt string. * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT. * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h, tm-vr4300el.h}: Added.