3 * valops.c (value_cast): Allow cast from INT, ENUM or RANGE to
8 * command.c (do_setshow_command): Fix typo in var_auto_boolean
13 * mips-tdep.c: General cleanup. Delete all #if 0 code. Convert
14 all old style K&R function definitions to ISO-C.
15 (struct gdbarch_tdep): Add mips_abi_string.
16 (mips_gdbarch_init): Initialize.
17 (mips_dump_tdep): Print mips_abi_string and other values.
18 (mips_push_arguments): Add more detailed tracing.
22 * mips-tdep.c (mips32_next_pc, mips16_next_pc,
23 read_next_frame_reg, mips_push_dummy_frame, mips_skip_stub,
24 mips_saved_pc_after_call): Use read_signed_register when
25 extracting register value. Ensures all addresses are sign
27 (mips_read_pc): New function. Return sign extended address.
28 (mips_gdbarch_init): Set gdbarch_read_pc.
32 * remote-mips.c (mips_request): Change all arguments to ULONGEST.
33 (mips_exit_debug, mips_resume, mips_initialize, mips_wait,
34 mips_fetch_registers, mips_store_registers, mips_fetch_word):
36 (mips_xfer_memory): When mask_address_p, mask MEMADDR down to just
38 (_initialize_remote_mips): Add ``set mask-address'' command.
40 * mips-tdep.c (_initialize_mips_tdep): Replace "set mask-address"
41 with "set mips mask-address". Implement using
42 add_set_auto_boolean_cmd.
43 (struct gdbarch_tdep): Add default_mask_address_p.
44 (mips_mask_address_p, show_mask_address): New functions.
45 (mips_addr_bits_remove): Use mips_mask_address_p() to determine if
47 (mips_gdbarch_init): Set default_mask_address_p to zero.
48 (mips_dump_tdep): Print value of mask_address_p.
52 * printcmd.c (print_scalar_formatted): Move masking of 'a' address
54 (print_address_numeric): To here.
59 * symtab.c: Use paddr_nz() to print addresses.
63 * value.h (read_register, read_signed_register): Change return
65 (read_signed_register, read_signed_register_pid): Declare.
67 * regcache.c (read_register, read_register_pid): Update.
68 (read_signed_register_pid, read_signed_register): New functions.
72 * mips-tdep.c (mips_push_arguments): Always align struct_addr on a
73 16 byte boundary. Align allocated argument space using
74 MIPS_STACK_ARGSIZE. Reserve space on stack for the struct return
75 and floating-point registers. Use fp_register_arg_p to determine
76 if float_argreg should be aligned.
80 * config/sh/tm-sh.h (STORE_RETURN_VALUE): Redefine as
81 sh_store_return_value().
82 * sh-tdep.c (sh_store_return_value): New function. Store the
83 value returned by a function into the appropriate register.
87 * sh-tdep.c (sh_skip_prologue): Before looking at the actual
88 instructions, try to see if the symbol table can be of help, by
89 calling after_prologue(). If this doesn't work, call
90 skip_prologue_hard_way().
91 (skip_prologue_hard_way): Renamed from sh_skip_prologue. Add some
92 more instruction pattern matching for pushing of arguments, and
94 (after_prologue): New function. Use symbol table info to determine
95 the end of the prologue, if possible.
99 * findvar.c (_initialize_findvar, build_findvar, write_fp, read_fp,
100 generic_target_write_fp, generic_target_read_fp, write_sp, read_sp,
101 generic_target_write_sp, generic_target_read_sp, write_pc, read_pc,
102 generic_target_write_pc, generic_target_read_pc, write_pc_pid,
103 read_pc_pid, supply_register, write_register_pid, write_register,
104 read_register_pid, read_register, write_register_bytes,
105 read_register_bytes, write_register_gen, read_register_gen,
106 registers_fetched, registers_changed, find_saved_register,
107 read_relative_register_raw_bytes, default_get_saved_register,
108 read_relative_register_raw_bytes_for_frame, get_saved_register):
109 Move from this file into new file regcache.c.
110 (register_valid, registers_pid, registers): Ditto.
111 * regcache.c: New file to hold the register cache.
112 (register_cached): New function to read register_valid array.
113 * value.h (register_cached): Declare.
114 * defs.h (default_get_saved_register): Delete decl of static function.
115 * Makefile.in: Add regcache module.
120 * p-typeprint.c (pascal_type_print_method_args): Add braces around
121 isdigit after while keyword.
125 * TODO: Remove readline 4.1 import item.
129 * gdbtypes.c (is_ancestor): Infer type equivalence from name
131 (rank_one_type): Use strcmp instead of == to compare type names.
132 Don't swap parm with arg when checking TYPE_CODE_REF types.
133 * valops.c (find_overload_match): Fix indentation. Compare
134 parameter rankings to 0..9, 10..99, and 100+ instead of 0, 10,
139 * xcoffread.c (read_symbol_nvalue): Return CORE_ADDR.
140 * rs6000-tdep.c (rs6000_pop_frame): Make addr CORE_ADDR type.
144 * config/mips/tm-mips.h (IEEE_FLOAT, SKIP_PROLOGUE,
145 SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC,
148 * mips-tdep.c (mips_in_lenient_prologue): Delete function.
149 (mips32_skip_prologue, mips16_skip_prologue, mips_skip_prologue):
150 Remove ``lenient'' argument.
151 (mips_saved_pc_after_call): New function.
152 (mips_gdbarch_init): Initialize gdbarch members inner_than,
153 breakpoint_from_pc, decr_pc_after_break, ieee_float,
154 skip_prologue, saved_pc_after_call.
158 * config/i386/tm-linux.h: Add longjmp support.
159 (JB_ELEMENT_SIZE, JB_PC): New defines.
160 (GET_LONGJMP_TARGET): Define.
161 (get_longjmp_target): Add prototype.
163 * breakpoint.c (bpstat_what): Keep returning
164 BPSTAT_WHAT_SET_LONGJMP_RESUME when hitting multiple longjmp()
165 breakpoints instead of signalling an error by returning
166 BPSTAT_WHAT_STOP_NOISY.
170 * mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
174 * infcmd.c (attach_command): Move "stop_soon_quietly" setting
175 inside ATTACH_NO_WAIT conditional since we are not about to
176 stop soon if we're not calling wait_for_inferior.
180 * config/i386/fbsd.mh (NATDEPFILES): Keep NATDEPFILES to a single
181 line. configure.in assumes this.
185 * configure.in (SER_HARDWIRE): When go32 or DJGPP, set to
187 * configure: Re-generate.
191 * top.h (command_loop_marker), top.c (command_loop_marker):
193 * event-top.c (command_handler), top.c (simplified_command_loop,
194 command_loop): Use null_cleanup instead of command_loop_marker.
198 * event-loop.c: Include either <poll.h> or <sys/poll.h>.
200 * configure.in (targ_archs): Check for <poll.h> and <sys/poll.h>.
201 * configure, config.in: Re-generate.
206 * Makefile.in: add $(infodir) to FLAGS_TO_PASS
219 * sh-tdep.c (sh_skip_prologue): Change prologue matching for modern
221 (sh_frame_find_saved_regs): Ditto.
222 (sh_find_callers_reg): Stop if pc is zero.
226 * ser-unix.c (do_unix_readchar): Revert Tue Mar 28 18:19:50 2000
232 * Makefile.in (SER_HARDWIRE): Restore code to set it by configure.
236 * copying.awk: Eliminate use of PARAMS from this file.
240 * mips-tdep.c (mips_push_arguments): Use the variable stack_used_p
241 to determine if any arguments were written to the stack. Do not
246 * command.h (add_set_auto_boolean_cmd): Add declaration.
247 (enum var_types): Add var_auto_boolean.
249 * command.c (add_set_auto_boolean_cmd): New function.
250 (do_setshow_command): Recognize auto_boolean.
251 (parse_binary_operation): Recognize enable and disable.
252 (parse_auto_binary_operation): Parse auto binary variables.
258 * mips-tdep.c (fp_register_arg_p): New function.
259 (mips_push_arguments): Use. Do not pass floating point arguments
260 on in an integer register.
263 * symfile.c (init_filename_language_table): add ".pas", ".p" and ".pp"
264 as pascal source file extensions.
268 * remote-nindy.c (nindy_fetch_word, nindy_store_word): Removed
269 (nindy_xfer_inferior_memory): Use dcache_xfer_memory() instead of
270 breaking transfer into chunks and using nindy_fetch_word() and
273 * remote-bug.c (bug_xfer_memory): Use dcache_xfer_memory() instead
274 of breaking transfer into chunks and using gr_fetch_word() and
277 * remote.c (remote_fetch_word, remote_store_word): Removed.
279 * remote-utils.h (gr_fetch_word, gr_store_word): Removed.
280 * remote-utils.c (gr_fetch_word, gr_store_word): Removed.
282 * dcache.h (dcache_fetch, dcache_poke, dcache_poke_block): Removed.
283 * dcache.c (dcache_fetch, dcache_poke): Removed.
287 * defs.h: define language_pascal in language enumeration.
288 * language.h: define _LANG_pascal macro.
289 * language.c: add language_pascal support in all language dependant
294 * mips-tdep.c (mips_debug): New variable.
295 (_initialize_mips_tdep): Add command "set debug mips".
296 (mips_push_arguments): Add code to dump the argument list as it is
301 * mips-tdep.c (mips_push_arguments): For MIPS_EABI, squeeze a
302 strut containing a floating-point into an FP register.
306 * remote-mips.c: Include <ctype.h>
307 (mips_receive_header): Write printable characters to gdb_stdtarg
308 instead of gdb_stdlog. Only count non-printables as invalid.
309 (mips_syn_garbage): Reduce to 10.
313 * mips-tdep.c (mips_gdbarch_init): When the object file header
314 specifies EABI64, select EABI64 and not EABI32.
318 * rs6000-tdep.c: Changes throughout for multi-arch 64-bit
319 support. Incorporate most of tm-rs6000.h.
320 (find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
321 (rs6000_set_host_arch_hook): Declare.
322 (read_memory_addr): Define.
323 (pop_frame): Rename to rs6000_pop_frame.
324 (rs6000_pop_frame, rs6000_fix_call_dummy, rs6000_push_arguments,
325 rs6000_frame_saved_pc, rs6000_frame_chain): Remove non-generic
326 dummy frame handling.
327 (branch_dest, rs6000_pop_frame, rs6000_skip_trampoline_code,
328 rs6000_frame_saved_pc, frame_get_saved_regs,
329 frame_initial_stack_address, rs6000_frame_chain,
330 rs6000_convert_from_func_ptr_addr): Call read_memory_addr instead
331 of read_memory_integer.
332 (branch_dest, rs6000_pop_frame, rs6000_push_arguments,
333 rs6000_skip_trampoline_code, rs6000_frame_saved_pc,
334 frame_get_saved_regs, frame_initial_stack_address,
335 rs6000_frame_chain): Replace 4 with TDEP->wordsize.
336 (skip_prologue): Recognize some 64-bit stack adjustments.
337 (push_dummy_frame, pop_dummy_frame, set_processor,
338 show_processor): Delete.
339 (frame_get_saved_regs): Manipulate saved register addresses using
340 CORE_ADDR instead of int.
341 (rs6000_create_inferior): New function.
342 (register_names_*[]): Change to struct reg registers_*[].
343 (variants[]): Assimilate into multi-arch approach.
344 (register_names_*[], variants[]): Refer to pre-PowerPC
345 architectures as POWER instead of RS6000.
346 * rs6000-nat.c: Ubiquitous changes for 64-bit support.
347 (vmap_secs, xcoff_relocate_symtab): Cast addresses
348 to unsigned long to avoid sign-extension errors.
349 (set_host_arch): New function.
350 (xcoff_relocate_symtab): Try disabling usleep(36000) workaround.
351 (rs6000_core_fns): Use new bfd_target_xcoff_flavour.
352 (_initialize_core_rs6000): Initialize rs6000_set_host_arch_hook.
353 * symfile.c (find_sym_fns): Remove special xcoff kludge.
354 * xcoffread.c (secnum_to_bfd_section): Initialize args.objfile.
355 (process_linenos): Query line struct size from coff
356 backend instead of using compile-time constant.
357 (enter_line_range): Likewise.
358 (read_xcoff_symtab): Pass "XCOFF64" instead of "XCOFF" to
359 record_debugformat() if appropriate.
360 (process_xcoff_symbol): Access symbol addresses using
361 SYMBOL_VALUE_ADDRESS instead of SYMBOL_VALUE.
362 (read_symbol_lineno): Retrieve XCOFF64 symbol names from strtbl.
363 (scan_xcoff_symtab): Likewise. Query syment struct size from
364 coff backend instead of using compile-time constant.
365 (xcoff_sym_fns): Set flavour to bfd_target_xcoff_flavour.
366 * Makefile.in (INTERNAL_LDFLAGS): Add $(MH_LDFLAGS) to list of flags
367 that this Makefile variable get set to. (From Kevin Buettner.)
368 * config/powerpc/aix.mh (MH_LDFLAGS): Add linker flags so that
369 the TOC doesn't overflow. (From Kevin Buettner.)
370 * config/powerpc/tm-ppc-aix.h: Move config decisions to
371 multi-arched rs6000-tdep.c.
372 * config/rs6000/tm-rs6000.h: Likewise.
373 (GDB_MULTI_ARCH): Define.
374 (skip_trampoline_code): Rename to rs6000_skip_trampoline_code.
375 (is_magic_function_pointer): Replace with
376 rs6000_convert_from_func_ptr_addr.
377 (TARGET_CREATE_INFERIOR_HOOK): Define.
378 (find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
379 (rs6000_set_host_arch_hook): Declare.
380 * config/rs6000/nm-rs6000.h (CHILD_XFER_MEMORY): Define.
384 * v850ice.c: Eliminate use of PARAMS from this file.
388 * valops.c (value_cast): Break up long lines.
389 * utils.c: Fix comment typo.
393 * dwarf2read.c (dump_die): Use the proper printf format for
394 printing DW_UNSND values; they're longs now.
396 * dwarf2read.c (dump_die): We can read DW_FORM_data8 now, on
397 at least some platforms, so print it out too.
401 * dwarf2read.c (struct attribute): Change unsnd and snd field types
403 (read_8_bytes): Change return type to long.
404 (read_unsigned_leb128): Change return type to long. Change type of
405 local result to long. Cast argument of left shift to long.
406 (read_signed_leb128): Likewise.
410 Add support for Pascal language. Part 1: new files.
411 * p-exp.y, p-lang.c, p-lang.h, p-typeprint.c, p-valprint.c: New files.
415 * ser-ocd.c, symtab.c: Eliminate use of PARAMS from these files.
419 * configure.host (hppa*64*): Renamed from hppa2.0w per
420 gcc/binutils changes.
421 * configure.tgt: Similarly.
427 * ia64-linux-nat.c, gdbserver/low-linux.c (u_offsets): PT_CR_IFS
428 is deprecated. Use PT_CFM instead.
432 * breakpoint.c (breakpoint_thread_match): Fix comment.
436 * valops.c (value_assign): Adjust the length to take into
437 consideration that we are not starting from the beginning.
441 * symfile.c (add_symbol_file_command): Properly reformat "else if"
443 * coffread.c (coff_symtab_read): Ditto.
447 * Makefile.in (SER_HARDWIRE): Set using autoconf.
448 * configure.in (SER_HARDWIRE): Define, add ser-tcp.o.
449 * configure: Re-generate.
451 * config/i386/go32.mh (SER_HARDWIRE): Delete. Handled by
453 * config/sparc/sun4sol2.mh, config/sparc/sun4os4.mh,
454 config/sparc/sparclynx.mh, config/sparc/nbsdelf.mh,
455 config/sparc/nbsd.mh, config/sparc/linux.mh,
456 config/rs6000/rs6000lynx.mh, config/powerpc/solaris.mh,
457 config/powerpc/nbsd.mh, config/powerpc/linux.mh,
458 config/powerpc/cygwin.mh, config/pa/hpux11w.mh,
459 config/pa/hpux11.mh, config/pa/hpux1020.mh, config/pa/hppaosf.mh,
460 config/pa/hppahpux.mh, config/pa/hppabsd.mh, config/ns32k/nbsd.mh,
461 config/mips/irix5.mh, config/mips/irix4.mh, config/m68k/nbsd.mh,
462 config/m68k/m68klynx.mh, config/m68k/linux.mh,
463 config/i386/nbsdelf.mh, config/i386/nbsd.mh, config/i386/linux.mh,
464 config/i386/i386sco5.mh, config/i386/i386lynx.mh,
465 config/i386/i386dgux.mh, config/i386/fbsd.mh,
466 config/i386/cygwin.mh, config/arm/linux.mh, config/alpha/fbsd.mh,
467 config/alpha/alpha-osf3.mh, config/alpha/alpha-linux.mh: Remove
468 ser-tcp.o from XDEPFILES.
469 * config/ia64/linux.mh: Ditto.
475 * mips-tdep.c (GDB_TARGET_IS_MIPS64): Define.
476 (struct gdbarch_tdep): Add gdb_target_is_mips64.
477 (mips_addr_bits_remove): Update.
478 (mips_gdbarch_init): Initialize.
480 * config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64,
481 GDB_TARGET_IS_MIPS64): Delete.
485 * mips-tdep.c: Include "symcat.h".
486 (mips_dump_tdep): Print all known but not yet multi-arched values.
490 * config/i386/tm-i386.h: Add forward declaration of `struct value'.
491 (FIX_CALL_DUMMY): Redefined to call i386_fix_call_dummy.
492 (i386_fix_call_dummy): Add prototype.
493 * i386-tdep.c (i386_fix_call_dummy): New function based on the
494 code from the old FIX_CALL_DUMMY macro.
498 * procfs.c, remote.c: Eliminate use of PARAMS from these files.
502 * gdbarch.sh (gdbarch_dump): When non multi-arch skip macros that
507 * exec.c (exec_file_attach): Add .exe extension when __CYGWIN__.
511 * win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and
513 (safe_symbol_file_add_stub): Redirect gdb_stdout as well as stderr.
514 (safe_symbol_file_add_cleanup): Restore gdb_stdout.
515 (info_dll_command): Use the pager for displaying DLLs since there are
521 * configure.in (targ_archs): Clear out secondary components.
522 * configure: Regenerate.
526 * gdbarch.sh (struct gdbarch): Add member dump_tdep.
527 (struct gdbarch_registration): Ditto.
528 (gdbarch_dump): Add ui_file and gdbarch arguments. Add support
529 for external dump functions. Dump the macro value. Call target
531 (gdbarch_register): New function.
532 (gdbarch_registrary): Replace gdbarch_init_registrary.
533 * gdbarch.h, gdbarch.c: Re-generate.
534 * arch-utils.c (set_arch): Update.
536 * mips-tdep.c (mips_dump_tdep): New function. Move dump code here.
537 (mips_gdbarch_init): From here.
539 * maint.c (maintenance_print_architecture): New function.
540 (_initialize_maint_cmds): Add command ``maintenance print
545 * command.h, monitor.h: Eliminate use of PARAMS from these
550 * config/i386/tm-embed.h: New file. Specific for embedded targets
551 like i386-elf, i386-coff and i386-aout.
552 * config/i386/embed.mt (): Specify tm-embed.h instead of the System V
557 * MAINTAINERS: Add myself to gdbtk list.
561 * config/ia64/nm-linux.h (U_REGS_OFFSET): Define.
565 * configure.in: Replace misplaced CONFIG_ADD by the correct
567 * configure, config.in: Regenerate.
571 * values.c (value_primitive_field): Copy VALUE_REGNO as well.
572 With typed registers we may have the location information in this field,
573 in addition to VALUE_ADDRESS (which was already being copied).
577 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Define as 1.
578 (CALL_DUMMY, TARGET_BYTE_ORDER_SELECTABLE_P,
579 COERCE_FLOAT_TO_DOUBLE): Delete.
580 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
581 config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
582 config/mips/tm-vr4100.h, config/mips/tm-tx39l.h
583 config/mips/tm-tx39.h, config/mips/tm-irix5.h: Delete
586 * config/mips/tm-mips64.h (TARGET_LONG_BIT, TARGET_LONG_LONG_BIT,
587 TARGET_PTR_BIT): Delete definitions.
588 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
589 config/mips/tm-tx39l.h, config/mips/tm-vr4100.h,
590 config/mips/tm-tx39.h: Delete definition of MIPS_EABI.
591 * mips-tdep.c (mips_gdbarch_init): Use the ISA to determine the
592 ABI. If all else fails, assume O32.
594 * TODO, NEWS: Update. Mention MIPS is multi-arch.
598 * config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
599 config/mips/tm-vr4100.h, config/mips/tm-tx39l.h,
600 config/mips/tm-tx39.h: Delete definition of
601 MIPS_DEFAULT_FPU_TYPE. Enable multi-arch.
602 * mips-tdep.c: (mips_gdbarch_init): The bfd_mach_mips3900 has no
603 FPU. bfd_mach_mips4650 FPU is single precision.
605 * config/mips/tm-mips.h (MIPS_FPU_SINGLE_REGSIZE):
606 (MIPS_FPU_DOUBLE_REGSIZE): Move from here.
607 * mips-tdep.c: To here. Change to an enum.
611 * configure.in (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Use config.bfd
612 to determine the default architecture / target.
613 * acconfig (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Add.
614 * configure, config.in: Regenerate.
616 * arch-utils.c (set_endian): Better separate multi-arch and non-
618 (set_endian_from_file): Call internal_error when multi-arch.
619 (initialize_current_architecture): Rewrite logic selecting a byte
620 order. Use DEFAULT_BFD_ARCH DEFAULT_BFD_VEC.
621 (version.h): Include.
623 * config/mips/tm-mips.h, config/mips/tm-bigmips64.h,
624 config/mips/tm-bigmips.h: Delete definition of
625 TARGET_BYTE_ORDER_DEFAULT.
629 * infrun.c (follow_inferior_fork): Bad merge from below. Compare
630 strings using follow_fork_mode_ask and not "ask".
634 * command.h (add_set_enum_cmd): Make ``enumlist'' and ``var''
635 constant char pointers.
636 (complete_on_enum): Change ``enumlist'' to a constant char
638 (struct cmd_list_element): Ditto for member ``enums''.
639 * command.c (complete_on_enum, add_set_enum_cmd,
640 do_setshow_command): Update.
642 * infrun.c (follow_fork_mode_ask, follow_fork_mode_parent,
643 follow_fork_mode_both, follow_fork_mode_child): New. Use to
644 construct the follow_fork_mode_kind_names.
645 (set_follow_fork_mode_command): Delete function.
646 (_initialize_infrun): Update.
647 (follow_inferior_fork): Do not strdup follow_fork_mode_string.
648 Use follow_fork_mode_* variables directly instead. Call
649 internal_error instead of error when unimplemented "ask" mode.
651 * infrun.c (scheduler_enums, scheduler_mode, schedlock_off,
652 schedlock_on, schedlock_step): Update.
653 * serial.c (serial_logbase, logbase_hex, logbase_octal,
654 logbase_ascii, logbase_enums): Update.
655 * remote.c (packet_support_enums, packet_support_auto,
656 packet_enable, packet_disable, struct packet_config): Update.
657 * arch-utils.c (initialize_current_architecture,
658 set_architecture_string): Update.
659 (endian_big, endian_little, endian_auto, endian_enum,
660 set_endian_string): Update.
661 * i386-tdep.c (valid_flavors, att_flavor, intel_flavor,
662 disassembly_flavor): Update.
663 * mips-tdep.c (size_enums, size_64, size_32, size_auto,
664 mips_stack_argsize_string, mips_saved_regsize_string): Update.
665 * arm-tdep.c (disassembly_flavor, valid_flavors): Update.
666 (_initialize_arm_tdep): Ditto.
672 * thread.c (make_cleanup_restore_current_thread,
673 do_restore_current_thread_cleanup): New functions.
674 (thread_apply_all_command, thread_apply_command): Use. Call
675 do_cleanups when finished.
677 * defs.h (make_cleanup_func): Delete typedef.
682 * arch-utils.c (target_byte_order, target_byte_order_auto,
683 show_endian, set_endian, set_endian_big, set_endian_little,
684 set_endian_auto, set_endian_from_file, enum set_arch,
685 target_architecture_auto, set_architecture_string,
686 target_architecture_hook, target_architecture, arch_ok, set_arch,
687 set_architecture_from_arch_mach, set_architecture_from_file,
688 show_architecture, set_architecture, info_architecture,
689 set_gdbarch_from_file, initialize_current_architecture): Copy from
690 gdbarch.c. Rewrite ``set architecture'' and ``set endian''
691 commands to use enums.
692 (_initialize_gdbarch_utils): Fix name.
693 * arch-utils.h (set_architecture_from_arch_mach,
694 target_architecture_hook): Copy from gdbarch.h.
695 * gdbarch.sh: Update.
696 * gdbarch.h, gdbarch.c: Re-generate.
700 * v850-tdep.c, sh3-rom.c, sh-tdep.c, i386-tdep.c: Include
702 * Makefile.in (v850-tdep.o): Specify dependencies.
703 (i386-tdep.o, sh3-rom.o, sh-tdep.o): Add arch-utils.h to
708 * configure.in: Enable autoconf to find curses.h on Solaris 2.8.
709 * configure: Regenerate.
713 * command.c (do_setshow_command): Accept an enum option immediatly
714 when it is an exact match.
718 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
719 config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
720 config/mips/tm-vr4300el.h, config/mips/tm-vr4100.h,
721 config/mips/tm-vr4300.h, config/mips/tm-tx39l.h,
722 config/mips/tm-tx39.h, config/mips/tm-embedl64.h,
723 config/mips/tm-embedl.h, config/mips/tm-embed64.h,
724 config/mips/tm-embed.h: Delete TARGET_BYTE_ORDER_SELECTABLE_P.
726 * tm-mips.h (TARGET_BYTE_ORDER_SELECTABLE_P): Define as 1.
730 * gdbarch.sh (generic_register_convertible_not,
731 frame_num_args_unknown): Move from here.
732 * arch-utils.c (generic_register_convertible_not,
733 frame_num_args_unknown): To here.
734 * arch-utils.h (frame_num_args_unknown): Add declaration.
735 * gdbarch.h, gdbarch.c: Re-generate.
739 * remote-mips.c (mips_open): Select the default monitor prompt
740 based on the target ISA.
742 * config/mips/tm-vr4100.h (TARGET_MONITOR_PROMPT),
743 config/mips/tm-vr4300el.h (TARGET_MONITOR_PROMPT),
744 config/mips/tm-vr4300.h (TARGET_MONITOR_PROMPT),
745 config/mips/tm-vr4xxx.h (TARGET_MONITOR_PROMPT),
746 config/mips/tm-vr4xxxel.h (TARGET_MONITOR_PROMPT),
747 config/mips/tm-vr5000el.h (TARGET_MONITOR_PROMPT),
748 config/mips/tm-vr5000.h (TARGET_MONITOR_PROMPT),
749 config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Delete macro.
753 * c-exp.y (yylex): template handling fixes.
757 * symtab.h (VTBL_PREFIX_P): Add newer g++ vtbl prefix to prefix
760 * symtab.c (lookup_partial_symbol): Change to stop forcing linear
761 searches on C++ when we fail the binary search, by doing the
766 * buildsym.c (hashname): Change to use hash function from bcache.c/.h
768 * bcache.c (hash): Change to newer hash function.
770 * bcache.h (hash): Prototype for hash function
772 * dwarf2read.c (TYPE_HASH_SIZE): New define for controlling size
774 (dwarf2_cached_types): New variable that is the cached types.
775 (tag_type_to_type): Do the actual caching of types here.
779 * acconfig.h, configure.in, i386bsd.c (HAVE_STRUCT_REG_R_FS):
780 Renamed from HAVE_R_FS.
781 (HAVE_STRUCT_REG_GS): Renamed from HAVE_R_GS.
782 * configure, config.in: Regenerated.
786 * TODO: Update. Mention GNU/Linux/SPARC problems.
790 * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Change buf
791 to a void pointer. Update initial values.
792 * gdbarch.h, gdbarch.c: Re-generate.
794 * findvar.c (address_to_signed_pointer,
795 signed_pointer_to_address): New functions.
796 * inferior.h (signed_pointer_to_address,
797 signed_address_to_pointer): Declare.
799 * inferior.h, findvar.c (unsigned_pointer_to_address,
800 address_to_unsigned_pointer): Rename generic_address_to_pointer
801 and generic_pointer_to_address. Update signatures to match
804 * config/mips/tm-mips.h (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER):
805 Define. MIPS has signed pointers.
807 * defs.h, utils.c (host_pointer_to_address,
808 address_to_host_pointer): New functions.
809 * irix5-nat.c (next_link_map_member, first_link_map_member),
810 procfs.c (proc_set_watchpoint, proc_iterate_over_mappings): Use.
812 * irix5-nat.c (solib_map_sections, symbol_add_stub): Change
813 function signature to match catch_errors_ftype.
815 * TODO: Update. GDB builds using the IRIX native compiler.
819 * defs.h (strsignal, safe_strsignal): Delete declarations.
820 * utils.c (safe_strsignal): Delete.
821 * corelow.c (core_open): Replace save_strsignal with
822 target_signal_to_string + target_signal_from_host.
823 * TODO: Document problems with target_signal_from_host.
827 * annotate.c, annotate.h, breakpoint.c, command.c, command.h,
828 config/rs6000/tm-rs6000.h, corefile.c, d10v-tdep.c,
829 d30v-tdep.c, dbxread.c, dcache.c, dcache.h, dsrec.c,
830 dve3900-rom.c, exec.c, fork-child.c, gdbcore.h, hpux-thread.c,
831 language.h, linux-thread.c, mdebugread.c, monitor.h, ocd.c,
832 procfs.c, ptx4-nat.c, remote-sim.c, remote-utils.h, remote.c,
833 rs6000-tdep.c, ser-ocd.c, sol-thread.c, sparcl-tdep.c,
834 stabsread.h, stack.c, symfile.c, symfile.h, symtab.h,
835 target.c, target.h, top.c, tracepoint.c, tracepoint.h,
836 tui/tui.h, tui/tuiIO.c, utils.c, v850ice.c, varobj.c,
837 win32-nat.c, wince.c, xcoffsolib.c, xcoffsolib.h: Eliminate
838 PARAMS from function pointer declarations.
842 * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is
843 flushed before deleting and restoring it.
844 (safe_symbol_file_add): Ensure that gdb_stderr is flushed before
846 (handle_load_dll): Split into two functions so that WFI can handle
847 shared library events.
848 (child_solib_loaded_library_pathname): New function.
849 (child_clear_solibs): New function. Clears shared library list.
850 (child_solib_add): New function. Adds shared library symbols.
851 (dll_symbol_command): New function. Handles "dll-symbol" command.
852 (info_dll_command): New function. Handles info
853 "sharedlibrary" command.
854 (handle_exceptions): Eliminate 'ignore_trap' argument.
855 (get_child_debug_event): Eliminate two arguments. Return "pid" when
856 appropriate. Break out on most events to allow WFI to handle stuff.
857 (child_wait): Accomodate get_child_debug_event changes.
858 (child_attach): Clear thread list and list of loaded dlls.
859 (child_create_inferior): Clear list of loaded dlls. Use
860 wait_for_inferior in a loop to look for first "trap".
861 (child_resume): Avoid accessing a possibly-freed thread pointer.
862 (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info
863 sharedlibrary" commands.
864 * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
868 * win32-nat.c: Fix up gcc warnings throughout.
869 (handle_load_dll): Change DLL name to lower case.
870 (handle_exception): Add a second argument indicating whether a
871 breakpoint should be ignored. Return a 0 if the breakpoint was
873 (get_child_debug_event): Pass argument to handle_exception to control
874 whether a breakpoint should be ignored.
875 (child_create_inferior): Use modern cygwin API. Explicitly clear
876 last_sig. Pass FIRST_EXCEPTION to get_child_debug_event for detection
881 * configure.in: Detect correct versions of dlltool and windres when
883 * configure: Regenerate.
887 * configure.tgt: Add pattern for i[3456]86-*-netbsdelf*.
888 * config/i386/nbsdelf.mt: New file.
889 * config/i386/tm-nbsdelf.h: New file.
891 * config/i386/tm-nbsd.h: change include of tm-nbsd.h to
892 the more explicit config/tm-nbsd.h.
896 * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
897 register number when used as index into fpr_regs array.
901 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
902 TARGET_LONG_DOUBLE_FORMAT): Delete.
904 * gdbarch.sh: Add support for parameterized expressions.
905 (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
906 TARGET_LONG_DOUBLE_FORMAT): Add. Include "floatformat.h".
907 * gdbarch.h, gdbarch.c: Regenerate.
909 * arch-utils.c (default_single_format, default_double_format,
910 default_long_double_format): New functions. Include
912 * arch-utils.h: Declare.
914 * d10v-tdep.c (d10v_gdbarch_init): Set floating point format.
915 Note that long double is 64 bit, the rest are 32 bit. Include
920 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define.
924 * sol-thread.c (rw_common): Circumstances (eg. a bug in Sun's
925 thread_db library) may cause this function to be called with an
926 illegal address, in which case procfs_to_xfer_memory will
927 return zero. Return an error code instead of looping forever.
931 * TODO: More suggestions added.
935 * MAINTAINERS: Add Klee Dienes and Jim Ingham as maintainers for
936 Mac OS X and Objective C components (to be contributed).
940 * configure.host: Add patterns for i[3456]86-*-netbsdaout*
941 and i[3456]86-*-netbsdelf*.
942 * config/i386/nm-nbsdelf.h: New file.
943 * config/i386/nbsdelf.mh: New file.
945 * config/i386/nm-nbsd.h: change include of nm-nbsd.h to
946 the more explicit config/nm-nbsd.h.
947 * config/i386/tm-nbsd.h: change include of tm-i386bsd.h to
949 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Define.
953 * NEWS: Mention FreeBSD/Alpha and FreeBSD/i386 3.x and up as new
954 native configurations.
956 * i386bsd-nat.c: Include "gregset.h".
957 (CANNOT_STORE_REGISTER): Define to cannot_fetch_register instead
958 of CANNOT_FETCH_REGISTER, if not already defined.
959 (supply_gregset): Call supply_register with NULL as its second
960 argument instead of supplying our own zeroed out buffer.
961 (fill_gregset): Copy contents of correct registers instead of the
962 contents of register REGNO.
966 * gnu-regex.c (re_match_2_internal): Revert 2000-05-27
967 patch which removed use of PARAMS from declaration. This
968 file should not have been touched as it is supposed to track
969 the version in glibc.
973 Add support for FreeBSD/Alpha.
974 * configure.host, configure.tgt (alpha*-*-freebsd*): New entry.
975 * alphabsd-nat.c, config/alpha/fbsd.mh, config/alpha/fbsd.mt,
976 config/alpha/nm-fbsd.h, config/alpha/tm-fbsd.h,
977 config/alpha/xm-fbsd.h: New files.
981 * MAINTAINERS: Add myself to "Write After Approval" list.
989 * gdbarch.sh: Add field ``postdefault''. Rename fields
990 ``startup'' and ``default'' to ``staticdefault'' and
991 ``predefault''. Fix initialization of valid_p. Create/compare
996 * config/sparc/nm-sun4sol2.h (GDB_GREGSET_T, GDB_FPREGSET_T):
998 * config/sparc/xm-sun4sol2.h: (GDB_GREGSET_TYPE,
999 GDB_FPREGSET_TYPE): Delete.
1003 * symtab.h (make_cleanup_free_search_symbols): Add declaration.
1004 * symtab.c (make_cleanup_free_search_symbols,
1005 do_free_search_symbols_cleanup): New functions.
1006 (search_symbols, symtab_symbol_info, rbreak_command): Update.
1007 (search_symbols): Pass ``sr'', and not its address, to
1008 make_cleanup_free_search_symbols.
1012 * config/nm-linux.h (GDB_GREGSET_T, GDB_FPREGSET_T): Fix typos.
1016 * abug-rom.c, alpha-nat.c, alpha-tdep.c, annotate.c,
1017 annotate.h, arc-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
1018 ax.h, breakpoint.c, breakpoint.h, c-exp.y, c-lang.c, c-lang.h,
1019 call-cmds.h, ch-exp.c, ch-lang.c, ch-lang.h, cli-out.c,
1020 coff-solib.h, coffread.c, command.c, command.h, complaints.c,
1021 complaints.h, config/a29k/tm-a29k.h, config/a29k/tm-vx29k.h,
1022 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
1023 config/alpha/nm-osf2.h, config/alpha/tm-alpha.h,
1024 config/alpha/tm-alphalinux.h, config/arc/tm-arc.h,
1025 config/arm/tm-embed.h, config/d30v/tm-d30v.h,
1026 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
1027 config/h8500/tm-h8500.h, config/i386/nm-i386bsd.h,
1028 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
1029 config/i386/nm-i386v.h, config/i386/nm-linux.h,
1030 config/i386/nm-nbsd.h, config/i386/nm-ptx4.h,
1031 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
1032 config/i386/tm-i386.h, config/i386/tm-i386nw.h,
1033 config/i386/tm-i386sol2.h, config/i386/tm-i386v.h,
1034 config/i386/tm-i386v4.h, config/i386/tm-nbsd.h,
1035 config/i386/tm-ptx.h, config/i386/tm-sun386.h,
1036 config/i960/tm-mon960.h, config/i960/tm-nindy960.h,
1037 config/m32r/tm-m32r.h, config/m68k/nm-dpx2.h,
1038 config/m68k/nm-linux.h, config/m68k/tm-cisco.h,
1039 config/m68k/tm-delta68.h, config/m68k/tm-es1800.h,
1040 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
1041 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
1042 config/m68k/tm-news.h, config/m68k/tm-sun3.h,
1043 config/m68k/tm-vx68.h, config/m68k/xm-hp300bsd.h,
1044 config/m88k/tm-m88k.h, config/mcore/tm-mcore.h,
1045 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
1046 config/mips/nm-irix5.h, config/mips/nm-mips.h,
1047 config/mips/tm-embed.h, config/mips/tm-mips.h,
1048 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
1049 config/nm-linux.h, config/nm-lynx.h, config/ns32k/nm-nbsd.h,
1050 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
1051 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
1052 config/pa/tm-hppa64.h, config/pa/xm-hppah.h,
1053 config/powerpc/nm-linux.h, config/powerpc/tm-linux.h,
1054 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-solaris.h,
1055 config/powerpc/xm-aix.h, config/rs6000/nm-rs6000.h,
1056 config/rs6000/tm-rs6000.h, config/rs6000/xm-rs6000.h,
1057 config/sh/tm-sh.h, config/sparc/nm-linux.h,
1058 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
1059 config/sparc/tm-sp64.h, config/sparc/tm-sp64sim.h,
1060 config/sparc/tm-sparc.h, config/sparc/tm-sparclet.h,
1061 config/sparc/tm-spc-em.h, config/sparc/tm-sun4os4.h,
1062 config/sparc/tm-sun4sol2.h, config/tic80/tm-tic80.h,
1063 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
1064 config/w65/tm-w65.h, config/xm-aix4.h, config/z8k/tm-z8k.h,
1065 copying.c, core-aout.c, core-regset.c, core-sol2.c,
1066 corefile.c, corelow.c, cp-valprint.c, cpu32bug-rom.c,
1067 d10v-tdep.c, d30v-tdep.c, dbug-rom.c, dbxread.c, dcache.c,
1068 dcache.h, demangle.c, dink32-rom.c, dsrec.c, dstread.c,
1069 dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
1070 environ.h, eval.c, exec.c, expprint.c, expression.h, f-exp.y,
1071 f-lang.c, f-lang.h, f-valprint.c, findvar.c, fr30-tdep.c,
1072 frame.h, gdb_string.h, gdbcmd.h, gdbcore.h,
1073 gdbserver/server.h, gdbtypes.c, gdbtypes.h, gnu-regex.c,
1074 h8300-tdep.c, hp-psymtab-read.c, hp-symtab-read.c,
1075 hp300ux-nat.c, hppa-tdep.c, hppah-nat.c, hpread.c, hpread.h,
1076 hpux-thread.c, i386-tdep.c, i386aix-nat.c, i386mach-nat.c,
1077 i386v-nat.c, i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c,
1078 inferior.h, inflow.c, infptrace.c, inftarg.c, irix4-nat.c,
1079 irix5-nat.c, jv-exp.y, jv-lang.c, jv-lang.h, language.c,
1080 language.h, lynx-nat.c, m2-exp.y, m2-lang.c, m2-lang.h,
1081 m32r-rom.c, mac-nat.c, main.c, maint.c, mdebugread.c,
1082 mi/mi-out.c, minsyms.c, mips-nat.c, mips-tdep.c, mipsread.c,
1083 mn10300-tdep.c, mon960-rom.c, monitor.c, monitor.h, nlmread.c,
1084 objfiles.c, objfiles.h, ocd.c, ocd.h, op50-rom.c, os9kread.c,
1085 osfsolib.c, pa64solib.c, pa64solib.h, parse.c, parser-defs.h,
1086 ppc-bdm.c, printcmd.c, procfs.c, remote-array.c, remote-bug.c,
1087 remote-e7000.c, remote-es.c, remote-est.c, remote-hms.c,
1088 remote-mips.c, remote-nindy.c, remote-nrom.c, remote-rdi.c,
1089 remote-rdp.c, remote-sds.c, remote-sim.c, remote-udi.c,
1090 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
1091 rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, scm-exp.c,
1092 scm-lang.c, scm-lang.h, ser-e7kpc.c, ser-mac.c, sh3-rom.c,
1093 sol-thread.c, solib.c, solib.h, somread.c, somsolib.c,
1094 somsolib.h, source.c, sparc-nat.c, sparcl-tdep.c,
1095 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
1096 sun3-nat.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1097 symtab.h, target.c, target.h, terminal.h, thread.c, top.c,
1098 top.h, tracepoint.c, tracepoint.h, tui/tui-file.c, tui/tui.c,
1099 tui/tui.h, tui/tuiCommand.h, tui/tuiData.c, tui/tuiData.h,
1100 tui/tuiDataWin.h, tui/tuiDisassem.c, tui/tuiDisassem.h,
1101 tui/tuiGeneralWin.c, tui/tuiGeneralWin.h, tui/tuiIO.c,
1102 tui/tuiIO.h, tui/tuiLayout.c, tui/tuiLayout.h, tui/tuiRegs.c,
1103 tui/tuiRegs.h, tui/tuiSource.c, tui/tuiSource.h,
1104 tui/tuiSourceWin.h, tui/tuiStack.c, tui/tuiStack.h,
1105 tui/tuiWin.c, tui/tuiWin.h, typeprint.c, ui-file.c, ui-out.h,
1106 ultra3-nat.c, utils.c, v850-tdep.c, v850ice.c, valarith.c,
1107 valops.c, valprint.c, value.h, values.c, varobj.c, w89k-rom.c,
1108 win32-nat.c, wince.c, wrapper.c, wrapper.h, xcoffread.c,
1109 xcoffsolib.c, xmodem.h, z8k-tdep.c: Remove PARAMS from function
1114 * gregset.h: New file. Typedefs for gdb_gregset_t and
1115 gdb_fpregset_t, prototypes for supply_gregset and friends.
1116 * procfs.c: Include gregset.h. Delete local prototypes for
1117 supply_gregset etc., and local typedef gdb_gregset_t etc.
1118 * sol-thread.c: Include gregset.h, delete local prototypes,
1119 add appropriate casts to gdb_gregset_t.
1120 * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c,
1121 sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c,
1122 m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c,
1123 irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c,
1124 arm-linux-nat.c, alpha-nat.c: Include gregset.h.
1125 * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T.
1126 * config/sparc/nm-sun4sol2.h: Ditto.
1127 * config/sparc/xm-sun4sol2.h: (GDB_GREGSET_TYPE,
1128 GDB_FPREGSET_TYPE): Delete (replaced by GDB_GREGSET_T etc.)
1132 * configure.in (AC_CHECK_HEADERS): Check for ncurses.h.
1133 * config.in, configure: Re-generate.
1137 * arm-linux-tdep.c (find_minsym_and_objfile): New.
1138 (skip_hurd_resolver): New.
1139 (arm_linux_skip_solib_resolver): New.
1140 (arm_skip_solib_resolver): Removed.
1142 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Changed to use
1143 arm_linux_skip_solib_resolver.
1147 * acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.
1148 * configure.in: Add checks for r_fs and r_gs members of
1150 * config.in, configure: Regenerated.
1154 * ser-go32.c: Remove PARAMS.
1158 * configure.in (AC_CHECK_HEADERS): Check for <dirent.h>,
1159 <sys/ndir.h>, <sys/dir.h> and <ndir.h>.
1160 * config.in, configure: Re-generate.
1161 * gdb_dirent.h: New file
1163 * infptrace.c: Include "gdb_dirent.h" instead of <sys/dir.h>.
1164 * core-aout.c: Ditto.
1165 * procfs.c: Include "gdb_dirent.h" instead of <dirent.h>.
1169 * config.in: Regenerate.
1174 config/djgpp/fnchange.lst: Fix bfd/coff-tic54x.c, bfd/coff-tc54x.c
1175 and gdb/testsuite/gdb.mi/mi-var-cmd.exp.
1179 * configure.in (AC_OUTPUT): Do not generate tui/Makefile.
1180 (enable-tui): Convert Makefile configury to use the same mechanism
1183 * Makefile.in (BUILD_TUI, TUI_LIBRARY, TUI_DIR, TUI_SRC,
1185 (all-tui): Delete target.
1186 (tuiWin.o, tuiStack.o, tuiSourceWin.o, tuiSource.o, tuiRegs.o,
1187 tuiLayout.o, tuiIO.o, tuiGeneralWin.o, tuiDisassem.o,
1188 tuiDataWin.o, tuiData.o, tuiCommand.o, tui.o): New targets.
1189 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_TUI_DEPS,
1190 SUBDIR_TUI_INITS, SUBDIR_TUI_LDFLAGS, SUBDIR_TUI_CFLAGS,
1191 SUBDIR_TUI_ALL, SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL,
1192 SUBDIR_TUI_UNINSTALL): Define.
1198 * TODO: Update. Mark Kettenis fixed FreeBSD >2.2 support.
1199 * MAINTAINERS: Update Jim Ingham's address.
1203 Add support for FreeBSD/i386 ELF.
1204 * i386bsd-nat.c: New file.
1205 * config/i386/tm-fbsd.h (HAVE_I387_REGS): Define.
1206 Include "i386/tm-i386.h" instead of "i386/tm-i386b.h".
1207 (NUM_REGS): Remove redefinition.
1208 (USE_STRUCT_CONVENTION): Define.
1209 (i386_float_info): Remove prototype.
1210 (FLOAT_INFO): Remove define.
1211 (JB_ELEMENT_SIZE): Define to 4.
1212 (JB_PC): Define to 0.
1213 (GET_LONGJMP_TARGET): Define.
1214 (SIGTRAMP_START, SIGTRAMP_END): Define.
1215 (SIGCONTEXT_PC_OFFSET): Define.
1216 (IN_SOLIB_CALL_TRAMPOLINE): Only define if !SVR4_SHARED_LIBS
1217 * config/i386/nm-fbsd.h (PTRACE_ARG3_TYPE): Define to caddr_t.
1218 (FETCH_INFERIOR_REGISTERS): Define.
1219 (ATTACH_DETACH): Define.
1220 (kernel_u_size): Remove PARAMS.
1221 (register_u_addr): Use CORE_ADDR in prototype where appropriate.
1223 (SVR4_SHARED_LIBS) [FREEBSD_ELF || __ELF__ && !FREEBSD_AOUT]:
1225 [SVR4_SHARED_LIBS]: Include "elf/common.h".
1226 Only define aliases for struct members from <link.h> if
1228 * config/i386/xm-fbsd.h: New file.
1229 * config/i386/fbsd.mt (TDEPFILES): Remove solib.o.
1230 * config/i386/fbsd.mh (NATDEPFILES): Remove i386b-nat.o. Add
1231 core-regset.o i387-nat.o i386bsd-nat.o.
1235 * findvar.c (value_from_register): Factor code, simplify logic.
1239 * config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...
1240 * config/i386/nbsd.mh (NATDEPFILES): ...to here.
1241 * config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here...
1242 * config/m68k/nbsd.mh (NATDEPFILES): ...to here.
1243 * config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here...
1244 * config/ns32k/nbsd.mh (NATDEPFILES): ...to here.
1246 * config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o.
1247 * configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs.
1248 * gdbserver/low-nbsd.c (initialize_arch): Define for PPC.
1249 (fetch_inferior_registers): Likewise.
1250 (store_inferior_registers): Likewise.
1252 * gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86
1253 floating point registers.
1254 (store_inferior_registers): Likewise.
1258 * i387-nat.h, i387-nat.c: New files.
1262 * config/sparc/nm-linux.h: Include config/nm-linux.h.
1263 * config/powerpc/nm-linux.h: Likewise.
1267 * f-valprint.c : Corrected f_val_print function for TYPE_CODE
1268 (type) = TYPE_CODE_COMPLEX
1272 * utils.c (make_cleanup_close, do_close_cleanup): New functions.
1273 * defs.h (make_cleanup_close): Add declaration.
1277 * configure.in (build_warnings): Add -Wuninitialized.
1278 * configure: Regenerate.
1284 * configure.in (AC_CHECK_HEADERS): Check for <sys/user.h>.
1286 * configure: Re-generate.
1287 * proc-api.c: Only include <sys/user.h> when available.
1288 (ioctl_table): Check that PIOCGETPR and PIOCGETU are defined.
1294 * config/sparc/tm-sun4sol2.h: Turn on multi-arch.
1295 * sparc-tdep.c (gdb_print_insn_sparc): Remove temp. multi-arch hack.
1300 * Makefile.in (VERSION): Set to 5.0.
1304 * inferior.h (make_cleanup_restore_inferior_status):
1305 * infrun.c (make_cleanup_restore_inferior_status,
1306 do_restore_inferior_status_cleanup): New functions.
1307 * valops.c (hand_function_call): Use.
1308 * infcmd.c (disable_longjmp_breakpoint_cleanup): New function.
1310 * symfile.c (clear_symtab_users_cleanup): New function.
1311 (syms_from_objfile, reread_symbols): Use.
1312 * objfiles.c (make_cleanup_free_objfile, do_free_objfile_cleanup):
1314 * objfiles.h (make_cleanup_free_objfile): Add declaration.
1315 * symfile.c (syms_from_objfile, reread_symbols), hpread.c
1316 (hpread_build_psymtabs), hp-psymtab-read.c
1317 (hpread_build_psymtabs): Use.
1318 * dwarf2read.c (make_cleanup_free_die_list,
1319 do_free_die_list_cleanup): New functions.
1320 (psymtab_to_symtab_1): Use.
1321 * tracepoint.c (make_cleanup_free_actions,
1322 do_free_actions_cleanup): New functions.
1323 (read_actions): Use.
1324 * corelow.c (core_close_cleanup): New function.
1326 * dbxread.c (make_cleanup_free_bincl_list,
1327 do_free_bincl_list_cleanup): New function.
1328 (read_dbx_symtab): Use.
1329 * coffread.c (free_linetab_cleanup, free_stringtab_cleanup): New
1331 (coff_symfile_read): Use.
1332 * varobj.c (make_cleanup_free_variable, do_free_variable_cleanup):
1334 (varobj_create): Use.
1335 * sparcl-tdep.c (close_tty), infrun.c (resume_cleanups), parse.c
1336 (free_funcalls): Change signature to match make_cleanup_ftype.
1337 * infrun.c (resume), tracepoint.c (encode_actions), remote-udi.c
1338 (download), solib.c (open_symbol_file_object), sparcl-tdep.c
1339 (sparclite_open), parse.c (parse_exp_1): Remove cast using
1344 * procfs.c (info_proc_cmd): Use make_cleanup_freeargv.
1345 (proc_iterate_over_mappings): Use make_cleanup_close.
1346 (proc_get_LDT_entry): Ditto.
1347 (do_closedir_cleanup): New function.
1348 (proc_update_threads): Use.
1349 (do_destroy_procinfo_cleanup): New function.
1350 (info_proc_cmd): Use.
1354 * top.h (command_loop_marker): Change signature to match
1356 * top.c (command_loop_marker): Update.
1357 (command_loop, simplified_command_loop), event-top.c
1358 (command_handler): Remove cast using make_cleanup_func.
1359 * event-top.c (command_handler): Ditto.
1361 * top.c (do_chdir_cleanup): New function.
1362 (gdb_init): Use. Use xstrdup instead of strsave.
1363 * top.c (do_fclose_cleanup): New function.
1364 (source_command): Use.
1365 * top.c (do_restore_instream_cleanup): Rename
1366 source_cleanup. Change signature to match make_cleanup.
1367 (read_command_filem execute_user_command): Update. Remove cast
1368 using make_cleanup_func.
1369 * top.c (do_free_command_lines_cleanup,
1370 make_cleanup_free_command_lines): New funtions.
1371 (get_command_line, read_command_lines): Use.
1372 * top.c (arg_cleanup): Change signature to match make_cleanup.
1373 (setup_user_args): Remove cast using make_cleanup_func.
1377 * defs.h (t_reg): Delete typedef.
1378 (preg, preg_nz): Delete function. Replaced by phex and phex_nz.
1379 * utils.c (phex, phex_nz): New functions.
1380 (paddr, paddr_nz): Use.
1382 * monitor.c (monitor_store_register): Replace preg with phex.
1386 * TODO: Add note on typecast using catch_errors_ftype.
1390 * i387-tdep.c (print_i387_value): Cast &value to (char *) in
1391 pointer arithmetic. Fixes a bug which manifested itself on
1396 * target.h (target_memory_bfd_section): Removed declaration.
1397 * target.c (target_memory_bfd_section): Removed.
1398 * exec.c (xfer_memory): Removed #if'ed-out code which referenced
1399 target_memory_bfd_section.
1401 * target.h (target_read_memory_section): Removed declaration.
1402 * target.c (target_read_memory_section): Removed.
1403 (target_xfer_memory): Update, removed bfd_section argument.
1404 (target_read_string, target_read_memory, target_write_memory):
1405 Update for above change.
1407 * gdbcore.h (read_memory_section): Removed declaration.
1408 * corefile.c (read_memory_section): Removed.
1409 * jv-lang.c (get_java_utf8_name): Changed calls to
1410 read_memory_section to read_memory.
1411 * printcmd.c (printf_command): Likewise.
1412 * valops.c (value_at, value_fetch_lazy): Likewise.
1416 * configure.host, configure.tgt (powerpc-*-netbsd*): New entry.
1417 * config/powerpc/nbsd.mh, config/powerpc/nbsd.mt,
1418 config/powerpc/tm-nbsd.h, config/powerpc/nm-nbsd.h,
1419 config/powerpc/xm-nbsd.h: New files.
1423 * gdb/config/djgpp/README: Fine-tune installation instructions
1424 based on user reports.
1428 * configure.in (build_warnings): List possible warnings.
1429 * configure: Regenerate.
1430 * TODO: More updates.
1431 * MAINTAINERS: Add Gary Thomas and Joern Renneck to Write After
1437 * config/v850/tm-v850.h: Change breakpoint sequence to be
1438 'br *' since there is no 16bit "illegal" instruction on this
1443 * TODO: Review. Delete anything that is no longer applicable.
1447 * utils.c (free_current_contents): Make more robust.
1451 * symtab.h (make_cleanup_discard_minimal_symbols): Replace
1452 discard_minimal_symbols.
1453 * minsyms.c (make_cleanup_discard_minimal_symbols):
1454 (do_discard_minimal_symbols_cleanup): New functions.
1456 * xcoffread.c (xcoff_initial_scan), somread.c (som_symfile_read),
1457 solib.c (solib_add_common_symbols), os9kread.c
1458 (os9k_symfile_read), nlmread.c (nlm_symfile_read), mipsread.c
1459 (mipscoff_symfile_read), elfread.c (elf_symfile_read), dstread.c
1460 (dst_symfile_read), dbxread.c (dbx_symfile_read), coffread.c
1461 (coff_symfile_read): Replace make_cleanup.
1465 * command.h (add_set_cmd): Change VAR parameter to void pointer.
1466 (add_set_enum_cmd): Change VAR parameter to char pointer pointer.
1467 (struct command): Change member VAR to void pointer.
1468 * command.c (add_set_cmd, add_set_enum_cmd): Update.
1470 * remote.c (add_packet_config_cmd), mips-tdep.c
1471 (_initialize_mips_tdep), infrun.c (_initialize_infrun),
1472 i386-tdep.c (_initialize_i386_tdep), arm-tdep.c
1473 (_initialize_arm_tdep): Update VAR parameter to add_set_enum_cmd.
1477 * wrapper.h (wrap_value_subscript): Delete declaration.
1481 * defs.h (make_cleanup_bfd_close): Add declaration.
1482 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_close): New
1485 * symfile.c (generic_load), sparcl-tdep.c (download), remote-udi.c
1486 (download), remote-e7000.c (e7000_load), corelow.c (core_open,
1487 core_file_to_sym_file): Replace calls to make_cleanup.
1491 * TODO: Add notes on register cache.
1495 * sh-tdep.c (sh_dsp_reg_names, sh3_dsp_reg_names): New arrays.
1496 (sh_processor_type_table): Add entries for bfd_mach_sh_dsp and
1498 (sh_show_regs): Floating point registers are called fr0-fr15.
1499 For sh4, display fpul, fpscr and fr0-fr15 / dr0-dr14 as appropriate.
1500 Handle sh-dsp and sh3-dsp.
1501 config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): sh-dsp / sh3-dsp
1502 don't have floating point registers.
1503 (DSR_REGNUM, A0G_REGNUM, A0_REGNUM, A1G_REGNUM, A1_REGNUM): Define.
1504 (M0_REGNUM, M1_REGNUM, X0_REGNUM, X1_REGNUM, Y0_REGNUM): Likewise.
1505 (Y1_REGNUM, MOD_REGNUM, RS_REGNUM, RE_REGNUM, R0B_REGNUM): Likewise.
1509 * Makefile.in (gdbtypes.o, varobj.o): Depend on wrapper.h.
1511 * wrapper.h (gdb_value_subscript, wrap_value_subscript): Add
1516 * valops.c (hand_function_call): Replace #ifdef
1517 SAVE_DUMMY_FRAME_TOS with if SAVE_DUMMY_FRAME_TOS_P.
1519 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Add.
1520 * gdbarch.h, gdbarch.c: Regenerate.
1524 * ax.h (make_cleanup_free_agent_expr): Add declaration.
1525 * ax-general.c (do_free_agent_expr_cleanup):
1526 (make_cleanup_free_agent_expr): New functions.
1528 * tracepoint.c (validate_actionline, encode_actions), ax-gdb.c
1529 (expr_to_agent, gen_trace_for_expr, agent_command): Replace calls
1534 * breakpoint.h (make_cleanup_delete_breakpoint,
1535 make_exec_cleanup_delete_breakpoint): Declare.
1536 * breakpoint.c (make_cleanup_delete_breakpoint,
1537 make_exec_cleanup_delete_breakpoint,
1538 do_delete_breakpoint_cleanup): New fuctions.
1540 * infcmd.c (finish_command), hppa-tdep.c (hppa_pop_frame),
1541 breakpoint.c (until_break_command, until_break_command): Replace
1542 call to make_cleanup / make_exec_cleanup.
1546 * defs.h (core_addr_greaterthan, core_addr_lessthan), utils.c
1547 (core_addr_greaterthan, core_addr_lessthan): Move from here.
1548 * arch-utils.h (core_addr_greaterthan, core_addr_lessthan),
1549 arch-utils.c (core_addr_greaterthan, core_addr_lessthan): To here.
1553 * printcmd.c (print_frame_args), stack.c (print_frame), command.c
1554 (do_setshow_command), breakpoint.c (print_it_typical, mention):
1555 Use make_cleanup_ui_out_stream_delete.
1559 * proc-events.c (init_syscall_table): Delete stray ``;''.
1560 * ui-out.c (ui_out_set_flags, ui_out_clear_flags): Return old
1562 * mdebugread.c (START_PSYMTAB): Add paren to avoid x=x=x.
1566 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Define.
1570 * dwarf2read.c (dwarf2_const_value_data): Fix typo in sign
1575 * TODO: Mention weak symbol problem. Mention UnixWare thread
1580 * README: Update section on kernel debugging.
1584 * mips-tdep.c (mips_get_saved_register): New function. Handle
1585 case of 32 ABI saving 32 bit registers on stack when target has 64
1587 (mips_gdbarch_init): Update.
1591 * mips-tdep.c (MIPS_EABI): Fix typo. Test for MIPS_ABI_EABI64.
1595 * configure.in (WERROR_CFLAGS): Check that GCC accepts a -W
1596 options before using them. Report result.
1597 * configure: Regenerate.
1601 * coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
1602 C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
1603 .rodata, because cs_to_section doesn't deal with .rodata. Fix test
1608 * gdbarch.sh (gdbarch_dump): Print the value of GDB_MULTI_ARCH.
1609 Always check that a macro is defined before printing it.
1610 * gdbarch.c: Re-generate.
1614 * README: Update for GDB 5.0.
1618 * mips-tdep.c (MIPS_DEFAULT_STACK_ARGSIZE): Fix typo.
1620 * config/mips/tm-irix5.h (GDB_MULTI_ARCH): Add
1621 definition. Disable. Document known problems.
1622 (MIPS_DEFAULT_ABI): Define.
1624 * mips-tdep.c (enum mips_abi): Define.
1625 (struct gdbarch_tdep): Replace mips_eabi with mips_abi.
1626 (MIPS_EABI): Update.
1627 (mips_gdbarch_init): Add preliminary support for IRIX N32 ABI.
1628 Determine ABI from either ELF_FLAGS or MIPS_DEFAULT_ABI. When
1629 looking for a matching architecture require a matching MIPS_ABI.
1630 (mips_gdbarch_init): Cleanup arch_debug information.
1634 * solib.c (symbol_add_stub): Remember the index and the name of
1635 the section with the lowest address. Use this data (instead of
1636 data from .text) to pass info into symbol_file_add.
1638 * elfread.c (record_minimal_symbol_and_info): Use the section
1639 where the symbol lives to get the index, instead of guessing.
1643 Make Sparc a Multi-Arch target. Discard PARAMS macro (require ANSI).
1644 * sparc-tdep.c: include arch-utils.h.
1645 (SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REG NUM, SPARC_INTREG_SIZE,
1646 DUMMY_REG_SAVE_OFFSET): provide multi-arch-compatible definitions.
1647 (GDB_TARGET_IS_SPARC64): make into a runtime test.
1648 (struct frame_extra_info): Define, use instead of the macro.
1649 (Many places): Use alloca instead of statically allocated buffers
1650 that depend on a multi-arch variable such as MAX_REGISTER_RAW_SIZE.
1651 (sparc_extract_struct_value_address): Accept a pointer arg instead
1652 of an array sized by REGISTER_BYTES.
1653 (examine_prologue): Accept a pointer to an array of CORE_ADDR,
1654 instead of the defunct struct frame_saved_regs. Recognize new
1655 Sparc64 store instructions as part of the prologue. Ignore the
1656 destination of a frame store when parsing the prologue (so long
1657 as it's on the stack).
1658 (sparc_push_dummy_frame): Fix incorrect buffer offset for PSTATE.
1659 (sparc_frame_find_saved_regs): Accept a ptr to an array of CORE_ADDR
1660 instead of the defunct struct frame_saved_regs.
1661 (supply_gregset): Discard unnecessary 'zerobuf': just send NULL to
1662 supply_register. Provide 4-byte offset to compensate for diff
1663 between size of the prgreg_t elements on a 64-bit host and size
1664 of the registers for a 32-bit target. Fill all inaccessible regs
1665 with zero so they won't keep being requested again and again.
1666 (fill_gregset): Handle 32/64 size difference between registers
1667 and prgreg_t. Handle as many new 64-bit regs as possible.
1668 (supply_fpregset, fill_fpregset): Attempt to handle 64-bit world.
1669 (sparc_push_arguments): Rename to sparc32_push_arguments.
1670 Copy arguments into registers as well as onto stack, so that the
1671 CALL_DUMMY (code pushed onto the target stack) is not required.
1672 (sparc_extract_return_value): Rename to sparc32_extract_return_value.
1673 (sparc_store_return_value): Use memset instead of bzero.
1674 Use write_register_gen instead of write_register_bytes.
1675 (sparclet_store_return_value): New function.
1676 (_initialize_sparc_tdep): Call register_gdbarch_init to activate
1677 the gdbarch multi-architecture system.
1678 (sp64_push_arguments): Rename to sparc64_push_arguments.
1679 Extend to store arguments in general registers as well as on stack.
1680 (sparc64_extract_return_value): Rename to sp64_extract_return_value.
1681 Use as a private function, to be called by the new external function
1682 sparc64_extract_return_value.
1683 (sparclet_extract_return_value): New function.
1684 (sparc32_stack_align, sparc64_stack_align, sparc32_register_name,
1685 sparc64_register_name, sparc_print_extra_frame_info,
1686 sparclite_register_name, sparclet_register_name,
1687 sparc_push_return_address, sparc64_use_struct_convention,
1688 sparc32_store_struct_return, sparc64_store_struct_return,
1689 sparc32_register_virtual_type, sparc64_register_virtual_type,
1690 sparc32_register_size, sparc64_register_size,
1691 sparc32_register_byte, sparc64_register_byte,
1692 sparc_gdbarch_skip_prologue, sparc_convert_to_virtual,
1693 sparc_convert_to_raw, sparc_frame_init_saved_regs,
1694 sparc_frame_address, sparc_gdbarch_fix_call_dummy,
1695 sparc_coerce_float_to_double, sparc_call_dummy_address,
1696 sparc_y_regnum, sparc_reg_struct_has_addr, sparc_intreg_size,
1697 sparc_return_value_on_stack): New functions supporting multi-arch.
1698 (sparc_gdbarch_init): New function; initialize multi-arch.
1699 (struct gdbarch_tdep): Define, use for private multi-arch data.
1700 * config/sparc/tm-sparc.h: Move definitions around, enclose with
1701 #ifdef GDB_MULTI_ARCH tests, provide some multi-arch alternate
1702 definitions. Add enums for register names, to help debugging gdb.
1703 This header file must work for non-multi-arch and for multi-arch.
1704 * config/sparc/tm-sp64.h: Add GDB_MULTI_ARCH configuration. Also add
1705 AT_ENTRY_POINT definitions for CALL_DUMMY, for non-multi-arch case.
1706 Define GDB_MULTI_ARCH.
1707 * config/sparc/tm-sparclet.h: Add GDB_MULTI_ARCH configuration.
1708 Do not define GDB_MULTI_ARCH (bfd does not correctly identify target).
1709 * config/sparc/tm-sparclite.h: Ditto.
1710 * config/sparc/tm-sun4sol2.h: Define GDB_MULTI_ARCH.
1711 * sparclet-rom.c (sparclet_regnames): Initialize explicitly, to
1712 avoid using deprecated REGISTER_NAMES macro.
1713 * Makefile.in: Let sparc-tdep.c depend on arch-utils.h.
1717 * gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers.
1718 * gdbarch.c, gdbarch.h: Regenerate.
1719 * core-regset.c: Change FP0_REGNUM to a runtime test.
1721 * sun3-nat.c: Ditto.
1722 * sparc-tdep.c: Ditto.
1724 * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM.
1725 * ptx4-nat.c: Ditto.
1727 * sol-thread.c (sol_thread_create_inferior): only add the thread
1728 to the thread list if it is not already in there.
1729 (prototypes for thread_db func ptrs): pretty up formatting.
1733 * config/djgpp/djconfig.sh: Use more warning switches.
1735 * config/djgpp/fnchange.lst: Replace the leading gdb-0222 with the
1736 @V@ placebo. djunpack.bat changed accordingly.
1740 * mips-tdep.c (size_auto, size_32, size_64, size_enums): Rename
1741 saved_gpreg_size_auto, saved_gpreg_size_32, saved_gpreg_size_64
1742 and saved_gpreg_size_enums.
1743 (mips_stack_argsize): Update. Cleanup.
1745 * mips-tdep.c (STACK_ARGSIZE): Delete macro. Replaced by
1747 (MIPS_NABI32): Delete macro. Replaced by
1748 MIPS_REGS_HAVE_STACK_HOME_P.
1749 (mips_push_arguments): Update.
1750 (mips_push_arguments): Replace check for MIPS_EABI or MIPS_NABI32
1751 with test for MIPS_REGS_HAVE_STACK_HOME_P.
1752 (MIPS_REGS_HAVE_STACK_HOME_P): Define. Provide non- multi-arch
1754 (struct gdbarch_tdep): Add mips_regs_have_stack_home_p and
1755 mips_default_stack_argsize.
1756 (MIPS_STACK_ARGSIZE): Define as mips_stack_argsize.
1757 (mips_stack_argsize_string): New static variable.
1758 (mips_stack_argsize): New function, handle default case.
1759 (__initialize_mips_tdep): Add command ``set mips stack-arg-size''
1760 implemented as an enum using size_auto et.al.
1761 (mips_gdbarch_init): Initialize mips_default_stack_argsize and
1762 mips_regs_have_stack_home_p.
1764 * config/mips/tm-irix5.h (MIPS_DEFAULT_SAVED_REGSIZE): Define as 8
1766 (MIPS_REGS_HAVE_STACK_HOME_P): Define as 0 for n32.
1770 * procfs.c (PROCFS_TRACE): Delete definition.
1771 * proc-utils.h (PROCFS_NOTE, PROC_PRETTYFPRINT_STATUS): Always
1776 * procfs.c: Cleanup of procfs tracing. Move defines and
1777 prototypes to proc-utils.h
1778 * proc-utils.h: Define tracing macros. Declare trace functions.
1779 * proc-api.c: Make procfs tracing a runtime option.
1780 (prepare_to_trace): New function, abstracted out of several
1781 places. Open a trace file if one is required.
1782 (ioctl_with_trace, write_with_trace, open_with_trace,
1783 close_with_trace, wait_with_trace, lseek_with_trace):
1784 Report errno if an error occurs in a system call.
1785 (write_with_trace): Make 2nd arg void *, to agree with write.
1789 * elfread.c (elf_symtab_read): The calculation of 'offset'
1790 must be done for each symbol, not just once. The index
1791 used must be the index of the section where 'sym' resides,
1796 * procfs.c (many functions): change int cmd; to long cmd;
1797 Solaris /proc API calls this parameter a long, and requires it
1798 for 64-bit hosts (where sizeof(long) != sizeof(int)). UnixWare
1799 calls it an int, but on existing UnixWare hosts, int and long
1800 are the same size. So long it must be. If a future UnixWare
1801 version has problems with this, we'll have to use autoconf.
1802 * proc-api.c (write_with_trace): use long instead of int.
1806 * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
1811 * infrun.c (handle_inferior_event): Add missing call to keep_going
1812 and missing return when handling an ordinary signal from the
1817 * objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
1818 SECT_OFF_RODATA): Define as functions of OBJFILE. Add
1819 sect_index_text, sect_index_data, sect_index_rodata,
1820 sect_index_bss to objfile structure.
1821 * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
1822 SECT_OFF_RODATA): Remove.
1823 * objfiles.c (allocate_objfile): Initialize
1824 sect_index_{text,data,bss,rodata} to -1, for error detection.
1826 * symfile.c (default_symfile_offsets): Initialize
1827 sect_index_{text,data,bss,rodata} from bfd information.
1828 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1829 * somread.c (som_symfile_offsets): Initialize
1830 sect_index_{text,data,bss,rodata}.
1832 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c,
1833 hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c,
1834 mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h,
1835 remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c,
1836 stabsread.c, symfile.c, xcoffread.c:
1837 Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the
1840 * xcoffread.c: Add new field objfile to find_targ_sec_arg.
1844 * config/mips/tm-mipsv4.h (Dest_Reg), config/mips/tm-irix5.h
1845 (MIPS_NUM_ARG_REGS, Dest_Reg), config/mips/tm-mips.h
1846 (MIPS_NUM_ARG_REGS), config/mips/tm-mips.h (MIPS_NUM_FP_ARG_REGS):
1847 Delete unused macros.
1851 * solib.c (elf_locate_base, info_sharedlibrary_command):
1852 Look at the bfd to determine if it is elf32 or elf64, rather
1853 than using an ifdef. This makes it runtime teststable and
1858 * infrun.c (handle_inferior_event): When doing a "next", and
1859 stepping out of a signal handler into its calling trampoline
1860 ignore the value of step_frame_address.
1861 (step_over_function): Only modify step_resume_breakpoint->frame if
1862 the value of step_frame_address is non-zero.
1866 * monitor.c (monitor_fetch_register): MAX_REGISTER_RAW_SIZE
1867 is not static in the MULTI_ARCH world, so don't use it in a
1868 static array declaration.
1872 * symtab.c (in_prologue): From Jim Blandy. Rewrite, more
1873 intelligently, making sure we use the information from the
1874 symbol tables fully.
1878 * ia64-tdep.c (ia64_gdbarch_init): Reference to ELFOSABI_NONE
1879 instead of ELFOSABI_SYSV.
1883 * gdbarch.sh (NPC_REGNUM, NNPC_REGNUM): Add.
1884 * gdbarch.h, gdbarch.c: Re-generate.
1886 * gdbserver/remote-utils.c (prepare_resume_reply): Change #ifdef
1887 NPC_REGNUM to run-time test.
1888 * findvar.c (generic_target_write_pc): Change #ifdef NPC_REGNUM
1889 and NNPC_REGNUM to run-time test.
1890 * procfs.c (procfs_fetch_registers): Change #ifdef NPC_REGNUM to
1892 (procfs_store_registers): Ditto.
1896 * gdbarch.sh: Provide non- multi-arch defaults by direct
1897 definition in "gdbarch.h" instead of going through "gdbarch.c".
1898 * gdbarch.h, gdbarch.c: Re-generate.
1899 * defs.h: When non- multi-arch, include "arch-utils.h" so that
1900 legacy definitions are globally visible.
1904 * MAINTAINERS: Add Syd Polk to gdbtk maintainers.
1905 (symtabs): Add Elena to symtabs maintainers list.
1906 (Blanket Write Privs): Add Jim Blandy.
1910 Remove obsolete Gould configuration:
1911 * configure.host, configure.tgt: Remove Gould configs.
1912 * Makefile.in: Remove Gould-related actions.
1913 * gould-xdep.c, gould-tdep.c, config/gould/*: Remove files.
1914 * NEWS: Mention removal.
1919 * defs.h: Properly check for GCC version number.
1923 Fix single-stepping out of signal trampolines.
1924 * config/i386/nm-linux.h (CHILD_RESUME): Define.
1925 * i386-linux-nat.c (child_resume): New function.
1929 * blockframe.c (frameless_look_for_prologue): Use
1930 PROLOG_FRAMELESS_P instead of SKIP_PROLOGUE_FRAMELESS_P.
1931 * gdbarch.sh (PROLOG_FRAMELESS_P): Define.
1932 * gdbarch.h, gdbarch.c: Re-generate.
1933 * arch-utils.h, arch-utils.c (generic_prologue_frameless_p): New
1939 * m68k-tdep.c (delta68_in_sigtramp): Return 0 when the function
1944 * gdbarch.sh (d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw,
1945 d10v_convert_iaddr_to_raw): make these multi-arch functions optional.
1946 * gdbarch.c, gdbarch.h: regenerate
1951 * target.c (do_monitor_command): Cast tcomplain to correct
1952 function type in comparison.
1957 * config/alpha/alpha-osf3.mh (XDEPFILES): Add ser-tcp.o and
1962 * jv-valprint.c (java_val_print): Add arg declaration,
1963 fix compiler warning.
1964 * corelow.c (core_open): Call set_gdbarch_from_file so that
1965 gdbarch becomes aware of the architecture encoded in the
1967 * findvar.c (write_register_gen): Export this useful interface.
1968 * value.h (write_register_gen): Declare.
1972 * cxux-nat.c (add_shared_symbol_files): Don't treat .text section
1973 as special in the section_addr_info structure.
1974 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1975 * osfsolib.c (symbol_add_stub): Ditto.
1976 * irix5-nat.c (symbol_add_stub): Ditto.
1980 * mips-tdep.c, d10v-tdep.c: Include "arch-utils.h".
1984 * TODO: Document IRIX X ARM cross compile problems.
1988 * utils.c (internal_verror): Call target_terminal_ours.
1989 * wrapper.h: Fix minor comment typo.
1990 * proc-api.c (write_with_trace): Change 'arg' from long to int.
1991 Treat 'off_t' and 'size_t' as unsigned long in printfs.
1992 (lseek_with_trace): Treat 'off_t' as unsigned long in printf.
1993 * procfs.c (comments): Eliminate "???" in comments, which GCC
1994 wants to interpret as a trigraph. (fill_gregset, supply_gregset,
1995 fill_fpregset, supply_fpregset): Declare.
1996 (procfs_wait): Sysargs is a long, change printf format to match.
1997 (test-mapping, mapping_test, test_mapping_cmd) Remove (test only).
2001 * config/djgpp/fnchange.lst (ia64-linux-nat.c): Map to
2006 * ax-gdb.c (agent_command): Remove now useless cast of
2007 `free_current_contents' when passed to `make_cleanup'.
2008 * coffread.c (coff_symfile_read): Ditto.
2009 * dwarf2read.c (dwarf2_add_member_fn, read_array_type): Ditto.
2010 (dwarf_decode_lines): Ditto.
2011 * eval.c (parse_and_eval_address, parse_and_eval_address_1): Ditto.
2012 (parse_and_eval, parse_to_comma_and_eval): Ditto.
2013 * parse.c (parse_exp_1): Ditto.
2014 * printcmd.c (print_command_1, output_command, set_command): Ditto.
2015 (x_command, print_frame_args, printf_command): Ditto.
2016 * top.c (execute_control_command): Ditto.
2017 * tracepoint.c (validate_actionline): Ditto.
2018 * typeprint.c (whatis_exp, ptype_command): Ditto.
2019 (maintenance_print_type): Ditto.
2023 * Makefile.in (ALLDEPFILES): Add ia64-linux-tdep.c.
2024 (ia64-linux-tdep.o): Add dependencies.
2025 (ia64-tdep.o): Add dependency for arch-utils.h.
2026 * ia64-linux-tdep.c, ia64-tdep.c (arch-utils.h): Include.
2030 * blockframe.c: Fix a minor typo in a comment.
2034 * ia64-tdep.c (examine_prologue): Recognize store instructions;
2035 those whose source operands are input registers which haven't
2036 been seen before are considered to be part of the prologue.
2040 * rs6000-nat.c (xcoff_relocate_symtam): Recover from the wrong
2041 patch being applied `Fri Apr 7 13:44:38 2000'.
2045 * ia64-linux-tdep.c: New file.
2046 * ia64-tdep.c (elf-bfd.h): Include.
2047 (ia64_linux_sigcontext_register_address): New extern declaration.
2048 (struct gdbarch_tdep): New struct.
2049 (SIGCONTEXT_REGISTER_ADDRESS): New define.
2050 (read_sigcontext_register): New static function.
2051 (extract_bit_field, replace_bit_field, slotN_contents,
2052 replace_slotN_contents): Made static.
2053 (ia64_frame_chain, ia64_frame_saved_pc, ia64_init_extra_frame_info):
2054 Added new code for signal handler frames and call dummy frames.
2055 (ia64_frame_init_saved_regs): Handle signal handler frames.
2056 (ia64_find_saved_register): Removed.
2057 (ia64_get_saved_register): Handle call dummy frames; reorganized
2058 to call generic_get_saved_register() to find registers saved
2060 (process_note_abi_tag_sections): New static function.
2061 (ia64_gdbarch_init): Attempt to determine the ABI/OS of the
2062 executable. Based upon this information, set target dependent
2063 field sigcontext_register_address appropriately. Also set
2064 FRAME_CHAIN_VALID to be generic_func_frame_chain_valid.
2065 * config/ia64/linux.mt (TDEPFILES): Add ia64-linux-tdep.o.
2066 * config/ia64/tm-linux.h (IN_SIGTRAMP): Define.
2067 (ia64_linux_in_sigtramp): New declaration.
2071 * TODO, NEWS: Update due to inclusion of gdbmi.texinfo in the GDB
2076 * config/djgpp/README: Explain how to unpack using djunpack.bat.
2080 * stabsread.c (REG_STRUCT_HAS_ADDR): Delete default.
2081 (define_symbol): Check REG_STRUCT_HAS_ADDR_P before using
2082 REG_STRUCT_HAS_ADDR.
2083 (define_symbol): Ditto.
2085 * valops.c (hand_function_call): Replace #ifdef
2086 REG_STRUCT_HAS_ADDR with if REG_STRUCT_HAS_ADDR_P. Re-indent
2089 * gdbarch.sh (REG_STRUCT_HAS_ADDR): Add along with the predicate
2090 function REG_STRUCT_HAS_ADDR_P.
2091 * gdbarch.h, gdbarch.c: Re-generate.
2095 * gdb-stabs.h (SECT_OFF_MAX): Increase to 40.
2099 * win32-nat.c (handle_load_dll): Don't treat .text as a special
2101 * somread.c (som_symfile_offsets): Ditto.
2102 * somsolib.c (som_solib_add_solib_objfile): Ditto.
2106 * MAINTAINERS: Make Jimmy Guo TUI maintainer.
2110 * command.h (help_all): Delete declaration.
2111 * command.c (help_all): Add declaration. Convert function
2112 argument list to ISO-C.
2116 * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align.
2117 (d10v_stack_align): Make static.
2118 * config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
2122 * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with
2123 run-time test for STACK_ALIGN_P.
2124 * gdbarch.sh: Add support for function and variable predicates.
2125 (STACK_ALIGN): Add. Implement with predicate - STACK_ALIGN_P.
2126 * gdbarch.h, gdbarch.c: Re-generate.
2130 * defs.h, utils.c (free_current_contents): Change parameter to
2134 * printcmd.c (print_address_symbolic): Call `make_cleanup' with
2135 `(free_current_contents, &x)', not `(free, x)'.
2136 * utils.c (free_current_contents): Do not `free (NULL)'.
2138 * printcmd.c (print_address_symbolic): Cleanup after a failed
2139 call to build_address_symbolic.
2143 * wince-stub.c (FREE): New macro.
2144 (mempool): Just free any buffer prior to reuse. Don't bother with
2146 (flag_single_step): New function.
2147 (skip_message): Detect "helpful" Windows CE messages and skip sending
2149 (wait_for_debug_event): Use skip_message to avoid sending debug
2150 messages to the host.
2151 (dispatch): Prelimary implementation of single step detection.
2152 * wince.c: Rework SH single stepping code to be more consistent with
2153 other wince targets.
2154 (handle_output_debug_string): Allow first chance exceptions to come
2155 through since they seem to be all that we get on some versions of
2157 (check_for_step): New function, conditionally compiled based on target.
2158 (regptr): Delete obsolete function.
2159 (handle_exception): Detect illegal instructions.
2160 (get_child_debug_event): Return success only if event code matches
2162 (child_create_inferior): Reflect change to get_child_debug_event
2167 * win32-nat.c (thread_rec): Be more defensive about suspending already
2169 (safe_symbol_file_add_stub): New function.
2170 (safe_symbole_file_add_cleanup): New function.
2171 (safe_symbol_file_add): New function.
2172 (handle_load_dll): Use wrapper to add DLL symbol information to avoid
2173 bogus errors from non-stabs DLLs.
2174 (handle_exception): Add work around for detection of first exception
2175 breakpoint which does not seem to occur on W2K. Detect more "signals"
2176 that can be effectively passed to the debuggee. Reorganize to eliminate
2177 continue_status global.
2178 (child_continue): Reorganize to eliminate continue_status global.
2179 (child_wait): Ditto.
2180 (child_resume): Ditto.
2181 (get_child_debug_event): Ditto. Recognize when an a breakpoint
2182 exception should be ignored. Change method for signalling when an
2183 important event has occured to the caller.
2184 (child_create_inferior): Use new method for noticing when
2185 get_child_debug_event has found something interesting.
2189 * rs6000-nat.c (xcoff_relocate_symtab): Grow buffer if ptrace()
2190 fails due to lack of space.
2194 * command.c, command.h (help_all): Add functionality to display
2195 a complete listing of available commands.
2199 * arm-linux-nat.c (PIDGET, TIDGET): New.
2200 (get_thread_id, GET_THREAD_ID): New.
2201 (fetch_nwfpe_register, store_nwfpe_register): New.
2202 (fetch_register, store_register): New.
2203 (fetch_fpregister, store_fpregister): New.
2204 (fill_gregset, supply_gregset): New.
2205 (fill_fpregset, supply_fpregset): New.
2206 (fetch_fpregs): Modified to use thread id's.
2207 (store_fpregs): Modified to use thread id's and
2208 fetch_nwfpe_register.
2209 (fetch_regs): Modified to use thread id's.
2210 (store_regs): Modified to use thread id's.
2211 (fetch_inferior_registers): Modified to handle single register
2213 (store_inferior_registers): Modified to handle single register
2215 (arm_linux_register_u_addr): Removed.
2217 * configure.tgt: Added gdbserver to configdirs for arm*-*-linux*.
2219 * config/arm/linux.mh
2220 (NATDEPFILES): Removed core-aout.o. Added core-regset.o.
2221 (LOADLIBES): Define.
2223 * config/arm/nm-linux.h: Include config/nm-linux.h.
2224 (ATTACH_DETACH): Removed. Defined in config/nm-linux.h.
2225 (REGISTER_U_ADDR): Removed.
2226 (SVR4_SHARED_LIBS): Removed. Defined in config/nm-linux.h.
2227 (#include "solib.h"): Removed. Included via config/nm-linux.h.
2233 * infrun.c (follow_fork_mode_kind_names): NULL terminate
2235 (scheduler_enums): Ditto.
2239 * gdbarch.sh: Make multi-arch variable defaults, defaults for non-
2241 (TARGET_BFD_VMA_BIT, IEEE_FLOAT, CALL_DUMMY_WORDS,
2242 SIZEOF_CALL_DUMMY_WORDS): Update.
2244 * inferior.h (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Default
2245 provided by gdbarch.
2246 (CALL_DUMMY_P): Add FIXME. gdbarch should provide default.
2248 * valprint.c (IEEE_FLOAT): Default provided by gdbarch.
2252 Bring RETURN_VALUE_ON_STACK under gdbarch's control.
2253 * gdbarch.sh (RETURN_VALUE_ON_STACK): New entry.
2254 * gdbarch.c, gdbarch.h: Regenerated.
2255 * arch-utils.c (default_return_value_on_stack): New function.
2256 * arch-utils.h (default_return_value_on_stack): New declaration.
2257 * values.c (RETURN_VALUE_ON_STACK): Delete default definition.
2259 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
2260 two-dimensional array, instead of faking it with explicit index
2263 * minsyms.c (prim_record_minimal_symbol_and_info): Doc fix.
2264 (Thanks to Guy Harris.)
2268 * xcoffsolib.c (solib_add): Fix call to vmap_symtab().
2276 * TODO: Document -Wreturn-type problem.
2280 * maint.c (_initialize_maint_cmds): Add `mt i' alias for `mt info'.
2284 * infcmd.c (_initialize_infcmd): Add `info r' alias for
2290 * bcache.c (free_bcache): Do not free NULL.
2295 * NEWS: Update GDB version. Duplicate paragraph explaining
2300 * Makefile.in (distclean): Delete tui/Makefile.
2301 * TODO: Add deletion of tui/Makefile.in to list.
2305 * symfile.h (struct section_addr_info ): Remove fields for special
2306 treatment of .text, .data and .bss sections.
2308 * solib.c (symbol_add_stub): The special field text_addr is not
2309 available anymore. Search for the .text field the hard way.
2311 * symfile.c (build_section_addr_info_from_section_table): Don't
2312 fill in {text, data, bss}_addr any more.
2313 (default_symfile_offsets): Don't use {text, data, bss}_addr fields
2314 to fill in section_offsets for objfile.
2315 (syms_from_objfile): Don't deal with {text, data, bss}_addr as a
2316 special case anymore.
2317 (add_symbol_file_command): Ditto.
2321 symfile.c: (symbol_file_command): Remove support for rombug, to
2326 * symfile.c (add_symbol_file_command): Rewrite the arguments
2327 processing part. Simplify syntax of command. Remove support for
2329 (_initialize_symfile): Update help message for add-symbol-file
2334 * gdbarch.sh (IEEE_FLOAT): Only dump when defined.
2335 * gdbarch.h, gdbarch.c: Re-generate.
2339 * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.c
2340 (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h
2341 (BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE),
2342 gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR,
2343 FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE,
2344 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
2345 REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS,
2346 ADDRESS_TO_POINTER): Delete default definition. Handled by
2349 * gdbarch.sh: Make multi-arch defaults, defaults for non-
2351 (REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE,
2352 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
2353 D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC,
2354 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT,
2355 REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION):
2356 Provide default/legacy implementation.
2357 (REGISTER_NAMES, CALL_DUMMY): Allow legacy definition.
2358 * gdbarch.h, gdbarch.c: Re-generate.
2362 * findvar.c (store_typed_address, extract_typed_address): Fix
2363 function names in error messages.
2367 * config/djgpp/config.sed: Fix the lines which edit clean: and
2368 uninstall-info: targets.
2372 Bring IEEE_FLOAT under gdbarch's control.
2373 * gdbarch.sh (IEEE_FLOAT): New entry.
2374 * gdbarch.c, gdbarch.h: Regenerated.
2375 * valprint.c (IEEE_FLOAT): Provide a default #definition for this.
2376 (print_floating): Use IEEE_FLOAT as if it were an expression; use
2377 the code specific to IEEE-format numbers whenever the value of
2378 IEEE_FLOAT is non-zero.
2379 * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
2380 config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h,
2381 config/h8300/tm-h8300.h, config/i386/tm-i386.h,
2382 config/i960/tm-i960.h, config/m88k/tm-m88k.h,
2383 config/mips/tm-mips.h, config/pa/tm-hppa.h,
2384 config/sparc/tm-sparc.h (IEEE_FLOAT): For all ports that #define
2385 IEEE_FLOAT, make sure they give it the value (1).
2387 Provide the hooks needed to support architectures on which
2388 pointers are not always simple byte addresses.
2390 * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two new
2391 functions which architectures can redefine, defaulting to
2392 generic_pointer_to_address and generic_address_to_pointer.
2393 * findvar.c (extract_typed_address, store_typed_address,
2394 generic_pointer_to_address, generic_address_to_pointer): New
2396 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Provide default
2398 (extract_address, store_address): Doc fixes.
2399 * values.c (value_as_pointer): Doc fix.
2400 (value_from_pointer): New function.
2401 * defs.h (extract_typed_address, store_typed_address): New
2403 * inferior.h (generic_address_to_pointer,
2404 generic_pointer_to_address): New declarations.
2405 * value.h (value_from_pointer): New declaration.
2407 The following changes are all of the general form "Use these
2408 functions instead of these other functions." In each case, the
2409 change is because the new calls provide enough information to do
2410 the appropriate address / pointer conversions, where the old calls
2411 did not, or because the new functions are more appropriately named
2412 for the operation being performed.
2414 * ax-gdb.c (const_var_ref): Use value_from_pointer, not
2416 * blockframe.c (generic_push_dummy_frame): Use read_pc and
2417 read_sp, not read_register.
2418 * c-valprint.c (c_val_print): Use extract_typed_address instead of
2419 extract_address to extract vtable entries and references.
2420 * cp-valprint.c (cp_print_value_fields): Use value_from_pointer
2421 instead of value_from_longest to extract the vtable's address.
2422 * eval.c (evaluate_subexp_standard): Use value_from_pointer
2423 instead of value_from_longest to compute `this', and for doing
2424 pointer-to-member dereferencing.
2425 * findvar.c (read_register): Use extract_unsigned_integer, not
2427 (read_var_value): Use store_typed_address instead of store_address
2428 for building label values.
2429 (locate_var_value): Use value_from_pointer instead of
2431 * hppa-tdep.c (find_stub_with_shl_get): Use value_from_pointer,
2432 instead of value_from_longest, to build arguments to __d_shl_get.
2433 * printcmd.c (set_next_address): Use value_from_pointer, not
2435 (x_command): Use value_from_pointer, not value_from_longest.
2436 * tracepoint.c (set_traceframe_context): Use value_from_pointer,
2437 not value_from_longest.
2438 * valarith.c (value_add, value_sub): Use value_from_pointer, not
2440 * valops.c (find_function_in_inferior, value_coerce_array,
2441 value_coerce_function, value_addr, hand_function_call): Same.
2442 * value.h (COERCE_REF): Use unpack_pointer, not unpack_long.
2443 * values.c (unpack_long): Use extract_typed_address to produce
2444 addresses from pointers and references, not extract_address.
2445 (value_from_longest): Use store_typed_address instead of
2446 store_address to produce pointer and reference values.
2450 * acconfig.h (HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, HAVE_LWPID_T,
2451 HAVE_PSADDR_T): Add them here instead of in config.in.
2453 * acconfig.h (PRFPREGSET_T_BROKEN): New define.
2454 * configure.in: Add check for broken prfpregset_t type.
2455 * lin-thread.c (gdb_prfpregset): New typedef, depends on
2456 definition of PRFPREGSET_T_BROKEN.
2457 (ps_lgetfpregs, ps_lsetfpregs, p_td_thr_getfpregs,
2458 p_td_thr_setfpregs, thread_db_fetch_registers,
2459 thread_db_store_registers): Use gdb_prfpregset_t instead of
2461 * config.in: Regenerated.
2462 * configure: Regenerated.
2466 * mips-tdep.c (do_fp_register_row): copy the number of bytes
2467 allocated, not the size of the pointer.
2471 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Define.
2472 * config/i386/tm-i386sol2.h (HAVE_I387_REGS): Define.
2473 * i386v4-nat.c (supply_fpregset, fill_fpregset): Add code
2474 to handle floating point registers if NUM_FREGS is not zero.
2478 * sol-thread.c (init_sol_core_ops): Initialize to_thread_alive
2479 and document to_find_new_threads bug.
2483 * infrun.c (proceed, normal_stop): Change the error message about
2484 failure to insert breakpoints/watchpoints so that it makes sense
2485 even if ptrace is not used or no other processes can be active.
2489 * configure.in: Add --enable-maintainer-mode.
2490 * aclocal.m4, configure: Re-generate.
2492 * Makefile.in ($(srcdir)/copying.c): Enable dependencies only when
2493 on maintainer-mode. Update copying.c in source directory.
2494 (copying.txt): Delete rule.
2495 (copying.o): Add explict paths to $(srcdir) and explicit make
2500 * ia64-linux-nat.c (IA64_PSR_DB, IA64_PSR_DD): Define.
2501 (fetch_debug_register, fetch_debug_register_pair,
2502 store_debug_register, store_debug_register_pair, is_power_of_2,
2503 enable_watchpoints_in_psr, ia64_linux_insert_watchpoint,
2504 ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
2506 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS,
2507 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
2508 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
2509 target_remove_watchpoint): Define.
2510 (ia64_linux_stopped_by_watchpoint, ia64_linux_insert_watchpoint,
2511 ia64_linux_remove_watchpoint): Declare.
2515 * go32-nat.c (go32_insert_hw_breakpoint): When there are no more
2516 hardware breakpoint resources, return EBUSY.
2517 (go32_handle_nonaligned_watchpoint): If the argument WHAT is not
2518 one of the enumerated values, return EINVAL.
2522 * README: Mention special build instructions for DJGPP.
2523 * NEWS: Update with FP features on x87 platforms, and
2524 DJGPP-related changes.
2528 * top.c (gdb_completer_file_name_break_characters): New variable.
2529 (line_completion_function): When completing on file names, use
2530 gdb_completer_file_name_break_characters as word break
2531 characters for the readline library.
2535 * i387-tdep.c (print_i387_value): Avoid call to
2536 floatformat_to_doublest if long double type is the same on host
2541 * wrapper.h: Remove definitions of internal functions.
2542 * wrapper.c: Remove definitions of exported functions (which are
2543 already in wrapper.h) and make static all internal wrap_* functions.
2547 * acconfig.h (USE_INCLUDED_REGEX): Add.
2548 * Makefile.in (REGEX_CFLAGS): Delete
2549 * configure.in (REGEX_CFLAGS): Delete. Use AC_DEFINE instead.
2550 * configure, config.in: Re-generate.
2554 * arm-linux-nat.c (arm_skip_solib_resolver): Remove and move to
2556 * arm-linux-tdep.c (arm_skip_solib_resolver): New.
2561 * command.h (enum command_class): Remove trailing "," to placate
2566 * TODO, NEWS: Update. Mention MI.
2570 * gdbarch-utils.h, gdbarch-utils.c: Delete.
2571 * arch-utils.h, arch-utils.c: New files. Avoid 14 character file
2573 * Makefile.in: Update.
2574 * gdbarch.c: Update.
2579 * mips-tdep.c (saved_gpreg_size_enums): Define enum command for
2580 new "set mips saved-gpreg-size" command
2581 (MIPS_SAVED_REGSIZE): Now a function mips_saved_regsize()
2582 (MIPS_DEFAULT_SAVED_REGSIZE): Define for default MIPS_SAVED_REGSIZE,
2583 either from target, or gdb multi-arch
2584 (show_mips_command): New. For "show mips" prefix command
2585 (set_mips_command): New. For "show mips" prefix command
2586 (_initialize_mips_tdep): Add top-level mips prefix command
2587 Add "set mips saved-gpreg-size" command
2589 * mips-tdep.c (struct gdbarch_tdep): Rename mips_saved_regsize to
2590 mips_default_saved_regsize.
2591 (mips_gdbarch_init): Update.
2592 (MIPS_DEFAULT_SAVED_REGSIZE): Update.
2593 (mips_gdbarch_init): Use MIPS_REGSIZE as the default value for
2594 mips_default_saved_regsize.
2599 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2600 replace calls to target_xfer_memory() with target_read_memory()
2601 and target_write_memory().
2605 * valops.c (value_rtti_type): Compare VALUE_ADDRESS with ``0'' not
2606 NULL. Macro returns a CORE_ADDR.
2610 * dwarf2read.c: Revert Andrew Cagney's change of Dec 15, 1997.
2611 Don't include "bfd-elf.h".
2612 (address_significant_size): Delete variable.
2613 (dwarf2_build_psymtabs_hard): Don't set it, or check for
2614 consistency between it and the Dwarf 2 compilation unit header
2616 (read_address): Don't mask off bits above
2617 address_significant_size.
2618 * Makefile.in (dwarf2read.o): Don't depend on $(elf_bfd_h).
2619 (elf_bfd_h): Remove variable; it's no longer used.
2623 * configure.in (NEW_PROC_API): Escape square brackets when testing
2625 * configure: Regenerate.
2629 * ChangeLog: Correct date on last entry.
2630 * arm-linux-tdep.c (arm_linux_push_arguments): New function.
2631 * config/arm/tm-linux: Redefined PUSH_ARGUMENTS for Linux.
2632 * config/arm/tm-embed: Fix build warning from redefinition of
2634 * config/arm/tm-arm.h: Remove TARGET_BYTE_ORDER_SELECTABLE.
2635 * config/arm/tm-wince.h: Remove TARGET_BYTE_ORDER_SELECTABLE and
2636 TARGET_BYTE_ORDER. Add TARGET_BYTE_ORDER_SELECTABLE_P to
2637 override default in tm-arm.h. Use default target byte order
2642 * Makefile.in: Add dependency information for arm-linux-tdep.c.
2643 * config/djgpp/fnchange.lst: Add arm-linux-tdep.c, arm-linux-nat.c.
2647 * sol-thread.c (gdb_ps_addr_t): New typedef, depends on definition
2648 of PROC_SERVICE_IS_OLD.
2649 (ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite,
2650 rw_common): Change argument type from psaddr_t to gdb_ps_addr_t.
2654 * Makefile.in (CFLAGS): Set using configure.
2656 * configure.in (WARN_CFLAGS): Enable by default when GCC.
2657 * configure: Re-generate.
2662 * procfs.c (init_procfs_ops): Set procfs_ops.to_has_memory and
2663 procfs_ops.to_has_all_memory to 1.
2669 * configure.in (_MSE_INT_H): Define on Solaris 7.
2670 (NEW_PROC_API): Define on Solaris 7 and 8 as well as 6.
2671 * acconfig.h (_MSE_INT_H): Define on Solaris 7.
2672 * configure: Regenerate.
2673 * config.in: Regenerate.
2677 * sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):
2678 Change to rely on PIDGET etc.
2679 * config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS,
2680 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
2681 STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint):
2682 define. Allow target to use procfs hardware watchpoints.
2683 * config/sparc/nm-sun4sol2.h: ditto.
2684 * config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify
2685 definitions to use 16 bits for the pid, 15 bits for the tid, and
2687 * config/sparc/tm-sun4sol2.h: ditto.
2688 (SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine.
2689 * testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow
2690 for more than 15 thread increments.
2694 * top.c (filename_completer): Set subsequent_name to 1 early on,
2695 to prevent an infinite loop if the first file in the directory is
2696 a backup file (whose name ends in a `~').
2700 * solib.c (update_solib_list): New function.
2701 (solib_add): Call update_solib_list, and then read symbols.
2702 (info_sharedlibrary_command): Call update_solib_list, not
2707 * arm-linux-tdep.c: Resolve implicit function declarations by
2708 including target.h and value.h. Inclusion of symtab.h is
2713 * arm-linux-tdep.c: New file.
2714 * arm-linux-nat.c (fetch_fpregs): Remove unused code.
2715 (arm_get_longjmp_target): Moved it and all defines
2716 it uses to arm-linux-tdep.c.
2717 (arm_linux_extract_return_value): Moved to
2719 * config/arm/linux.mt: Add arm-linux-tdep.c to TDEPFILES.
2723 * infrun.c (handle_inferior_event): Call target_mourn_inferior
2724 instead of kill_target.
2728 * TODO: Make note of various C++ things i have planned for 5.1.
2732 * printcmd.c (print_scalar_formatted): Use local variable ptr_bit
2733 in shift. Stop GCC thinking it has a shift overflow.
2737 * TODO: Remove the regex entry.
2741 * gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX
2742 is defined and <regex.h> otherwise.
2744 * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2745 * monitor.c: Likewise.
2746 * osfsolib.c: Likewise.
2747 * solib.c: Likewise.
2748 * source.c: Likewise.
2749 * symtab.c: Likewise.
2751 * Makefile.in (REGEX): Changed to @REGEX@.
2752 (REGEX_CFLAGS): New.
2754 (ADD_DEPS): Use $(REGEX) instead of $(REGEX1).
2755 (INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS).
2757 * configure.in (--with-included-regex): New switch.
2758 (REGEX): New. Subsstitue @REGEX@ in Makefile.in.
2759 (REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in.
2760 * configure: Regenerated.
2764 * NEWS (powerpc-*-linux*): Mention.
2768 * config/i386/xm-nbsd.h (HOST_LONG_DOUBLE_FORMAT): Define.
2772 * Makefile.in (ALLDEPFILES): Add ia64-linux-nat.c and ia64-tdep.c.
2773 (ia64-linux-nat.o, ia64-tdep.o): Add dependencies.
2775 * ia64-linux-nat.c (fill_gregset): Implement.
2776 (supply_fpregset, fill_fpregset): New functions.
2778 * ia64-tdep.c (ia64_init_extra_frame_info): Revise manner in
2779 which the CFM is fetched for certain frames.
2780 (find_global_pointer, find_extant_func_descr): Don't use
2781 partial symtabs for locating sections.
2783 * config/ia64/linux.mh (LOADLIBES): Define.
2784 (NATDEPFILES): Add linux-thread.o and lin-thread.o.
2785 * config/ia64/nm-linux.h (nm-linux.h): Include this upper-level
2786 file containing generic linux declarations/definitions.
2787 (SVR4_SHARED_LIBS, ATTACH_DETACH): Remove defines; already
2788 defined in generic nm-linux.h.
2789 (solib.h): Remove include; already included in generic nm-linux.h.
2793 * solib.c (solib_add): Move all the code for loading symbol tables
2794 below the code to sort out additions and removals. That way, we
2795 always catch all loaded shared libraries whose symbols we haven't
2798 * solib.c (solib_add): Don't try to free a shared object's objfile
2799 if it doesn't have one. Duh.
2801 * solib.c (solib_add): If a pattern was given, but it doesn't
2802 match any currently loaded shared libraries, print a message;
2803 don't just be silent.
2807 * go32-nat.c (go32_handle_nonaligned_watchpoint): Use a
2808 two-dimensional array instead of faking it with index
2813 * config/i386/xm-go32.h (HOST_LONG_DOUBLE_FORMAT): Define.
2815 * config/i386/tm-go32.h (TARGET_LONG_DOUBLE_BIT): Remove
2816 definition (and use the common one in tm-i386.h).
2817 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Likewise.
2818 (I386_DJGPP_TARGET): Don't define, it's no longer required.
2819 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Remove definition,
2820 i386-tdep.c defines it for all x86 targets.
2821 (LD_I387, HEX_LONG_DOUBLE_INPUT): Remove.
2823 * config/djgpp/fnchange.lst: Add i386-linux-tdep.c.
2825 * config/djgpp/djcheck.sh: Edit the copyright year out of the test
2826 results. Fix editing of `main' arguments for non-GNU Sed.
2830 * symfile.c (map_overlay_command, unmap_overlay_command): Fix
2831 error message: there's no "overlay on" command.
2835 * Makefile.in (copying.c): Depend on copying.txt, not COPYING.
2836 (copying.txt): New target, a link to COPYING.
2845 (set_hook, error_hook): Remove PARAMS.
2849 * symtab.h (add_minsym_to_demangled_hash_table): Revert 2000-03-29
2851 * minsyms.c (add_minsym_to_demangled_hash_table): Add prototype.
2855 * gdb-events.h, gdb-events.c, gdb-events.sh: Re-indent.
2859 * gdbtypes.c (safe_parse_type): New wrapper function to ignore
2860 error() during parse_and_eval_type().
2861 (check_stub_method): Call safe_parse_type instead of
2862 parse_and_eval_type().
2863 * wrapper.c (gdb_parse_and_eval_type): New wrapper function.
2864 (wrap_parse_and_eval_type): New support function.
2865 * wrapper.h (gdb_parse_and_eval_type): Prototype.
2866 (wrap_parse_and_eval_type): Prototype.
2870 * MAINTAINERS: Eli Zaretskii is a doco maintainer.
2874 * gdbarch-utils.h, gdbarch-utils.c: New files.
2875 * Makefile.in (SFILES, COMMON_OBS): Update.
2876 (gdbarch_utils_h) Define.
2877 (gdbarch-utils.o): Add dependencies.
2879 * gdbarch.c, gdbarch.sh: Include "gdbarch-utils.h". Fix code
2880 handling default method values.
2881 (startup_gdbarch): Rename default_gdbarch, name misleading.
2882 (breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
2883 (register_name): Default to legacy_register_name.
2884 (call_dummy_words): Default to legacy_call_dummy_words.
2885 (sizeof_call_dummy_words): Default to
2886 legacy_sizeof_call_dummy_words.
2887 (register_convertible): Default to
2888 generic_register_convertible_not.
2889 (breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
2890 (remote_translate_xfer_address): Default to
2891 generic_remote_translate_xfer_address.
2892 (frameless_function_invocation): Default to
2893 generic_frameless_function_invocation_not.
2897 * i386-linux-nat.c: Add copyright notice.
2899 * config/i386/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define as
2900 &floatformat_i387_ext.
2901 * config/i386/xm-i386gnu.h (HOST_LONG_DOUBLE_FORMAT): Likewise.
2905 * findvar.c (extract_floating): Remove reference to
2906 TARGET_EXTRACT_FLOATING.
2907 (store_floating): Remove reference to TARGET_STORE_FLOATING.
2911 * wrapper.c (gdb_value_subscript, wrap_value_subscript): New functions.
2912 Safe version of value_subscript.
2913 * varobj.c (): Use gdb_value_subscript() to get an array element value.
2917 * ui-file.c: Include "gdb_string.h"
2918 * cli-out.c: Include gdb_string.h to avoid compiler warnings.
2919 * wrapper.[ch] (struct gdb_wrapper_arguments): Change fields into
2920 unions, since they are all used to hold both pointers and ints
2921 at various times. Casting pointer to int and vice versa gives
2922 warnings (and is not safe) if they are not the same size.
2926 * defs.h (struct continuation_arg): Make 'data' a union, to avoid
2927 casting problems when int and pointer are not the same size.
2928 * event-top.c (command_handler): Use data as a union.
2929 (command_line_handler_continuation): Ditto.
2930 * infcmd.c (step_1_continuation): Use data as a union. Re-indent.
2931 (step_once): ditto. (finish_command_continuation): Ditto.
2932 (finish_command): Ditto.
2933 * breakpoint.c (until_break_command): Use data as a union.
2934 (until_break_command_continuation): Ditto.
2935 * utils.c (add_intermediate_continuation): Fix typo in comment.
2939 * gdbarch.h, gdbarch.c: Re-indent. Remove FIXMEs.
2940 * gdbarch.sh: Re-sync with gdbarch.[hc].
2944 * minsyms.c (add_minsym_to_demangled_hash_table): New function.
2945 (install_minimal_symbols): Fix demangled symbol problems caused by
2946 using add_minsym_to_hash_table for the demangled names, which is
2947 wrong. Now we use add_minsym_to_demangled_hash_table.
2948 (lookup_minimal_symbol): Fix problems with demangled symbol lookup
2949 caused by weird control flow.
2950 * symtab.h: Add add_minsym_to_demangled_hash_table prototype here.
2954 * configure.in: -linux-gnu*, not -linux-gnu.
2958 * remote.c (remote_threads_extra_info): Replace qfThreadExtraInfo
2959 with qThreadExtraInfo.
2963 * i386nbsd-nat.c (fetch_core_registers): Make static.
2965 * m68knbsd-nat.c (fetch_core_registers): Make static.
2966 (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added.
2970 * TODO: Update GDB 5 status.
2974 * breakpoint.h (remove_hw_watchpoints): Add declaration.
2975 * breakpoints.c (remove_hw_watchpoints): Update.
2976 * maint.c (maintenance_do_deprecate): Avoid assignment within IF
2981 breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function.
2982 infrun.c (resume): Remove hardware watchpoints before stepping
2983 when CANNOT_STEP_HW_WATCHPOINTS is nonzero.
2987 * Makefile.in: Anchor tui-file.h dependency to $srcdir.
2991 * procfs.c (proc_set_watchpoint): Declare addr parameter as
2992 CORE_ADDR, to match call from procfs_set_watchpoint.
2994 * breakpoint.c (insert_breakpoints, do_enable_breakpoint):
2995 Reselect the saved frame silently after frame selection for
2996 watchpoint evaluation.
2997 (insert_breakpoints): Add missing space in `Hardware watchpoint
2998 deleted' message. Do not reinsert hardware watchpoint if it is
2999 already marked for deletion at next stop.
3003 * partial-stab.h: Add one more check against corrupted or irregular
3008 * gnu-regex.c (regerror): Function renamed from `__regerror'.
3009 (Change also approved in the mainline glibc sources)
3014 * ser-unix.c (do_unix_readchar): Reorganise to be more robust,
3015 particularly ensuring it can't return SERIAL_TIMEOUT when told
3020 * gdbtypes.c (_initialize_gdbtypes): Add "set debug overload",
3021 which never existed before, and thus, has no deprecated old command.
3023 * gdbarch.c (_initialize_gdbarch): Add "set debug arch", deprecate
3024 "set archdebug" (same goes for the show commands).
3025 * gdb-events.c (_initialize_gdb_events): Add "set debug event",
3026 deprecate "set eventdebug" (same goes for the show commands).
3027 * gdbcmd.h: Add the setdebuglist and showdebuglist externs.
3028 * top.c (init_main): Deprecate remotedebug, use "set/show debug remote"
3030 x(init_main): Add the "set debug" and "show debug" commands.
3031 Add setdebuglist and showdebuglist.
3035 * maint.c (maintenance_do_deprecate): Fix crash if you call with no arguments, and fixed the warning.
3036 Added prototype for the deprecate command so it doesn't complain.
3040 * top.c (print_gdb_version): Bump copyright year to 2000.
3044 * MAINTAINERS: Add Glen McCready to write after approval list.
3048 * acconfig.h: Fix typo in comment describing HAVE_PTRACE_GETREGS.
3049 * config.h: Regenerate.
3053 * TODO: Update. Add criteria for next release of GDB.
3057 * acconfig.h: Provide default for HAVE_PTRACE_GETREGS.
3058 * config.h: Regenerate.
3062 * Makefile.in (install-only): Create $(bindir) and $(man1dir)
3063 before installing GDB.
3067 * Makefile.in (all-gdbtk): Check for an existing link/directory.
3068 Re-format warning message. Document that post 5.0 this can be
3073 * ChangeLog: Revert whitespace changes.
3077 * MAINTAINERS: Update folks who need accounts.
3081 * MAINTAINERS: J.T. Conklin is NetBSD maintainer.
3085 * config/i386/tm-i386.h: Fix typo. It is TARGET_LONG_DOUBLE_BIT
3086 instead of TARGET_LONG_DOUBLE_BITS.
3087 * config/i386/tm-i386mk.h: Likewise.
3091 Provide `long double' support for most i386 targets.
3092 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT): Define as
3093 &floatformat_i387_ext.
3094 (TARGET_LONG_DOUBLE_BITS): Define as 96.
3095 (REGISTER_VIRTUAL_TYPE): Change type for FPU registers to
3096 `builtin_type_long_double'.
3097 (REGISTER_CONVERT_TO_VIRTUAL): Call
3098 i386_register_convert_to_virtual.
3099 (REGISTER_CONVERT_TO_RAW): Call i386_register_convert_to_raw.
3100 (i387_to_double, double_to_i387): Remove prototypes.
3101 (i386_extract_return_value): Change prototype to match definition
3103 * config/i386/tm-i386mk.h (TARGET_LONG_DOUBLE_FORMAT): #undef.
3104 (TARGET_LONG_DOUBLE_BITS): #undef.
3105 * config/i386/tm-linux.h (TARGET_LONG_DOUBLE_BIT): Remove.
3106 [HAVE_LONG_DOUBLE && HOST_I386] (LD_I387): Remove.
3107 (i387_extract_floating, i387_store_floating): Remove prototypes.
3108 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING): Remove.
3109 (REGISTER_CONVERT_TO_VIRTUAL, REGOISTER_CONVERT_TO_RAW): Remove.
3110 (REGISTER_VIRTUAL_TYPE): Remove.
3111 * i386-tdep.c (i386_register_convert_to_virtual): New function.
3112 (i386_register_convert_to_raw): New function.
3113 * i387-tdep.c [LD_I387] (i387_extract_floating): Remove.
3114 (i387_store_floating): Remove.
3118 * maint.c: Re-indent.
3122 * maint.c (_initialize_maint_cmds): Remove quoted trailing space.
3126 * config/mips/tm-wince.h: Fix typo which caused include of tm-mips.h to
3131 * win32-nat.c: Back out special frame walking code. It was broken.
3132 (handle_exception): Correctly identify an illegal instruction.
3133 * config/tm-cygwin.h: Eliminate special frame handling. Just use
3134 normal i386 handling.
3138 * i386/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
3139 * i386nbsd-nat.c (i386nbsd_use_struct_convention): New function.
3140 (fetch_core_registers): Read fp registers.
3141 (i386nbsd_core_fns, _initialize_i386nbsd_nat): Added.
3145 * arm-tdep.c (thumb_skip_prologue): Take function end addr argument
3146 so that we can stop searching for the prologue past the function end
3147 (arm_skip_prologue): Call thumb_skip_prologue with function end addr
3151 * linux-thread.c, lin-thread.c (save_inferior_pid,
3152 restore_inferior_pid): Don't do compile time comparison
3153 of TARGET_PTR_BIT and TARGET_INT_BIT.
3157 * m68k-tdep.c (P_LINKL_FP, P_LINKW_FP): Macros renamed from P_LINK_L
3159 (P_PEA_FP, P_MOVL_SP_FP): New macros.
3160 (P_MOVL, P_LEAL, P_MOVML): Macros renamed from P_MOV_L, P_LEA_L and
3162 (altos_skip_prologue, isi_skip_prologue): Use P_* macros, not octal
3164 (delta68_in_sigtramp): New function.
3165 (delta68_frame_args_address, delta68_frame_saved_pc): Ditto.
3166 (m68k_skip_prologue): Use P_* macros, not hex constants.
3167 (m68k_find_saved_regs): Do not expect a fixed sequence of register save
3168 instructions, but accept them in any order; use P_* macros, not octal
3169 or hex constants; recognize also `fmovemx to (fp + displacement)' and
3170 `moveml to (fp + displacement)'.
3171 * m68/tm-delta68.h (IN_SIGTRAMP): New macro.
3172 (FRAME_SAVED_PC, FRAME_ARGS_ADDRESS): Ditto.
3176 * MAINTAINERS: Add Fernando Nasser to testsuite maintainers.
3180 * solib.c (open_symbol_file_object): To sneak an int argument
3181 past catch_errors, instead of casting it to a pointer, simply
3186 * gdbtypes.c (rank_function): Rank all N parameters and use correct
3187 index into the prams[] and args[] arrays.
3193 * top.c (execute_command): Checks all commands beore executing
3194 to see if the user needs to be warned that the command is
3195 deprecated, warns user if appropriate.
3196 (add_info), (add_info_alias), (add_com) , (add_com_alias): Changed
3197 return values from void to struct cmd_list_element *.
3198 * command.c (lookup_cmd_1): Check aliases before following link
3199 in case user needs to be warned about a deprecated alias.
3200 (deprecate_cmd): new exported function for command deprecation,
3201 sets flags and posibly a replacement string.
3202 (deprecated_cmd_warning): New exported funciton to warn user about
3203 a deprecated command.
3204 (lookup_cmd_composition): New exported function that determines
3205 alias, prefix_command, and cmd based on a string. This is useful
3206 is we want to full name of a command.
3207 * command.h : Added prototypes for deprecate_cmd,
3208 deprecated_warn_user and lookup_cmd_composition, added flags to
3209 the cmd_list_element structure, changed return values for
3210 add_com_* and add_info_* from void to cmd_list_element.
3211 * maint.c : (maintenance_deprecate): New function to deprecate a
3212 command. This exists only so that the testsuite can deprecate
3213 commands at runtime and check the warning behavior.
3214 (maintenance_undeprecate) : New function, drops deprecated flags.
3215 (maintenance_do_deprecate): Actually does the (un)deprecation.
3216 (initialize_maint_cmds): Added the above new deprecate commands.
3219 * command.c (apropos_cmd_helper): New function, meat of the
3221 (apropos_command): New apropos command to search command
3222 names/documentation for regular expressions.
3223 (_initialize_command): Add the apropos command.
3227 * sol-thread.c (ps_pglobal_lookup): Change argument type from
3228 paddr_t to psaddr_t. This mistake appears to date from an
3229 erroneous man page in Solaris 2.5 -- the correct type from the
3230 system headers has always been psaddr_t.
3231 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Ditto.
3236 * ia64-linux-nat.c: Fix copyright.
3237 (fill_gregset): Minor formatting fix.
3238 * ia64-tdep.c (template_encoding_table, fetch_instruction,
3239 examine_prologue): Clean up some compiler warnings.
3240 (is_float_or_hfa_type_recurse, is_float_or_hfa_type, find_func_descr,
3241 find_global_pointer, find_extant_func_descr): New functions.
3242 (ia64_use_struct_convention, ia64_extract_return_value,
3243 ia64_push_arguments): Handle HFAs.
3244 (ia64_push_arguments): Find (or build) a function descriptor
3245 when given a function address.
3246 (ia64_push_return_address): Moved code for finding the
3247 global pointer into its own function, find_global_pointer ().
3251 * event-loop.c (handle_file_event): Run through indent.
3257 * event-loop.c (sys/types.h): File now included unconditionally.
3258 (use_poll): New variable..
3259 (gdb_notifier): poll- and select-versions merged.
3260 (add_file_handler): If HAVE_POLL, check whether poll is usable,
3261 and reset `use_poll' if not.
3262 (create_file_handler): Select poll- or select-version according to
3264 (delete_file_handler, handle_file_event): Likewise.
3265 (gdb_wait_for_event, poll_timers): Likewise.
3269 * printcmd.c (print_scalar_formatted): Truncate addresses to the
3270 size of a target pointer before passing them to print_address.
3274 * config/i386/tm-i386aix.h (I386_AIX_TARGET): Remove.
3275 * config/i386/tm-linux.h (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM):
3277 * i386-tdep.c (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): New defines.
3278 (i386_extract_return_value): Rewritten. Correctly support all
3279 floating-point types and large integer types on targets that use
3280 the standard i386 GDB register layout and return floating-point
3285 * configure.in (CONFIG_INITS): Do not append remote-nrom.c
3289 * i386/nbsd.mh (NATDEPFILES): Change i386b-nat.o to i386nbsd-nat.o.
3290 * i386nbsd-nat.c: New file.
3292 * i386/tm-nbsd.h (NUM_REGS): Removed.
3293 (HAVE_I387_REGS): Defined.
3294 * i386/nm-nbsd.h (FLOAT_INFO): Removed.
3296 * tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not
3301 * MAINTAINERS: Add Jim Blandy to breakpoint maintainers. David
3302 taylor is the Solaris/SPARC maintainer. Add Jonathan Larmour to
3303 the write after approval list.
3307 * symtab.h (MAX_SECTIONS, struct section_addr_info,
3308 symbol_file_add): Move declarations from here...
3309 * symfile.h: ...to here.
3311 * solib.c (symbol_add_stub): Make symbol_file_add () aware of
3312 all section addresses, not just .text.
3313 * symfile.h, symfile.c (free_section_addr_info,
3314 build_section_addr_info_from_section_table): New functions.
3316 * symfile.h (MAX_SECTIONS): Increase value to 40.
3317 * symfile.c (syms_from_objfile): Add bounds check prior to
3318 accessing ``other'' array in a section_addr_info_struct.
3319 Remove unused variable section_offsets.
3320 (add_symbol_file_command): Remove unused variable text_addr.
3324 * breakpoint.c (bpstat_stop_status): Don't stop if a read
3325 watchpoint appears to break, but the watched value changed.
3329 * gdbarch.sh: Emit a definition and declaration for gdbarch_free,
3330 a companion to gdbarch_alloc, which allows a gdbarch init function
3331 to free partially-built gdbarch structures.
3332 * gdbarch.c, gdbarch.h: Regenerated.
3336 * configure.host, configure.tgt (ia64-*-linux*): New entry.
3338 * gdbserver/low-linux.c (u_offsets, ia64_register_u_addr,
3339 initialize_arch): Define for IA-64.
3340 (initialize_arch): Add declaration.
3344 * breakpoint.c (insert_breakpoints, remove_breakpoint)
3345 (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert,
3346 remove, or check status of hardware watchpoints for entire structs
3347 and arrays unless the user explicitly asked to watch that struct
3349 (insert_breakpoints): Try to insert watchpoints for all the values
3350 on the value chain, even if some of them fail to insert.
3352 * values.c (value_primitive_field): Set the offset in struct value
3353 we return when the field is a packed bitfield.
3357 * remote.c (remote_threads_extra_info): New function.
3358 Implement the extra thread info query for "info threads".
3359 (remote_threads_info): Clean up a bit.
3360 (use_threadinfo_query, use_threadextra_query): New variables.
3361 Control whether GDB will use the new or old protocol for
3362 thread info queries.
3363 (remote_open_1): Initialize new variables.
3364 (remote_async_open_1): Ditto.
3365 (remote_cisco_open): Ditto.
3369 * ia64-linux-nat.c, ia64-tdep.c, config/ia64/linux.mh,
3370 config/ia64/linux.mt, config/ia64/nm-linux.h, config/ia64/tm-ia64.h,
3371 config/ia64/tm-linux.h, config/ia64/xm-linux.h: New files.
3375 * utils.c (floatformat_from_doublest): Don't assume that a long
3376 will be exactly 32 bits in length. Also... make sure space
3377 that we're writing the float to is completely initialized to
3378 zeroes, even when the number of bits in the float is not
3379 evenly divisible by FLOATFORMAT_CHAR_BIT.
3383 * i386-linux-nat.c: No need to #include "frame.h" any more.
3384 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3385 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3386 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
3387 LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
3388 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3389 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
3390 linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
3391 i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
3392 i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
3393 i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
3394 i386_linux_sigtramp_saved_sp): Deleted. Folks rightly pointed
3395 out that these are target-dependent, and useful in non-native
3396 configurations. Moved to...
3397 * i386-linux-tdep.c: ... Here, a new file.
3398 * Makefile.in (ALLDEPFILES): Add i386-linux-tdep.c.
3399 (i386-linux-tdep.o): New rule.
3400 (i386-linux-nat.o): We no longer depend on frame.h.
3401 * config/i386/linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3405 * event-loop.c (top-level) [NO_FD_SET]: Deprecate this branch.
3406 Print an error at compile time if we are to use select, but FD_SET
3408 (SELECT_MASK, NBBY, FD_SETSIZE, NFDBITS, MASK_SIZE): Define only
3409 if HAVE_POLL is not defined and NO_FD_SET *is* defined.
3410 (create_file_handler) [!HAVE_POLL]: Use FD_SET and FD_CLR.
3411 (delete_file_handler) [!HAVE_POLL]: Use FD_CLR and FD_ISSET.
3412 (gdb_wait_for_event) [!HAVE_POLL]: Copy fd_set sets directly
3413 instead of using memcpy and memset. Use FD_ISSET.
3415 * config/i386/xm-go32.h (fd_mask): Remove typedef.
3419 * command.c (_initialize_command): Document requirements for ``!''
3424 From Fri 10 Mar 2000 Robert
3426 * sh-tdep.c (sh_processor_type_table): Add entry for sh2.
3430 From Thu Mar 16 16:49:27 EST 2000 John David Anglin
3432 * configure.in (CONFIG_INITS): Don't include hpux-thread.c. Stops
3433 _initialize_hpux_thread being called twice.
3434 * configure: Regenerated.
3438 * event-top.c (_initialize_event_loop): If instream is not
3439 connected to a terminal device, turn editing off.
3443 Support for building GDB with DJGPP, and running the test suite on
3445 * config/djgpp/djconfig.sh: New file.
3446 * config/djgpp/config.sed: New file.
3447 * config/djgpp/README: New file.
3448 * config/djgpp/fnchange.lst: New file.
3449 * config/djgpp/djcheck.sh: New file.
3453 * ser-go32.c (ports): Make the initializers complete, to pacify
3458 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
3459 two-dimensional array, instead of faking it with explicit index
3462 * linux-thread.c (linuxthreads_attach, linuxthreads_detach,
3463 linuxthreads_create_inferior): Fix typo in variable name: it's
3464 linuxthreads_exit_status, not linux_exit_status.
3466 * gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
3469 * solib.c (solib_add): Delete debugging code.
3473 * gdb_wait.h: add definitions of WSETSTOP and WSETEXIT for Linux.
3474 * linux-thread.c: Use WSETSTOP instead of W_STOPCODE.
3478 * language.c (set_lang_str): Do not call `free' for a null pointer.
3479 (set_type_str, set_range_str): Ditto.
3483 * i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
3486 * solib.c (current_sos): Be more careful about freeing the new
3487 so_list node if an error occurs.
3489 * i386-tdep.c (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3490 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3491 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
3492 LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
3493 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3494 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
3495 linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
3496 i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
3497 i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
3498 i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
3499 i386_linux_sigtramp_saved_sp): Deleted. These all implement
3500 Linux-specific signal trampoline detection, and should be moved
3502 * i386-linux-nat.c: ... here.
3503 * config/i386/tm-linux.h (I386_LINUX_SIGTRAMP): No need to define
3504 this any more, since we're not enabling OS-specific code in a
3505 OS-independent file.
3509 * Makefile.in (go32-nat.o): Add prerequisites.
3510 (ALLDEPFILES): Add go32-nat.c.
3515 * symfile.c (reread_symbols): Clear msymbol hash table.
3519 Deal with the inferior unloading shared objects.
3520 * solib.c (current_sos): New function, replacing find_solib.
3521 (find_solib): Deleted.
3522 (free_so): New function.
3523 (clear_solib): Call free_so, instead of writing it out.
3524 (solib_add): Rewritten: compare the inferior's current list of
3525 shared objects with GDB's list, and do the required loads and
3527 (info_sharedlibrary_command, solib_address): Don't use find_solib
3528 to walk the list of shared libraries: call solib_add, and then
3529 walk the list at so_list_head normally.
3530 * objfiles.c (free_objfile): Don't call CLEAR_SOLIB, and don't
3531 detach the core target. These tasks are taken care of elsewhere.
3532 * target.c (remove_target_sections): New function.
3533 * target.h (remove_target_sections): New declaration.
3535 * solib.c (symbol_add_stub): Check whether we've already created
3536 an objfile for this shared object first, before doing all that
3537 work to compute section addresses, etc.
3539 * objfiles.c (unlink_objfile): Report an internal error if objfile
3540 doesn't occur in the object_files list.
3542 * solib.c (special_symbol_handling): Delete argument; it's not
3547 * solib.c (SOLIB_EXTRACT_ADDRESS): New macro to extract addresses
3548 from solib structures. Use it throughout solib.c, get rid of all
3550 (struct so_list): Change type of lmaddr to CORE_ADDR.
3551 (first_link_map_member): Change return value type to CORE_ADDR,
3553 (solib_add_common_symbols): Change parameter type to CORE_ADDR,
3555 (open_symbol_file_object, find_solib): Change type of lm variable
3560 * ser-go32.c (dos_noop, dos_raw, dos_noflush_set_tty_state)
3561 (dos_print_tty_state, dos_info, _initialize_ser_dos): Convert
3562 to ISO C. Use ATTRIBUTE_UNUSED to avoid compiler warnings.
3563 (dos_info): Avoid compiler warning when printing a ptrdiff_t.
3565 * ser-go32.c (dos_get_tty_state): Fail if the (fake) handle was
3566 not opened by dos_open, but let the 3 standard handles go through
3571 * eval.c (evaluate_subexp_with_coercion): Add call to
3572 check_typedef, to handle typedeffed vars correctly.
3576 * defs.h (STREQ, STRCMP, STREQN): Document that these macros are
3578 (QUIT): Note that this can probably be replaced by a function.
3582 Add support for a variable object that tries to evaluate itself in
3583 the currently selected frame, rather than in a fixed frame.
3585 * wrapper.c,h (gdb_parse_exp_1): Added a wrapper for
3587 * varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n
3589 * varobj.c (varobj_list): Return type indicates whether the
3590 variable's type has changed (for current frame variables).
3591 (varobj_update): Handle the case where the variable's type has
3593 (delete_variable_1): Allow for deletion of variables that have not
3595 (new_root_variable): Initialize use_selected_frame variable.
3596 (value_of_root): This is where most of the work to handle "current
3597 frame" variables was added. Most of the complexity involves
3598 handling the case where the type of the variable has changed.
3599 (varobj_create): Add a "type" argument, to tell if the
3600 variable is one of these "current frame" variables. Also protect
3601 call to parse_exp_1 from long jumping.
3605 * go32-nat.c (struct env387): Remove declaration.
3606 (print_387_status, i386_go32_float_info): Remove redundant
3608 (regno_mapping, sig_map, excepn_map): Add braces around inner
3610 (many functions): Use ATTRIBUTE_UNUSED to shut up the compiler;
3611 fix code which mixed signed with unsigned.
3612 (go32_resume): Use TARGET_SIGNAL_LAST instead of -1.
3613 (go32_wait): Initialize INT3_addr.
3614 (go32_fetch_registers): Extend all FP registers that are shorter
3615 than 4 bytes to 32 bits. Support 32 standard FP registers defined
3616 on config/i386/tm-i386.h.
3617 (store_register): Support 32 FP registers.
3618 (go32_create_inferior): Don't crash if handed a NULL pointer
3619 instead of exec file name.
3620 (ignore): Remove unused function.
3621 (go32_insert_hw_breakpoint): Remove unused variables.
3622 (init_go32_ops): Set value of processing_gcc_compilation to 2.
3627 overloading, add support for seeing through references:
3628 * valops.c (find_overload_match): Handle STABS overloading for
3630 (find_overload_match): Look in right place for function arguments
3632 (find_overload_match): Rather than giving up when we have >1
3633 perfect match, just choose one, especially since the
3634 recommendation GDB gives ("disambiguate it by specifying function
3635 signature"), is basically impossible.
3636 (check_field_in): STREQ->strcmp_iw
3637 (search_struct_field): STREQ->strcmp_iw
3638 (find_method_list): STREQ->strcmp_iw
3639 * gdbtypes.c (rank_one_type): Add ability to see through
3641 (rank_one_type): strcmp->strcmp_iw, because the whitespace could
3643 (rank_function): Rank function properly (was doing it wrong
3644 before, comparing the wrong parts of the arrays)
3645 (rank_one_type): Change #if 0 to #ifdef DEBUG_OLOAD.
3646 * gdbtypes.h: Add REFERENCE_CONVERSION_BADNESS for "badness"
3647 associated with converting a non-reference to a reference.
3648 * eval.c (evaluate_subexp_standard): for OP_VAR_VALUE, always
3649 return full value object; for STRUCTOP_PTR, use pointer to
3650 rtti type to get member / method if objectprint is set and
3651 target type of pointer is class.
3653 * gdbtypes.c (rank_one_type): Add comment on how to eliminate the
3658 * gnu-nat.c: Fix the formatting where indent misinterpreted `&' as
3660 (gnu_attach): Change error message for missing
3661 argument to be identical to the corresponding message in
3662 `inftarg.c'. This makes the testsuite happy.
3666 * i386gnu-nat.c (gnu_store_registers): Make sure the T bit in the
3667 %eflags isn't modified. This fixes a bug where every call to a
3668 function in the program beyond the first call would fail.
3672 * MAINTAINERS: Devolve responsibility for domain maintenance.
3676 * minsyms.c (prim_record_minimal_symbol_and_info): Add comment.
3680 * gdb.base/long_long.exp: Correct test suite failure when printing
3681 a long long value as a double on ARM platforms.
3685 * MAINTAINERS (Core): Anthony Green is the Java - including
3686 testsuite - maintainer. Reformat testsuite and language support
3691 * i386-tdep.c (i386_linux_saved_pc_after_call): New function.
3692 * config/i386/tm-linux.h (SAVED_PC_AFTER_CALL): Define to call
3693 i386_linux_saved_pc_after_call.
3699 * minsyms.c: #include <ctype.h>, for msymbol_hash_iw.
3700 (compact_minimal_symbols): Added `objfile' argument.
3701 Put symbols in the objfile's hash table.
3702 (install_minimal_symbols): Put symbols in the objfile's demangled
3704 (lookup_minimal_symbol): Use hash table to find symbol in
3706 (msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): New
3708 (prim_record_minimal_symbol_and_info): Initialize the
3709 hash link fields of the new minimal symbol.
3710 * symtab.h (struct minimal_symbol): New fields `hash_next',
3711 `demangled_hash_next'.
3712 (msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): Declare.
3713 * objfiles.h (MINIMAL_SYMBOL_HASH_SIZE): New define.
3714 (struct objfile): New fields `msymbol_hash',
3715 `msymbol_demangled_hash'.
3719 * solib.c (first_link_map_member): Doc fix.
3725 * event-loop.c (poll_timers): Don't compare delta.tv_sec with
3726 zero, since time_t might be unsigned.
3730 * i386-linux-nat.c (supply_fpregset): Mask off the reserved bits
3732 (convert_to_fpregset): Don't touch the reserved bits in *FPREGSETP.
3736 Allow GDB to run on Linux 2.0 again.
3737 * config.in: Add HAVE_PTRACE_GETREGS.
3738 * configure.in: Check if <sys/ptrace.h> defines PTRACE_GETREGS.
3739 * configure: Regenerated.
3740 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER,
3741 CANNOT_STORE_REGISTER): New defines.
3742 * i386-linux-nat.c (have_ptrace_getregs): New variable.
3743 (PTRACE_XFER_TYPE, CANNOT_FETCH_REGISTER, fetch_register,
3744 old_fetch_inferior_registers, CANNOT_STORE_REGISTER,
3745 store_register, old_store_inferior_registers): Copied over from
3746 `inptrace.c' as a temporary measure.
3747 (fetch_regs, store_regs, fetch_fpregs, store_fpregs):
3748 Conditionalize on HAVE_PTRACE_GETREGS. Define stubs if
3749 HAVE_PTRACE_GETREGS isn't defined.
3750 (fetch_regs): Reset `have_ptrace_getregs' if ptrace call fails
3752 (fetch_inferior_registers, store_inferior_registers): Fall back on
3753 the method use in `infptrace.c' (by calling
3754 old_fetch_inferior_registers and old_store_inferior_registers) if
3755 `have_ptrace_getregs' isn't set.
3759 * i386-linux-nat.c: Use elf_gregset_t and elf_fpregset_t instead
3760 of gregset_t and fpregset_t. Those are the only names that are
3761 guaranteed to specify the right types for all supported Linux
3763 Various doc fixes and gratitious local variable renames, all in an
3764 attempt to stress similarities between the code and unify the
3765 terminology used. Use ISO-C all over.
3766 (regmap): Remove trailing comma.
3767 (FPREG_ADDR): Renamed from FPREGSET_T_FPREG_ADDR.
3768 (convert_to_gregset): Make static. Remove GDB_REGS argument. It
3769 is unnecessary and wasn't used anyway. All callers changed.
3770 (convert_to_fpregset, convert_to_xfpregset): Likewise.
3771 (fetch_regs, store_regs): Remove unused variable `regno'.
3772 (fill_fpregs): If REGNO is not -1, only update the specified
3774 (fetch_core_registers): Renamed from
3775 i386_linux_fetch_core_registers. There is no need for a unique
3776 name since the function is static anyway.
3777 (linux_elf_core_fns): Renamed from i386_linux_nat_core_functions
3778 since it is more descriptive.
3782 * MAINTAINERS (readline/): Expand to include host maintainers.
3786 Fix support for Linux/i386 signal trampolines. The old approach
3787 didn't work for Linux 2.2 and beyond, and didn't work with recent
3788 versions of the GNU C library.
3789 * i386-tdep.c (LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3790 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): New defines.
3791 (linux_rt_sigtramp_code): New variable.
3792 (LINUX_RT_SIGTRAMP_LEN): New define.
3793 (i386_linux_rt_sigtramp_start): New function. Detect start of
3794 signal trampolines for RT signals.
3795 (i386_linux_sigtramp): Removed.
3796 (i386_linux_in_sigtramp): New function.
3797 (i386_linux_sigcontext_addr): New function. Recognize the names
3798 of the signal tranmpolines used by recent versions of the GNU C
3799 library, and add support for RT signals.
3800 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET): New
3801 defines. Moved here from config/i386/tm-linux.h.
3802 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3803 Reimplement in terms of i386_linux_sigcontext_addr.
3804 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Removed.
3805 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET):
3806 Moved to i386-tdep.c.
3807 (IN_SIGTRAMP): Redefine to call i386_linux_in_sigtramp.
3812 * Makefile.in (all-gdbtk): Fix $srcdir to ${srcdir}.
3816 * MAINTAINERS: Frank Ch. Eigler and Andrew Cagney co-ordinate the
3821 * MAINTAINERS: Add Michael Snyder and Peter Schauer to list of
3822 ``Blanket Write Privs'' maintainers.
3827 * language.c (longest_local_hex_string_custom): Don't compile
3828 'long long' section if host doesn't have 'long long'.
3832 * language.c (longest_raw_hex_string): Comment out. Appears
3837 * utils.c (mcalloc), defs.h (mcalloc): Keep consistent with
3838 "mmalloc.h" which means using PTRs.
3839 (init_malloc, msavestring, mstrsave): Convert to PTR free ISO-C.
3843 * defs.h (store_address, store_unsigned_integer, store_address):
3844 Replace PTR with void* in delcaration.
3845 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3846 extract_long_unsigned_integer, extract_address,
3847 store_signed_integer, store_unsigned_integer, store_address):
3848 Convert definition to ISO-C. Replace PTR with void*.
3852 * defs.h (make_cleanup_func): Document as deprecated.
3853 (make_cleanup_ftype): New typedef. Make signature consistent with
3854 other function typedefs. Document as not be used out side of
3855 make_cleanup code. Use in make_cleanup declarations.
3856 (null_cleanup): Replace PTR with void*.
3858 * utils.c (make_cleanup, make_final_cleanup, make_run_cleanup,
3859 make_exec_cleanup, make_exec_error_cleanup, make_my_cleanup,
3860 null_cleanup): Change K&R definition to ISO-C using void* and
3862 (discard_my_cleanups): Don't cast argument to free.
3866 * defs.h (struct continuation_arg): Change type of field 'data'
3869 * event-loop.h: Eliminate uses of PTR, use 'void *' instead.
3871 * event-top.c: Ditto.
3875 * Makefile.in (CONFIG_CLEAN, CONFIG_ALL, LN_S): Defined by
3877 (SUBDIR_MI_CLEAN, SUBDIR_GDBTK_CLEAN, SUBDIR_MI_ALL,
3878 SUBDIR_GDBTK_ALL): Define.
3879 (all-gdbtk, clean-gdbtk): New targets.
3880 (all): Add CONFIG_ALL as dependency.
3881 (clean): Add CONFIG_CLEAN as dependency.
3883 * configure.in (CONFIG_ALL, CONFIG_CLEAN): Define.
3884 (LN_S): Define. Delete GDBtk's link code.
3888 * configure.in (ENABLE_GDBTK): Delete variable.
3889 (enable-gdbtk): Only enable gdbtk when there is a GDBTK directory.
3890 * Makefile.in: Update.
3891 * configure: Regenerate
3895 * config/alpha/alpha-linux.mh: Remove core-regset.o fron the
3900 * config/i386/tm-i386aix.h (NUM_FPREGS, NUM_REGS, REGISTER_BYTES):
3901 Override definitions to include the normal FPU registers.
3902 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3903 REGISTER_CONVERT_TO_RAW): Removed. The default definitions are
3905 (i387_to_double, double_to_i387): Remove prototypes.
3909 * findvar.c (extract_floating, store_floating): Use target
3910 floating point type sizes rather host sizes to determine
3911 which conversion needs to be done.
3915 * uw-thread.c: Apply GNU conventions to comment formatting.
3916 (deactivate_uw_thread): Call remove_thread_event_breakpoints().
3917 (uw_thread_mourn_inferior): Move remove_thread_event_breakpoints()
3918 call to deactivate_uw_thread().
3922 * MAINTAINERS: Daniel Berlin is C++ maintainer.
3926 * MAINTAINERS: Mark Kettenis is the x86 architcture maintainer and
3927 a joint GNU/Linux/x86 maintainer. Nick Duffeck and Robert Lipe
3928 share SCO/Unixware. Nick Duffek and Peter Schauer share
3934 * remote-sim.c (gdbsim_close): Call generic_mourn_inferior.
3935 * remote-rdi.c (arm_rdi_close): Ditto.
3939 * CONTRIBUTE (configure.in): Note that patches to configure are
3944 * MAINTAINERS: Correct my own mail address.
3948 * MAINTAINERS: Document people with paperwork pending.
3953 Make NEW_PROC_ABI interface functional on Solaris x86.
3954 * sol-thread.c (ps_lgetLDT): Rewrite to use new
3955 procfs_find_LDT_entry function from procfs.c, mostly copied from
3957 * inferior.h, procfs.c (procfs_get_pid_fd): Removed, no longer
3963 * config/i386/tm-i386sol2.h (MERGEPID): Define.
3968 * config/i386/tm-i386.h (FRAME_INIT_SAVED_REGS): Replace
3969 FRAME_FIND_SAVED_REGS.
3970 (i386_frame_init_saved_regs): Replace i386_frame_find_saved_regs.
3971 * i386-tdep.c (i386_frame_init_saved_regs, i386_pop_frame):
3977 * objfiles.c (open_mapped_file): Fix obsolete references to `mapped'
3983 * config/i386/nm-go32.h (FLOAT_INFO): Remove macro definition.
3984 (top level): Add prototypes for go32_* functions.
3985 * config/i386/tm-go32.h (I386_DJGPP_TARGET): Define.
3986 (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
3987 Override definitions from tm-i386.h.
3988 (REGISTER_VIRTUAL_TYPE): Remove macro definition.
3989 * i386-tdep.c (i386_extract_return_value)
3990 [I386_AIX_TARGET || I386_GNULINUX_TARGET]: Add I386_DJGPP_TARGET
3991 to the list of targets which return FP values in FP registers.
3993 * i386-tdep.c (i386_extract_return_value): Add FIXME recommending
3994 that this function be re-implemented using multi-arch.
3999 * utils.c [__GO32__]: Include pc.h, for prototypes of ScreenCols
4001 * ser-go32.c: Include string.h, for prototype of strncasecmp.
4002 (dpmi_regs, dpmi_sregs): Remove unused variables.
4003 (dos_flush_input): Return a value, to prevent compiler warning.
4004 * expprint.c (dump_prefix_expression): Use %ld in format and cast
4005 sizeof(union exp_element) to long, to prevent GCC from complaining
4006 about format/argument mismatch.
4007 (dump_postfix_expression): Likewise.
4011 * arm-tdep.c: Include <ctype.h>.
4016 * stack.c (backtrace_command_1), infrun.c (normal_stop): Check
4017 that the target's stack was valid.
4022 * dwarf2read.c (read_address): Read 16-bits addresses.
4026 * arm-linux-nat.c (fetch_nw_fpe_*):
4027 Renamed to fetch_nwfpe_* to use the same naming convention
4028 as in the Linux kernel. Modified prototype to get rid of
4030 (store_nw_fpe_*): Renamed to store_nwfpe_* to use the same
4031 naming convention as in the Linux kernel. Fixed calls to
4033 (store_fpregs): Fixed calls to store_nwfpe_*. Removed
4038 * MAINTAINERS: Transfer d30v maintainership to David Taylor.
4042 * win32-nat.c: Remove unneeded header.
4047 * wince.c: Include "gdb_wait.h" and not "wait.h".
4051 * MAINTAINERS: Mention mmalloc. Expand Host/Native and
4052 Target/Architecture maintainers descriptions.
4056 * gnu-nat.c: Include "gdbthread.h". Include <hurd.h>.
4057 Reorder headers a bit. Overall cleanup and minor reformatting.
4058 (MIG_SERVER_DIED): Remove define.
4059 (proc_update_sc): Add braces to silence compiler warning.
4060 (proc_steal_exc_port): Initialize err to zero.
4061 (make_proc): Add braces to silence compiler warning.
4062 (inf_validate_task_sc): Add cast to silence compiler warning.
4063 (inf_set_traced): Reorganize a bit to silence compiler warning.
4064 (inf_validate_procs): Use mach_msg_type_number_t for all thread
4065 numbers and add braces to silence compiler warning.
4066 (gnu_wait): Add prototypes for server functions and add braces to
4067 silence compiler warnings.
4068 (S_exception_raise_request): Pass subcode to inf_debug call.
4069 (gnu_write_inferior): Remove unused variable `protection_changed'.
4070 (gnu_xfer_memory): Remove unused variable `result'.
4071 (set_sig_thread_cmd): Remove unused varible `tid'.
4072 (set_signals_cmd): Remve unused variable `trace'.
4073 (add_task_commands): Provide complete prototype. Reformat help
4074 strings a bit to make sure the first line is a full sentence.
4075 Call info_port_rights_cmd instead of info_send_rights_cmd for the
4076 "info port-rights" command.
4077 (add_thread_commands): Provide complete prototype. Make static.
4078 Reformat help strings a bit to make sure the first line is a full
4080 (_initialize_gnu_nat): Provide complete prototype.
4084 Make cross-compilation for the Hurd more friendly.
4086 * configure.in: Use AC_CHECK_TOOL to find MiG.
4087 * Makefile.in (MIG): New variable.
4088 * config/i386/i386gnu.mh (MIG): Remove.
4089 * configure: Regenerated.
4093 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add
4094 comment explaining motivation behind this function and why
4095 the generic facilities won't work for this platform.
4096 * rs6000-tdep.c (skip_prologue): Always test to make sure
4097 that an instruction is read successfully from the target's
4098 memory. Introduce notion of instructions which may appear in
4099 the prologue, but may not end the prologue. Added explicit
4100 check for nop instruction. Use memset() to zero the frame
4101 data instead of assignment from a statically allocated,
4102 uninitialized structure.
4106 * MAINTAINERS: Chris Faylor is responsible for all MS Windows
4107 systems. Note that Jim Blandy as maintainer for ``tracing
4113 * rdi-share/hsys.c: to compile under 4.4BSD derived systems (FreeBSD,
4114 NetBSD...) sys_errlist should not be declared in hsys.c.
4115 NEED_SYSERRLIST is set already by configure, so we can use it.
4116 * rdi-share/unixcomm.c: 4.4BSD derived systems define BSD, but are
4117 posix compliant and we should not work with the old compatibility
4118 stuff. Because of that I undef BSD in case of FBSD etc and include
4119 sys/ioctl to get the flags.
4120 * rdi-share/unixcomm.c: If the TIOCEXCL flags exists set serial line
4125 * ppc-linux-tdep.c (ppc_sysv_abi_push_arguments): Put address
4126 of return structure in r3 if necessary.
4127 (ppc_linux_memory_remove_breakpoints): New function.
4128 * rs6000-tdep.c (skip_prologue): Make sure that the cases
4129 for storing either cr or lr to the stack only handle those
4130 cases. (I.e, don't let these cases match 0x00000000 which is
4131 found found in the shared library trampoline prior to the
4132 loading of the shared library.)
4133 * config/powerpc/tm-linux.h (ppc_linux_memory_remove_breakpoint):
4135 (MEMORY_REMOVE_BREAKPOINT): Define.
4139 * hppah-nat.c: Include "gdb_wait.h" instead of <wait.h>.
4143 * configure.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Set to
4144 $(SUBDIR_*_INSTALL) when so configured.
4145 * configure: Regenerate.
4147 * Makefile.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Define using
4149 (install-only): Add dependency on $(CONFIG_INSTALL). Delete code
4151 (uninstall): Add dependency on $(CONFIG_UNINSTALL).
4152 (SUBDIR_MI_INSTALL, SUBDIR_MI_UNINSTALL, SUBDIR_GDBTK_UNINSTALL,
4153 SUBDIR_GDBTK_INSTALL): Define.
4154 (install-gdbtk): New target.
4158 * configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace.
4159 * configure: Regenerate.
4163 * configure.tgt: Add arm, mips, sh wince targets.
4164 * config/arm/tm-wince.h: New file.
4165 * config/arm/wince.mt: New file.
4166 * config/sh/tm-wince.h: New file.
4167 * config/sh/wince.mt: New file.
4168 * config/mips/tm-wince.h: New file.
4169 * config/mips/wince.mt: New file.
4170 * wince.c: New file.
4171 * wince-stub.c: New file.
4172 * wince-stub.h: New file.
4173 * sh-tdep.c: Use correct register names for Windows CE.
4177 * top.c (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Update comments.
4178 (error_return, quit_return): Merge into catch_return pointer.
4179 (return_to_top_level): Update comment. Longjmp to *catch_errors,
4180 and communicate reason to catch_errors via setjmp return value.
4181 (catch_errors): Always catch both quit and error, and if a catch
4182 wasn't requested by caller, throw it to the next catch_error.
4183 Replace dual longjmp buffer memcpy with single pointer change.
4184 Add FIXME for possibly adding new interface to tell caller what
4185 event was caught. Add extensive comments.
4186 * defs.h (enum return_reason): Reserve 0 for use as initial
4187 setjmp() return value.
4188 (RETURN_MASK): New public macro to generate RETURN_MASK_* from
4190 (RETURN_MASK_QUIT, RETURN_MASK_ERROR): Define using RETURN_MASK.
4194 * infcmd.c (run_stack_dummy): Do not pop frame on random signal.
4195 * valops.c (_initialize_valops): Add command "set unwindonsignal".
4196 (hand_function_call): Test for unwind_on_signal and act accordingly.
4200 * gdbarch.sh (dis_asm_read_memory): Change LEN to unsigned long.
4201 Match ../include/dis-asm.h change.
4202 * gdbarch.h: Regenerate.
4203 * corefile.c (dis_asm_read_memory): Update.
4207 * configure.in (CONFIG_INITS): Fix typo, was CONFIG_INIT.
4208 (ENABLE_CFLAGS): Move initialization to start of file.
4209 (enable-gdbmi): Add new configure option --enable-gdbmi. When
4210 selected and an ${srcdir}/mi directory is present enable MI
4213 * configure: Regenerate.
4215 * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS, SUBDIR_MI_DEPS,
4216 SUBDIR_MI_INITS, SUBDIR_MI_LDFLAGS, SUBDIR_MI_CFLAGS): New macros.
4217 (CONFIG_OBS, CONFIG_SRCS, CONFIG_DEPS, CONFIG_INITS,
4218 CONFIG_LDFLAGS): New macros. Initialized by autoconf via
4220 (INTERNAL_LDFLAGS, CDEPS, LINTFILES, DEPFILES, SOURCES,
4221 INIT_FILES): Use $(CONFIG_...) instead of @CONFIG...@.
4223 * mi: New directory. MI interface to GDB.
4225 * defs.h (interpreter_p): Declare when UI_OUT.
4226 * top.c (gdb_init): When interpreter_p, check that the interpreter
4227 was recognized by one of the linked in interpreters.
4228 * main.c (interpreter_p): Define.
4229 (captured_main): When UI_OUT, check for ``-i <interpreter>'' option.
4230 * event-top.c (display_gdb_prompt): When interpreter_p, assume
4231 interpreter displays prompt.
4233 * breakpoint.c (print_it_typical, watchpoint_check,
4234 print_one_breakpoint, mention): When MI include additional
4235 target status information.
4236 * infrun.c (print_stop_reason, normal_stop): Ditto.
4240 * gdbarch.sh: Make the `default' field really default to zero, as
4243 Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.
4244 * valops.c (COERCE_FLOAT_TO_DOUBLE): Rework definition to be
4246 (default_coerce_float_to_double, standard_coerce_float_to_double):
4248 (value_arg_coerce): Adjust for new definition.
4249 * value.h (default_coerce_float_to_double,
4250 standard_coerce_float_to_double): New declarations for the above.
4251 * gdbarch.sh (coerce_float_to_double): New entry, replacing macro.
4252 * gdbarch.c, gdbarch.h: Regenerated.
4253 * tm-alpha.h, tm-fr30.h, tm-m32r.h, tm-mips.h, tm-hppa.h,
4254 tm-rs6000.h, tm-sh.h, tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Change
4256 * mips-tdep.c (mips_coerce_float_to_double): Supply our own custom
4258 (mips_gdbarch_init): Install that as our coerce_float_to_double
4263 * ppc-linux-nat.c (supply_gregset, supply_fpregset): Add return
4265 * ppc-linux-tdep.c (ppc_linux_at_sigtramp_return_path): Add
4266 forward declaration.
4268 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc): Handle case
4269 where the next frame is a signal handler caller.
4271 * config/powerpc/tm-linux.h (PUSH_ARGUMENTS): Remove extraneous
4273 (tm-linux.h): Include.
4274 (tm-sysv4.h): Don't include (directly). config/tm-linux.h will
4275 include this file for us.
4276 (REALTIME_LO, REALTIME_HI): Don't define. These are defined by
4277 config/tm-linux.h for us.
4278 (SOFUN_ADDRESS_MAYBE_MISSING): Define.
4282 * Makefile.in (ppc-linux-nat.c, ppc-linux-tdep.c): New files.
4283 (ppc-linux-nat.o, ppc-linux-tdep.o): Add dependencies.
4284 * configure.tgt (powerpc-*-linux*): Separate from powerpc-*-eabi
4287 * ppc-linux-nat.c, ppc-linux-tdep.c, config/powerpc/linux.mt,
4288 config/powerpc/nm-linux.h, config/powerpc/tm-linux.h: New files.
4289 * config/powerpc/xm-linux.h: Substantially revised for native
4291 * config/powerpc/linux.mh (NAT_FILE): Redefine to be nm-linux.h.
4292 (NATDEPFILES): Update list to reflect the fact that we can
4295 * rs6000-tdep.c, config/rs6000/tm-rs6000.h
4296 (rs6000_frameless_function_invocation, rs6000_frame_saved_pc):
4297 Renamed; The former names were lacking the rs6000_ prefix.
4298 * rs6000-tdep.c (rs6000_frame_saved_pc): Call FRAME_CHAIN
4299 instead of rs6000_frame_chain.
4300 (rs6000_frame_chain): Call FRAMELESS_FUNCTION_INVOCATION instead
4301 of rs6000_frameless_function_invocation.
4307 * event-loop.c (handle_file_event): In case of poll, enable
4308 printing of informational message if an error/exception is
4309 detected on the file descriptor.
4313 * MAINTAINERS (Misc): Clarify that yes, anyone can edit web pages.
4317 * buildsym.c: Include "language.h" and "expression.h" for
4318 longest_local_hex_string_custom.
4322 * gdbarch.sh: Include <gdb_wait.h> instead of <wait.h>.
4323 * gdbarch.c: Already updated by Wed Feb 9 18:59:16 2000 Andrew
4328 * MAINTAINERS: Update: IA-64 - Kevin Buettner; ARM - Fernando
4329 nasser, Jim Ingham and Scott Bambrough; GNU/Linux ARM - Scott
4330 Bambrough; event loop - Elena Zannoni; SDS and RDI/APD protocol -
4331 to Fernando Nasser and Jim Ingham; KOD - Fernando Nasser; MI -
4332 Andrew Cagney, Elena Zannoni and Fernando Nasser; Web pages - Jim
4334 * MAINTAINERS: Add Nick Clifton to write after approval list.
4338 * MAINTAINERS: Add note on multiple maintainers.
4342 * cli-out.c (cli_table_header): Type of parameter `alignment' is
4343 `enum ui_align', not `int'.
4344 (cli_field_string, cli_field_skip): Likewise.
4349 * buildsym.h (add_free_pendings): Declare.
4350 * buildsym.c (add_free_pendings): New function.
4351 (make_blockvector): 32x64 fix using longest_local_hex_string().
4352 (start_subfile): initialize variable 'subfile'.
4356 * remote.c (remote_async_detach): Use target_mourn_inferior(), to
4357 make sure that all is cleaned up after we disconnect from the
4359 (remote_detach): Ditto.
4364 * ui-out.c (ui_out_set_flags): Fix typo, removing warning and
4365 potentially harming mistake.
4369 * arm-tdep.c: Use header file instead of extern declarations for
4370 the {get,set}_arm_regname* functions.
4374 * configure.in: Replaces obsolete gdbtk-variable.c with
4376 * configure: Regenerate.
4377 * Makefile.in: Remove obsolete/extraneous references to
4382 * target.c (do_target_signal_to_host): Do not use REALTIME_LO in
4383 the conversion of the signal number. TARGET_SIGNAL_REALTIME_33 is
4384 33 by definition, whereas REALTIME_LO might be 32 on systems that
4385 have SIG32 such as Linux. Make sure that the signal number
4386 returned is within the range specified by REALTIME_LO and
4391 * configure: Regenerated.
4395 * arm-tdep.c (set_disassembly_flavor, arm_othernames,
4396 _initialize_arm_tdep): Allows the user to choose between any of
4397 the flavors available for the disassembly to be used in the "info
4398 reg" command and elsewhere in gdb. It prevents having to maintain
4399 this information in two places by using the data kept in the
4404 * configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
4405 prfpregset_t in <sys/procfs.h>.
4406 * config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
4408 * gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
4409 prgregset_t and prfpregset_t if they are not already present.
4414 * procfs.c: Define MERGEPID if not defined. For osf4.0e.
4418 * Makefile.in (diststuff): Run 'diststuff' in doc/ subdir, not
4423 Changes for AIX 4.3:
4424 * rs6000-tdep.c (rs6000_fix_call_dummy): Set TOC register
4425 to correct value for generic dummy frames. When using
4426 generic dummy frames, don't attempt to write TOC value or
4427 function to call into the call dummy.
4428 (rs6000_push_arguments): Adapt USE_GENERIC_DUMMY_FRAMES
4429 code to also handle the PowerOpen ABI.
4430 (ppc_push_return_address): Enable for all ports.
4431 * config/powerpc/tm-ppc-aix.h (USE_GENERIC_DUMMY_FRAMES,
4432 PUSH_DUMMY_FRAME, PUSH_RETURN_ADDRESS, GET_SAVED_REGISTER,
4433 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LOCATION,
4434 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET): Override defaults
4435 provided by generic RS6000 definitions so that call dummies
4436 are implemented using generic dummy frames instead.
4438 * rs6000-nat.c (store_inferior_registers): Call exec_one_dummy_insn()
4439 prior to changing the stack pointer via ptrace(). Also, ignore
4440 attempts to store to undefined registers that are less than
4443 * rs6000-tdep.c (DUMMY_FRAME_SIZE): Change size of the dummy
4444 frame from 436 to 448 to account for alignment padding.
4445 (rs6000_push_arguments): Obtain actual register size instead
4446 of assuming the register is 4 bytes long. [There's still
4447 more work to be done to totally remove the 4 byte assumption,
4448 however.] Make sure the stack is 16 byte aligned as required
4449 by the PowerOpen ABI. Also, make sure that small structures
4450 passed in registers are properly aligned within the register.
4456 * rs6000-tdep.c (skip_prologue): skip copying of argument
4457 registers to local variable registers.
4461 * elfread.c (elf_symtab_read): Revert changes by Amit S. Kale. A
4462 sym->section->index number is not a SECT_OFF_* code.
4466 * MAINTAINERS (write after approval): Add H.J. Lu.
4470 * sh-tdep.c: Remove extraneous code.
4474 * elfread.c (elf_symtab_read): Move the use of sym to after where
4480 * MAINTAINERS: Make Nick Duffek the UnixWare threads maintainer.
4485 * dwarf2read.c: (die_is_declaration): New fn.
4486 (read_structure_scope): Use it.
4488 * dwarf2read.c: (die_is_declaration): Convert to ISO-C.
4492 * config/i386/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o
4493 * configure.tgt (i[3456]86-*-netbsd*): add gdbserver to
4495 * gdbserver/low-nbsd.c: New file.
4497 * gdbserver/Makefile.in: convert to autoconf.
4498 * gdbserver/configure.in: likewise.
4499 * gdbserver/configure: generate.
4503 * CONTRIBUTE: New file. How to contribute to GDB.
4507 * MAINTAINERS: Add Eli Zaretskii to djgpp maintiners. Add Kevin
4508 Buettner to powerpc maintainers. Make Kevin Buettner the
4509 GNU/LINUX PPC native maintainer. Add J.T. Conklin, Jim Kingdon
4510 and Jason Molenda to write after aproval list.
4514 * MAINTAINERS: Reformat. Separate into check-in categories.
4518 * uw-thread.c: Remove __FUNCTION__ GNUism.
4522 * elfread.c (elf_symtab_read): Use offset for the section in which a
4523 symbol resides, instead of .text section for calculating address of a
4529 * gnu-nat.c: Remove hackery to include <bits/waitflags.h>. It is
4530 no longer necessary now we have gdb_wait.h.
4534 * gnu-nat.c (proc_string): Make global.
4535 (do_mach_notify_dead_name): Suppress dead name notifications if we
4536 know that the task is dead.
4540 * gnu-nat.c (inf_validate_task_sc): Get task info via proc server
4541 instead of directly from the kernel. Add some hackery to make
4542 sure that the info isn't influenced by suspension of the task in
4543 the proc server itself.
4547 * defs.h (MERGEPID): Added. Patch submitted by Andrew Hobson and
4548 approved by Michael Snyder.
4552 * linux-thread.c: Include defs.h before gdb_wait.h.
4556 * Makefile.in (wait_h): Delete macro. Update all dependencies
4557 specifying gdb_wait.h instead.
4559 * ser-unix.c, ser-pipe.c, remote.c, remote-udi.c, remote-sds.c,
4560 remote-os9k.c, remote-es.c, remote-rdp.c, remote-vx960.c,
4561 remote-vx.c, remote-st.c, remote-nindy.c, remote-mm.c,
4562 convex-xdep.c, convex-tdep.c, target.c, win32-nat.c, standalone.c,
4563 remote-vxmips.c, remote-vxsparc.c, remote-vx68.c, remote-vx29k.c,
4564 remote-sim.c, remote-rdi.c, remote-mips.c, remote-eb.c,
4565 remote-e7000.c, remote-bug.c, remote-array.c, remote-adapt.c,
4566 ppc-bdm.c, ocd.c, monitor.c, m3-nat.c, linux-thread.c,
4567 infttrace.c, lin-thread.c, infptrace.c, gnu-nat.c, gdbarch.c,
4568 fork-child.c, command.c: Include "gdb_wait.h" instead of <wait.h>
4570 * nindy-share/nindy.c, nindy-share/Onindy.c: Ditto.
4572 * gdb_wait.h: New file. Based on ../include/wait.h. Include
4573 <sys/wait.h> or <wait.h> and then define any missing WIF macros.
4577 * config/d10v/tm-d10v.h (NO_EXTRA_ALIGNMENT_NEEDED): Define.
4578 * config/d10v/tm-d10v.h (STACK_ALIGN): Define.
4579 (d10v_stack_align): Declare.
4580 * d10v-tdep.c (d10v_stack_align): Define.
4584 * top.c (remote_timeout): Change default to 2. Add comment
4585 explaining history of changes to the default value.
4586 * remote.c (_initialize_remote): Remove code that adds set/
4587 show remotetimeout, as that's also done in top.c
4591 * m32r-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
4592 Return E01 instead of P01 when 'P' command fails.
4596 * remote.c (putpkt_binary): Handle NAK from target stub.
4600 * configure.in: Remove the addition of sol-thread.c to the
4601 CONFIG_INITS list. This caused problems with init.c, because
4602 sol-thread.c would be grepped twice for _initialize_* functions.
4604 * Makefile.in: Add FIXME for init.c.
4608 Clean up compiler warnings:
4609 * bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c,
4610 stack.c, valprint.c: Change variables to unsigned.
4611 * bcache.c: Rearrange to avoid warnings about variables not being set.
4612 * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h
4613 rather than declaring print_max and repeat_count_threashold
4614 ourselves (incorrectly).
4615 * valprint.h: Do declare repeat_count_threashold.
4616 * ch-exp.c: Use default case for internal error.
4617 * findvar.c: Don't omit argument type.
4618 * symtab.c: Remove unused variable.
4622 * c-typeprint.c (remove_qualifiers): New function.
4623 (c_type_print_base): Use it to remove qualifiers from C++
4624 qualified names, not strrchr.
4626 * c-typeprint.c (c_type_print_base): Recognize type conversion
4627 operators by calling is_type_conversion_operator.
4628 (is_type_conversion_operator): New function.
4632 * config/arm/tm-arm.h (LOWEST_PC): Define.
4636 * infrun.c (resume): Make just one call to target_resume(), instead
4637 of four: set up correct parameters in all the cases ahead of time,
4638 and do call at the end.
4642 * config/powerpc/tm-ppc-eabi.h: Define
4643 SOFUN_ADDRESS_MAYBE_MISSING.
4647 * arm-tdep.c (arm_pc_is_thumb_dummy): Account for large dummy
4652 * Makefile.in (INIT_FILES): Append CONFIG_INITS
4653 * configure.in (CONFIG_INIT): Initialize.
4654 (links): Link srcdir/gdbtk/library to gdbtcl2.
4655 * gdbtcl2: Moved to gdbtk/library.
4656 ChangeLog-gdbtk, gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c,
4657 gdbtk-varobj.c, gdbtk-wrapper.c, gdbtk-wrapper.h, gdbtk.c,
4658 gdbtk.h: Moved to gdbtk/generic.
4662 * printcmd.c (build_address_symbolic): New function. Returns all
4663 the parts that are necessary to print an address in a symbolic
4665 (print_address_symbolic): Split into a printing part and an
4666 information building part, build_address_symbolic().
4668 * defs.h (build_address_symbolic): Export.
4672 * dwarf2read.c (decode_locdesc): Add support for the DW_OP_bregx
4677 * arm-tdep.c (arm_push_arguments): Fix passing of floating point
4678 arguments on dummy frames.
4682 * arm-tdep.c (arm_pc_is_thumb_dummy): Account for large dummy frames.
4683 (arm_pop_frame): Account fr dummy frames (as opposed to real ones).
4687 * remote.c (getpkt_sane): New function. It is the old getpkt(),
4688 which now returns a timeout indication.
4689 (getpkt): New function. Wrapper for getpkt_sane(), so that return
4690 value can still be ignored.
4694 * top.c (print_gdb_version): Print ``UI_OUT'' when configured with
4699 * ui-file.c, ui-file.h: Rename gdb-file.h, gdb-file.c. Rename
4700 ``struct gdb_file'' to ``struct ui_file''. Delete typedef
4703 * Makefile.in: Update.
4705 * ax-gdb.c, ax-general.c, ax.h, buildsym.c, c-lang.c, c-lang.h,
4706 c-typeprint.c, c-valprint.c, ch-lang.c, ch-lang.h, ch-typeprint.c,
4707 ch-valprint.c, command.c, command.h, convex-tdep.c, corefile.c,
4708 cp-valprint.c, d10v-tdep.c, d30v-tdep.c, defs.h, expprint.c,
4709 expression.h, f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c,
4710 frame.h, gdb-events.sh, gdb-file.c, gdb-file.h, gdbcmd.h,
4711 gdbtypes.h, hppa-tdep.c, jv-lang.c, jv-lang.h, jv-typeprint.c,
4712 jv-valprint.c, language.c, language.h, m2-lang.c, m2-lang.h,
4713 m2-typeprint.c, m2-valprint.c, m3-nat.c, main.c, monitor.c,
4714 printcmd.c, pyr-tdep.c, remote-mips.c, remote-sim.c, remote-udi.c,
4715 remote.c, scm-lang.c, scm-lang.h, scm-valprint.c, ser-e7kpc.c,
4716 ser-go32.c, ser-mac.c, ser-ocd.c, ser-unix.c, ser-unix.h,
4717 serial.c, serial.h, stack.c, symfile.c, symmisc.c, tahoe-tdep.c,
4718 target.c, target.h, top.c, top.h, typeprint.c, typeprint.h,
4719 utils.c, v850ice.c, valprint.c, valprint.h, value.h,
4720 config/pa/tm-hppa.h: Update.
4721 * cli-out.c, cli-out.h, ui-out.c, ui-out.h, varobj.c: Update.
4725 * config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh,
4726 config/i386/i386dgux.mh, config/i386/i386sol2.mh,
4727 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4728 config/i386/ncr3000.mh, config/m68k/m68kv4.mh,
4729 config/m88k/delta88v4.mh, config/mips/irix4.mh,
4730 config/mips/irix5.mh, config/mips/mipsv4.mh,
4731 config/powerpc/solaris.mh (NATDEPFILES): Change references to
4732 proc_api.o, proc_events.o, proc_flags.o, and proc_why.o to
4733 proc-api.o, proc-events.o, proc-flags.o, and proc-why.o.
4737 * top.c (fputs_unfiltered_hook): Moved to tui/tui-file.c.
4739 * main.c (captured_main): Only use the legacy tui_file code when
4740 linking in older code such as the TUI.
4742 * gdb-file.h, gdb-file.c: New files.
4743 * utils.c, defs.h (struct gdb_file, gdb_file_new, gdb_file_delete,
4744 null_file_isatty, null_file_rewind, null_file_put,
4745 null_file_flush, null_file_write, null_file_fputs,
4746 null_file_delete, gdb_file_data, gdb_flush, gdb_file_isatty,
4747 gdb_file_rewind, gdb_file_put, gdb_file_write, fputs_unfiltered,
4748 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_rewind,
4749 set_gdb_file_put, set_gdb_file_write, set_gdb_file_fputs,
4750 set_gdb_file_data, struct accumulated_gdb_file,
4751 do_gdb_file_xstrdup, gdb_file_xstrdup, struct mem_file):
4752 mem_file_new, mem_file_delete, mem_fileopen, mem_file_rewind,
4753 mem_file_put, mem_file_write, struct stdio_file): stdio_file_new,
4754 stdio_file_delete, stdio_file_flush, stdio_file_write,
4755 stdio_file_fputs, stdio_file_isatty, stdio_fileopen, gdb_fopen):
4756 Moved to gdb-file.h and gdb-file.c.
4757 * utils.c (enum streamtype, struct tui_stream, tui_file_new,
4758 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
4759 tui_file_rewind, tui_file_put, tui_file_fputs,
4760 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
4761 fputs_unfiltered_hook):
4762 Moved to tui/tui-file.c and tui/tui-file.h.
4764 * Makefile.in (COMMON_OBS): Add gdb-file.o, tui-file.o.
4765 (tui-file.o, gdb-file.o): Add dependencies.
4766 (corefile.o, main.o, utils.o, simmisc.o): Update dependencies.
4767 * main.c: #include tui/tui-file.h.
4771 * findvar.c (value_from_register): Special case handling of D10V
4772 pointer values fetched from registers.
4776 * arm-tdep.c (thumb_skip_prologue, thumb_scan_prologue): Add
4777 support for new style thumb prologues.
4781 * arm-tdep.c: Remove extraneous dash at start of strings
4782 introduced in previous delta.
4786 * arm-tdep.c: Replace uses of arm_toggle_renames() with
4787 parse_arm_disassembler_option().
4791 * symtab.c (decode_line_1): Don't let commas that are within
4792 quotes or parenthesis terminate the line spec. Don't use pp when
4793 removing the final double quote of a double-quoted string. Don't
4794 forget to skip the opening double quote. I have no clue whether
4795 this change is correct; probably we've just moved this function
4796 from one buggy place to another buggy place, and never came within
4797 an outhouse whiff of correctness.
4798 (find_toplevel_char): New function.
4802 * arm-tdep.c (arm_push_arguments): Set the thumb mode bit when
4803 passing the pointer to a thumb function as an argument.
4807 * remote-rdi.c (arm_rdi_mourn_inferior): Make sure breakpoints
4808 are reinserted for another run.
4812 * cli-out.c (cli_filed_string): Test for NULL string.
4816 * infcmd.c (run_stack_dummy): Account for a random signal stopping
4817 the inferior as well as breakpoints being hit while performing an
4818 inferior function call.
4819 * valops.c (hand_function_call): Ditto.
4825 * config/i386/tm-i386gnu.h (THREAD_STATE_FLAVOR): Define to
4826 i386_REGS_SEGS_STATE.
4827 (HAVE_I387_REGS): Define.
4828 (FLOAT_INFO): Remove.
4829 * i386gnu-nat.c: Almost completely rewritten to use new i386
4830 register layout and `float info' implementation.
4831 * gnu-nat.c (inf_update_procs, proc_get_state, proc_string):
4832 Move prototypes from here.
4833 * gnu-nat.h: To here.
4837 * utils.c (get_field, put_field): Fix buffer underruns and
4838 overruns. Also, handle case where total_len is not evenly
4840 (getfield): Make sure zeroing of unwanted bits occurs even
4841 when bit field to extract does not straddle two or more
4846 * defs.h: Add gdb_thread_select declaration.
4850 * linux-thread.c (_initialize_linuxthreads): Make sure that
4851 linuxthreads_block_mask does not block SIGCHLD.
4855 * rdi-share/devsw.c (openLogFile): On cygwin, set the log mode to
4856 text so that new lines work properly.
4860 * proc-utils.h: New file. Export functions from proc-*.c.
4862 * proc_api.c: Rename to:
4863 * proc-api.c: New file. Add include of proc-utils.h.
4865 * proc_events.c: Rename to:
4866 * proc-events.c: New file.
4868 * proc_flags.c: Rename to:
4869 * proc-flags.c: New file.
4871 * proc_why.c: Rename to:
4872 * proc-why.c: New file. Add include of proc-utils.h.
4874 * procfs.c: Add includes of gdbthread.h, sys/wait.h, signal.h,
4875 ctype.h, proc-utils.h.
4876 (find_procinfo_or_die): Add braces to avoid ambiguous else clause.
4877 (open_procinfo_files): Conditionalize local variable tmp, to avoid
4879 (proc_iterate_over_mappings): Conditionalize local vars mapfd and
4881 (procfs_wait): Adjust format in some printf_filetered calls to
4882 avoid compiler warnings.
4883 (make_signal_thread_runnable): Ifdef 0. The calls to this function
4884 are also ifdef'd 0 .
4885 (procfs_resume): Add parentheses around '&&' operation.
4886 (procfs_set_exec_trap): Remove unused variable.
4887 (info_proc_cmd): Add braces to avoid ambiguous else clause.
4889 * Makefile.in (procfs.o, proc-api.o, proc-events.o, proc-flags.o,
4890 proc-why.o): Update dependencies.
4892 * config/sparc/sun4sol2.mh (NATDEPFILES): Change proc_*.o files to
4897 * configure.in (NEW_PROC_API): Fix Unixware-matching regexp.
4899 * configure: Regenerated.
4903 * stack.c (print_frame_info_base): Break up into the frame info
4904 (location) printing part and the rest (source line printing).
4905 (print_frame): New function. Take care of printing the location
4909 * infrun.c (normal_stop): Use enum values rather than integers for the
4910 source_flag to be passed to show_and_print_stack_frame().
4913 * frame.h (print_what): New enum for 'source' argument to
4914 print_frame_info_base(). Use this instead of obscure numbers.
4919 * event-top.c (stdin_event_handler): call quit_command rather than
4920 exit -- run cleanups, give target code a chance to say goodbye to
4921 the target. Fixes bug where the inferior processes were left
4922 around on Solaris (and probably elsewhere) by the testsuite.
4926 * v850-tdep.c (v850_target_architecture_hook): Setup correct
4927 machine id for disassembly.
4931 * i386-linux-nat.c (fill_gregset): Pass the correct arguments to
4932 convert_to_regset, when regno indicates a specific register.
4936 * uw-thread.c: Document libthread.so debugging interface. Minor
4937 comment and formatting tweaks.
4938 (DEBUG): #define as 0 instead of 1.
4939 (CALL_BASE): Include function name in error msg.
4940 (libthread_stub): Adjust inferior_pid after thread exit.
4941 (uw_thread_create_inferior): Deactivate uw_thread_ops before
4942 asking procfs_ops to create inferior.
4943 (libthread_init): Don't return nonlocally on error.
4947 * rdi-share/ardi.c (negotiate_params): Fix initialization of static
4952 * remote-rdi.c (arm_rdi_open): Call arm-rdi-close() to make sure
4953 both sides are on the same state.
4957 * rdi-share/serdrv.c (find_baud_rate): Fix entries for 57600 and
4958 115200 (minor syntax mistake).
4962 * config/sparc/tm-sun4sol2.h (MERGEPID): Provide a definition for
4963 this here, to go along with the definitions of PIDGET and TIDGET.
4967 * thread.c (do_captured_thread_select): New function. Switch
4968 current thread, safely from within catch_errors().
4969 (gdb_thread_select): New function. Switch threads safely.
4970 (thread_command): Use gdb_thread_select().
4972 (do_captured_list_thread_ids): New function.
4973 (gdb_list_thread_ids): New function.
4975 * defs.h (gdb_thread_select, gdb_list_thread_ids): Export.
4979 * configure.in: Avoid linking -limagehlp unless it's a native build.
4980 * configure: Regenerate.
4981 * thread.cc (add_thread): Clear private data pointer here or suffer
4982 strange behavior when it is checked for NULL later.
4986 * win32nat.c (handle_exceptions): Handle various arithmetic exceptions.
4987 * configure.in: Add an additional library to cygwin link.
4988 * configure: Regenerate.
4991 * coffread.c (coff_symfile_read): Reinstate ability to recognize "pe"
4996 * uw-thread.c: New file to support UnixWare user-mode threads:
4998 * target.h (struct target_ops): New vector, to_extra_thread_info,
4999 allows back-ends to give extra details in info thread display.
5000 (target_extra_thread_info): define new macro.
5001 (target_find_new_threads): simplify macro. Cleanup comments.
5002 * target.c (to_extra_thread_info): default and inherit new vector.
5003 (cleanup_target): eliminate PARAMS, break up long lines,
5004 provide default definition for to_extra_thread_info, and
5005 to_find_new_threads. Default to_thread_alive and to_query
5006 to return_zero, not target_ignore (they each return int not void).
5007 (debug_to_find_new_threads): new debug entry.
5008 (setup_target_debug): add debug_to_find_new_threads.
5009 * gdbthread.h: export struct thread_info, find_thread_pid, and
5010 iterate_over_threads. Add comments. Eliminate PARAMS. Update
5011 copyright. Add new private data pointer for use by target back-ends.
5012 * thread.c (struct thread_info): move definition to gdbthread.h.
5013 (find_thread_pid): new exported function for thread lookup.
5014 (iterate_over_threads): new exported function for applying
5015 arbitrary operations to threads. Update copyright to 2000.
5016 (info_threads_command): use new target_extra_thread_info vector
5017 to display extra information about each thread (if implemented).
5018 * config/i386/tm-i386v42mp.h: remove obsolete #defines for procfs.
5019 Add defines for PIDGET, etc.
5020 * config/i386/tm-i386sol2.h: ditto.
5021 * config/sparc/tm-sun4sol2.h: ditto.
5022 * config/i386/i386v42mp.mh: add uw-thread.o to NATDEPFILES.
5023 * testsuite/gdb.threads/pthreads.exp: Try to link with -lthread
5024 if -lpthread and -lpthreads fail.
5026 * procfs.c: (PIDGET, TIDGET, MERGEPID): change default to no-op.
5027 (proc_flags): combine flags that UnixWare splits into two locations.
5028 (proc_modify_flag): add support for PR_KLC (kill on last close).
5029 (proc_[un]set_kill_on_last_close): new functions.
5033 * infrun.c (normal_stop): Print out thread id when we stop.
5037 * remote.c (remote_open_1): Fix message so it does not imply a
5038 specific syntax for serial ports, as it is OS dependent.
5039 (remote_async_open_1): Ibid.
5040 (init_remote_ops): Ibid.
5044 * rdi-share/serdrv.c (SerialOpen): Use speed from "-b" argument or
5045 "set remotebaud" command (if set) when no speed is specified on
5046 the "target rdi" command.
5050 * rdi-share/serdrv.c (find_baud_rate): Add entries for 57600 and
5052 (baud_options[]): Ibid.
5056 * rdi-share/unixcomm.c: Fix SERIAL_PREFIX so it matches the prefix
5057 used by each operating system.
5061 * breakpoint.c (until_break_command): Add an argument for the
5062 continuation, the beginning of the cleanups set up by this
5064 (until_break_command_continuation): Do cleanups until the one
5065 passed in as argument instead of doing all of them.
5067 * infcmd.c (finish_command_continuation): Expect a new argument,
5068 which indicates up to where to do cleanups. Update calls to
5069 do_exec_cleanups to use this marker, instead of ALL_CLEANUPS.
5070 (finish_command): Add another argument for the continuation: the
5071 starting cleanup for this command.
5077 * rdi-share/ardi.c: Allow interruption of interruptible
5078 targets with a <CNTL-C>.
5082 * rdi-share/etherdrv.c (fetch_ports): Send extra words on request
5083 to control port to accommodate some versions of Angel.
5087 * rdi-share/devsw.c (dumpPacket): Fix source of channel information.
5088 Add interpretation for C Support Library packets.
5092 * rdi-share/devsw.c (DevSW_Close): Remove const from argument that
5093 is now being modified.
5094 * rdi-share/devsw.h: Adjust declaration of the above funtion.
5096 For older changes see ChangeLog-99
5102 version-control: never