aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
1996-04-04 * symfile.c (report_transfer_performance): New function.Stan Shebs3-23/+59
(generic_load): Call it to report transfer rate. * remote-e7000.c (e7000_load): Ditto. PR 9353
1996-04-02 * mpw-make.sed: Change references to config.h to be in objdir,Stan Shebs2-0/+9
edit out rules to rebuild config.h.
1996-04-01 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status beforeFred Fish2-0/+6
proceeding.
1996-04-01 * hppah-nat.c (store_inferior_registers, store_inferior_registers,Fred Fish2-14/+20
fetch_register, child_xfer_memory): Use call_ptrace function supplied by infptrace.c rather than calling ptrace directly.
1996-04-01 * mon960-rom.c: Cleanups and elimination of unused code,Stan Shebs3-58/+25
clarify documentation string. (mon960_serial, mon960_ttyname): Remove. * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS, ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
1996-03-31 * configure.in: Check whether printf family supports printingFred Fish6-55/+140
long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so. * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE. * configure: Regenerate. * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE. * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE. * configure.in: Fix have_gregset and have_fpregset autoconf variable names so that they match the pattern required to cache them.
1996-03-30 * core-aout.c (fetch_core_registers): Cast core_reg_size to intFred Fish32-170/+371
before testing against reg_ptr. * eval.c (evaluate_subexp_standard): Cast type of TYPE_FN_FIELD_VOFFSET to int. * findvar.c (extract_signed_integer, extract_unsigned_integer, extract_long_unsigned_integer): Cast type of sizeof to int. * values.c (unpack_field_as_long, modify_field): Ditto. * valops.c (value_assign, call_function_by_hand): Ditto. * infcmd.c (do_registers_info): Ditto. * ser-tcp.c (tcp_open): Ditto * remote.c (putpkt): Ditto. * dcache.c (dcache_peek): Ditto. * dcache.c (dcache_poke): Ditto. * m2-exp.y (yylex): Ditto. * gnu-regex.c (re_match_2): Ditto. * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef out unused macro definition and variables. * inftarg.c (proc_wait): Move from main.c to here, and make static. * valprint.c (val_print_string): Change bufsize from int to unsigned. * main.c (wait.h): Include * top.c (command_line_input): Remove unused variable "c". * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum value TYPE_CODE_TYPEDEF to switch statement. (f_type_print_varspec_suffix): Add missing enum value TYPE_CODE_TYPEDEF to switch statement. * ch-exp.c (parse_primval): Add remaining enumeration values to switch statement, with no specific action. (ch_lex): Add LOC_UNRESOLVED in switch statement. (pushback_token): Ifdef out, since code using it is ifdef'd out. * stabsread.c (cleanup_undefined_types): Remove unused label "badtype". * objfiles.h (print_symbol_bcache_statistics): Add prototype. * maint.c (objfiles.h): Include. (maintenance_print_statistics): Remove unused variable "temp". * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove unused variable "found_file_symbol". * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch. * language.c (lang_bool_type): Use existing function local type variable rather than create block local variables. * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS. * infptrace.c (wait.h, command.h): Include. * ser-tcp.c (gdb_string.h): Include * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR. (i386_get_frame_setup): Change "pc" from int to CORE_ADDR. * command.c (complete_on_enum): Make assignment used as truth value explictly check against NULL. (wait.h): Include. * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code that uses it is ifdef'd out. * parser-defs.h: Add prototype for write_dollar_variable. * infrun.c: Add prototype for write_pc_pid. * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs. * symmisc.c (bcache.h): Include. * bcache.h: Add prototype for print_bcache_statistics. * symfile.c: Include <time.h>. * printcmd.c (print_scalar_formatted): Change len to unsigned int. * valarith.c (value_equal): Cast result of TYPE_LENGTH to int. * valarith.c (value_binop): Change result_len, promoted_len1, and promoted_len2 to unsigned int. * valarith.c (value_subscripted_rvalue): Change elt_offs and elt_size to unsigned int. * valops.c (value_array): Change typelength to unsigned int. (destructor_name_p): Change len to unsigned int. * scm-lang.h (scm_parse): Add prototype for scm_unpack. * symfile.c (decrement_reading_symtab): Change return type to void. * valarith.c (value_subscript): Remove unused variable "word". (value_subscript): Remove unused variable "tint". * valops.c (auto_abandon): Ifdef out, since code using it is also ifdef'd out. * eval.c (init_array_element): Remove unused variable "val". * Makefile.in (values.o): Depends on scm-lang.h. (command.o): Depends upon wait_h. (ser-tcp.o): Depends upon gdb_string.h. (infptrace.o): Depends upon wait_h and command_h. (maint.o): Depends on objfiles.h and symfile.h. * values.c (allocate_repeat_value): Remove unused variable "element_type". (scm-lang.h): Include. * breakpoint.c (create_longjmp_breakpoint): Enclose in GET_LONGJMP_TARGET define, unused otherwise. * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint, i386_remove_watchpoint and i386_stopped_by_watchpoint.
1996-03-29Regenerate with hacked Cygnus autoconf 2.8 rather than FSF autoconf 2.8,Fred Fish1-1/+1
otherwise configure fails.
1996-03-28 * configure.in (sparc64-*-solaris2*): Delete.David Edelsohn3-3/+19
Stick with sparc-*-solaris2*. * configure: Regenerated.
1996-03-28 * valops.c (value_assign): Make copy of internal variable valueFred Fish2-4/+17
before returning it as a new value, since it is owned by the internal variable and will be freed along with it.
1996-03-28Note that failures under linux for backtrace through signal handlerFred Fish1-0/+4
are not consistent among different systems, or even the same system.
1996-03-27 * From Peter Schauer.Jeff Law3-26/+74
* breakpoint.c (breakpoint_re_set_one): Keep temporary breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy and bp_step_resume in case breakpoint_re_set_one is called due to a step over a dlopen call. * infrun.c (wait_for_inferior): Always remove breakpoints from inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
1996-03-27 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only preferFred Fish3-2/+10
non-prototyped case over prototyped case for C. * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
1996-03-25Revert use of autoconf 2.9, it was causing too many regressions.Fred Fish5-63/+42
1996-03-24Tweak to match output of autoconf 2.9 with same cygnus local patch asFred Fish1-1/+1
current autoconf 2.8.
1996-03-24 * os9kread.c (os9k_process_one_symbol): Note nonportableFred Fish4-9/+43
assumption that an int can hold a char *. * bcache.h (struct hashlink): Wrap data[] inside union with double to force longest alignment. (BCACHE_DATA): New macro to access data[]. (BCACHE_ALIGNMENT): New macro to get offset to data[]. * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get address of cached data. Use BCACHE_ALIGNMENT to compute amount of space to allocate for each hashlink struct.
1996-03-24 * configure, testsuite/configure, testsuite/gdb.base/configure,Fred Fish7-99/+1582
testsuite/gdb.c++/configure, testsuite/gdb.chill/configure, testsuite/gdb.disasm/configure, testsuite/gdb.stabs/configure: Regenerated with autoconf 2.9.
1996-03-23 * ch-lang.c (evaluate_subexp_chill): Fix typo.Fred Fish2-1/+9
1996-03-21 * config.in: Rename from config.h.in.Ian Lance Taylor6-9/+18
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in. Change CONFIG_HEADERS test in AC_OUTPUT accordingly. * configure: Rebuild. * Makefile.in (stamp-h): Depend upon config.in, not config.h.in. Set CONFIG_HEADERS to config.h:config.in. The file name config.h.in can be used on DOS filesystems.