summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* Thu Aug 7 19:40:52 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1997-08-086-14/+78
| | | | | | | | | | | | | | | | | | | | | 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.
* Thu Aug 7 14:08:23 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1997-08-073-4/+9
| | | | | * configure.in: Change required Tix version to 4.1.8.0 . * configure: Rebuilt.
* Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1997-08-072-15/+16
| | | | | * ocd.h: add OCD_SET_CONNECTION * ocd.c: rename "do_command" to "ocd_do_command"
* Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1997-08-072-0/+20
| | | | * ocd.h: add OCD_SET_CONNECTION
* Thu Aug 7 13:09:17 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1997-08-074-305/+305
| | | | | | | | | | | | | | | Nomenclature change. BDM is a specific type of OCD (On chip debugging). Wiggler is the parallel port box controlled by Wigglers.dll. The faster target box from Macraigor Systems is not a wiggler. * ocd.c: * ocd.h: * ppc-bdm.c: * ser-ocd.c: Replace all instances of "wiggler_" with "ocd_" and change most other instances of "wiggler" to "ocd" or "ocd device" depending on context. * config/m68k/monitor.mt: remove remote-wiggler.o from TDEPFILES until OCD with that target is supported again.
* Wed Aug 6 16:15:31 1997 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1997-08-0712-550/+911
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* tic80 sanitization.Mark Alexander1997-08-071-0/+2
|
* * tic80-tdep.c (tic80_init_extra_frame_info): Allow zeroMark Alexander1997-08-062-6/+20
| | | | as a valid SP-relative offset of a saved register.
* * hpread.c (hpread_read_struct_type): Use accessor macros ratherJeff Law1997-08-062-4/+10
| | | | than directly mucking around with data structures.
* * jv-lang.c (get_java_utf8_name): Re-write so it works withPer Bothner1997-08-055-17/+282
| | | | | | | | | | 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.
* * gdbtypes.h: Re-interpret struct field. Suppport address of static.Per Bothner1997-08-059-114/+163
| | | | | | | | | 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.
* * c-valprint.c (c_val_print): Use extract_address to retrievePeter Schauer1997-08-031-4/+5
| | | | | | | | the address of the virtual function. From Peter Bloecher (Peter.Bloecher@eedn.ericsson.se). * eval.c (evaluate_subexp_standard), valarith.c (value_x_unop): Handle C++ operator *.
* * gdbtk.c (Tcl_Alloc): Don't provide our own version of this ifIan Lance Taylor1997-08-015-30/+110
| | | | | | | | | | | | | | | _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.
* * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC, SYMBOL_INIT_DEMANGLED_NAME,Per Bothner1997-07-311-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.
* * java-*: Renamed to jv-*, to make fit within 14 characters.Per Bothner1997-07-318-43/+127
| | | | | | | | * 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.
* * Makefile.in (init.c): except some mswin files do need to beFelix Lee1997-07-292-1/+5
| | | | scanned. oh well.
* * Makefile.in (init.c): don't try to scan mswin for _initializeFelix Lee1997-07-286-73/+47
| | | | | | | | | | | | 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.
* * xcoffread.c (coff_getfilename): Do not strip directory componentPeter Schauer1997-07-282-13/+8
| | | | of filename.
* * top.c (execute_command): Force cleanup of alloca areas.Jeff Law1997-07-252-1/+12
| | | | | | * 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.
* * v850ice.c: Include <windows.h>. Support new v850 DLL interface.Stu Grossman1997-07-252-25/+77
| | | | * Add defs for target status.
* Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1997-07-234-39/+47
| | | | | | | * configure.in, aclocal.m4: Another fix to find the correct Tix library name. * configure: Rebuilt.
* Pulling changes over from tx39 branchMichael Snyder1997-07-222-42/+3
|
* Cleaning up mips tx39 sanitization.Michael Snyder1997-07-221-3/+6
|
* Tue Jul 22 12:11:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-222-0/+12
| | | | | * config/mips/tm-mips64.h: longs, long longs, and pointers are all 64 bits on EABI mips targets.
* Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1997-07-221-4/+15
| | | | * configure: Rebuilt.
* Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1997-07-222-3/+20
| | | | * aclocal.m4: Search for the correct tix library.
* Thu Jul 17 11:38:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-172-0/+13
| | | | | | * 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.
* Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-161-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.
* Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-162-6/+107
| | | | | | | | | | | * 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.
* Mon Jul 14 18:02:53 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-152-10/+20
| | | | | * procfs.c (wait_fd): Handle an fd that has "hung up" or otherwise terminated (Solaris threads).
* Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>Martin Hunt1997-07-107-125/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * source.c (OPEN_MODE, FDOPEN_MODE): Define; value depends uponIan Lance Taylor1997-07-042-3/+15
| | | | | | | | | | | whether CRLF_SOURCE_FILES is defined. (open_source_file): Use OPEN_MODE with open and openp. (print_source_lines): Use FDOPEN_MODE with fdopen. If CRLF_SOURCE_FILES is defined, ignore \r characters. (forward_search_command): Use FDOPEN_MODE with fdopen. (reverse_search_command): Likewise. * config/i386/xm-cygwin32.h (CRLF_SOURCE_FILES): Define. (LSEEK_NOT_LINEAR): Don't define.
* * gdbint.texinfo (Host Conditionals): Add CRLF_SOURCE_LINES.Ian Lance Taylor1997-07-041-0/+5
| | | | Document LSEEK_NOT_LINEAR.
* * lib/gdb.exp(get_debug_format): Don't cause the testsuite to failBob Manson1997-07-042-5/+15
| | | | | | | if we can't get a debug format from GDB (we may be testing an older GDB). Use a 10 second timeout when checking for the format. * gdb.stabs/weird.exp: Fix quoting.
* Thu Jul 3 17:41:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-042-2/+6
| | | | | * mips-tdep.c (mips_extract_return_value): align 4-byte float return values within the 8-byte FP register.
* * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c.Bob Manson1997-07-032-2/+6
|
* Thu Jul 3 13:48:11 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-032-8/+13
| | | | | * mips-tdep.c (mips_push_arguments): don't left-adjust 32-bit integers in 64-bit register parameters before function calls.
* * config/arm-ice.exp: New file.Bob Manson1997-07-013-0/+6
|
* Mon Jun 30 17:54:51 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-07-012-29/+51
| | | | | * mips-tdep.c (mips_push_arguments): special-case handling for odd-sized struct parameters passed in registers / on stack.
* Mon Jun 30 15:30:38 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-06-302-9/+21
| | | | | * mips-tdep.c (mips_push_arguments): tweak alignment of small structs passed in registers for little-endian non-EABI mode.
* Mon Jun 30 13:05:39 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-06-301-0/+6
| | | | | | * breakpoint.c (frame_in_dummy): use generic dummy if available. (check_duplicates, clear_command): compare sections only if doing overlay debugging.
* * gdb.base/overlays.exp: Preliminary fixes; temporarily disabledBob Manson1997-06-304-13/+53
| | | | | | | | | | | | | until it has been modified to work with the new testsuite. * gdb.*/*.exp: Instead of causing 1 unresolved test when the testcase won't compile, cause all of the testcases in the file to fail instead. * lib/gdb.exp(gdb_suppress_entire_file): New procedure. (gdb_clear_suppressed): New procedure. (gdb_stop_suppressing_tests): Only clear suppress_flag if it contains a positive value.
* Check in correct file (config/m32r-stub.exp)Bob Manson1997-06-291-1/+1
|
* * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.Bob Manson1997-06-292-5/+4
|
* * gdb.c++/virtfunc.exp: Remove setting of libs variable.Bob Manson1997-06-281-0/+4
|
* * buildsym.h (struct subfile): Add debugformat member.Fred Fish1997-06-2813-24/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (record_debugformat): Declare global function. * buildsym.c (start_subfile): Initialize debugformat member to NULL. (record_debugformat): New function to record the format. (end_symtab): Copy format into symtab debugformat member. (end_symtab): Free subfile debugformat member. * symmisc.c (free_symtab): Free debugformat when freeing symtab. * symfile.c (allocate_symtab): Initialize the new debugformat member for new symtabs. * symtab.h (struct symtab): Add debugformat member. * source.c (source_info): Print the debug format. * os9kread.c (os9k_process_one_symbol): Call record_debugformat with "OS9". * hpread.c (hpread_expand_symtab): Call record_debugformat with "HP". (hpread_process_one_debug_symbol): Ditto. * dbxread.c (process_one_symbol): Call record_debugformat with "stabs". * coffread.c (coff_start_symtab): Call record_debugformat with "COFF". * xcoffread.c (read_xcoff_symtab): Call record_debugformat with "XCOFF". * dwarfread.c (read_file_scope): Call record_debugformat with "DWARF 1". * dwarf2read.c (read_file_scope): Call record_debugformat with "DWARF 2". * dstread.c (dst_end_symtab): Set debugformat to be "Apollo DST". * mdebugread.c (new_symtab): Set debugformat to be "ECOFF".
* * lib/gdb.exp (setup_xfail_format): New function.Fred Fish1997-06-284-50/+125
| | | | | | | | | | | | | | (get_debug_format): New function to get debug format. (debug_format): New global variable to hold last value set by get_debug_format. * gdb.base/list.exp: Call get_debug_format and expect some tests to fail for DWARF 1 and COFF formats. * gdb.c++/ptype.exp: Ditto. * gdb.c++/classes.exp: Ditto. * gdb.c++/cplusfuncs.exp: Ditto. * gdb.c++/inherit.exp: Ditto. * gdb.c++/templates.exp: Ditto. * gdb.c++/virtfunc.exp: Ditto.
* Fri Jun 27 21:05:45 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-06-282-1/+22
| | | | | * mips-tdep.c (mips_push_arguments): handle alignment of integer and struct args on stack for mips64 big-endian.
* Fri Jun 27 19:19:12 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-06-283-13/+45
| | | | | * config/mips/tm-mips.h (USE_STRUCT_CONVENTION): MIPS_EABI returns structs in a register wherever possible.
* * lib/gdb.exp(default_gdb_exit): Don't give an error if the remoteBob Manson1997-06-254-131/+195
| | | | | | | | | | | | | | | | host doesn't have a currently-open connection. * config/sparclet.exp: Cleanups and fixes to make it generic for any gdb stub target. Handle cases where gdb doesn't respond when interrupted in a sane fashion. * config/m32r.exp: Load sparclet.exp instead of trying to do the same thing in a totally different way. * config/monitor.exp: Pass in timeouts to gdb_expect instead of setting "timeout". (gdb_start): We set the global gdb_prompt variable in default_gdb_init now.