aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1997-04-19 * Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans upStu Grossman9-506/+488
that directory. * defs.h utils.c (error warning): Make message be const. * main.c (fputs_unfiltered): Only send gdb_stdout and gdb_stderr to hook. Otherwise send it to fputs. * monitor.c monitor.h (monitor_get_dev_name): New function. Does the obvious. * remote-e7000.c: Remove debugify stuff. Change printf, fprintf to _filtered forms to make output appear in GUIs. Replace all uses of SERIAL_READCHAR with readchar, which has better error checking. * (e7000_parse_device): Add prototype. * (readchar): Improve doc. Handle random serial errors. * (expect): Disable notice_quit code. It's busted. Remove serial error handling (it's now handled in readchar). Remove remote_debug echoing. That's handled in readchar as well. * (e7000_parse_device): Remove serial_flag arg. It's not necessary. * (e7000_open): Split into two pieces. Second part is e7000_start_remote, and is error protected. Now, when we connect to the target, we setup the initial frame and registers so that the user gets an immediate indication of where the target is. * (gch): Remove debug output. That's handled by readchar. * (e7000_read_inferior_memory): Handle errors better. * (_initialize_remote_e7000): Get rid of `<xxx>' things from command names. They show up when doing completion and confuse things horribly. * ser-e7kpc.c: Remove the last seven months of brain damage. Get rid of the DLL's since we can access the device directly from Win32s and Win95. Get rid of debugify crud. * serial.c: Remove debugify cruft. * (serial_logchar serial_log_command serial_write serial_readchar serial_send_break serial_close): Merge common functionality into serial_logchar. Clean up rest of routines. * sparclet-rom.c: Disembowel. Leave only download routine. Download routine now switches to remote target automatically. * top.c (disconnect): Only define if SIGHUP is defined. Cleans up MSVC/Win32 problem. * utils.c (gdb_flush): Don't call hook unless it's for gdb_stdout or gdb_stderr. * config/sh/tm-sh.h: Define TARGET_SH for WinGDB. * config/sparc/tm-sparclet.h: Remove override for prompt.
1997-04-18 * remote-sim.c (gdbsim_open): Only pass -E to sim_open ifDavid Edelsohn2-3/+13
TARGET_BYTE ORDER_SELECTABLE.
1997-04-18Ref gdb/11763 - can't stop a running simulator:Andrew Cagney3-13/+107
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).
1997-04-18Add new Java files.Per Bothner1-0/+4
1997-04-18 * defs.h (enum language): Add language_java.Per Bothner8-33/+2173
* java-exp.y, java-lang.c, java-lang.h, java-valprint.c: New files. * Makefile.in: Upadte for new files. * objfiles.c (allocate_objfile): Allow NULL bfd argument. * symfile.c (deduce_language_from_filename): Recognize .java.
1997-04-17Change FIXME comment - should replace bubble sort by merge sort, not qsort.Per Bothner1-2/+1
1997-04-17 * m32r-stub.c (stash_registers): Rewrite.David Edelsohn1-0/+6
(restore_registers): Renamed to restore_and_return. (cleanup_stash): New function. (process_exception): New function. (_catchException*): Rewrite.
1997-04-17 (gdbsim_open): Pass endian indicator as arg.David Edelsohn1-0/+1
[forgot this]
1997-04-17 * remote-sim.c (gdbsim_load): Update call to sim_load.David Edelsohn2-12/+17
(gdbsim_create_inferior): No longer pass start_address to sim_create_inferior. (gdbsim_open): Pass endian indicator as arg.
1997-04-16 * remote.c (get_offsets): Don't use scanf for interpretingStan Shebs1-0/+5
response to qOffsets.
1997-04-15 * gdbserver/Makefile.in (INSTALL_XFORM): Remove.Ian Lance Taylor1-0/+13
(INSTALL_XFORM1): Remove. (install-only): Use $(program_transform_name) directly, rather than using $(INSTALL_XFORM) and $(INSTALL_XFORM1). (uninstall): Transform name.
1997-04-15 * remote-mips.c (mips_load): Ensure that PC gets updatedMark Alexander1-4/+4
after a load on LSI target.
1997-04-14Mon Apr 14 15:54:51 1997 Geoffrey Noer <noer@pizza.cygnus.com>Geoffrey Noer2-1/+5
* procfs.c (notice_signals): fix typo
1997-04-14 * gdbserver/Makefile.in (INSTALL): Change install.sh toIan Lance Taylor1-0/+5
install-sh.
1997-04-14Mon Apr 14 11:55:27 1997 Geoffrey Noer <noer@pizza.cygnus.com>Geoffrey Noer2-1/+6
* config/i386/cygwin32.mh: remove -lkernel32 from XM_CLIBS since gcc automatically includes it
1997-04-10Thu Apr 10 13:20:53 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer4-183/+1113
* procfs.c: Substantial (but incomplete) changes to support sysv4.2mp procfs as implemented in UnixWare 2.1. The procinfo struct now has substructs like struct flt_ctl instead of just a fltset_t and has a ctl_fd, status_fd, as_fd, and map_fd instead of a single fd. Non-sysv4.2mp procfs models still have the structs and multiple fds, but don't use the entire struct and the four fds all point to the same thing. We use PROCFS_USE_READ_WRITE to decide whether to talk to procfs with reads/writes or use ioctl instead. We use HAVE_MULTIPLE_PROC_FDS to determine whether procfs really has multiple fds or not. PROC_NAME_FMT is split out into CTL_PROC_NAME_FMT, AS_PROC_NAME_FMT, MAP_PROC_NAME_FMT, STATUS_PROC_NAME_FMT. (procfs_notice_signals): now a necessary wrapper around (notice_signals): which are the new guts for noticing signals (open_proc_file): gets a new flag arg used in sysv4.2mp to determine whether or not to attempt to open the ctl_fd. (procfs_read_status): new local function, reads procfs status (procfs_write_pcwstop): new local function, writes a PCWSTOP (procfs_write_pckill): new local function, writes a PCKILL (unconditionally_kill_inferior): remove signo since we now just call procfs_write_pckill(). (procfs_xfer_memory): call lseek with SEEK_SET rather than 0 (proc_iterate_over_mappings): the whole function is ifdefed on UNIXWARE to keep things readable. Expanded the syscall_table to include new potential sysv4.2mp members. Note that all ifdefs of UNIXWARE should be eliminated if possible or renamed to describe what's being selected for a bit better. Sysv4.2mp and IRIX both have SYS_sproc so the IRIX specific code now also checks it's not UNIXWARE. * config/i386/tm-i386v42mp.h: also define HAVE_PSTATUS_T, HAVE_NO_PRRUN_T, PROCFS_USE_READ_WRITE, and UNIXWARE * config/mips/nm-irix4.h: set CTL_PROC_NAME_FMT et al to "/debug/%d" as PROC_NAME_FMT used to be
1997-04-09 * mn10300-tdep.c: Almost completely rewritten based on mn10200Jeff Law2-21/+38
port. * config/mn10300/tm-mn10300.h: Likewise. === gdb Summary === # of expected passes 3890 # of unexpected failures 8 # of expected failures 39 # of unresolved testcases 1
1997-04-09 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):Bob Manson2-2/+12
Don't call gdb_test when the command doesn't return to a gdb prompt. Oops.
1997-04-09 Fix typo.Bob Manson1-1/+1
1997-04-09 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratiutiousBob Manson1-0/+5
"Tests restarted" messages.
1997-04-08Remove mention of .Sanitize from ChangeLogsMichael Snyder1-4/+0
1997-04-08 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests.Jeff Law1-0/+4
1997-04-08 * config/pa/{hppabsd.mt hppahpux.mt hppaosf.mt}: RemoveStu Grossman3-2/+8
remote-pa.o from TDEPFILES. Nobody uses it, and besides, it's a lousy out-of-date clone of remote.c.
1997-04-08 * .Sanitize: remove sanitization for m32r.Michael Snyder1-14/+2
1997-04-08Mon Apr 7 17:46:23 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-36/+6
* .Sanitize: remove sanitization for M32R target.
1997-04-07Remove m32r sanitization.David Edelsohn5-75/+4
1997-04-04 * remote.c: Fix problems realized while showering.Stu Grossman1-0/+6
* (hexnumlen): Add prototype. Use max, not min. * (remote_write_bytes remote_read_bytes): Fix max packet size calculations to properly account for packet overhead. Also handle (probably rare) case where remote_register_buf_size isn't set.
1997-04-04 * remote.c: Fix doc for `C' and `S' commands to indicate fullStu Grossman3-52/+141
address. * (remote_ops extended_remote_ops remote_desc remote_write_size): Make static. * (remote_fetch_registers remote_write_bytes remote_read_bytes): Record size of response to fetch registers command, use this to limit size of memory read and write commands. * (push_remote_target): New function to make it possible to have another target switch to the remote target. * target.h: Add prototype for push_remote_target. * sh-tdep.c (sh_frame_find_saved_regs): Fix sign extension bugs for hosts which default to unsigned chars (such as SGI's). * (_initialize_sh_tdep): Don't set remote_write_size. It's now handled automatically in remote.c.
1997-04-03Thu Apr 3 15:21:26 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-14/+29
* gdb.base/help.exp: update help msg for INFO ADDR; add help test for INFO SYMBOL; add help tests for OVERLAY commands. * gdb.base/default.exp: add tests for INFO SYMBOL command; add tests for OVERLAY commands * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays. * gdb.base/sigall.c: add usestubs code frag * gdb.base/watchpoint.c: turn on complex watchpoint test for M32R.
1997-04-03Thu Apr 3 15:10:30 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder5-40/+163
Except for the two m32r modules, this checkin is for overlay support. * blockframe.c: blockvector_for_pc_sect(), block_for_pc_sect(), find_pc_sect_function(), find_pc_sect_partial_function(): new functions for debugging overlays; pc without section is ambiguous. * breakpoint.[ch]: add section pointer to breakpoint struct; add section argument to check_duplicates(); check section as well as pc in [breakpoint_here_p(), breakpoint_inserted_here_p(), breakpoint_thread_match(), bpstat_stop_status()]; add section argument to describe_other_breakpoints(); use INIT_SAL() macro to zero-out new sal structures; make resolve_sal_pc() fix up the sal's section as well as its pc; match on section + pc in clear_command() and delete_breakpoint(); account for overlay sections in insert_breakpoints(), remove_breakpoint() and breakpoint_re_set_one(); all this to support overlays where a PC is not unique. * exec.c: change xfer_memory() to handle overlay sections. * findvar.c: change read_var_value() to handle overlay sections. * frame.h: declaration for block_for_pc_sect() [blockframe.c]. * infcmd.c: jump_command() warns against jumping into an overlay that's not in memory. Also use INIT_SAL() to initialize sals. * infrun.c: wait_for_inferior() sets a flag to invalidate cached overlay state information; Also use INIT_SAL() to init sals. * m32r-rom.c: modify load routines to use LMA instead of VMA. * m32r-stub.c: mask exit value down to 8 bits; screen out any memory read/writes in the range 600000 to a00000, and ff680000 to ff800000 (hangs because nothing is mapped there); fix strcpy(). * maint.c: maintenance command "translate-address" supports overlays. * minsyms.c: lookup_minimal_symbol_by_pc_sect() supports overlays. * objfiles.[ch]: add ovly_mapped field to the obj_section struct; this constitutes gdb's internal overlay mapping table. Add macro ALL_OBJSECTIONS() to loop thru the obj_structs and look at overlays. Add function find_pc_sect_section(). * printcmd.c: modify print_address_symbolic() with overlay smarts; modify address_info() with overlay smarts; add function sym_info() to support the INFO SYMBOL command (translate address to symbol(s)); modify disassemble_command() to work on unmapped overlays. * source.c: use INIT_SAL() to initialize sals. * symfile.[ch]: change generic_load() to use section's LMA address instead of VMA address, for overlay sections. Add numerous functions for finding a PC's section / overlay, translating between VMA and LMA address ranges, determining if an overlay section is mapped, etc. Add several user commands for overlay debugging. Add support for a "generic" form of automatically reading overlay mapping info from the inferior (based on the default (simple) overlay manager which Cygnus provides as an example). * symtab.[ch]: add functions find_pc_sect_symtab(), find_pc_sect_psymtab(), find_pc_sect_psymbol(), find_pc_sect_line() for lookup; modify lookup_symbol and decode_line_1() to use them; modify find_function_start_sal() to account for overlay sections; add macro INIT_SAL() for initializing struct symtab_and_line. * target.c: fix a comment in the declaration of target_ops.
1997-04-03 * mips-tdep.c (mips_in_call_stub, mips_in_return_stub,Mark Alexander3-30/+60
mips_skip_stub, mips_ignore_helper): New functions for dealing with MIPS16 call/return thunks. (mips_init_frame_pc_first): New function to implement INIT_FRAME_PC_FIRST macro; includes code from old macro plus new code to skip over MIPS16 thunks. (mips_frame_chain): Skip over MIPS16 thunks. * config/mips/tm-mips.h (mips_in_call_stub, mips_in_return_stub, mips_skip_stub, mips_ignore_helper): Declare. (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE, SKIP_TRAMPOLINE_CODE, IGNORE_HELPER_CALL): New macros that invoke the above functions. (INIT_FRAME_PC_FIRST): Change to invoke mips_init_frame_pc. (mips_init_frame_pc): Declare. * infrun.c (wait_for_inferior): Use new IGNORE_HELPER_CALL macro to decide if certain library function calls should be ignored.
1997-04-03 * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequentBob Manson2-4/+23
failures. (gdb_stop_suppressing_tests): Note that tests have restarted.
1997-04-03 * config/h8300.exp: New file.Bob Manson2-0/+10
1997-04-02 * remote-sim.c (gdbsim_open): Check return code from sim_open.David Edelsohn1-0/+1
Update call to sim_open (new arg SIM_OPEN_DEBUG). Forgot the last sentence in the previous checking.
1997-04-02 * remote-sim.c (gdbsim_open): Check return code from sim_open.David Edelsohn2-3/+14
1997-04-01 * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory insteadJason Molenda2-7/+38
of gdbtk.tcl.
1997-03-31 * gdbinit.in: New file.Ian Lance Taylor5-23/+16
* .gdbinit: Remove. * configure.in: Generate .gdbinit from gdbinit.in. * configure: Rebuild.
1997-03-30 * config/tic80/tic80.mt: Disable using the simulatorFred Fish2-2/+11
until it is ready.
1997-03-29 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion.Bob Manson1-0/+2
1997-03-29 * COPYING: Install new version of file from FSF.Fred Fish1-0/+5
* copying.c (show_copying_command): Update FSF address.
1997-03-29 * gdb.base/scope.exp: It's now init0(), not init().Bob Manson1-0/+4
* gdb.base/scope0.c: For now, change init() to be init0().
1997-03-29 * config/monitor.exp: Use gdb_serial in preference to serialBob Manson2-5/+28
or netport. * lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host and it's not already set. * gdb.base/setshow.exp: Only test the run command if the target isn't using a stub and if it supports argument passing.
1997-03-28 * Makefile.in (distclean): Remove .gdbinit.Ian Lance Taylor1-0/+4
1997-03-28 * config/tic80/tm-tic80.h (NAMES_HAVE_UNDERSCORE): Define.Fred Fish2-0/+17
1997-03-28Fix faulty assumption that va_list is a pointer typeMichael Meissner1-8/+8
1997-03-28 * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) byJason Molenda1-0/+7
default, not $(srcdir).
1997-03-27 * remote-mips.c: Clean up comment and extraneous semicolonMark Alexander2-11/+17
for mips_monitor_prompt variable.
1997-03-27 * remote-mips.c: Add `set monitor-prompt' command.Mark Alexander2-25/+33
1997-03-26 Fix from Peter Schauer:Mark Alexander1-1/+12
* mdebugread.c (parse_procedure): Set address of procedure to block start; this fixes problems with shared libraries introduced by change of Mar 21.
1997-03-25 * stabs.texinfo (Stab Section Basics): Make it clear that onlyIan Lance Taylor2-4/+9
some versions of the GNU linker remove the leading N_UNDF symbol.