3 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
4 (match_string_literal): Handle control sequence.
5 (match_character_literal): Deto.
7 * ch-lang.c (chill_printchar): Change formating of nonprintable
8 characters from C'xx' to ^(num).
9 (chill_printstr): Deto.
10 (value_chill_card, value_chill_max_min): New functions to process
11 Chill's CARD, MAX, MIN.
12 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
14 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
15 for Chill's CARD, MAX, MIN.
17 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
18 and change return type from builtin_type_int to
19 builtin_type_chill_bool.
23 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
24 from config/nm-nbsd.h.
25 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
26 from config/sparc/tm-nbsd.h.
28 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
29 instead of in config/m68k/xm-hp300hpux.h.
33 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
34 implementation for NetBSD systems.
38 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
39 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
41 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
42 if "function" is pointer to non-function.
46 * top.c (print_gdb_version): Update copyright year.
51 * infrun.c (wait_for_inferior): Remove breakpoints and
52 switch terminal settings before calling SOLIB_ADD.
53 * solib.c (enable_break, SVR4 variant): Don't map in symbols
54 for the dynamic linker, the namespace pollution causes real
59 * remote-mips.c (common_breakpoint): Explicitly terminate the
65 * remote.c (remote_detach): Send a command 'D' to the target
66 when detaching, update the function's comments.
70 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
71 baseline for gdb 4.16 rerelease testing.
75 * somsolib.c (som_solib_create_inferior_hook): Before returning
76 call clear_symtab_users.
80 * remote-e7000.c (e7000_open): Delete all breakpoints when
81 connecting to e7000. Change connect message to allow use of
82 monitor.exp in test suite.
83 * (e7000_load): Print transfer rate of download.
84 * symfile.c (generic_load): Print transfer rate of download.
88 * configure.in (mips*-*-vxworks*): New config.
89 * configure: Regenerated.
91 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
92 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
97 * partial-stab.h (case N_FUN): Function symbols generated
98 by SPARCworks cc have a meaningless zero value, do not update
99 pst->textlow if the function symbol value is zero.
101 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
102 for function prototype declaration symbols.
106 * remote-e7000.c (e7000_load): New routine to download via the
108 * (e7000_wait): Don't backup PC when we hit a breakpoint.
109 Apparantly new sh2 pods get this right...
110 * (e7000_ops): Add call to e7000_load.
114 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
115 m68knbsd-nat.c: New files, support for NetBSD/m68k.
117 * configure.in (m68k-*-netbsd*): New config.
118 * configure: Regenerated.
122 * standalone.c (open, _initialize_standalone): Fix obvious typos
127 * solib.c (solib_create_inferior_hook): Fix thinko.
131 * solib.c (solib_break_names): Define for Solaris and Linux.
132 (enable_break): For SVR4 systems, first try to use the debugger
133 interfaces in the dynamic linker to track shared library events
134 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
135 BKPT_AT_SYMBOL code to use shared library event breakpoints.
136 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
137 it no longer needs to restart/wait on the inferior.
138 * symfile.c (find_lowest_section): No longer static.
139 * symfile.h (find_lowest_section): Corresponding changes.
143 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
144 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
145 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
146 * config/mips/tm-mips.h: Ditto.
147 * config/pa/tm-hppa.h: Ditto.
148 * config/rs6000/tm-rs6000.h: Ditto.
149 * config/sparc/tm-sparc.h: Ditto.
153 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
155 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
156 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
157 #ifdef'd out definitions --- Causes serious gdb failures on
158 the i386. Need to investigate further before enabling.
160 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
161 fetch_core_registers): New functions. These functions are defined
162 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
163 with ptrace PT_GETREGS/PT_SETREGS.
167 * findvar.c (extract_floating store_floating): Replace `long
168 double' with `DOUBLEST'.
172 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
177 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
179 * breakpoint.h (remove_solib_event_breakpoints): Declare.
180 * breakpoint.c (remove_solib_event_breakpoints): New function.
181 * somsolib.c (solib_create_inferior_hook): Remove all solib event
182 breakpoints before inserting any new ones. Use a solib event
183 breakpoint for the breakpoint at "_start".
184 Remove extraneous "\n" from calls to warning.
186 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
191 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
192 for CORE_ADDR values.
193 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
194 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
198 * mipsread.c (mipscoff_symfile_read): Unconditionally add
199 alpha coff dynamic symbols for all symbol files. Makes skipping
200 over the trampoline code work when stepping from a function in a
201 shared library into a function in a different shared library.
205 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
206 RETURN_VALUE_ON_STACK to return long doubles on the stack.
210 * Makefile.in (ch-exp.o): Add dependencies.
211 (various): Add gdb_string.h to dependencies that need it.
215 * symmisc.c (print_symbol_bcache_statistics): Update description for
216 printing byte cache statistics.
220 * Add native support for long double data type.
221 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
222 to store actual data. Change types of INT and FLOAT tokens to
223 typed_val_int and typed_val_float respectively. Create new token
224 DOUBLE_KEYWORD to specify the string `double'. Make production
225 for FLOAT use type determined by parse_number. Add production for
226 "long double" data type.
227 * (parse_number): Use sscanf to parse numbers as float, double or
228 long double depending upon the type of typed_val_float.dval. Also
229 allow user to specify `f' or `l' suffix to explicitly specify
230 float or long double constants. Change typed_val to
232 * (yylex): Change typed_val to typed_val_int. Also, scan for
234 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
236 * configure, configure.in: Add check for long double support in
238 * defs.h: Define DOUBLEST appropriatly depending on whether
239 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
240 for functions that handle this type.
241 * expression.h (union exp_element): doubleconst is now type
243 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
244 * findvar.c (extract_floating): Make return value be DOUBLEST.
245 Also, add support for numbers with size of long double.
246 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
248 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
250 * valarith.c (value_binop): Change temp variables v1, v2 and v to
251 type DOUBLEST. Coerce type of result to long double if either op
253 * valops.c (value_arg_coerce): If argument type is bigger than
254 double, coerce to long double.
255 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
256 arg type is float and > 8 bytes, then use pointer-to-object
258 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
259 Use appropriate format and precision to print out floating point
261 * value.h: Fixup prototypes for value_as_double,
262 value_from_double, and unpack_double to use DOUBLEST.
263 * values.c (record_latest_value): Remove check for invalid
264 floats. Allow history to store them so that people may examine
265 them in hex if they want.
266 * (value_as_double unpack_double): Change return value to DOUBLEST.
267 * (value_from_double): Arg `num' is now DOUBLEST.
268 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
269 specific) to expect certain types to always be returned on the stack.
273 * bcache.c, bcache.h: New files to implement a byte cache.
274 * Makefile.in (SFILES): Add bcache.c.
275 (symtab_h): Add bcache.h.
276 (HFILES_NO_SRCDIR): add bcache.h
277 (COMMON_OBJS): Add bcache.o
278 (bcache.o): New target.
279 * dbxread.c (start_psymtab): Make global_syms & static_syms
280 type "partial_symbol **".
281 * hpread.c (hpread_start_symtab): Ditto.
282 * os9kread.c (os9k_start_psymtab): Ditto.
283 * stabsread.h (start_psymtab): Ditto.
284 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
285 * maint.c (maintenance_print_statistics): Call
286 print_symbol_bcache_statistics.
287 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
289 * solib.c (allocate_rt_common_objfile): Ditto.
290 * symfile.c (reread_symbols): Ditto.
291 (free_objfile): Free psymbol bcache when objfile is freed.
292 (objfile_relocate): Use new indirect psymbol pointers.
293 * objfiles.h (struct objfile): Add psymbol cache.
294 * symfile.c (compare_psymbols): Now passed pointers to pointers to
296 (reread_symbols): Free psymbol bcache when freeing other objfile
298 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
299 psymbol using the psymbol bcache.
300 (init_psymbol_list): Psymbol lists now contain pointers rather than
302 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
303 grown arrays of pointers.
304 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
306 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
308 (print_symbol_bcache_statistics): New function to print per objfile
310 (print_partial_symbol, print_partial_symbols,
311 maintenance_check_symtabs, extend_psymbol_list):
312 Account for change to pointer to pointer to partial symbol.
313 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
314 make_symbol_completion_list):
315 Account for change to pointer to pointer to partial symbol.
316 * symtab.h (bcache.h): Include.
317 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
318 type "partial_symbol **".
322 * dwarfread.c (free_utypes): New function.
323 (read_file_scope): Call free_utypes as cleanup, rather than just
324 freeing the utypes pointer.
328 * demangle.c (is_cplus_marker): New function, checks if a
329 character is one of the commonly used C++ marker characters.
330 * defs.h (is_cplus_marker): Add prototype.
331 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
332 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
333 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
334 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
335 values.c (vb_match): Use is_cplus_marker instead of comparison
340 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
341 delete entirely someday.
345 * mpw-make.sed: Edit out makefile rebuild rule.
346 (host_alias, target_alias): Comment out instead of deleting.
347 (@LIBS@): Edit out references.
351 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
352 Use n_psyms in OBJSTAT, not psyms.
356 * configure.in (sparclet-*-aout*): New config.
357 * configure: Regenerated.
361 * somsolib.c (som_solib_add): Use xmalloc rather than bare
362 unchecked call to malloc.
363 * remote-mips.c (pmon_load_fast): ditto.
364 * remote-mm.c (mm_open): ditto.
365 * hpread.c (hpread_lookup_type): ditto.
366 * remote-adapt.c (adapt_open): ditto.
370 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
371 allocate_saved_f77_common_node, allocate_common_entry_node,
372 add_common_block): Use xmalloc rather than malloc, some of which
374 * gnu-regex.c: At same point as other gdb specific changes
375 #undef malloc and then #define it to xmalloc.
376 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
377 bare unchecked calls to malloc/realloc.
378 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
379 unchecked call to malloc.
383 * symtab.c (gdb_mangle_name): Change opname var to be const to
384 match return val of cplus_mangle_name.
385 * i960-tdep.c: Change arg types of next_insn to match callers.
389 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
390 apparently aren't needed in any reasonably recent version of
395 * stabsread.c (read_range_type): If !self-subrange and language
396 is Chill, assume a true range. If a true_range is a sub_subrange,
397 use builtin_type_int for index_type.
401 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
402 with an ANSI compiler.
407 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
408 double-clicking will work again.
409 (create_asm_win): Put "break" at end of all B1 bindings.
410 (create_file_win): Lower "sel" tag, don't raise it.
411 (ensure_line_visible): New proc.
412 (update_listing, update_assembly): Use it.
413 (create_copyright_window): Destroy window on Leave event.
414 (create_command_window): Put "break" at end of all B2 bindings.
420 * valops.c (value_arg_coerce): Coerce float to double, unless the
421 function prototype specifies float.
425 * language.c (set_language_command): Use languages table when
426 printing available languages.
431 * command.c (add_cmd): Add missing initialization for enums member.
432 Reorder members to match structure declaration to make it easier to
433 tell when one is missing.
434 * exec.c (exec_file_command): Fix problem where filename in malloc'd
435 memory is referenced after being freed.
439 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
440 AT_name tag is missing.
442 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
443 FLTWATCH and FLTKWATCH are defined.
445 * remote.c (remote_read_bytes): Advance memaddr for transfers,
446 return number of bytes transferred for partial reads.
448 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
452 * win32-nat.c (mappings): Add ppc registers.
453 (child_resume): Turn off step for ppc.
457 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
459 * config/i386/(*win32*): Becomes *cygwin32*.
460 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
461 (powerpcle-*-cygwin32): New.
462 * configure: Regenerate.
463 * win32-nat.c (child_create_inferior): Call CreateProcess
464 with the right program arg.
468 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
472 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
476 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
478 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
480 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
481 here from config/i386/xm-i386mach.h, fix name.
482 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
483 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
484 here from config/i386/xm-ptx4.h.
485 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
486 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
487 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
488 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
489 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
491 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
492 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
493 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
497 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
498 floating point correctly.
499 (STORE_RETURN_VALUE): Likewise.
500 * config/pa/tm-pro.h (SOFT_FLOAT): define.
504 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
505 Define to what should be reasonable values. However, apparently
506 a bug in linux mmap prevents mapped symbol tables from working.
510 * defs.h (errno.h>: Move #include closer to head of file to solve
511 obscure problem with systems that declare perror with const arg, in
512 both errno.h and stdio.h, and const is defined away by intervening
518 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
519 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
523 * Makefile.in (diststuff): Make all-doc; diststuff target does not
524 exist in doc/Makefile.in.
528 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
532 * ch-valprint.c (calculate_array_length): New function to
533 determine the length of an array type.
534 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
535 array type is zero, call calculate_array_length.
537 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
538 values may not be sorted. Scan all entries and set the real lower
543 * config/xm-linux.h: Move include of solib.h and #define of
544 SVR4_SHARED_LIBS from here ...
545 * config/nm-linux.h: ...to here.
549 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
550 Also check for gregset_t and fpregset_t types.
551 * configure: Regenerate.
552 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
554 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
555 and HAVE_FPREGSET_T are defined. These changes allow systems
556 like linux that are migrating to /proc support to use a single
557 configuration for both new and old versions.
559 * config/i386/linux.mt: Note that this is now for both a.out and
561 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
563 * config/i386/tm-linux.h (tm-sysv4.h): Include.
564 * config/i386/xm-linux.h (solib.h): Include
565 (SVR4_SHARED_LIBS): Define.
566 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
567 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
568 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
573 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
574 * config/i386/xm-sun386.h: Ditto.
575 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
579 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
584 * dcache.c (dcache_peek, dcache_poke): Advance addr for
589 * infrun.c (normal_stop): Fix test for shared library event.
593 * configure.in (sparc64-*-*): Add default host configuration.
595 (sparc64-*-solaris2* host): Link statically if GCC used.
597 (sparc64-*-solaris2*): Add target configuration.
598 * configure: Regenerated.
599 * sparc/sp64sol2.mt: New file.
603 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
607 * Makefile.in (lint): Close backquotes.
612 * gdbtk.tcl, gdbtk.c: Updated copyrights.
614 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
616 * configure: Rebuilt.
621 * NEWS: Make note of new record and replay feature for
622 remote debug sessions.
623 * serial.c (gdbcmd.h): Include.
624 (serial_logfile, serial_logfp, serial_reading, serial_writing):
625 Define here, for remote debug session logging.
626 (serial_log_command, serial_logchar, serial_write, serial_readchar):
627 New functions for remote debug session logging.
628 (serial_open): Open remote debug session log file when needed.
629 (serial_close): Close remote debug session log file when needed.
630 (_initialize_serial): Add set/show commands for name of remote
631 debug session log file.
632 * serial.h (serial_readchar): Declare
633 (SERIAL_READCHAR): Call serial_readchar().
634 (SERIAL_WRITE): Call serial_write().
635 (serial_close): Declare as extern.
636 (serial_logfile, serial_logfp): Declare.
637 * top.c (execute_command): Declare serial_logfp. Log user command
638 in remote debug session log if log file is open.
639 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
640 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
641 * remote-array.c (SREC_SIZE): Remove, duplicates define in
643 * remote-array.c (hexchars, hex2mem): Remove, unused.
644 * gdbserver/low-linux.c (store_inferior_registers): Remove
645 unnecessary extern declaration of registers[].
646 * gdbserver/Makefile.in (all): Add gdbreplay.
647 * gdbserver/gdbreplay.c: New file.
648 * gdbserver/README: Give example of recording a remote
649 debug session with gdb and then replaying it with gdbreplay.
653 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
654 (read_one_struct_field): Support boolean bitfields.
655 * c-valprint.c (c_val_print): Print booleans properly.
659 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
661 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
665 * ch-exp.c (parse_tuple): Error if invalid mode.
667 * value.h (COERCE_ARRAY): Don't coerce enums.
668 (COERCE_ENUM): Don't COERCE_REF.
669 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
670 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
671 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
672 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
673 Add COERCE_REF before COERCE_ENUM.
674 * values.c (value_as_long): Simplify.
676 * valops.c (value_array): Create internalvar if !c_style_arrays.
678 * language.c (lang_bool_type): Add Fortran support.
679 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
683 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
684 All references changed.
685 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
686 Update state table. Reformat so that it's still readable.
687 When we hit the shlib_event breakpoint, set the calss of shlib_event.
688 (breakpoint_1): Add "shlib events" as a breakpoint type.
689 Print the shlib_event breakpoint like other breakpoints.
690 (create_solib_event_breakpoint): New function.
691 (breakpoint_re_set_one): Handle solib_event breakpoints.
692 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
693 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
695 (create_solib_event_breakpoint): Declare.
696 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
697 (normal_stop): Inform the user when the inferior stoped due
698 to a shared library event.
699 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
700 to control whether or not gdb continues the inferior or stops it when
701 a shared library event occurs.
702 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
703 * somsolib.c (TODO list): Update.
704 (som_solib_create_inferior_hook): Arrange for gdb to be notified
705 when significant shared library events occur.
706 * hppa-tdep.c (find_unwind_entry): No longer static.
710 * printcmd.c (print_insn): Pass fprintf_unfiltered to
711 INIT_DISASSEMBLE_INFO.
713 * gdbtk.c (gdb_disassemble): Likewise.
718 * remote.c (remotebreak): New GDB variable.
719 (remote_break): New global.
720 (remote_interrupt): Send a break instead of ^C if remote_break.
721 * NEWS: Describe the new variable.
725 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
729 * hp300ux-nat.c (getpagesize): Remove unused function
730 fetch_core_registers.
731 (hp300ux_core_fns): Remove, is unused.
732 (_initialize_core_hp300ux): Remove, is unused.
733 (gdbcore.h): Remove #include, no longer needed.
737 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
738 ptrace bug in aix4.1.3 on the rs6000.
742 * remote-hms.c (hms_ops): Add value for to_thread_alive.
743 * remote-nindy.c (nindy_ops): Ditto.
744 * remote-udi.c (udi_ops): Ditto.
748 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
749 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
750 pmon_load_fast): New functions. Support for the PMON monitor world.
751 (common_open): New function to merge support for different monitors.
752 (mips_open): Use common_open().
753 (mips_send_command): New function.
754 (mips_send_packet): Scan out-of-sequence packets.
755 (mips_enter_debug, mips_exit_debug): New functions.
756 (pmon_ops): New target definition structure.
760 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
761 specified on the make command line (via make LIBS=xxx).
763 * configure.in (enable-gm): magic.o -> gmagic.o.
769 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
770 (add_expr): Changes from create_expr_window.
771 (create_command_window): Set focus.
772 (delete_expr): Rewrote.
773 (expr_update_button): New proc.
774 (add_expr): Put bindings on FocusIn, FocusOut.
775 Don't allow .file_popup to be torn off.
780 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
781 is set but there are no psymtabs.
785 * dsrec.c (load_srec): Remove unused variable.
786 monitor.c (monitor_expect): Don't expect a ^C to echo.
787 * serial.c (serial_open): Add parallel interface.
788 * sh3-rom.c (parallel, parallel_in_use): New.
789 (sh3_load): If parallel_in_use, download though the
791 (sh3_open): Open parallel port if specified.
792 (sh3_close): New function.
793 (_inititalize_sh3): Add sh3_close hook and documentation.
794 * monitor.c (monitor_close): Export.
795 * monitor.h (monitor_close): Add prototype.
800 * remote.c (remotetimeout): New GDB variable, use to set the
801 remote timeout for reading.
806 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
807 (update_listing): Use lassign. Use "see" to scroll. Don't need
808 screen_top, screen_bot, screen_height.
809 (update_assembly): Use "see" to scroll.
810 (textscrollproc): Removed.
811 (create_file_win): Don't use textscrollproc.
812 (asmscrollproc): Removed.
813 (create_asm_window): Don't use asmscrollproc.
814 (create_asm_win): Ditto.
815 (screen_height, screen_top, screen_bot): Removed.
816 (run_editor): New proc.
817 (build_framework): Use it.
818 (create_file_win, create_source_window): Don't use textscrollproc.
819 (create_breakpoints_window): Set -xscrollcommand on canvas.
820 (not_implemented_yet): Default button is 0.
821 (delete_char): Don't use tk_textBackspace.
822 (create_command_window): Allow Tk bindings to fire after deleting
824 (create_command_window): Make Delete delete left, not right.
829 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
830 to get "struct core_fns" defined.
831 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
832 Are dependent upon gdbcore_h.
836 * symfile.c (decrement_reading_symtab): New function.
837 * symfile.c, symtab.h (currently_reading_symtab): New variable.
838 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
839 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
840 currently_reading_symtab (since that could infinitely recurse).
844 * stabsread.c (read_struct_type): Trivial simplification.
846 * stabsread.c (define-symbol): Use invisible references
847 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
848 * valops.c (call_function_by_hand): Likewise.
849 * eval.c (evaluate_subexp_standard): When known, use the formal
850 parameter type as the expected type when evaluating arg expressions.
851 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
856 * main.c (main): Disable window interface if --help or --version
859 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
861 Changes in sync with expect:
862 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
864 * aclocal.m4: Replaced with version from expect.
865 * configure: Regenerated.
870 * configure.in, configure: Recognize rs6000-*-aix4*.
871 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
872 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
873 * config/rs6000/xm-aix4.h: New file.
874 * config/xm-aix4.h: New file.
879 * gdbserver/low-linux.c: New file.
880 * remote.c (remote_read_bytes): Fix aborts on larger packets.
882 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
884 * stabsread.c (define_symbol): If register value is too large,
885 tell what it is and what max is.
890 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
891 gdbtk_tcl_flush): Use "see", not "yview".
892 (gdbtk_tcl_query): Use questhead bitmap.
893 various: Always wrap condition of 'if' in {...}.
894 (add_breakpoint_frame): Set -value on radiobuttons.
896 (add_breakpoint_frame): Use lassign, not series of assignments.
898 (interactive_cmd): Use "see", not "yview".
899 (not_implemented_yet): Use warning bitmap.
900 (update_expr): Don't allow $expr to be evalled by Tcl.
901 (create_expr_window): Don't use "focus".
902 (delete_char, delete_line): Define globally.
903 (delete_line, delete_char, create_command_window, update_autocmd,
904 build_framework, create_asm_win, create_file_win): Use "see", not
906 (create_copyright_window, center_window, bind_widget_after_class):
908 (FSBox,create_command_window, create_autocmd_window): Binding
910 (textscrollproc): Define globally.
911 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
912 Home, End, Up, and Down are all defined by Tk.
913 (apply_filespec): Use error bitmap in dialog.
914 (files_command): Don't use tk_listboxSingleSelect.
915 (files_command): Don't use "uniq" to remove duplicates from a
917 (update_assembly): Use lassign.
918 (create_asm_win): Removed redundant bindings.
919 (listing_window_button_1, file_popup_menu): Use tk_popup.
920 (ButtonRelease-1 binding): Just remove tag from window; rest
923 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
924 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
925 (gdbtk_call_command): Ditto.
930 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
931 enum namespace -> enum_namespace change.
935 * ch-exp.c (parse_primval): In case ARRAY, add missing
940 * remote-mips.c (mips_receive_header): Recognize \012 instead
941 of \n, but write \n when program sends a \012.
942 * ser-mac.c (mac_input_buffer): Increase size of buffer.
946 * infptrace.c (initialize_infptrace): Move function out of
947 #ifdef conditional; put code within the function inside an
950 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
951 arguments. Sorting is now dependent on OBJF_REORDERED. All
952 callers/references changed.
953 * dbxread.c (read_ofile_symtab): Correctly determine value for
954 last_source_start_addr for reordered executables.
955 (process_one_symbol): Handle N_FUN with no name as an end of
957 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
958 is the high text address for a psymtab.
959 (case N_SO): Likewise.
960 (case N_FUN): Handle N_FUN with no name as an end of function
962 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
963 at the same address rather than a random subset of them.
964 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
965 * elfread.c (elf_symfile_init): Similarly.
966 * somread.c (som_symfile_init): Similarly.
967 * xcoffread.c (xcoff_symfile_init): Similarly.
971 * stack.c (print_stack_frame print_frame_info) symmisc.c
972 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
973 that catch_errors doesn't get blindsided by QUIT and lose the
974 cleanup chain. This fixes a problem where ^C while in a
975 user-defined command sometimes leaves instream NULL and causes a
976 segfault in command_loop.
980 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
984 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
985 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
986 srec.o renamed to dsrec.o.
990 * breakpoint.c (remove_breakpoint): Change error to warning so
991 that hardware watchpoint removal problems won't leave breakpoint
994 * configure configure.in: Make --enable-gdbtk be the default.
996 * remote-e7000.c (e7000_insert_breakpoint,
997 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
999 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
1000 compensate for e7000 maladjustment.
1001 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
1002 which prevented hardware watchpoints from working.
1006 * infptrace.c (udot_info): New function.
1007 (PT_*): Define each individually if that one is not defined.
1008 * rs6000-nat.c (kernel_u_size): New function
1009 Include <sys/user.h> for "struct user"
1010 * alpha-nat.c (kernel_u_size): New function.
1011 Include <sys/user.h> for "struct user"
1012 * sparc-nat.c (kernel_u_size): New function.
1013 Include <sys/user.h> for "struct user"
1014 * i386b-nat.c (kernel_u_size): New function.
1015 * i386v-nat.c (kernel_u_size): New function.
1016 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
1017 (kernel_u_size): Declare.
1018 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
1019 (kernel_u_size): Declare.
1020 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
1021 (kernel_u_size): Declare.
1022 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
1023 (kernel_u_size): Declare.
1024 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
1025 (kernel_u_size): Declare.
1029 * mdebugread.c (mylookup_symbol): enum namespace becomes
1030 enum_namespace type.
1031 * symfile.c (add_psymbol_to_list)
1032 (add_psymbol_addr_to_list): Ditto.
1033 * symtab.c (lookup_partial_symbol): Ditto.
1034 (lookup_symbol): Ditto.
1035 (lookup_block_symbol): Ditto.
1036 * win32-nat.c (handle_load_dll): Use incoming dll base.
1037 (child_wait): Catch DLL load errors.
1038 (create_child_inferior): Translated between paths correctly.
1042 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
1043 from NUM_REGS to get number of general registers that we care about.
1044 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
1045 of number of general regs and number of floating point regs.
1049 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
1050 (SKIP_TRAMPOLINE_CODE): New.
1051 * config/i386/xm-win32.h (CANT_FORK): Deleted.
1052 (SLASH*) Changed to use unix style slash.
1053 * symtab.h (namespace enum): becomes typedef to avoid namespace
1055 * infcmd.c (path_command): Use empty string if PATH name not set.
1056 * i386-tdep.c (skip_trampoline_code): New function.
1057 * srec.c: Renamed dsrec.c to avoid filename collision.
1058 * Makefile.in: Cope with renaming.
1062 * symmisc.c (print_objfile_statistics): Print memory use statistics
1063 for objfile psymbol, symbol, and type obstacks.
1067 * config/mips/nm-irix5.h: Restore.
1068 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
1070 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
1071 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1073 For older changes see ChangeLog-95
1079 version-control: never