aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
AgeCommit message (Collapse)AuthorFilesLines
1997-08-18 * win32-nat.c (handle_exception): Return a value indicatingIan Lance Taylor1-0/+9
whether the exception was handled. Don't handle random exceptions the first time around, so that structured exception handling works. (child_wait): Check the return value of handle_exception. Set the continue_status argument to ContinueDebugEvent accordingly.
1997-08-18Add support for v850e and v850eq targets.Nick Clifton1-0/+12
1997-08-18Sun Aug 17 20:31:57 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+4
* m32r-stub.c: fix typo
1997-08-18 * remote-sds.c: Remove unused remnants of remote.c.Stan Shebs1-1/+13
(tob64): Return the result length. (sds_interrupt): Send a stop message. (sds_wait): Add debug output for signal interpretation, flag that signal was due to a trap. (sds_fetch_registers): Fill the registers array correctly for PowerPC. (sds_store_registers): Get the right values from registers array. (putmessage): Tweak length handling so checksum comes out right. (sds_insert_breakpoint, sds_remove_breakpoint): Do correctly.
1997-08-17Sun Aug 17 00:42:11 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+8
* gdbtk.c (gdb_listfuncs): New function that returns a list of all the functions in a source file.
1997-08-15 * infrun.c (wait_for_inferior): Add the symbols for anyPeter Schauer1-0/+46
newly loaded objects upon a TARGET_WAITKIND_LOADED event. Rewrite code which determines the TOC address for calling functions in the inferior under AIX. * rs6000-nat.c (find_toc_address): New function to determine the required TOC address from a function address. (_initialize_core_rs6000): Set up find_toc_address_hook to point to find_toc_address. (xcoff_relocate_symtab, xcoff_relocate_core): Remove add_text_to_loadinfo calls. (exec_one_dummy_insn): Change pid and status to int to get rid of compiler warnings. (xcoff_relocate_symtab): Cast ldi to `int *' when passing it to ptrace to get rid of compiler warnings. * rs6000-tdep.c: Add definition for find_toc_address_hook. (rs6000_fix_call_dummy): If find_toc_address_hook is non zero, patch TOC address load code in the call dummy with the value returned from find_toc_address_hook. (struct loadinfo, loadinfo, loadinfolen, loadinfotextindex, xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo, add_text_to_loadinfo, find_toc_address): Remove. (_initialize_rs6000_tdep): Remove initialization of coff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook. * xcoffread.c (coff_add_toc_to_loadinfo_hook, xcoff_init_loadinfo_hook): Remove. (struct coff_symfile_info): Add toc_offset field. (scan_xcoff_symtab): Record toc_offset value in toc_offset field instead of calling xcoff_add_toc_to_loadinfo_hook. (get_toc_offset): New function to return the value of the toc_offset field for an object file. (xcoff_initial_scan): Remove call of xcoff_init_loadinfo_hook. * xcoffsolib.h (add_text_to_loadinfo): Remove declaration. * config/rs6000/tm-rs6000.h: Add declarations for find_toc_address_hook and get_toc_offset.
1997-08-12Tue Aug 12 14:37:18 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+5
* ocd.c (ocd_wait): loop until we're in BDM mode instead of assuming control has returned to GDB.
1997-08-12 * Makefile.in (install-only): Install tclIndex if ENABLE_IDE.Ian Lance Taylor1-0/+6
1997-08-12 * dink32-rom.c: New file, support for DINK32 monitor.Stan Shebs1-9/+23
* Makefile.in (dink32-rom.o): Add build rule. * config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt (TDEPFILES): Add dink32-rom.o. * monitor.h (MO_32_REGS_PAIRED, MO_SETREG_INTERACTIVE, MO_SETMEM_INTERACTIVE, MO_GETMEM_16_BOUNDARY, MO_CLR_BREAK_1_BASED): New monitor interface flags. * monitor.c: Use them. (monitor_store_register): Use setreg.term if defined. (monitor_insert_breakpoint, monitor_remove_breakpoint): Notice if set_break and clr_break fields are empty.
1997-08-11Mon Aug 11 16:22:36 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+18
* ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): macro BDM_BREAKPOINT already has braces around it, remove erroneous ones. * ser-ocd.c (ocd_write): conditionalize on _WIN32 instead of __CYGWIN32__ * config/powerpc/tm-ppc-eabi.h: remove BDM_NUM_REGS, BDM_REGMAP * ppc-bdm.c: move BDM_NUM_REGS, BDM_REGMAP here from tm.h file, fill in doc fields of bdm_ppc_ops. (bdm_ppc_fetch_registers): don't ask for invalid registers such as the MQ or floating point regs not present on ppc 8xx boards (bdm_ppc_store_registers): don't write those same invalid registers * config/i386/cygwin32.mh: stop including ocd.o ser-ocd.o * config/powerpc/ppc-eabi.mt: * config/powerpc/ppcle-eabi.mt: * config/powerpc/ppc-sim.mt: * config/powerpc/ppcle-sim.mt: include ser-ocd.o
1997-08-11 * frame.h (enum lval_type): Conditionalize on __GNUC__Fred Fish1-0/+5
instead of __STDC__.
1997-08-11 * gdbtk.c (gdbtk_init): Use ide_event_init_from_environment.Tom Tromey1-0/+6
1997-08-11Sun Aug 10 16:49:09 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-1/+1
* ocd.c: move ocd_write_bytes proto to ocd.h since it is used by ppc-bdm.c, use OCD_LOG_FILE to help debugging, define BDM_BREAKPOINT if not defined in tm.h (ocd_error): add new error cases (ocd_start_remote): send the OCD_INIT command before OCD_AYT and OCD_GET_VERSION calls, 80 was correct speed after all (ocd_write_bytes): no longer static (ocd_insert_breakpoint): no longer static (ocd_remove_breakpoint): new * ocd.h: add protos for ocd_write_bytes, ocd_insert_breakpoint, and ocd_remove_breakpoint * ppc-bdm.c: change bdm_ppc_ops so we call ocd_insert_breakpoint and ocd_remove_breakpoint instead of memory_insert_breakpoint and memory_remove_breakpoint. (bdm_ppc_open): after calling ocd_open, modify DER register so interrupts will drop us into debugging mode, finally disable the watchdog timer on the board so we don't leave BDM mode unexpectedly.
1997-08-11 * utils.c (error): Fix return type for !ANSI_PROTOTYPES.Jeff Law1-0/+4
Avoids "void void error" which craps out the HP native compiler.
1997-08-11Sun Aug 10 16:49:09 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+21
* ocd.c: move ocd_write_bytes proto to ocd.h since it is used by ppc-bdm.c, use OCD_LOG_FILE to help debugging, define BDM_BREAKPOINT if not defined in tm.h (ocd_error): add new error cases (ocd_start_remote): send the OCD_INIT command before OCD_AYT and OCD_GET_VERSION calls (ocd_write_bytes): no longer static (ocd_insert_breakpoint): no longer static (ocd_remove_breakpoint): new * ocd.h: add protos for ocd_write_bytes, ocd_insert_breakpoint, and ocd_remove_breakpoint * ppc-bdm.c: change bdm_ppc_ops so we call ocd_insert_breakpoint and ocd_remove_breakpoint instead of memory_insert_breakpoint and memory_remove_breakpoint. (bdm_ppc_open): after calling ocd_open, modify DER register so interrupts will drop us into debugging mode, finally disable the watchdog timer on the board so we don't leave BDM mode unexpectedly.
1997-08-09 * values.c (value_primitive_field): Account for offset whenPeter Schauer1-0/+6
extracting the value of a bitfield. From Paul Hilfinger <hilfingr@CS.Berkeley.EDU>.
1997-08-09start-sanitize-tic80Mark Alexander1-0/+13
* config/tic80/tic80.mt: (GDBSERVER-DEPFILES, GDBSERVER_LIBS): Define for gdbserver. (SIM): Remove -lm to prevent make errors. * configure.tgt: add gdbserver to configdirs for tic80. end-sanitize-tic80 * gdbserver/utils.c (error): Change prototype to match defs.h. * gdbserver/low-sim.c: Change simulator calls to use new interface. * remote.c (remote_write_bytes): Include '$' at start of packet and checksum at end of packet in overhead calculation.
1997-08-09 * ser-ocd.c: If _WIN32, include <windows.h>.Ian Lance Taylor1-0/+18
(dll_do_command): New static variable if _WIN32. (ocd_open): Set dll_do_command if _WIN32. (ocd_write): Use dll_do_command rather than do_command. * config/i386/cygwin32.mh (XDEPFILES): Remove libwigglers.a. (BDM_DLLNAME, BDM_LIBNAME, BDM_DEFFILE): Don't define. ($(BDM_LIBNAME)): Remove target. * wigglers.def: Remove.
1997-08-08 * config/i386/cygwin32.mh ($(BDM_LIBNAME)): Rename target fromIan Lance Taylor1-1/+5
libwigglers.def. (libwigglers.a): Remove target.
1997-08-08 * gdbtk.c (gdbtk_cleanup): New static function.Ian Lance Taylor1-1/+8
(gdbtk_init): Add gdbtk_cleanup as a final cleanup. Uncomment call to ide_initialize_paths. If we can't initialize the event system, set GDBTK_IDE to 0 in the Tcl interpreter. Create the ide_window_register and the ide_window commands. Initialize tk, itcl, and tix after initializing the IDE.
1997-08-08 * configure.in (tixdir): Update for cygwin32 case for Tcl 8.0.Ian Lance Taylor1-1/+8
* configure: Rebuild.
1997-08-08Add appropriate ocd/ppc-bdm depsMichael Meissner1-0/+5
1997-08-08Fri Aug 8 00:13:32 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-1/+10
* gdbtk.c (breakpoint_notify): Change buffer size from 100 to 256 to avoid memory corruption with very long pathnames.
1997-08-08amend changelog entry slightlyGeoffrey Noer1-2/+2
1997-08-08Thu Aug 7 19:40:52 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+21
Changes to OCD support to support wiggler box as well as target boxes: * ocd.c: change speed in init command to 0 from 80, add (temporary) logging commands to help debugging, (ocd_open): if "target ocd wiggler lpt" then use special ser-ocd.c serial interface which communicates with Wigglers.dll, otherwise do as we did before (ocd_get_packet): add OCD_LOG_FILE and OCD_SET_CONNECTION to switch of known commands of len 0 * ocd.h: add OCD_LOG_FILE * serial.c (serial_open): do serial_interface_lookup on ocd in the case of ocd * ser-ocd.c: add buffer to contain responses from sending a command to the Wigglers.dll. (ocd_readchar): return curr char from buffer and increment ptr (ocd_write): send buffer to Wigglers.dll, storing response in return buffer and initializing curr location ptr to start of buffer.
1997-08-07Thu Aug 7 14:08:23 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+5
* configure.in: Change required Tix version to 4.1.8.0 . * configure: Rebuilt.
1997-08-07Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+1
* ocd.h: add OCD_SET_CONNECTION * ocd.c: rename "do_command" to "ocd_do_command"
1997-08-07Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+19
* ocd.h: add OCD_SET_CONNECTION
1997-08-07Wed Aug 6 16:15:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1-0/+69
* Makefile.in: add DLLTOOL = @DLLTOOL@, pass on DLLTOOL to sub makes, change clean rule to also remove *.a to remove libwigglers.a, in dependencies: add ppc-bdm.o ocd.o ser-ocd.o and remove remote-wiggler.o * configure.in: add DLLTOOL support * configure: regenerate * wigglers.def: new file for imports for wigglers.dll * ser-ocd.c: new file which is layer between ocd.c and either the wigglers.dll or the target box, only stub so far * config/powerpc/ppc-eabi.mt: add ppc-bdm.o to TDEPFILES * config/powerpc/ppc-sim.mt: add ppc-bdm.o to TDEPFILES * config/i386/cygwin32.mh: add ocd.o ser-ocd.o libwigglers.a to XDEPFILES, add rules to build libwigglers.a checking in changes of Stu Grossman <grossman@cygnus.com>: * remote-wiggler.c: delete * ocd.c: new, was remote-wiggler.c always include sys/types.h, include ocd.h, move WIGGLER commands and many wiggler prototypes to ocd.h, make wiggler_desc static, stop making local wiggler functions static, define write_mem_command for wiggler_write_bytes (wiggler_start_remote): stop hardcoding the target type, instead set and use a target_type variable. (wiggler_open): add new target_type and ops args (wiggler_wait): now no longer takes pid and target_status as args, stop trying to set target_status struct, remove BGND insn checks (read_bdm_registers): renamed to wiggler_read_bdm_registers (wiggler_read_bdm_registers): numregs arg changed to reglen arg, remove pktlen check, set reglen instead of numregs (dump_all_bdm_regs): delete (wiggler_fetch_registers): delete (wiggler_prepare_to_store): now just an empty function (wiggler_store_registers): delete (wiggler_read_bdm_register): new (wiggler_write_bdm_registers): new (wiggler_write_bdm_register): new (wiggler_write_bytes): use write_mem_command variable instead of WIGGLER_WRITE_MEM (get_packet): renamed to wiggler_get_packet, change refs throughout (put_packet): renamed to wiggler_put_packet, change refs throughout (wiggler_get_packet): add break to default case of switch, change length of WIGGLER_GET_VERSION len to 10 from 4 to match specs (wiggler_mourn): unpush_target with current_ops, not &wiggler_ops (flash_xfer_memory): delete (noop_store_registers): new placeholder replacement for target_store_registers() which prevents generic_load from trying to set up the PC. (bdm_update_flash_command): add store_registers_tmp variable, make handling of wiggler_ops more generic -- define wiggler_ops in a target-specific file instead (such as ppc-bdm.c in the case of the ppc), use current_target to deal with registers again making this file less target-specific. (bdm_read_register_command): new (_initialize_remote_wiggler): stop doing add_target (&wiggler_ops), comment out add_cmd ("read-register", ...) * ocd.h: new, contains common wiggler prototypes, command definitions * ppc-bdm.c: file for ppc-specific OCD code, including target_ops structure for ppc bdm (bdm_ppc_open): new (bdm_ppc_wait): new (bdm_ppc_fetch_registers): new (bdm_ppc_store_registers_: new (_initialize_bdm_ppc): new * config/powerpc/tm-ppc-eabi.h: add necessary CPU32 BDM defines
1997-08-07tic80 sanitization.Mark Alexander1-0/+2
1997-08-06 * tic80-tdep.c (tic80_init_extra_frame_info): Allow zeroMark Alexander1-0/+5
as a valid SP-relative offset of a saved register.
1997-08-06 * hpread.c (hpread_read_struct_type): Use accessor macros ratherJeff Law1-0/+5
than directly mucking around with data structures.
1997-08-05 * jv-lang.c (get_java_utf8_name): Re-write so it works withPer Bothner1-0/+9
implied (missing) data field, as defined by cc1java. (java_link_class_type): Type length and field offset (in interior) now includes object header. Get static fields working. * jv-lang.h (JAVA_OBJECT_SIZE): Update for change in Kaffe. * jv-typeprint.c (java_type_print_derivation_info, java_type_print_base): New functions, for better Java output. * jv-valprint.c: Start to support Java-specific output.
1997-08-05 * gdbtypes.h: Re-interpret struct field. Suppport address of static.Per Bothner1-0/+19
Add a bunch of macros. * coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c: Update to use new macros. * coffread.c, hpread.c, stabsread.c: Remove bugus TYPE_FIELD_VALUE. * value.h, values.c (value_static_field): New function. * cp-valprint.c, valops.c: Modify to use value_static_field.
1997-08-01 * gdbtk.c (Tcl_Alloc): Don't provide our own version of this ifIan Lance Taylor1-0/+16
_WIN32. (Tcl_Realloc, Tcl_Free): Likewise. * configure.in: Check for cygwin32 environment. Define and substitute WIN32LIBS and WIN32LDAPP. Always set configdir to unix; setting it to win was for an old Tcl/Tk configuration scheme. * aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES. * Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@. (WIN32LDAPP, WIN32LIBS): Define. (CLIBS): Add $(WIN32LIBS). (gdb): Use $(WIN32LDAPP). * configure: Rebuild.
1997-07-31 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC, SYMBOL_INIT_DEMANGLED_NAME,Per Bothner1-0/+8
SYMBOL_DEMANGLED_NAME): Add demangling support for Java. * utils.c (fprintf_symbol_filtered): Handle language_java. * symtab.c (decode_line_1): Handle Java-style package.class.method.
1997-07-31 * java-*: Renamed to jv-*, to make fit within 14 characters.Per Bothner1-0/+9
* jv-lang.h (java_type_print): Added declaration. * jv-typeprint.c: New file. Provides java_print_type. * jv-lang.c (java_link_class_type): New function. (java_language_defn): Replace c_print_type by java_print_type. * Makefile.in: Update accordingly.
1997-07-29 * Makefile.in (init.c): except some mswin files do need to beFelix Lee1-0/+5
scanned. oh well.
1997-07-28 * Makefile.in (init.c): don't try to scan mswin for _initializeFelix Lee1-0/+17
funcs. (generates misleading error message because files have .cpp suffix, not .c suffix) * ser-e7kpc.c: <w32sut.h> -> "mswin/w32sut.h" * mon960-rom.c: removed unused #includes; no ioctl.h in Windows. * nindy-share/ttyflush.c: find sleep() for _MSC_VER. * remote-array.c: #include <ctype.h> for isascii(). * utils.c (notice_quit,pollquit): cleanup. _WIN32 -> _MSC_VER.
1997-07-28 * xcoffread.c (coff_getfilename): Do not strip directory componentPeter Schauer1-0/+5
of filename.
1997-07-25 * top.c (execute_command): Force cleanup of alloca areas.Jeff Law1-1/+8
* findvar.c (registers_changed): Likewise. Fixes memory "leak" reported by HP. Call from execute_command is for general alloca cleanup; call from registers_changed is to fix hp's specific problem.
1997-07-25 * v850ice.c: Include <windows.h>. Support new v850 DLL interface.Stu Grossman1-0/+5
* Add defs for target status.
1997-07-23Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+10
* configure.in, aclocal.m4: Another fix to find the correct Tix library name. * configure: Rebuilt.
1997-07-22Tue Jul 22 12:11:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+5
* config/mips/tm-mips64.h: longs, long longs, and pointers are all 64 bits on EABI mips targets.
1997-07-22Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+6
* aclocal.m4: Search for the correct tix library.
1997-07-17Thu Jul 17 11:38:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+6
* partial-stab.h (case N_BINCL): detect missing partial symtab. * dbxread.c: Add a complaint for N_BINCL without a corresponding partial symtab. Remove earlier change of 5/27/97.
1997-07-16Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+4
* sol-thread.c (sol_thread_[store, fetch]_registers): if inferior_pid is an LWP rather than a Solaris thread, let procfs handle the request. (rw_common, sol_thread_xfer_memory): procfs_xfer_memory will only work if inferior_pid points to an LWP (rather than a Solaris thread). Use procfs_first_available to find a good LWP. (info_solthreads): added a maintenance command to list all known Solaris threads and their attributes. * mips-tdep.c (mips_do_registers_info): Completely changed the output format to be neat and columnar. Added the helper funcs do_fp_register_row and do_gp_register_row. Also small mods to mips_print_register, which is still used to print a single reg.
1997-07-16Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+11
* sol-thread.c (sol_thread_[store, fetch]_registers): if inferior_pid is an LWP rather than a Solaris thread, let procfs handle the request. (rw_common, sol_thread_xfer_memory): procfs_xfer_memory will only work if inferior_pid points to an LWP (rather than a Solaris thread). Use procfs_first_available to find a good LWP. (info_solthreads): added a maintenance command to list all known Solaris threads and their attributes.
1997-07-15Mon Jul 14 18:02:53 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-0/+5
* procfs.c (wait_fd): Handle an fd that has "hung up" or otherwise terminated (Solaris threads).
1997-07-10Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1-0/+29
* Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and IDE configuration information. * gdbtk.c (breakpoint_notify): Send address, linenumber and filename when a breakpoint is set. Avoids call to bp_info. (gdbtk_init): Call Tcl_FindExecutable(). Add code to handle Itcl, Tix and IDE initialization. * defs.h (init_ui_hook): Change prototype to accept one arg. * main.c (gdb_init): Change prototype to accept one arg. * top.c (gdb_init): Accepts one argument which it uses to call (*init_ui_hook), which will be gdbtk_init(). This is used for calling Tcl_FindExecutable(). * gdbtcl/breakpoint.tcl (gdbtk_tcl_breakpoint): Change to accept variable number of args for compatibility with cchanges in gdbtk.c. * configure: Regenerated. * gdbtcl/tclIndex: Regenerated.