aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1996-05-08 * breakpoint.c (clear_momentary_breakpoints): Remove dead codeFred Fish4-174/+77
that is referenced nowhere else. (set_breakpoint): Ditto. (do_enable_breakpoint): Created from enable_once_breakpoint with a couple of changes. (enable_breakpoint): Call do_enable_breakpoint with an appropriate bpdisp enum value to set disposition of breakpoint. (enable_once_breakpoint): Ditto. (enable_delete_breakpoint): Ditto. * breakpoint.h (clear_momentary_breakpoints): Remove prototype. * symtab.c (find_pc_line): Improve comments. * gdbtk.c: Fix a couple of misspellings. * xcoffread.c: Ditto.
1996-05-08 * config/abug.exp: New file for the older Motorola Bug monitorRob Savoye3-10/+32
that runs on the mvme13x series VME boards. * config/monitor.exp: Use the new config array for target settings if they exist.
1996-05-08 * target.c (debug_to_xfer_memory): Insert line breaks whenStan Shebs1-0/+5
dumping the memory block.
1996-05-06 * fork-child.c (fork_inferior), inferior.h: init_trace_fun nowStu Grossman12-271/+1962
returns a possibly modified pid. * inftarg.c (ptrace_him): Now returns pid; * m3-nat.c (m3_trace_him): Now returns pid; * infcmd.c (run_command): Minor cleanup. * infrun.c (wait_for_inferior): Add another check for one_stepped near where we read the pc to avoid erroneously setting random_signal for multi-threaded support. * procfs.c: Add support for Solaris LWPs. Remove def of LOSING_POLL. Many cleanups... Several workarounds for Solaris lossage. System call entry and exit are now handled by dynamically registered handlers. * (syscallname): Don't barf when handed an unknown syscall number. * (info_proc_syscalls): Ditto. * sol-thread.c: New file. Implements Solaris thread support. * symfile.c (symbol_file_add): Add call to target_new_objfile to notify target-dependent code about new symbol tables. * (clear_symtab_users): Call target_new_objfile to notify it of the removal of all symbol tables. * target.c (push_target): Make sure that to_close is non-zero before calling it. * target.h (target_new_objfile): Provide default. * config/alpha/nm-osf2.h: Define LOSING_POLL because this version of OSF can't hack using poll with /proc. * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be sol-thread-new-objfile. * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and add libthread_db.so.1 to NAT_CLIBS. * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and target_pid_to_str.
1996-05-06Do not do XCOFF hoooks for ELF systemsMichael Meissner2-9/+17
1996-05-03 * sim-gdb.exp: Make the SH simulator allocate less space whenStan Shebs2-1/+17
it is targeted.
1996-05-03 * gdbtk.tcl (debug_interface): New global, use to aid debugging.Stan Shebs2-56/+84
(insert_breakpoint_tag, delete_breakpoint_tag): Fix range. (file_popup_menu): Delete, never used. (listing_window_popup): Rename from listing_window_button_1, remove breakpoint toggling code. (toggle_breakpoint): New procedure. (create_file_win): Bind popup menu to button 2, toggle breakpoints with button 1 in breakpoint area, add display of tagged areas if debugging on.
1996-05-02 * From Peter Schauer:Jeff Law3-81/+179
* breakpoint.h (enum bpdisp): Add del_at_next_stop. * breakpoint.c (insert_breakpoints, watchpoint_check, bpstat_stop_status): Avoid bad references to memory freed via delete_breakpoint on watchpoints going out of scope. Do not delete these watchpoints, disable them and change their disposition to del_at_next_stop instead. (breakpoint_auto_delete): Delete all breakpoints whose disposition is del_at_next_stop. (breakpoint_init_inferior): Use switch to avoid reference to already deleted breakpoint. Fixes dangling pointer problems with watchpoints.
1996-05-02 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtraceJeff Law1-0/+20
test.
1996-05-02 * Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.Fred Fish7-17/+69
* config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ... * config/rs6000/rs6000.mt (TDEPFILES): ... to here * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize. (solib_info): Call xcoff_relocate_symtab via the hook. (sharedlibrary_command): Ditto. * xcoffread.c: Remove all FAKING_RS6000 comments and defines. (xcoff_add_toc_to_loadinfo_hook): Define and initialize here. (xcoff_init_loadinfo_hook): Define and initialize here. (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook. (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook. * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func. * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook. * rs6000-nat.c (_initialize_core_rs6000): Add initialization of xcoff_relocate_symtab_hook.
1996-04-30Add bieginning of Solaris/PowerPC supportMichael Meissner7-1/+143
1996-04-29 * c-valprint.c (c_val_print): Fix printing for arrays definedDawn Perchik2-0/+6
with 0 length.
1996-04-28 Support for bi-endian remote breakpoints.Stan Shebs3-14/+67
* remote.c (big_break_insn, little_break_insn): New globals. (break_insn): Remove. (remote_insert_breakpoint, remote_remove_breakpoint): Use own code if REMOTE_BREAKPOINT defined, otherwise call memory breakpoint functions. * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove. (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1996-04-28 * mon960-rom.c (mon960_cmds): Remove forward decl.Stan Shebs2-12/+17
(mon960_load): Use current_monitor instead of mon960_cmds. (mon960_regnames): Remove backslashes from line ends. (_initialize_mon960): Fix documentation string.
1996-04-28 * symfile.h (psymbol_allocation_list): Expand comments whichFred Fish1-0/+6
describe the psymbol allocation list and how each field is used.
1996-04-28 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->expPeter Schauer3-5/+31
storage leaks. (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks. * infcmd.c (run_command), solib.c (locate_base): Check for target_has_execution in addition to inferior_pid, a core file from a threaded program is yielding a non-zero inferior_pid. * sparc-tdep.c (get_saved_register): Handle window registers in a dummy frame correctly.
1996-04-28 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,Fred Fish2-6/+17
so that anything that wants an allocation function not yet pulled in, will get it from mmalloc rather than a system library. * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS, to avoid surprising results when used.
1996-04-28Fix typo in ChangeLog entry.Jeff Law1-1/+1
1996-04-28Remove some #if 0 code which creeped into wait_for_inferior duringJeff Law1-4/+0
my previous change.
1996-04-27 * stabsread.c: Changes and bug fixes for cfront support.Dawn Perchik2-12/+204
Fix bug for class data members. Fix parsing bug when no base classes exist. Fix memory bug - allocate space for cplusplus specific info. Add support for static data. Add prototypes for static functions. Enhance comments to show what each function expects to parse. Cleanup code. * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename function to resolve_cfront_continuation.
1996-04-27 * infrun.c (wait_for_inferior): Call registers_changed whenJeff Law2-0/+12
restarting the inferior to get over a nullified instructions. Fixes PA testsuite regressions.
1996-04-24 Forgot to checkin ChangeLog with last checkin for cfront support.Dawn Perchik1-0/+4
1996-04-24 Add new support for parsing cfront stabs.Dawn Perchik4-16/+814
1996-04-24 * infrun.c (wait_for_inferior): Move "have_waited" labelJeff Law2-5/+36
outside of #ifdef conditionals. Don't trash the wait status if we get a signal and the current instruction is nullified. Fixes long standing problem on the PA (spurious SIGTRAPs)..
1996-04-23 * Makefile.in (VERSION): Bump version number to 4.16.1Fred Fish1-28/+83
* NEWS: Update for 4.16 release.
1996-04-22 * monitor.h: Clean up comment formatting.Stan Shebs3-100/+98
(current_monitor): Remove decl. (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions. (push_monitor, SREC_SIZE): Remove. * monitor.c: Expand old macro into current_monitor derefs everywhere. * remote-os9k.c (current_monitor): Remove definition.
1996-04-22Consistently use address <fnf@cygnus.com> for entries.Fred Fish1-5/+5
1996-04-22 * corefile.c (specify_exec_file_hook): Allow arbitrary number ofMark Alexander3-11/+91
hooks. (call_extra_exec_file_hooks): New function. * h8300-tdep.c: Lint; add .h files to provide missing declarations, remove unused variables. (set_machine_hook): New function. (_initialize_h8300m): Initialize it. PR 8849.
1996-04-19 * remote-mips.c (encoding): Don't specify size, to avoid bug inIan Lance Taylor2-1/+6
SunOS native compiler.
1996-04-19 * monitor.c: Use int rather than LONGEST for values, sinceStan Shebs2-61/+126
the formatting strings are not prepared to accept long longs. PR 9432
1996-04-18 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.David Edelsohn1-0/+4
1996-04-17 * tests1.{ch,exp}: Tets case modified and enhanced.Wilfried Moser3-8/+26
1996-04-17 * corelow.c (add_to_thread_list): Make sure reg_sect is non-nullStu Grossman3-3/+21
before de-referencing it. Prevents deref of NULL pointer if core file lacks .reg section. * defs.h: Rename floatformat_{to from}_long_double to floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO FROM}... macros. * findvar.c (extract_floating store_floating): Change all refs to FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest. * utils.c: Change floatformat_{to from}_long_double to floatformat_{to from}_doublest cuz the new routines will use whatever size (double or long double) is appropriate. * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to floatformat... routine calls.
1996-04-15 * stabsread.c (read_type): Move handling of '@' from typePer Bothner2-104/+80
number handling to handling of types proper (as emitted by gcc!). For typedefs, allocate the typedef type before reading its definition, to properly handling recursive types. This fixes PR 9434.
1996-04-15 * ch-exp.c (calculate_array_length): Fix prototype.Jeff Law2-1/+5
So gdb will build with non-ansi compilers.
1996-04-13 * remote-nindy.c (nindy_open): Acquire more target state so thatStu Grossman5-29/+47
user can attach to a previously running program. * (nindy_fetch_registers nindy_store_registers): Get rid of fp conversion code. That's all handled in {extract store}_floating now. * utils.c (floatformat_to_double): Don't bias exponent when handling zero's, denorms or NaNs. * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and FLOATFORMAT_TO/FROM_DOUBLEST macros. * config/i960/tm-nindy960.h: Undefine REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and REGISTER_CONVERTIBLE. These are no longer necessary now that all the magic happens in extract/store_floating.
1996-04-13 * eval.c (evaluate_subexp_standard): Report error when attempting toPeter Schauer1-0/+17
evaluate subscripts for types which cannot be subscripted. * valarith.c (value_x_binop, value_x_unop): Add noside parameter. Return a zero value with the return type of the member function if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member function. * values.h (value_x_binop, value_x_unop): Update prototypes accordingly. * eval.c (evaluate_subexp_standard): Update all callers of value_x_binop, value_x_unop accordingly. * valarith.c (value_neg, value_complement): Perform ANSI C/C++ integral promotion on operands.
1996-04-13 * README: Update for 4.16 release.Fred Fish5-2/+20
* configure.in (AC_CHECK_FUNCS): Also check for sbrk. * configure: Regenerate with autoconf. * config.in: Regenerate with autoheader. * main.c (main): Only use sbrk() when HAVE_SBRK is defined. * top.c (command_loop): Ditto.
1996-04-12 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMATStu Grossman4-44/+35
defaults for bi-endian targets. Replace function pointers for floatformat routines with macros. No need for these to be runtime selectable. * findvar.c: Get rid of floatformat function pointers. Use macros in extract_floating and store_floating. * remote-nindy.c (nindy_fetch_registers nindy_store_registers): Use floatformat macros.
1996-04-12 * config/nm-m3.h (ATTACH_NO_WAIT): Define.Fred Fish1-0/+3
1996-04-12 From: Miles Bader <miles@gnu.ai.mit.edu>Fred Fish6-68/+246
* configure.in (AC_CHECK_HEADERS): check for endian.h. Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK. Add host & target cases for i[345]86-*-gnu*. * config.in: Regenerate with autoheader. * configure: Regenerate with autoconf. * Makefile.in (AR, AWK): Set from corresponding autoconf substs. (init.c): Don't scan mig-generated files. * defs.h (endian.h): Include if HAVE_ENDIAN_H defined. * config/nm-m3.h (ATTACH_NO_WAIT): Define. * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT" rather than "#ifndef MACH".
1996-04-12 * remote.c (remotewritesize): New GDB variable, controls sizeStan Shebs1-0/+5
of memory packets sent to the target.
1996-04-11 * dcache.c: Add prototypes. Make many functions static.Stu Grossman7-66/+551
* (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and dcache_poke call dcache_xfer_memory directly in order to fix problems with turning off dcache. dcache_peek is now unnecessary, so it goes away. * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer to a struct floatformat. This allows for better handling of targets whose floating point formats differ from the host by more than just byte order. * (floatformat_to_long_double floatformat_from_long_double): Prototypes for new functions in utils.c. * (floatformat_to_doublest floatformat_from_doublest): Prototypes for pointers to floating point conversion functions. The actual function uses either double or long double if the host supports it. * findvar.c (floatformat_to_doublest floatformat_from_doublest): Initialize to point at correct function depending on HAVE_LONG_DOUBLE. * (extract_floating store_floating): Rewrite. Now, if host fp format is the same as the target, we just do a copy. Otherwise, we call floatformat_{to from}_doublest. * remote-nindy.c (nindy_xfer_inferior_memory): Change param `write' to `should_write'. * utils.c (floatformat_to_long_double floatformat_from_long_double): New routines that implement long double versions of functions in libiberty/floatformat.c. * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for i960 extended real (80 bit) numbers. * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes actually read or written.
1996-04-10 * ch-valprint.c (chill_val_print): Remove call to ↵Wilfried Moser3-52/+67
calculate_array_length. (calculate_array_length): Move function from here ... * ch-exp.c (calculate_array_length): ... to here. (parse_primval): If we have a symbol with an array type and the length is 0, call calculate_array_length.
1996-04-09 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:Wilfried Moser2-0/+35
Add some checks for powerset compatibility. * valops.c (value_slice): Use lowbound instead of lowerbound for call to slice_range_type to get correct bounds.
1996-04-09 * gch981.{ch,exp}, gch1041.{ch,exp}: New test cases.Wilfried Moser6-0/+410
1996-04-09 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets andFred Fish8-16/+45
dependencies. * scm-lang.c (gdb_string.h): Include. * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow call to correct type (char *). * cp-valprint.c (cp_print_static_field): Ditto. * somsolib.c (som_solib_create_inferior_hook): Add a declaration for external find_unwind_entry function (from hppa-tdep.c). * remote-pa.c (remote_write_bytes, remote_read_bytes): Change type of second arg to "char *" to be type compatible with dcache. (remote_wait): Cast second arg to strtol to correct type. * hppa-tdep.c (compare_unwind_entries): Change argument types to "const void *" to be type compatible with qsort, and then assign to local args prior to use.
1996-04-08 * infptrace.c (kill_inferior): Remove call to "kill"; updateJeff Law1-0/+5
comments. The "kill" call was declared bogus years ago and is causing problems on hpux10 (PR 9410).
1996-04-08Modified remote-e7000.c so that :23 isn't appended to the target portGeoffrey Noer1-0/+5
if __WIN32__ is defined. This is necessary to make e7000 support work for WinGDB.
1996-04-08 From: Miles Bader <miles@gnu.ai.mit.edu>Fred Fish17-1/+3594
* gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c, msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk, config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h, m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.