3 * m32c-tdep.c (m32c_banked_register): New function.
4 (m32c_banked_read): Use m32c_banked_register function to evaluate
6 (m32c_banked_write): Ditto.
7 (m32c_virtual_frame_pointer): New function.
8 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
12 * m68k-tdep.c (m68k_frame_align): New.
13 (m68k_gdbarch_init): Set frame_align here.
17 * interps.c (interpreter_completer): Allocate one more item to the
18 'matches' list and set them all to 0 with a xcalloc.
22 * annotate.c (annotate_frame_begin): Re-instate frame-begin
23 annotation for level 3 annotations.
28 * infcall.c (value_arg_coerce): Use value_cast_pointers for
29 references. Avoid value_cast to a reference type. Don't silently
30 convert pointers to references.
31 * valops.c (value_cast_pointers): New, based on value_cast.
32 (value_cast): Use it. Reject reference types.
35 * value.h (value_cast_pointers, value_ref): New prototypes.
39 * remote.c (unpack_varlen_hex): Correct type of retval.
44 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
45 or missing location list information. Suggested by Jan
50 * Makefile.in (arm_linux_tdep_h): New variable.
51 (arm-linux-nat.o, arm-linux-tdep.o): Update.
52 * arm-linux-nat.c: Include "arm-linux-tdep.h".
53 (typeNone, typeSingle, typeDouble, typeExtended)
54 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
55 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
56 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
57 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
59 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
60 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
61 and collect_nwfpe_register.
62 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
64 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
65 (arm_apcs_32): New declaration.
66 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
67 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
68 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
69 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
70 (arm_linux_regset_from_core_section): New.
71 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
72 * arm-linux-tdep.h: New file.
73 * arm-tdep.h (struct regset): Declare.
74 (struct gdbarch_tdep): Add gregset, fpregset members.
75 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
77 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
81 * infrun.c (handle_inferior_event): Fixed typos in printf.
86 * remote.c (REMOTE_ALIGN_WRITES): New.
87 (remote_write_bytes): Align large write packets. Remove unused
88 payload_start variable.
92 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
93 (remote_supported_packet): Remove #if 0.
94 (remote_protocol_features): Add qPart:auxv:read.
95 (remote_unescape_input): New function.
96 (readchar): Don't mask off the high bit.
97 (read_frame): Use fputstrn_filtered for packet data.
98 (getpkt_sane): Return the number of bytes read or -1. Use
100 (remote_read_qxfer): New.
101 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
102 (_initialize_remote): Update packet registration.
103 * defs.h (fputstrn_filtered): New prototype.
104 * utils.c (fputstrn_filtered): New.
105 * NEWS: Mention qXfer.
109 * target.c (target_read): Stop if target_read_partial returns 0
110 when some bytes have already been read.
111 (target_write): Likewise for target_write_partial.
112 (target_read_partial, target_write_partial): Make static.
113 (target_read_alloc): New.
114 * target.h: Doc fixes.
115 (target_read_partial, target_write_partial): Delete prototypes.
116 (target_read_alloc): New prototype.
118 * auxv.c (target_auxv_read): Delete.
119 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
120 * auxv.h (target_auxv_read): Delete prototype.
121 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
122 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
123 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
124 * procfs.c (procfs_make_note_section): Likewise.
125 * remote.c (remote_xfer_partial): Don't loop here.
126 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
130 * arm-linux-tdep.c: Doc fixes.
131 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
132 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
133 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
135 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
136 the new signal frame layouts.
141 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
142 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
143 * gdbarch.sh: Correct comment.
147 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
151 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
155 * alphaobsd-tdep.c: New file.
156 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
157 handler for GDB_OSABI_OPENBSD_ELF.
158 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
159 (alphaobsd-tdep.o): New target.
160 * config/alpha/obsd.mt: New file.
161 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
165 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
166 * alpha-tdep.c (alpha_register_byte): Remove.
167 (alpha_extract_struct_value_address): Remove.
168 (alpha_return_value): New.
169 (alpha_return_in_memory_always): New.
170 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
171 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
172 instead of set_gdbarch_deprecated_use_struct_convention,
173 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
174 or set_gdbarch_deprecated_extract_struct_value_address.
175 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
176 alphafbsd_use_struct_convention, remove gcc_p argument.
177 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
178 set_gdbarch_deprecated_use_struct_convention.
182 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
184 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
185 a.out-style core file format here. Make global.
186 (alphanbsd_regset_from_core_section): Remove.
187 (alphanbsd_sigtramp_offset): Make static.
188 (alphanbsd_aout_init_abi): Remove.
189 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
190 a.out style core files.
191 (_initialize_alphanbsd_tdep): Do not register a handler for
192 GDB_OSABI_NETBSD_AOUT.
194 * alphabsd-tdep.h: Tweak comments.
195 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
196 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
197 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
198 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
199 (alphanbsd_aout_supply_gregset): New functions.
200 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
202 (alphanbsd_regset_from_core_section)
203 (alphanbsd_aout_regset_from_core_section): New functions.
204 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
205 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
206 (alphanbsd_init_abi): Set regset_from_core_section.
207 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
209 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
210 Use alphanbsd_aout_init_abi whre appropriate. Don't call
211 deprecated_add_core_fns.
212 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
214 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
215 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
217 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
218 svr4_lp64_fetch_link_map_offsets instead of
219 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
223 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
224 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
225 write_exp_elt_intern): Zero initialize tmp.
229 * remote.c (remote_xfer_partial): Remove KOD support.
230 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
231 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
232 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
234 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
236 * kod.h, kod.c, kod-cisco.c: Delete files.
240 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
244 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
249 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
253 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
254 Add special types for sp and pc.
255 * Makefile.in (arm-tdep.o): Update.
259 * remote.c (remote_escape_output): New function.
260 (remote_write_bytes): Use remote_escape_output.
264 * NEWS: Mention qSupported.
265 * remote.c (struct remote_state): Add explicit_packet_size.
266 (get_remote_packet_size): Check explicit_packet_size.
267 (get_memory_packet_size): Likewise.
268 (PACKET_qSupported): New enum value.
269 (struct protocol_feature, remote_supported_packet)
270 (remote_packet_size, remote_protocol_features)
271 (remote_query_supported): New.
272 (remote_open_1): Reset explicit_packet_size. Call
273 remote_query_supported.
274 (_initialize_remote): Register qSupported.
278 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
282 * GDB 6.5 released from GDB 6.5 branch.
286 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
287 decide how many registers it takes to pass a floating point
288 argument, what matters is the size of a floating point register
289 (not the size of a general purpose register).
290 (mips_o32_push_dummy_call): Ditto.
294 * configure.tgt: Add gdbserver support for m32r-linux.
298 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
302 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
303 based on insert_step_resume_breakpoint_at_frame.
304 (handle_inferior_event): Update comments. Use
305 insert_step_resume_breakpoint_at_caller.
306 (insert_step_resume_breakpoint_at_frame): Revise comments.
310 * dwarf2read.c (read_unspecified_type): New function.
311 (read_type_die): Handle DW_TAG_unspecified_type.
312 (Committed by Julian Brown.)
316 * symfile.c (load_command): Check for a changed executable before
321 * mips-tdep.c (mips_find_long_section): New function.
322 (mips_gdbarch_init): Use it to set long and pointer sizes.
326 * remote-file.io.c (remote_fileio_func_system): Treat zero length
327 string as NULL. Adjust for NULL pointer argument.
328 * doc/gdb.texinfo (system): Document behaviour with zero length
333 * remote.c (set_remote_protocol_packet_cmd)
334 (show_remote_protocol_packet_cmd): New prototypes.
335 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
336 (struct packet_config): Make name and title const.
337 (add_packet_config_cmd): Remove unnecessary arguments.
338 (_initialize_remote): Update calls.
342 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
343 before calling FD_ISSET. Correct check for exceptfds which
344 previously tested writefds.
349 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
353 * MAINTAINERS (Write After Approval): Add myself.
357 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
361 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
362 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
363 conversion. Use M68K_NUM_REGS for number of regs.
365 * remote-fileio.c (remote_fileio_reset): New.
366 * remote-fileio.h (remote_fileio_reset): Prototype.
367 * remote.c (extended_remote_restart, remote_open_1): Call it.
369 * remote.c (remote_open_1): Do preopen tasks before
370 irreversably destroying state.
374 * remote.c (struct remote_state): New type, only containing
376 (remote_state): New variable.
377 (get_remote_state): New function.
378 (struct remote_arch_state): Renamed from struct remote_state.
379 Removed buf and buf_size.
380 (get_remote_arch_state): Renamed from get_remote_state. All
381 necessary callers updated to call this function.
382 (init_remote_state): Initialize the architecture-specific state.
383 Update the target-specific state if necessary.
384 (get_remote_packet_size): New function. All previous references
385 changed to use this accessor function.
386 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
387 remote_arch_state instead of a remote_state. All callers changed.
388 (_initialize_remote): Initialize the packet buffer here.
392 * remote.c (remote_insert_watchpoint): Return -1, rather than
393 fatal error if packet is disabled.
394 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
395 remote_remove_hw_breakpoint): Likewise.
399 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
403 * mips-tdep.c: Comment tweaks.
407 * Makefile.in (top_builddir): Update comments.
408 (INTL_DIR, INTL_SRC): Delete.
409 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
410 * acinclude.m4: Include new gettext macros.
411 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
413 * aclocal.m4, configure: Regenerated.
417 * Makefile.in (arm-linux-nat.o): Update dependencies.
418 * arm-linux-nat.c: Include "gdb_proc_service.h".
419 (PTRACE_GET_THREAD_AREA): Define.
420 (ps_get_thread_area): New function.
424 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
425 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
426 DWARF2_FRAME_REG_SAVED_VAL_EXP.
427 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
428 val_offset_sf and val_expression.
429 (dwarf2_frame_prev_register): Handle the new reg rules.
430 (dwarf2_frame_this_id): Use pc instead of function entry point.
434 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
435 (dwarf2_frame_sniffer): Use it.
436 (decode_frame_entry_1): Set it according to augmentation "S".
441 * m2-typeprint.c (m2_record_fields): Move variable declarations
442 to the begining of the block.
446 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
447 include additional registers.
449 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
450 Iscramb2, Qscramb2, Qchannel2.
451 (mt_register_name): Likewise.
452 (mt_copro_register_type): Describe ZI2 and ZQ2.
454 * mt-tdep.c (mt_gdb_regnums): Define
455 MT_COPRO_PSEUDOREG_MAC_REGNUM.
456 (mt_register_name): Use it.
457 (mt_copro_register_type): Likewise.
458 (mt_register_type): Likewise.
459 (mt_pseudo_register_read): Likewise. Read the MAC register, not
460 the coprocessor register.
461 (mt_pseudo_register_write): Likewise.
465 * win32-nat.c (cygwin_exceptions): New variable.
466 (handle_exception): Treat a cygwin exception like a normal exception if
467 cygwin_exceptions is true.
468 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
472 * NEWS: (Improved Modula-2 language support): New section.
476 * configure: Regenerate using proper version of autoconf.
480 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
481 * dwarfread.c: Fix spelling of 'unexpected'.
482 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
483 * stack.c: Fix spelling of 'RETURN_VALUE'.
487 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
491 * dwarf2-frame.c: Include "value.h".
492 (read_reg): Use unpack_long and register_type.
493 * Makefile.in (dwarf2-frame.o): Update.
497 * remote-rdp.c: Deleted.
498 * NEWS: Mention removal of remote-rdp.c.
500 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
501 (remote-rdp.o): Delete.
502 * README: Remove description of remote-rdp.c.
503 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
504 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
508 * ser-e7kpc.c: Include <time.h> if it is available.
512 * version.in (version.in): Bump version number to 6.5.50 now
513 that the gdb-6.5 branch has been created.
514 * NEWS: Create a new section for changes that are included
515 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
520 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
521 the Global Maintainers' invitation to be an authorized committer
522 for the Modula-2 support.
526 * ppcobsd-nat.c: Include "gdb_assert.h".
527 [PT_GETFPREGS] (getfpregs_supplies): New function.
528 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
529 versions that have PT_GETFPREGS.
530 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
531 ppcobsd_fpreg_offsets.
532 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
534 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
536 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
537 * Makefile.in (ppcobsd-nat.o): Update dependencies.
541 * configure.ac: Use GCC_HEADER_STDINT.
542 * acinclude.m4: Include stdint.m4.
543 * Makefile.in (gdb_stdint_h): Define.
544 (distclean): Remove gdb_stdint.h.
545 (Makefile, stamp-h): Update rules to generate only the correct
547 (gdb_stdint.h, stamp-int): New rules.
548 * config.in, configure: Regenerated.
552 * valprint.c: Include "exceptions.h".
553 (val_print): If something goes wrong while printing, supply an
558 * source.c (get_current_source_symtab_and_line)
559 (set_current_source_symtab_and_line): Use { 0 }.
560 * cli/cli-cmds.c (list_command): Likewise.
564 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
565 (gdbmi): Use new variable name gdb-pc-address.
566 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
567 Check that a match has been found.
571 * m2-lang.h: Added function extern prototypes for
572 m2_is_long_set and get_long_set_bounds.
573 * m2-typeprint.c: Complete replacement.
574 (m2_print_type): Walk the Modula-2 type tree.
575 (m2_type_name): New function.
576 (m2_range): New function.
577 (m2_typedef): New function.
578 (m2_array): New function.
579 (m2_pointer): New function.
580 (m2_ref): New function.
581 (m2_unknown): New function.
582 (m2_union): New function.
583 (m2_procedure): New function.
584 (m2_print_bounds): New function.
585 (m2_short_set): New function.
586 (m2_is_long_set): New function.
587 (m2_get_discrete_bounds): New function.
588 (m2_is_long_set_of_type): New function.
589 (m2_long_set): New function.
590 (m2_record_fields): New function.
591 (m2_enum): New function.
592 * dwarf2read.c: Modified.
593 (read_set_type): New function.
594 (process_die): Call read_set_type.
595 (read_base_type): Modifed.
596 (set_cu_language): Added Modula-2 case clause.
597 * m2-valprint.c: Complete replacement.
598 (print_function_pointer_address): New function.
599 (get_long_set_bounds): New function.
600 (m2_print_long_set): New function.
601 (print_unpacked_pointer): New function.
602 (print_variable_at_address): New function.
603 (m2_val_print): Replaced.
604 * gdb/MAINTAINERS (Write After Approval): Added
609 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
610 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
611 (ppcnbsd_fill_fpreg): Remove prototypes.
612 (struct regset): Add forward declaration.
613 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
614 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
615 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
616 "value.h", target.h and nbsd-tdep.h". Reorder includes.
617 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
618 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
619 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
621 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
622 (ppcnbsd_fill_fpreg): Remove functions.
623 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
624 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
625 (ppcnbsd_reg_offsets): New variable.
626 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
627 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
628 introduced in NetBSD 2.0.
629 (ppcnbsd_sigtramp): Provide complete signal trampoline.
630 (ppcnbsd2_sigtramp): New variable.
631 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
632 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
633 Add ppcnbs2_sigtramp unwinder.
634 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
635 Initialize ppcnbsd_reg_offsets.
636 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
637 (getregs_supplies): Use regnum instead of regno.
638 (getfpregs_supplies): Likewise.
639 (ppcnbsd_fetch_inferior_registers): Likewise. Call
640 ppc_supply_gregset and ppc_suppply_fpregset instead of
641 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
642 (ppcnbsd_store_inferior_registers): Likewise. Call
643 ppc_collect_gregset and ppc_collect_fpregset instead of
644 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
645 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
646 (_initialize_ppcnbsd_nat): Add some whitespace.
647 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
648 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
650 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
654 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
658 * symtab.c (skip_prologue_using_sal): Handle single line functions
659 like "foo(){}", which may optimize down to a single return inst.
663 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
668 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
669 (execute_cfa_program): Add parameter eh_frame_p. Call
670 dwarf2_frame_eh_frame_regnum when true.
671 (dwarf2_frame_cache): Pass eh_frame_p from fde to
673 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
674 processing .eh_frame. Copy eh_frame_p to the new fde.
675 (struct dwarf2_frame_ops): Add eh_frame_regnum.
676 (dwarf2_frame_set_eh_frame_regnum): Define.
677 (dwarf2_frame_eh_frame_regnum): Define.
679 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
680 (dwarf2_frame_eh_frame_regnum): Declare.
684 * linux-nat.c (linux_nat_do_thread_registers): Check for
685 NULL collect_regset method.
689 * s390-tdep.c (s390_collect_regset): New function.
690 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
694 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
699 * linux-nat.c (exit_lwp): Fix NULL pointer access.
700 (linux_nat_handle_extended): New parameter STOPPING.
701 (wait_lwp): Call it with STOPPING equals 1.
702 (linux_nat_wait): Call it with STOPPING equals 0.
706 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
707 of 'uninteresting' signals when single-stepping.
711 * MAINTAINERS: Move NEWS to the documentation entry.
715 * linux-nat.c (linux_nat_do_thread_registers): Use the
716 regset_from_core_section infrastructure if the target
718 * Makefile.in: Update dependencies.
719 * linux-thread-db.c (thread_db_store_registers): Use
720 regcache_raw_collect.
724 * ppc-linux-nat.c: Clean up types for ptrace.
725 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
726 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
730 * remote.c (remote_disconnect): Add TARGET argument.
731 * target.c (debug_to_disconnect): Delete.
732 (update_current_target): Do not inherit to_disconnect.
733 (target_disconnect): Search for a target to implement to_disconnect.
734 (setup_target_debug): Do not reference to_disconnect.
735 * target.h (struct target_ops): Add target argument to
740 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
741 structs or unions independent of ABI register size.
745 * mips-tdep.c (mips_o64_return_value): Replace stub that always
746 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
750 * mi/mi-main.c (captured_mi_execute_command): Check the return
751 value of -interpreter-exec.
755 * varobj.c (c_value_of_variable): Ignore top-level references.
756 (Committed by Jim Blandy.)
760 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
761 insert a single-step breakpoint an error instead of a warning.
765 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
766 arguments from void * to gdb_byte *.
770 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
771 command to "delete fork" (no hyphen), compatible with other
773 (info_forks_command): Accept a fork ID argument, for info
774 on a single fork. Report if no matching forks.
778 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
779 no breakpoints are inserted.
782 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
783 type of last argument to `gdb_byte *'
787 Add support for 'target remote |' on MinGW.
788 * ser-mingw.c (struct pipe_state): New structure.
789 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
790 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
791 (pipe_windows_write, pipe_wait_handle): New functions.
792 (_initialize_ser_windows): Register a "pipe" interface based on
797 * ser-mingw.c: Include <conio.h>.
798 (struct ser_console_state, struct net_windows_state): Add exit_select,
799 have_stopped, thread.
800 (pipe_select_thread, console_select_thread)
801 (net_windows_select_thread): Don't create a local state copy or
802 close stop_select. Exit on exit_select instead of stop_select. Set
804 (console_select_thread): Don't report control keypresses as pending
806 (pipe_select_thread): Allow stop_select to interrupt sleeping.
807 (set_console_wait_handle): Create exit_select and have_stopped.
808 Save the thread handle. Check _kbhit before starting a thread.
809 (ser_console_done_wait_handle): New.
810 (ser_console_close): Close new handles. Wait for the thread to
812 (new_windows_select_thread): Assert that an event occurred.
813 (net_windows_wait_handle): Check for pending input before starting
815 (net_windows_done_wait_handle): New.
816 (net_windows_open): Create exit_select and have_stopped.
817 Save the thread handle.
818 (net_windows_close): Close new handles. Wait for the thread to
820 (_intiialize_ser_windows): Register done_wait_handle methods.
822 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
823 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
824 [USE_WIN32API] (serial_done_wait_handle): New prototype.
825 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
829 * rs6000-tdep.c: Include "reggroups.h" only once.
830 * Makefile.in (rs6000-tdep.o): Update dependencies.
834 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
835 compilation directory as last argument.
836 Always pass comp_dir as second argument to start_subfile and prepend
837 dirname to the filename when necessary.
838 Remove now superfluous search for pre-existing subfile.
839 (dwarf_decode_lines): Pass the compilation directory to
840 dwarf2_start_subfile.
845 Add support for the Renesas M32C and M16C.
847 * configure.tgt (m32c-*-*): New entry.
848 * config/m32c/m32c.mt: New file.
849 * m32c-tdep.c: New file.
850 * Makefile.in (elf_m32c_h): New variable.
851 (m32c-tdep.o): New rule.
852 * NEWS: Mention new target.
853 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
857 * remote.c: Fix spelling error in comment.
861 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
862 Correct type of VALUEP. Reported by Jean-Rene Peulve
867 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
868 netdb.h, netinet/in.h.
869 (m32r_upload_command); Add calls WSAStartup().
870 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
875 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
877 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
878 (delete_breakpoint): Update calls to changed methods.
879 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
880 (single_step_breakpoints, insert_single_step_breakpoint)
881 (remove_single_step_breakpoints): New.
882 * breakpoint.h (struct bp_target_info): New.
883 (struct bp_location): Replace shadow_contents with
884 target_info and overlay_target_info.
885 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
886 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
888 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
889 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
891 * mem-break.c (default_memory_insert_breakpoint): Update. Set
892 placed_address, placed_size, and shadow_len.
893 (default_memory_remove_breakpoint): Update. Don't use
895 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
896 * target.c (update_current_target): Update prototypes for changed
898 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
899 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
901 * target.h: Forward declare struct bp_target_info.
902 (struct target_ops): Use a bp_target_info argument for
903 to_insert_breakpoint, to_remove_breakpoint,
904 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
905 (target_insert_breakpoint, target_remove_breakpoint)
906 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
907 (memory_insert_breakpoint, memory_remove_breakpoint)
908 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
910 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
911 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
912 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
914 * gdbarch.c, gdbarch.h: Regenerated.
916 * alpha-tdep.c (alpha_software_single_step): Use
917 insert_single_step_breakpoint and remove_single_step_breakpoints.
918 Remove unused statics.
919 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
920 * cris-tdep.c (cris_software_single_step): Likewise.
921 * mips-tdep.c (mips_software_single_step): Likewise.
922 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
923 * sparc-tdep.c (sparc_software_single_step): Likewise.
924 * wince.c (struct thread_info_struct): Remove step_prev.
925 (undoSStep): Use remove_single_step_breakpoints.
926 (wince_software_single_step): Use insert_single_step_breakpoint.
928 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
929 * exec.c (ignore): Likewise.
930 * sol-thread.c (ignore): Likewise.
932 * procfs.c (dbx_link_shadow_contents): Delete.
934 (procfs_mourn_inferior): Remove it if necessary.
935 (remove_dbx_link_breakpoint): Use it.
936 (insert_dbx_link_bpt_in_file): Set it.
937 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
938 * rs6000-nat.c (exec_one_dummy_insn): Use
939 deprecated_insert_raw_breakpoint and
940 deprecated_remove_raw_breakpoint.
941 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
942 (base_breakpoint): New.
943 (disable_break): Use it.
944 (enable_break): Set it.
946 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
948 * ia64-tdep.c (ia64_memory_insert_breakpoint)
949 (ia64_memory_remove_breakpoint): Likewise.
950 * m32r-tdep.c (m32r_memory_insert_breakpoint)
951 (m32r_memory_remove_breakpoint): Likewise.
952 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
953 Likewise. Remove unnecessary prototypes. Use placed_address
954 and placed_size. Removed useless read from memory.
955 * nto-procfs.c (procfs_insert_breakpoint)
956 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
957 (procfs_remove_hw_breakpoint): Update.
958 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
959 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
960 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
961 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
962 * remote-e7000.c (e7000_insert_breakpoint)
963 (e7000_remove_breakpoint): Likewise.
964 * remote-m32r-sdi.c (m32r_insert_breakpoint)
965 (m32r_remove_breakpoint): Likewise.
966 * remote-mips.c (mips_insert_breakpoint)
967 (mips_remove_breakpoint): Likewise.
968 * remote-rdp.c (remote_rdp_insert_breakpoint)
969 (remote_rdp_remove_breakpoint): Likewise.
970 (rdp_step): Use deprecated_insert_raw_breakpoint and
971 deprecated_remove_raw_breakpoint.
972 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
974 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
976 (init_gdbsim_ops): Use memory_insert_breakpoint and
977 memory_remove_breakpoint.
978 * remote-st.c (st2000_insert_breakpoint)
979 (st2000_remove_breakpoint): Update. Remove unused
981 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
982 Update. Use placed_address and placed_size.
983 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
987 * remote.c (extended_remote_restart): Pass the correct length
992 * serial.c (serial_open): Check for special cases at the front of
993 the "device" name before scanning for the ':' that would indicate
994 an IP-based connection.
998 * win32-nat.c (open_symbol_file_object): New function.
999 (in_dynsym_resolve_code): Ditto.
1000 (init_win32_ops): Fill in fields which ought not to be NULL.
1004 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1005 with saved context if __COPY_CONTEXT_SIZE is not defined.
1006 (handle_output_debug_string): Ditto.
1010 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1014 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1016 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1017 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1018 that the latter can override.
1019 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1023 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1024 (s390_store): Call pv_area_store to track stack slots.
1025 (s390_load): Call pv_area_fetch to track stack slots.
1026 (s390_check_for_saved): New function.
1027 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
1031 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1032 * s390-tdep.c: Include "prologue-value.h".
1033 (struct prologue_value): Remove.
1034 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1035 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1036 pv_logical_and, pv_is_identical, pv_is_register): Remove.
1037 (compute_x_addr): Remove, replace by ...
1038 (s390_addr): ... this new function.
1039 (struct s390_prologue_data): Use pv_t instead of prologue_value.
1040 (s390_store, s390_load): Likewise.
1041 (s390_prologue_frame_unwind_cache): Likewise.
1042 (s390_analyze_prologue): Likewise. Also, simplify and combine
1043 several conditional statements.
1047 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
1052 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1053 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
1054 (sparc32_linux_core_gregset,
1055 sparc32_linux_supply_core_gregset,
1056 sparc32_linux_collect_core_gregset,
1057 sparc32_linux_supply_core_fpregset,
1058 sparc32_linux_collect_core_fpregset): New.
1059 (sparc32_linux_init_abi): Register them with generic sparc
1060 core regset infrastructure.
1061 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1062 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
1063 (sparc64_linux_core_gregset,
1064 sparc64_linux_supply_core_gregset,
1065 sparc64_linux_collect_core_gregset,
1066 sparc64_linux_supply_core_fpregset,
1067 sparc64_linux_collect_core_fpregset): New.
1068 (sparc64_linux_init_abi): Register them with generic sparc
1069 core regset infrastructure.
1070 * Makefile.in: Update dependencies.
1074 * linux-nat.c (linux_nat_thread_alive): Handle targets that
1075 do not implement PTRACE_PEEKUSER.
1079 * remote.c (remote_wait): Convert warning to error before
1080 parsing corrupt packets.
1084 * cli/cli-script.c (struct user_args): Add command field.
1085 (arg_cleanup): Free command string.
1086 (setup_user_args): Copy the command line before relying on it.
1090 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1091 of the "delete" command.
1095 * MAINTAINERS (Patch champions): Add myself.
1099 * Makefile.in: Update dependencies.
1103 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1104 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1105 * Makefile.in (sparc-tdep.o): Update dependencies.
1106 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1107 window out of the correct stack frame.
1108 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
1109 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1111 (dwarf2_frame_default_init_reg): Likewise.
1112 (dwarf2_frame_set_init_reg): Update init_reg arg.
1113 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1115 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1116 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1117 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1118 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1119 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1120 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1121 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1122 (sparc32_frame_cache): Call it.
1123 (sparc32_dwarf2_struct_return_p): New function.
1124 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1125 returns a structure and thus we have to indicate the return PC and
1126 NPC are 4 bytes later than usual.
1127 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1128 dwarf2 frame sniffer.
1129 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
1133 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1134 * config/linux64.h (NATDEPFILES): Likewise
1135 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1136 fill_fpregset): New.
1137 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1138 fill_fpregset): New.
1139 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1144 * Makefile.in (elf_common_h): Define.
1148 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1149 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1153 * value.h (struct internalvar): Add field 'endian'.
1154 * value.c (lookup_internalvar): Initialise endian.
1155 (value_of_internalvar): Flip the endian of built-in types if required.
1156 (set_internalvar): Set the endian.
1157 (show_convenience): Access the value through value_of_internalvar().
1161 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1162 instead of hardcoded integer literals.
1166 * cli/cli-script.c (insert_args): Handle NULL user_args.
1170 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1171 the function at zero if we have no symbols.
1175 * i386-stub.c (getpacket): Fix array overflow.
1176 * m32r-stub.c (getpacket): Likewise.
1177 * m68k-stub.c (getpacket): Likewise.
1178 * sh-stub.c (getpacket): Likewise.
1179 * sparc-stub.c (getpacket): Likewise.
1183 * frame.h (set_current_sal_from_frame): New prototype.
1184 * stack.c (set_current_sal_from_frame): Make global.
1185 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1189 * linux-thread-db.c: Include "linux-nat.h".
1190 (check_for_thread_db): New function, split out from
1191 thread_db_new_objfile. Remove dead check for active
1192 thread_db on inapplicable targets.
1193 (thread_db_new_objfile): Call check_for_thread_db.
1194 * Makefile.in (linux-thread-db.o): Update.
1195 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1196 (linux_child_post_startup_inferior): Likewise.
1197 (lin_lwp_attach_lwp): Call target_post_attach instead of
1199 * linux-nat.h (check_for_thread_db): New prototype.
1203 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1204 (init_remote_state): Initialize the new fields.
1205 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1206 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1207 (remote_get_threadinfo, parse_threadlist_response)
1208 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1209 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1210 (remote_check_symbols, remote_open_1, remote_detach)
1211 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1212 (remote_wait, remote_async_wait, fetch_register_using_p)
1213 (remote_fetch_registers, store_register_using_P)
1214 (remote_store_registers, check_binary_download, remote_write_bytes)
1215 (remote_read_bytes, remote_insert_breakpoint)
1216 (remote_remove_breakpoint, remote_insert_watchpoint)
1217 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1218 (remote_remove_hw_breakpoint, compare_sections_command)
1219 (remote_xfer_partial, remote_rcmd, packet_command)
1220 (remote_get_thread_local_address): Use the global incoming buffer
1221 instead of alloca or xmalloc. Limit outgoing packets to
1222 rs->remote_packet_size and incoming packets to rs->buf_size.
1223 Update calls to getpkt and remote_send.
1224 (remote_send): Take arguments by reference.
1225 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1226 (skip_frame): New function.
1227 (read_frame): Take arguments by reference. Expand the packet
1228 buffer instead of issuing an error.
1229 (getpkt, getpkt_sane): Take arguments by reference.
1230 * remote.h (getpkt): Update prototype and doc.
1231 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1233 (target_buf): Change from array to pointer.
1234 (target_buf_size): New variable.
1235 (remote_set_transparent_ranges): Update call to getpkt.
1236 (trace_start_command, trace_stop_command, trace_status_command):
1237 Update calls to remote_get_noisy_reply.
1238 (finish_tfind_command): Take arguments by reference.
1239 (trace_find_command, trace_find_pc_command)
1240 (trace_find_tracepoint_command, trace_find_line_command):
1241 (trace_find_range_command, trace_find_outside_command): Update
1242 calls to finish_tfind_command.
1243 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1247 * hppa-linux-tdep.c: Include regset.h.
1248 (GR_REGNUM, TR_REGNUM, greg_map): New.
1249 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1250 (hppa_linux_regset, hppa_linux_fpregset): New.
1251 (hppa_linux_regset_from_core_section): New.
1252 (hppa_linux_init_abi): Set regset_from_core_section.
1253 (_initialize_hppa_linux_tdep): Register osabi handler for
1255 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1256 * config/pa/linux.mh: Stop using core-regset.o
1260 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1261 (hppa_frame_cache): Use new function to find unwind entry.
1262 (hppa_frame_this_id): Likewise.
1263 (hppa_frame_unwind_sniffer): Likewise.
1267 * NEWS: Mention the removal of NLM.
1271 * Makefile.in (nlm): Remove target.
1272 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1273 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1274 * configure: Regenerate.
1275 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1276 * nlm: Remove directory.
1280 * Makefile.in (utils.o): Update.
1281 * top.c (in_user_command): New.
1282 (command_line_input): Use input_from_terminal_p.
1283 (input_from_terminal_p): Don't check caution. Handle
1284 stdin == NULL for Insight.
1285 * top.h (in_user_command, caution): New declarations.
1286 * utils.c: Include "top.h".
1287 (query, defaulted_query): Check caution here. Move the call
1288 to input_from_terminal_p higher.
1289 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1290 the depth. Update in_user_command if necessary.
1291 (execute_user_command): Don't clobber old_chain. Set
1292 in_user_command. Let do_restore_user_call_depth handle
1294 (read_command_lines): Check whether to prompt before calling
1296 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1297 input_from_terminal_p check.
1301 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1302 (s390_remove_watchpoint): Likewise.
1306 * prologue-value.c, prologue-value.h: New files.
1307 * Makefile.in (prologue_value_h): New variable.
1308 (HFILES_NO_SRCDIR): List prologue-value.h.
1309 (SFILES): List prologue-value.c.
1310 (COMMON_OBS): List prologue-value.o.
1311 (prologue-value.o): New rule.
1315 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1316 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
1317 xstormy16_frame_prev_register): Change void* to gdb_byte*.
1318 (xstormy16_push_dummy_call): Add block-local char* val,
1319 to avoid type conflict with outer scope variable.
1323 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1327 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1328 offsets for languages like Fortran.
1332 * config/pa/hppa64.mt: Use HPUX version of the tm file.
1336 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1337 Try to deal with continuation line.
1338 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1340 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
1341 Future proof against new fields being added to MI output.
1342 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1343 (gdbmi-frame-handler): Update to new variable name
1344 gdb-get-buffer-create.
1345 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1346 frames which except the innermost (where execution has stopped).
1350 * solib-som.c (link_map_start): Don't error out if there is
1355 * linux-nat.c (linux_ops_saved): New.
1356 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1357 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1358 (linux_nat_fetch_registers, linux_nat_store_registers)
1359 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1360 (init_lwp_list): Don't set threaded.
1361 (add_lwp): Don't modify threaded.
1362 (delete_lwp): Don't mention non-threaded mode.
1363 (linux_nat_switch_fork): New.
1364 (linux_nat_attach): Update inferior_ptid.
1365 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
1367 (linux_nat_kill): Handle pending forks and saved forks.
1368 (linux_nat_mourn_inferior): Handle saved forks.
1369 (linux_nat_pid_to_str): Don't use the LWP form when there is
1371 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1372 (linux_nat_add_target): New.
1373 (_initialize_linux_nat): Don't initialize the linux native target
1375 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1377 * linux-fork.c: Include "linux-nat.h".
1378 (add_fork): Update initial PID.
1379 (fork_load_infrun_state): Call linux_nat_switch_fork.
1380 * Makefile.in (linux-fork.o): Update.
1382 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1383 linux_nat_add_target instead of add_target.
1384 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1385 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1386 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1387 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1388 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1389 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1390 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1391 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1392 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1393 * s390-nat.c (_initialize_s390_nat): Likewise.
1394 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1395 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1399 * linux-fork.c: Include "gdb_assert.h".
1400 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1401 Update the register cache and selected frame also.
1402 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
1403 to single fork mode if necessary.
1404 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1405 * Makefile.in (linux_fork_h): New.
1406 (linux-fork.o, linux-nat.o): Update.
1410 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1414 * symtab.h (enum address_class): Doc fix.
1418 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
1419 * target.c (push_target): Fix typo in comment.
1420 * remote.c (remote_watch_data_address): Fix typo in comment.
1421 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1425 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1427 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1428 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1429 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1430 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1431 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1432 (frv_elf_fpregset_t): Define types.
1433 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1434 (frv_linux_regset_from_core_section: New functions.
1435 (frv_linux_gregset, frv_linux_fpregset): New static globals.
1436 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1437 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1438 * solib-frv.c (frv_current_sos): Relocate main executable after
1440 (frv_clear_solib): Clean up space associated with
1441 `main_executable_lm_info'.
1442 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1446 * Makefile.in (mips_linux_tdep_h): New.
1447 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1448 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1450 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1451 (mips64_linux_regsets_fetch_registers)
1452 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1453 (mips64_linux_store_registers): New.
1454 (_initialize_mips_linux_nat): Override to_fetch_registers and
1456 * mips-linux-tdep.h: New file.
1457 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1458 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1459 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1460 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1461 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1462 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1463 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1464 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1465 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1466 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1467 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1468 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1469 (supply_32bit_reg): Use gdb_byte.
1470 (supply_64bit_reg): New.
1471 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1472 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1473 (fill_gregset, supply_fpregset): Update for renamed types.
1474 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1475 (mips64_fill_gregset): Make global. Handle 32-bit register
1477 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1478 FP regsets properly.
1482 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1483 (mips_fill_gregset): Renamed from fill_gregset.
1484 (mips_supply_fpregset): Renamed from supply_fpregset.
1485 (mips_fill_fpregset): Renamed from fill_fpregset.
1486 (fetch_core_registers): Update calls.
1487 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1492 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1496 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1497 Correct arithmetic for 64-bit CORE_ADDR.
1501 * mips-linux-tdep.c: Include "floatformat.h".
1502 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
1503 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1505 (print_gp_register_row): Don't print spaces before ignored
1506 or floating point registers.
1507 * Makefile.in (mips-linux-tdep.o): Update.
1511 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1513 (non_heuristic_proc_desc): Likewise.
1517 * mips-linux-nat.c: Include "gdb_proc_service.h".
1518 (PTRACE_GET_THREAD_AREA): Define.
1519 (ps_get_thread_area): New.
1520 * Makefile.in (mips-linux-nat.o): Update.
1524 * MAINTAINERS: Use my work address.
1528 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1529 instead of getting tricky for the multi-fork case.
1530 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1531 for each fork, and then use init_fork_list to delete them.
1535 * solib-svr4.c (svr4_current_sos): Move up initialization of
1536 l_addr, such that it clearly covers all cases.
1540 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1541 libunwind_frame_prev_register to use a gdb_byte buffer and
1542 extract_unsigned_integer.
1543 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1545 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1546 of last argument to `gdb_byte *'
1547 * libunwind-frame.h: Adjust declaration.
1551 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1552 (arm_frame_align): New function.
1553 (arm_gdbarch_init): Use it.
1557 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1558 Committed by Andrew Cagney.
1562 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1563 address to MDR register.
1567 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1572 * somread.c (som_symfile_read): Update comment and remove unneeded
1573 use of a deprecated variable.
1577 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1578 runtime specification.
1579 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1580 (unwind_command): Likewise.
1584 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1585 Pseudo_SP_Set in unwind record.
1589 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1590 TDEP->is_elf to determine if we are working with a SOM binary.
1591 (null_symtab_and_line): Remove unused variable.
1592 * config/pa/hppa64.mt: Use tm-hppa.h.
1593 * config/pa/tm-hppa64.h: Remove file.
1597 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1601 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1602 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1604 (am33_linux_sigframe_cache_init): New function.
1605 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1607 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1608 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1609 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1610 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1611 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1612 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1613 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1614 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1615 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1617 (am33_linux_init_osabi): Register signal frame unwinders.
1621 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1622 out of pattern match by saving relevant state. Fix stack size
1627 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1629 * solib-svr4.c (struct lm_info): Add l_addr field.
1630 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1631 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1632 (LM_DYNAMIC_FROM_LINK_MAP): New.
1633 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1634 (svr4_current_sos): Initialize l_addr. Adjust.
1635 (svr4_relocate_section_addresses): Adjust.
1636 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1637 (svr4_lp64_fetch_link_map_offsets): Likewise.
1638 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1639 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1640 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1641 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1645 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1646 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1650 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1651 (ppc_linux_remove_watchpoint): Likewise, and args.
1655 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1660 * gdb/defs.h: unconditionally include <fcntl.h>, and
1661 ensure that O_BINARY is defined.
1662 * gdb/solib.c(solib_open): ensure solib files are opened in
1664 * gdb/corelow.c: Remove O_BINARY macro definition.
1665 * gdb/exec.c: Remove O_BINARY macro definition
1666 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1667 * gdb/source.c: Remove O_BINARY macro definition
1668 * gdb/symfile.c: Remove O_BINARY macro definition
1672 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1674 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1679 * f-exp.y: Symbol '%' is not used as the modulus operator in
1680 Fortran. Delete this from Fortran expression.
1681 It is now used by Fortran 90 and later to access the member
1682 of derived type. Add this into Fortran expression.
1683 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
1684 Print each elements in the derived type.
1685 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
1686 level into the function definition to do indented printing. And
1687 call fprintfi_filtered instead to do indented printing.
1688 (f_type_print_base): Replace fprintf_filtered with the indented
1689 version (fprintfi_filtered).
1690 (f_type_print_base): Call indented print_equivalent_f77_float_type.
1691 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
1692 the definition of the derived type.
1696 * gdb_curses.h: Provide a fallback prototype for tgetnum.
1700 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
1702 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
1703 (DOUBLEST_SCAN_FORMAT): New.
1704 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
1705 (processReal): Use DOUBLEST_SCAN_FORMAT.
1706 * c-exp.y (parse_number): Likewise.
1707 * jv-exp.y (parse_number): Likewise.
1708 * objc-exp.y (parse_number): Likewise.
1709 * p-exp.y (parse_number): Likewise.
1713 * event-top.c (async_do_nothing, async_disconnect)
1714 (async_stop_sig, async_float_handler): Remove duplicated
1716 (handle_sighup): Guard prototype with SIGHUP.
1717 (async_do_nothing): Guard function and prototype with
1719 (async_disconnect): Guard prototype with SIGHUP.
1720 (async_stop_sig): Guard prototype with STOP_SIGNAL.
1724 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
1728 * win32-termcap.c (tputs): Return 0.
1732 * configure.ac: Introduce ---enable-werror, which adds -Werror to
1733 the compiler command line. Enabled by default. Disable with
1735 * configure regenerate.
1739 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
1744 * defs.h (directory_switch): Add prototype.
1745 * main.c (captured_main): Use directory_switch() instead of
1746 directory_command() to add directories from the -d switch.
1747 * source.c (directory_switch): New function.
1748 (add_path): Use buildargv() to parse spaces in filenames properly.
1749 Strip multiple trailing '/' rather than just one.
1753 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
1754 hand decoding the command line, to allow use of quotes and spaces.
1755 (_initialize_symfile): Reorganize the help message for add-symbol-file
1756 such that 'help files' shows a better message.
1760 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
1761 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
1762 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
1763 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
1767 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
1772 * remote.c: Add an enumeration for configurable remote
1774 (remote_protocol_packets, set_remote_protocol_packet_cmd)
1775 (show_remote_protocol_packet_cmd): New.
1776 (remote_protocol_vcont)
1777 (set_remote_protocol_vcont_packet_cmd)
1778 (show_remote_protocol_vcont_packet_cmd)
1779 (remote_protocol_qSymbol)
1780 (set_remote_protocol_qSymbol_packet_cmd)
1781 (show_remote_protocol_qSymbol_packet_cmd)
1782 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1783 (show_remote_protocol_P_packet_cmd)
1785 (set_remote_protocol_Z_software_bp_packet_cmd)
1786 (show_remote_protocol_Z_software_bp_packet_cmd)
1787 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1788 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1789 (set_remote_protocol_Z_write_wp_packet_cmd)
1790 (show_remote_protocol_Z_write_wp_packet_cmd)
1791 (set_remote_protocol_Z_read_wp_packet_cmd)
1792 (show_remote_protocol_Z_read_wp_packet_cmd)
1793 (set_remote_protocol_Z_access_wp_packet_cmd)
1794 (show_remote_protocol_Z_access_wp_packet_cmd)
1795 (remote_protocol_binary_download)
1796 (set_remote_protocol_binary_download_cmd)
1797 (show_remote_protocol_binary_download_cmd)
1798 (remote_protocol_qPart_auxv)
1799 (set_remote_protocol_qPart_auxv_packet_cmd)
1800 (show_remote_protocol_qPart_auxv_packet_cmd)
1801 (remote_protocol_qGetTLSAddr)
1802 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1803 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1805 (set_remote_protocol_p_packet_cmd)
1806 (show_remote_protocol_p_packet_cmd): Delete.
1808 (init_all_packet_configs): Simplify.
1809 (set_remote_protocol_Z_packet_cmd)
1810 (show_remote_protocol_Z_packet_cmd)
1811 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1812 (remote_fetch_registers, remote_prepare_to_store)
1813 (remote_store_registers, check_binary_download)
1814 (remote_write_bytes, remote_insert_breakpoint)
1815 (remote_remove_breakpoint, remote_insert_watchpoint)
1816 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1817 (remote_remove_hw_breakpoint, remote_xfer_partial)
1818 (remote_get_thread_local_address): Update for packet array.
1819 (_initialize_remote): Likewise; also update for common
1824 * symfile.c (place_section): Correct retry logic.
1828 * win32_nat.c (cygwin_load_start): New variable.
1829 (cygwin_load_end): Ditto.
1830 (have_saved_context): Ditto.
1831 (saved_context): Ditto.
1832 (max_dll_name_len): Delete obsolete variable.
1833 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1834 if we are in a cygwin signal rather than a windows signal.
1835 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1836 if dll being loaded is the cygwin DLL.
1837 (register_loaded_dll): Remove calculation of max_dll_name_len.
1838 (win32_clear_solib): Ditto.
1839 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1841 (handle_output_debug_string): Detect and store signal information sent
1843 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1844 -1 on first pass exception.
1845 (win32_continue): Remove spurious clearing of continue_status.
1846 (get_win32_debug_event): Deal differently first chance exception.
1850 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1855 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1856 a non lval value zero, of the appropriate type, when avoiding
1858 * typeprint.c (ptype_eval): Remove function and declaration.
1859 (ptype_command): Simplify to just a call to whatis_exp.
1863 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1864 Load insn opcodes as unsigned values.
1868 * doublest.h (DOUBLEST): Use long double only if we can scan
1869 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1870 (DOUBLEST_FORMAT): New.
1871 * c-exp.y (parse_number): Use it.
1872 * jv-exp.y (parse_number): Likewise.
1873 * objc-exp.y (parse_number): Likewise.
1874 * p-exp.y (parse_number): Likewise.
1875 * varobj.c (free_variable): Silence type-punning warnings.
1876 * tui/tui-data.h (struct tui_list): Change type of list member.
1877 * tui/tui-data.c: Remove no-longer-needed type casts.
1878 (source_windows): Silence type-punning warnings.
1879 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1883 Fix PR breakpoints/2080.
1884 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1885 (i386_analyze_stack_align): New function.
1886 (i386_analyze_prologue): Use i386_analyze_stack_align.
1887 (i386_frame_cache): Deal with stack realignment.
1891 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1892 (gdb-break-list-regexp): Match "what" field if present.
1893 (gdb-stack-list-frames-regexp): Match "from" field if present.
1894 (gdb-stack-list-frames-handler): Present output like "info
1895 breakpoints" so regexps can be shared with gdb-ui
1899 * NEWS: Mention native Windows support.
1900 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1901 (ALLDEPFILES): Add ser-mingw.c.
1902 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1903 (ser-tcp.o, ser-unix.o): Update.
1904 (ser-mingw.o): New rule.
1905 * configure: Regenerated.
1906 * configure.ac: Add ser-mingw.o for mingw32.
1907 * ser-mingw.c: New file.
1908 * event-loop.c: Include "gdb_select.h".
1909 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1910 * ser-base.c: Include "gdb_select.h".
1911 (ser_base_wait_for): Use gdb_select.
1912 * serial.c (serial_for_fd): New function.
1913 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1914 the allocated struct serial.
1915 (serial_wait_handle): New function.
1916 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1917 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1918 * gdb_select.h: New file.
1919 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1920 (net_close, net_read_prim, net_write_prim): Make global.
1921 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1922 Document why we can not use gdb_select.
1923 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1924 * ser-tcp.h: New file.
1925 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1926 (handle_sigio): Use gdb_select.
1927 (initialize_stdin_serial): New function.
1928 * terminal.h (initialize_stdin_serial): New prototype.
1929 * top.c (gdb_init): Call initialize_stdin_serial.
1930 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1931 event-loop.c. Add exception condition support. Use serial_for_fd
1932 and serial_wait_handle. Fix timeout handling.
1933 * posix-hdep.c: Include "gdb_select.h".
1934 (gdb_select): New function.
1935 * remote-st.c (connect_command): Use gdb_select.
1936 * ser-unix.c: Include "gdb_select.h".
1937 (hardwire_send_break, wait_for): Use gdb_select.
1941 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1942 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1943 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1944 to posix-hdep.o by default.
1945 * configure: Regenerated.
1946 * configure.host: Document gdb_host_obs. Add an entry for
1947 i[34567]86-*-mingw32*.
1948 * mingw-hdep.c, posix-hdep.c: New files.
1949 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1953 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1954 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1955 * rs6000-tdep.h: New file.
1956 * rs6000-tdep.c: Include "rs6000-tdep.h".
1957 (rs6000_gdbarch_init): Remove enabling of software single step.
1958 Will be done in the AIX-specific initialization routine.
1959 * rs6000-aix-tdep.c: New file.
1960 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1961 * Makefile.in (rs6000_tdep_h): New variable.
1962 (rs6000-tdep.o): Update dependencies.
1963 (rs6000-aix-tdep.o): New rule.
1967 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1968 instead of add_setshow_zinteger_cmd to defined the aix-thread
1973 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1977 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1978 30 bits. Add load_all_dies flag.
1979 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1980 Load DW_TAG_member by default. Remove internal_error call.
1981 (find_partial_die): Reload the compilation unit if we can not find
1982 a DIE in the cache. Call internal_error here if we still can not
1987 * breakpoint.c (print_one_breakpoint): Add break to case
1988 bp_catch_vfork in switch statement.
1992 * config/i386/nm-i386sol2.h: Update copyright year.
1993 * config/mips/nm-irix5.h: Ditto.
1994 * config/sparc/nm-sol2.h: Ditto.
1995 * s390-nat.c: Ditto.
1996 * ppc-linux-nat.c: Ditto.
2000 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2001 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2002 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2003 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2004 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2005 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2006 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2007 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2008 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2009 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2010 add to_region_ok_for_hw_watchpoint.
2011 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2012 (s390_region_ok_for_hw_watchpoint): New.
2013 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2014 and add to_region_ok_for_hw_watchpoint.
2015 * target.c (default_region_size_ok_for_hw_watchpoint,
2016 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2017 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2018 inheritance and default_region_size_ok_for_hw_watchpoint.
2019 (default_region_ok_for_hw_watchpoint): If len is less than or equal
2020 the length of void pointer, return ok.
2021 (default_region_size_ok_for_hw_watchpoint): Delete.
2022 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2023 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2024 * target.h (struct target_ops): Delete
2025 to_region_size_ok_for_hw_watchpoint.
2026 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2031 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2032 PTRACE_GETSIGINFO): Define.
2033 (last_stopped_data_address): New.
2034 (ppc_linux_check_watch_resources): New function.
2035 (ppc_linux_region_ok_for_hw_watchpoint): New function.
2036 (ppc_linux_insert_watchpoint): New function.
2037 (ppc_linux_remove_watchpoint): New function.
2038 (ppc_linux_stopped_data_address): New function.
2039 (ppc_linux_stopped_by_watchpoint): New function.
2040 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2041 related target vectors.
2042 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2043 to have nonsteppable watchpoint.
2044 * target.c (default_region_ok_for_hw_watchpoint,
2045 debug_to_region_ok_for_hw_watchpoint): New prototypes.
2046 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2047 and set default to_region_ok_for_hw_watchpoint.
2048 (default_region_ok_for_hw_watchpoint): New function.
2049 (debug_to_region_ok_for_hw_watchpoint): New function.
2050 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
2052 * target.h (struct target_ops): Add a new target vector
2053 to_region_ok_for_hw_watchpoint.
2054 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2055 defined anyplace else.
2058 * symfile.c (add_symbol_file_command): Abort if the user forgot
2059 to provide the address when the file has been loaded.
2063 * MAINTAINERS: Update file based on maintainers survey. Add
2064 a note to Past Maintainers. Move unresponsive or inactive
2065 maintainers to Authorized Committers or Past Maintainers as
2066 appropriate. Correct Jim Kingdon's email address. Remove
2067 vacant areas of responsibility.
2071 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2076 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2077 * exceptions.c (exception_none, exceptions_state_mc_init)
2078 (throw_vfatal): Use GDB_NO_ERROR.
2082 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2083 r_map_size members. Add r_version_offset, r_version_size and
2084 r_ldsomap_offset members.
2085 * solib-svr4.c (solib_svr4_r_map): Renamed from
2086 fetch_link_map_member. Simplify using read_memory_typed_address.
2087 (solib_svr4_r_ldsomap): New function.
2088 (open_symbol_file_object): Use solib_svr_r_map.
2089 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2090 linker by using solib_svr4_r_ldsomap.
2091 (svr4_ilp32_fetch_link_map_offsets)
2092 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2094 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2095 changes to `struct link_map_offsets'.
2096 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2097 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2098 `struct link_map_offsets'.
2102 * linux-nat.c (struct saved_ptids, threads_to_delete)
2103 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2105 (linux_nat_resume): Call prune_lwps.
2106 (wait_lwp, linux_nat_wait): Call exit_lwp.
2110 * printcmd.c (printf_command): Make format string checking
2111 stricter. Add separate cases for long_arg, ptr_arg, and
2113 * utils.c (xstrvprintf): Improve the error message issued
2114 for a bad format string.
2115 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2117 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2118 $(NO_WERROR_CFLAGS).
2119 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2124 * Makefile.in (remote.o): Update.
2125 * remote.c (show_packet_config_cmd): Shorten messages.
2126 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2127 (show_remote_cmd): Iterate.
2128 (_initialize_remote): Remove remote_set_cmdlist,
2129 remote_show_cmdlist.
2133 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2134 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2136 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2137 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2138 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2140 * gdbtypes.c: Include "hashtab.h".
2141 (build_gdbtypes): Remove extra prototype.
2142 (struct type_pair, type_pair_hash, type_pair_eq)
2143 (create_copied_types_hash, copy_type_recursive): New.
2144 * gdbtypes.h: Include "hashtab.h".
2146 (create_copied_types_hash, copy_type_recursive): New prototypes.
2147 * objfiles.c (free_objfile): Call preserve_values.
2148 * symfile.c (reread_symbols): Likewise.
2149 (clear_symtab_users): Remove calls to clear_value_history and
2151 * value.c (clear_value_history, clear_internalvars): Removed.
2152 (preserve_one_value, preserve_values): New functions.
2153 * value.h (clear_value_history, clear_internalvars): Removed.
2154 (preserve_values): New prototype.
2156 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2161 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2166 * MAINTAINERS: Use a consistent email address for brobecker.
2170 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2171 in the previous change.
2176 * fork-child.c (fork_inferior): Don't call
2177 solib_create_inferior_hook.
2178 * infcmd.c (post_create_inferior): Call solib_add,
2179 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2180 (attach_command): Don't call solib_add or
2181 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2183 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2184 or observer_notify_inferior_created. Call post_create_inferior
2186 * corelow.c: Don't include "observer.h".
2187 (solib_add_stub): Deleted.
2188 (core_open): Don't call observer_notify_inferior_created or
2189 solib_add_stub. Call post_create_inferior instead.
2190 * inf-ptrace.c: Don't include "observer.h".
2191 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2192 * inf-ttrace.c: Don't include "observer.h".
2193 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2194 * inferior.h (solib_create_inferior_hook): Remove redundant
2196 * inftarg.c: Don't include "observer.h".
2197 (child_attach): Don't call observer_notify_inferior_created.
2198 * Makefile.in: Update dependencies.
2202 * infcmd.c: Include "observer.h".
2203 (post_create_inferior): New function.
2204 (run_command_1): Call it. Also call proceed.
2205 * inferior.h (post_create_inferior): New prototype.
2206 * Makefile.in (infcmd.o): Update.
2208 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2209 * go32-nat.c (go32_create_inferior): Likewise.
2210 * nto-procfs.c (procfs_create_inferior): Likewise.
2211 * procfs.c (procfs_create_inferior): Likewise.
2212 * remote-sim.c (gdbsim_create_inferior): Likewise.
2213 * remote.c (extended_remote_create_inferior)
2214 (extended_remote_async_create_inferior): Likewise.
2215 * win32-nat.c (win32_create_inferior): Likewise.
2216 * wince.c (child_create_inferior): Likewise.
2218 * monitor.c (monitor_create_inferior): Don't call proceed.
2219 Set the PC manually.
2220 * ocd.c (ocd_create_inferior): Likewise.
2221 * remote-e7000.c (e7000_create_inferior): Likewise.
2222 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2223 * remote-mips.c (mips_create_inferior): Likewise.
2224 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2225 * remote-sds.c (sds_create_inferior): Likewise.
2226 * remote-st.c (st2000_create_inferior): Likewise.
2228 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2229 proceed or observer_notify_inferior_created.
2230 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2231 * inftarg.c (child_create_inferior): Likewise.
2235 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2236 after mourning the inferior.
2240 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2244 * parse.c (source.h): Include.
2245 (parse_exp_in_context): Use static source context if no
2246 other context found.
2250 * sh-tdep.c: Include reggroups.h.
2251 (sh_register_reggroup_p): New function.
2252 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2253 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2257 * cli/cli-cmds.c: Include fcntl.h.
2258 (source_command): Use the GDB search path to find script files.
2264 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2265 instructions. Handle PIC bcl.
2269 * config/djgpp/README: Typo fix.
2270 * config/djgpp/fnchange.lst: Update.
2274 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2275 (sparc_address_from_register): New prototype.
2276 (sparcnbsd_step_trap): New prototype.
2277 * sparc-tdep.c (sparc_address_from_register): Make globally
2279 (sparc_analyze_control_transfer): Change prototype to accept
2280 `struct gdbarch *' as first argument. Allow for optional hnadling
2281 for trap instructions.
2282 (sparc_step_trap): New function.
2283 (sparc_software_single_step): Adjust call to
2284 sparc_analyze_control_trabsfer.
2285 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2286 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2287 (sparc32nbsd_init_abi): Set TDEP->step_trap.
2288 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2289 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2291 * sparc-tdep.c (sparc32_return_value): Convert to use
2292 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2293 RETURN_VALUE_STRUCT_CONVENTION.
2294 (sparc32_extract_struct_value_address): Remove.
2298 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2299 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2303 * solib.c (info_sharedlibrary_command): Avoid internal_error.
2307 * i386-tdep.c (i386_mxcsr_type): New variable.
2308 (i386_init_types): Initialize i386_mxcsr_type.
2309 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2310 * i386-tdep.c (i386_mxcsr_type): New extern.
2311 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2316 * Makefile.in (remote-rdi.o): Remove.
2317 (rdi-share/libangsd.a): Likewise.
2318 * README: Don't mention remote-rdi.c.
2319 * NEWS: Mention removal of rdi-share.
2320 * configure.ac: Don't configure rdi-share subdirectory.
2321 * remote-rdi.c: Remove.
2322 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2323 (TDEPLIBS): Remove rdi-share/libangsd.a.
2324 * rdi-share/Makefile.am: Remove.
2325 * rdi-share/Makefile.in: Likewise.
2326 * rdi-share/README.CYGNUS: Likewise.
2327 * rdi-share/aclocal.m4: Likewise.
2328 * rdi-share/adp.h: Likewise.
2329 * rdi-share/adperr.h: Likewise.
2330 * rdi-share/angel.h: Likewise.
2331 * rdi-share/angel_bytesex.c: Likewise.
2332 * rdi-share/angel_bytesex.h: Likewise.
2333 * rdi-share/angel_endian.h: Likewise.
2334 * rdi-share/ardi.c: Likewise.
2335 * rdi-share/ardi.h: Likewise.
2336 * rdi-share/armdbg.h: Likewise.
2337 * rdi-share/buffers.h: Likewise.
2338 * rdi-share/chandefs.h: Likewise.
2339 * rdi-share/channels.h: Likewise.
2340 * rdi-share/chanpriv.h: Likewise.
2341 * rdi-share/configure: Likewise.
2342 * rdi-share/configure.in: Likewise.
2343 * rdi-share/crc.c: Likewise.
2344 * rdi-share/crc.h: Likewise.
2345 * rdi-share/dbg_conf.h: Likewise.
2346 * rdi-share/dbg_cp.h: Likewise.
2347 * rdi-share/dbg_hif.h: Likewise.
2348 * rdi-share/dbg_rdi.h: Likewise.
2349 * rdi-share/devclnt.h: Likewise.
2350 * rdi-share/devices.h: Likewise.
2351 * rdi-share/devsw.c: Likewise.
2352 * rdi-share/devsw.h: Likewise.
2353 * rdi-share/drivers.c: Likewise.
2354 * rdi-share/drivers.h: Likewise.
2355 * rdi-share/etherdrv.c: Likewise.
2356 * rdi-share/ethernet.h: Likewise.
2357 * rdi-share/host.h: Likewise.
2358 * rdi-share/hostchan.c: Likewise.
2359 * rdi-share/hostchan.h: Likewise.
2360 * rdi-share/hsys.c: Likewise.
2361 * rdi-share/hsys.h: Likewise.
2362 * rdi-share/logging.c: Likewise.
2363 * rdi-share/logging.h: Likewise.
2364 * rdi-share/msgbuild.c: Likewise.
2365 * rdi-share/msgbuild.h: Likewise.
2366 * rdi-share/params.c: Likewise.
2367 * rdi-share/params.h: Likewise.
2368 * rdi-share/rx.c: Likewise.
2369 * rdi-share/rxtx.h: Likewise.
2370 * rdi-share/serdrv.c: Likewise.
2371 * rdi-share/serpardr.c: Likewise.
2372 * rdi-share/sys.h: Likewise.
2373 * rdi-share/tx.c: Likewise.
2374 * rdi-share/unixcomm.c: Likewise.
2375 * rdi-share/unixcomm.h: Likewise.
2379 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2380 Change type of last argument to `gdb_byte *'.
2384 * hppa-tdep.h (hppa_in_solib_call_trampoline)
2385 (hppa_skip_trampoline_code): New prototypes.
2386 * hppa-tdep.c (struct insn_pattern): New.
2387 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2388 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2389 here from hppa-linux-tdep.c
2390 (HPPA_MAX_INSN_PATTERN_LEN): New define.
2391 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2392 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2393 functions based on functions removed from hppa-linux-tdep.c.
2394 * hppa-linux-tdep.c (hppa_long_branch_stub)
2395 (hppa_long_branch_pic_stub, hppa_import_stub)
2396 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2397 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2398 (hppa_linux_in_solib_call_trampoline)
2399 (hppa_linux_skip_trampoline_code): Removed.
2400 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2401 hppa_in_solib_call_trampoline and skip_trampoline_code to
2402 hppa_skip_trampoline_code.
2403 * hppabsd-tdep.c (hppabsd_init_abi): Set
2404 TDEP->in_solib_call_trampoline and skip_trampoline_code.
2408 * MAINTAINERS: Change my E-mail address.
2410 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2411 * configure: Regenerated.
2415 * MAINTAINERS: Overhaul.
2419 Based on a previous patch form Michal Ludvig:
2420 * amd64-tdep.c (amd64_sse_type): Remove.
2421 (amd64_register_info): Use i386_eflags_type and i386_sse_type
2423 (AMD64_NUM_REGS): Use ARRAY_SIZE.
2424 (amd64_register_type): Remove code to build amd_sse_type.
2425 * i386-tdep.c (i386_eflag_type): New variable.
2426 (i386_mmx_type, i386_sse_type): Make global.
2427 (i386_init_types): New function.
2428 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2429 (i386_register_type): Return i386_eflag_type, i386_sse_type and
2430 i386_mmx_type when appropriate.
2431 (_initialize_i386_tdep): Call i386_init_types.
2432 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2435 Based on a previous patch form Michal Ludvig:
2436 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2438 (is_integral_type, rank_one_type, recursive_dump_type): Add
2439 support for TYPE_CODE_FLAGS.
2440 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2441 (append_flags_type_field, init_flags_type): New prototypes.
2442 * ada-valprint.c (ada_val_print_1): Add support for
2444 * c-valprint.c (c_val_print): Likewise.
2445 * f-valprint.c (f_val_print): Likewise.
2446 * p-valprint.c (pascal_val_print): Likewise.
2447 * valprint.c (val_print_type_code_flags): New function.
2448 * valprint.h (val_print_type_code_flags): New prototype.
2449 * value.c (unpack_long, value_from_longest): Add support for
2454 * MAINTAINERS: Very belatedly remove myself from from the list of
2455 people caught up in the paper trail.
2459 * symtab.h (struct general_symbol_info): Use gdb_byte for
2461 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2462 a floating-point constant's value.
2463 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2465 * findvar.c (read_var_value): Eliminate needless temporary.
2467 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2468 to match prior change to dwarf2_read_section's type.
2472 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2473 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2474 (rs6000_in_function_epilogue_p): New functions.
2475 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2479 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2480 (struct line_header, struct partial_die_info, struct dwarf_block):
2481 Use gdb_byte for members that refer to Dwarf section contents.
2482 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2483 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2484 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2485 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2486 read_8_bytes, read_address, read_attribute, read_attribute_value,
2487 read_comp_unit, read_comp_unit_head, read_die_and_children,
2488 read_die_and_siblings, read_full_die, read_indirect_string,
2489 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2490 read_signed_leb128, read_string, read_unsigned_leb128,
2491 skip_children, skip_leb128, skip_one_die): Same.
2495 * complaints.c (stop_whining): Make signed.
2496 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2500 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2505 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2506 (read_offset): Change BYTES_READ argument to unsigned int.
2507 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2508 (create_all_comp_units, dwarf2_get_pc_bounds)
2509 (dwarf_decode_line_header, var_decode_location)
2510 (dwarf_decode_macros): Change local BYTES_READ variables to
2512 (read_indirect_string): Remove obsolete cast.
2516 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2518 (remote_fileio_func_open, remote_fileio_func_rename)
2519 (remote_fileio_func_unlink, remote_fileio_func_stat)
2520 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2521 (remote_fileio_func_system): Cast the arguments to
2522 remote_read_bytes and remote_write_bytes.
2523 (remote_fileio_func_read, remote_fileio_func_write): Use a
2525 * remote.h (remote_read_bytes, remote_write_bytes): Update
2527 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2528 (threadref_to_int): Replace bogus char * cast.
2529 (remote_unpack_thread_info_response): Use int for tag.
2530 (remote_threads_extra_info, remote_check_symbols): Cast string
2531 arguments to hex2bin.
2532 (remote_wait): Use a char buffer for packets and a gdb_byte
2533 buffer for registers.
2534 (remote_async_wait): Likewise.
2535 (remote_prepare_to_store, store_register_using_P)
2536 (remote_store_registers): Use gdb_byte buffers.
2537 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2538 for MYADDR and char buffers for strings.
2539 (remote_xfer_partial): Add casts for string operations on READBUF.
2540 (remote_rcmd): Cast strings passed to bin2hex.
2544 * aclocal.m4: Regenerate.
2548 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2549 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2550 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2551 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2553 (mt_copro_register_type): New. Broken out of ...
2554 (mt_register_type): ... here. Use it. Deal with coprocessor
2556 (mt_select_coprocessor): New.
2557 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2558 coprocessor pseudo array.
2562 * breakpoint.c (insert_breakpoints): Check that a thread exists
2563 before inserting thread specific breakpoints.
2567 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2570 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2571 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2572 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2573 * config/alpha/nm-nbsd.h: Remove file.
2574 * config/alpha/nm-fbsd.h: Remove file
2575 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2576 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2580 * macroexp.c (expand): Initialize argc.
2581 * stabsread.c (read_type): Handle errors from read_args.
2582 (read_args): Return NULL for errors.
2586 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2587 strcmp to compare string to a byte buffer.
2591 * printcmd.c (output_command): Always initialize fmt.size.
2592 (printf_command): Use gdb_byte.
2593 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2594 (load_section_callback, read_target_long_array): Likewise.
2595 (simple_read_overlay_table, simple_read_overlay_region_table)
2596 (simple_overlay_update_1): Correct calls to read_target_long_array.
2597 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2598 Also change local pointers.
2599 (val_print_string): Use gdb_byte.
2603 * alphafbsd-tdep.c: Include "solib-svr4.h".
2604 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2605 svr4_lp64_fetch_link_map_offsets.
2606 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2607 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2609 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2611 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2615 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2619 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2624 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2626 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2627 svr4_ilp32_fetch_link_map_offsets.
2628 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2630 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2631 svr4_ilp32_fetch_link_map_offsets.
2632 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2633 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2634 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2635 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2637 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2638 Simply call svr4_ilp32_fetch_link_map_offsets.
2639 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2640 svr4_lp64_fetch_link_map_offsets.
2641 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2643 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2644 svr4_ilp32_fetch_link_map_offsets.
2645 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2646 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2647 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2648 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2653 * arm-tdep.c (arm_return_value): Change type of readbuf and
2654 writebuf arguments to `gdb_byte *'.
2656 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2657 * Makefile.in (s390-tdep.o): Update dependencies.
2661 * sol2-tdep.h. sol2-tdep.c: New files.
2662 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2663 (amd64_sol2_init_abi): Set skip_solib_resolver.
2664 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2665 (i386_sol2_init_abi): Set skip_solib_resolver.
2666 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2667 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2668 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2669 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2670 * Makefile.in (sol2_tdep_h): New variable.
2671 (ALLDEPFILES): Add sol2-tdep.c.
2672 (sol2-tdep.o): New target.
2673 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2674 (sparc64-sol2-tdep.o): Update dependencies
2675 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2676 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2677 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2678 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2680 * hppa-linux-tdep.c: Fix copyright indentation.
2682 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
2683 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
2684 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
2686 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
2687 floating-point registers.
2691 * event-loop.c (gdb_select): Detect file descriptors that have
2696 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
2697 and long_double_format accordingly.
2701 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
2702 translation problems.
2703 * ada-lang.c (ada_value_struct_elt): Change interface and handling
2704 of errors to avoid translation problem (and less than optimal error
2706 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
2707 Use new interface to ada_value_struct_elt.
2708 * ada_lang.h (ada_value_struct_elt): Update declaration to new
2711 * ChangeLog: remove reference to ada-tasks.c from entry of
2716 * remote.c (get_memory_packet_size, set_thread)
2717 (remote_unpack_thread_info_response, remote_get_threadinfo)
2718 (parse_threadlist_response, remote_get_threadlist)
2719 (remote_current_thread, remote_threads_info)
2720 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2721 (remote_check_symbols, remote_open_1, remote_detach)
2722 (remote_async_wait, remote_fetch_registers)
2723 (remote_store_registers, check_binary_download, putpkt_binary)
2724 (remote_insert_breakpoint, remote_insert_watchpoint)
2725 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2726 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
2727 (packet_command): Remove redundant parenthesis.
2731 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
2732 (read_memory_typed_address, write_memory)
2733 (write_memory_unsigned_integer, write_memory_signed_integer): Use
2734 gdb_byte where appropriate.
2736 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2739 * target.h (target_read_memory_partial, target_write_memory_partial):
2740 Change second argument to 'gdb_byte *'.
2741 * target.c (target_xfer_memory_partial): Change third argument to
2743 (target_read_memory_partial, target_write_memory_partial): Change
2744 second argument to 'gdb_byte *'.
2746 * linespec.c (decode_objc): Make i1 and i2 unsigned.
2747 (find_method): Set values.sals to NULL.
2751 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
2752 of 'char *' in cast.
2756 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
2757 * ada-lang.c: I18n markup.
2758 Editorial: change "can not" => "cannot" throughout.
2762 * Makefile.in: Sort dependencies.
2766 * top.c (control_level): Remove unused variable.
2770 * objfiles.c (source.h): Include.
2771 (free_objfile): Update comment about clear_symtab_users().
2772 (free_objfile): Check all symtabs of objfile being freed and if
2773 one of them is the current source symtab, call
2774 clear_current_source_symtab_and_line().
2778 Checkpoint/Restart for Linux.
2779 * linux-nat.c: Add support for debugging multiple forks.
2780 Add #include for linux-fork.h (interface spec).
2781 (super_mourn_inferior): New function pointer.
2782 (child_mourn_inferior): New function / target method.
2783 (linux_target): Claim to_mourn_inferior method pointer.
2784 (child_follow_fork): Call interface to linux-fork, conditionally
2785 add new fork processes to list of debugged processes.
2786 (kill_inferior): Use interface to linux-fork to kill
2789 * linux-fork.h: New file.
2790 * linux-fork.c: New file. Support for debugging multiple forks
2791 of the same program. Support for checkpoint and restart commands.
2793 * infrun.c (nullify_last_target_wait_ptid): New function.
2795 * Makefile.in: Add linux-fork.
2796 * config/*/linux.mh: Add linux-fork.
2797 * NEWS: Mention new functionality.
2801 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2802 Change uses of "illegal" to "invalid".
2806 * ada-exp.y: Considerable reorganization to move functionality
2807 from ada-lex.l to here, where it is logically more appropriate.
2808 The original reason, however, was to prevent premature name
2809 lookups for selector names in record aggregates.
2810 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2811 NAME for all of these.
2812 (VAR): New artificial token to clarify precedence rules.
2813 (OTHERS): New lexeme.
2814 (empty_stoken): New symbol.
2815 (%union): Remove ssym, voidval.
2816 (%type): Remove <voidval> type declarations.
2817 (syntax definitions): Add aggregates.
2818 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2819 Rename some non-terminals to be closer to reference manual usage.
2820 Tighten up expression syntax to disallow certain non-Ada
2821 constructions such as X and then Y or else Z.
2822 (ada_parse): Remove initialization of left_block_context.
2823 (write_var_from_name): Remove.
2824 (write_var_or_type): New function, containing previous code from
2825 defunct write_var_from_name and name_lookup.
2826 (block_lookup): New function, moved from ada-lex.l
2827 (select_possible_type_sym): New function, factored out of
2828 name_lookup, which used to be in ada-lex.l.
2829 (find_primitive_type): Ditto.
2830 (chop_selector): Ditto.
2831 (write_ambiguous_var): New function, factored out of defunct
2832 write_var_from_name.
2833 (write_selectors): New function.
2834 (write_name_assoc): New function.
2835 (write_exp_op_with_string): New function.
2837 * ada-lex.l (processId): Change interface to return stoken.
2838 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2839 (block_lookup, name_lookup): Remove. Functionality moved to
2841 (state IN_STRING): Remove.
2842 (rules): Handle string escapes in processString.
2844 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2845 yylval.sval (as simple strings).
2846 All name look-ups now handled in ada-exp.y.
2847 Introduce "::" (COLONCOLON) token and return as separate token.
2848 (processId): Change return convention. Comment.
2849 Leave leading "'" in place.
2850 (processString): New function.
2851 (find_dot_all): Add note to comment.
2852 Fix problem that allowed match only at the end.
2854 * ada-lang.c: Introduce aggregates.
2855 (find_struct_field): Add new parameter to count fields skipped, and
2856 allow other output parameters to be NULL.
2857 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2858 new find_struct_field.
2859 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2860 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2861 (num_component_specs, assign_component, assign_aggregate):
2862 (aggregate_assign_from_choices,aggregate_assign_positional)
2863 (aggregate_assign_others,add_component_interval):
2865 (ada_evaluate_subexp): Declare.
2866 Add aggregate-related operators.
2867 (ada_forward_operator_length): Declare.
2868 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2869 Consolidate Ada operators, using ada_forward_operator_length.
2870 (ada_search_struct_field): Search in forward order.
2871 (ADA_OPERATORS): Add new aggregate operators.
2872 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2873 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2874 operators and OP_NAME.
2875 (ada_type_of_array): Use longest_to_int.
2876 (value_assign_to_component): New function.
2877 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2879 (ada_forward_operator_length, ada_dump_subexp_body):
2882 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2883 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2887 * ada-lang.c (process_raise_exception_name): Remove extraneous
2888 definition from unsubmitted code.
2890 (is_lower_alphanum): New function.
2891 (ada_decode): Add support for decoding protected object subprograms
2892 and entries, and of entities declared inside protected object
2894 Also add missing handling for__{DIGITS}+ suffixes.
2895 Allow '$<digits>' as valid overloading suffix.
2896 (is_name_suffix): Add handling for protected type entriy suffixes.
2897 Also add support for protected type subprogram suffixes, but keep
2898 it commented out for now, as there is an ambiguity between these
2899 entities and other internally generated entities.
2900 Allow '$<digits>' as valid overloading suffix.
2901 (is_valid_name_for_wild_match): New function.
2902 (wild_match): Add an exra level of verification of the entity name
2903 before declaring it a match for the given pattern.
2905 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2906 longest_to_int rather than cast.
2908 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2910 (ada_coerce_to_simple_array): Call check_size to make sure
2911 that the object size is reasonable.
2913 (ada_value_primitive_packed_val): Use correct location in target
2914 buffer for extracting packed record fields that are themselves records.
2916 (add_defn_to_vec): Do not try to replace a stub type by its full
2917 type. Avoids a potential infinite loop.
2919 (ada_lookup_symbol): Move return incorrectly placed return statement,
2920 causing a loop that should be scanning all object files to only
2923 (ada_tag_name_2): New function.
2924 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2925 use alternative representation.
2927 (ada_find_renaming_symbol): Strip the function name suffix when
2928 computing the XR type name.
2930 (ada_to_fixed_type): Try determining the tag only if we have the
2932 (to_fixed_array_type): Add comments.
2934 (ada_check_typedef): Replace expression checking whether the given
2935 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2938 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2939 '$' in addition to '.' for runtime auxiliary function name suffixes.
2940 See changes to ada_decode above.
2942 (struct task_control_block): Add field called_task. (This change is
2943 to keep synchronized with our local sources; it does not affect the
2944 public version yet.)
2946 * ada-typeprint.c (ada_print_type): Use int_string for printing
2947 modulus of modular type.
2949 (print_range): Trivial editorial comment fix.
2951 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2952 double quote in string.
2956 * top.c: Add 2006 to list of copyright years in file header.
2960 * top.c (print_gdb_version): Update copyright year to 2006.
2966 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2967 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2968 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2969 (Committed by Jim Blandy)
2971 For older changes see ChangeLog-2005.
2977 version-control: never