aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
1996-04-07 * configure.in (case host): Add i386sco5 host.Fred Fish6-0/+74
* configure: Regenerate. From: Robert Lipe <robertl@dgii.com> Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This target is an SVR3.2 with COFF, ELF, and shared libes, but no /proc. * config/i386/i386sco5.mh: New file. * config/i386/nm-i386sco5.h: New file.
1996-04-06 * bcache.c (bcache): When size of chunk to cache is exactly equal toFred Fish2-1/+6
BCACHE_MAXLENGTH, stash chunk as unique copy.
1996-04-06 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.Fred Fish6-125/+152
(add_psymbol_to_list): Add an arg for passing CORE_ADDR values and use it, rather than calling add_psymbol_addr_to_list. (add_psymbol_addr_to_list): Delete. (add_psymbol_to_list): Make psymbol static to avoid random data in gaps due to alignment of structure members. * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST, ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no performance improvements by inlining via complicated macros and they just make gdb larger and harder to maintain. * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to add_psymbol_to_list with appropriate long or CORE_ADDR args. (add_partial_symbol): Ditto. * partial-stab.h: Ditto. * os9kread.c (read_os9k_psymtab): Ditto * mdebugread.c (parse_partial_symbols): Ditto. (handle_psymbol_enumerators): Ditto. (demangle.h): Include. * hpread.c (hpread_build_psymtabs): Ditto. (hpread_build_psymtabs): Ditto. (demangle.h): Include
1996-04-05 * gdbtk.c (running_now): New global variable.Stan Shebs3-20/+47
(gdb_cmd): Test it before executing any command. (gdbtk_call_command): Set it when inferior is running. * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and disable interaction with command window's text appropriately.
1996-04-05Add sanitize-gdbtk markersMichael Meissner1-0/+2
1996-04-05Undef SIOCSPGRP if on LinuxMichael Meissner2-0/+11
1996-04-05 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.Stan Shebs1-0/+2
* arm-tdep.c (arm_apcs_32): New global. (arm_addr_bits_remove, arm_saved_pc_after_call, arm_push_dummy_frame, arm_pop_frame): New functions. (arm_skip_prologue): Updated version from Richard Earnshaw. (_initialize_arm_tdep): Add set/show "apcs32". * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call arm_addr_bits_remove. (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call. (frame_find_saved_regs): Declare properly. (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame. (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of explicit mask. * config/arm/nm-arm.h: New file. * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS): Move definitions to nm-arm.h. * config/arm/arm.mh (NAT_FILE): Define.
1996-04-05Always keep nm-arm.hStan Shebs1-2/+5
1996-04-05 * configure.in: Check for setpgid function.Fred Fish12-53/+147
* config.in: Regenerate with autoheader. * configure: Regenerate with autoconf. * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL if it is actually defined. (gdb_setpgid): Use HAVE_SETPGID. * ch-exp.c: Change include of <string.h> to "gdb_string.h". * c-exp.y: Ditto. * f-exp.y: Ditto. * m2-exp.y: Ditto. * c-exp.y: Include <ctype.h>. * serial.c: Ditto. * config/m68k/nm-news.h: Add typedef for pid_t which is apparently missing from <sys/types.h>. Enclose entire file in NM_NEWS_H ifndef and define when included. * config/mips/nm-news-mips.h: Ditto. * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
1996-04-05 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.Stan Shebs5-368/+793
* arm-tdep.c (arm_apcs_32): New global. (arm_addr_bits_remove, arm_saved_pc_after_call, arm_push_dummy_frame, arm_pop_frame): New functions. (arm_skip_prologue): Updated version from Richard Earnshaw. (_initialize_arm_tdep): Add set/show "apcs32". * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call arm_addr_bits_remove. (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call. (frame_find_saved_regs): Declare properly. (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame. (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of explicit mask. * config/arm/nm-arm.h: New file. * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS): Move definitions to nm-arm.h. * config/arm/arm.mh (NAT_FILE): Define. PR 8941
1996-04-05 * symfile.c (generic_load): Initialize data_count properly.Stan Shebs2-1/+5
1996-04-05 * symmisc.c (print_objfile_statistics): Print memory used byFred Fish1-0/+5
psymbol cache obstack.