3 * config.in: Rename from config.h.in.
4 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
5 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
7 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
8 Set CONFIG_HEADERS to config.h:config.in.
12 * partial-stab.h (case N_ENDM): Finish current partial symbol
13 table for Solaris 2 cc.
17 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
18 PC in the registers array. From Peter Schauer.
22 * symfile.c (reread_symbols): Reinitialize bcache struct
23 members to zero using memset. Also use memset to reinit
24 global_psymbols and static_psymbols, rather than explicitly
25 resetting each structure member.
29 * configure.in: Add fragment to create stamp-h.
32 * configure.in (AC_CHECK_HEADERS): Check for link.h.
33 * configure: Regenerate with autoconf.
34 * config.h.in: Regenerate with autoheader.
35 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
37 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
38 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
39 older a.out based systems.
43 * config.h.in: New file.
44 * acconfig.h: New file, for autoheader.
45 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
46 * configure: Regenerate.
47 * Makefile.in (defs_h): Add config.h
48 (distclean): Remove config.h and stamp-h during distclean.
49 (config.h, stamp-h): New targets to remake config.h when necessary.
50 * defs.h (config.h): Include before any other includes or defines.
51 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
52 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
57 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
58 result in an empty line, to work around a bug in native Ultrix 4.4
63 * configure.in: Add gdbserver to configdirs under linux.
64 * configure: Regenerate.
68 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
69 * config/i386/tm-nbsd.h (NUM_REGS): Define.
73 * solib.c (solib_break_names): Add _r_debug_state for
74 vanilla SVR4 implementations. From Peter Schauer.
78 * mon960-rom.c: New file; support mon960 rom monitor on i960.
79 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
80 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
81 epecting prompt and echo during open.
82 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
83 determine if break should be sent as stop command.
84 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
85 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
86 stack frame on mon960.
87 * Makefile.in: Add mon960 files.
88 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
89 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
90 * configure: Regenerated.
91 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
92 support mon960 rom monitor on i960.
97 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
98 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
99 (handle_load_dll): Don't reload symbols.
100 (handle_exception): Use the DEBUG_* names.
101 (child_wait): Add DEBUG_* code.
102 (_initialize_inftarg): Add new commands to set debug_ names.
106 * From Peter Schauer:
107 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
108 (bpstat_stop_status): Likewise.
109 (remove_solib_event_breakpoints): Likewise.
110 (clear_momentary_breakpoints): Likewise.
111 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
112 if we still can't read the memory for that breakpoint.
113 (mention): Add bp_shlib_event case to keep gcc quiet.
117 * breakpoint.h (enum enable): New enum shlib_disabled for
118 shared library breakpoints that have been temporarily disabled.
119 * breakpoint.c: Handle temporarily disabled shared library
120 breakpoints like disabled breakpoints in most places.
121 (insert_breakpoints): Use shlib_disabled to indicate
122 that an unsettable breakpoint is only temporarily disabled.
123 (re_enable_breakpoints_in_shlibs): New function.
124 * corelow.c (solib_add_stub): After adding shared libraries,
125 try to reenable any temporarily disabled breakpoints.
126 * infcmd.c (attach_command): Likewise.
127 * infrun.c (wait_for_inferior): Likewise.
131 * defs.h (extract_long_unsigned_integer): Declare.
132 * findvar.c (extract_long_unsigned_integer): New function.
133 * printcmd.c (print_scalar_formatted): Use it.
134 * valprint.c (val_print_type_code_int): Likewise.
138 * infcmd.c (do_registers_info): Ignore anonymous registers.
139 * sh-tdep.c (set processor): New command to set specific
141 (sh_reg_names, sh3_reg_names): Arrays of register names for
142 SH and SH3 processors.
143 (sh_set_processor_type): New function.
144 * sh3-rom.c (sh3_open): Call it.
145 (sh3_regname): Add names of all the bank registers.
146 (sh3_supply_register): Clean up formatting.
147 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
149 (REGISTER_NAMES): Add names of bank registers.
150 (FP15_REGNUM): Define.
151 (REGISTER_VIRTUAL_TYPE): Use it.
152 * monitor.c: Clean up some comments.
156 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
157 s* and t* symbols too.
161 * symfile.c (generic_load): Avoid division by zero.
165 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
166 not just those with HANDLE_SVR4_EXEC_EMULATORS.
169 * breakpoint.c (internal_breakpoint_number): Move to file scope.
170 (create_solib_event_breakpoint): Use an internal breakpoint number.
174 * valarith.c (value_in): Change builtin_type_chill_bool to
179 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
180 (match_string_literal): Handle control sequence.
181 (match_character_literal): Deto.
183 * ch-lang.c (chill_printchar): Change formating of nonprintable
184 characters from C'xx' to ^(num).
185 (chill_printstr): Deto.
186 (value_chill_card, value_chill_max_min): New functions to process
187 Chill's CARD, MAX, MIN.
188 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
190 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
191 for Chill's CARD, MAX, MIN.
193 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
194 and change return type from builtin_type_int to
195 builtin_type_chill_bool.
199 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
200 from config/nm-nbsd.h.
201 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
202 from config/sparc/tm-nbsd.h.
204 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
205 instead of in config/m68k/xm-hp300hpux.h.
209 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
210 implementation for NetBSD systems.
214 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
215 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
217 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
218 if "function" is pointer to non-function.
222 * top.c (print_gdb_version): Update copyright year.
227 * infrun.c (wait_for_inferior): Remove breakpoints and
228 switch terminal settings before calling SOLIB_ADD.
229 * solib.c (enable_break, SVR4 variant): Don't map in symbols
230 for the dynamic linker, the namespace pollution causes real
235 * remote-mips.c (common_breakpoint): Explicitly terminate the
241 * remote.c (remote_detach): Send a command 'D' to the target
242 when detaching, update the function's comments.
246 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
247 baseline for gdb 4.16 rerelease testing.
251 * somsolib.c (som_solib_create_inferior_hook): Before returning
252 call clear_symtab_users.
256 * remote-e7000.c (e7000_open): Delete all breakpoints when
257 connecting to e7000. Change connect message to allow use of
258 monitor.exp in test suite.
259 * (e7000_load): Print transfer rate of download.
260 * symfile.c (generic_load): Print transfer rate of download.
264 * configure.in (mips*-*-vxworks*): New config.
265 * configure: Regenerated.
267 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
268 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
273 * partial-stab.h (case N_FUN): Function symbols generated
274 by SPARCworks cc have a meaningless zero value, do not update
275 pst->textlow if the function symbol value is zero.
277 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
278 for function prototype declaration symbols.
282 * remote-e7000.c (e7000_load): New routine to download via the
284 * (e7000_wait): Don't backup PC when we hit a breakpoint.
285 Apparantly new sh2 pods get this right...
286 * (e7000_ops): Add call to e7000_load.
290 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
291 m68knbsd-nat.c: New files, support for NetBSD/m68k.
293 * configure.in (m68k-*-netbsd*): New config.
294 * configure: Regenerated.
298 * standalone.c (open, _initialize_standalone): Fix obvious typos
303 * solib.c (solib_create_inferior_hook): Fix thinko.
307 * solib.c (solib_break_names): Define for Solaris and Linux.
308 (enable_break): For SVR4 systems, first try to use the debugger
309 interfaces in the dynamic linker to track shared library events
310 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
311 BKPT_AT_SYMBOL code to use shared library event breakpoints.
312 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
313 it no longer needs to restart/wait on the inferior.
314 * symfile.c (find_lowest_section): No longer static.
315 * symfile.h (find_lowest_section): Corresponding changes.
319 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
320 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
321 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
322 * config/mips/tm-mips.h: Ditto.
323 * config/pa/tm-hppa.h: Ditto.
324 * config/rs6000/tm-rs6000.h: Ditto.
325 * config/sparc/tm-sparc.h: Ditto.
329 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
331 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
332 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
333 #ifdef'd out definitions --- Causes serious gdb failures on
334 the i386. Need to investigate further before enabling.
336 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
337 fetch_core_registers): New functions. These functions are defined
338 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
339 with ptrace PT_GETREGS/PT_SETREGS.
343 * findvar.c (extract_floating store_floating): Replace `long
344 double' with `DOUBLEST'.
348 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
353 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
355 * breakpoint.h (remove_solib_event_breakpoints): Declare.
356 * breakpoint.c (remove_solib_event_breakpoints): New function.
357 * somsolib.c (solib_create_inferior_hook): Remove all solib event
358 breakpoints before inserting any new ones. Use a solib event
359 breakpoint for the breakpoint at "_start".
360 Remove extraneous "\n" from calls to warning.
362 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
367 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
368 for CORE_ADDR values.
369 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
370 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
374 * mipsread.c (mipscoff_symfile_read): Unconditionally add
375 alpha coff dynamic symbols for all symbol files. Makes skipping
376 over the trampoline code work when stepping from a function in a
377 shared library into a function in a different shared library.
381 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
382 RETURN_VALUE_ON_STACK to return long doubles on the stack.
386 * Makefile.in (ch-exp.o): Add dependencies.
387 (various): Add gdb_string.h to dependencies that need it.
391 * symmisc.c (print_symbol_bcache_statistics): Update description for
392 printing byte cache statistics.
396 * Add native support for long double data type.
397 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
398 to store actual data. Change types of INT and FLOAT tokens to
399 typed_val_int and typed_val_float respectively. Create new token
400 DOUBLE_KEYWORD to specify the string `double'. Make production
401 for FLOAT use type determined by parse_number. Add production for
402 "long double" data type.
403 * (parse_number): Use sscanf to parse numbers as float, double or
404 long double depending upon the type of typed_val_float.dval. Also
405 allow user to specify `f' or `l' suffix to explicitly specify
406 float or long double constants. Change typed_val to
408 * (yylex): Change typed_val to typed_val_int. Also, scan for
410 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
412 * configure, configure.in: Add check for long double support in
414 * defs.h: Define DOUBLEST appropriatly depending on whether
415 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
416 for functions that handle this type.
417 * expression.h (union exp_element): doubleconst is now type
419 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
420 * findvar.c (extract_floating): Make return value be DOUBLEST.
421 Also, add support for numbers with size of long double.
422 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
424 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
426 * valarith.c (value_binop): Change temp variables v1, v2 and v to
427 type DOUBLEST. Coerce type of result to long double if either op
429 * valops.c (value_arg_coerce): If argument type is bigger than
430 double, coerce to long double.
431 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
432 arg type is float and > 8 bytes, then use pointer-to-object
434 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
435 Use appropriate format and precision to print out floating point
437 * value.h: Fixup prototypes for value_as_double,
438 value_from_double, and unpack_double to use DOUBLEST.
439 * values.c (record_latest_value): Remove check for invalid
440 floats. Allow history to store them so that people may examine
441 them in hex if they want.
442 * (value_as_double unpack_double): Change return value to DOUBLEST.
443 * (value_from_double): Arg `num' is now DOUBLEST.
444 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
445 specific) to expect certain types to always be returned on the stack.
449 * bcache.c, bcache.h: New files to implement a byte cache.
450 * Makefile.in (SFILES): Add bcache.c.
451 (symtab_h): Add bcache.h.
452 (HFILES_NO_SRCDIR): add bcache.h
453 (COMMON_OBJS): Add bcache.o
454 (bcache.o): New target.
455 * dbxread.c (start_psymtab): Make global_syms & static_syms
456 type "partial_symbol **".
457 * hpread.c (hpread_start_symtab): Ditto.
458 * os9kread.c (os9k_start_psymtab): Ditto.
459 * stabsread.h (start_psymtab): Ditto.
460 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
461 * maint.c (maintenance_print_statistics): Call
462 print_symbol_bcache_statistics.
463 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
465 * solib.c (allocate_rt_common_objfile): Ditto.
466 * symfile.c (reread_symbols): Ditto.
467 (free_objfile): Free psymbol bcache when objfile is freed.
468 (objfile_relocate): Use new indirect psymbol pointers.
469 * objfiles.h (struct objfile): Add psymbol cache.
470 * symfile.c (compare_psymbols): Now passed pointers to pointers to
472 (reread_symbols): Free psymbol bcache when freeing other objfile
474 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
475 psymbol using the psymbol bcache.
476 (init_psymbol_list): Psymbol lists now contain pointers rather than
478 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
479 grown arrays of pointers.
480 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
482 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
484 (print_symbol_bcache_statistics): New function to print per objfile
486 (print_partial_symbol, print_partial_symbols,
487 maintenance_check_symtabs, extend_psymbol_list):
488 Account for change to pointer to pointer to partial symbol.
489 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
490 make_symbol_completion_list):
491 Account for change to pointer to pointer to partial symbol.
492 * symtab.h (bcache.h): Include.
493 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
494 type "partial_symbol **".
498 * dwarfread.c (free_utypes): New function.
499 (read_file_scope): Call free_utypes as cleanup, rather than just
500 freeing the utypes pointer.
504 * demangle.c (is_cplus_marker): New function, checks if a
505 character is one of the commonly used C++ marker characters.
506 * defs.h (is_cplus_marker): Add prototype.
507 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
508 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
509 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
510 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
511 values.c (vb_match): Use is_cplus_marker instead of comparison
516 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
517 delete entirely someday.
521 * mpw-make.sed: Edit out makefile rebuild rule.
522 (host_alias, target_alias): Comment out instead of deleting.
523 (@LIBS@): Edit out references.
527 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
528 Use n_psyms in OBJSTAT, not psyms.
532 * configure.in (sparclet-*-aout*): New config.
533 * configure: Regenerated.
537 * somsolib.c (som_solib_add): Use xmalloc rather than bare
538 unchecked call to malloc.
539 * remote-mips.c (pmon_load_fast): ditto.
540 * remote-mm.c (mm_open): ditto.
541 * hpread.c (hpread_lookup_type): ditto.
542 * remote-adapt.c (adapt_open): ditto.
546 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
547 allocate_saved_f77_common_node, allocate_common_entry_node,
548 add_common_block): Use xmalloc rather than malloc, some of which
550 * gnu-regex.c: At same point as other gdb specific changes
551 #undef malloc and then #define it to xmalloc.
552 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
553 bare unchecked calls to malloc/realloc.
554 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
555 unchecked call to malloc.
559 * symtab.c (gdb_mangle_name): Change opname var to be const to
560 match return val of cplus_mangle_name.
561 * i960-tdep.c: Change arg types of next_insn to match callers.
565 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
566 apparently aren't needed in any reasonably recent version of
571 * stabsread.c (read_range_type): If !self-subrange and language
572 is Chill, assume a true range. If a true_range is a sub_subrange,
573 use builtin_type_int for index_type.
577 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
578 with an ANSI compiler.
583 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
584 double-clicking will work again.
585 (create_asm_win): Put "break" at end of all B1 bindings.
586 (create_file_win): Lower "sel" tag, don't raise it.
587 (ensure_line_visible): New proc.
588 (update_listing, update_assembly): Use it.
589 (create_copyright_window): Destroy window on Leave event.
590 (create_command_window): Put "break" at end of all B2 bindings.
596 * valops.c (value_arg_coerce): Coerce float to double, unless the
597 function prototype specifies float.
601 * language.c (set_language_command): Use languages table when
602 printing available languages.
607 * command.c (add_cmd): Add missing initialization for enums member.
608 Reorder members to match structure declaration to make it easier to
609 tell when one is missing.
610 * exec.c (exec_file_command): Fix problem where filename in malloc'd
611 memory is referenced after being freed.
615 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
616 AT_name tag is missing.
618 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
619 FLTWATCH and FLTKWATCH are defined.
621 * remote.c (remote_read_bytes): Advance memaddr for transfers,
622 return number of bytes transferred for partial reads.
624 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
628 * win32-nat.c (mappings): Add ppc registers.
629 (child_resume): Turn off step for ppc.
633 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
635 * config/i386/(*win32*): Becomes *cygwin32*.
636 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
637 (powerpcle-*-cygwin32): New.
638 * configure: Regenerate.
639 * win32-nat.c (child_create_inferior): Call CreateProcess
640 with the right program arg.
644 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
648 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
652 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
654 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
656 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
657 here from config/i386/xm-i386mach.h, fix name.
658 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
659 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
660 here from config/i386/xm-ptx4.h.
661 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
662 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
663 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
664 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
665 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
667 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
668 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
669 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
673 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
674 floating point correctly.
675 (STORE_RETURN_VALUE): Likewise.
676 * config/pa/tm-pro.h (SOFT_FLOAT): define.
680 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
681 Define to what should be reasonable values. However, apparently
682 a bug in linux mmap prevents mapped symbol tables from working.
686 * defs.h (errno.h>: Move #include closer to head of file to solve
687 obscure problem with systems that declare perror with const arg, in
688 both errno.h and stdio.h, and const is defined away by intervening
694 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
695 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
699 * Makefile.in (diststuff): Make all-doc; diststuff target does not
700 exist in doc/Makefile.in.
704 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
708 * ch-valprint.c (calculate_array_length): New function to
709 determine the length of an array type.
710 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
711 array type is zero, call calculate_array_length.
713 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
714 values may not be sorted. Scan all entries and set the real lower
719 * config/xm-linux.h: Move include of solib.h and #define of
720 SVR4_SHARED_LIBS from here ...
721 * config/nm-linux.h: ...to here.
725 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
726 Also check for gregset_t and fpregset_t types.
727 * configure: Regenerate.
728 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
730 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
731 and HAVE_FPREGSET_T are defined. These changes allow systems
732 like linux that are migrating to /proc support to use a single
733 configuration for both new and old versions.
735 * config/i386/linux.mt: Note that this is now for both a.out and
737 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
739 * config/i386/tm-linux.h (tm-sysv4.h): Include.
740 * config/i386/xm-linux.h (solib.h): Include
741 (SVR4_SHARED_LIBS): Define.
742 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
743 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
744 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
749 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
750 * config/i386/xm-sun386.h: Ditto.
751 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
755 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
760 * dcache.c (dcache_peek, dcache_poke): Advance addr for
765 * infrun.c (normal_stop): Fix test for shared library event.
769 * configure.in (sparc64-*-*): Add default host configuration.
771 (sparc64-*-solaris2* host): Link statically if GCC used.
773 (sparc64-*-solaris2*): Add target configuration.
774 * configure: Regenerated.
775 * sparc/sp64sol2.mt: New file.
779 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
783 * Makefile.in (lint): Close backquotes.
788 * gdbtk.tcl, gdbtk.c: Updated copyrights.
790 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
792 * configure: Rebuilt.
797 * NEWS: Make note of new record and replay feature for
798 remote debug sessions.
799 * serial.c (gdbcmd.h): Include.
800 (serial_logfile, serial_logfp, serial_reading, serial_writing):
801 Define here, for remote debug session logging.
802 (serial_log_command, serial_logchar, serial_write, serial_readchar):
803 New functions for remote debug session logging.
804 (serial_open): Open remote debug session log file when needed.
805 (serial_close): Close remote debug session log file when needed.
806 (_initialize_serial): Add set/show commands for name of remote
807 debug session log file.
808 * serial.h (serial_readchar): Declare
809 (SERIAL_READCHAR): Call serial_readchar().
810 (SERIAL_WRITE): Call serial_write().
811 (serial_close): Declare as extern.
812 (serial_logfile, serial_logfp): Declare.
813 * top.c (execute_command): Declare serial_logfp. Log user command
814 in remote debug session log if log file is open.
815 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
816 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
817 * remote-array.c (SREC_SIZE): Remove, duplicates define in
819 * remote-array.c (hexchars, hex2mem): Remove, unused.
820 * gdbserver/low-linux.c (store_inferior_registers): Remove
821 unnecessary extern declaration of registers[].
822 * gdbserver/Makefile.in (all): Add gdbreplay.
823 * gdbserver/gdbreplay.c: New file.
824 * gdbserver/README: Give example of recording a remote
825 debug session with gdb and then replaying it with gdbreplay.
829 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
830 (read_one_struct_field): Support boolean bitfields.
831 * c-valprint.c (c_val_print): Print booleans properly.
835 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
837 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
841 * ch-exp.c (parse_tuple): Error if invalid mode.
843 * value.h (COERCE_ARRAY): Don't coerce enums.
844 (COERCE_ENUM): Don't COERCE_REF.
845 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
846 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
847 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
848 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
849 Add COERCE_REF before COERCE_ENUM.
850 * values.c (value_as_long): Simplify.
852 * valops.c (value_array): Create internalvar if !c_style_arrays.
854 * language.c (lang_bool_type): Add Fortran support.
855 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
859 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
860 All references changed.
861 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
862 Update state table. Reformat so that it's still readable.
863 When we hit the shlib_event breakpoint, set the calss of shlib_event.
864 (breakpoint_1): Add "shlib events" as a breakpoint type.
865 Print the shlib_event breakpoint like other breakpoints.
866 (create_solib_event_breakpoint): New function.
867 (breakpoint_re_set_one): Handle solib_event breakpoints.
868 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
869 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
871 (create_solib_event_breakpoint): Declare.
872 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
873 (normal_stop): Inform the user when the inferior stoped due
874 to a shared library event.
875 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
876 to control whether or not gdb continues the inferior or stops it when
877 a shared library event occurs.
878 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
879 * somsolib.c (TODO list): Update.
880 (som_solib_create_inferior_hook): Arrange for gdb to be notified
881 when significant shared library events occur.
882 * hppa-tdep.c (find_unwind_entry): No longer static.
886 * printcmd.c (print_insn): Pass fprintf_unfiltered to
887 INIT_DISASSEMBLE_INFO.
889 * gdbtk.c (gdb_disassemble): Likewise.
894 * remote.c (remotebreak): New GDB variable.
895 (remote_break): New global.
896 (remote_interrupt): Send a break instead of ^C if remote_break.
897 * NEWS: Describe the new variable.
901 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
905 * hp300ux-nat.c (getpagesize): Remove unused function
906 fetch_core_registers.
907 (hp300ux_core_fns): Remove, is unused.
908 (_initialize_core_hp300ux): Remove, is unused.
909 (gdbcore.h): Remove #include, no longer needed.
913 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
914 ptrace bug in aix4.1.3 on the rs6000.
918 * remote-hms.c (hms_ops): Add value for to_thread_alive.
919 * remote-nindy.c (nindy_ops): Ditto.
920 * remote-udi.c (udi_ops): Ditto.
924 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
925 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
926 pmon_load_fast): New functions. Support for the PMON monitor world.
927 (common_open): New function to merge support for different monitors.
928 (mips_open): Use common_open().
929 (mips_send_command): New function.
930 (mips_send_packet): Scan out-of-sequence packets.
931 (mips_enter_debug, mips_exit_debug): New functions.
932 (pmon_ops): New target definition structure.
936 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
937 specified on the make command line (via make LIBS=xxx).
939 * configure.in (enable-gm): magic.o -> gmagic.o.
945 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
946 (add_expr): Changes from create_expr_window.
947 (create_command_window): Set focus.
948 (delete_expr): Rewrote.
949 (expr_update_button): New proc.
950 (add_expr): Put bindings on FocusIn, FocusOut.
951 Don't allow .file_popup to be torn off.
956 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
957 is set but there are no psymtabs.
961 * dsrec.c (load_srec): Remove unused variable.
962 * monitor.c (monitor_expect): Don't expect a ^C to echo.
963 * serial.c (serial_open): Add parallel interface.
964 * sh3-rom.c (parallel, parallel_in_use): New.
965 (sh3_load): If parallel_in_use, download though the
967 (sh3_open): Open parallel port if specified.
968 (sh3_close): New function.
969 (_inititalize_sh3): Add sh3_close hook and documentation.
970 * monitor.c (monitor_close): Export.
971 * monitor.h (monitor_close): Add prototype.
976 * remote.c (remotetimeout): New GDB variable, use to set the
977 remote timeout for reading.
982 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
983 (update_listing): Use lassign. Use "see" to scroll. Don't need
984 screen_top, screen_bot, screen_height.
985 (update_assembly): Use "see" to scroll.
986 (textscrollproc): Removed.
987 (create_file_win): Don't use textscrollproc.
988 (asmscrollproc): Removed.
989 (create_asm_window): Don't use asmscrollproc.
990 (create_asm_win): Ditto.
991 (screen_height, screen_top, screen_bot): Removed.
992 (run_editor): New proc.
993 (build_framework): Use it.
994 (create_file_win, create_source_window): Don't use textscrollproc.
995 (create_breakpoints_window): Set -xscrollcommand on canvas.
996 (not_implemented_yet): Default button is 0.
997 (delete_char): Don't use tk_textBackspace.
998 (create_command_window): Allow Tk bindings to fire after deleting
1000 (create_command_window): Make Delete delete left, not right.
1005 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
1006 to get "struct core_fns" defined.
1007 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
1008 Are dependent upon gdbcore_h.
1012 * symfile.c (decrement_reading_symtab): New function.
1013 * symfile.c, symtab.h (currently_reading_symtab): New variable.
1014 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
1015 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
1016 currently_reading_symtab (since that could infinitely recurse).
1020 * stabsread.c (read_struct_type): Trivial simplification.
1022 * stabsread.c (define-symbol): Use invisible references
1023 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
1024 * valops.c (call_function_by_hand): Likewise.
1025 * eval.c (evaluate_subexp_standard): When known, use the formal
1026 parameter type as the expected type when evaluating arg expressions.
1027 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
1029 start-sanitize-gdbtk
1032 * main.c (main): Disable window interface if --help or --version
1035 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
1037 Changes in sync with expect:
1038 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
1040 * aclocal.m4: Replaced with version from expect.
1041 * configure: Regenerated.
1046 * configure.in, configure: Recognize rs6000-*-aix4*.
1047 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
1048 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
1049 * config/rs6000/xm-aix4.h: New file.
1050 * config/xm-aix4.h: New file.
1055 * gdbserver/low-linux.c: New file.
1056 * remote.c (remote_read_bytes): Fix aborts on larger packets.
1058 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
1060 * stabsread.c (define_symbol): If register value is too large,
1061 tell what it is and what max is.
1063 start-sanitize-gdbtk
1066 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
1067 gdbtk_tcl_flush): Use "see", not "yview".
1068 (gdbtk_tcl_query): Use questhead bitmap.
1069 various: Always wrap condition of 'if' in {...}.
1070 (add_breakpoint_frame): Set -value on radiobuttons.
1071 (lassign): New proc.
1072 (add_breakpoint_frame): Use lassign, not series of assignments.
1073 (decr): Made faster.
1074 (interactive_cmd): Use "see", not "yview".
1075 (not_implemented_yet): Use warning bitmap.
1076 (update_expr): Don't allow $expr to be evalled by Tcl.
1077 (create_expr_window): Don't use "focus".
1078 (delete_char, delete_line): Define globally.
1079 (delete_line, delete_char, create_command_window, update_autocmd,
1080 build_framework, create_asm_win, create_file_win): Use "see", not
1082 (create_copyright_window, center_window, bind_widget_after_class):
1084 (FSBox,create_command_window, create_autocmd_window): Binding
1086 (textscrollproc): Define globally.
1087 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
1088 Home, End, Up, and Down are all defined by Tk.
1089 (apply_filespec): Use error bitmap in dialog.
1090 (files_command): Don't use tk_listboxSingleSelect.
1091 (files_command): Don't use "uniq" to remove duplicates from a
1093 (update_assembly): Use lassign.
1094 (create_asm_win): Removed redundant bindings.
1095 (listing_window_button_1, file_popup_menu): Use tk_popup.
1096 (ButtonRelease-1 binding): Just remove tag from window; rest
1099 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
1100 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
1101 (gdbtk_call_command): Ditto.
1106 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
1107 enum namespace -> enum_namespace change.
1111 * ch-exp.c (parse_primval): In case ARRAY, add missing
1116 * remote-mips.c (mips_receive_header): Recognize \012 instead
1117 of \n, but write \n when program sends a \012.
1118 * ser-mac.c (mac_input_buffer): Increase size of buffer.
1122 * infptrace.c (initialize_infptrace): Move function out of
1123 #ifdef conditional; put code within the function inside an
1126 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
1127 arguments. Sorting is now dependent on OBJF_REORDERED. All
1128 callers/references changed.
1129 * dbxread.c (read_ofile_symtab): Correctly determine value for
1130 last_source_start_addr for reordered executables.
1131 (process_one_symbol): Handle N_FUN with no name as an end of
1133 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
1134 is the high text address for a psymtab.
1135 (case N_SO): Likewise.
1136 (case N_FUN): Handle N_FUN with no name as an end of function
1138 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
1139 at the same address rather than a random subset of them.
1140 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
1141 * elfread.c (elf_symfile_init): Similarly.
1142 * somread.c (som_symfile_init): Similarly.
1143 * xcoffread.c (xcoff_symfile_init): Similarly.
1147 * stack.c (print_stack_frame print_frame_info) symmisc.c
1148 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
1149 that catch_errors doesn't get blindsided by QUIT and lose the
1150 cleanup chain. This fixes a problem where ^C while in a
1151 user-defined command sometimes leaves instream NULL and causes a
1152 segfault in command_loop.
1156 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
1160 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
1161 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
1162 srec.o renamed to dsrec.o.
1166 * breakpoint.c (remove_breakpoint): Change error to warning so
1167 that hardware watchpoint removal problems won't leave breakpoint
1168 traps in the target.
1169 start-sanitize-gdbtk
1170 * configure configure.in: Make --enable-gdbtk be the default.
1172 * remote-e7000.c (e7000_insert_breakpoint,
1173 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
1175 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
1176 compensate for e7000 maladjustment.
1177 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
1178 which prevented hardware watchpoints from working.
1182 * infptrace.c (udot_info): New function.
1183 (PT_*): Define each individually if that one is not defined.
1184 * rs6000-nat.c (kernel_u_size): New function
1185 Include <sys/user.h> for "struct user"
1186 * alpha-nat.c (kernel_u_size): New function.
1187 Include <sys/user.h> for "struct user"
1188 * sparc-nat.c (kernel_u_size): New function.
1189 Include <sys/user.h> for "struct user"
1190 * i386b-nat.c (kernel_u_size): New function.
1191 * i386v-nat.c (kernel_u_size): New function.
1192 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
1193 (kernel_u_size): Declare.
1194 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
1195 (kernel_u_size): Declare.
1196 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
1197 (kernel_u_size): Declare.
1198 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
1199 (kernel_u_size): Declare.
1200 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
1201 (kernel_u_size): Declare.
1205 * mdebugread.c (mylookup_symbol): enum namespace becomes
1206 enum_namespace type.
1207 * symfile.c (add_psymbol_to_list)
1208 (add_psymbol_addr_to_list): Ditto.
1209 * symtab.c (lookup_partial_symbol): Ditto.
1210 (lookup_symbol): Ditto.
1211 (lookup_block_symbol): Ditto.
1212 * win32-nat.c (handle_load_dll): Use incoming dll base.
1213 (child_wait): Catch DLL load errors.
1214 (create_child_inferior): Translated between paths correctly.
1218 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
1219 from NUM_REGS to get number of general registers that we care about.
1220 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
1221 of number of general regs and number of floating point regs.
1225 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
1226 (SKIP_TRAMPOLINE_CODE): New.
1227 * config/i386/xm-win32.h (CANT_FORK): Deleted.
1228 (SLASH*) Changed to use unix style slash.
1229 * symtab.h (namespace enum): becomes typedef to avoid namespace
1231 * infcmd.c (path_command): Use empty string if PATH name not set.
1232 * i386-tdep.c (skip_trampoline_code): New function.
1233 * srec.c: Renamed dsrec.c to avoid filename collision.
1234 * Makefile.in: Cope with renaming.
1238 * symmisc.c (print_objfile_statistics): Print memory use statistics
1239 for objfile psymbol, symbol, and type obstacks.
1243 * config/mips/nm-irix5.h: Restore.
1244 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
1246 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
1247 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
1249 For older changes see ChangeLog-95
1255 version-control: never