3 * arm-tdep.c (arm_make_prologue_cache): Use FRAME_OBSTACK_ZALLOC
4 instead of calling frame_obstack_zalloc directly.
5 (arm_make_stub_cache): Ditto.
6 * frame-unwind.h: Ditto.
7 * frame.c (create_new_frame): Ditto.
11 * MAINTAINERS (Write After Approval): Add myself.
15 * main.c (captured_main): Print a newline after calling
16 print_gdb_version instead of waiting until after the symbol file
17 has been read. Adjust error_pre_print, quit_pre_print, and
18 warning_pre_print values.
23 * irix5-nat.c (fetch_core_registers): Simplify and correct logic.
27 * target.h (target_read_stralloc): New prototype.
28 * target.c (target_read_alloc_1): Renamed from target_read_alloc.
29 Take new PADDING argument.
30 (target_read_alloc): Use it.
31 (target_read_stralloc): New function.
35 * remote.c (remote_protocol_features): Correct qPart to qXfer.
39 * eval.c (evaluate_subexp_for_address): Don't incorrectly discard
40 calls to C++ operator*.
45 * solib-irix.c (gdb_int32_bytes): Use gdb_byte instead of char.
46 (gdb_int64_bytes): Likewise.
47 (fetch_lm_info): Use .b fields of gdb_int32_bytes and gdb_int64_bytes
48 as first argument to extract_unsigned_integer to silence compiler
53 * dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero
55 (dwarf2_locate_sections): Initialize
56 dwarf2_per_objfile->has_section_at_zero.
57 (dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero
58 instead of HAS_RELOC test.
59 (read_partial_die): Ditto.
63 * corefile.c (reopen_exec_file): Only check for an open exec file.
65 * exec.c (exec_open): Make static.
66 (exec_file_command): Don't use target_preopen. Query directly about
68 * gdbcore.h (exec_open): Remove prototype.
72 * regcache.c (struct regcache): Make register_valid_p a signed char
78 * linux-thread-db.c (thread_db_wait): Remove libthread_db
83 * NEWS: Mention Windows cross debugging support.
87 * linux-nat.c (linux_nat_add_target): Remove extern.
88 * linux-nat.h (thread_db_init): New prototype.
92 * configure.tgt: Build gdbserver for Cygwin and mingw32.
96 * config/i386/cygwin.mt (DEPRECATED_TM_FILE): Delete.
97 * config/i386/nm-cygwin.h: Add contents of tm-cygwin.h.
98 * config/i386/tm-cygwin.h: Delete file.
102 * infrun.c (handle_inferior_event): Typo.
106 * cli/cli-cmds.c (source_verbose, trace_commands): New variables.
107 (source_script): New function.
108 (source_verbose_cleanup): New function.
109 (source_command): Move old contents to source_script.
110 Make function static. Parse -v option and call source_script.
111 (init_cli_cmds): Update source command help.
112 Add 'set trace-commands' command.
113 * cli/cli-script.c (command_next_depth): New static variable.
114 (suppress_next_print_command_trace): New static variable.
115 (reset_command_nest_depth): New function.
116 (print_command_trace): New function.
117 (execute_control_command): Split the continue_control and break_control
118 cases, add calls to print_command_trace and count the nest depth.
119 (while_command): Set suppress_next_print_command_trace.
120 (if_command): Likewise.
121 * top.c (execute_command): Call print_command_trace.
122 * cli/cli-cmds.h (source_verbose, trace_commands): New extern variables.
123 (source_command): Change to source_script.
124 * main.c (captued_main): Use source_script instead of source_command.
125 * top.h (source_command): Change to source_script.
126 * event-top.c (display_gdb_prompt): Call reset_command_nest_depth.
127 * cli/cli-script.h (print_command_trace): Export.
128 (reset_command_nest_depth): Likewise.
132 * eval.c (evaluate_struct_tuple): Skip static fields.
136 * alphaobsd-tdep.c: Include "obsd-tdep.h".
137 (alphaobsd_init_abi): Set skip_solib_resolver.
138 * Makefile.in (alphaobsd-tdep.o): Update dependencies.
139 * config/alpha/obsd.mt (TDEPFILES): Add obsd-tdep.o.
141 * arm-tdep.c (arm_gdbarch_init): Get default floating-point model
142 from ELF flags for binaries produced by the GNU toolchain.
146 * remote-fileio.c (remote_fileio_func_rename): Reorder to process
147 input buffer before reading memory.
148 (remote_fileio_func_stat): Likewise.
152 * blockframe.c (find_pc_partial_function): Use the minimal symbol
153 size to control the cache entry, if available.
154 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle minimal
155 symbols with zero and non-zero sizes differently.
159 * linux-thread-db.c (td_thr_getfpregs_p, td_thr_getgregs_p)
160 (td_thr_setfpregs_p, td_thr_setgregs_p, thread_db_get_info)
161 (thread_db_fetch_registers, thread_db_store_registers)
162 (thread_db_thread_alive, thread_db_state_str): Delete.
163 (thread_db_load): Don't look up regset functions.
164 (thread_db_pid_to_str): Simplify.
165 (thread_db_extra_thread_info): New.
166 (init_thread_db_ops): Do not set to_fetch_registers,
167 to_store_registers, or to_thread_alive. Set to_extra_thread_info.
168 * Makefile.in: Remove linux-thread-db.o rule.
172 * armobsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
173 (armobsd_sigframe_init): New function.
174 (armobsd_sigframe): New variable.
175 (armobsd_init_abi): Prepend armobsd_sigframe unwinder.
176 * Makefile.in (armobsd-tdep.o): Update dependencies.
180 * monitor.c: Remove unused prototypes.
184 * target.c (tcomplain): Mark with ATTR_NORETURN.
186 * defs.h (print_transfer_performance): Improve comments.
190 * printcmd.c: Coding style fixes: add missing spaces in comments
191 and wrapping long lines.
192 (delete_display, enable_display_command, disable_display_command)
193 (printf_command, display_info, undisplay_command, free_display)
194 (display_command, x_command, address_info, set_command)
195 (inspect_command, call_command, print_command, print_command_1)
196 (validate_format, print_formatted, decode_format, sym_format):
198 (x_command): Make static.
199 (printf_command): Convert error into internal consistency check.
200 (address_info): Avoid assignment within function call.
201 (printf_command): Avoid redundant cast.
202 * tracepoint.c (x_command): Remove extern prototype.
204 * armobsd-tdep.c (armobsd_init_abi): Set skip_solib_resolver.
205 * Makefile.in (armobsd-tdep.o): Update dependencies.
206 * config/arm/obsd.mt (TDEPFILES): Add obsd-tdep.o.
210 * armobsd-tdep.c: New file.
211 * Makefile.in (ALLDEPFILES): Add armobsd-tdep.c.
212 (armobsd-tdep.o): New dependency.
213 * config/arm/obsd.mt: New file.
214 * configure.tgt: (arm*-*-openbsd*): Set gdb_target to obsd.
216 * gdbarch.sh (deprecated_saved_pc_after_call): Delete.
217 * gdbarch.h, gdbarch.c: Re-generate.
219 * arm-tdep.c (arm_saved_pc_after_call): Delete.
220 (arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
224 * gnu-nat.c: Undefine _process_user_ before including
225 <hurd/process_request.h>.
226 (gnu_resume): Supply missing argument to error().
227 (gnu_read_inferior): Add extra parenthesis around arithmetic
228 expression to silence warnings from GCC.
229 (gnu_write_inferior): Likewise.
230 (gnu_xfer_memory): Changed type of MYADDR to `gdb_byte *'.
234 * armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
235 svr4_ilp_fetch_link_map_offsets.
239 * armnbsd-tdep.c: Don't include "nbsd-tdep.h".
240 * config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
241 (DEPRECATED_TM_FILE): Remove.
242 * Makefile.in (armnbsd-tdep.o): Update dependencies.
246 * PROBLEMS: Document threads/2137.
250 * config/alpha/tm-nbsd.h: Remove file.
251 * config/alpha/nbsd.mt (DEPRECATED_TM_FILE): Remove.
255 * mips-tdep.c (mips_integer_to_address): Simplify be calling
256 extract_signed_integer directly. Fix comment.
260 * m32c-tdep.c (m32c_banked_register): New function.
261 (m32c_banked_read): Use m32c_banked_register function to evaluate
262 real register number.
263 (m32c_banked_write): Ditto.
264 (m32c_virtual_frame_pointer): New function.
265 (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.
269 * m68k-tdep.c (m68k_frame_align): New.
270 (m68k_gdbarch_init): Set frame_align here.
274 * interps.c (interpreter_completer): Allocate one more item to the
275 'matches' list and set them all to 0 with a xcalloc.
279 * annotate.c (annotate_frame_begin): Re-instate frame-begin
280 annotation for level 3 annotations.
285 * infcall.c (value_arg_coerce): Use value_cast_pointers for
286 references. Avoid value_cast to a reference type. Don't silently
287 convert pointers to references.
288 * valops.c (value_cast_pointers): New, based on value_cast.
289 (value_cast): Use it. Reject reference types.
292 * value.h (value_cast_pointers, value_ref): New prototypes.
296 * remote.c (unpack_varlen_hex): Correct type of retval.
301 * dwarf2read.c (dwarf2_symbol_mark_computed): Handle corrupted
302 or missing location list information. Suggested by Jan
307 * Makefile.in (arm_linux_tdep_h): New variable.
308 (arm-linux-nat.o, arm-linux-tdep.o): Update.
309 * arm-linux-nat.c: Include "arm-linux-tdep.h".
310 (typeNone, typeSingle, typeDouble, typeExtended)
311 (FPWORDS, ARM_CPSR_REGNUM, FPREG, FPA11)
312 (fetch_nwfpe_single, fetch_nwfpe_double, fetch_nwfpe_none)
313 (fetch_nwfpe_extended, fetch_nwfpe_register, store_nwfpe_single)
314 (store_nwfpe_double, store_nwfpe_extended, store_nwfpe_register):
316 (fetch_fpregister, fetch_fpregs, store_fpregister, store_fpregs):
317 Use gdb_byte buffers, NWFPE_FPSR_OFFSET, supply_nwfpe_register,
318 and collect_nwfpe_register.
319 (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): Use
320 new regset functions.
321 * arm-linux-tdep.c: Include "regset.h" and "arm-linux-tdep.h".
322 (arm_apcs_32): New declaration.
323 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
324 (arm_linux_collect_gregset, typeNone, typeSingle, typeDouble)
325 (typeExtended, supply_nwfpe_register, collect_nwfpe_register)
326 (arm_linux_supply_nwfpe, arm_linux_collect_nwfpe)
327 (arm_linux_regset_from_core_section): New.
328 (arm_linux_init_abi): Register arm_linux_regset_from_core_section.
329 * arm-linux-tdep.h: New file.
330 * arm-tdep.h (struct regset): Declare.
331 (struct gdbarch_tdep): Add gregset, fpregset members.
332 * config/arm/linux.mh (NATDEPFILES): Remove corelow.o and
334 * config/arm/linux.mt (TDEPFILES): Add corelow.o.
338 * infrun.c (handle_inferior_event): Fixed typos in printf.
343 * remote.c (REMOTE_ALIGN_WRITES): New.
344 (remote_write_bytes): Align large write packets. Remove unused
345 payload_start variable.
349 * remote.c (PACKET_qXfer_auxv): New, renamed from PACKET_qPart_auxv.
350 (remote_supported_packet): Remove #if 0.
351 (remote_protocol_features): Add qPart:auxv:read.
352 (remote_unescape_input): New function.
353 (readchar): Don't mask off the high bit.
354 (read_frame): Use fputstrn_filtered for packet data.
355 (getpkt_sane): Return the number of bytes read or -1. Use
357 (remote_read_qxfer): New.
358 (remote_xfer_partial): Use it for TARGET_OBJECT_AUXV.
359 (_initialize_remote): Update packet registration.
360 * defs.h (fputstrn_filtered): New prototype.
361 * utils.c (fputstrn_filtered): New.
362 * NEWS: Mention qXfer.
366 * target.c (target_read): Stop if target_read_partial returns 0
367 when some bytes have already been read.
368 (target_write): Likewise for target_write_partial.
369 (target_read_partial, target_write_partial): Make static.
370 (target_read_alloc): New.
371 * target.h: Doc fixes.
372 (target_read_partial, target_write_partial): Delete prototypes.
373 (target_read_alloc): New prototype.
375 * auxv.c (target_auxv_read): Delete.
376 (target_auxv_search, fprint_target_auxv): Use target_read_alloc.
377 * auxv.h (target_auxv_read): Delete prototype.
378 * avr-tdep.c (avr_io_reg_read_command): Use target_read_alloc.
379 * ia64-tdep.c (getunwind_table, get_kernel_table): Likewise.
380 * linux-nat.c (linux_nat_make_corefile_notes): Likewise.
381 * procfs.c (procfs_make_note_section): Likewise.
382 * remote.c (remote_xfer_partial): Don't loop here.
383 * sparc-tdep.c (sparc_fetch_wcookie): Use target_read.
387 * arm-linux-tdep.c: Doc fixes.
388 (ARM_SIGCONTEXT_R0, ARM_UCONTEXT_SIGCONTEXT)
389 (ARM_OLD_RT_SIGFRAME_SIGINFO, ARM_OLD_RT_SIGFRAME_UCONTEXT)
390 (ARM_NEW_RT_SIGFRAME_UCONTEXT, ARM_NEW_SIGFRAME_MAGIC): New
392 (arm_linux_sigreturn_init, arm_linux_rt_sigreturn_init): Support
393 the new signal frame layouts.
398 * Makefile.in (init.c) [LANG, LC_ALL]: Set to `c'.
399 * gdb_indent.sh, gdb_mbuild.sh, observer.sh: Likewise.
400 * gdbarch.sh: Correct comment.
404 * MAINTAINERS: Add Alfred Szmidt for the Hurd.
408 * alpha-tdep.h (ALPHA_INSN_SIZE): New define.
412 * alphaobsd-tdep.c: New file.
413 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Do not register a
414 handler for GDB_OSABI_OPENBSD_ELF.
415 * Makefile.in (ALLDEPFILES): Add alphaobsd-tdep.c.
416 (alphaobsd-tdep.o): New target.
417 * config/alpha/obsd.mt: New file.
418 * configure.tgt (alpha*-*-openbsd*): Set gdb_target to obsd.
422 * alpha-tdep.h (struct gdbarch_tdep): Add return_in_memory.
423 * alpha-tdep.c (alpha_register_byte): Remove.
424 (alpha_extract_struct_value_address): Remove.
425 (alpha_return_value): New.
426 (alpha_return_in_memory_always): New.
427 (alpha_gdbarch_init): Set tdep->return_in_memory. Don't call
428 set_gdbarch_deprecated_register_byte. Do call set_gdbarch_return_value
429 instead of set_gdbarch_deprecated_use_struct_convention,
430 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
431 or set_gdbarch_deprecated_extract_struct_value_address.
432 * alphafbsd-tdep.c (alphafbsd_return_in_memory): Rename from
433 alphafbsd_use_struct_convention, remove gcc_p argument.
434 (alphafbsd_init_abi): Set tdep->return_in_memory instead of
435 set_gdbarch_deprecated_use_struct_convention.
439 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): New
441 * alphanbsd-tdep.c (alphanbsd_regset_from_core_section): Handle
442 a.out-style core file format here. Make global.
443 (alphanbsd_regset_from_core_section): Remove.
444 (alphanbsd_sigtramp_offset): Make static.
445 (alphanbsd_aout_init_abi): Remove.
446 (alphanbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_ELF for
447 a.out style core files.
448 (_initialize_alphanbsd_tdep): Do not register a handler for
449 GDB_OSABI_NETBSD_AOUT.
451 * alphabsd-tdep.h: Tweak comments.
452 (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove.
453 * alphanbsd-tdep.c: Reorder includes. Include "regset.h".
454 (ALPHANBSD_SIZEOF_GREGS, ALPHANBSD_SIZEOF_FPREGS): New defines.
455 (alphanbsd_supply_fpregset, alphanbsd_supply_gregset)
456 (alphanbsd_aout_supply_gregset): New functions.
457 (alphanbsd_gregset, alphanbsd_fpregset, alphanbsd_aout_gregset):
459 (alphanbsd_regset_from_core_section)
460 (alphanbsd_aout_regset_from_core_section): New functions.
461 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
462 (alphanbsd_core_fns, alphanbsd_elf_fns): Remove variables.
463 (alphanbsd_init_abi): Set regset_from_core_section.
464 (alphanbsd_aout_init_abi, alphanbsd_core_osabi_sniffer): New
466 (_initialize_alphanbsd_tdep): Register NetBSD core file sniffer.
467 Use alphanbsd_aout_init_abi whre appropriate. Don't call
468 deprecated_add_core_fns.
469 * Makefile.in (alphanbsd-tdep.o): Update dependencies.
471 * alphabsd-tdep.c (alphabsd_supply_reg, alphabsd_fill_reg)
472 (alphabsd_supply_fpreg, alphabsd_fill_fpreg): Add missing spaces.
474 * alphanbsd-tdep.c (alphanbsd_init_abi): Use
475 svr4_lp64_fetch_link_map_offsets instead of
476 nbsd_lp64_solib_svr4_fetch_link_map_offsets.
480 * parse.c (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block
481 write_exp_elt_longcst, write_exp_elt_dblcst, write_exp_elt_type,
482 write_exp_elt_intern): Zero initialize tmp.
486 * remote.c (remote_xfer_partial): Remove KOD support.
487 * target.h (enum target_object): Remove TARGET_OBJECT_KOD.
488 * MAINTAINERS: Move Kernel Object Display entry to past maintainers.
489 * Makefile.in (SFILES, kod_h, COMMON_OBS, kod.o, kod-cisco.o):
491 * mi/mi-cmds.c (mi_cmds): Remove dummy KOD commands.
493 * kod.h, kod.c, kod-cisco.c: Delete files.
497 * remote.c (init_remote_state): Use xrealloc instead of xmalloc.
501 * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if
506 * defs.h (DIRNAME_SEPARATOR) [!__CYGWIN__ && _WIN32]: Define to `;'.
510 * arm-tdep.c (arm_register_type): Use unsigned types for registers.
511 Add special types for sp and pc.
512 * Makefile.in (arm-tdep.o): Update.
516 * remote.c (remote_escape_output): New function.
517 (remote_write_bytes): Use remote_escape_output.
521 * NEWS: Mention qSupported.
522 * remote.c (struct remote_state): Add explicit_packet_size.
523 (get_remote_packet_size): Check explicit_packet_size.
524 (get_memory_packet_size): Likewise.
525 (PACKET_qSupported): New enum value.
526 (struct protocol_feature, remote_supported_packet)
527 (remote_packet_size, remote_protocol_features)
528 (remote_query_supported): New.
529 (remote_open_1): Reset explicit_packet_size. Call
530 remote_query_supported.
531 (_initialize_remote): Register qSupported.
535 * cli/cli-script.c (realloc_body_list): Zero new parts of body_list.
539 * GDB 6.5 released from GDB 6.5 branch.
543 * mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
544 decide how many registers it takes to pass a floating point
545 argument, what matters is the size of a floating point register
546 (not the size of a general purpose register).
547 (mips_o32_push_dummy_call): Ditto.
551 * configure.tgt: Add gdbserver support for m32r-linux.
555 * m68klinux-tdep.c (m68k_linux_init_abi): Fix typo in comment.
559 * infrun.c (insert_step_resume_breakpoint_at_caller): New function,
560 based on insert_step_resume_breakpoint_at_frame.
561 (handle_inferior_event): Update comments. Use
562 insert_step_resume_breakpoint_at_caller.
563 (insert_step_resume_breakpoint_at_frame): Revise comments.
567 * dwarf2read.c (read_unspecified_type): New function.
568 (read_type_die): Handle DW_TAG_unspecified_type.
569 (Committed by Julian Brown.)
573 * symfile.c (load_command): Check for a changed executable before
578 * mips-tdep.c (mips_find_long_section): New function.
579 (mips_gdbarch_init): Use it to set long and pointer sizes.
583 * remote-file.io.c (remote_fileio_func_system): Treat zero length
584 string as NULL. Adjust for NULL pointer argument.
585 * doc/gdb.texinfo (system): Document behaviour with zero length
590 * remote.c (set_remote_protocol_packet_cmd)
591 (show_remote_protocol_packet_cmd): New prototypes.
592 (remote_set_cmdlist, remote_show_cmdlist): Move higher.
593 (struct packet_config): Make name and title const.
594 (add_packet_config_cmd): Remove unnecessary arguments.
595 (_initialize_remote): Update calls.
599 * mingw-hdep.c (gdb_select): Always check for NULL fd sets
600 before calling FD_ISSET. Correct check for exceptfds which
601 previously tested writefds.
606 * dwarf2read.c (partial_read_comp_unit_head): Accept version 3.
610 * MAINTAINERS (Write After Approval): Add myself.
614 * mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.
618 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): New.
619 (m68k_gdbarch_init): Set it for dwarf & dwarf2 reg number
620 conversion. Use M68K_NUM_REGS for number of regs.
622 * remote-fileio.c (remote_fileio_reset): New.
623 * remote-fileio.h (remote_fileio_reset): Prototype.
624 * remote.c (extended_remote_restart, remote_open_1): Call it.
626 * remote.c (remote_open_1): Do preopen tasks before
627 irreversably destroying state.
631 * remote.c (struct remote_state): New type, only containing
633 (remote_state): New variable.
634 (get_remote_state): New function.
635 (struct remote_arch_state): Renamed from struct remote_state.
636 Removed buf and buf_size.
637 (get_remote_arch_state): Renamed from get_remote_state. All
638 necessary callers updated to call this function.
639 (init_remote_state): Initialize the architecture-specific state.
640 Update the target-specific state if necessary.
641 (get_remote_packet_size): New function. All previous references
642 changed to use this accessor function.
643 (packet_reg_from_regnum, packet_reg_from_pnum): Take a
644 remote_arch_state instead of a remote_state. All callers changed.
645 (_initialize_remote): Initialize the packet buffer here.
649 * remote.c (remote_insert_watchpoint): Return -1, rather than
650 fatal error if packet is disabled.
651 (remote_remove_watchpoint, remote_insert_hw_breakpoint,
652 remote_remove_hw_breakpoint): Likewise.
656 * breakpoint.c (print_it_typical): Use EXEC_ASYNC_LOCATION_REACHED.
660 * mips-tdep.c: Comment tweaks.
664 * Makefile.in (top_builddir): Update comments.
665 (INTL_DIR, INTL_SRC): Delete.
666 (INTL, INTL_DEPS, INTL_CFLAGS): Update.
667 * acinclude.m4: Include new gettext macros.
668 * configure.ac: Use ZW_GNU_GETTEXT_SISTER_DIR. Remove copied
670 * aclocal.m4, configure: Regenerated.
674 * Makefile.in (arm-linux-nat.o): Update dependencies.
675 * arm-linux-nat.c: Include "gdb_proc_service.h".
676 (PTRACE_GET_THREAD_AREA): Define.
677 (ps_get_thread_area): New function.
681 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
682 DWARF2_FRAME_REG_SAVED_VAL_OFFSET and
683 DWARF2_FRAME_REG_SAVED_VAL_EXP.
684 * dwarf2-frame.c (execute_cfa_program): Handle val_offset,
685 val_offset_sf and val_expression.
686 (dwarf2_frame_prev_register): Handle the new reg rules.
687 (dwarf2_frame_this_id): Use pc instead of function entry point.
691 * dwarf2-frame.c (struct dwarf2_cie): Add signal_frame field.
692 (dwarf2_frame_sniffer): Use it.
693 (decode_frame_entry_1): Set it according to augmentation "S".
698 * m2-typeprint.c (m2_record_fields): Move variable declarations
699 to the begining of the block.
703 * mt-tdep.c (mt_register_name): Correct out-of-range logic to
704 include additional registers.
706 * mt-tdep.c (mt_gdb_regnums): Add ZI2, ZQ2, Ichannel2,
707 Iscramb2, Qscramb2, Qchannel2.
708 (mt_register_name): Likewise.
709 (mt_copro_register_type): Describe ZI2 and ZQ2.
711 * mt-tdep.c (mt_gdb_regnums): Define
712 MT_COPRO_PSEUDOREG_MAC_REGNUM.
713 (mt_register_name): Use it.
714 (mt_copro_register_type): Likewise.
715 (mt_register_type): Likewise.
716 (mt_pseudo_register_read): Likewise. Read the MAC register, not
717 the coprocessor register.
718 (mt_pseudo_register_write): Likewise.
722 * win32-nat.c (cygwin_exceptions): New variable.
723 (handle_exception): Treat a cygwin exception like a normal exception if
724 cygwin_exceptions is true.
725 (_initialize_win32_nat): Add "set cygwin-exceptions" handler.
729 * NEWS: (Improved Modula-2 language support): New section.
733 * configure: Regenerate using proper version of autoconf.
737 * Makefile.in: Fix spelling of 'explicitly' and 'explicit'.
738 * dwarfread.c: Fix spelling of 'unexpected'.
739 * mips-tdep.c: Fix spelling of 'possible' and 'Determine'.
740 * stack.c: Fix spelling of 'RETURN_VALUE'.
744 * solib-svr4.c (enable_break): Breakup a long line into 3 shorter ones.
748 * dwarf2-frame.c: Include "value.h".
749 (read_reg): Use unpack_long and register_type.
750 * Makefile.in (dwarf2-frame.o): Update.
754 * remote-rdp.c: Deleted.
755 * NEWS: Mention removal of remote-rdp.c.
757 * Makefile.in (ALLDEPFILES): Remove remote-rdp.c.
758 (remote-rdp.o): Delete.
759 * README: Remove description of remote-rdp.c.
760 * arm-tdep.c (arm_breakpoint_from_pc): Remove obsolete comment.
761 * config/arm/embed.mt (TDEPFILES): Remove remote-rdp.o.
765 * ser-e7kpc.c: Include <time.h> if it is available.
769 * version.in (version.in): Bump version number to 6.5.50 now
770 that the gdb-6.5 branch has been created.
771 * NEWS: Create a new section for changes that are included
772 since gdb-6.5. Name the "since gdb-6.4" section as the "in gdb-6.5"
777 * MAINTAINERS (Authorized Committers): Gaius Mulley has accepted
778 the Global Maintainers' invitation to be an authorized committer
779 for the Modula-2 support.
783 * ppcobsd-nat.c: Include "gdb_assert.h".
784 [PT_GETFPREGS] (getfpregs_supplies): New function.
785 (ppcobsd_fetch_registers, ppcobsd_fetch_registers): Hanlde OS
786 versions that have PT_GETFPREGS.
787 (_initialize_ppcobsd_nat) [PT_GETFPREGS]: Initialize
788 ppcobsd_fpreg_offsets.
789 * ppcobsd-tdep.h (ppcobsd_fpreg_offsets, ppcobsd_fpregset):
791 * ppcobsd-tdep.c (ppcobsd_fpreg_offsets, ppcobsd_fpregset): New
793 (_initialize_ppcobsd_tdep): Initialize ppcobsd_fpreg_offsets.
794 * Makefile.in (ppcobsd-nat.o): Update dependencies.
798 * configure.ac: Use GCC_HEADER_STDINT.
799 * acinclude.m4: Include stdint.m4.
800 * Makefile.in (gdb_stdint_h): Define.
801 (distclean): Remove gdb_stdint.h.
802 (Makefile, stamp-h): Update rules to generate only the correct
804 (gdb_stdint.h, stamp-int): New rules.
805 * config.in, configure: Regenerated.
809 * valprint.c: Include "exceptions.h".
810 (val_print): If something goes wrong while printing, supply an
815 * source.c (get_current_source_symtab_and_line)
816 (set_current_source_symtab_and_line): Use { 0 }.
817 * cli/cli-cmds.c (list_command): Likewise.
821 * mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
822 (gdbmi): Use new variable name gdb-pc-address.
823 (gdbmi-frame-handler): Use new variable name gdb-pc-address.
824 Check that a match has been found.
828 * m2-lang.h: Added function extern prototypes for
829 m2_is_long_set and get_long_set_bounds.
830 * m2-typeprint.c: Complete replacement.
831 (m2_print_type): Walk the Modula-2 type tree.
832 (m2_type_name): New function.
833 (m2_range): New function.
834 (m2_typedef): New function.
835 (m2_array): New function.
836 (m2_pointer): New function.
837 (m2_ref): New function.
838 (m2_unknown): New function.
839 (m2_union): New function.
840 (m2_procedure): New function.
841 (m2_print_bounds): New function.
842 (m2_short_set): New function.
843 (m2_is_long_set): New function.
844 (m2_get_discrete_bounds): New function.
845 (m2_is_long_set_of_type): New function.
846 (m2_long_set): New function.
847 (m2_record_fields): New function.
848 (m2_enum): New function.
849 * dwarf2read.c: Modified.
850 (read_set_type): New function.
851 (process_die): Call read_set_type.
852 (read_base_type): Modifed.
853 (set_cu_language): Added Modula-2 case clause.
854 * m2-valprint.c: Complete replacement.
855 (print_function_pointer_address): New function.
856 (get_long_set_bounds): New function.
857 (m2_print_long_set): New function.
858 (print_unpacked_pointer): New function.
859 (print_variable_at_address): New function.
860 (m2_val_print): Replaced.
861 * gdb/MAINTAINERS (Write After Approval): Added
866 * ppcnbsd-tdep.h: Update copyright year. Include <stddef.h>
867 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
868 (ppcnbsd_fill_fpreg): Remove prototypes.
869 (struct regset): Add forward declaration.
870 (ppcnbsd_gregset, ppcnbsd_fpregset): Extern declarations.
871 * ppcnbsd-tdep.c: Update copyright year. Include "gdbtypes.h",
872 "regset.h" and "gdb_string.h". Don't include "breakpoint.h",
873 "value.h", target.h and nbsd-tdep.h". Reorder includes.
874 (REG_FIXREG_OFFSET, REG_LR_OFFSET, REG_CR_OFFSET, REG_XER_OFFSET)
875 (REG_CTR_OFFSET, REG_PC_OFFSET, SIZEOF_STRUCT_REG)
876 (FPREG_FPR_OFFSET, FPREG_FPSCR_OFFSET, SIZEOF_STRUCT_FPREG):
878 (ppcnbsd_supply_reg, ppcnbsd_fill_reg, ppcnbsd_supply_fpreg)
879 (ppcnbsd_fill_fpreg): Remove functions.
880 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
881 (ppcnbsd_core_fns, ppcnbsd_elfcore_fns): Remove variables.
882 (ppcnbsd_reg_offsets): New variable.
883 (ppcnbsd_gregset, ppcnbsd_fpregset): New variables.
884 (ppcnbsd_sigtramp_cache_init): Deal with new signal trampoline
885 introduced in NetBSD 2.0.
886 (ppcnbsd_sigtramp): Provide complete signal trampoline.
887 (ppcnbsd2_sigtramp): New variable.
888 (ppcnbsd_init_abi): Set svr4_fetch_link_map_offsets to
889 svr4_ilp32_fetch_link_map_offsets. Set regset_from_core_section.
890 Add ppcnbs2_sigtramp unwinder.
891 (_initialize_ppcnbsd_tdep): Don't use deprecated_add_core_fns.
892 Initialize ppcnbsd_reg_offsets.
893 * ppcnbsd-nat.c: Update copyright year. Reorder includes.
894 (getregs_supplies): Use regnum instead of regno.
895 (getfpregs_supplies): Likewise.
896 (ppcnbsd_fetch_inferior_registers): Likewise. Call
897 ppc_supply_gregset and ppc_suppply_fpregset instead of
898 ppcnbsd_supply_reg and ppcnbsd_supply_fpreg
899 (ppcnbsd_store_inferior_registers): Likewise. Call
900 ppc_collect_gregset and ppc_collect_fpregset instead of
901 ppcnbsd_fill_reg and ppcnbsd_fill_fpreg.
902 (ppcnbsd_supply_pcb): Use `gdb_byte *' instead of `char *'.
903 (_initialize_ppcnbsd_nat): Add some whitespace.
904 * Makefile.in (ppcnbsd-nat.o, ppcnbsd-tdep.o): Update dependencies.
905 * config/powerpc/nbsd.mh (NATDEPFILES): Remove infptrace.o.
907 * config/powerpc/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
911 * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
915 * symtab.c (skip_prologue_using_sal): Handle single line functions
916 like "foo(){}", which may optimize down to a single return inst.
920 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
925 * dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
926 (execute_cfa_program): Add parameter eh_frame_p. Call
927 dwarf2_frame_eh_frame_regnum when true.
928 (dwarf2_frame_cache): Pass eh_frame_p from fde to
930 (decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
931 processing .eh_frame. Copy eh_frame_p to the new fde.
932 (struct dwarf2_frame_ops): Add eh_frame_regnum.
933 (dwarf2_frame_set_eh_frame_regnum): Define.
934 (dwarf2_frame_eh_frame_regnum): Define.
936 * dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
937 (dwarf2_frame_eh_frame_regnum): Declare.
941 * linux-nat.c (linux_nat_do_thread_registers): Check for
942 NULL collect_regset method.
946 * s390-tdep.c (s390_collect_regset): New function.
947 (s390_gregset, s390x_gregset, s390_fpregset): Add it.
951 * dwarf2read.c: Make LOC_OPTIMIZED_OUT the default value for a
956 * linux-nat.c (exit_lwp): Fix NULL pointer access.
957 (linux_nat_handle_extended): New parameter STOPPING.
958 (wait_lwp): Call it with STOPPING equals 1.
959 (linux_nat_wait): Call it with STOPPING equals 0.
963 * linux-nat.c (linux_nat_wait): Do not short-cut reporting
964 of 'uninteresting' signals when single-stepping.
968 * MAINTAINERS: Move NEWS to the documentation entry.
972 * linux-nat.c (linux_nat_do_thread_registers): Use the
973 regset_from_core_section infrastructure if the target
975 * Makefile.in: Update dependencies.
976 * linux-thread-db.c (thread_db_store_registers): Use
977 regcache_raw_collect.
981 * ppc-linux-nat.c: Clean up types for ptrace.
982 Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
983 between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
987 * remote.c (remote_disconnect): Add TARGET argument.
988 * target.c (debug_to_disconnect): Delete.
989 (update_current_target): Do not inherit to_disconnect.
990 (target_disconnect): Search for a target to implement to_disconnect.
991 (setup_target_debug): Do not reference to_disconnect.
992 * target.h (struct target_ops): Add target argument to
997 * mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
998 structs or unions independent of ABI register size.
1002 * mips-tdep.c (mips_o64_return_value): Replace stub that always
1003 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
1007 * mi/mi-main.c (captured_mi_execute_command): Check the return
1008 value of -interpreter-exec.
1012 * varobj.c (c_value_of_variable): Ignore top-level references.
1013 (Committed by Jim Blandy.)
1017 * breakpoint.c (insert_single_step_breakpoint): Make a failure to
1018 insert a single-step breakpoint an error instead of a warning.
1022 * ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
1023 arguments from void * to gdb_byte *.
1027 * linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
1028 command to "delete fork" (no hyphen), compatible with other
1030 (info_forks_command): Accept a fork ID argument, for info
1031 on a single fork. Report if no matching forks.
1035 * breakpoint.c (remove_single_step_breakpoints): Bail out early if
1036 no breakpoints are inserted.
1039 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
1040 type of last argument to `gdb_byte *'
1044 Add support for 'target remote |' on MinGW.
1045 * ser-mingw.c (struct pipe_state): New structure.
1046 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
1047 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
1048 (pipe_windows_write, pipe_wait_handle): New functions.
1049 (_initialize_ser_windows): Register a "pipe" interface based on
1054 * ser-mingw.c: Include <conio.h>.
1055 (struct ser_console_state, struct net_windows_state): Add exit_select,
1056 have_stopped, thread.
1057 (pipe_select_thread, console_select_thread)
1058 (net_windows_select_thread): Don't create a local state copy or
1059 close stop_select. Exit on exit_select instead of stop_select. Set
1061 (console_select_thread): Don't report control keypresses as pending
1063 (pipe_select_thread): Allow stop_select to interrupt sleeping.
1064 (set_console_wait_handle): Create exit_select and have_stopped.
1065 Save the thread handle. Check _kbhit before starting a thread.
1066 (ser_console_done_wait_handle): New.
1067 (ser_console_close): Close new handles. Wait for the thread to
1069 (new_windows_select_thread): Assert that an event occurred.
1070 (net_windows_wait_handle): Check for pending input before starting
1072 (net_windows_done_wait_handle): New.
1073 (net_windows_open): Create exit_select and have_stopped.
1074 Save the thread handle.
1075 (net_windows_close): Close new handles. Wait for the thread to
1077 (_intiialize_ser_windows): Register done_wait_handle methods.
1079 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
1080 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
1081 [USE_WIN32API] (serial_done_wait_handle): New prototype.
1082 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
1086 * rs6000-tdep.c: Include "reggroups.h" only once.
1087 * Makefile.in (rs6000-tdep.o): Update dependencies.
1091 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
1092 compilation directory as last argument.
1093 Always pass comp_dir as second argument to start_subfile and prepend
1094 dirname to the filename when necessary.
1095 Remove now superfluous search for pre-existing subfile.
1096 (dwarf_decode_lines): Pass the compilation directory to
1097 dwarf2_start_subfile.
1102 Add support for the Renesas M32C and M16C.
1104 * configure.tgt (m32c-*-*): New entry.
1105 * config/m32c/m32c.mt: New file.
1106 * m32c-tdep.c: New file.
1107 * Makefile.in (elf_m32c_h): New variable.
1108 (m32c-tdep.o): New rule.
1109 * NEWS: Mention new target.
1110 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
1114 * remote.c: Fix spelling error in comment.
1118 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
1119 Correct type of VALUEP. Reported by Jean-Rene Peulve
1124 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
1125 netdb.h, netinet/in.h.
1126 (m32r_upload_command); Add calls WSAStartup().
1127 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
1132 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
1134 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
1135 (delete_breakpoint): Update calls to changed methods.
1136 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1137 (single_step_breakpoints, insert_single_step_breakpoint)
1138 (remove_single_step_breakpoints): New.
1139 * breakpoint.h (struct bp_target_info): New.
1140 (struct bp_location): Replace shadow_contents with
1141 target_info and overlay_target_info.
1142 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
1143 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
1145 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
1146 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
1148 * mem-break.c (default_memory_insert_breakpoint): Update. Set
1149 placed_address, placed_size, and shadow_len.
1150 (default_memory_remove_breakpoint): Update. Don't use
1152 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
1153 * target.c (update_current_target): Update prototypes for changed
1155 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
1156 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
1158 * target.h: Forward declare struct bp_target_info.
1159 (struct target_ops): Use a bp_target_info argument for
1160 to_insert_breakpoint, to_remove_breakpoint,
1161 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
1162 (target_insert_breakpoint, target_remove_breakpoint)
1163 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
1164 (memory_insert_breakpoint, memory_remove_breakpoint)
1165 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
1167 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
1168 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
1169 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
1171 * gdbarch.c, gdbarch.h: Regenerated.
1173 * alpha-tdep.c (alpha_software_single_step): Use
1174 insert_single_step_breakpoint and remove_single_step_breakpoints.
1175 Remove unused statics.
1176 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
1177 * cris-tdep.c (cris_software_single_step): Likewise.
1178 * mips-tdep.c (mips_software_single_step): Likewise.
1179 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
1180 * sparc-tdep.c (sparc_software_single_step): Likewise.
1181 * wince.c (struct thread_info_struct): Remove step_prev.
1182 (undoSStep): Use remove_single_step_breakpoints.
1183 (wince_software_single_step): Use insert_single_step_breakpoint.
1185 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
1186 * exec.c (ignore): Likewise.
1187 * sol-thread.c (ignore): Likewise.
1189 * procfs.c (dbx_link_shadow_contents): Delete.
1190 (dbx_link_bpt): New.
1191 (procfs_mourn_inferior): Remove it if necessary.
1192 (remove_dbx_link_breakpoint): Use it.
1193 (insert_dbx_link_bpt_in_file): Set it.
1194 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
1195 * rs6000-nat.c (exec_one_dummy_insn): Use
1196 deprecated_insert_raw_breakpoint and
1197 deprecated_remove_raw_breakpoint.
1198 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
1199 (base_breakpoint): New.
1200 (disable_break): Use it.
1201 (enable_break): Set it.
1203 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
1205 * ia64-tdep.c (ia64_memory_insert_breakpoint)
1206 (ia64_memory_remove_breakpoint): Likewise.
1207 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1208 (m32r_memory_remove_breakpoint): Likewise.
1209 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1210 Likewise. Remove unnecessary prototypes. Use placed_address
1211 and placed_size. Removed useless read from memory.
1212 * nto-procfs.c (procfs_insert_breakpoint)
1213 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1214 (procfs_remove_hw_breakpoint): Update.
1215 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1216 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
1217 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1218 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
1219 * remote-e7000.c (e7000_insert_breakpoint)
1220 (e7000_remove_breakpoint): Likewise.
1221 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1222 (m32r_remove_breakpoint): Likewise.
1223 * remote-mips.c (mips_insert_breakpoint)
1224 (mips_remove_breakpoint): Likewise.
1225 * remote-rdp.c (remote_rdp_insert_breakpoint)
1226 (remote_rdp_remove_breakpoint): Likewise.
1227 (rdp_step): Use deprecated_insert_raw_breakpoint and
1228 deprecated_remove_raw_breakpoint.
1229 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
1231 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
1233 (init_gdbsim_ops): Use memory_insert_breakpoint and
1234 memory_remove_breakpoint.
1235 * remote-st.c (st2000_insert_breakpoint)
1236 (st2000_remove_breakpoint): Update. Remove unused
1238 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1239 Update. Use placed_address and placed_size.
1240 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
1244 * remote.c (extended_remote_restart): Pass the correct length
1249 * serial.c (serial_open): Check for special cases at the front of
1250 the "device" name before scanning for the ':' that would indicate
1251 an IP-based connection.
1255 * win32-nat.c (open_symbol_file_object): New function.
1256 (in_dynsym_resolve_code): Ditto.
1257 (init_win32_ops): Fill in fields which ought not to be NULL.
1261 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
1262 with saved context if __COPY_CONTEXT_SIZE is not defined.
1263 (handle_output_debug_string): Ditto.
1267 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
1271 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
1273 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
1274 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
1275 that the latter can override.
1276 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1280 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
1281 (s390_store): Call pv_area_store to track stack slots.
1282 (s390_load): Call pv_area_fetch to track stack slots.
1283 (s390_check_for_saved): New function.
1284 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
1288 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
1289 * s390-tdep.c: Include "prologue-value.h".
1290 (struct prologue_value): Remove.
1291 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1292 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1293 pv_logical_and, pv_is_identical, pv_is_register): Remove.
1294 (compute_x_addr): Remove, replace by ...
1295 (s390_addr): ... this new function.
1296 (struct s390_prologue_data): Use pv_t instead of prologue_value.
1297 (s390_store, s390_load): Likewise.
1298 (s390_prologue_frame_unwind_cache): Likewise.
1299 (s390_analyze_prologue): Likewise. Also, simplify and combine
1300 several conditional statements.
1304 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
1309 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
1310 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
1311 (sparc32_linux_core_gregset,
1312 sparc32_linux_supply_core_gregset,
1313 sparc32_linux_collect_core_gregset,
1314 sparc32_linux_supply_core_fpregset,
1315 sparc32_linux_collect_core_fpregset): New.
1316 (sparc32_linux_init_abi): Register them with generic sparc
1317 core regset infrastructure.
1318 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
1319 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
1320 (sparc64_linux_core_gregset,
1321 sparc64_linux_supply_core_gregset,
1322 sparc64_linux_collect_core_gregset,
1323 sparc64_linux_supply_core_fpregset,
1324 sparc64_linux_collect_core_fpregset): New.
1325 (sparc64_linux_init_abi): Register them with generic sparc
1326 core regset infrastructure.
1327 * Makefile.in: Update dependencies.
1331 * linux-nat.c (linux_nat_thread_alive): Handle targets that
1332 do not implement PTRACE_PEEKUSER.
1336 * remote.c (remote_wait): Convert warning to error before
1337 parsing corrupt packets.
1341 * cli/cli-script.c (struct user_args): Add command field.
1342 (arg_cleanup): Free command string.
1343 (setup_user_args): Copy the command line before relying on it.
1347 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
1348 of the "delete" command.
1352 * MAINTAINERS (Patch champions): Add myself.
1356 * Makefile.in: Update dependencies.
1360 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
1361 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
1362 * Makefile.in (sparc-tdep.o): Update dependencies.
1363 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
1364 window out of the correct stack frame.
1365 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
1366 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
1368 (dwarf2_frame_default_init_reg): Likewise.
1369 (dwarf2_frame_set_init_reg): Update init_reg arg.
1370 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
1372 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
1373 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
1374 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
1375 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1376 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1377 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1378 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
1379 (sparc32_frame_cache): Call it.
1380 (sparc32_dwarf2_struct_return_p): New function.
1381 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
1382 returns a structure and thus we have to indicate the return PC and
1383 NPC are 4 bytes later than usual.
1384 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
1385 dwarf2 frame sniffer.
1386 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
1390 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
1391 * config/linux64.h (NATDEPFILES): Likewise
1392 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1393 fill_fpregset): New.
1394 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
1395 fill_fpregset): New.
1396 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
1401 * Makefile.in (elf_common_h): Define.
1405 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
1406 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
1410 * value.h (struct internalvar): Add field 'endian'.
1411 * value.c (lookup_internalvar): Initialise endian.
1412 (value_of_internalvar): Flip the endian of built-in types if required.
1413 (set_internalvar): Set the endian.
1414 (show_convenience): Access the value through value_of_internalvar().
1418 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
1419 instead of hardcoded integer literals.
1423 * cli/cli-script.c (insert_args): Handle NULL user_args.
1427 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
1428 the function at zero if we have no symbols.
1432 * i386-stub.c (getpacket): Fix array overflow.
1433 * m32r-stub.c (getpacket): Likewise.
1434 * m68k-stub.c (getpacket): Likewise.
1435 * sh-stub.c (getpacket): Likewise.
1436 * sparc-stub.c (getpacket): Likewise.
1440 * frame.h (set_current_sal_from_frame): New prototype.
1441 * stack.c (set_current_sal_from_frame): Make global.
1442 * infrun.c (normal_stop): Call set_current_sal_from_frame.
1446 * linux-thread-db.c: Include "linux-nat.h".
1447 (check_for_thread_db): New function, split out from
1448 thread_db_new_objfile. Remove dead check for active
1449 thread_db on inapplicable targets.
1450 (thread_db_new_objfile): Call check_for_thread_db.
1451 * Makefile.in (linux-thread-db.o): Update.
1452 * linux-nat.c (child_post_attach): Call check_for_thread_db.
1453 (linux_child_post_startup_inferior): Likewise.
1454 (lin_lwp_attach_lwp): Call target_post_attach instead of
1456 * linux-nat.h (check_for_thread_db): New prototype.
1460 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
1461 (init_remote_state): Initialize the new fields.
1462 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
1463 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
1464 (remote_get_threadinfo, parse_threadlist_response)
1465 (remote_get_threadlist, remote_current_thread, remote_threads_info)
1466 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1467 (remote_check_symbols, remote_open_1, remote_detach)
1468 (remove_vcont_probe, remote_vcont_resume, remote_resume)
1469 (remote_wait, remote_async_wait, fetch_register_using_p)
1470 (remote_fetch_registers, store_register_using_P)
1471 (remote_store_registers, check_binary_download, remote_write_bytes)
1472 (remote_read_bytes, remote_insert_breakpoint)
1473 (remote_remove_breakpoint, remote_insert_watchpoint)
1474 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1475 (remote_remove_hw_breakpoint, compare_sections_command)
1476 (remote_xfer_partial, remote_rcmd, packet_command)
1477 (remote_get_thread_local_address): Use the global incoming buffer
1478 instead of alloca or xmalloc. Limit outgoing packets to
1479 rs->remote_packet_size and incoming packets to rs->buf_size.
1480 Update calls to getpkt and remote_send.
1481 (remote_send): Take arguments by reference.
1482 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
1483 (skip_frame): New function.
1484 (read_frame): Take arguments by reference. Expand the packet
1485 buffer instead of issuing an error.
1486 (getpkt, getpkt_sane): Take arguments by reference.
1487 * remote.h (getpkt): Update prototype and doc.
1488 * tracepoint.c (remote_get_noisy_reply): Take arguments by
1490 (target_buf): Change from array to pointer.
1491 (target_buf_size): New variable.
1492 (remote_set_transparent_ranges): Update call to getpkt.
1493 (trace_start_command, trace_stop_command, trace_status_command):
1494 Update calls to remote_get_noisy_reply.
1495 (finish_tfind_command): Take arguments by reference.
1496 (trace_find_command, trace_find_pc_command)
1497 (trace_find_tracepoint_command, trace_find_line_command):
1498 (trace_find_range_command, trace_find_outside_command): Update
1499 calls to finish_tfind_command.
1500 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
1504 * hppa-linux-tdep.c: Include regset.h.
1505 (GR_REGNUM, TR_REGNUM, greg_map): New.
1506 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
1507 (hppa_linux_regset, hppa_linux_fpregset): New.
1508 (hppa_linux_regset_from_core_section): New.
1509 (hppa_linux_init_abi): Set regset_from_core_section.
1510 (_initialize_hppa_linux_tdep): Register osabi handler for
1512 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
1513 * config/pa/linux.mh: Stop using core-regset.o
1517 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
1518 (hppa_frame_cache): Use new function to find unwind entry.
1519 (hppa_frame_this_id): Likewise.
1520 (hppa_frame_unwind_sniffer): Likewise.
1524 * NEWS: Mention the removal of NLM.
1528 * Makefile.in (nlm): Remove target.
1529 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
1530 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
1531 * configure: Regenerate.
1532 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
1533 * nlm: Remove directory.
1537 * Makefile.in (utils.o): Update.
1538 * top.c (in_user_command): New.
1539 (command_line_input): Use input_from_terminal_p.
1540 (input_from_terminal_p): Don't check caution. Handle
1541 stdin == NULL for Insight.
1542 * top.h (in_user_command, caution): New declarations.
1543 * utils.c: Include "top.h".
1544 (query, defaulted_query): Check caution here. Move the call
1545 to input_from_terminal_p higher.
1546 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
1547 the depth. Update in_user_command if necessary.
1548 (execute_user_command): Don't clobber old_chain. Set
1549 in_user_command. Let do_restore_user_call_depth handle
1551 (read_command_lines): Check whether to prompt before calling
1553 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
1554 input_from_terminal_p check.
1558 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
1559 (s390_remove_watchpoint): Likewise.
1563 * prologue-value.c, prologue-value.h: New files.
1564 * Makefile.in (prologue_value_h): New variable.
1565 (HFILES_NO_SRCDIR): List prologue-value.h.
1566 (SFILES): List prologue-value.c.
1567 (COMMON_OBS): List prologue-value.o.
1568 (prologue-value.o): New rule.
1572 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
1573 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
1574 xstormy16_frame_prev_register): Change void* to gdb_byte*.
1575 (xstormy16_push_dummy_call): Add block-local char* val,
1576 to avoid type conflict with outer scope variable.
1580 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
1584 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
1585 offsets for languages like Fortran.
1589 * config/pa/hppa64.mt: Use HPUX version of the tm file.
1593 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
1594 Try to deal with continuation line.
1595 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
1597 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
1598 Future proof against new fields being added to MI output.
1599 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
1600 (gdbmi-frame-handler): Update to new variable name
1601 gdb-get-buffer-create.
1602 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
1603 frames which except the innermost (where execution has stopped).
1607 * solib-som.c (link_map_start): Don't error out if there is
1612 * linux-nat.c (linux_ops_saved): New.
1613 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
1614 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
1615 (linux_nat_fetch_registers, linux_nat_store_registers)
1616 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
1617 (init_lwp_list): Don't set threaded.
1618 (add_lwp): Don't modify threaded.
1619 (delete_lwp): Don't mention non-threaded mode.
1620 (linux_nat_switch_fork): New.
1621 (linux_nat_attach): Update inferior_ptid.
1622 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
1624 (linux_nat_kill): Handle pending forks and saved forks.
1625 (linux_nat_mourn_inferior): Handle saved forks.
1626 (linux_nat_pid_to_str): Don't use the LWP form when there is
1628 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
1629 (linux_nat_add_target): New.
1630 (_initialize_linux_nat): Don't initialize the linux native target
1632 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
1634 * linux-fork.c: Include "linux-nat.h".
1635 (add_fork): Update initial PID.
1636 (fork_load_infrun_state): Call linux_nat_switch_fork.
1637 * Makefile.in (linux-fork.o): Update.
1639 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
1640 linux_nat_add_target instead of add_target.
1641 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
1642 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
1643 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
1644 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
1645 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
1646 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
1647 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
1648 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
1649 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
1650 * s390-nat.c (_initialize_s390_nat): Likewise.
1651 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
1652 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
1656 * linux-fork.c: Include "gdb_assert.h".
1657 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
1658 Update the register cache and selected frame also.
1659 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
1660 to single fork mode if necessary.
1661 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
1662 * Makefile.in (linux_fork_h): New.
1663 (linux-fork.o, linux-nat.o): Update.
1667 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
1671 * symtab.h (enum address_class): Doc fix.
1675 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
1676 * target.c (push_target): Fix typo in comment.
1677 * remote.c (remote_watch_data_address): Fix typo in comment.
1678 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
1682 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
1684 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
1685 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
1686 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
1687 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
1688 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
1689 (frv_elf_fpregset_t): Define types.
1690 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
1691 (frv_linux_regset_from_core_section: New functions.
1692 (frv_linux_gregset, frv_linux_fpregset): New static globals.
1693 (frv_linux_init_abi): Register the `regset_from_core_section' method.
1694 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1695 * solib-frv.c (frv_current_sos): Relocate main executable after
1697 (frv_clear_solib): Clean up space associated with
1698 `main_executable_lm_info'.
1699 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
1703 * Makefile.in (mips_linux_tdep_h): New.
1704 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
1705 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
1707 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
1708 (mips64_linux_regsets_fetch_registers)
1709 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
1710 (mips64_linux_store_registers): New.
1711 (_initialize_mips_linux_nat): Override to_fetch_registers and
1713 * mips-linux-tdep.h: New file.
1714 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
1715 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
1716 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
1717 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
1718 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
1719 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
1720 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
1721 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
1722 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
1723 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
1724 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
1725 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
1726 (supply_32bit_reg): Use gdb_byte.
1727 (supply_64bit_reg): New.
1728 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
1729 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
1730 (fill_gregset, supply_fpregset): Update for renamed types.
1731 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
1732 (mips64_fill_gregset): Make global. Handle 32-bit register
1734 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
1735 FP regsets properly.
1739 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
1740 (mips_fill_gregset): Renamed from fill_gregset.
1741 (mips_supply_fpregset): Renamed from supply_fpregset.
1742 (mips_fill_fpregset): Renamed from fill_fpregset.
1743 (fetch_core_registers): Update calls.
1744 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
1749 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
1753 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
1754 Correct arithmetic for 64-bit CORE_ADDR.
1758 * mips-linux-tdep.c: Include "floatformat.h".
1759 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
1760 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
1762 (print_gp_register_row): Don't print spaces before ignored
1763 or floating point registers.
1764 * Makefile.in (mips-linux-tdep.o): Update.
1768 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
1770 (non_heuristic_proc_desc): Likewise.
1774 * mips-linux-nat.c: Include "gdb_proc_service.h".
1775 (PTRACE_GET_THREAD_AREA): Define.
1776 (ps_get_thread_area): New.
1777 * Makefile.in (mips-linux-nat.o): Update.
1781 * MAINTAINERS: Use my work address.
1785 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
1786 instead of getting tricky for the multi-fork case.
1787 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
1788 for each fork, and then use init_fork_list to delete them.
1792 * solib-svr4.c (svr4_current_sos): Move up initialization of
1793 l_addr, such that it clearly covers all cases.
1797 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
1798 libunwind_frame_prev_register to use a gdb_byte buffer and
1799 extract_unsigned_integer.
1800 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
1802 * libunwind-frame.c (libunwind_frame_prev_register): Change type
1803 of last argument to `gdb_byte *'
1804 * libunwind-frame.h: Adjust declaration.
1808 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
1809 (arm_frame_align): New function.
1810 (arm_gdbarch_init): Use it.
1814 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
1815 Committed by Andrew Cagney.
1819 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
1820 address to MDR register.
1824 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
1829 * somread.c (som_symfile_read): Update comment and remove unneeded
1830 use of a deprecated variable.
1834 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
1835 runtime specification.
1836 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
1837 (unwind_command): Likewise.
1841 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
1842 Pseudo_SP_Set in unwind record.
1846 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
1847 TDEP->is_elf to determine if we are working with a SOM binary.
1848 (null_symtab_and_line): Remove unused variable.
1849 * config/pa/hppa64.mt: Use tm-hppa.h.
1850 * config/pa/tm-hppa64.h: Remove file.
1854 * f-typeprint.c (f_type_print_base): Delete the redundant space.
1858 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
1859 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
1861 (am33_linux_sigframe_cache_init): New function.
1862 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
1864 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
1865 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
1866 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
1867 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
1868 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
1869 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
1870 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
1871 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
1872 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
1874 (am33_linux_init_osabi): Register signal frame unwinders.
1878 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
1879 out of pattern match by saving relevant state. Fix stack size
1884 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
1886 * solib-svr4.c (struct lm_info): Add l_addr field.
1887 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
1888 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
1889 (LM_DYNAMIC_FROM_LINK_MAP): New.
1890 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
1891 (svr4_current_sos): Initialize l_addr. Adjust.
1892 (svr4_relocate_section_addresses): Adjust.
1893 (svr4_ilp32_fetch_link_map_offsets): Define new members.
1894 (svr4_lp64_fetch_link_map_offsets): Likewise.
1895 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1896 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
1897 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1898 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
1902 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
1903 * config/sparc/linux64.mt (TDEPFILES): Likewise.
1907 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
1908 (ppc_linux_remove_watchpoint): Likewise, and args.
1912 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
1917 * gdb/defs.h: unconditionally include <fcntl.h>, and
1918 ensure that O_BINARY is defined.
1919 * gdb/solib.c(solib_open): ensure solib files are opened in
1921 * gdb/corelow.c: Remove O_BINARY macro definition.
1922 * gdb/exec.c: Remove O_BINARY macro definition
1923 * gdb/remote-rdp.c: Remove O_BINARY macro definition
1924 * gdb/source.c: Remove O_BINARY macro definition
1925 * gdb/symfile.c: Remove O_BINARY macro definition
1929 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
1931 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
1936 * f-exp.y: Symbol '%' is not used as the modulus operator in
1937 Fortran. Delete this from Fortran expression.
1938 It is now used by Fortran 90 and later to access the member
1939 of derived type. Add this into Fortran expression.
1940 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
1941 Print each elements in the derived type.
1942 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
1943 level into the function definition to do indented printing. And
1944 call fprintfi_filtered instead to do indented printing.
1945 (f_type_print_base): Replace fprintf_filtered with the indented
1946 version (fprintfi_filtered).
1947 (f_type_print_base): Call indented print_equivalent_f77_float_type.
1948 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
1949 the definition of the derived type.
1953 * gdb_curses.h: Provide a fallback prototype for tgetnum.
1957 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
1959 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
1960 (DOUBLEST_SCAN_FORMAT): New.
1961 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
1962 (processReal): Use DOUBLEST_SCAN_FORMAT.
1963 * c-exp.y (parse_number): Likewise.
1964 * jv-exp.y (parse_number): Likewise.
1965 * objc-exp.y (parse_number): Likewise.
1966 * p-exp.y (parse_number): Likewise.
1970 * event-top.c (async_do_nothing, async_disconnect)
1971 (async_stop_sig, async_float_handler): Remove duplicated
1973 (handle_sighup): Guard prototype with SIGHUP.
1974 (async_do_nothing): Guard function and prototype with
1976 (async_disconnect): Guard prototype with SIGHUP.
1977 (async_stop_sig): Guard prototype with STOP_SIGNAL.
1981 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
1985 * win32-termcap.c (tputs): Return 0.
1989 * configure.ac: Introduce ---enable-werror, which adds -Werror to
1990 the compiler command line. Enabled by default. Disable with
1992 * configure regenerate.
1996 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
2001 * defs.h (directory_switch): Add prototype.
2002 * main.c (captured_main): Use directory_switch() instead of
2003 directory_command() to add directories from the -d switch.
2004 * source.c (directory_switch): New function.
2005 (add_path): Use buildargv() to parse spaces in filenames properly.
2006 Strip multiple trailing '/' rather than just one.
2010 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
2011 hand decoding the command line, to allow use of quotes and spaces.
2012 (_initialize_symfile): Reorganize the help message for add-symbol-file
2013 such that 'help files' shows a better message.
2017 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
2018 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
2019 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
2020 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
2024 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
2029 * remote.c: Add an enumeration for configurable remote
2031 (remote_protocol_packets, set_remote_protocol_packet_cmd)
2032 (show_remote_protocol_packet_cmd): New.
2033 (remote_protocol_vcont)
2034 (set_remote_protocol_vcont_packet_cmd)
2035 (show_remote_protocol_vcont_packet_cmd)
2036 (remote_protocol_qSymbol)
2037 (set_remote_protocol_qSymbol_packet_cmd)
2038 (show_remote_protocol_qSymbol_packet_cmd)
2039 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
2040 (show_remote_protocol_P_packet_cmd)
2042 (set_remote_protocol_Z_software_bp_packet_cmd)
2043 (show_remote_protocol_Z_software_bp_packet_cmd)
2044 (set_remote_protocol_Z_hardware_bp_packet_cmd)
2045 (show_remote_protocol_Z_hardware_bp_packet_cmd)
2046 (set_remote_protocol_Z_write_wp_packet_cmd)
2047 (show_remote_protocol_Z_write_wp_packet_cmd)
2048 (set_remote_protocol_Z_read_wp_packet_cmd)
2049 (show_remote_protocol_Z_read_wp_packet_cmd)
2050 (set_remote_protocol_Z_access_wp_packet_cmd)
2051 (show_remote_protocol_Z_access_wp_packet_cmd)
2052 (remote_protocol_binary_download)
2053 (set_remote_protocol_binary_download_cmd)
2054 (show_remote_protocol_binary_download_cmd)
2055 (remote_protocol_qPart_auxv)
2056 (set_remote_protocol_qPart_auxv_packet_cmd)
2057 (show_remote_protocol_qPart_auxv_packet_cmd)
2058 (remote_protocol_qGetTLSAddr)
2059 (set_remote_protocol_qGetTLSAddr_packet_cmd)
2060 (show_remote_protocol_qGetTLSAddr_packet_cmd)
2062 (set_remote_protocol_p_packet_cmd)
2063 (show_remote_protocol_p_packet_cmd): Delete.
2065 (init_all_packet_configs): Simplify.
2066 (set_remote_protocol_Z_packet_cmd)
2067 (show_remote_protocol_Z_packet_cmd)
2068 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
2069 (remote_fetch_registers, remote_prepare_to_store)
2070 (remote_store_registers, check_binary_download)
2071 (remote_write_bytes, remote_insert_breakpoint)
2072 (remote_remove_breakpoint, remote_insert_watchpoint)
2073 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2074 (remote_remove_hw_breakpoint, remote_xfer_partial)
2075 (remote_get_thread_local_address): Update for packet array.
2076 (_initialize_remote): Likewise; also update for common
2081 * symfile.c (place_section): Correct retry logic.
2085 * win32_nat.c (cygwin_load_start): New variable.
2086 (cygwin_load_end): Ditto.
2087 (have_saved_context): Ditto.
2088 (saved_context): Ditto.
2089 (max_dll_name_len): Delete obsolete variable.
2090 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
2091 if we are in a cygwin signal rather than a windows signal.
2092 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
2093 if dll being loaded is the cygwin DLL.
2094 (register_loaded_dll): Remove calculation of max_dll_name_len.
2095 (win32_clear_solib): Ditto.
2096 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
2098 (handle_output_debug_string): Detect and store signal information sent
2100 (handle_exception): Silently pass on errors in the cygwin DLL. Return
2101 -1 on first pass exception.
2102 (win32_continue): Remove spurious clearing of continue_status.
2103 (get_win32_debug_event): Deal differently first chance exception.
2107 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
2112 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
2113 a non lval value zero, of the appropriate type, when avoiding
2115 * typeprint.c (ptype_eval): Remove function and declaration.
2116 (ptype_command): Simplify to just a call to whatis_exp.
2120 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
2121 Load insn opcodes as unsigned values.
2125 * doublest.h (DOUBLEST): Use long double only if we can scan
2126 it in. Undefine HAVE_LONG_DOUBLE otherwise.
2127 (DOUBLEST_FORMAT): New.
2128 * c-exp.y (parse_number): Use it.
2129 * jv-exp.y (parse_number): Likewise.
2130 * objc-exp.y (parse_number): Likewise.
2131 * p-exp.y (parse_number): Likewise.
2132 * varobj.c (free_variable): Silence type-punning warnings.
2133 * tui/tui-data.h (struct tui_list): Change type of list member.
2134 * tui/tui-data.c: Remove no-longer-needed type casts.
2135 (source_windows): Silence type-punning warnings.
2136 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
2140 Fix PR breakpoints/2080.
2141 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
2142 (i386_analyze_stack_align): New function.
2143 (i386_analyze_prologue): Use i386_analyze_stack_align.
2144 (i386_frame_cache): Deal with stack realignment.
2148 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
2149 (gdb-break-list-regexp): Match "what" field if present.
2150 (gdb-stack-list-frames-regexp): Match "from" field if present.
2151 (gdb-stack-list-frames-handler): Present output like "info
2152 breakpoints" so regexps can be shared with gdb-ui
2156 * NEWS: Mention native Windows support.
2157 * Makefile.in (gdb_select_h, ser_tcp_h): New.
2158 (ALLDEPFILES): Add ser-mingw.c.
2159 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
2160 (ser-tcp.o, ser-unix.o): Update.
2161 (ser-mingw.o): New rule.
2162 * configure: Regenerated.
2163 * configure.ac: Add ser-mingw.o for mingw32.
2164 * ser-mingw.c: New file.
2165 * event-loop.c: Include "gdb_select.h".
2166 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
2167 * ser-base.c: Include "gdb_select.h".
2168 (ser_base_wait_for): Use gdb_select.
2169 * serial.c (serial_for_fd): New function.
2170 (serial_fdopen): Try "terminal" before "hardwire". Initialize
2171 the allocated struct serial.
2172 (serial_wait_handle): New function.
2173 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
2174 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
2175 * gdb_select.h: New file.
2176 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
2177 (net_close, net_read_prim, net_write_prim): Make global.
2178 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
2179 Document why we can not use gdb_select.
2180 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
2181 * ser-tcp.h: New file.
2182 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
2183 (handle_sigio): Use gdb_select.
2184 (initialize_stdin_serial): New function.
2185 * terminal.h (initialize_stdin_serial): New prototype.
2186 * top.c (gdb_init): Call initialize_stdin_serial.
2187 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
2188 event-loop.c. Add exception condition support. Use serial_for_fd
2189 and serial_wait_handle. Fix timeout handling.
2190 * posix-hdep.c: Include "gdb_select.h".
2191 (gdb_select): New function.
2192 * remote-st.c (connect_command): Use gdb_select.
2193 * ser-unix.c: Include "gdb_select.h".
2194 (hardwire_send_break, wait_for): Use gdb_select.
2198 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
2199 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
2200 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
2201 to posix-hdep.o by default.
2202 * configure: Regenerated.
2203 * configure.host: Document gdb_host_obs. Add an entry for
2204 i[34567]86-*-mingw32*.
2205 * mingw-hdep.c, posix-hdep.c: New files.
2206 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
2210 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
2211 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
2212 * rs6000-tdep.h: New file.
2213 * rs6000-tdep.c: Include "rs6000-tdep.h".
2214 (rs6000_gdbarch_init): Remove enabling of software single step.
2215 Will be done in the AIX-specific initialization routine.
2216 * rs6000-aix-tdep.c: New file.
2217 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
2218 * Makefile.in (rs6000_tdep_h): New variable.
2219 (rs6000-tdep.o): Update dependencies.
2220 (rs6000-aix-tdep.o): New rule.
2224 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
2225 instead of add_setshow_zinteger_cmd to defined the aix-thread
2230 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
2234 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
2235 30 bits. Add load_all_dies flag.
2236 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
2237 Load DW_TAG_member by default. Remove internal_error call.
2238 (find_partial_die): Reload the compilation unit if we can not find
2239 a DIE in the cache. Call internal_error here if we still can not
2244 * breakpoint.c (print_one_breakpoint): Add break to case
2245 bp_catch_vfork in switch statement.
2249 * config/i386/nm-i386sol2.h: Update copyright year.
2250 * config/mips/nm-irix5.h: Ditto.
2251 * config/sparc/nm-sol2.h: Ditto.
2252 * s390-nat.c: Ditto.
2253 * ppc-linux-nat.c: Ditto.
2257 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
2258 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2259 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2260 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2261 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2262 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
2263 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2264 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
2265 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
2266 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
2267 add to_region_ok_for_hw_watchpoint.
2268 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
2269 (s390_region_ok_for_hw_watchpoint): New.
2270 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
2271 and add to_region_ok_for_hw_watchpoint.
2272 * target.c (default_region_size_ok_for_hw_watchpoint,
2273 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
2274 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
2275 inheritance and default_region_size_ok_for_hw_watchpoint.
2276 (default_region_ok_for_hw_watchpoint): If len is less than or equal
2277 the length of void pointer, return ok.
2278 (default_region_size_ok_for_hw_watchpoint): Delete.
2279 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
2280 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
2281 * target.h (struct target_ops): Delete
2282 to_region_size_ok_for_hw_watchpoint.
2283 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2288 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
2289 PTRACE_GETSIGINFO): Define.
2290 (last_stopped_data_address): New.
2291 (ppc_linux_check_watch_resources): New function.
2292 (ppc_linux_region_ok_for_hw_watchpoint): New function.
2293 (ppc_linux_insert_watchpoint): New function.
2294 (ppc_linux_remove_watchpoint): New function.
2295 (ppc_linux_stopped_data_address): New function.
2296 (ppc_linux_stopped_by_watchpoint): New function.
2297 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
2298 related target vectors.
2299 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
2300 to have nonsteppable watchpoint.
2301 * target.c (default_region_ok_for_hw_watchpoint,
2302 debug_to_region_ok_for_hw_watchpoint): New prototypes.
2303 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
2304 and set default to_region_ok_for_hw_watchpoint.
2305 (default_region_ok_for_hw_watchpoint): New function.
2306 (debug_to_region_ok_for_hw_watchpoint): New function.
2307 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
2309 * target.h (struct target_ops): Add a new target vector
2310 to_region_ok_for_hw_watchpoint.
2311 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
2312 defined anyplace else.
2315 * symfile.c (add_symbol_file_command): Abort if the user forgot
2316 to provide the address when the file has been loaded.
2320 * MAINTAINERS: Update file based on maintainers survey. Add
2321 a note to Past Maintainers. Move unresponsive or inactive
2322 maintainers to Authorized Committers or Past Maintainers as
2323 appropriate. Correct Jim Kingdon's email address. Remove
2324 vacant areas of responsibility.
2328 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
2333 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
2334 * exceptions.c (exception_none, exceptions_state_mc_init)
2335 (throw_vfatal): Use GDB_NO_ERROR.
2339 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
2340 r_map_size members. Add r_version_offset, r_version_size and
2341 r_ldsomap_offset members.
2342 * solib-svr4.c (solib_svr4_r_map): Renamed from
2343 fetch_link_map_member. Simplify using read_memory_typed_address.
2344 (solib_svr4_r_ldsomap): New function.
2345 (open_symbol_file_object): Use solib_svr_r_map.
2346 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
2347 linker by using solib_svr4_r_ldsomap.
2348 (svr4_ilp32_fetch_link_map_offsets)
2349 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
2351 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
2352 changes to `struct link_map_offsets'.
2353 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
2354 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
2355 `struct link_map_offsets'.
2359 * linux-nat.c (struct saved_ptids, threads_to_delete)
2360 (record_dead_thread, prune_lwps, find_thread_from_lwp)
2362 (linux_nat_resume): Call prune_lwps.
2363 (wait_lwp, linux_nat_wait): Call exit_lwp.
2367 * printcmd.c (printf_command): Make format string checking
2368 stricter. Add separate cases for long_arg, ptr_arg, and
2370 * utils.c (xstrvprintf): Improve the error message issued
2371 for a bad format string.
2372 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
2374 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
2375 $(NO_WERROR_CFLAGS).
2376 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
2381 * Makefile.in (remote.o): Update.
2382 * remote.c (show_packet_config_cmd): Shorten messages.
2383 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
2384 (show_remote_cmd): Iterate.
2385 (_initialize_remote): Remove remote_set_cmdlist,
2386 remote_show_cmdlist.
2390 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
2391 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
2393 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
2394 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
2395 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
2397 * gdbtypes.c: Include "hashtab.h".
2398 (build_gdbtypes): Remove extra prototype.
2399 (struct type_pair, type_pair_hash, type_pair_eq)
2400 (create_copied_types_hash, copy_type_recursive): New.
2401 * gdbtypes.h: Include "hashtab.h".
2403 (create_copied_types_hash, copy_type_recursive): New prototypes.
2404 * objfiles.c (free_objfile): Call preserve_values.
2405 * symfile.c (reread_symbols): Likewise.
2406 (clear_symtab_users): Remove calls to clear_value_history and
2408 * value.c (clear_value_history, clear_internalvars): Removed.
2409 (preserve_one_value, preserve_values): New functions.
2410 * value.h (clear_value_history, clear_internalvars): Removed.
2411 (preserve_values): New prototype.
2413 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
2418 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
2423 * MAINTAINERS: Use a consistent email address for brobecker.
2427 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
2428 in the previous change.
2433 * fork-child.c (fork_inferior): Don't call
2434 solib_create_inferior_hook.
2435 * infcmd.c (post_create_inferior): Call solib_add,
2436 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
2437 (attach_command): Don't call solib_add or
2438 re_enable_breakpoints_in_shlibs. Call post_create_inferior
2440 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
2441 or observer_notify_inferior_created. Call post_create_inferior
2443 * corelow.c: Don't include "observer.h".
2444 (solib_add_stub): Deleted.
2445 (core_open): Don't call observer_notify_inferior_created or
2446 solib_add_stub. Call post_create_inferior instead.
2447 * inf-ptrace.c: Don't include "observer.h".
2448 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
2449 * inf-ttrace.c: Don't include "observer.h".
2450 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
2451 * inferior.h (solib_create_inferior_hook): Remove redundant
2453 * inftarg.c: Don't include "observer.h".
2454 (child_attach): Don't call observer_notify_inferior_created.
2455 * Makefile.in: Update dependencies.
2459 * infcmd.c: Include "observer.h".
2460 (post_create_inferior): New function.
2461 (run_command_1): Call it. Also call proceed.
2462 * inferior.h (post_create_inferior): New prototype.
2463 * Makefile.in (infcmd.o): Update.
2465 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
2466 * go32-nat.c (go32_create_inferior): Likewise.
2467 * nto-procfs.c (procfs_create_inferior): Likewise.
2468 * procfs.c (procfs_create_inferior): Likewise.
2469 * remote-sim.c (gdbsim_create_inferior): Likewise.
2470 * remote.c (extended_remote_create_inferior)
2471 (extended_remote_async_create_inferior): Likewise.
2472 * win32-nat.c (win32_create_inferior): Likewise.
2473 * wince.c (child_create_inferior): Likewise.
2475 * monitor.c (monitor_create_inferior): Don't call proceed.
2476 Set the PC manually.
2477 * ocd.c (ocd_create_inferior): Likewise.
2478 * remote-e7000.c (e7000_create_inferior): Likewise.
2479 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2480 * remote-mips.c (mips_create_inferior): Likewise.
2481 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
2482 * remote-sds.c (sds_create_inferior): Likewise.
2483 * remote-st.c (st2000_create_inferior): Likewise.
2485 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
2486 proceed or observer_notify_inferior_created.
2487 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
2488 * inftarg.c (child_create_inferior): Likewise.
2492 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
2493 after mourning the inferior.
2497 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
2501 * parse.c (source.h): Include.
2502 (parse_exp_in_context): Use static source context if no
2503 other context found.
2507 * sh-tdep.c: Include reggroups.h.
2508 (sh_register_reggroup_p): New function.
2509 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
2510 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
2514 * cli/cli-cmds.c: Include fcntl.h.
2515 (source_command): Use the GDB search path to find script files.
2521 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
2522 instructions. Handle PIC bcl.
2526 * config/djgpp/README: Typo fix.
2527 * config/djgpp/fnchange.lst: Update.
2531 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
2532 (sparc_address_from_register): New prototype.
2533 (sparcnbsd_step_trap): New prototype.
2534 * sparc-tdep.c (sparc_address_from_register): Make globally
2536 (sparc_analyze_control_transfer): Change prototype to accept
2537 `struct gdbarch *' as first argument. Allow for optional hnadling
2538 for trap instructions.
2539 (sparc_step_trap): New function.
2540 (sparc_software_single_step): Adjust call to
2541 sparc_analyze_control_trabsfer.
2542 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
2543 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
2544 (sparc32nbsd_init_abi): Set TDEP->step_trap.
2545 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
2546 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
2548 * sparc-tdep.c (sparc32_return_value): Convert to use
2549 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
2550 RETURN_VALUE_STRUCT_CONVENTION.
2551 (sparc32_extract_struct_value_address): Remove.
2555 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
2556 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
2560 * solib.c (info_sharedlibrary_command): Avoid internal_error.
2564 * i386-tdep.c (i386_mxcsr_type): New variable.
2565 (i386_init_types): Initialize i386_mxcsr_type.
2566 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
2567 * i386-tdep.c (i386_mxcsr_type): New extern.
2568 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
2573 * Makefile.in (remote-rdi.o): Remove.
2574 (rdi-share/libangsd.a): Likewise.
2575 * README: Don't mention remote-rdi.c.
2576 * NEWS: Mention removal of rdi-share.
2577 * configure.ac: Don't configure rdi-share subdirectory.
2578 * remote-rdi.c: Remove.
2579 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
2580 (TDEPLIBS): Remove rdi-share/libangsd.a.
2581 * rdi-share/Makefile.am: Remove.
2582 * rdi-share/Makefile.in: Likewise.
2583 * rdi-share/README.CYGNUS: Likewise.
2584 * rdi-share/aclocal.m4: Likewise.
2585 * rdi-share/adp.h: Likewise.
2586 * rdi-share/adperr.h: Likewise.
2587 * rdi-share/angel.h: Likewise.
2588 * rdi-share/angel_bytesex.c: Likewise.
2589 * rdi-share/angel_bytesex.h: Likewise.
2590 * rdi-share/angel_endian.h: Likewise.
2591 * rdi-share/ardi.c: Likewise.
2592 * rdi-share/ardi.h: Likewise.
2593 * rdi-share/armdbg.h: Likewise.
2594 * rdi-share/buffers.h: Likewise.
2595 * rdi-share/chandefs.h: Likewise.
2596 * rdi-share/channels.h: Likewise.
2597 * rdi-share/chanpriv.h: Likewise.
2598 * rdi-share/configure: Likewise.
2599 * rdi-share/configure.in: Likewise.
2600 * rdi-share/crc.c: Likewise.
2601 * rdi-share/crc.h: Likewise.
2602 * rdi-share/dbg_conf.h: Likewise.
2603 * rdi-share/dbg_cp.h: Likewise.
2604 * rdi-share/dbg_hif.h: Likewise.
2605 * rdi-share/dbg_rdi.h: Likewise.
2606 * rdi-share/devclnt.h: Likewise.
2607 * rdi-share/devices.h: Likewise.
2608 * rdi-share/devsw.c: Likewise.
2609 * rdi-share/devsw.h: Likewise.
2610 * rdi-share/drivers.c: Likewise.
2611 * rdi-share/drivers.h: Likewise.
2612 * rdi-share/etherdrv.c: Likewise.
2613 * rdi-share/ethernet.h: Likewise.
2614 * rdi-share/host.h: Likewise.
2615 * rdi-share/hostchan.c: Likewise.
2616 * rdi-share/hostchan.h: Likewise.
2617 * rdi-share/hsys.c: Likewise.
2618 * rdi-share/hsys.h: Likewise.
2619 * rdi-share/logging.c: Likewise.
2620 * rdi-share/logging.h: Likewise.
2621 * rdi-share/msgbuild.c: Likewise.
2622 * rdi-share/msgbuild.h: Likewise.
2623 * rdi-share/params.c: Likewise.
2624 * rdi-share/params.h: Likewise.
2625 * rdi-share/rx.c: Likewise.
2626 * rdi-share/rxtx.h: Likewise.
2627 * rdi-share/serdrv.c: Likewise.
2628 * rdi-share/serpardr.c: Likewise.
2629 * rdi-share/sys.h: Likewise.
2630 * rdi-share/tx.c: Likewise.
2631 * rdi-share/unixcomm.c: Likewise.
2632 * rdi-share/unixcomm.h: Likewise.
2636 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
2637 Change type of last argument to `gdb_byte *'.
2641 * hppa-tdep.h (hppa_in_solib_call_trampoline)
2642 (hppa_skip_trampoline_code): New prototypes.
2643 * hppa-tdep.c (struct insn_pattern): New.
2644 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
2645 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
2646 here from hppa-linux-tdep.c
2647 (HPPA_MAX_INSN_PATTERN_LEN): New define.
2648 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
2649 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
2650 functions based on functions removed from hppa-linux-tdep.c.
2651 * hppa-linux-tdep.c (hppa_long_branch_stub)
2652 (hppa_long_branch_pic_stub, hppa_import_stub)
2653 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
2654 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
2655 (hppa_linux_in_solib_call_trampoline)
2656 (hppa_linux_skip_trampoline_code): Removed.
2657 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
2658 hppa_in_solib_call_trampoline and skip_trampoline_code to
2659 hppa_skip_trampoline_code.
2660 * hppabsd-tdep.c (hppabsd_init_abi): Set
2661 TDEP->in_solib_call_trampoline and skip_trampoline_code.
2665 * MAINTAINERS: Change my E-mail address.
2667 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
2668 * configure: Regenerated.
2672 * MAINTAINERS: Overhaul.
2676 Based on a previous patch form Michal Ludvig:
2677 * amd64-tdep.c (amd64_sse_type): Remove.
2678 (amd64_register_info): Use i386_eflags_type and i386_sse_type
2680 (AMD64_NUM_REGS): Use ARRAY_SIZE.
2681 (amd64_register_type): Remove code to build amd_sse_type.
2682 * i386-tdep.c (i386_eflag_type): New variable.
2683 (i386_mmx_type, i386_sse_type): Make global.
2684 (i386_init_types): New function.
2685 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
2686 (i386_register_type): Return i386_eflag_type, i386_sse_type and
2687 i386_mmx_type when appropriate.
2688 (_initialize_i386_tdep): Call i386_init_types.
2689 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
2692 Based on a previous patch form Michal Ludvig:
2693 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
2695 (is_integral_type, rank_one_type, recursive_dump_type): Add
2696 support for TYPE_CODE_FLAGS.
2697 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
2698 (append_flags_type_field, init_flags_type): New prototypes.
2699 * ada-valprint.c (ada_val_print_1): Add support for
2701 * c-valprint.c (c_val_print): Likewise.
2702 * f-valprint.c (f_val_print): Likewise.
2703 * p-valprint.c (pascal_val_print): Likewise.
2704 * valprint.c (val_print_type_code_flags): New function.
2705 * valprint.h (val_print_type_code_flags): New prototype.
2706 * value.c (unpack_long, value_from_longest): Add support for
2711 * MAINTAINERS: Very belatedly remove myself from from the list of
2712 people caught up in the paper trail.
2716 * symtab.h (struct general_symbol_info): Use gdb_byte for
2718 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
2719 a floating-point constant's value.
2720 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
2722 * findvar.c (read_var_value): Eliminate needless temporary.
2724 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
2725 to match prior change to dwarf2_read_section's type.
2729 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
2730 * rs6000-tdep.c (insn_changes_sp_or_jumps)
2731 (rs6000_in_function_epilogue_p): New functions.
2732 (rs6000_gdbarch_init): Set in_function_epilogue_p.
2736 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
2737 (struct line_header, struct partial_die_info, struct dwarf_block):
2738 Use gdb_byte for members that refer to Dwarf section contents.
2739 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
2740 dwarf_decode_macros, load_comp_unit, load_partial_dies,
2741 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
2742 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
2743 read_8_bytes, read_address, read_attribute, read_attribute_value,
2744 read_comp_unit, read_comp_unit_head, read_die_and_children,
2745 read_die_and_siblings, read_full_die, read_indirect_string,
2746 read_initial_length, read_n_bytes, read_offset, read_partial_die,
2747 read_signed_leb128, read_string, read_unsigned_leb128,
2748 skip_children, skip_leb128, skip_one_die): Same.
2752 * complaints.c (stop_whining): Make signed.
2753 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
2757 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
2762 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
2763 (read_offset): Change BYTES_READ argument to unsigned int.
2764 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
2765 (create_all_comp_units, dwarf2_get_pc_bounds)
2766 (dwarf_decode_line_header, var_decode_location)
2767 (dwarf_decode_macros): Change local BYTES_READ variables to
2769 (read_indirect_string): Remove obsolete cast.
2773 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
2775 (remote_fileio_func_open, remote_fileio_func_rename)
2776 (remote_fileio_func_unlink, remote_fileio_func_stat)
2777 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2778 (remote_fileio_func_system): Cast the arguments to
2779 remote_read_bytes and remote_write_bytes.
2780 (remote_fileio_func_read, remote_fileio_func_write): Use a
2782 * remote.h (remote_read_bytes, remote_write_bytes): Update
2784 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
2785 (threadref_to_int): Replace bogus char * cast.
2786 (remote_unpack_thread_info_response): Use int for tag.
2787 (remote_threads_extra_info, remote_check_symbols): Cast string
2788 arguments to hex2bin.
2789 (remote_wait): Use a char buffer for packets and a gdb_byte
2790 buffer for registers.
2791 (remote_async_wait): Likewise.
2792 (remote_prepare_to_store, store_register_using_P)
2793 (remote_store_registers): Use gdb_byte buffers.
2794 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
2795 for MYADDR and char buffers for strings.
2796 (remote_xfer_partial): Add casts for string operations on READBUF.
2797 (remote_rcmd): Cast strings passed to bin2hex.
2801 * aclocal.m4: Regenerate.
2805 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
2806 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
2807 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
2808 (mt_register_name): Lazily synthesize name for coprocessor pseudo
2810 (mt_copro_register_type): New. Broken out of ...
2811 (mt_register_type): ... here. Use it. Deal with coprocessor
2813 (mt_select_coprocessor): New.
2814 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
2815 coprocessor pseudo array.
2819 * breakpoint.c (insert_breakpoints): Check that a thread exists
2820 before inserting thread specific breakpoints.
2824 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
2827 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
2828 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
2829 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
2830 * config/alpha/nm-nbsd.h: Remove file.
2831 * config/alpha/nm-fbsd.h: Remove file
2832 * config/alpha/nbsd.mh (NAT_FILE): Remove.
2833 * config/alpha/fbsd.mh (NAT_FILE): Remove.
2837 * macroexp.c (expand): Initialize argc.
2838 * stabsread.c (read_type): Handle errors from read_args.
2839 (read_args): Return NULL for errors.
2843 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
2844 strcmp to compare string to a byte buffer.
2848 * printcmd.c (output_command): Always initialize fmt.size.
2849 (printf_command): Use gdb_byte.
2850 * symfile.c (separate_debug_file_exists): Use gdb_byte.
2851 (load_section_callback, read_target_long_array): Likewise.
2852 (simple_read_overlay_table, simple_read_overlay_region_table)
2853 (simple_overlay_update_1): Correct calls to read_target_long_array.
2854 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
2855 Also change local pointers.
2856 (val_print_string): Use gdb_byte.
2860 * alphafbsd-tdep.c: Include "solib-svr4.h".
2861 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2862 svr4_lp64_fetch_link_map_offsets.
2863 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
2864 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
2866 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2868 * config/alpha/nm-fbsd.h: Don't include "solib.h".
2872 * source.c (_initialize_source): Use add_setshow_integer_cmd.
2876 * linux-fork.c (delete_fork_command, detach_fork_command): Use
2881 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
2883 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2884 svr4_ilp32_fetch_link_map_offsets.
2885 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
2887 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2888 svr4_ilp32_fetch_link_map_offsets.
2889 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
2890 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
2891 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2892 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2894 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
2895 Simply call svr4_ilp32_fetch_link_map_offsets.
2896 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
2897 svr4_lp64_fetch_link_map_offsets.
2898 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
2900 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
2901 svr4_ilp32_fetch_link_map_offsets.
2902 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
2903 (s390x_svr4_fetch_link_map_offsets): Remove functions.
2904 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
2905 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
2910 * arm-tdep.c (arm_return_value): Change type of readbuf and
2911 writebuf arguments to `gdb_byte *'.
2913 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
2914 * Makefile.in (s390-tdep.o): Update dependencies.
2918 * sol2-tdep.h. sol2-tdep.c: New files.
2919 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
2920 (amd64_sol2_init_abi): Set skip_solib_resolver.
2921 * i386-sol2-tdep.c: Include "sol2-tdep.h".
2922 (i386_sol2_init_abi): Set skip_solib_resolver.
2923 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
2924 (sparc32_sol2_init_abi): Set skip_solib_resolver.
2925 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
2926 (sparc64_sol2_init_abi): Set skip_solib_resolver.
2927 * Makefile.in (sol2_tdep_h): New variable.
2928 (ALLDEPFILES): Add sol2-tdep.c.
2929 (sol2-tdep.o): New target.
2930 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
2931 (sparc64-sol2-tdep.o): Update dependencies
2932 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
2933 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2934 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
2935 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
2937 * hppa-linux-tdep.c: Fix copyright indentation.
2939 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
2940 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
2941 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
2943 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
2944 floating-point registers.
2948 * event-loop.c (gdb_select): Detect file descriptors that have
2953 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
2954 and long_double_format accordingly.
2958 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
2959 translation problems.
2960 * ada-lang.c (ada_value_struct_elt): Change interface and handling
2961 of errors to avoid translation problem (and less than optimal error
2963 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
2964 Use new interface to ada_value_struct_elt.
2965 * ada_lang.h (ada_value_struct_elt): Update declaration to new
2968 * ChangeLog: remove reference to ada-tasks.c from entry of
2973 * remote.c (get_memory_packet_size, set_thread)
2974 (remote_unpack_thread_info_response, remote_get_threadinfo)
2975 (parse_threadlist_response, remote_get_threadlist)
2976 (remote_current_thread, remote_threads_info)
2977 (remote_threads_extra_info, extended_remote_restart, get_offsets)
2978 (remote_check_symbols, remote_open_1, remote_detach)
2979 (remote_async_wait, remote_fetch_registers)
2980 (remote_store_registers, check_binary_download, putpkt_binary)
2981 (remote_insert_breakpoint, remote_insert_watchpoint)
2982 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
2983 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
2984 (packet_command): Remove redundant parenthesis.
2988 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
2989 (read_memory_typed_address, write_memory)
2990 (write_memory_unsigned_integer, write_memory_signed_integer): Use
2991 gdb_byte where appropriate.
2993 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
2996 * target.h (target_read_memory_partial, target_write_memory_partial):
2997 Change second argument to 'gdb_byte *'.
2998 * target.c (target_xfer_memory_partial): Change third argument to
3000 (target_read_memory_partial, target_write_memory_partial): Change
3001 second argument to 'gdb_byte *'.
3003 * linespec.c (decode_objc): Make i1 and i2 unsigned.
3004 (find_method): Set values.sals to NULL.
3008 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
3009 of 'char *' in cast.
3013 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
3014 * ada-lang.c: I18n markup.
3015 Editorial: change "can not" => "cannot" throughout.
3019 * Makefile.in: Sort dependencies.
3023 * top.c (control_level): Remove unused variable.
3027 * objfiles.c (source.h): Include.
3028 (free_objfile): Update comment about clear_symtab_users().
3029 (free_objfile): Check all symtabs of objfile being freed and if
3030 one of them is the current source symtab, call
3031 clear_current_source_symtab_and_line().
3035 Checkpoint/Restart for Linux.
3036 * linux-nat.c: Add support for debugging multiple forks.
3037 Add #include for linux-fork.h (interface spec).
3038 (super_mourn_inferior): New function pointer.
3039 (child_mourn_inferior): New function / target method.
3040 (linux_target): Claim to_mourn_inferior method pointer.
3041 (child_follow_fork): Call interface to linux-fork, conditionally
3042 add new fork processes to list of debugged processes.
3043 (kill_inferior): Use interface to linux-fork to kill
3046 * linux-fork.h: New file.
3047 * linux-fork.c: New file. Support for debugging multiple forks
3048 of the same program. Support for checkpoint and restart commands.
3050 * infrun.c (nullify_last_target_wait_ptid): New function.
3052 * Makefile.in: Add linux-fork.
3053 * config/*/linux.mh: Add linux-fork.
3054 * NEWS: Mention new functionality.
3058 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
3059 Change uses of "illegal" to "invalid".
3063 * ada-exp.y: Considerable reorganization to move functionality
3064 from ada-lex.l to here, where it is logically more appropriate.
3065 The original reason, however, was to prevent premature name
3066 lookups for selector names in record aggregates.
3067 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
3068 NAME for all of these.
3069 (VAR): New artificial token to clarify precedence rules.
3070 (OTHERS): New lexeme.
3071 (empty_stoken): New symbol.
3072 (%union): Remove ssym, voidval.
3073 (%type): Remove <voidval> type declarations.
3074 (syntax definitions): Add aggregates.
3075 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
3076 Rename some non-terminals to be closer to reference manual usage.
3077 Tighten up expression syntax to disallow certain non-Ada
3078 constructions such as X and then Y or else Z.
3079 (ada_parse): Remove initialization of left_block_context.
3080 (write_var_from_name): Remove.
3081 (write_var_or_type): New function, containing previous code from
3082 defunct write_var_from_name and name_lookup.
3083 (block_lookup): New function, moved from ada-lex.l
3084 (select_possible_type_sym): New function, factored out of
3085 name_lookup, which used to be in ada-lex.l.
3086 (find_primitive_type): Ditto.
3087 (chop_selector): Ditto.
3088 (write_ambiguous_var): New function, factored out of defunct
3089 write_var_from_name.
3090 (write_selectors): New function.
3091 (write_name_assoc): New function.
3092 (write_exp_op_with_string): New function.
3094 * ada-lex.l (processId): Change interface to return stoken.
3095 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
3096 (block_lookup, name_lookup): Remove. Functionality moved to
3098 (state IN_STRING): Remove.
3099 (rules): Handle string escapes in processString.
3101 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
3102 yylval.sval (as simple strings).
3103 All name look-ups now handled in ada-exp.y.
3104 Introduce "::" (COLONCOLON) token and return as separate token.
3105 (processId): Change return convention. Comment.
3106 Leave leading "'" in place.
3107 (processString): New function.
3108 (find_dot_all): Add note to comment.
3109 Fix problem that allowed match only at the end.
3111 * ada-lang.c: Introduce aggregates.
3112 (find_struct_field): Add new parameter to count fields skipped, and
3113 allow other output parameters to be NULL.
3114 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
3115 new find_struct_field.
3116 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
3117 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
3118 (num_component_specs, assign_component, assign_aggregate):
3119 (aggregate_assign_from_choices,aggregate_assign_positional)
3120 (aggregate_assign_others,add_component_interval):
3122 (ada_evaluate_subexp): Declare.
3123 Add aggregate-related operators.
3124 (ada_forward_operator_length): Declare.
3125 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
3126 Consolidate Ada operators, using ada_forward_operator_length.
3127 (ada_search_struct_field): Search in forward order.
3128 (ADA_OPERATORS): Add new aggregate operators.
3129 (ada_operator_length, ada_op_name, ada_forward_operator_length)
3130 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
3131 operators and OP_NAME.
3132 (ada_type_of_array): Use longest_to_int.
3133 (value_assign_to_component): New function.
3134 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
3136 (ada_forward_operator_length, ada_dump_subexp_body):
3139 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
3140 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
3144 * ada-lang.c (process_raise_exception_name): Remove extraneous
3145 definition from unsubmitted code.
3147 (is_lower_alphanum): New function.
3148 (ada_decode): Add support for decoding protected object subprograms
3149 and entries, and of entities declared inside protected object
3151 Also add missing handling for__{DIGITS}+ suffixes.
3152 Allow '$<digits>' as valid overloading suffix.
3153 (is_name_suffix): Add handling for protected type entriy suffixes.
3154 Also add support for protected type subprogram suffixes, but keep
3155 it commented out for now, as there is an ambiguity between these
3156 entities and other internally generated entities.
3157 Allow '$<digits>' as valid overloading suffix.
3158 (is_valid_name_for_wild_match): New function.
3159 (wild_match): Add an exra level of verification of the entity name
3160 before declaring it a match for the given pattern.
3162 (ada_type_of_array, ada_evaluate_subexp): Use more proper
3163 longest_to_int rather than cast.
3165 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
3167 (ada_coerce_to_simple_array): Call check_size to make sure
3168 that the object size is reasonable.
3170 (ada_value_primitive_packed_val): Use correct location in target
3171 buffer for extracting packed record fields that are themselves records.
3173 (add_defn_to_vec): Do not try to replace a stub type by its full
3174 type. Avoids a potential infinite loop.
3176 (ada_lookup_symbol): Move return incorrectly placed return statement,
3177 causing a loop that should be scanning all object files to only
3180 (ada_tag_name_2): New function.
3181 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
3182 use alternative representation.
3184 (ada_find_renaming_symbol): Strip the function name suffix when
3185 computing the XR type name.
3187 (ada_to_fixed_type): Try determining the tag only if we have the
3189 (to_fixed_array_type): Add comments.
3191 (ada_check_typedef): Replace expression checking whether the given
3192 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
3195 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
3196 '$' in addition to '.' for runtime auxiliary function name suffixes.
3197 See changes to ada_decode above.
3199 (struct task_control_block): Add field called_task. (This change is
3200 to keep synchronized with our local sources; it does not affect the
3201 public version yet.)
3203 * ada-typeprint.c (ada_print_type): Use int_string for printing
3204 modulus of modular type.
3206 (print_range): Trivial editorial comment fix.
3208 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
3209 double quote in string.
3213 * top.c: Add 2006 to list of copyright years in file header.
3217 * top.c (print_gdb_version): Update copyright year to 2006.
3223 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
3224 for NULL before assigning this_symtab_psymtab->objfile to objfile.
3225 (scan_xcoff_symtab): Initialize next_symbol_text_func.
3226 (Committed by Jim Blandy)
3228 For older changes see ChangeLog-2005.
3234 version-control: never