3 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4 of the section for the N64 ABI, fixed.
6 * config/mips/tm-irix6.h: Include solib.h.
10 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
15 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
16 and that "mi0" syntax has been removed.
20 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
21 * ppc-sysv-tdep.c: #include "gdb_string.h".
22 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
27 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
28 "vrsave"'s register number.
32 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
33 use frame_unwind_signed_register to obtain the PC.
34 (mips_frame_chain): Handle a generic dummy frame.
35 (mips_init_extra_frame_info): When a generic dummy frame, don't
36 re-compute the frame base.
37 (mips_pop_frame): Handle generic dummy frames.
38 (mips_gdbarch_init): When generic dummy frames, set
39 use_generic_dummy_frames, push_dummy_frame to
40 generic_push_dummy_frame, pc_in_call_dummy to
41 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
42 generic_save_dummy_frame_tos.
46 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
47 against TOP when TOP was explictly set.
48 (generic_push_dummy_frame): Set TOP to zero.
52 * event-loop.c (start_event_loop): Rename variable 'result' to
53 'gdb_result', to avoid conflicts with upcoming intepreters changes.
57 * gdb-events.sh (selected_thread_changed): New event.
58 * gdb-events.c: Regenerated.
59 * gdb-events.h: Regenerated.
63 * MAINTAINERS: Add self to Write After Approval list.
69 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
70 (compare_lines): Ditto.
72 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
74 (do_assembly_only): Ditto.
75 (do_disassembly): Renamed to gdb_disassembly and moved to
76 disasm.c. Sdded uiout argument.
77 * Makefile.in: Add new files. Reorder SFILES list. Update
78 dependencies. Include libgdb.a later in the insight executable.
82 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
83 bfd/elf64-alpha-fbsd.c.
87 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
92 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
94 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
96 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
97 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
98 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
99 (S_msg_sig_post_reply): Ditto.
103 * sh-tdep.c (sh_use_struct_convention): Use definition according
105 (sh_push_arguments): Store in register with correct endianess.
106 (sh_default_store_return_value): Ditto.
107 (sh_gdbarch_init): Set sizeof long double to 8.
111 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
112 Fix some whitespace problems.
116 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
117 (mcore-tdep.o): Ditto.
118 (ns32k-tdep.o): Ditto.
119 (ns32knbsd-tdep.o): Ditto.
122 * cris-tdep.c: #include "gdb_string.h"
123 * mcore-tdep.c: Ditto.
124 * ns32k-tdep.c: Ditto.
125 * ns32knbsd-tdep.c: Ditto.
131 * config/djgpp/fnchange.lst: Add entries for
132 gdb/testsuite/gdb.c++/m-static files.
136 * MAINTAINERS: Add myself to the Write After Approval list.
140 * mips-tdep.c (find_proc_desc): Initialize startaddr.
145 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
150 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
151 (rs6000_struct_return_address): Delete variable.
152 (rs6000_store_struct_return): Update.
153 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
154 deprecated_extract_struct_value_address.
155 (rs6000_frame_align): New function.
156 (rs6000_gdbarch_init): Set frame_align.
161 * Makefile.in (gdbtk-main.o): New target.
164 (main.o): Update dependencies.
165 (gdb$(EXEEXT)): Add gdb.o.
166 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
167 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
168 (SUBDIR_GDBTK_CLEAN): Set.
169 (install-gdbtk): Install the insight binary.
170 (uninstall-gdbtk): New target.
171 (all-gdbtk, clean-gdbtk): New rule.
172 * top.c (use_windows): Default to zero.
173 * main.c: Include "main.h".
175 (struct captured_main_args): Delete.
176 (gdb_main): New function.
182 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
183 (frame_map_regnum_to_name): New function.
184 (frame_map_name_to_regnum): New function.
185 * frame.h (frame_map_name_to_regnum): Declare.
186 (frame_map_regnum_to_name): Declare.
187 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
188 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
189 * parse.c: Do not include "builtin-regs.h".
190 (target_map_name_to_register): Delete function.
191 (write_dollar_variable): Use frame_map_name_to_regnum.
192 * parser-defs.h (target_map_name_to_register): Delete declaration.
193 * expprint.c: Include "frame.h".
194 (print_subexp): Use frame_map_regnum_to_name.
195 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
196 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
200 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
201 wasn't saved, and the next innermost frame is a dummy, return the
202 dummy frame's link register.
207 * main.c (captured_main): Add a `break' after the case for 'b'.
211 * varobj.c (c_type_of_child): Use get_target_type instead
216 * source.c (get_current_or_default_source_symtab_and_line): Remove
218 (set_default_source_symtab_and_line): New function. Attempts to
219 determine a source file to list lines from if one is not currently
221 (get_current_source_symtab_and_line): Initialize sal.pc and
223 (set_current_source_symtab_and_line): Mark argument as const.
224 * source.h: Update declarations and comments.
225 * linespec.c (decode_line_1): Replace call to removed routine above.
226 * stack.c (print_frame_info_base): Ditto.
227 * cli/cli-cmds.c (edit_command): Ditto.
228 (list_command): Ditto.
232 * source.c (get_current__or_default_source_symtab_and_line): Initialize
233 sal.pc and sal.end fields.
234 (get_current_or_default_source_symtab_and_line): Ditto.
235 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
236 so we do not cause a new source symtab to be searched for (reverting an
237 unintentional change from the 2002-09-20 patch).
238 * scm-lang.c (scm_unpac): Ditto.
242 * complaints.c (symfile_explanations): Remove new-line from
243 ``isolated_message''.
244 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
245 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
249 * NEWS: Announce that V850EA ISA is no longer supported.
250 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
254 * Makefile.in (c-lang.o): Correct dependencies.
255 (utils.o): Gather dependencies.
257 * c-lang.c: #include "gdb_string.h"
262 * cli/cli-cmds.c (list_command): New function. Implements the new
264 (_init_cli_cmds): Add new command definition.
265 * gdb.1: Document edit command.
266 * doc/gdb.texinfo: Document edit command.
270 * source.c: Make global variables current_source_symtab and
271 current_source_line static.
272 (list_command): Moved to cli/cli-cmds.c.
273 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
274 (get_first_line_listed): New accessor function.
275 (get_lines_to_list): New accessor function.
276 (get_current_source_symtab_and_line): New function. Retrieves the
277 position in the source code that we consider current.
278 (get_current_or_default_source_symtab_and_line): New function.
279 Like the above but attempts to determine a default position if one
280 is not currently defined.
281 (set_current_source_symtab_and_line): New function. Sets the source
282 code position considered current and returns the previously set one.
283 (clear_current_source_symtab_and_line): Reset stored information about
284 a current source line.
285 (_initialize_source): Remove registration for the "list" command and
287 * source.h: Add declarations for the new functions above.
288 * symtab.h: Remove declarations for the global variables mentioned
290 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
291 obtain current source line.
292 * linespec.c (decode_line_1): Ditto.
293 * macroscope.c (default_macro_scope): Ditto.
294 * scm-lang.c (scm_unpac): Ditto.
295 * stack.c (print_frame_info_base): Ditto.
296 * symfile.c (clear_symtab_users): Ditto.
297 * symtab.c (decode_line_spec): Ditto.
298 * cli/cli-cmds.c (list_command): Moved here from source.c.
299 (ambiguous_line_spec): Moved here from source.c.
300 (_init_cli_cmds): Add definition for "list" and its alias.
301 * Makefile.in: Update dependencies.
305 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
306 with what gcc thinks is correct.
310 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
311 multiple register push instruction.
315 Add support for distinct host and target character sets.
316 * charset.c, charset.h: New files.
317 * c-exp.y: #include "charset.h".
318 (yylex): Convert character and string literals to the target
319 character set, before returning them as the semantic value of the
321 * c-lang.c: #include "charset.h".
322 (c_emit_char): Use charset-specific methods to recognize
323 characters with backslash escape forms, to decide which characters
324 to print literally and which to print using numeric escape
325 sequences, and to convert target characters to host characters
327 * utils.c: #include "charset.h".
328 (no_control_char_error): New function.
329 (parse_escape): Use charset-specific methods to recognize
330 backslash escapes, parse `control character' notation, and convert
331 characters from the host character set to the target character set.
332 * configure.in: Set the default host character set.
333 Check where to find iconv, and what its argument types might be.
334 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
335 * Makefile.in (SFILES): List charset.c.
336 (COMMON_OBS): List charset.o.
337 (charset.o): New rule.
338 (charset_h): New header dependency variable.
339 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
340 (LIBICONV): New variable, set by configure.
341 (CLIBS): Include $(LIBICONV) here.
342 * aclocal.m4, config.in, configure: Regenerated.
346 * ada-exp.y: Add missing semicolons to end rules. Fixes a
351 * gdb_mbuild.sh: New file.
355 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
359 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
360 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
361 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
362 valops.c, value.h: Revert previous change.
366 Preliminary support for Objective-C:
367 * defs.h (language_objc): New enum value.
368 (puts_filtered_tabular): Declaration only, exported from utils.c.
369 (skip_quoted): Delete, declared in completer.h.
370 * c-exp.y: Include completer.h.
373 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
374 New operator enum values.
375 * language.h (CAST_IS_CONVERSION): Test for language_objc.
376 * language.c (binop_result_type): Handle language_objc case.
377 (integral_type, character_type, string_type, boolean_type,
378 structured_type, binop_type_check): Ditto.
379 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
380 (struct objc_specific): Add to general_symbol_info.
381 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
382 (SYMBOL_DEMANGLED_NAME): Handle objc case.
383 * parser-defs.h (struct objc_class_str): New struct type.
384 (start_msglist, end_msglist, add_msglist): Declaration only,
385 exported from objc-lang.c.
386 * value.h (value_of_local, value_nsstring,
387 call_function_by_hand_expecting_type): Exported from valops.c.
388 * valops.c (find_function_addr): Export.
389 (call_function_by_hand_expecting_type): New function.
390 (value_of_local): New function.
391 * symfile.c (init_filename_language_table): Add ".m" extension
393 * utils.c (puts_filtered_tabular): New function.
394 (fprintf_symbol_filtered): Add objc demangling support (disabled).
395 (set/show demangle): Extend help-string to refer to ObjC.
396 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
397 * stabsread.c (symbol_reference_defined): Objective-C symbols
398 may contain colons: make allowances when scanning stabs strings
400 (objc_find_colon): New function.
401 * printcmd.c (address_info): If language == objc then print
402 "self" instead of "this".
403 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
404 OP_NSSTRING, and OP_SELF.
405 (prefixify_subexp): Ditto.
406 * source.c (print_source_lines): Mention objc in comment.
407 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
412 * complaints.h: Update copyright.
413 (struct complaints): Declare.
414 (struct complaint): Make `message' constant.
415 (internal_complaint): Declare.
416 (complaint): Declare.
417 (complaint_root): Delete declaration.
418 (symfile_complaints): Delete declaration.
419 (struct complaints): Add opaque declaration.
420 (clear_complaints): Add a complaints parameter.
421 * complaints.c: Update copyright.
422 (enum complaint_series): Define.
423 (complaint_root): Delete.
424 (struct complaints): Define.
425 (complaint_sentinel, symfile_complaint_book): New variables.
426 (symfile_explanations, symfile_complaints): New variables.
428 (get_complaints): New function.
429 (vcomplaint): New function.
430 (complaint): New function.
431 (internal_complaint): New function.
432 (complain): Call vcomplain with symfile_complaint.
433 (clear_complaints): Rewrite.
434 (_initialize_complaints): Use add_setshow_command.
435 * Makefile.in (complaints.o): Update dependencies.
436 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
437 to call to clear_complaints.
438 (new_symfile_objfile, reread_symbols): Ditto.
439 (oldsyms_complaint): Delete.
440 (empty_symtab_complaint, unknown_option_complaint): Delete.
441 (free_named_symtabs): Use complaint instead of complain.
445 Contributed by Apple Computer, Inc. Merged with current sources
448 * objc-lang.c: First clean-up round: comments, indentation.
449 * objc-lang.h: Ditto.
450 * objc-lang.y: Ditto.
454 * maint.c (maintenance_internal_error): Print the parameter as the
456 (maintenance_internal_warning): New function.
457 (_initialize_maint_cmds): Add command `maint internal-warning'.
459 * defs.h (internal_warning, internal_vwarning): Declare.
460 * utils.c (struct internal_problem): Define.
461 (internal_vproblem): New function.
462 (internal_warning): New function.
463 (internal_vwarning): New function.
464 (internal_warning_problem, internal_error_problem): New variables.
465 (internal_verror): Just call internal_vproblem.
469 * objc-lang.c: New file, support for Objective-C.
470 Preliminary check-in, not yet integrated into gdb.
471 * objc-lang.h: New file.
472 * objc-exp.y: New file.
476 * infrun.c (signal_stop_update): Convert definition to ISO C.
477 (signal_print_update): Ditto.
478 (signal_pass_update): Ditto.
479 * inflow.c (terminal_save_ours): Ditto.
481 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
484 * config/djgpp/fnchange.lst: Handle name clashes between
485 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
488 * i386-linux-tdep.h: Fix tipo.
492 * MAINTAINERS: Add myself to the Write After Approval list.
496 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
497 texthigh and textlow to reader-specific structs caused
498 objfile_relocate to miss them. This is fixable, but the work that
499 the change was supposed to prepare GDB for never got done anyway.
503 * MAINTAINERS: Alphabetize Write After Approval list.
508 * values.c (value_static_field): Call read_var_value.
512 * valops.c (hand_function_call): Align the initial stack pointer
513 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
514 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
516 * mips-tdep.c (mips_frame_align): New function.
517 (mips_gdbarch_init): Set frame_align.
518 * gdbarch.sh (FRAME_ALIGN): New method.
519 * gdbarch.h, gdbarch.c: Re-generate.
523 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
528 * NEWS: Mention that MIPS $fp behavior changed.
529 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
530 reference to FP_REGNUM.
531 (mipsnbsd_cannot_store_register): Ditto.
532 * mips-linux-nat.c: Update copyright.
533 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
534 (mips_linux_cannot_store_register): Ditto.
535 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
536 * config/mips/tm-mips.h: Update copyright.
537 (FP_REGNUM): Delete macro.
538 (MIPS_REGISTER_NAMES): Replace "fp" with "".
539 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
540 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
541 (mips_r3041_reg_names, mips_r3051_reg_names)
542 (mips_r3081_reg_names): Replace "fp" with "".
547 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
548 generic_read_register_dummy() (PR gdb/703).
549 (avr_push_return_address): #if 0 out unused vars.
550 (avr_gdbarch_init): Enable use of avr_push_return_address().
554 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
555 RTE will take care of it.
559 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
560 invalid, return SP_REGNUM.
564 * mips-tdep.c (mips_pop_frame): Read saved values of floating
565 point registers without sign extension.
569 * blockframe.c (deprecated_read_register_dummy): Rename
570 generic_read_register_dummy.
571 * frame.c (frame_unwind_signed_register): New function.
572 (frame_unwind_unsigned_register): New function.
573 * frame.h (frame_unwind_signed_register): Declare.
574 (frame_unwind_unsigned_register): Declare.
575 (deprecated_read_register_dummy): Rename
576 generic_read_register_dummy.
578 * h8300-tdep.c (h8300_frame_chain): Update.
579 (h8300_frame_saved_pc): Update.
580 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
581 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
582 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
583 (s390_frame_chain): Update.
584 * v850-tdep.c (v850_find_callers_reg): Update.
585 (v850_frame_saved_pc): Update.
586 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
587 (m32r_find_callers_reg): Update.
588 (m32r_frame_saved_pc): Update.
589 * sh-tdep.c (sh_find_callers_reg): Update.
590 (sh64_get_saved_pr): Update.
591 (sh_init_extra_frame_info): Update.
592 (sh_init_extra_frame_info): Update.
593 (sh64_init_extra_frame_info): Update.
594 (sh64_init_extra_frame_info): Update.
595 * mcore-tdep.c (mcore_find_callers_reg): Update.
596 (mcore_frame_saved_pc): Update.
597 (mcore_init_extra_frame_info): Update.
598 * i386-tdep.c (i386_frame_saved_pc): Update.
599 * ia64-tdep.c (ia64_frame_saved_pc): Update.
600 (ia64_init_extra_frame_info): Update.
601 (ia64_init_extra_frame_info): Update.
602 * d10v-tdep.c (d10v_frame_saved_pc): Update.
603 * cris-tdep.c (cris_init_extra_frame_info): Update.
604 * avr-tdep.c (avr_frame_chain): Update.
605 (avr_init_extra_frame_info): Update.
606 (avr_frame_saved_pc): Update.
607 * arm-tdep.c (arm_find_callers_reg): Update.
608 (arm_init_extra_frame_info): Update.
609 (arm_frame_saved_pc): Update.
613 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
618 * MAINTAINERS: Remove "non multi-arched" text from h8300.
619 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
621 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
626 * osfsolib.c: Remove file, replaced by solib-osf.c.
627 * Makefile.in: Remove compilation rules for osfsolib.c.
631 * cp-valprint.c (cp_print_class_method): Correct args to
632 check_stub_method_group.
636 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
637 `set architecture'. Unify naming convention of functions.
638 (h8300_skip_prologue): Improve prologue analysis.
639 (h8300_push_arguments): Rewritten to more closely match GCC's
640 bizarre argument-passing behavior, along with the comment describing
642 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
643 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
644 sim, remote-e7000.c, remote-hms.c and remote.c
648 * i386-tdep.c (gdb_print_insn_i386): Removed.
649 (i386_print_insn): New function.
650 (i386_gdbarch_init): Set print_insn to i386_print_insns.
651 (_initialize_i386_tdep): Don't initialize tm_print_insn and
656 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
661 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
662 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
663 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
667 * win32-nat.c (child_create_inferior): Honor 'tty' command.
671 * gdbtypes.c (check_stub_method): Make static.
672 (check_stub_method_group): New function.
673 * gdbtypes.h: Update prototypes.
674 * cp-support.c: New file.
675 * cp-support.h: New file.
677 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
678 (update_method_name_from_physname): New function.
679 (read_member_functions): Correct method names for operators
680 and v3 constructors/destructors. Separate v2 constructors and
682 * Makefile.in (stabsread.o): Update dependencies.
683 (SFILES): Add cp-support.c.
684 (COMMON_OBS): Add cp-support.o.
685 (cp_support_h, cp-support.o): Add.
687 * cp-valprint.c (cp_print_class_method): Call
688 check_stub_method_group instead of check_stub_method. Remove
690 * p-valprint.c (pascal_object_print_class_method): Likewise.
691 * valops.c (search_struct_method): Likewise.
692 (find_method_list, value_struct_elt_for_reference): Likewise.
696 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
697 * gdbarch.h, gdbarch.c: Regenerate.
701 * frame.c (find_saved_register): Delete function.
702 * frame.h (find_saved_register): Delete declaration.
707 * mips-tdep.c (read_next_frame_reg): Re-hack using
708 frame_register_unwind.
712 * mips-tdep.c (mips_get_saved_register): Re-hack using
713 frame_register_unwind.
717 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
718 vector. Will be useful for Interix.
719 * gdbarch.h, gdbarch.c: Regenerate.
721 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
722 name of the malloc function by NAME_OF_MALLOC.
726 * value.h (find_function_in_inferior): Add const keyword to
727 one of the parameters. Allows us to invoke this function with
729 * valops.c (find_function_in_inferior): Likewise.
733 * exec.c (xfer_memory): Fix compilation warning with old versions
735 * tracepoint.c (trace_find_tracepoint_command): Likewise.
739 * symtab.h: Run through gdb_indent.h.
740 Add 2002 to Copyright year list.
744 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
746 * MAINTAINERS: Add myself to write after approval list.
750 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
754 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
759 * procfs.c (do_detach): Clear current signal, not just fault.
760 Corrects problem with breakpoint trap signal leaking to detached
765 * buildsym.c (finish_block): Protect against null pointer.
769 * infcmd.c (default_print_registers_info): Send all output to
770 ``file'' instead of ``gdb_stdout''.
774 * mips-tdep.c (mips_extract_struct_value_address): Make val a
775 LONGEST, and use signed register read (addresses are sign-
780 * event-loop.c (gdb_do_one_event): Make public.
781 * event-loop.h (gdb_do_one_event): Declare.
785 * infttrace.c (child_resume): Simplify and rework to avoid
790 * printcmd.c (print_scalar_formatted): "len" is the number of
791 target bytes, NOT the number of target bits.
796 * top.c (init_main): Set rl_terminal_name.
800 * ada-lang.c (ada_array_bound, ada_type_match,
801 _initialize_ada_language): Fix K&R definitions.
802 * ada-tasks.c (get_current_task): Fix K&R definitions.
803 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
807 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
812 * i386-tdep.c (i386_register_virtual_type,
813 i386_register_convertible, i386_register_convert_to_virtual,
814 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
815 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
816 (i386_gdbarch_init): Fix comment. Add comments on calls that set
817 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
818 Don't set push_arguments twice.
820 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
821 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
822 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
823 sigtramp_end to NULL.
824 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
826 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
828 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
831 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
832 * gdbarch.h, gdbarch.c: Re-generate.
833 * blockframe.c (find_pc_sect_partial_function): Convert to use
834 SIGTRAMP_START_P predicate.
838 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
839 generic_dummy_frame method and old method. Also distinguish
840 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
841 (arm_extract_return_value): Use new regcache method.
843 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
844 adjustment that doesn't conform to the ABI.
845 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
846 saved regcache, not from current regcache.
850 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
855 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
856 if arm_apcs_32 is false.
860 GDB 5.3 branch created.
864 * gdb/avr-tdep.c (avr_gdbarch_init): Use
865 generic_unwind_get_saved_register.
869 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
870 argument (PR gdb/653). Update call to smash_to_method_type.
871 (read_structure_scope): Update call to dwarf2_add_member_fn.
875 * x86-64-linux-tdep.c: Include gdb_string.h
876 * x86-64-linux-nat.c: Ditto.
880 * ada-exp.y (yyname, yyrule): Remap global variables that appear
881 when YYDEBUG is set to 1.
884 * jv-exp.y: Likewise.
885 * m2-exp.y: Likewise.
890 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
892 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
893 solib_svr4_fetch_link_map_offsets to
894 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
895 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
896 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
897 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
898 solib-svr4.o, and solib-legacy.o.
899 * config/i386/tm-nbsd.h: Include solib.h.
903 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
904 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
905 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
906 comment noting that this needs its own target configuration.
907 * config/i386/nbsd.mt: New file.
908 * config/i386/nbsdaout.mt: Remove.
909 * config/i386/nbsdelf.mt: Ditto.
910 * config/i386/tm-nbsdaout.h: Ditto.
914 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
915 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
916 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
918 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
919 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
920 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
924 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
925 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
926 * i386-tdep.h (i386bsd_init_abi): New prototype.
927 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
928 function declaration.
929 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
930 for NetBSD-a.out or NetBSD-ELF.
931 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
932 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
933 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
934 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
936 (i386nbsd_pc_in_sigtramp): New function.
937 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
938 i386nbsd_pc_in_sigtramp.
939 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
940 and i386nbsdelf_init_abi OS ABI handlers.
941 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
942 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
946 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
947 registers if the target really has them.
951 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
956 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
958 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
959 (alphanbsd_skip_sigtramp_frame): New functions.
960 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
961 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
962 to alphanbsd_sigcontext_addr.
966 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
968 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
969 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
971 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
972 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
973 * nbsd-tdep.c: Include gdb_string.h.
974 (nbsd_pc_in_sigtramp): New function.
975 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
976 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
977 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
978 ppcnbsd_pc_in_sigtramp.
979 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
980 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
981 shnbsd_pc_in_sigtramp.
982 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
983 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
984 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
988 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
990 (insert_breakpoints): set val field of watchpoints if NULL.
995 * symtab.c (lookup_symbol_aux): In the cases where we find a
996 minimal symbol of an appropriate name and use its address to
997 select a symtab to read and search, use `name' (as passed to us)
998 as the demangled name when searching the symtab's global and
999 static blocks, not the minsym's name.
1003 * stack.c (print_frame_info_base): Always set current_source_symtab
1004 and current_source_line.
1008 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1012 * stack.c (select_frame): Add FIXME concerning selected-frame
1014 (select_frame_command): Send selected-frame-level-changed
1015 event notification, but only if the level actually changed.
1016 (up_silently_base): Add selected-frame-level-changed event
1018 (down_silently_base): Likewise.
1022 * Makefile.in: Update dependencies for all gdb/*.c files.
1026 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1027 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1028 Update dependencies.
1029 * i387-tdep.c: Include gdb_string.h.
1030 * osabi.c: Likewise.
1031 * i386-linux-nat.c: Likewise.
1032 * lin-lwp.c: Likewise.
1033 * ax-gdb.c: Likewise.
1034 * signals/signals.c: Likewise.
1035 * jv-valprint.c: Likewise.
1036 * p-lang.c: Likewise.
1037 * c-valprint.c: Likewise.
1038 * cp-abi.c: Likewise.
1042 * cli/cli-script.h (copy_command_lines): Export.
1043 * breakpoint.c: Include cli/cli-script.h.
1044 * Makefile.in (breakpoint.o): Update dependencies.
1048 * breakpoint.c (insert_breakpoints): Protect all references
1049 to 'process_warning'. Shorten long lines.
1053 * cli/cli-script.c (copy_command_lines): New function.
1054 * defs.h (copy_command_lines): Export.
1055 * testsuite/gdb.base/commands.exp: New tests for commands
1056 attached to a temporary breakpoint, and for commands that
1057 delete the breakpoint they are attached to.
1061 * breakpoint.c (bpstat_stop_status): Instead of copying the
1062 pointer to the breakpoint commands struct, make a new copy
1063 of the struct and point to that.
1064 (bpstat_clear): Free the commands struct.
1065 (bpstat_clear_actions): Free the commands struct.
1066 (bpstat_do_actions): Free the command actions. Also execute
1067 the local cleanups, instead of deleting them.
1068 (delete_breakpoint): Leave the commands field of the bpstat
1069 chain alone -- it will be freed later.
1073 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1074 deleted in 2002-08-20 commit. This function is still used by
1079 * gdb-events.sh: Add selected-frame-level-changed event.
1080 * gdb-events.c: Regenerated.
1081 * gdb-events.h: Regenerated.
1086 * inflow.c (terminal_save_ours): New function to save terminal
1088 * inferior.h (terminal_save_ours): Declare.
1089 * target.c (debug_to_terminal_save_ours): New function.
1090 (cleanup_target): Defaults to_terminal_save_ours.
1091 (update_current_target): Inherit to_terminal_save_ours.
1092 (setup_target_debug): Set to_terminal_save_ours.
1093 * target.h (target_terminal_save_ours): New to save terminal settings.
1094 (target_ops): New member to_terminal_save_ours.
1095 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1096 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1097 * inftarg.c (init_child_ops): Likewise.
1098 * m3-nat.c (init_m3_ops): Likewise.
1099 * procfs.c (init_procfs_ops): Likewise.
1100 * wince.c (init_child_ops): Likewise.
1101 * win32-nat.c (init_child_ops): Likewise.
1102 * sol-thread.c (init_sol_thread_ops): Likewise.
1106 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1107 use regcache_* functions.
1108 (i386_gdbarch_init): Set store_return_value instead of
1109 deprecated_store_return_value.
1111 * regcache.c (regcache_raw_write_signed,
1112 regcache_raw_write_unsigned): New functions.
1113 * regcache.h (regcache_raw_write_signed,
1114 regcache_raw_write_unsigned): New prototypes.
1118 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1119 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1120 source file dependencies. Cleanup corresponding generator rules.
1124 * regcache.h (register_offset_hack): Declare.
1125 (regcache_cooked_read_using_offset_hack): Declare.
1126 (regcache_cooked_write_using_offset_hack): Declare.
1128 * regcache.c (register_offset_hack): New function.
1129 (regcache_cooked_read_using_offset_hack): New function.
1130 (regcache_cooked_write_using_offset_hack): New function.
1131 (regcache_dump): Check that the registers, according to their
1132 offset, are packed hard against each other.
1133 (cooked_xfer_using_offset_hack): New function.
1137 * regcache.c (struct regcache_descr): Add field register_type.
1138 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1140 (init_regcache_descr): Initialize register_type. Pass the descr
1141 to init_legacy_regcache_descr. Use register_type instead of
1142 REGISTER_VIRTUAL_TYPE.
1143 (register_type): New function.
1144 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1145 * regcache.h (register_type): Declare.
1149 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1150 instead of deprecated_store_return_value. Fix fallout from
1155 * regcache.c (max_register_size): New function.
1156 (init_legacy_regcache_descr): Ensure that max_register_size is
1157 large enough for REGISTER_VIRTUAL_SIZE.
1158 * regcache.h (max_register_size): Declare.
1162 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1164 (e500_extract_return_value): Change type of valbuf pointer to
1169 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1172 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1173 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1174 long long) to prevent compiler warning on 64-bit systems.
1178 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1179 (DEPRECATED_STORE_RETURN_VALUE): New method.
1180 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1181 * gdbarch.h, gdbarch.c: Re-generate.
1183 * values.c (set_return_value): Pass current_regcache to
1185 * arch-utils.h (legacy_store_return_value): Declare.
1186 * arch-utils.c (legacy_store_return_value): New function.
1187 (legacy_extract_return_value): Update parameters.
1189 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1191 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1192 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1193 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1194 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1195 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1196 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1197 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1198 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1199 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1200 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1203 * i386-tdep.c (i386_extract_return_value): Update.
1204 * arch-utils.c (legacy_extract_return_value): Update.
1205 * frv-tdep.c (frv_gdbarch_init): Update.
1206 * cris-tdep.c (cris_gdbarch_init): Update.
1207 * d10v-tdep.c (d10v_gdbarch_init): Update.
1208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1209 * m68k-tdep.c (m68k_gdbarch_init): Update.
1210 * mcore-tdep.c (mcore_gdbarch_init): Update.
1211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1212 * s390-tdep.c (s390_gdbarch_init): Update.
1213 * sparc-tdep.c (sparc_gdbarch_init): Update.
1214 * sh-tdep.c (sh_gdbarch_init): Update.
1215 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1216 * v850-tdep.c (v850_gdbarch_init): Update.
1217 * avr-tdep.c (avr_gdbarch_init): Update.
1218 * ia64-tdep.c (ia64_gdbarch_init): Update.
1219 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1220 * vax-tdep.c (vax_gdbarch_init): Update.
1221 * alpha-tdep.c (alpha_gdbarch_init): Update.
1222 * arm-tdep.c (arm_gdbarch_init): Update.
1223 * mips-tdep.c (mips_gdbarch_init): Update.
1224 * i386-tdep.c (i386_gdbarch_init): Update.
1228 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1229 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1233 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1238 * infrun.c (handle_inferior_event): Move a comment outside of a
1239 function call, in order to avoid indent reformatting this part
1240 of the code in an unreadable way.
1244 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1245 when breakpoints fail. Move general breakpoint error messages to
1247 * breakpoint.c (insert_breakpoints): Change warnings when
1248 breakpoints are nto inserted to specify the type. Remove call to
1249 memory_error when hardware breakpoints can't be inserted. Remove
1250 multiple calls to warning so all messages are sent to the user at
1252 (delete_breakpoints): Make insert error messsages more explicit.
1256 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1257 gdbserver/ChangeLog.
1261 * i386-tdep.c: Include "objfiles.h".
1262 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1263 skip_trampoline_code.
1264 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1265 (CPLUS_MARKER): Define to '.'.
1267 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1269 (linux_corefile_thread_callback): Increase args->num_notes.
1270 (linux_make_note_section): Initialize thread_args.num_notes, and
1271 use it to determine whether notes for any threads were created.
1275 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1276 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1278 (write_with_trace): Conditionalize out the switch branch handling
1279 PCSHOLD if the corresponding macro is not defined. Likewise for
1280 PRSABORT and PRSTOP.
1281 This change will be needed by the Interix port.
1285 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1286 write_register wherever possible instead of manipulating the
1287 register bytes directly.
1288 Assign VALUE_CONTENTS to a variable and use that.
1289 The GPR numbers are now dependent on the architecture.
1293 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1295 (skip_prologue): Add support for BookE/e500 instructions.
1296 (e500_extract_return_value): New function.
1297 (frame_get_saved_regs): Add support for saving ev registers and
1299 (e500_store_return_value): New function.
1300 (rs6000_gdbarch_init): Move up default intializations of
1301 deprecated_extract_return_value and store_return_value. Overwrite
1302 init of store_return_value with e500 specific version.
1303 Set extract_return_value for e500.
1307 * blockframe.c (generic_call_dummy_register_unwind): Use
1308 regcache_cooked_read to catch cases in which the variable is
1309 stored in a pseudo register.
1313 * NEWS: Mention that the i960 has been made obsolete.
1314 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1316 (remote-nrom.o): Obsolete target.
1317 (remote-nindy.o, i960-tdep.o): Ditto.
1318 * remote-nrom.c: Make file obsolete.
1319 * remote-nindy.c, remote-vx960.c: Ditto.
1320 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1321 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1322 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1323 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1324 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1325 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1326 i960-*-vxworks* obsolete.
1327 * MAINTAINERS: Note that the i960 is obsolete.
1331 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1332 detach to allow reinitialization.
1336 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1341 * coffread.c (coff_symfile_read): Don't try to read the line
1342 number table from disk if the image file doesn't have a symbol
1343 table; we'll never actually look at the info anyway, and Windows
1344 ships DLL's with bogus file offsets for the line number data.
1348 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1353 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1354 (MSYMBOL_SIZE): Replace macro with function.
1355 (DEFAULT_MIPS_TYPE): Delete unused macro.
1356 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1357 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1361 * valops.c (value_cast): Simplify and correct logic for doing a
1362 static cast from a pointer to a base class to a pointer to a
1367 * infcmd.c (default_print_registers_info): Replace
1369 (registers_info): Use gdbarch_print_registers_info instead of
1371 * inferior.h (default_print_registers_info): Replace
1373 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1374 (DO_REGISTERS_INFO): Change to a predicate function.
1375 * gdbarch.h, gdbarch.c: Regenerate.
1379 * gdb-events.sh: Add target-changed event.
1380 * gdb-events.c: Regenerated.
1381 * gdb-events.c: Regenerated.
1382 * valops.c (value_assign): Add target-changed event notification
1383 to inlval_register, lval_memory, and lval_reg_frame_relative.
1387 * NEWS: Add an entry regarding the improvement of the next/step
1388 operation on Alpha Tru64 multi-processor machines.
1392 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1394 * Makefile.in: Update all _h macro definitions.
1395 * Makefile.in (install-gdbtk): Move to install section.
1396 (rdi-share/libangsd.a): Move to end of file.
1400 * frame.c (frame_register_unwind): When a register, set addrp to
1401 the register's byte.
1405 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1406 used locally, so move them from the target machine header to here.
1407 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1408 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1410 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1414 * NEWS: Mention that the Apollo line was made obsolete.
1415 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1416 m68*-hp-hpux* obsolete.
1417 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1418 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1419 * buildsym.c (make_blockvector): Make static.
1420 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1421 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1422 (ALLDEPFILES): Remove dstread.c.
1423 (dstread.o): Obsolete make rule.
1424 * dstread.c: Makefile obsolete.
1426 * config/m68k/hp300hpux.mt: Ditto.
1427 * config/m68k/hp300hpux.mh: Ditto.
1428 * config/m68k/hp300bsd.mt: Ditto.
1429 * config/m68k/hp300bsd.mh: Ditto.
1430 * config/m68k/apollo68b.mt: Ditto.
1431 * config/m68k/apollo68v.mh: Ditto.
1432 * config/m68k/apollo68b.mh: Ditto.
1436 * mips-tdep.c (mips_in_return_stub): Make static.
1437 (mips_gdbarch_init): Set in_solib_return_trampoline.
1438 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1442 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1443 * gdbarch.c, gdbarch.h: Regenerate.
1444 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1446 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1450 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1451 (mips_gdbarch_init): Set skip_trampoline_code,
1452 in_solib_call_trampoline.
1453 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1454 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1458 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1460 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1461 vector type for ev registers.
1462 (e500_pseudo_register_read): New function.
1463 (e500_pseudo_register_write): New function.
1464 (e500_dwarf2_reg_to_regnum): New function.
1465 (PPC_UISA_NOFP_SPRS): New macro.
1466 (PPC_EV_REGS): New macro.
1467 (PPC_GPRS_PSEUDO_REGS): New macro.
1468 (registers_e500): New register set for e500.
1469 (variants): Add e500 variant.
1470 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1471 before setting architectural dependent variations. Initialize ev
1472 registers numbers. Add case for e500 architecture. Set the
1473 number of pseudo registers.
1477 * rs6000-tdep.c: Clean up comments.
1481 * h8300-tdep.c: Re-indent file.
1485 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1490 * breakpoints.c (watch_command_1): Use internal breakpoint
1491 when setting a watchpoint_scope breakpoint.
1495 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1496 (build_builtin_type_vec64i): Ditto.
1497 (build_builtin_type_vec128): Ditto.
1498 (build_builtin_type_vec128i): Ditto.
1502 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1503 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1504 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1505 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1506 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1507 CALL_DUMMY_ADDRESS): Delete.
1508 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1509 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1510 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1511 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1512 push_return_address.
1513 (mips_register_raw_size, mips_eabi_use_struct_convention,
1514 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1515 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1516 mips_init_extra_frame_info, mips_eabi_push_arguments,
1517 mips_n32n64_push_arguments, mips_push_return_address,
1518 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1519 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1523 * mips-tdep.c (mips_frame_num_args): New function.
1524 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1525 frame_saved_pc, frame_args_address, frame_locals_address,
1526 frame_num_args, and frame_args_skip.
1527 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1528 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1529 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1530 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1534 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1535 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1536 * mips-tdep.c (mips_store_struct_return): New function.
1537 (mips_extract_struct_value_address): New function.
1538 (mips_gdbarch_init): Set store_struct_return and
1539 extract_struct_value_address.
1543 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1544 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1545 (read_file_scope): Check that line_header is nonzero before
1546 decoding macro information.
1550 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1551 flag the general-purpose registers as floating-point on targets
1552 that don't support the floating-point registers.
1556 * rs6000-tdep.c (altivec_register_p): Delete.
1557 (rs6000_do_altivec_registers): Delete.
1558 (rs6000_altivec_registers_info): Delete.
1559 (rs6000_do_registers_info): Delete.
1560 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1561 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1565 * infcmd.c (do_registers_info): Print vector registers in hex
1567 (print_vector_info): Check that printing registers
1569 (print_float_info): Ditto.
1573 * mips-tdep.c (mips_gdbarch_init): Update.
1574 (mips_o32_extract_return_value): Rewrite.
1575 (mips_o32_store_return_value): Rewrite.
1576 (mips_o32_xfer_return_value): New function.
1577 (mips_xfer_register): Tweak debug print message. Allow for
1578 buf_offset when dumping the value transfered.
1582 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1583 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1584 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1585 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1586 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1590 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1594 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1596 (P): New macro to define a register as a pseudo register.
1597 (R, R4, R8, R16, FR32, R64, R0): Updated.
1598 (struct variant): Add new fields for number of pseudo registers
1599 and number of total registers.
1600 (tot_num_registers): New macro replacing....
1601 (num_registers): ...deleted macro.
1602 (num_registers): New function.
1603 (num_pseudo_registers): New function.
1604 (variants): Update all variants to intialize new fields correctly.
1605 Postpone initialization of number of pseudo regs and real regs.
1606 (init_variants): New function.
1607 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1612 * valops.c (search_struct_field): Change error message to treat
1613 return value of 0 from value_static_field as meaning that field is
1615 (value_struct_elt_for_reference): Ditto.
1616 * values.c (value_static_field): Treat an unresolved location the
1617 same as a nonexistent symbol. Fix PR gdb/635.
1618 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1619 enclosed. Fix PR gdb/574.
1620 * MAINTAINERS: Add self to Write After Approval list.
1624 * mips-tdep.c (mips_xfer_register): New function.
1625 (mips_n32n64_extract_return_value): Rewrite.
1626 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1627 instead of deprecated_extract_return_value.
1631 * rs6000-tdep.c (TDEP): Delete macro.
1632 (branch_dest): Replace use of TDEP macro with its body.
1633 (rs6000_pop_frame): Ditto.
1634 (rs6000_push_arguments): Ditto.
1635 (rs6000_skip_trampoline_code): Ditto.
1636 (rs6000_frame_saved_pc): Ditto.
1637 (rs6000_frame_chain): Ditto.
1638 (rs6000_register_name): Ditto.
1639 (rs6000_register_byte): Ditto.
1640 (rs6000_register_raw_size): Ditto.
1641 (rs6000_register_virtual_type): Ditto.
1642 (rs6000_register_convertible): Ditto.
1643 (rs6000_convert_from_func_ptr_addr): Ditto.
1647 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1649 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1650 MIPS_LINUX_JB_ELEMENT_SIZE.
1651 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1652 for MAX_REGISTER_RAW_SIZE arrays.
1653 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1654 MIPS_LINUX_JB_ELEMENT_SIZE.
1658 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1662 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1663 ada-valprint.c ada-tasks.c.
1664 (YYFILES): Add ada-exp.y.
1665 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1666 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1667 (ada-exp.tab.o): New target.
1671 * regcache.c (regcache_xfer_part): New function.
1672 (regcache_raw_read_part): New function.
1673 (regcache_raw_write_part): New function.
1674 (regcache_cooked_read_part): New function.
1675 (regcache_cooked_write_part): New function.
1676 * regcache.h (regcache_raw_read_part): Declare.
1677 (regcache_raw_write_part): Declare.
1678 (regcache_cooked_read_part): Declare.
1679 (regcache_cooked_write_part): Declare.
1683 * remote.c (remote_open_1): Add async_p.
1684 (remote_async_open_1): Delete.
1685 (open_remote_target): Delete.
1686 (remote_open, extended_remote_open): Update calls to remote_open_1.
1687 (remote_async_open, extended_remote_async_open): Call
1688 remote_open_1 instead of remote_async_open_1.
1692 * blockframe.c: Fix a few coding standard violations.
1696 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1698 * config/i386/tm-i386sco5.h: ... here. File removed.
1699 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1701 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1702 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1703 (TM_FILE): Set to tm-i386.h.
1704 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1705 * config/i386/tm-i386v.h: Remove file.
1706 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1707 instead of "i386/tm-i386v.h".
1708 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1709 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1711 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1712 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1717 * config/i386/nm-i386v.h: Add protection against
1719 (i386_register_u_addr): Remove prototype.
1720 (register_u_addr): New prototype.
1721 (REGISTER_U_ADDR): Redefine accordingly.
1722 * i386v-nat.c: Improve several comments.
1723 (i386_register_u_addr): Change signature and rename to
1724 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1729 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1730 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1731 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1732 deprecated_extract_return_value.
1733 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1734 rename mips_o32o64_push_arguments.
1735 (mips_gdbarch_init): Update.
1736 (mips_extract_return_value): Delete.
1737 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1738 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1739 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1740 (mips_n32n64_extract_return_value): Clone
1741 mips_extract_return_value.
1742 (mips_store_return_value): Delete.
1743 (mips_o32_store_return_value): Clone mips_store_return_value.
1744 (mips_o64_store_return_value): Clone mips_store_return_value.
1745 (mips_eabi_store_return_value): Clone mips_store_return_value.
1746 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1750 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1751 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1755 * ada-lang.c: Run through gdb_indent.sh.
1756 * ada-lang.h: Run through gdb_indent.sh.
1757 * ada-tasks.c: Run through gdb_indent.sh.
1758 * ada-typeprint.c: Run through gdb_indent.sh.
1759 * ada-valprint.c: Run through gdb_indent.sh.
1763 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1768 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1770 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1771 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1773 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1774 write_register_gen instead of write_register_bytes.
1776 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1777 i[3456]-*-osf1mk* configurations have been made obsolete.
1778 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1779 i[3456]86-*-osf1mk* hosts obsolete.
1780 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1782 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1783 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1784 config/i386/i386m3.mt, config/i386/nm-m3.h,
1785 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1786 config/i386/i386mk.mh, config/i386/i386mk.mt,
1787 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1789 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1790 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1791 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1795 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1796 (hppa_value_returned_from_stack): Declare.
1797 (hppa_extract_return_value): Declare.
1798 * config/pa/hppa.mt: New file.
1799 * configure.tgt: Recognize hppa*-*-*.
1800 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1804 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1809 * top.c (gdb_rl_operate_and_get_next): Make sure
1810 operate-and-get-next functions correctly even when the history
1811 list is completely filled.
1815 * MAINTAINERS (Target Instruction Set Architectures): Rename
1816 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1817 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1818 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1819 already listed under Host/Native.
1821 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1822 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1827 * config/ia64/ia64.mt: New file.
1828 * config/alpha/alpha.mt: New file.
1829 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1830 ia64-linux-gnu. Mention that ia64-elf is broken.
1831 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1835 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1836 generic_func_frame_valid instead of func_frame_valid.
1840 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1841 procfs appears to be broken when debugging on multi-processor
1842 machines. So enable software single stepping in order to avoid
1843 using the procfs interface to do next/step operations, using
1844 internal breakpoints instead.
1846 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1847 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1848 make this pc address equal to the value it would have if the
1849 system stepping capability was used. Also set a new flag used
1850 to ensure that we don't readjust the PC one more time later.
1852 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1853 address by DECR_PC_AFTER_BREAK when software single step is
1854 in use for this architecture, as this has already been taken
1855 care of in handle_inferior_event().
1859 * infrun.c (handle_inferior_event): Minor reformatting, to make
1860 a rather long condition expression easier to read.
1864 * Makefile.in (gdbtk.o): Move to end of file.
1865 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1866 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1867 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1868 (gdbtk-wrapper.o, gdbres.o): Ditto.
1872 * Makefile.in (copying.o): Separate out compile rule.
1873 (hpux-thread.o, procfs.o, signals.o): Ditto.
1874 (v850ice.o, z8k-tdep.o): Ditto.
1875 (tui-file.o): Move to TUI section.
1876 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1877 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1881 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1882 skip_trampoline_code, for better namespace-proofing.
1884 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1888 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1892 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1893 signal, check whether we hit a breakpoint before checking for a
1894 single step breakpoint. Otherwise, GDB fails to notice that a
1895 breakpoint has been hit when stepping onto a breakpoint.
1899 * gdb-events.sh (clear_gdb_event_hooks): New function.
1900 * gdb-events.c: Regenerate.
1901 * gdb-events.h: Regenerate.
1905 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1906 not_a_sw_breakpoint.
1907 * breakpoint.h (bpstat_stop_status): Add parameter names.
1911 * remote.c (remote_insert_hw_breakpoint)
1912 (remote_remove_hw_breakpoint): Fix calculation of length field
1917 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1918 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1919 (supply_fpregset): Ditto.
1921 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1922 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1923 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1924 (TARGET_READ_SP): Delete.
1925 (DO_REGISTERS_INFO): Delete.
1926 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1928 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1929 from macros to functions.
1931 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1932 (mips_register_convertible, mips_register_convert_to_virtual,
1933 mips_register_convert_to_raw): Make static.
1934 (mips_read_sp): New function.
1935 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1936 (mips_do_registers_info): Make static.
1937 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1938 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1939 (mips_register_convert_from_type, mips_register_convert_to_type):
1941 (mips_gdbarch_init): Set up function_start_offset,
1942 register_virtual_size, pc_in_sigtramp.
1946 * infcmd.c (vector_info): New function.
1947 (_initialize_infcmd): Add command "info vector".
1948 (print_vector_info): New function.
1950 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1951 * gdbarch.h, gdbarch.c: Regenerate.
1955 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1956 ``print_all''. Only print vector registers when ``print_all''.
1960 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1961 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1963 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1964 Add `args' parameter.
1965 * gdbarch.h, gdbarch.c: Regenerate.
1967 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1969 * infcmd.c (float_info): Call print_float_info.
1970 (print_float_info): New function. By default, print the
1971 floating-point registers.
1973 * arch-utils.h (default_print_float_info): Delete declaration.
1974 * arch-utils.c (default_print_float_info): Delete function.
1978 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1981 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1984 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1985 * configure.host: Make i[3456]86-*-aix host obsolete.
1986 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1987 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1988 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1989 config/i386/xm-i386aix.h: Make files obsolete.
1990 * i386aix-nat.c: Make file obsolete.
1991 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1992 (i386aix-nat.o): Make target obsolete.
1994 * config/i386/nm-gnu.h: Removed.
1995 * config/i386/nm-i386gnu.h: New file.
1996 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1997 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1999 * config/i386/tm-i386gnu.h: ... here. Removed.
2000 * config/i386/xm-i386gnu.h: Removed.
2001 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2002 (NAT_FILE): Set to nm-i386gnu.h.
2003 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2004 * i386-tdep.c: New file.
2005 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2006 (i386gnu-tdep.o): Specify dependencies.
2010 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2011 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2012 Adjust a few comments to reflect reality a bit closer.
2013 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2014 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2015 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2016 target_insert_watchpoint, target_remove_watchpoint):
2018 * config/i386/nm-i386sco5.h: ... here.
2019 (kernel_u_size): Add prototype. Improve a few comments and add
2020 protection against multiple inclusion.
2022 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2025 * uw-thread.c (SP_ARG0): Define if not already defined.
2026 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2028 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2030 * config/i386/tm-i386.h: Don't include "regcache.h".
2032 * i387-tdep.h (i387_print_float_info): New prototype.
2033 * i387-tdep.c (print_i387_value, print_i387_ext,
2034 print_i387_status_word, print_i387_control_word): Add `struct
2035 ui_file *' argument and use it for output.
2036 (i387_print_float_info): Renamed from i387_float_info. Add
2037 `struct gdbarch *' and `struct ui_file *' arguments and use the
2039 * i386-tdep.c: Include "i387-tdep.h".
2040 (i386_gdbarch_init): Set print_float_info.
2041 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2042 (FLOAT_INFO): Remove define.
2046 * mips-tdep.c (mips_push_arguments): Rename to
2047 mips_eabi_push_arguments, and tune for EABI.
2048 (MIPS_REGS_HAVE_HOME_P): Delete.
2049 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2050 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2051 Delete references to mips_regs_have_home_p.
2055 * Makefile.in (install-gdbtk): Create insight plugin directory.
2056 Install plugins.tcl file.
2060 * configure.in: Move SUBDIRS to near top of the file so that
2061 --enable options may add things to it.
2062 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2063 * configure: Regenerate.
2067 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2068 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2069 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2073 * vax-tdep.c (vax_get_saved_register): Delete function.
2074 (vax_gdbarch_init): Update.
2075 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2076 (ns32k_gdbarch_init): Update.
2077 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2078 (alpha_gdbarch_init): Update.
2082 * regcache.c (init_regcache_descr): Overallocate the
2083 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2084 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2086 (set_register_cached): Add range checking assertions. Use
2091 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2092 numbers for MMX registers.
2096 * i386-tdep.c (i386_gdbarch_init): Use
2097 generic_unwind_get_saved_register.
2101 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2102 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2104 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2105 Delete. Add comment regarding this now-deleted target method.
2109 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2110 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2111 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2112 real PC and the page number (if it's within the memory bank window).
2113 (m68hc11_pseudo_register_write): Likewise when saving.
2114 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2115 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2116 (m68hc11_register_raw_size): And use 32-bit for it.
2117 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2118 16K memory bank is used by the prog; also use the virtual pc.
2122 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2123 (m68hc11_gdbarch_init): Install it in gdbarch.
2124 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2125 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2126 (MSYMBOL_SIZE): New for documentation.
2127 (insn_return_kind): Enum to specify how a function returns.
2128 (frame_extra_info): Cleanup and record the return mode.
2129 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2130 register in address computation.
2131 (m68hc11_get_return_insn): New to obtain the return instruction used
2133 (m68hc11_frame_init_saved_regs): Take into account the return
2134 instruction used by the function for far and interrupt functions.
2135 (m68hc11_init_extra_frame_info): Take into account page register.
2136 (m68hc11_frame_args_address): Adjust according to the return mode.
2137 (show_regs): Print page register only when it's used.
2141 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2142 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2143 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2145 (m68hc11_register_raw_size): Likewise.
2149 * i386-tdep.c (i386_register_name): Handle mmx registers.
2150 (mmx_regnum_p): New function.
2151 (i386_mmx_names): New array.
2152 (mmx_num_regs): New variable.
2153 (i386_pseudo_register_read): New function.
2154 (i386_pseudo_register_write): New function.
2155 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2157 * regcache.c (regcache_raw_read_unsigned): New function.
2158 (regcache_raw_read_signed): New function.
2159 * regcache.h (regcache_raw_read_unsigned): Declare.
2160 (regcache_raw_read_signed): Declare.
2164 * regcache.c (regcache_raw_read_as_address): Delete function.
2165 (regcache_cooked_read_signed): New function.
2166 (regcache_cooked_read_unsigned): New function.
2167 * regcache.h (regcache_cooked_read_signed): Declare.
2168 (regcache_cooked_read_unsigned): Declare.
2169 (regcache_raw_read_as_address): Delete declaration.
2171 * blockframe.c (generic_read_register_dummy): Use
2172 regcache_cooked_read_unsigned.
2173 * i386-tdep.c (i386_extract_struct_value_address): Use
2174 regcache_cooked_read_unsigned.
2178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2179 double sizes according to ELF ABI flags.
2180 (gdbarch_tdep): Record elf_flags.
2184 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2185 (m6812_prolog): They can appear in 68HC12 function prologue.
2186 (m68hc11_frame_chain): Cleanup.
2190 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2192 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2193 (i386_linux_register_raw_size): Delete function.
2194 (i386_linux_init_abi): Update.
2195 * i386-tdep.c (i386_register_raw_size): Delete function.
2196 (i386_register_byte): Delete function.
2197 (i386_gdbarch_init): Update.
2198 (i386_register_size): Delete array.
2199 (i386_register_offset): Delete array.
2201 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2202 (REGISTER_RAW_SIZE): Delete macro.
2203 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2204 (REGISTER_BYTE): Delete macro.
2208 * ada-lang.c (ada_lookup_partial_symbol)
2209 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2210 prototype names so that grep ^func works properly.
2212 * ada-lang.c (ada_array_element_type)
2213 (ada_lookup_partial_symbol): Fix typos in parameter list.
2215 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2216 Fix prototype names so that grep ^func works properly.
2222 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2223 (build_builtin_type_vec128i): Set the vector bit.
2224 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2225 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2226 (build_builtin_type_vec64): New function.
2227 (build_builtin_type_vec64i): New function.
2228 (build_gdbtypes): Initialize builtin_type_vec64 and
2229 builtin_type_vec64i.
2233 * regcache.c (regcache_dump): Compare the register offset
2235 * arch-utils.c (generic_register_byte): New function.
2236 * arch-utils.h (generic_register_byte): Declare.
2237 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2238 * gdbarch.h, gdbarch.c: Regenerate.
2242 * regcache.c: Include "gdbcmd.h"
2243 (_initialize_regcache): Add commands "maintenance print
2244 registers", "maintenance print raw-registers" and "maintenance
2245 print cooked-registers".
2246 (enum regcache_dump_what): Define.
2247 (dump_endian_bytes): New function.
2248 (regcache_dump): New function.
2249 (regcache_print): New function.
2250 (maintenance_print_registers): New function.
2251 (maintenance_print_raw_registers): New function.
2252 (maintenance_print_cooked_registers): New function.
2253 * Makefile.in (regcache.o): Update dependencies.
2257 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2258 (mips_push_arguments): Correct some comments. Use paddr_nz
2259 for printing addresses in debug output. Replace static
2260 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2261 (mips_n32n64_push_arguments): New function, cloned from
2262 mips_push_arguments and tuned for the n32/n64 ABI.
2263 (mips_push_register): Buffer needs dynamic allocation.
2264 (mips_print_register): Ditto.
2265 (do_gp_register_row): Ditto.
2266 (mips_store_return_value): Ditto.
2267 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2271 * memattr.c (mem_info_command): Print special case of upper bound
2272 as max CORE_ADDR + 1.
2276 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2277 returns structs by ref if they're too big to fit in two registers.
2281 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2283 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2284 mips_find_saved_regs().
2285 (mips_pop_frame): Likewise.
2289 * blockframe.c (frame_saved_regs_register_unwind): Revise
2290 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2295 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2296 T-packets; the 'a' is not taken as a register number.
2297 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2298 (remote_stopped_data_address): New functions; add to target
2300 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2301 prototypes to match other implementations of this
2302 function. replace integer argument with pointer -- the length
2303 field in the Z-packet is the length of what is pointed to or 1 if
2304 pointer is null. Add to target vector.
2305 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2309 * remote.c (remote_wait): Add support to extract optional
2310 watchpoint information from T-packet. Ignore unrecognized
2311 optional info in T-packet.
2312 (remote_async_wait): Ditto.
2316 * cli/cli-dump.c: Change fopen modes to use binary open modes
2317 as defined in include/fopen-bin.h throughout.
2321 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2325 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2326 assertion failure by returning early after a warning.
2330 * mips-tdep.c (mips_find_saved_regs): Make static.
2331 (mips_frame_init_saved_regs): New function.
2332 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2333 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2334 (mips_find_saved_regs): Delete declaration.
2338 * remote.c (remote_wait, remote_async_wait): Change
2339 thread_num from int to ULONGEST.
2340 (unpack_varlen_hex): Change result parameter from
2341 int * to ULONGEST *.
2345 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2346 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2348 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2352 * gcore.c (override_derive_stack_segment): Delete variable.
2353 (preempt_derive_stack_segment): Delete function.
2354 (derive_stack_segment): Delete function.
2355 (default_derive_stack_segment): Renamed to derive_stack_segment.
2356 (override_derive_heap_segment): Delete variable.
2357 (preempt_derive_heap_segment): Delete function.
2358 (derive_heap_segment): Delete function.
2359 (default_derive_heap_segment): Rename to derive_heap_segment.
2363 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2364 * mips-tdep.c (mips_EABI_use_struct_convention,
2365 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2366 New functions. (mips_use_struct_convention): Delete.
2367 (mips_gdbarch_init): set use_gdbarch_convention.
2371 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2372 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2373 mips_o32_reg_struct_has_addr): New functions.
2374 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2378 * regcache.c (pseudo_register): Delete function.
2379 (fetch_register): Delete function.
2380 (store_register): Delete function.
2381 (regcache_raw_read, legacy_read_register_gen): Use
2382 target_fetch_registers instead of fetch_register.
2383 (legacy_write_register_gen, regcache_raw_write): Use
2384 target_store_register instead of store_register.
2385 (write_register_bytes): Ditto.
2387 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2388 (STORE_PSEUDO_REGISTER): Delete.
2389 * gdbarch.h, gdbarch.c: Regenerate.
2393 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2394 write dump file binary.
2398 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2399 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2400 (mips_gdbarch_init): Set N32 target to be mips64.
2404 * frame.c (find_saved_register): Break out of loop once saved
2405 register address is found. Don't mention sparc in loop comment
2410 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2411 mips_default_saved_regsize to 8.
2415 * gcore.c: Do not include <sys/procfs.h>.
2416 * Makefile.in (gcore.o): Update dependencies.
2420 * configure.tgt: Make arc-*-* obsolete.
2421 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2422 * MAINTAINERS: Make arc-elf obsolete.
2423 * arc-tdep.c: Make file obsolete.
2424 * config/arc/arc.mt: Ditto.
2425 * config/arc/tm-arc.h: Ditto.
2429 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2433 * mcore-tdep.c (mcore_gdbarch_init): Use
2434 generic_unwind_get_saved_register instead of
2435 generic_get_saved_register.
2436 * v850-tdep.c (v850_gdbarch_init): Ditto.
2437 * frv-tdep.c (frv_gdbarch_init): Ditto.
2438 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2439 * s390-tdep.c (s390_gdbarch_init): Ditto.
2440 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2441 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2442 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2446 * objfiles.h: Add missing #include "symfile.h"
2448 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2453 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2458 * NEWS: Cleanup and nitpick.
2462 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2466 * Makefile.in (gdbtk-bp.o): Update dependencies.
2467 (gdbtk-register.o): Ditto.
2468 (gdbtk-varobj.o): Ditto.
2472 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2473 m68hc11_fetch_pseudo_register.
2474 (m68hc11_pseudo_register_write): Replace
2475 m68hc11_store_pseudo_register.
2476 (m68hc11_gdbarch_init): Update.
2480 * gdbarch.sh: Include "gdb_string.h".
2481 * gdbarch.c: Regenerate.
2483 * regcache.c: Include "gdb_string.h".
2484 * ax-general.c: Ditto.
2486 * std-regs.c: Ditto.
2487 * fbsd-proc.c: Ditto.
2490 * Makefile.in (regcache.o): Update dependencies.
2491 (thread.o, gdbarch.o): Ditto.
2492 (ax-general.o, gdbarch.o): Ditto.
2493 (varobj.o, std-regs.o): Ditto.
2494 (fbsd-proc.o): Specify dependencies.
2498 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2500 (regcache_cooked_write): Ditto.
2504 * regcache.c (regcache_cooked_read): New function.
2505 (regcache_cooked_write): New function.
2506 (read_register_gen): Rewrite using regcache_cooked_read.
2507 (write_register_gen): Rewrite using regcache_cooked_write.
2509 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2514 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2515 Replace the architecture methods register_read and register_write.
2516 * gdbarch.h, gdbarch.c: Regenerate.
2517 * regcache.c (init_regcache_descr): Update.
2518 (read_register_gen): Update.
2519 (write_register_gen): Update.
2520 (supply_register): Update comment.
2522 * sh-tdep.c (sh_gdbarch_init): Update.
2523 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2524 `regcache' and `gdbarch' parameters. Make `buffer' a void
2525 pointer. Update code.
2526 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2527 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2528 void pointer. Update code.
2529 (sh64_register_write): Delete.
2530 (sh4_register_read): Delete.
2531 (sh64_register_read): Delete.
2532 (sh4_register_write): Delete.
2533 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2534 void pointer, `to' parameter a void pointer.
2535 (sh_sh64_register_convert_to_raw): Ditto.
2539 * mips-tdep.c (mips_register_virtual_type): Use architecture
2540 invariant return values.
2544 * linux-proc.c: Include "gdb_string.h".
2545 * Makefile.in (linux-proc.o): Update dependency list.
2549 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2554 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2555 to_insert_watchpoint, to_remove_watchpoint,
2556 to_stopped_by_watchpoint, to_stopped_data_address,
2557 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2558 target vecctor. Define their corresponding macros so they call
2561 * target.c: Add default and debug versions of for
2562 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2563 to_insert_watchpoint, to_remove_watchpoint,
2564 to_stopped_by_watchpoint, to_stopped_data_address,
2565 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2569 * mips-tdep.c (mips_register_virtual_type): New function.
2570 (mips_gdbarch_init): Register mips_register_virtual_type()
2571 with gdbarch machinery.
2572 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2573 this file instead of tm-bigmips.h.
2574 (MIPS_REGSIZE): Delete this macro.
2575 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2576 multiarch version in mips-tdep.c will be found.
2580 * NEWS: Menion that CHILL has been made obsolete.
2582 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2583 * stabsread.c (read_range_type): Ditto.
2584 * gdbtypes.h: Ditto.
2585 * language.c (binop_type_check): Ditto.
2586 (binop_result_type): Ditto.
2587 (integral_type): Ditto.
2588 (character_type): Ditto.
2589 (string_type): Ditto.
2590 (boolean_type): Ditto.
2591 (structured_type): Ditto.
2592 (lang_bool_type): Ditto.
2593 (binop_type_check): Ditto.
2594 * language.h (_LANG_chill): Ditto.
2595 * dwarfread.c (set_cu_language): Ditto.
2596 * dwarfread.c (CHILL_PRODUCER): Ditto.
2597 * dwarfread.c (handle_producer): Ditto.
2598 * expression.h (enum exp_opcode): Ditto.
2599 * eval.c: Ditto for comments.
2600 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2601 * expprint.c (print_subexp): Ditto.
2602 (print_subexp): Ditto.
2603 * valops.c (value_cast): Ditto.
2604 (search_struct_field): Ditto.
2605 * value.h (COERCE_VARYING_ARRAY): Ditto.
2606 * symfile.c (init_filename_language_table): Ditto.
2607 (add_psymbol_with_dem_name_to_list): Ditto.
2608 * valarith.c (value_binop): Ditto.
2610 * valops.c (value_slice): Ditto.
2611 * symtab.h (union language_specific): Ditto.
2612 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2613 (SYMBOL_DEMANGLED_NAME): Ditto.
2614 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2615 * defs.h (enum language): Ditto.
2616 * symtab.c (got_symtab): Ditto.
2617 * utils.c (fprintf_symbol_filtered): Ditto.
2619 * ch-typeprint.c: Make file obsolete.
2620 * ch-valprint.c: Make file obsolete.
2621 * ch-lang.h: Make file obsolete.
2622 * ch-exp.c: Make file obsolete.
2623 * ch-lang.c: Make file obsolete.
2625 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2627 (TARGET_FLAGS_TO_PASS): Ditto.
2628 (CHILLFLAGS): Obsolete.
2630 (CHILL_FOR_TARGET): Obsolete.
2631 (CHILL_LIB): Obsolete.
2632 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2634 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2635 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2637 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2642 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2643 This does not change anything at the moment, but will be helpful
2644 later when full Ada support is integrated.
2648 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2653 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2654 and save it in a local variable. Use variable in later test.
2658 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2659 test. (Thanks to Daniel Jacobowitz.)
2663 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2664 (mips_abi_strings): Add "n64".
2665 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2669 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2670 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2674 * utils.c (host_pointer_to_address, address_to_host_pointer):
2675 Use gdb_assert() instead of explicit call to internal_error().
2679 * Makefile.in (rs6000-nat.o): Update dependencies.
2681 From Nicholas Duffek:
2682 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2683 (aix-thread.o): New rule.
2684 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2685 * config/powerpc/aix432.mh: New file.
2689 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2690 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2691 (fetch_core_registers, ppc_linux_supply_gregset)
2692 (ppc_linux_supply_fpregset): New functions.
2693 (ppc_linux_regset_core_fns): New.
2694 (_initialize_ppc_linux_tdep): Call add_core_fns.
2695 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2696 and ppc_linux_supply_gregset.
2697 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2698 (supply_fpregset): Call ppc_linux_supply_fpregset.
2699 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2701 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2705 * symtab.c (lookup_symbol): Demangle before lowercasing.
2709 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2711 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2712 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2713 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2714 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2716 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2717 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2718 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2719 (avr-tdep.o, mon960-rom.o): Ditto.
2720 (aout_stabs_gnu_h): Define.
2721 (symtab_h): Remove $(gdb_obstack_h).
2726 * gdbinit.in: Move the `dir' commands that add GDB's own source
2727 directory to the search path to the end, so that the `gdb' source
2728 directory will be searched first.
2732 * gdb_obstack.h: New file.
2733 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2734 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2735 * objfiles.h: Include "gdb_obstack.h".
2736 * Makefile.in (gdb_obstack_h): Define.
2737 (symtab_h): Add $(gdb_obstack_h).
2738 (objfiles_h): Add $(gdb_obstack_h).
2740 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2741 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2742 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2743 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2744 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2745 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2746 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2747 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2749 * Makefile.in (bcache.o): Update dependencies.
2750 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2751 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2752 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2753 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2754 (stabsread.o, symfile.o, symmisc.o): Ditto.
2755 (symtab.o, typeprint.o, macroexp.o): Ditto.
2756 (macrotab.o, mdebugread.o): Ditto.
2757 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2758 (coff_ecoff_h, aout_aout64_h): Define.
2759 (aout_stabs_gnu_h, libaout_h): Define.
2763 * regcache.c (struct regcache_descr): Rename nr_registers to
2764 nr_cooked_registers. Revise comments describing the structure
2766 (init_regcache_descr): Update.
2767 (init_legacy_regcache_descr): Update.
2768 (read_register_gen, write_register_gen): When a cooked register in
2769 the raw register range, directly access the value from the raw
2774 * z8k-tdep.c: Do not include "obstack.h".
2775 * h8300-tdep.c, h8500-tdep.c: Ditto.
2776 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2777 * valprint.c, v850-tdep.c: Ditto.
2778 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2779 * mn10200-tdep.c: Ditto.
2781 * Makefile.in (z8k-tdep.o): Update dependencies.
2782 (m68hc11-tdep.o, valprint.o): Ditto.
2783 (v850-tdep.o, d10v-tdep.o): Ditto.
2784 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2785 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2786 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2787 (sh_opc_h, gdb_sim_sh_h): Define.
2788 (elf_sh_h, elf_bfd_h): Define.
2789 (opcode_m68hc11_h): Define.
2790 (OPCODES_SRC, OPCODES_DIR): define.
2791 (OPCODES): Use $(OPCODES_DIR).
2792 (gdb_sim_d10v_h): Rename sim_d10v_h.
2793 (gdb_sim_arm_h): Rename sim_arm_h.
2797 * utils.c (host_pointer_to_address, address_to_host_pointer):
2798 Change internal_error() message to indicate function responsible
2803 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2804 calls to local_hex_string_custom().
2808 * irix5-nat.c: Move IRIX shared library support from here...
2809 * solib-irix.c: ...to here. Revised substantially to work with
2810 generic solib framework.
2812 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2813 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2814 * mips-irix-tdep.c: New file.
2816 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2817 (mips-irix-tdep.o, solib-irix.o): New rules.
2818 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2820 * config/mips/irix6.mt (TDEPFILES): Likewise.
2821 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2825 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2826 disabled (via ``#if 0'') includes.
2830 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2831 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2832 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2833 Add support for the fpscr register.
2834 * rs6000-nat.c (regmap, fetch_inferior_registers)
2835 (store_inferior_registers, fetch_core_registers): Likewise.
2839 * rs6000-nat.c (language.h): Include.
2840 (special_regs): Delete this array.
2841 (regmap): New function.
2842 (fetch_register, store_register): Use regmap() to map gdb
2843 register numbers to ptrace register numbers. Also, use
2844 outputs from regmap() to make decisions regarding type of
2845 ptrace() call to make. In particular, don't compare against
2846 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2847 (fetch_inferior_registers, store_inferior_registers): Where
2848 possible, obtain register numbers from tdep struct. Don't
2849 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2850 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2851 (LAST_UISA_SP_REGNUM): Delete.
2855 * rs6000-nat.c (ppc-tdep.h): Include.
2856 (fetch_registers, store_register, fetch_core_registers): Don't
2857 access registers[] directly. Instead, use supply_register() or
2858 regcache_collect() as appropriate.
2859 (find_toc_address): Format hex address with local_hex_string().
2863 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2868 * jv-exp.y: Marked all strings with _().
2869 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2871 (MethodInvocation, CastExpression, parse_number, yyerror,
2872 java_type_from_name, push_expression_name, yylex): Typo fixes.
2876 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2877 (tee_file_flush, tee_file_write, tee_file_fputs)
2878 (tee_file_isatty): New.
2879 * ui-file.h (tee_file_new): Add prototype.
2883 * ada-lang.c: Change k&r style function definitions to prototyped
2885 * ada-typeprint.c: Change k&r style function definitions to prototyped
2887 * ada-valprint.c: Change k&r style function definitions to prototyped
2892 * README: Remove reference to remote-bug.
2893 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2895 (m88k-nat.o): Delete rule.
2896 (m88k-tdep.o): Delete rule.
2897 (remote-bug.o): Delete rule.
2898 * MAINTAINERS: Mark as obsolete.
2899 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2900 * m88k-tdep.c: Make file obsolete.
2901 * config/m88k/m88k.mh: Ditto.
2902 * config/m88k/delta88v4.mh: Ditto.
2903 * config/m88k/delta88v4.mt: Ditto.
2904 * config/m88k/delta88.mt: Ditto.
2905 * config/m88k/delta88.mh: Ditto.
2906 * remote-bug.c: Ditto.
2907 * config/m88k/tm-delta88.h: Ditto.
2908 * config/m88k/nm-delta88v4.h: Ditto.
2909 * config/m88k/xm-delta88.h: Ditto.
2910 * config/m88k/xm-dgux.h: Ditto.
2911 * config/m88k/tm-m88k.h: Ditto.
2912 * config/m88k/nm-m88k.h: Ditto.
2913 * config/m88k/tm-delta88v4.h: Ditto.
2914 * m88k-nat.c: Ditto.
2915 * cxux-nat.c: Ditto.
2916 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2917 and m88*-*-* obsolete.
2918 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2923 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2924 constant. Same for local pointer variables.
2925 (extract_signed_integer): Ditto.
2926 * defs.h (extract_unsigned_integer): Update.
2927 (extract_signed_integer): Update.
2931 * regcache.c (regcache_raw_write): Change buf parameter to a
2932 constant void pointer.
2933 (regcache_raw_read): Change buf parameter to a void pointer.
2934 (legacy_write_register_gen): Change myaddr parameter a constant
2936 (supply_register): Change val parameter to a const void pointer.
2937 * regcache.h (regcache_raw_write): Update declaration.
2938 (regcache_raw_read): Update declaration.
2939 (supply_register): Update declaration.
2943 * defs.h (gdb_readline_wrapper): Declare.
2944 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2945 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2946 * top.c (gdb_readline_wrapper): New function.
2947 (command_line_input): Use it.
2951 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2952 regcache_read and regcache_write.
2953 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2954 * regcache.c: Update.
2955 * sh-tdep.c (sh64_push_arguments): Update comment.
2956 (sh_pseudo_register_read): Update.
2957 (sh_pseudo_register_write): Update.
2958 (sh4_register_read): Update.
2959 (sh4_register_write): Update.
2960 (sh64_pseudo_register_read): Update.
2961 (sh64_pseudo_register_write): Update.
2962 (sh64_register_read): Update.
2963 (sh64_register_write): Update.
2964 * i386-tdep.c (i386_extract_return_value): Update.
2965 (i386_extract_struct_value_address): Update.
2966 (i386_extract_return_value): Update.
2967 * blockframe.c (generic_read_register_dummy): Update.
2968 (generic_call_dummy_register_unwind): Update
2969 * infrun.c (write_inferior_status_register): Update.
2973 * parser-defs.h (expression_context_pc): Make this extern.
2974 (Thanks to Michael Snyder.)
2978 GDB 5.2.1 released from 5.2 branch.
2979 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2980 * README: Update to mention 5.2.1.
2984 * remote.c (remote_read_bytes): Fix check for error.
2988 * aix-thread.c (language.h): Include.
2989 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2990 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2991 Print newlines at end of debug messages.
2992 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2993 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2997 * aix-thread.c (ppc-tdep.h): Include.
2998 (special_register_p): New function.
2999 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3000 (store_regs_user_thread): Use register number information from
3001 gdbarch_tdep struct instead of hardcoded offsets relative to
3002 FIRST_UISA_SP_REGNUM.
3003 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3004 special_register_p() instead of using FPLAST_REGNUM and
3005 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3006 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3007 will be MQ's register number.
3011 * aix-thread.c (ops): Rename to aix_thread_ops.
3012 (base_ops): Rename to base_target.
3013 (ops_attach): Rename to aix_thread_attach.
3014 (ops_detach): Rename to aix_thread_detach.
3015 (ops_resume): Rename to aix_thread_detach.
3016 (ops_wait): Rename to aix_thread_wait.
3017 (ops_kill): Rename to aix_thread_kill.
3018 (init_ops): Rename to init_aix_thread_ops.
3019 (ops_fetch_register): Rename to aix_thread_fetch_register.
3020 (ops_store_register): Rename to aix_thread_store_register.
3021 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3022 (ops_thread_alive): Rename to aix_thread_thread_alive.
3023 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3024 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3025 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3026 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3027 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3028 (store_regs_lib): Rename to store_regs_user_thread.
3029 (store_regs_kern): Rename to store_regs_kernel_thread.
3033 * aix-thread.c (ops_prepare_to_store): Eliminate.
3034 (init_ops): Don't initialize ops.prepare_to_store.
3035 (store_regs_kern): Pre-fetch register buffers from child,
3036 because some registers may not be in the cache. Copy
3037 regs from register cache only if they are cached.
3038 (store_regs_lib): Copy regs from register cache only
3040 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3041 fill_gprs64): Ditto.
3045 * aix-thread.c (gdb_assert.h): Include.
3046 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3047 register sizes (from register cache) match size of buffer holding
3049 (fill_sprs32): Change parameter types to match those in the ptrace()
3051 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3052 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3056 * aix-thread.c (supply_sprs64): Cosmetic change.
3057 (supply_sprs32): Cosmetic change.
3058 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3059 (fill_sprs64): Use regcache_collect instead of read_register.
3060 (store_regs_lib): Use regcache_collect instead of
3061 read_register. Use fill_sprs32 instead of fill_sprs64,
3062 if debugging a 32-bit architecture.
3063 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3064 out of the register cache, instead of passing a pointer into
3065 the register cache directly to ptrace. Use regcache_collect
3066 insteaad of read_register.
3067 (ops_prepare_to_store): Use target_read_registers instead
3068 of read_register_bytes.
3072 * MAINTAINERS: Add self under write after approval.
3076 * ada-tasks.c: Change k&r style function definitions to prototyped
3081 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3082 * x86-64-tdep.c: Include "objfiles.h".
3083 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3088 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3089 (update_context): Initialise cfa variable.
3093 * aix-thread.c: Shorten some long lines.
3094 Bring comments into line with code spec.
3098 * infrun.c: Re-indent using gdb_indent.sh.
3102 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3103 Leave the indentation temporarily untouched, to minimize the diffs.
3107 * stabsread.c: Make os9k sections of the code obsolete,
3109 * stabsread.h: Make os9k sections of the code obsolete.
3113 * linux-low.c (regsets_store_inferior_registers): Add free()
3114 at the end of a loop to prevent memory leak.
3115 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3116 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3117 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3119 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3123 * macrocmd.c (info_macro_command): Remove newline from error
3128 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3129 (sh_gdbarch_init): Use it for sh-dsp.
3133 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3134 64-bit DWARF2 format.
3138 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3139 <sys/proc.h> when not available.
3143 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3144 * stabsread.c: Make os9k sections of the code obsolete.
3145 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3146 * config/i386/i386os9k.mt: Make file obsolete.
3147 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3148 (COMMON_OBS): Remove os9kread.o
3149 (SFILES): Remove os9kread.c.
3150 (os9kread.o, remote-os9k.o): Make target obsolete.
3151 * remote-os9k.c: Make file obsolete.
3152 * os9kread.c: Make file obsolete.
3157 * NEWS: Mention that the FR30 has been made obsolete.
3158 * fr30-tdep.c: Make file obsolete.
3159 * config/fr30/tm-fr30.h: Ditto.
3160 * config/fr30/fr30.mt: Ditto.
3161 * configure.tgt: Make fr30-*-elf obsolete.
3162 * MAINTAINERS: Make fr30-elf obsolete.
3166 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3167 found is not inside a section.
3171 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3173 (pdc_realloc): Use xrealloc() instead of realloc().
3177 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3178 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3179 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3184 * aix-thread.c (ptrace_check): Eliminate goto.
3185 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3190 * aix-thread.c (gdbcmd.h): Include.
3191 (DEBUG, DBG, DBG2, dbg): Eliminate.
3192 (debug_aix_thread): New static global.
3193 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3194 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3195 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3196 invocations to DBG and DBG2 macros to test against
3197 ``debug_aix_thread'' and call fprintf_unfiltered().
3198 (_initialize_aix_thread): Add new command "set debug aix-thread".
3203 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3204 instead of supply_register.
3208 * dwarf2cfi.c: Include "gdb_assert.h".
3209 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3211 (update_context): Do not use __func__. Add missing ``break''.
3212 (update_context): Do not use __func__.
3216 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3217 and its setting. Set gdbarch instruction printing functions
3218 directly. For non-rs6000 case use new function
3219 gdb_print_insn_powerpc.
3220 (gdb_print_insn_powerpc): New function.
3224 * NEWS: Mention that the d30v has been marked obsolete.
3225 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3226 * configure.tgt: Mark d30v-*-* as obsolete.
3227 * d30v-tdep.c: Mark file as obsolete.
3228 * config/d30v/d30v.mt: Ditto.
3229 * config/d30v/tm-d30v.h: Ditto.
3233 * ada-tasks.c (add_task_entry): replace calls to
3234 malloc() with xmalloc
3235 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3237 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3238 ada_finish_decode_line_1, all_sals_for_line
3239 ada_breakpoint_rewrite): replace calls to free() with xfree()
3243 From Nicholas Duffek (with minor changes by Martin Hunt,
3244 Louis Hamilton, and Kevin Buettner):
3245 * aix-thread.c: New file.
3249 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3250 complaint for invalid attribute class or form.
3251 (read_func_scope): DW_AT_frame_base
3252 better handling of DW_AT_block*.
3253 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3254 better handling of DW_AT_block*.
3255 (read_common_block): DW_AT_location
3256 better handling of DW_AT_block*.
3257 (read_partial_die): DW_AT_location better handling
3259 (new_symbol): DW_AT_external better handling of
3260 DW_AT_block*. Proper initialization of variable
3262 (attr_form_is_block): New function that returns true
3263 if the attribute's form is of DW_FORM_block*.
3267 * valops.c (find_method_list): Remove comment about
3268 removed STATIC_MEMFUNCP argument.
3269 (value_find_oload_method_list): Likewise.
3273 From Nicholas Duffek:
3274 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3275 target_new_objfile_hook.
3279 From Nicholas Duffek:
3280 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3285 * MAINTAINERS: Mention --enable-sim-build-warnings.
3286 (m68hc11-elf): Disable sim build warnings.
3287 (m32r-elf): Mark as broken obsolete candidate.
3288 (x86_64-linux-gnu): Mark as buildable with -Werror.
3289 (arm-elf): Change -w to ``,'' which enables warnings but not
3294 * bcache.h: Update copyright.
3295 (struct bstring, struct bcache): Move definition to "bcache.c".
3296 Replaced by opaque declaration.
3297 (bcache_xfree): Replace free_bcache.
3298 (bcache_xmalloc, bcache_memory_used): Declare.
3300 * bcache.c: Update copyright.
3301 (struct bstring, struct bcache): Moved to here from "bcache.h".
3303 (bcache_xmalloc, bcache_memory_used): New functions.
3304 (bcache_xfree): Replace function free_bcache.
3306 * Makefile.in (objfiles.o): Add $(bcache_h).
3307 (objfiles_h): Remove $(bcache_h).
3308 (symfile.o): Add $(bcache_h).
3310 * symmisc.c: Update copyright.
3311 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3312 (print_objfile_statistics): Use bcache_memory_used.
3314 * symfile.c: Include "bcache.h".
3315 (reread_symbols): Use bcache_xfree.
3316 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3317 (add_psymbol_to_list): Pass psymbol_cache by value.
3318 (add_psymbol_with_dem_name_to_list): Ditto.
3320 * objfiles.h: Update copyright.
3321 (struct bcache): Declare opaque. Do not include "bcache.h".
3322 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3324 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3326 * objfiles.c: Include "bcache.h". Update copyright.
3327 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3329 (free_objfile): Use bcache_xfree.
3333 * monitor.c (monitor_fetch_register): Make name a constant.
3334 (monitor_store_register): Same.
3339 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3340 (finish_block) For non-function blocks, hash the symbol table. For
3341 function blocks, mark the symbol table as unhashed.
3342 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3343 (msymbol_hash_iw): Likewise.
3344 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3346 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3347 (lookup_minimal_symbol): Likewise for both.
3348 * symtab.h (struct block): Add `hashtable' flag. Comment the
3350 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3351 (ALL_BLOCK_SYMBOLS): Update.
3352 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3353 (struct symbol): Add `hash_next' pointer.
3354 * symtab.c (lookup_block_symbol): Search using the hash table when
3356 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3357 (search_symbols, find_addr_symbol): Likewise.
3359 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3360 (read_dst_symtab): Likewise.
3361 * jv-lang.c (get_java_class_symtab): Likewise.
3362 * mdebugread.c: Include "gdb_assert.h".
3363 (shrink_block): Assert that the block being modified is not hashed.
3364 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3365 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3367 (dump_symtab): Recognize hashed blocks.
3368 * printcmd.c (print_frame_args): Assert that function blocks do not
3369 have hashed symbol tables.
3370 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3371 (fill_in_ada_prototype, debug_print_block): Likewise.
3372 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3376 * stack.c (print_frame): Use result of frame_address_in_block()
3377 instead of fi->pc when evaluating symbols.
3378 (backtrace_command_1): Ditto.
3382 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3385 * arm-tdep.c (arm_register_name): Make return type constant.
3389 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3391 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3392 * s390-tdep.c (s390_fp_regnum): Ditto.
3393 (s390_read_fp): Ditto.
3394 (s390_pop_frame): Ditto.
3395 (_initialize_s390_tdep): Ditto.
3396 * remote.c (get_remote_state): Ditto.
3397 * procfs.c (mappingflags): Ditto.
3398 * memattr.c (_initialize_mem): Ditto.
3399 * mcore-tdep.c (mcore_pop_frame): Ditto.
3400 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3401 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3402 * language.c (set_case_str): Ditto.
3403 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3404 * frv-tdep.c (new_variant): Ditto.
3405 (frv_stopped_data_address): Ditto.
3406 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3407 (context_alloc): Ditto.
3408 (frame_state_alloc): Ditto.
3409 (unwind_tmp_obstack_init): Ditto.
3410 (unwind_tmp_obstack_free): Ditto.
3411 (cfi_read_fp): Ditto.
3412 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3413 (cris_pop_frame): Ditto.
3414 * c-lang.c (scanning_macro_expansion): Ditto.
3415 (finished_macro_expansion): Ditto.
3416 (c_preprocess_and_parse): Ditto.
3417 * gdbarch.sh: Ditto.
3418 * gdbarch.h, gdbarch.c: Regenerate.
3419 * config/mn10200/tm-mn10200.h: Adjust indentation.
3420 * target.c: Adjust indentation.
3421 * symtab.h: Adjust indentation.
3422 * stabsread.h: Adjust indentation.
3423 * remote-es.c: Adjust indentation.
3424 * os9kread.c: Adjust indentation.
3428 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3429 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3433 * NEWS: Mention m68k, mcore multi-arching.
3434 * MAINTAINERS: Change status of m68k, mcore to reflect
3439 * valops.c (find_overload_match): Free oload_syms.
3443 Define HAVE_SYS_PROC_H if sys/proc.h exists
3444 * configure.in: Add check for sys/proc.h
3445 * config.in: Regenerate.
3446 * configure: Regenerate.
3450 * config/m68k/tm-m68k.h: Remove macros wrapped in
3451 #if !GDB_MULTI_ARCH.
3455 * config.in, configure: Regenerate.
3459 * dwarf2cfi.c: Include "gcore.h".
3460 (execute_stack_op): Fix implementation of the
3461 DW_OP_deref and DW_OP_deref_size operators by letting do their
3462 lookup in the target.
3467 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3472 Fix PR gdb/595, gdb/602
3473 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3474 Don't call value_cast, just read the vtable pointer; update comments
3479 * config/mcore/tm-mcore.h: Remove file.
3480 * config/mcore/mcore.mt: Remove definition of TM_FILE
3481 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3485 * i386bsd-tdep.c: Include "gdb_string.h".
3489 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3490 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3492 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3493 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3494 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3495 (RETVAL_REGNUM): Move macros from tm-mcore.h
3496 (mcore_reg_struct_has_addr): New function.
3497 (mcore_gdbarch_init): Added initializations for the macros removed
3502 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3503 traditonal string branding within the ELF header.
3507 * symtab.c (remove_params): New function.
3508 (make_symbol_overload_list): Use it instead of cplus_demangle.
3509 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3513 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3515 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3517 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3518 and tdep->sigtramp_end.
3519 * i386obsd-nat.c: New file.
3520 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3522 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3523 Don't call get_current_frame().
3527 * i386-nat.c (child_post_startup_inferior): New function
3528 calling i386_cleanup_dregs if
3529 I386_USE_GENERIC_WATCHPOINTS is defined.
3530 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3531 conditional to acknowledge that i386-nat.c has its
3532 own child_post_startup_inferior function.
3536 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3537 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3538 instead of MAX_REGISTER_RAW_SIZE.
3539 (i386_extract_return_value, i386_extract_struct_value_address):
3540 Convert to use regcache.
3541 (i386_gdbarch_init): Set max_register_raw_size and
3542 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3543 Set extract_return_value and extract_struct_value_address instead
3544 of their deprecated variants.
3546 Convert i386 target to generic dummy frames.
3547 * i386-tdep.c: Include "symfile.h".
3548 (i386_frameless_signal_p): Consider a function to be frameless if
3549 the pc points at the first instruction of the function.
3550 (i386_frame_chain): Handle (generic) call dummies.
3551 (i386_frame_saved_pc): Likewise.
3552 (i386_frame_init_saved_regs): Remove code dealing with call
3553 dummies on the stack.
3554 (i386_push_dummy_frame): Removed.
3555 (i386_call_dummy_words): Removed.
3556 (i386_fix_call_dummy): Removed.
3557 (i386_push_return_address): New function.
3558 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3559 parameter, and don't call get_current_frame.
3560 (i386_pop_frame): New function.
3561 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3562 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3563 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3564 call_dummy_length to 0, set call_dummy_words to NULL, set
3565 sizeof_call_dummy_words to 0, set fix_call_dummy to
3566 generic_fix_call_dummy, set pc_in_call_dummy to
3567 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3568 generic_push_dummy_frame, set push_return_address to
3569 i386_push_return_address and set frame_chain_valid to
3570 generic_file_frame_chain_valid.
3574 * gdbarch.sh (struct regcache): Add opaque declaration.
3575 (EXTRACT_RETURN_VALUE): New architecture method.
3576 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3577 * gdbarch.h, gdbarch.c: Regenerate.
3578 * arch-utils.c (legacy_extract_return_value): New function.
3579 * arch-utils.h (legacy_extract_return_value): Declare.
3580 * values.c (value_being_returned): Re-enable code handling
3581 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3582 deprecated_grub_regcache_for_registers call to block handling
3583 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3584 (EXTRACT_RETURN_VALUE): Do not define.
3588 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3589 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3590 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3591 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3592 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3593 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3594 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3595 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3596 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3597 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3598 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3599 argument so the function fits the prototype in the architecture
3601 (mcore_pop_frame): Remove argument so the function fits the
3602 prototype. Use get_current_frame instead of the argument.
3603 (mcore_push_arguments): Change type of struct_return so the
3604 function can be used in the architecture vector.
3605 (mcore_store_struct_return): Add.
3606 (mcore_frame_init_saved_regs): Add.
3607 (mcore_gdbarch_init): Add function calls to replace the macros
3608 removed from tm-mcore.h
3612 * infcmd.c (print_return_value): Remove compatibility code calling
3613 deprecated_grub_regcache_for_registers.
3615 * values.c: Include "regcache.h".
3616 (value_being_returned): Update. Use
3617 deprecated_grub_regcache_for_registers to extract the register
3619 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3620 ``struct regcache''.
3621 * Makefile.in (values.o): Add dependency on $(regcache_h).
3623 * inferior.h (run_stack_dummy): Change type of second parameter to
3624 a ``struct regcache''.
3625 * valops.c (hand_function_call): Change type of retbuf to ``struct
3626 regcache''. Allocate using regcache_xmalloc, clean using
3627 make_cleanup_regcache_xfree.
3628 * infcmd.c (run_stack_dummy): Update. Use
3629 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3631 * regcache.c (do_regcache_xfree): New function.
3632 (make_cleanup_regcache_xfree): New function.
3633 * regcache.h (make_cleanup_regcache_xfree): Declare.
3637 * event-top.c (command_line_handler): Don't read past
3638 beginning of buffer.
3642 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3644 (varobj_create): Store frame_id for root.
3645 (varobj_gen_name): Use xasprintf.
3646 (varobj_update): Save and restore frame using get_frame_id() and
3648 (create_child): Use xasprintf.
3649 (new_root_variable): Initialize frame_id.
3650 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3651 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3652 to prevent memory leak.
3656 * valops.c (hand_function_call): Move declaration of retbuf to
3657 start of function, allocate using malloc, add a cleanup but before
3658 the inf_status cleanup, cleanup the buffer. Rename local variable
3659 old_chain to inf_status_cleanup.
3663 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3665 * cli/cli-decode.c (cmd_func_p): New function.
3666 (cmd_func): New function.
3668 * command.h: Add cmd_func() and cmd_func_p().
3672 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3673 (REGISTER_SIZE): Remove.
3674 (MAX_REGISTER_RAW_SIZE): Remove.
3675 (REGISTER_VIRTUAL_TYPE): Remove.
3676 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3677 (REGISTER_NAME): Remove.
3678 (USE_GENERIC_DUMMY_FRAMES): Remove.
3679 (CALL_DUMMY): Remove.
3680 (CALL_DUMMY_START_OFFSET): Remove.
3681 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3682 (CALL_DUMMY_LOCATION): Remove.
3683 (FIX_CALL_DUMMY): Remove.
3684 (CALL_DUMMY_ADDRESS): Remove.
3685 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3686 (SAVE_DUMMY_FRAME_TOS): Remove.
3687 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3688 (mcore_register_virtual_type): New function.
3689 (mcore_register_byte): New function.
3690 (mcore_register_size): New function.
3691 (mcore_register_name): New function.
3692 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3693 macros removed from tm-mcore.h.
3694 (mcore_dump_tdep): Add.
3695 (_initialize_mcore_tdep): Add gdbarch_register call.
3699 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3700 frameless_look_for_prologue, such that we actually call this
3705 * frame.h (frame_address_in_block): New function.
3707 * blockframe.c (frame_address_in_block): New function extracted
3708 from get_frame_block().
3709 (get_frame_block): Use frame_address_in_block().
3710 (block_innermost_frame): Use frame_address_in_block() to match
3711 the frame pc address against the block boundaries rather than
3712 the frame pc directly. This prevents a failure when a frame pc
3713 is actually a return-address pointing immediately after the end
3718 * MAINTAINERS: Add self under write after approval.
3722 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3723 used in architecture vector. The default is
3724 m68k_local_breakpoint_from_pc.
3725 (m68k_local_breakpoint_from_pc): Add.
3726 (enum): Add register numbers from tm-m68k.h.
3727 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3729 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3730 GDB_MULTI_ARCH_PARTIAL.
3731 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3732 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3734 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3735 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3736 to enum in m68k-tdep.c
3740 * solib-osf.c (open_map): Compute the list of shared libraries
3741 loaded by the inferior, rather than the list of libraries loaded
3742 by GDB itself. Otherwise, GDB ends up reading the symbols from
3743 the wrong shared libraries...
3747 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3748 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3750 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3752 (FRAMELESS_SIGNAL): Remove function.
3753 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3754 i386_linux_saved_pc_after_call): Removed.
3755 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3756 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3757 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3759 * i386-tdep.c (i386_frameless_signal_p): New function.
3760 (i386_frame_chain): Deal with frameless signals.
3761 (i386_sigtramp_saved_sp): New function.
3762 (i386_frame_saved_pc): Deal with frameless signals.
3763 (i386_saved_pc_after_call): Make sure the correct value is
3764 returned just after entry into a sigtramp.
3765 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3766 i386fbsd4_sc_sp_offset): New variables.
3767 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3768 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3769 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3770 similiar to what we already did for sc_pc_offset.
3771 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3774 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3778 * config/i386/tm-x86-64linux.h: New.
3779 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3781 * config/i386/nm-x86-64.h: Rename to ...
3782 * config/i386/nm-x86-64linux.h: ... this one.
3783 * config/i386/x86-64linux.mh: Reflect the above change.
3787 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3788 with sigcontext_addr. Add sc_sp_offset.
3789 (i386bsd_sigtramp_saved_pc): Remove prototype.
3790 (i386bsd_sicontext_addr): Add prototype.
3791 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3792 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3793 (i386_svr4_sigtramp_saved_pc): Removed.
3794 (i386_svr4_sigcontext_addr): New function.
3795 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3796 Initialize tdep->sigcontext_addr instead. Initialize
3797 tdep->sc_pc_offset and tdep->sc_sp_offset.
3798 (i386_gdbarch_init): Likewise.
3799 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3801 (i386bsd_sigtramp_saved_pc): Remove function.
3802 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3803 Initialize tdep->sigcontext_addr instead. Initialize
3805 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3806 of tdep->sigtramp_saved_pc.
3807 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3808 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3811 * i386-tdep.c (i386_frameless_function_invocation,
3812 i386_frame_num_args, i386_frame_init_saved_regs,
3813 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3814 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3815 i386_extract_return_value, i386_store_return_value,
3816 i386_extract_struct_value_address, i386_register_virtual_type,
3817 i386_register_convertible, i386_register_convert_to_virtual,
3818 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3819 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3824 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3826 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3827 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3828 this macro. Include "value.h".
3832 * ada-exp.tab.c: remove as it's a generated file
3833 * ada-lex.c: remove as it's a generated file
3837 * config/i386/tm-i386.h (struct frame_info, struct
3838 frame_saved_regs, struct value, struct type): Remove forward
3841 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3842 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3843 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3844 (FILL_FPXREGSET): Define.
3846 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3848 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3849 i[3456]86-*-netbsd* case.
3850 * config/i386/tm-obsd.h: Removed.
3851 * config/i386/obsd.mt: Removed.
3852 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3854 (MH_CFLAGS): Add -DYYDEBUG=0.
3856 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3857 i386nbsd_sc_pc_offset on OpenBSD too.
3859 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3860 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3861 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3863 * i386bsd-tdep.c: Include "arch-utils.h".
3864 (i386bsd_aout_in_solib_call_trampoline): New function.
3865 (i386bsd_init_abi): Set in_solib_call_trampoline to
3866 i386bsd_aout_in_solib_call_trampoline.
3867 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3868 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3872 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3873 (struct obstack, struct bcache): Add opaque declarations.
3874 * Makefile.in (macrotab_h): Update
3878 * blockframe.c (generic_find_dummy_frame): Change return type to
3879 ``struct regcache''.
3880 (struct dummy_frame): Replace field ``registers'' with regcache, a
3881 struct regcache object.
3882 (generic_find_dummy_frame): Update.
3883 (generic_push_dummy_frame): Update. Use regcache_xfree,
3884 regcache_xmalloc and regcache_cpy.
3885 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3887 (deprecated_generic_find_dummy_frame): Update.
3888 (generic_read_register_dummy): Update. Use
3889 regcache_read_as_address.
3890 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3891 (generic_get_saved_register): Update. Use regcache_read.
3895 * Makefile.in (objfiles_h): Add $(bcache_h).
3896 * objfiles.h: Include "bcache.h".
3898 * Makefile.in (symtab_h): Remove $(bcache_h).
3899 * symtab.h: Do not include "bcache.h".
3903 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3904 generic_func_frame_chain_valid.
3908 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3909 * config/i386/tm-fbsd.h: Likewise.
3913 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3914 generic_unwind_get_saved_register.
3919 * regcache.c (supply_register): Add missing argument to
3920 register_buffer call.
3924 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3925 Solaris /bin/grep does not not like it. From Peter Schauer.
3929 * command.h (add_setshow_cmd): Declare.
3930 (add_setshow_cmd_full): Declare.
3931 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3932 returns void. Use add_setshow_cmd_full.
3933 (add_setshow_cmd_full): New function.
3934 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3935 (add_setshow_boolean_cmd): Likewise.
3939 * config/vax/tm-vax.h: Protect from multiple inclusion.
3940 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3941 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3942 * config/vax/tm-vaxbsd.h: ...here. New file.
3943 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3947 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3948 (BELIEVE_PCC_PROMOTION): Remove.
3949 (AP_REGNUM): Move to...
3950 * config/vax/nm-vax.h: ...here.
3951 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3952 (vax_breakpoint_from_pc): New function.
3953 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3954 and gdbarch_believe_pcc_promotion.
3958 * Makefile.in (vax_tdep_h): Define.
3959 (vax-tdep.o): Use $(vax_tdep_h).
3960 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3961 (vax_dump_tdep): New function.
3962 (_initialize_vax_tdep): Register vax_dump_tdep.
3963 * vax-tdep.h: Include osabi.h.
3964 (struct gdbarch_tdep): New.
3968 * frame.h (deprecated_generic_find_dummy_frame): Rename
3969 generic_find_dummy_frame.
3970 * blockframe.c (generic_find_dummy_frame): Make static.
3971 (deprecated_generic_find_dummy_frame): New function.
3972 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3973 generic_find_dummy_frame with deprecated_find_dummy_frame.
3974 (sh64_nofp_frame_init_saved_regs): Ditto.
3975 (sh_fp_frame_init_saved_regs): Ditto.
3976 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3977 (s390_frame_chain): Ditto.
3978 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3982 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3983 gdbarch vector are at the top.
3985 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3986 (FRAME_ARGS_ADDRESS): Remove.
3987 (FRAME_LOCALS_ADDRESS): Remove.
3988 (FRAME_NUM_ARGS): Remove.
3989 (FRAME_ARGS_SKIP): Remove.
3990 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3991 (m68k_gdbarch_init): Add gdbarch initializations for macros
3992 undefined in tm-m68k.h
3996 * monitor.h: Add the function regname to monitor_ops
3997 structure. This way NUM_REGS does not have to be a constant.
3998 * monitor.c (monitor_fetch_register): Added support for regname
3999 function. The function is called if the array regnames is NULL.
4000 (monitor_store_register): Same.
4001 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4003 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4004 cpu32bug_cmds.regname to point to new function.
4005 * abug-rom.c (abug_regname): Same as above.
4006 (init_abug_cmds): Same.
4007 * dbug-rom.c (dbug_regname): Same as above.
4008 (init_dbug_cmds): Same.
4009 * remote-est.c (est_regname): Same.
4010 (init_est_cmds): Same.
4011 * rom68k-rom.c (rom68k_regname): Same.
4012 (init_rom68k_cmds): Same.
4016 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4020 * infrun.c (stop_registers): Change variable's type to ``struct
4022 (xmalloc_inferior_status): Delete function.
4023 (free_inferior_status): Delete function.
4024 (normal_stop): Use regcache_cpy.
4025 (struct inferior_status): Change type of fields ``stop_registers''
4026 and ``registers'' to ``struct regcache''.
4027 (write_inferior_status_register): Use regcache_write.
4028 (save_inferior_status): Instead of calling
4029 xmalloc_inferior_status, allocate the inf_status buffer directly.
4030 Use regcache_dup_no_passthrough and regcache_dup to save the
4032 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4033 Replace the stop_registers regcache instead of overriding it. Use
4034 regcache_xfree. Instead of calling free_inferior_status, xfree
4035 the buffer directly.
4036 (discard_inferior_status): Use regcache_xfree. Instead of calling
4037 free_inferior_status, xfree the buffer directly.
4038 (build_infrun): Use regcache_xmalloc.
4039 (_initialize_infrun): Delete redundant call to build_infrun.
4041 * Makefile.in (infcmd.o): Add $(regcache_h).
4043 * infcmd.c: Include "regcache.h".
4044 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4045 obtain the address of `stop_registers' register buffer.
4046 (print_return_value): Ditto.
4048 * inferior.h (struct regcache): Add opaque declaration.
4049 (stop_registers): Change variable's declared type to ``struct
4054 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4055 * target.c (initialize_targets): Fixed typo in
4056 trust-readonly-sections `show' documentation.
4058 * main.c: Marked all strings with _().
4062 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4063 that means max CORE_ADDR+1.
4064 (lookup_mem_region): Ditto.
4065 (mem_info_command): Ditto.
4069 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4070 (REGISTER_BYTES_OK): Remove.
4071 (REGISTER_BYTES): Remove.
4072 (STORE_STRUCT_RETURN): Remove.
4073 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4074 (STORE_RETURN_VALUE): Remove.
4075 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4076 (FRAME_CHAIN): Remove.
4077 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4078 (FRAME_SAVED_PC): Remove.
4079 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4080 (m68k_store_struct_return): Add.
4081 (m68k_deprecated_extract_return_value): Add.
4082 (m68k_deprecated_extract_struct_value_address): Add.
4083 (m68k_store_return_value): Add.
4084 (m68k_frame_chain): Add.
4085 (m68k_frameless_function_invocation): Add.
4086 (m68k_frame_saved_pc): Add.
4087 (m68k_gdbarch_init): added set_gdbarch calls for new
4088 functions and deleted macros.
4092 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4093 (ALLDEPFILES): Likewise.
4094 (udiheaders): Removed.
4095 (udip2soc.o): Likewise.
4096 (udi2go32.o): Likewise.
4098 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4102 * infrun.c (_initialize_infrun): Delete unnecessary call to
4105 * regcache.h: Update comments describing the regcache_cpy family
4107 (regcache_save, regcache_restore): Delete declaration.
4108 (regcache_save_no_passthrough): Delete declaration.
4109 (regcache_restore_no_passthrough): Delete declaration.
4110 * regcache.c (regcache_save): Delete function.
4111 (regcache_save_no_passthrough): Delete function.
4112 (regcache_restore): Delete function.
4113 (regcache_restore_no_passthrough): Delete function.
4117 * config/m68k/tm-m68k.h: Fix typo.
4118 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4119 (m68k_frame_init_saved_regs): Declare.
4123 Remove some vestiges of Harris 88k support.
4124 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4125 register numbering quirk.
4126 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4127 odd symbols occurring in Harris 88k ELF targets.
4131 * gdb_locale.h: New file.
4132 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4133 (defs_h): Added gdb_locale.h.
4134 * configure, config.in: Rebuilt.
4135 * configure.in (PACKAGE): Define.
4136 * defs.h: Include gdb_locale.h.
4137 * main.c (captured_main): Call setlocale, bindtextdomain,
4142 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4143 * config/frv/frv.mt: New file.
4144 * config/frv/tm-frv.h: New file.
4145 * configure.tgt: Support frv-*-*.
4146 * Makefile.in (frv-tdep.o): New target.
4147 * frv-tdep.c: New file.
4148 * NEWS: Mention frv.
4152 * MAINTAINERS: Add self to "Write After Approval" list.
4156 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4157 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4158 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4159 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4160 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4162 * m68k-tdep.c: Include arch-utils.h
4163 (m68k_register_raw_size): Add.
4164 (m68k_register_virtual_size): Add.
4165 (m68k_register_virtual_type): Add.
4166 (m68k_register_name): Add.
4167 (m68k_stack_align): Add.
4168 (m68k_register_byte): Add.
4169 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4174 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4175 m68k_find_saved_regs.
4176 (m68k_pop_frame): Removed saved_regs structure, and replaced
4177 references to it with frame->saved_regs.
4178 (m68k_gdbarch_init): Added function calls to initialize the
4180 (m68k_fix_call_dummy): Add.
4181 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4182 (CALL_DUMMY): Remove.
4183 (CALL_DUMMY_LENGTH): Remove.
4184 (CALL_DUMMY_START_OFFSET): Remove.
4185 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4186 (FIX_CALL_DUMMY): Remove.
4187 (PUSH_DUMMY_FRAME): Remove.
4188 (POP_FRAME): Remove.
4192 * parse.c (parse_fprintf): New function used to avoid calls to
4193 fprintf in bison parser generated debug code.
4194 * parser-defs.h: Declaration of new parse_fprintf function.
4195 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4196 Set YYDEBUG to 1 by default.
4197 Set YYFPRINTF as parse_fprintf.
4201 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4203 (pointer_encoding, enum ptr_encoding): New.
4204 (execute_cfa_program): Take care about pointer encoding.
4205 (dwarf2_build_frame_info): Only call parse_frame_info for
4206 .debug_frame and .eh_frame.
4207 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4208 fixed augmentation handling, added relative addressing,
4209 ignore duplicate FDEs. Added comments.
4210 * dwarf2cfi.c: Reindented.
4214 * event-top.c (command_handler): Don't use space_at_cmd_start
4215 unless there is sbrk() on the host. Assign time and space data
4216 to union fields of the appropriate length.
4220 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4221 x86_64_register_name. Return type changed to 'const char *'.
4222 (x86_64_register_name2nr): Rename to x86_64_register_number.
4223 (x86_64_gdbarch_init): Update to reflect the change.
4224 * x86-64-tdep.h: Ditto.
4225 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4226 (supply_fpregset): Ditto.
4230 * regcache.h: Update copyright.
4231 (struct regcache, struct gdbarch): Add opaque declarations.
4232 (current_regcache): Declare global variable.
4233 (regcache_read, regcache_write): Add gdbarch parameter.
4234 (regcache_save, regcache_save_no_passthrough)
4235 (regcache_restore, regcache_restore_no_passthrough)
4236 (regcache_dup, regcache_dup_no_passthrough)
4237 (regcache_cpy, regcache_cpy_no_passthrough)
4238 (deprecated_grub_regcache_for_registers)
4239 (deprecated_grub_regcache_for_register_valid)
4240 (regcache_valid_p): Add function declarations.
4242 * regcache.c: Update copyright.
4243 (regcache_descr_handle): New global variable.
4244 (struct regcache_descr): Define.
4245 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4246 (regcache_descr, xfree_regcache_descr): New functions.
4247 (struct regcache): Define.
4248 (regcache_xmalloc, regcache_xfree): New functions.
4249 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4250 (regcache_dup, regcache_dup_no_passthrough): New functions.
4251 (regcache_valid_p, regcache_read_as_address): New functions.
4252 (deprecated_grub_regcache_for_registers): New function.
4253 (deprecated_grub_regcache_for_register_valid): New function.
4254 (current_regcache): New global variable.
4255 (register_buffer): Add regcache parameter. Update calls.
4256 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4257 (read_register_gen, write_register_gen): Update register_buffer
4258 call. Test for legacy_p instead of gdbarch_register_read_p or
4259 gdbarch_register_write_p.
4260 (regcache_collect): Update register_buffer call.
4261 (build_regcache): Rewrite. Use deprecated grub functions.
4262 (regcache_save, regcache_save_no_passthrough): New functions.
4263 (regcache_restore, regcache_restore_no_passthrough): New
4265 (_initialize_regcache): Create the regcache_data_handle. Swap
4266 current_regcache global variable.
4268 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4269 parameter to regcache_read and regcache_write calls.
4270 (sh4_register_read): Ditto.
4271 (sh64_pseudo_register_read): Ditto.
4272 (sh64_register_read): Ditto.
4273 (sh_pseudo_register_write): Ditto.
4274 (sh4_register_write): Ditto.
4275 (sh64_pseudo_register_write): Ditto.
4276 (sh64_register_write): Ditto.
4278 * defs.h (XCALLOC): Define.
4282 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4283 * m68k-tdep.c (m68k_gdbarch_init): Added.
4284 (m68k_dump_tdep): Added.
4288 * ada-lang.c (fill_in_ada_prototype): Update comment.
4292 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4294 (mips_abi_string, mips_abi_strings): New.
4295 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4296 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4297 tdep->mips_abi_string. Honor mips_abi_string. Default to
4298 O32 if no ABI is found.
4299 (mips_dump_tdep): Use mips_abi_strings.
4300 (mips_abi_update): New function.
4301 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4302 ``set mips abi'' and ``show mips abi''. Check the size of
4307 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4312 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4313 current frame using only the first stack size adjustment. All
4314 subsequent size adjustments are not considered to be part of
4315 the "static" part of the current frame.
4316 Compute the address of the saved registers relative to the
4317 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4318 in use in this frame.
4322 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4324 suggesting this solution.
4328 * config/romp/xm-rtbsd.h: Delete file.
4329 * config/romp/rtbsd.mh: Delete file.
4333 * breakpoint.c (condition_command): Post breakpoint_modify
4334 when a condition is added to an existing breakpoint.
4335 (commands_command): Likewise for commands.
4336 (set_ignore_count): Likewise for ignore counts.
4337 If no tty, do not simply return, still need to send event
4339 (ignore_command): Only print a newline if the command came
4341 Don't call breakpoints_changed, since this is now properly
4342 handled by set_ignore_count.
4346 * MAINTAINERS: Note that cris-elf target can be compiled with
4348 * cris-tdep.c (cris_register_name): Make return type constant.
4349 (cris_breakpoint_from_pc): Ditto.
4353 * frame.h (struct frame_info): Change type of context to
4358 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4360 * gdbarch.h, gdbarch.c: Regenerate.
4361 * config/mips/tm-mips.h (mips_register_name): Update.
4362 * i386-tdep.h (i386_register_name): Update.
4363 * mips-tdep.c (mips_register_name): Update
4364 * alpha-tdep.c (alpha_register_name): Update.
4365 * arch-utils.c (legacy_register_name): Update.
4366 * arch-utils.h (legacy_register_name): Update.
4367 * avr-tdep.c (avr_register_name): Update.
4368 * ia64-tdep.c (ia64_register_name): Update.
4369 * i386-tdep.c (i386_register_name): Update.
4370 * sparc-tdep.c (sparc32_register_name): Update.
4371 (sparc64_register_name): Update.
4372 (sparclite_register_name): Update.
4373 (sparclet_register_name): Update.
4374 * sh-tdep.c (sh_generic_register_name): Update.
4375 (sh_sh_register_name): Update.
4376 (sh_sh3_register_name): Update.
4377 (sh_sh3e_register_name): Update.
4378 (sh_sh_dsp_register_name): Update.
4379 (sh_sh3_dsp_register_name): Update.
4380 (sh_sh4_register_name): Update.
4381 (sh_sh64_register_name): Update.
4382 * s390-tdep.c (s390_register_name): Update.
4383 * rs6000-tdep.c (rs6000_register_name): Update.
4384 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4385 (ns32k_register_name_32382): Update.
4386 * d10v-tdep.c (d10v_ts2_register_name): Update.
4387 (d10v_ts3_register_name): Update.
4388 * xstormy16-tdep.c (xstormy16_register_name): Update.
4389 * vax-tdep.c (vax_register_name): Update.
4390 * v850-tdep.c (v850_register_name): Update.
4391 * m68hc11-tdep.c (m68hc11_register_name): Update.
4392 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4393 (am33_register_name): Update.
4397 * m68k-tdep.c: Reindented.
4401 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4402 list of predefined types.
4406 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4407 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4408 REGISTER_CONVERT_TO_RAW): Remove defines.
4409 (i386_register_virtual_type, i386_register_convertible,
4410 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4412 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4413 macros mentioned above.
4415 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4416 (i386lynx_saved_pc_after_call): Remove prototype.
4417 * i386ly-tdep.c: Include "i386-tdep.h".
4418 (i386lynx_saved_pc_after_call): Make static. Use
4419 read_memory_nobpt instead of read_memory. Use
4420 read_memory_unsigned_integer instead of read_memory_integer.
4421 (i386lynx_init_abi): New function.
4422 (i386lynx_coff_osabi_sniffer): New function.
4423 (_initialize_i386bsd_tdep): New function.
4425 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4426 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4427 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4428 (i386_fix_call_dummy): Remove prototype.
4429 * i386-tdep.c (i386_call_dummy_words): New variable.
4430 (i386_gdbarch_init): Adjust for removal of the
4431 macros mentioned above.
4435 * command.h (add_setshow_auto_boolean_cmd): Replace
4436 add_set_auto_boolean_cmd.
4437 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4438 add_set_auto_boolean_cmd.
4439 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4440 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4441 mask-address'' command.
4442 (show_mask_address): Add cmd parameter.
4443 * remote.c (add_packet_config_cmd): Update. Change type of
4444 set_func and show_func to cmd_sfunc_ftype.
4445 (_initialize_remote): Update `set remote Z-packet'
4446 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4447 (show_remote_protocol_e_packet_cmd): Ditto.
4448 (show_remote_protocol_E_packet_cmd): Ditto.
4449 (show_remote_protocol_P_packet_cmd): Ditto.
4450 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4451 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4452 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4453 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4454 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4455 (show_remote_protocol_Z_packet_cmd): Ditto.
4456 (show_remote_protocol_binary_download_cmd): Ditto.
4457 (show_remote_cmd): Pass NULL to all of above.
4461 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4462 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4463 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4464 POP_FRAME): Remove defines.
4465 (i386_push_arguments, i386_store_struct_return,
4466 i386_extract_return_value, i386_store_return_value,
4467 i386_extract_struct_value_address, i386_push_dummy_frame,
4468 i386_pop_frame): Renove prototypes.
4469 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4470 macros mentioned above.
4474 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4475 add_set_boolean_cmd.
4476 (add_setshow_cmd): New function.
4477 * command.h (add_setshow_boolean_cmd): Replace
4478 add_set_boolean_cmd.
4479 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4480 and ``set rdiromatzero''.
4481 * maint.c (_initialize_maint_cmds): Update commented out code.
4482 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4483 * target.c (initialize_targets): Update `set
4484 trust-readonly-sections'.
4485 * remote.c (_initialize_remote): Update `set remotebreak'.
4489 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4490 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4491 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4492 fit into multi-arch framework.
4493 (i386_breakpoint_from_pc): New function.
4494 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4497 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4498 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4499 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4500 (i386_frameless_function_invocation, i386_frame_num_args,
4501 i386_frame_init_saved_regs): Remove prototypes.
4502 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4503 macros mentioned above.
4507 * cli/cli-decode.c (set_cmd_cfunc): Update.
4508 (set_cmd_sfunc): Update.
4509 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4510 (set_cmd_sfunc, set_cmd_cfunc): Update.
4511 * cli/cli-decode.h: Update.
4515 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4516 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4520 * defs.h (auto_boolean): Declare enum.
4521 * command.h (cmd_auto_boolean): Delete enum.
4522 * mips-tdep.c (mask_address_var): Update.
4523 (mips_mask_address_p): Update.
4524 (show_mask_address): Update.
4525 * remote.c (struct packet_config): Update.
4526 (update_packet_config): Update.
4527 (show_packet_config_cmd): Update.
4528 (packet_ok): Update.
4529 (add_packet_config_cmd): Update.
4530 (_initialize_remote):
4531 * command.h: Update.
4532 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4533 (do_setshow_command): Update.
4534 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4535 * cli/cli-decode.h: Update.
4539 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4540 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4541 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4542 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4543 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4544 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4546 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4547 list of DJGPP COFF targets.
4549 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4550 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4551 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4552 (FP0_REGNUM): Remove define.
4553 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4554 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4555 (i386_register_virtual_size): Remove protoype.
4556 * i386-tdep.c (i386_register_virtual_size): Removed.
4557 (i386_extract_return_value, i386_store_return_value): Use
4558 FP0_REGNUM instead of NUM_FREGS to determine whether the
4559 floating-point registers are available.
4560 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4561 Adjust for removal of macros mentioned above.
4565 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4567 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4569 (supply_gregset, fill_gregset): Remove use of register keyword and
4570 remove declaration for regmap. Use I386_NUM_GREGS instead of
4571 NUM_REGS and NUM_FREGS.
4572 (FPREGSET_FSAVE_OFFSET): Remove.
4573 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4574 NUM_FREGS to determine whether the floating-point registers are
4577 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4578 gnu_store_registers): Replace usage of NUM_GREGS with
4581 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4582 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4583 usage of NUM_GREGS with I386_NUM_GREGS.
4585 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4587 * i386bsd-nat.c: Include "i386-tdep.h".
4588 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4591 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4592 and associated comment. They no longer make any sense, since we
4593 don't use this file anymore on Linux.
4595 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4596 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4597 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4598 elements in these arrays.
4599 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4604 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4605 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4609 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4610 EXTRACT_RETURN_VALUE.
4611 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4612 EXTRACT_STRUCT_VALUE_ADDRESS.
4613 * gdbarch.h, gdbarch.c: Regenerate.
4615 * values.c (value_being_returned): Handle
4616 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4617 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4619 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4620 * arm-tdep.c (arm_gdbarch_init): Update.
4621 * avr-tdep.c (avr_gdbarch_init): Update.
4622 * cris-tdep.c (cris_gdbarch_init): Update.
4623 * d10v-tdep.c (d10v_gdbarch_init): Update.
4624 * ia64-tdep.c (ia64_gdbarch_init): Update.
4625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4627 * s390-tdep.c (s390_gdbarch_init): Update.
4628 * sh-tdep.c (sh_gdbarch_init): Update.
4629 * s390-tdep.c (s390_gdbarch_init): Update.
4630 * sparc-tdep.c (sparc_gdbarch_init): Update.
4631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4632 * v850-tdep.c (v850_gdbarch_init): Update.
4633 * vax-tdep.c (vax_gdbarch_init): Update.
4634 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4635 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4637 * config/arc/tm-arc.h: Update.
4638 * config/d30v/tm-d30v.h: Update.
4639 * config/fr30/tm-fr30.h: Update.
4640 * config/h8300/tm-h8300.h: Update.
4641 * config/h8500/tm-h8500.h: Update.
4642 * config/i386/tm-i386.h: Update.
4643 * config/i386/tm-ptx.h: Update.
4644 * config/i386/tm-symmetry.h: Update.
4645 * config/i960/tm-i960.h: Update.
4646 * config/m32r/tm-m32r.h: Update.
4647 * config/m68k/tm-delta68.h: Update.
4648 * config/m68k/tm-linux.h: Update.
4649 * config/m68k/tm-m68k.h: Update.
4650 * config/m88k/tm-m88k.h: Update.
4651 * config/mcore/tm-mcore.h: Update.
4652 * config/mips/tm-mips.h: Update.
4653 * config/mn10200/tm-mn10200.h: Update.
4654 * config/pa/tm-hppa.h: Update.
4655 * config/pa/tm-hppa64.h: Update.
4656 * config/sparc/tm-sp64.h: Update.
4657 * config/sparc/tm-sparc.h: Update.
4658 * config/sparc/tm-sparclet.h: Update.
4659 * config/z8k/tm-z8k.h: Update.
4663 * Makefile.in (i386_linux_tdep_h): Define.
4664 (i386_tdep_h, i387_tdep_h): Define.
4665 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4666 $(i386_tdep_h) and $(i387_tdep_h).
4667 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4671 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4672 Already covered by the default.
4674 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4675 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4676 (i386_gdbarch_init): Initialize long_double_format and long_double
4679 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4680 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4682 * config/i386/i386sol2.mh: ... here.
4683 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4684 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4685 (SIGCONTEXT_PC_OFFSET): Remove define.
4686 (IN_SIGTRAMP): Remove define.
4687 * i386-sol2-tdep.c: New file.
4689 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4690 * config/i386/tm-i386nw.h: Removed.
4692 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4693 USE_STRUCT_CONVENTION): Remove defines.
4694 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4695 (get_longjmp_target): Remove prototype.
4696 (IN_SIGTRAMP): Remove define.
4697 (i386bsd_in_sigtramp): Remove prototype.
4698 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4699 function. Update comment accordingly
4700 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4701 (FRAME_SAVED_PC): Remove define.
4702 (i386bsd_frame_saved_pc): Remove prototype.
4703 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4704 GET_LONGJMP_TARGET): Remove defines.
4705 (get_longjmp_target): Remove prototype.
4706 (IN_SIGTRAMP): Remove define.
4707 (i386bsd_in_sigtramp): Remove prototype.
4708 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4709 function. Update comment accordingly
4710 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4711 (FRAME_SAVED_PC): Remove define.
4712 (i386bsd_frame_saved_pc): Remove prototype.
4713 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4715 (USE_STRUCT_CONVENTION): Remove prototype.
4716 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4718 (_initialize_i386bsd_nat): Revise logic to determine some
4719 constants at compile time when compiling a native GDB. Warn if
4720 things don't match up with what we expect.
4721 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4723 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4724 to use date stored in `struct gdbarch_tdep'.
4725 (i386bsd_sigcontext_offset): Remove varaible.
4726 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4727 stored in `struct gdbarch_tdep'.
4728 (i386bsd_frame_saved_pc): Make static.
4729 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4730 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4731 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4732 i386fbsd4_sc_pc_offset): New variables.
4733 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4734 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4736 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4738 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4739 Modify the value of i386fbsd_sigtramp_start and
4740 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4741 i386fbsd_sigtramp_end.
4742 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4745 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4746 define to i386-linux-tdep.h.
4747 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4748 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4750 (i386_linux_register_name, i386_linux_register_byte,
4751 i386_linux_register_raw_size): Remove prototypes.
4752 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4753 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4754 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4755 TARGET_WRITE_PC): Remove defines.
4756 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4757 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4758 i386_linux_write_pc): Remove prototypes.
4759 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4760 (get_longjmp_target): Remove prototype.
4761 * i386-linux-tdep.h: New file.
4762 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4763 * i386-linux-tdep.c: Include "i386-tdep.h" and
4764 "i386-linux-tdep.h".
4765 (i386_linux_register_name, i386_linux_register_byte,
4766 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4767 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4769 (i386_linux_init_abi): New function.
4770 (_initialize_i386_linux_tdep): New function.
4772 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4773 (i386_saved_pc_after_call): Remove prototype.
4774 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4775 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4776 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4777 (i386_register_name, i386_stab_reg_to_regnum,
4778 i386_dwarf_reg_to_regnum): Remove prototypes.
4779 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4780 SIZEOF_SSE_REGS): Remove defines.
4781 (REGISTER_BYTES): Remove define.
4782 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4783 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4784 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4785 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4786 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4787 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4788 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4789 (get_longjmp_target): Remove prototype.
4790 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4791 (sigtramp_saved_pc): Remove define.
4792 (i386v4_sigtramp_saved_pc): Remove prototype.
4793 * config/i386/tm-go32.h (FRAME_CHAIN,
4794 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4795 (i386go32_frame_saved_pc): Remove prototype.
4796 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4797 (get_longjmp_target): Remove prototype.
4798 * i386-tdep.h: Include "osabi.h".
4799 (enum i386_abi): Removed.
4800 (enum struct_return): New enum.
4801 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4802 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4803 sc_pc_offset members.
4804 (i386_gdbarch_register_os_abi): Remove prototype.
4805 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4806 I386_SSE_NUM_REGS): New defines.
4807 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4808 I386_SSE_SIZEOF_REGS): New defines.
4809 (i386_register_name, i386_register_byte, i386_register_raw_size):
4811 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4812 (i386bsd_sigtramp_saved_pc): New prototype.
4813 * i386-tdep.c: Don't include "elf-bfd.h".
4814 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4815 i386_frame_chain, i386_saved_pc_after_call): Make static.
4816 (i386_frame_saved_pc): Rewrite to call architecture dependent
4817 function to deal with signal handlers. Make static.
4818 (i386go32_frame_saved_pc): Removed.
4819 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4821 (i386_get_longjmp_target): New function.
4822 (default_struct_convention, pcc_struct_convention,
4823 reg_struct_convention, valid_conventions, struct_convention): New
4825 (i386_use_struct_convention): New function.
4826 (i386v4_sigtramp_saved_pc): Renamed to
4827 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4828 (i386_pc_in_sigtramp): New function.
4829 (i386_abi_names): Removed.
4830 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4831 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4833 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4834 i386_gdbarch_register_os_abi): Removed.
4835 (struct i386_abi_handler): Removed.
4836 (i386_abi_handler_list): Removed.
4837 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4839 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4840 i386_nw_init_abi): New functions.
4841 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4842 Use set_gdbarch_xxx() calls instead of relying on macros for a
4844 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4845 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4846 Register the various architecture variants defined in this file.
4850 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4851 (struct main_type): Remove arg_types member. Update comments for
4853 (TYPE_ARG_TYPES): Remove.
4854 (TYPE_FN_FIELD_ARGS): Update.
4855 (smash_to_method_type): Update prototype.
4857 * c-typeprint.c (cp_type_print_method_args): Take method type
4858 instead of argument list. Use new argument layout. Simplify.
4859 (c_type_print_args): Use new argument layout. Simplify.
4860 (c_type_print_base): Update call to cp_type_print_method_args.
4861 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4862 argument; use die->type instead. Update call to
4863 smash_to_method_type.
4864 (read_structure_scope): Update call to dwarf2_add_member_fn.
4865 * gdbtypes.c (allocate_stub_method): Update comment.
4866 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4867 Use new argument layout.
4868 (check_stub_method): Use new argument layout. Don't count
4869 void as an argument.
4870 (print_arg_types): Update comments. Use new argument layout.
4871 (recursive_dump_type): Don't print arg_types member.
4872 * hpread.c (hpread_read_struct_type): Use new argument layout.
4873 (fixup_class_method_type): Likewise.
4874 (hpread_type_lookup): Likewise.
4875 * stabsread.c (read_type): Update calls to read_args and
4876 smash_to_method_type.
4877 (read_args): Use new argument layout. Simplify.
4878 * valops.c (typecmp): Use new argument layout. Update parameters
4879 and comments. Simplify.
4880 (hand_function_call): Use new argument layout.
4881 (search_struct_method): Update call to typecmp.
4882 (find_overload_match): Use new argument layout.
4886 * NEWS: Mention multithreaded debug support for gdbserver.
4890 * MAINTAINERS: Mention NEWS.
4894 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4895 (struct mips_objfile_private, compare_pdr_entries): New.
4896 (non_heuristic_proc_desc): Read the ".pdr" section if it
4901 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4902 (arm_debug): New static variable.
4903 (_initialize_arm_tdep): Add ``set debug arm'' command.
4907 * Makefile.in (sim_arm_h): Define.
4908 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4909 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4910 (arm_register_sim_regno): New function, map an internal REGNUM
4911 onto a simulator register number.
4912 (arm_gdbarch_init): Set register_sim_regno.
4916 * MAINTAINERS: Add self.
4920 * source.c (source_info): Mention whether the symtab has
4921 information about preprocessor macros.
4923 Call the command `info macro', not `show macro'.
4924 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4926 (_initialize_macrocmd): Register `info_macro_command' in
4927 `infolist', not `showlist'.
4931 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4932 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4933 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4934 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4935 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4937 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4938 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4939 (_initialize_mips_tdep): Remove dead code.
4940 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4941 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4942 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4943 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4944 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4945 MIPS_LAST_FP_ARG_REGNUM): Remove.
4949 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4950 (unwind_tmp_obstack_free, parse_frame_info)
4951 (update_context, cfi_read_fp, cfi_write_fp)
4952 (cfi_frame_chain, cfi_init_extra_frame_info)
4953 (cfi_virtual_frame_pointer): Use the above function.
4954 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4958 * v850-tdep.c (v850_type_is_scalar): New function.
4959 (v850_use_struct_convention): Match current gcc implementation
4960 as close as possible.
4961 (v850_push_arguments): Fix stack_offset handling. Don't write
4962 struct_addr into register. This is done by v850_store_struct_return.
4963 (v850_extract_return_value): Care for structs.
4964 (v850_store_return_value): Ditto.
4965 (v850_store_struct_return): Actually write address.
4969 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4970 without debug information too.
4974 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4975 Make multi-arch pure.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * arm-tdep.c (arm_print_float_info): Update.
4978 * arch-utils.h (default_print_float_info): Update.
4979 * arch-utils.c (default_print_float_info): Update.
4980 * infcmd.c (float_info): Update call.
4984 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4985 the front of the initialize list.
4989 * infrun.c (struct inferior_status): Replace fields
4990 selected_frame_address and selected_level with field
4992 (save_inferior_status): Update. Use get_frame_id.
4993 (struct restore_selected_frame_args): Delete.
4994 (restore_selected_frame): Update. Use frame_find_by_id.
4995 (restore_inferior_status): Update.
4997 * breakpoint.h (struct breakpoint): Change type of
4998 watchpoint_frame to frame_id.
4999 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5000 call to get_current_frame.
5001 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5003 (watchpoint_check): Use frame_find_by_id.
5005 * frame.h (record_selected_frame): Delete declaration.
5006 * stack.c (record_selected_frame): Delete function.
5008 * frame.h (struct frame_id): Define.
5009 (get_frame_id): Declare.
5010 (frame_find_by_id): Declare.
5011 * frame.c (frame_find_by_id): New function.
5012 (get_frame_id): New function.
5016 * ser-e7kpc.c: Fix duplicated define and call of
5017 _initialize_ser_e7000pc
5021 * signals/signals.c (target_signal_from_host): Fix #ifdef
5023 (do_target_signal_to_host): Likewise.
5027 * mips-tdep.c (mips_find_abi_section): New function.
5028 (mips_gdbarch_init): Call it.
5032 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5033 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5034 after Andrew's 2002-06-08 gdbarch change.
5038 * i386-linux-nat.c (suppy_gregset): Don't supply
5039 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5041 (fill_gregset): Don't fetch it under the same circumstances.
5045 * Makefile.in (callback_h): Define.
5046 (remote_sim_h): Update path to remote-sim.h.
5047 (remote-rdp.o): Add $(callback_h).
5048 (remote-sim.o): Use $(callback_h).
5049 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5050 * remote-rdp.c: Include "gdb/callback.h".
5054 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5055 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5059 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5060 * rdi-share/serpardr.c: Ditto.
5061 * rdi-share/unixcomm.c: Ditto.
5062 * rdi-share/serdrv.c: Ditto.
5063 * rdi-share/hostchan.h: Ditto.
5064 * rdi-share/hostchan.c: Ditto.
5065 * rdi-share/host.h: Ditto.
5066 * rdi-share/devsw.c: Ditto.
5068 * objfiles.h: Change type of obj_private to void pointer.
5069 * pa64solib.c: Update copyright. Don't include "assert.h", use
5070 strcmp instead of STREQ, use LONGEST, do not use PTR
5071 * somsolib.c: Ditto.
5073 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5074 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5075 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5079 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5080 (default_get_saved_register): Delete function.
5081 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5082 generic_unwind_get_saved_register.
5083 * gdbarch.h, gdbarch.c: Re-generate.
5087 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5088 generic_func_frame_chain_valid.
5089 * gdbarch.h, gdbarch.c: Re-generate.
5090 * blockframe.c (generic_func_frame_chain_valid): Only check
5091 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5092 passing FP to PC_IN_CALL_DUMMY.
5097 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5098 (register_gdbarch_data): Initialize init_p.
5099 (gdbarch_data): Initialize data pointer using the init function.
5100 (init_gdbarch_data): Delete function.
5101 (gdbarch_update_p): Update.
5102 (initialize_non_multiarch): Update.
5103 (struct gdbarch): Add field initialized_p.
5104 * gdbarch.h, gdbarch.c: Re-generate.
5108 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5109 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5110 better do the things actually here.
5111 * x86-64-tdep.c (x86_64_register_name2nr): New.
5112 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5113 (x86_64_gdbarch_init): Respect the above change.
5114 * x86-64-tdep.h (x86_64_register_name2nr)
5115 (x86_64_register_nr2name): Add prototypes.
5116 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5120 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5121 Delete extra braces and re-indent.
5122 (d10v_store_return_value): Char return values
5123 must be shifted over by one byte in R0.
5124 (d10v_extract_return_value): Delete extra braces, re-indent.
5128 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5129 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5130 (d10v_integer_to_address): Rewrite.
5131 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5132 the d10v specific functions which take care of converting to the
5137 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5138 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5142 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5144 * config/tm-linux.h: Ditto.
5145 * config/alpha/tm-alphalinux.h: Ditto.
5146 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5147 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5148 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5149 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5150 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5151 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5152 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5153 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5154 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5155 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5156 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5157 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5158 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5159 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5160 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5161 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5162 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5163 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5164 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5165 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5166 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5167 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5168 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5169 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5170 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5171 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5172 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5173 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5174 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5175 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5176 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5177 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5178 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5179 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5180 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5181 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5182 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5186 * ada-exp.tab.c: New file
5187 * ada-exp.y: New file
5188 * ada-lang.c: New file
5189 * ada-lang.h: New file
5190 * ada-lex.c: New file
5191 * ada-lex.l: New file
5192 * ada-tasks.c: New file
5193 * ada-typeprint.c: New file
5194 * ada-valprint.c: New file
5198 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5199 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5203 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5204 insetead of ppc-linux-tdep.o.
5205 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5206 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5211 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5212 bit register contents for little endian hosts.
5216 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5221 * gdbarch.h: Regenerate.
5225 * MAINTAINERS: Add everyone to write-after-approval list.
5229 * stack.c (frame_info): Use frame_register_unwind instead of
5230 saved_regs. Mention when the SP is on the stack or in a register.
5232 * frame.h (frame_register_unwind_ftype): Define. Document.
5233 (struct frame_info): Add field register_unwind and
5234 register_unwind_cache.
5235 (frame_register_unwind): Declare.
5236 (generic_unwind_get_saved_register): Declare.
5238 * frame.c (frame_register_unwind): New function.
5239 (generic_unwind_get_saved_register): New function.
5241 * blockframe.c (generic_call_dummy_register_unwind): New function.
5242 (frame_saved_regs_register_unwind): New function.
5243 (set_unwind_by_pc): New function.
5244 (create_new_frame): New function.
5245 (get_prev_frame): New function.
5249 * a29k-share/: Delete directory.
5250 * remote-vx29k.c: Delete file.
5254 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5255 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5259 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5260 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5263 (sparcnbsd-tdep.o): New dependency lists.
5264 * NEWS: Note new UltraSPARC NetBSD native configuration.
5265 * configure.host (sparc64-*-netbsd*): New host.
5266 * configure.tgt (sparc-*-netbsdelf*)
5267 (sparc-*-netbsd*): Set gdb_target to nbsd.
5268 (sparc64-*-netbsd*): New target.
5269 * sparc64nbsd-nat.c: New file.
5270 * sparcnbsd-nat.c: New file.
5271 * sparcnbsd-tdep.c: New file.
5272 * sparcnbsd-tdep.h: New file.
5273 * config/sparc/nbsd.mt: New file.
5274 * config/sparc/nbsd64.mh: New file.
5275 * config/sparc/nbsd64.mt: New file.
5276 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5277 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5279 * config/sparc/nbsdaout.mt: Remove.
5280 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5281 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5283 * config/sparc/nbsdelf.mt: Remove.
5284 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5285 sparc-nat.c compatiblity defines.
5286 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5287 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5288 * config/sparc/tm-nbsd64.h: New file.
5289 * config/sparc/tm-nbsdaout.h: Remove.
5290 * config/sparc/xm-nbsd.h: Remove.
5294 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5295 * sparc-tdep.c: Include osabi.h.
5296 (gdbarch_tdep): Add osabi member.
5297 (_initialize_sparc_tdep): Use gdbarch_register.
5298 (sparc_gdbarch_init): Use generic OS ABI framework.
5299 (sparc_dump_tdep): New function.
5303 * corefile.c (do_captured_read_memory_integer): Return non-zero
5305 (safe_read_memory_integer): Copy result of memory read when
5306 status is non-zero. Also, add comments.
5310 * Makefile.in (ppc_tdep_h): Define.
5313 (rs6000-tdep.o): Use $(ppc_tdep_h).
5316 (ppcnbsd-tdep.o): New dependency lists.
5317 * ppc-tdep.h: Use generic OS ABI framework.
5318 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5319 (ppc_linux_init_abi): New functions.
5320 (ppc_sysv_abi_broken_use_struct_convention)
5321 (ppc_sysv_abi_use_struct_convention)
5322 (ppc_sysv_abi_push_arguments): Move to...
5323 * ppc-sysv-tdep.c: ...here.
5324 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5325 * rs6000-tdep.c (process_note_abi_tag_sections)
5326 (get_elfosabi): Remove.
5327 (rs6000_gdbarch_init): Use generic OS ABI framework.
5328 (rs6000_dump_tdep): New function.
5329 (_initialize_rs6000_tdep): Use gdbarch_register.
5330 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5331 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5332 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5333 of ppc-linux-tdep.o.
5334 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5335 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5336 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5337 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5338 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5339 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5343 * macroscope.c (default_macro_scope): Put `void' in empty argument
5348 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5349 * arch-utils.c: Include "sim-regno.h".
5350 * gdbarch.sh: Don't include "sim-regno.h".
5351 * gdbarch.h, gdbarch.c: Regenerate.
5352 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5354 * arch-utils.h (legacy_register_sim_regno): To here.
5355 * remote-sim.c (legacy_register_sim_regno): Move function from
5357 * arch-utils.c (legacy_register_sim_regno): To here.
5361 * sim-regno.h: New file.
5362 * Makefile.in (sim_regno_h): Define.
5363 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5364 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5365 (legacy_register_sim_regno): New function.
5366 (one2one_register_sim_regno): New function.
5367 (gdbsim_fetch_register): Rewrite.
5368 (gdbsim_store_register): Only store a register when
5369 REGISTER_SIM_REGNO is valid.
5370 * d10v-tdep.c: Include "sim-regno.h".
5371 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5372 (d10v_ts3_register_sim_regno): Ditto.
5373 * gdbarch.sh: Include "sim-regno.h".
5374 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5375 * gdbarch.h, gdbarch.c: Regenerate.
5376 * arch-utils.h (default_register_sim_regno): Delete declaration.
5377 * arch-utils.c (default_register_sim_regno): Delete function.
5381 * ppcnbsd-nat.c: Rewrite.
5382 * ppcnbsd-tdep.c: New file.
5383 * ppcnbsd-tdep.h: New file.
5384 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5385 solib.o, and solib-svr4.o.
5386 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5387 nbsd-tdep.o, and corelow.o.
5391 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5392 `tr' and `sed'. Mention that `broken' targets are not expected to
5397 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5398 Let PC point right after the prologue before looking up symbols.
5402 * i386-tdep.c (i386_register_virtual_type): Return
5403 builtin_type_vec128i for SSE registers.
5405 * gdbtypes.h (builtin_type_vec128i): Declare.
5407 * gdbtypes.c (build_builtin_type_vec128i): New function.
5408 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5409 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5410 (build_gdbtypes): Initialize new builtin vector types.
5411 (_initialize_gdbtypes): Register new vector types with gdbarch.
5415 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5416 since it has been multi-arch'd.
5417 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5418 Move Alpha and VAX multi-arch news entries to same section
5419 as other multi-arch news.
5423 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5424 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5425 static. Rename some register numbers to put them in ns32k-tdep
5427 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5428 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5430 (_initialize_ns32k_tdep): Use gdbarch_register.
5431 * ns32k-tdep.h: New file.
5432 * ns32knbsd-tdep.c: New file.
5433 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5434 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5435 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5436 REGISTER_BYTES, REGISTER_BYTE): Remove.
5437 * config/ns32k/tm-ns32k.h: New file.
5438 * config/ns32k/tm-umax.h: Remove.
5442 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5443 ns32k_store_struct_return, ns32k_extract_return_value,
5444 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5446 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5447 ns32k_saved_pc_after_call.
5448 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5449 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5450 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5451 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5452 ns32k_extract_struct_value_address.
5456 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5457 ns32k_fix_call_dummy): New.
5458 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5459 ns32k_call_dummy_words.
5460 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5461 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5462 CALL_DUMMY_NARGS): Remove.
5463 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5467 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5468 ns32k_frame_saved_pc, ns32k_frame_args_address,
5469 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5470 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5471 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5472 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5473 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5474 (BREAKPOINT): Remove..
5475 (FRAME_CHAIN): Define as ns32k_frame_chain.
5476 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5477 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5478 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5479 (FRAME_FIND_SAVED_REGS): Remove.
5480 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5481 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5482 (POP_FRAME): Define as ns32k_pop_frame.
5486 * ns32k-tdep.c (ns32k_register_byte_32082,
5487 ns32k_register_byte_32382, ns32k_register_raw_size,
5488 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5490 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5491 ns32k_register_byte_32382.
5492 * config/ns32k/tm-umax.h: Update copyright years.
5493 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5494 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5495 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5496 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5497 (ns32k_get_enter_addr): Fix prototype.
5501 * ns32k-tdep.c: Update copyright years.
5502 (ns32k_register_name_32082): New function.
5503 (ns32k_register_name_32382): Ditto.
5504 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5505 (REGISTER_NAME): Define as ns32k_register_name_32382.
5506 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5507 (REGISTER_NAME): Define as ns32k_register_name_32082.
5511 * dwarf2read.c (free_line_header): Use xfree, not free.
5515 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5516 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5520 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5524 From Ross Alexander at NEC Europe:
5525 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5529 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5530 for input, rather than parse_and_eval_address.
5534 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5535 * Makefile.in (sim_d10v_h): Update definition.
5539 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5540 change `2002-05-22 Michael Snyder' below.
5541 (d10v_push_arguments): Ditto.
5542 (d10v_extract_return_value): Ditto.
5546 * macrotab.c (check_for_redefinition): Don't complain if the new
5547 definition is the same as the previous one. Take more arguments
5548 to allow the comparison.
5549 (macro_define_object, macro_define_function): Pass more arguments
5550 to check_for_redefinition.
5554 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5555 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5556 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5557 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5558 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5559 Add a temp variable to save a call (and a memory read).
5560 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5561 if possible (so that PC_IN_CALL_DUMMY will work).
5565 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5569 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5571 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5572 (dwarf2_build_frame_info): Add offset to fde->initial_location
5573 so that frames of shared libraries are mapped correctly.
5574 (execute_stack_op): Change type of 'result' from ULONGEST to
5579 * config/alpha/tm-nbsd.h: Include solib.h.
5583 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5584 assumptions about the host's byte order.
5588 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5590 * alphanbsd-tdep.c: Include solib-svr4.h.
5591 * shnbsd-tdep.c: Ditto.
5595 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5596 nbsd-tdep.h to dependency list.
5597 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5598 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5599 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5600 nbsdaout.mh and nbsdelf.mh consistently.
5601 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5602 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5603 nbsdaout.mt and nbsdelf.mh consistently.
5604 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5605 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5606 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5607 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5608 a.out shared library stuff from here...
5609 * config/nm-nbsdaout.h: ...to here.
5610 * config/tm-nbsd.h: Remove.
5611 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5612 * config/arm/nbsd.mh: Remove.
5613 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5615 * config/arm/nbsdaout.mh: New file.
5616 * config/arm/nbsdelf.mh: New file.
5617 * config/arm/nm-nbsdaout.h: New file.
5618 * config/i386/nbsd.mh: Remove.
5619 * config/i386/nbsd.mt: Remove.
5620 * config/i386/nbsdaout.mh: New file.
5621 * config/i386/nbsdaout.mt: New file.
5622 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5623 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5624 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5625 i386_register_u_addr): Remove.
5626 * config/i386/nm-nbsdaout.h: New file.
5627 * config/i386/nm-nbsdelf.h: Remove.
5628 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5629 (USE_STRUCT_CONVENTION): Remove.
5630 * config/i386/tm-nbsdaout.h: New file.
5631 * config/i386/tm-nbsdelf.h: Remove.
5632 * config/m68k/nbsd.mh: Remove.
5633 * config/m68k/nbsd.mt: Remove.
5634 * config/m68k/nbsdaout.mh: New file.
5635 * config/m68k/nbsdaout.mt: New file.
5636 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5637 * config/m68k/nm-nbsdaout.h: New file.
5638 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5639 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5640 * config/ns32k/nbsd.mh: Remove.
5641 * config/ns32k/nbsd.mt: Remove.
5642 * config/ns32k/nbsdaout.mh: New file.
5643 * config/ns32k/nbsdaout.mt: New file.
5644 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5645 * config/ns32k/nm-nbsdaout.h: New file.
5646 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5647 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5648 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5649 (SVR4_SHARED_LIBS): Remove.
5650 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5651 * config/sparc/nbsd.mh: Remove.
5652 * config/sparc/nbsd.mt: Remove.
5653 * config/sparc/nbsdaout.mh: New file.
5654 * config/sparc/nbsdaout.mt: New file.
5655 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5656 * config/sparc/nbsdelf.mt: New file.
5657 * config/sparc/nm-nbsdaout.h: New file.
5658 * config/sparc/nm-nbsdelf.h: Remove.
5659 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5660 * config/sparc/tm-nbsdaout.h: New file.
5664 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5666 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5670 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5672 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5676 * NEWS: Note new MIPS NetBSD native configuration.
5677 * configure.host (mips*-*-netbsd*): New host.
5678 * configure.tgt (mips*-*-netbsd*): New target.
5679 * mipsnbsd-nat.c: New file.
5680 * mipsnbsd-tdep.c: New file.
5681 * mipsnbsd-tdep.h: New file.
5682 * config/mips/nbsd.mh: New file.
5683 * config/mips/nbsd.mt: New file.
5684 * config/mips/nm-nbsd.h: New file.
5685 * config/mips/tm-nbsd.h: New file.
5689 * Makefile.in (SFILES): Add osabi.c.
5690 (COMMON_OBS): Add osabi.o.
5691 (osabi.o): New dependency list.
5692 * osabi.c: New file.
5693 * osabi.h: New file.
5694 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5696 * Makefile.in (alpha_tdep_h): Define and use instead of
5698 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5699 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5701 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5702 * alpha-tdep.h: Include osabi.h.
5703 (alpha_abi): Remove.
5704 (gdbarch_tdep): Use generic OS ABI framework.
5705 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5706 gdbarch_register_osabi.
5707 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5708 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5709 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5711 * Makefile.in (sh_tdep_h): Add osabi.h.
5712 * sh-tdep.h (sh_osabi): Remove.
5713 (gdbarch_tdep): Use generic OS ABI framework.
5714 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5715 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5716 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5717 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5719 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5720 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5721 gdbarch_register_osabi.
5722 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5723 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5724 (get_elfosabi): Rename to...
5725 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5726 ABI framework support routines.
5727 (arm_gdbarch_init): Use generic OS ABI framework.
5728 (arm_dump_tdep): Likewise.
5729 (_initialize_arm_tdep): Likewise.
5730 * arm-tdep.h: Include osabi.h.
5732 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5734 (arm_gdbarch_register_os_abi): Remove prototype.
5735 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5736 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5738 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5739 * mips-tdep.c: Include osabi.h.
5740 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5745 * h8300-tdep.c: Fix formatting.
5749 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5750 printing vector registers.
5754 From Fernando Nasser:
5755 * remote.c (remote_async_open_1): Re-throw the exception when the
5757 (remote_cisco_open): Ditto.
5758 (remote_open_1): Ditto.
5762 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5763 (remote_start_remote): Add uiout parameter. Pass through to
5764 remote_start_remote_dummy.
5765 (remote_open_1): Use catch_exception instead of catch_errors.
5766 (remote_async_open_1): Ditto.
5767 (remote_cisco_open): Ditto.
5771 * remote.c (remote_start_remote): Replace PTR with void pointer.
5772 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5777 * gdb_indent.sh: Allow the script to be run in the sim directory.
5781 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5782 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5784 * corelow.c (core_open): Only call set_gdbarch_from_file if
5789 * h8300-tdep.c: Add support of EXR register
5790 * config/h8300/tm-h8300.h: Ditto.
5794 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5798 * h8300-tdep.c: Change literal regnums to REGNO.
5802 * NEWS: Note addition of macro support.
5804 Expand preprocessor macros in C expressions.
5805 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5806 (scan_macro_expansion, scanning_macro_expansion,
5807 finished_macro_expansion): New function declarations.
5808 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5809 variable declarations.
5810 * parser-defs.h (expression_context_pc): New declaration.
5811 * parse.c (expression_context_pc): New variable.
5812 (parse_exp_1): Set expression_context_pc, as well as
5813 expression_context_block.
5814 * c-exp.y (yylex): If we're not already reading the result of a
5815 macro expansion, try to macro-expand the next token. When we're
5816 done scanning a macro expansion, switch back to the mainline text.
5817 Commas and `if's in a macro's expansion don't terminate the input.
5818 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5819 (macro_original_text, macro_expanded_text,
5820 expression_macro_lookup_func, expression_macro_lookup_baton): New
5822 (scan_macro_expansion, scanning_macro_expansion,
5823 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5824 c_preprocess_and_parse): New functions.
5825 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5826 c_preprocess_and_parse, instead of c_parse.
5827 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5828 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5832 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5833 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5834 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5838 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5842 * Makefile.in (sh_tdep_h): Define and use.
5843 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5844 register enum): Move to...
5845 * * sh-tdep.h: ...here.
5846 * sh-tdep.c: Include sh-tdep.h.
5847 * sh3-rom.c: Likewise.
5848 * shnbsd-tdep.c: Likewise.
5852 * arm-tdep.c: Spelling fix in comment.
5856 Add commands for manually expanding macros and showing their
5858 * macrocmd.c, macroscope.c, macroscope.h: New files.
5859 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5860 (macroscope_h): New variable.
5861 (HFILES_NO_SRCDIR): Add macroscope.h.
5862 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5863 (macroscope.o, macrocmd.o): New rules.
5865 Teach the Dwarf 2 reader to read macro information.
5866 * dwarf2read.c: #include "macrotab.h".
5867 (dwarf_macinfo_buffer): New variable.
5868 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5870 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5871 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5872 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5873 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5874 dwarf2_macro_spaces_in_definition): New complaints.
5875 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5876 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5877 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5878 the partial symbol table.
5879 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5880 from what's recorded in the partial symbol table.
5881 (read_file_scope): If the compilation unit has a
5882 `DW_AT_macro_info' attribute, read its macro information.
5883 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5888 * ser-tcp.c: Don't include <netinet/udp.h>.
5892 * MAINTAINERS: Update my email address.
5896 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5897 include file of the same name.
5901 * configure.tgt: Mark v850 as multi-arched.
5902 * config/v850/tm-v850.h: Remove file.
5903 * config/v850/v850.mt: Eliminate TM_FILE.
5907 * v850-tdep.c: Full multi-arch.
5908 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5909 Define GDB_MULTI_ARCH to 2.
5913 * p-exp.y (current_type): New static variable.
5914 Carries the type of the expression at the position that is parsed.
5915 (push_current_type, pop_current_type): Two new functions. Used
5916 to store/restore current_type in expression on specific tokens.
5917 (search_field): New static variable. Set to one after parsing a point
5918 as at that point only a FIELDNAME token should be searched.
5919 (FIELDNAME): New token. After a point only a token belonging to
5920 current_type type definition is allowed.
5921 (all over token rules): reset and change current_type according
5923 (exp '[' rule): insert implicit array index field if
5924 exp is a pascal string type.
5928 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5929 frame info. Use frame_info's saved_regs instead of matching member
5930 in extra_frame_info throughout.
5931 (v850_frame_init_saved_regs): New function.
5932 (v850_init_extra_frame_info): Move most functionality into
5933 v850_frame_init_saved_regs().
5934 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5935 (v850_frame_find_saved_regs): Remove declaration.
5936 (FRAME_FIND_SAVED_REGS): Remove definition.
5937 (v850_frame_init_saved_regs): Add declaration.
5938 (FRAME_INIT_SAVED_REGS): Add definition.
5942 * v850-tdep.c: Begin multi-arch'ing v850.
5943 (v850_target_architecture_hook): Remove function.
5944 (v850_gdbarch_init): New function. Add code previously in
5945 v850_target_architecture_hook().
5946 (_initialize_v850_tdep): Don't set target_architecture_hook.
5947 Call register_gdbarch_init() instead.
5951 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5952 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5953 (fixup_class_method_type): Likewise.
5957 Add macro structures to GDB's symbol tables. Nobody puts anything
5959 * symtab.h (struct symtab): New member: `macro_table'.
5960 * buildsym.h (pending_macros): New global variable.
5961 * buildsym.c: #include "macrotab.h".
5962 (buildsym_init): Initialize `pending_macros'.
5963 (end_symtab): If we found macro information while reading a CU's
5964 debugging info, do build a symtab structure for it. Make the
5965 symtab point to the macro information, and clear the
5966 `pending_macros' pointer which held it while we were reading the
5968 (really_free_pendings): Free any pending macro table.
5969 * objfiles.h (struct objfile): New member: `macro_cache'.
5970 * objfiles.c (allocate_objfile): Set allocate and free functions
5971 for the macro cache's objstack.
5972 (free_objfile): Empty the macro cache's obstack.
5973 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5974 set new allocate and free functions for it.
5975 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5976 free functions for the macro cache's objstack. (Why is this
5977 function building its own objfile?)
5978 * symmisc.c (print_objfile_statistics): Print statistics on the
5980 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5984 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5985 (REGISTER_U_ADDR): Delete definition.
5986 (arm_register_u_addr): Delete declaration.
5990 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5991 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5995 * regcache.c (register_valid): Revise comments refering to "Not
5996 available" and "unavailable".
5997 * frame.c (frame_register_read): Ditto.
5998 * findvar.c (value_of_register): Ditto.
6002 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6003 (remote-sim.o): Update dependencies.
6004 (d10v-tdep.o): Specify dependencies.
6005 (sim_d10v_h): Define.
6009 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6010 * macrotab.c (macro_lookup_inclusion, find_definition,
6011 new_macro_table): Same.
6013 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6014 not `! strcmp ()'. This is a dubious improvement.
6015 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6017 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6018 although it's not necessary, to avoid a warning.
6022 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6023 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6024 TYPE_INSTANCE_FLAGS.
6025 (struct main_type): New.
6026 (struct type): Move most members to struct main_type. Change
6027 cv_type and as_type to new type_chain member. Add instance_flags.
6028 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6029 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6030 (finish_cv_type): Remove prototype.
6031 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6033 (alloc_type_instance): New function.
6034 (smash_type): New function.
6035 (make_pointer_type, make_reference_type, make_function_type)
6036 (smash_to_member_type, smash_to_method_type): Call smash_type.
6037 (make_qualified_type): New function.
6038 (make_type_with_address_space): Call make_qualified_type.
6039 (make_cv_type): Likewise.
6040 (finish_cv_type): Remove unnecessary function.
6041 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6042 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6043 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6044 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6045 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6046 * hpread.c (hpread_read_struct_type): Likewise.
6047 * stabsread.c (read_struct_type): Likewise.
6051 * configure.tgt: Add a catch all sh* target, for cases like
6052 sh[2,3,4]-elf and sh-hms.
6056 * event-loop.c (create_file_handler): Don't do anything but
6057 update data when we are given a fd which we are already
6062 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6063 (update_context): Use __func__ in warnings.
6067 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6068 and tcp_close to net_open and net_close.
6069 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6070 using UDP if requested. Don't try to disable Nagle on UDP
6072 * remote.c (remote_serial_open): New function. Warn about UDP.
6073 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6077 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6081 * configure.tgt: Remove sh-hms target.
6082 * MAINTAINERS: Don't list sh-hms as a separate target.
6086 Add first preprocessor macro-expansion files.
6087 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6088 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6089 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6090 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6091 (COMMON_OBS): Add macrotab.o, macroexp.o.
6092 (macroexp.o, macrotab.o): New rules.
6096 * config/m88k/tm-m88k.h: Update copyright.
6097 (m88k_target_write_pc): Declare
6098 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6099 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6100 (SHIFT_INST_REGS): Update definition.
6101 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6102 using old definition of TARGET_WRITE_PC.
6103 * regcache.c (generic_target_write_pc): Delete code handling
6105 * gdbarch.sh (NNPC_REGNUM): Delete.
6106 * gdbarch.h, gdbarch.c: Regenerate.
6110 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6115 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6116 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6117 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6119 * c-typeprint.c (cp_type_print_method_args): Likewise.
6120 (c_type_print_args): Likewise.
6121 * d10v-tdep.c (d10v_push_arguments): Likewise.
6122 (d10v_extract_return_value): Likewise.
6123 * expprint.c (print_subexp): Likewise.
6124 * gdbtypes.c (lookup_primitive_typename): Likewise.
6125 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6126 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6127 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6128 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6129 (TYPE_VECTOR): Likewise.
6130 * hpread.c (hpread_read_struct_type)
6131 (fix_static_member_physnames, fixup_class_method_type)
6132 (hpread_type_lookup): Likewise.
6133 * mdebugread.c (parse_symbol, parse_type): Likewise.
6134 * p-lang.c (is_pascal_string_type): Likewise.
6135 * valops.c (hand_function_call): Likewise.
6136 * x86-64-tdep.c (classify_argument): Likewise.
6138 * hpread.c (hpread_read_function_type)
6139 (hpread_read_doc_function_type): Call replace_type.
6140 * dstread.c (create_new_type): Delete.
6141 (decode_dst_structure, process_dst_function): Call alloc_type.
6142 Use type access macros.
6146 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6147 the're not supported by the current architecture.
6148 (i387_fill_fxsave): Likewise.
6152 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6153 sect_index_xxx members to index the first slot in section_offsets
6154 if all of the section_offsets are zero.
6158 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6159 checked in with last change.
6163 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6164 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6169 * Makefile.in: Update dependencies.
6173 * language.c (local_hex_string_custom): Simplify. Do not depend
6174 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6176 * memattr.c (mem_info_command): Replace calls to
6177 longest_local_hex_string and longest_local_hex_string_custom.
6178 * buildsym.c (make_blockvector): Ditto.
6179 * solib.c (info_sharedlibrary_command): Ditto.
6180 * tracepoint.c (tracepoints_info): Ditto.
6181 * symtab.c (print_msymbol_info): Ditto.
6183 * language.c (local_hex_string): Delete.
6184 (local_hex_string_custom): Delete.
6185 (longest_local_hex_string): Rename to local_hex_string.
6186 (longest_local_hex_string_custom): Rename to
6187 local_hex_string_custom.
6188 * language.h (local_hex_string): Change parameter type to LONGEST.
6189 (local_hex_string_custom): Ditto.
6190 (longest_local_hex_string): Delete declaration.
6191 (longest_local_hex_string_custom): Ditto.
6193 * solib.c: Update copyright.
6194 * memattr.c: Update copyright.
6198 * arch-utils.h (legacy_register_to_value): Declare.
6199 (legacy_value_to_register): Declare.
6200 (legacy_convert_register_p): Declare.
6201 * arch-utils.c (legacy_register_to_value): New function.
6202 (legacy_value_to_register): New function.
6203 (legacy_convert_register_p): New function.
6205 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6206 (VALUE_TO_REGISTER): Define.
6207 (CONVERT_REGISTER_P): Define.
6208 * gdbarch.h, gdbarch.c: Regenerate.
6210 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6212 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6218 * Makefile.in: Update dependencies for valops.c.
6219 * valops.c: Include "gdb_assert.h".
6220 (typecmp): Skip THIS parameter to methods.
6221 (find_method_list): Remove static_memfuncp argument,
6222 update callers. Check for stub methods.
6223 (find_value_oload_method_list): Don't set *static_memfuncp.
6224 (find_overload_match): Don't check for stub methods. Assert
6225 that methods are not stubbed. Handle static methods.
6226 (value_find_oload_method_list): Remove static_memfuncp argument.
6227 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6228 to the argument list for static stub methods.
6229 * value.h (value_find_oload_method_list): Update prototype.
6233 * arch-utils.h (generic_register_size): Declare.
6234 (generic_register_raw_size, generic_register_virtual_size): Delete
6236 * arch-utils.c (generic_register_raw_size): Delete.
6237 (generic_register_size): New function.
6238 (generic_register_virtual_size): Delete.
6240 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6241 default generic_register_size.
6242 * gdbarch.h, gdbarch.c: Re-generate.
6244 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6245 register_virtual_size.
6246 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6247 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6251 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6252 * gdbarch.h, gdbarch.c: Regenerate.
6253 * gnu-v3-abi.c: Update copyright.
6254 (vtable_address_point_offset): Update.
6255 (gnuv3_rtti_type): Update.
6256 (gnuv3_baseclass_offset): Update.
6257 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6258 (init_fetch_link_map_offsets): Update.
6259 * remote.c (get_remote_state): Update.
6263 * TODO: Remove value_headof/value_from_vtable_info comment.
6264 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6265 * values.c (value_headof, value_from_vtable_info): Delete.
6266 * value.h (value_from_vtable_info): Delete prototype.
6270 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6271 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6273 (gdb_assert_h): Define.
6274 (gdb_wait_h): Define.
6275 (gdb_regex_h): Define.
6280 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6284 * nbsd-tdep.c: Fix comment.
6288 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6289 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6290 (nbsd-tdep.o): New dependency list.
6291 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6293 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6294 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6295 * nbsd-tdep.c: New file.
6296 * nbsd-tdep.h: New file.
6297 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6299 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6300 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6301 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6302 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6306 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6307 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6308 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6309 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6310 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6311 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6315 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6316 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6317 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6318 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6319 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6320 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6321 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6325 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6326 fetch_elfcore_registers to...
6327 * i386nbsd-tdep.c: ...here.
6328 (i386nbsd_use_struct_convention): Rename to...
6329 (i386nbsd_aout_use_struct_convention): ...this.
6330 (i386nbsd_supply_reg): New function.
6331 (i386nbsd_fill_reg): New function.
6332 (fetch_core_registers): Use i386nbsd_supply_reg.
6333 (fetch_elfcore_registers): Likewise.
6334 (_initialize_i386nbsd_tdep): New function.
6335 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6336 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6337 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6338 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6339 (i386nbsd_aout_use_struct_convention): ...this.
6343 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6344 (store_inferior_registers): Use shnbsd_fill_reg.
6345 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6346 sh_nbsd_supply_register): Collapse into...
6347 (shnbsd_supply_reg): ...this.
6348 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6349 (shnbsd_fill_reg): ...this.
6350 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6351 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6352 (fetch_core_registers): Use shnbsd_supply_reg.
6353 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6354 (sh_nbsd_core_fns): Rename to...
6355 (shnbsd_core_fns): ...this.
6356 (sh_nbsd_elfcore_fns): Rename to...
6357 (shnbsd_elfcore_fns): ...this.
6358 (sh_nbsd_init_abi): Rename to...
6359 (shnbsd_init_abi): ...this.
6360 (_initialize_sh_nbsd_tdep): Rename to...
6361 (_initialize_shnbsd_tdep): ...this.
6362 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6363 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6364 sh_nbsd_fill_register): Remove prototypes.
6365 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6369 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6370 (i387-nat.o): Delete dependency list.
6371 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6372 (x86-64-linux-nat.o): Likewise.
6373 * i387-nat.c: Delete file, moving contents to...
6374 * i387-tdep.c: ...here.
6375 * i387-nat.h: Rename...
6376 * i387-tdep.h: ...to this.
6377 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6378 * i386-linux-nat.c: Likewise.
6379 * i386bsd-nat.c: Likewise.
6380 * i386gnu-nat.c: Likewise.
6381 * i386nbsd-nat.c: Likewise.
6382 * i386v4-nat.c: Likewise.
6383 * x86-64-linux-nat.c: Likewise.
6384 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6385 * config/i386/go32.mh (NATDEPFILES): Likewise.
6386 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6387 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6388 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6389 * config/i386/linux.mh (NATDEPFILES): Likewise.
6390 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6391 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6392 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6393 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6397 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6398 (alphanbsd-nat.o): Remove dependency list.
6399 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6400 * alphanbsd-nat.c: Delete. Contents moved to...
6401 * alphanbsd-tdep.c: ...here.
6402 (_initialize_alphanbsd_tdep): Register core functions.
6403 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6407 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6408 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6409 (alphanbsd-nat.o): Likewise.
6410 (alphabsd-tdep.o): New dependency list.
6411 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6412 (fill_gregset): Use alphabsd_fill_reg.
6413 (supply_fpregset): Use alphabsd_supply_fpreg.
6414 (fill_fpregset): Use alphabsd_fill_fpreg.
6415 (fetch_inferior_registers): Use struct reg and struct fpreg
6416 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6417 and alphabsd_supply_fpreg.
6418 (store_inferior_registers): Use struct reg and struct fpreg
6419 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6420 and alphabsd_fill_fpreg.
6421 * alphabsd-tdep.c: New file.
6422 * alphabsd-tdep.h: New file.
6423 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6424 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6425 alphabsd_supply_fpreg.
6426 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6427 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6431 * mips-tdep.c (mips_double_register_type): Fix thinko.
6432 (mips_single_register_type): Ditto.
6433 * MAINTAINERS: Add self.
6437 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6438 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6439 right thing on architectures with different endianness and/or
6445 * configure.in: Change sed expression which comments out
6446 NATDEPFILES to also comment out continuation lines.
6447 * configure: Regenerate.
6451 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6456 * sh-tdep.c: Include correct file.
6460 New support for sh64-elf (sh5) target.
6462 * configure.tgt: For sh64-elf target, default to sh-elf.
6464 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6465 (struct gdbarch_tdep): Add new fields for new registers and ABI
6468 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6469 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6470 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6471 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6472 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6473 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6474 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6475 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6476 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6477 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6478 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6479 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6480 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6481 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6482 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6483 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6484 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6485 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6486 sign_extend, sh64_nofp_frame_init_saved_regs,
6487 sh64_init_extra_frame_info, sh64_get_saved_register,
6488 sh64_extract_struct_value_address, sh64_pop_frame,
6489 sh64_push_arguments, sh64_extract_return_value,
6490 sh64_store_return_value, sh64_show_media_regs,
6491 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6492 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6493 sh_sh64_register_virtual_type,
6494 sh_sh64_register_convert_to_virtual,
6495 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6496 sh64_register_read, sh64_pseudo_register_write,
6497 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6498 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6499 sh64_do_pseudo_register, sh_compact_do_registers_info,
6500 sh64_do_registers_info, sh_gdbarch_init): New functions.
6504 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6508 * linespec.c (decode_line_1): Check for a double quote after
6509 a filename correctly.
6513 Properly track the size of the current objfile's .debug_line section.
6514 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6515 (DWARF_LINE_SIZE): New macro.
6516 (dwarf2_build_psymtabs_hard): Record the line section's size in
6517 the partial symbol table.
6518 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6523 * ia64-tdep.c: Handle breakpoints on L instruction type
6524 in MLX instruction bundle by moving the breakpoint to
6525 the third slot (X instruction type) as L holds only data.
6529 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6530 (process_one_symbol): Complain about discarding local symbols
6531 due to a misplaced N_LBRAC entry.
6536 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6537 decrease the depth we are at, in the case of templates.
6541 * mips-tdep.c (mips_float_register_type): New function.
6542 (mips_double_register_type): New function.
6543 (mips_print_register): Use them.
6544 (do_fp_register_row): Likewise.
6548 * signals/signals.c (signals): Remove conditional compilation around
6549 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6550 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6554 * remote-rdp.c (remote_rdp_can_run): Remove.
6558 * jv-valprint.c (java_val_print): Handle `char' as a special case
6563 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6564 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6565 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6566 str r(0123),[sp,#nn].
6567 (arm_skip_prologue): Ditto. Also make disassembly
6568 order-independent by placing it in a loop.
6572 * stabsread.c (read_type): Add recognition for new attribute:
6573 "@V;" means that an array type is actually a vector.
6574 This is analogous to the vector flag that's been added to dwarf2.
6578 * i386-tdep.h (i386_abi): New enum.
6579 (struct gdbarch_tdep): Replace os_ident member with abi.
6580 (i386_gdbarch_register_os_abi): New prototype.
6581 * i386-tdep.c (i386_abi_names): New array.
6582 (process_note_abi_tag_sections): Removed.
6583 (process_note_sections): New function.
6584 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6585 (struct i386_abi_handler): New struct.
6586 (i386_abi_handler_list): New variable.
6587 (i386_gdbarch_register_os_abi): New function.
6588 (i386_gdbarch_init): Adapt for the changes given above.
6592 * gregset.h: Say "GNU/Linux".
6596 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6597 (build_gdbtypes): Build builtin_type_v2_float.
6598 (_initialize_gdbtypes): Register new builtin type.
6602 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6603 (clear_gdbarch_swap): New function.
6604 (initialize_non_multiarch): Call.
6605 (gdbarch_update_p): Before calling init(), swap out and clear the
6606 existing architecture.
6607 * gdbarch.c: Regenerate.
6611 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6616 * sh-nbsd-nat.c: Rename to...
6617 * shnbsd-nat.c: ...this.
6618 * sh-nbsd-tdep.c: Rename to...
6619 * shnbsd-tdep.c: ...this.
6620 * sh-nbsd-tdep.h: Rename to...
6621 * shnbsd-tdep.h: ...this.
6622 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6623 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6627 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6628 concatenation for command help messages.
6632 * NEWS: Note new sh*-*-netbsdelf* configuration.
6633 * configure.host: Set gdb_host_cpu to sh for all sh*.
6634 (sh*-*-netbsdelf*): New host.
6635 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6636 (sh*-*-netbsdelf*): New target.
6637 * sh-nbsd-nat.c: New file.
6638 * sh-nbsd-tdep.c: New file.
6639 * sh-nbsd-tdep.h: New file.
6640 * config/sh/nbsd.mh: New file.
6641 * config/sh/nbsd.mt: New file.
6642 * config/sh/nm-nbsd.h: New file.
6643 * config/sh/tm-nbsd.h: New file.
6647 * sh-tdep.c (sh_osabi_names): Declare.
6648 (process_note_abi_tag_sections): New function.
6649 (get_elfosabi): Ditto.
6650 (sh_gdbarch_register_os_abi): Ditto.
6651 (sh_dump_tdep): Ditto.
6652 _initialize_sh_tdep): Use gdbarch_register to register
6653 sh_gdbarch_init and sh_dump_tdep.
6654 * config/sh/tm-sh.h (sh_osabi): Declare.
6655 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6659 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6660 (thumb_scan_prologue): Ditto.
6661 (arm_find_callers_reg): Ditto.
6662 (arm_frame_chain): Ditto.
6663 (arm_init_extra_frame_info): Ditto.
6664 (arm_frame_saved_pc): Ditto.
6665 (arm_pop_frame): Ditto.
6666 (arm_push_return_address): New function.
6667 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6668 call_dummy_location, call_dummy_breakpoint_offset_p,
6669 call_dummy_breakpoint_offset, call_dummy_p,
6670 call_dummy_stack_adjust_p, call_dummy_words,
6671 sizeof_call_dummy_words, call_dummy_start_offset,
6672 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6673 call_dummy_address, push_return_address and push_dummy_frame for
6674 generic dummy frames.
6678 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6679 size computation for alloca.
6680 (sh_fp_frame_init_saved_regs): Likewise.
6684 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6685 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6686 * arm-tdep.c (arm_store_return_value): Use them.
6687 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6688 * remote-rdp.c (remote_rdp_fetch_register): Use
6689 ARM_MAX_REGISTER_RAW_SIZE.
6690 (remote_rdp_store_register): Likewise.
6694 * dwarf2cfi.c: Code cleanup, removed unused variables,
6695 added default labels to switch {} statements.
6696 * x86-64-tdep.c: Ditto.
6697 * x86-64-linux-nat.c: Ditto.
6701 * solib.h: Protect against multiple inclusion.
6705 Add first preprocessor macro-expansion files.
6706 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6707 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6708 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6709 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6710 (COMMON_OBS): Add macrotab.o, macroexp.o.
6711 (macroexp.o, macrotab.o): New rules.
6713 Separate the job of reading the line number info statement program
6714 header (...expialidocious) out into its own function.
6715 * dwarf2read.c (struct line_head, struct filenames, struct
6716 directories): Replace with...
6717 (struct line_header): New structure, containing the full
6718 contents of the statement program header, including the
6719 include directory and file name tables.
6720 (read_file_scope): If we have line number info, instead of just
6721 calling dwarf_decode_lines to do all the work, call
6722 dwarf_decode_line_header first to get a `struct line_header'
6723 containing the data in the statement program header, and then
6724 pass that to dwarf_decode_lines, which will pick up where that
6725 left off. Be sure to clean up the `struct line_header' object.
6726 (dwarf_decode_line_header, free_line_header, add_include_dir,
6727 add_file_name): New functions.
6728 (dwarf_decode_lines): Move all the code to read the statement
6729 program header into dwarf_decode_line_header. Take the line
6730 header it built as the first argument, instead of the offset to
6731 the compilation unit's line number info. Use the new `struct
6732 line_header' type instead of the old structures. No need to do
6733 cleanups here now, since we don't allocate anything.
6734 (dwarf2_statement_list_fits_in_line_number_section,
6735 dwarf2_line_header_too_long): New complaints.
6739 * gdbtypes.c (init_vector_type): New function.
6740 (build_builtin_type_vec128): Simplify the representation of SIMD
6742 (build_gdbtypes): Initialize new builtin vector types.
6743 (_initialize_gdbtypes): Register new vector types with gdbarch.
6744 (builtin_type_v4_float, builtin_type_v4_int32,
6745 builtin_type_v8_int16, builtin_type_v16_int8,
6746 builtin_type_v2_int32, builtin_type_v4_int16,
6747 builtin_type_v8_int8): New (renamed) SIMD types.
6751 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6752 (i387_fill_fxsave): Likewise.
6756 * alpha-tdep.c (alpha_extract_return_value): Don't use
6757 non-constant array size in prototype.
6761 From Brian Taylor <briant at model dot com>:
6762 * ui-out.c (ui_out_field_core_addr): Use the function
6763 longest_local_hex_string_custom'to format addresses > 32 bits
6766 * ui-out.c (ui_out_field_core_addr): Update comment.
6770 * stack.c (select_and_print_frame): Make static. Delete the
6772 (func_command): Update call.
6773 (select_frame_command): Delete code computing the frame level.
6774 * frame.h (select_and_print_frame): Delete declaration.
6778 * sparc-tdep.c (sparc_get_saved_register): Comment why
6779 get_prev_frame call is safe.
6783 * frame.h (select_frame): Delete level parameter.
6784 * stack.c (select_frame): Update. Use frame_relative_level to
6785 obtain the frame's level.
6786 (select_and_print_frame): Update call.
6787 (select_frame_command): Ditto.
6788 (up_silently_base): Ditto.
6789 (down_silently_base): Ditto.
6790 * ocd.c (ocd_start_remote): Ditto.
6791 * remote-rdp.c (remote_rdp_open): Ditto.
6792 * remote-mips.c (mips_initialize): Ditto.
6793 (common_open): Ditto.
6794 * remote-e7000.c (e7000_start_remote): Ditto.
6795 * m3-nat.c (select_thread): Ditto.
6796 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6797 (child_get_current_exception_event): Ditto.
6798 * varobj.c (varobj_create): Ditto.
6799 (varobj_update): Ditto.
6800 (c_value_of_root): Ditto.
6801 * tracepoint.c (finish_tfind_command): Ditto.
6802 * corelow.c (core_open): Ditto.
6803 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6804 * thread.c (info_threads_command): Ditto.
6805 (switch_to_thread): Ditto.
6806 * infrun.c (normal_stop): Ditto.
6807 (restore_selected_frame): Ditto.
6808 (restore_inferior_status): Ditto.
6809 * breakpoint.c (insert_breakpoints): Ditto.
6810 (watchpoint_check): Ditto.
6811 (bpstat_stop_status): Ditto.
6812 (do_enable_breakpoint): Ditto.
6813 * blockframe.c (flush_cached_frames): Ditto.
6814 (reinit_frame_cache): Ditto.
6818 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6823 * gdbtypes.c (replace_type): Doc fix.
6827 * valprint.c (strcat_longest): Delete commented out function.
6832 * MAINTAINERS: Mark a29k as deleted.
6833 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6834 Move new configurations to the top.
6835 * configure.tgt: Remove a29k.
6836 * config/a29k/tm-vx29k.h: Delete.
6837 * config/a29k/vx29k.mt: Delete.
6838 * config/a29k/tm-a29k.h: Delete.
6839 * config/a29k/a29k-udi.mt: Delete.
6840 * config/a29k/a29k.mt: Delete.
6841 * a29k-tdep.c: Delete.
6842 * remote-udi.c: Delete.
6843 * remote-mm.c: Delete.
6844 * remote-eb.c: Delete.
6845 * remote-adapt.c: Delete.
6846 * Makefile.in: Remove obsolete code.
6847 * config/s390/s390x.mt: Ditto.
6848 * config/s390/s390.mt: Ditto.
6849 * config/sparc/sparclynx.mh: Ditto.
6850 * config/sparc/linux.mh: Ditto.
6851 * config/pa/hppaosf.mh: Ditto.
6852 * config/pa/hppabsd.mh: Ditto.
6853 * config/ns32k/nbsd.mt: Ditto.
6854 * config/mips/vr5000.mt: Ditto.
6855 * config/m68k/sun3os4.mh: Ditto.
6856 * config/m68k/nbsd.mt: Ditto.
6857 * config/m68k/m68klynx.mh: Ditto.
6858 * config/m32r/m32r.mt: Ditto.
6859 * config/i386/x86-64linux.mt: Ditto.
6860 * config/i386/nbsdelf.mt: Ditto.
6861 * config/i386/nbsd.mt: Ditto.
6862 * config/i386/i386lynx.mh: Ditto.
6866 * target.c (debug_print_register): New function. Handle oversize
6868 (debug_to_fetch_registers): Call.
6869 (debug_to_store_registers): Call.
6873 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6874 (read_type): Doc fix.
6875 * gdbtypes.c (replace_type): Doc fix.
6877 * stabsread.c (multiply_defined_struct): New complaint.
6878 (read_struct_type): If the type we were passed isn't empty, or
6879 incomplete, don't read the new struct type into it; complain,
6880 and return the original type unchanged. Take a new `type_code'
6881 argument, which is the type code for the new type.
6882 (read_type): Rather than storing the type's type code here, pass
6883 it as an argument to read_struct_type, and let that take care of
6884 storing it. That way, we don't overwrite the original type code,
6885 so read_struct_type can use it to decide whether we're overwriting
6886 something we shouldn't.
6887 (complain_about_struct_wipeout): New function.
6891 * gdbarch.sh: Assert that gdbarch is non-NULL.
6892 * gdbarch.c: Regenerate.
6896 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6901 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6902 (x86_64_dwarf2gdb_regno_map_length),
6903 (x86_64_dwarf2_reg_to_regnum): Added.
6904 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6905 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6906 (_initialize_x86_64_tdep): Synced with the change above.
6907 (x86_64_skip_prologue): Reformulated message.
6911 * f-exp.y: Also use new prev_lexptr variable
6912 to improve error reporting. Based on Michael Snyder
6913 2002-04-24 dated patch to c-exp.y.
6914 * jv-exp.y: Likewise.
6915 * m2-exp.y: Likewise.
6919 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6920 we are dealing with vectors.
6924 * config/m68k/tm-nbsd.h: Obvious fix,
6925 correct machine name.
6929 * p-typeprint.c (pascal_type_print_base): Add support
6930 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6934 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6935 for fondamental pascal 'char' type.
6939 * p-lang.h (is_pascal_string_type): Declaration changed,
6940 new sixth argument of type char ** added.
6941 * p-lang.c (is_pascal_string_type): Implementation
6942 changed. Args length_pos, length_size, string_pos, char_size
6943 can now be NULL. New argument arrayname set to the field
6944 name of the char array. Return value set to char array
6945 field index plus one.
6946 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6947 is_pascal_string_type function.
6951 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6953 * gdbarch.c: Regenerate.
6957 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6958 before probing for a new one. Detect errorenous gdbarch_init
6960 * gdbarch.c: Regenerate.
6964 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6965 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6966 * config/v850/tm-v850.h: Ditto. Update copyright.
6970 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6975 * arm-tdep.c: Whitespace clean-ups.
6976 (arm_skip_prologue): Fix thinko; two lines
6977 should have been removed as part of 4/24 change.
6981 * rs6000-tdep.c: Added comment describing how fpscr register
6982 numbers were chosen.
6986 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6990 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6991 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6992 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6997 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6998 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6999 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7000 not bfd-private xcoff data, to determine wordsize.
7001 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7005 GDB 5.2 released from 5.2 branch.
7009 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7010 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7011 (x86_64_register_info_table): Added comments with register numbers.
7015 * rs6000-tdep.c (rs6000_extract_return_value,
7016 rs6000_store_return_value): Handle returning vectors.
7017 (rs6000_gdbarch_init): Use
7018 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7019 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7021 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7023 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7024 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7026 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7028 * hpread.c (hpread_psymtab_to_symtab_1,
7029 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7030 with fprintf_unfiltered (gdb_stderr,...).
7032 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7034 * remote-array.c (printf_monitor, write_monitor,
7035 array_insert_breakpoint, array_remove_breakpoint ):
7036 Replace fprintf (stderr,...
7037 with fprintf_unfiltered (gdb_stderr,....
7038 * remote-es.c: Likewise.
7039 * remote-os9k.c: Likewise.
7040 * remote-st.c: Likewise.
7044 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7045 linux-proc.o and gcore.o.
7049 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7050 code without frame pointers.
7054 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7059 * target.c (do_xfer_memory): Correct reference to the new option
7060 "trust-readonly-sections".
7064 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7065 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7066 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7068 (read_array_type): Record the fact that this array type is really a
7069 vector (i.e. are passed in by value).
7073 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7074 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7075 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7076 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7077 * alpha-linux-tdep.c: Include frame.h.
7078 (alpha_linux_sigcontext_addr): New function.
7079 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7080 alpha_linux_sigcontext_addr.
7081 * alpha-osf1-tdep.c: Include gdbcore.h.
7082 (alpha_osf1_sigcontext_addr): New function.
7083 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7084 alpha_osf1_sigcontext_addr.
7085 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7086 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7090 * stack.c (selected_frame_level):
7091 (select_frame): Do not set selected_frame_level.
7092 * frame.h (selected_frame_level): Delete declaration.
7096 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7097 convert_from_func_ptr-addr when AIX / PowerOpen.
7101 * valops.c (hand_function_call): Call
7102 generic_save_call_dummy_addr.
7103 * frame.h (generic_save_call_dummy_addr): Declare.
7104 * blockframe.c (struct dummy_frame): Add fields call_lo and
7106 (generic_find_dummy_frame): Check for PC in range call_lo to
7107 call_hi instead of entry_point_address.
7108 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7109 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7110 (generic_save_call_dummy_addr): New function.
7114 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7115 sparc_skip_prologue.
7116 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7117 information to find prologue when possible.
7118 (sparc_prologue_frameless_p): Call examine_prologue directly.
7119 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7120 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7122 (SKIP_PROLOGUE): Likewise.
7126 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7127 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7128 indicate that the condition it was testing is always true.
7129 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7130 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7131 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7135 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7136 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7137 tdep->jb_pc and tdep->jb_elt_size.
7138 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7139 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7140 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7141 * alpha-nat.c (get_longjmp_target): Remove.
7142 (JB_ELEMENT_SIZE): Ditto.
7144 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7145 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7146 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7147 to alpha_get_longjmp_target.
7148 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7149 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7150 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7154 * README: Update to GDB 5.2.
7158 * gdbarch.sh (LC_ALL): Set to `c'.
7162 * avr-tdep.c: Ran through gdb_indent.sh.
7166 * MAINTAINERS: Add myself as AVR maintainer.
7167 * NEWS: Note new target avr.
7171 * Makefile.in: Add support for AVR target.
7172 * configure.tgt: Add support for AVR target.
7173 * avr-tdep.c: New file
7174 * config/avr/avr.mt: New file.
7178 * MAINTAINERS: Add myself to write-after-approval.
7180 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7182 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7183 with fprintf_unfiltered (gdb_stderr,....
7188 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7192 * p-exp.y: Also use new prev_lexptr variable
7193 to improve error reporting. Based on Michael Snyder
7194 2002-04-24 dated patch to c-exp.y.
7198 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7199 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7200 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7202 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7204 (FUNCTION_START_OFFSET): Remove.
7205 (BREAKPOINT): Ditto.
7209 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7214 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7215 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7216 alpha_linux_pc_in_sigtramp.
7217 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7218 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7219 alpha_osf1_pc_in_sigtramp.
7220 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7221 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7222 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7223 alphafbsd_pc_in_sigtramp.
7224 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7225 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7226 alphanbsd_pc_in_sigtramp.
7227 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7228 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7232 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7236 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7238 (alphanbsd-nat.o): New dependency list.
7239 (alphanbsd-tdep.o): Ditto.
7240 * NEWS: Note new native NetBSD/alpha configuration.
7241 * alphanbsd-nat.c: New file.
7242 * alphanbsd-tdep.c: Ditto.
7243 * configure.host (alpha*-*-netbsd*): New host.
7244 * configure.tgt (alpha*-*-netbsd*): New target.
7245 * config/alpha/nbsd.mh: New file.
7246 * config/alpha/nbsd.mt: Ditto.
7247 * config/alpha/nm-nbsd.h: Ditto.
7248 * config/alpha/tm-nbsd.h: Ditto.
7252 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7253 (alpha-osf1-tdep.o): New dependency list.
7254 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7255 and skip_sigtramp_frame members.
7256 * alpha-linux-tdep.c: Include gdbcore.h.
7257 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7258 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7259 * alpha-osf1-tdep.c: New file.
7260 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7262 (alpha_frame_past_sigtramp_frame): New function.
7263 (alpha_dynamic_sigtramp_offset): Ditto.
7264 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7265 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7266 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7267 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7268 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7269 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7270 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7271 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7272 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7273 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7274 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7275 to find_solib_trampoline_target.
7276 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7277 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7278 (SKIP_TRAMPOLINE_CODE): Remove.
7279 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7280 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7281 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7282 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7283 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7284 (PROC_SIGTRAMP_MAGIC): Ditto.
7285 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7286 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7287 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7288 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7289 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7293 * NEWS: Note that Alpha targets are now multi-arch.
7297 * parser-defs.h (prev_lexptr): New external variable.
7298 * parse.c (parse_exp_1): Set prev_lexptr to null before
7299 calling the language-specific parser.
7300 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7301 (yyerror): Use prev_lexptr in error reporting.
7305 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7306 * gregset.h: If FILL_FPXREGSET is defined, provide
7307 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7308 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7309 is defined, call fill_fpxregset.
7313 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7314 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7315 (supply_gregset, supply_fpregset): New functions.
7317 * gnu-nat.c (gnu_find_memory_regions): New function.
7318 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7319 (gnu_xfer_memory): Add a cast.
7323 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7324 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7325 of argument regs ("str r(0123), [r11, #-nn"]).
7326 (arm_skip_prologue): Better handling for frameless functions.
7327 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7328 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7332 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7333 NUM_PSEUDO_REGS can be used.
7337 * arch-utils.h: Update copyright.
7339 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7342 * inferior.h (IN_SIGTRAMP): Delete definition.
7343 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7344 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7346 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7347 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7348 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7349 (find_proc_framesize): Ditto.
7350 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7351 (alpha_init_extra_frame_info): Ditto.
7352 * infrun.c (handle_inferior_event): Ditto.
7353 (handle_inferior_event): Ditto.
7354 (check_sigtramp2): Ditto.
7355 * blockframe.c (create_new_frame): Ditto.
7356 (get_prev_frame): Ditto.
7357 * ppc-linux-tdep.c: Update comments.
7358 * i386-linux-tdep.c: Update comments.
7359 * breakpoint.c (bpstat_what): Update comment.
7363 * i960-tdep.c (register_in_window_p): New function.
7364 (i960_find_saved_register): Use it instead of
7365 REGISTER_IN_WINDOW_P.
7366 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7368 * symtab.h (find_stab_function_addr): Kill extern.
7369 * minsyms.c (find_stab_function_addr): Remove from here...
7370 * dbxread.c: ... to here, and mark it static.
7374 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7375 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7379 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7380 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7381 (vx_write_register): Likewise.
7385 * source.c (is_regular_file): New function.
7386 (openp): Check wether file to open is a regular file
7387 to avoid opening directories.
7391 * findvar.c (extract_signed_integer): Cast printf argument
7392 to suppress format warning.
7393 (extract_unsigned_integer): Likewise.
7394 * infcmd.c (registers_info): Likewise.
7395 * top.c (get_prompt_1): Likewise.
7396 * valops.c (value_assign): Likewise.
7397 * valprint.c (print_decimal): Likewise.
7401 * c-exp.y (typebase): Support
7403 [long|long long|short] [signed|unsigned] [int|]
7407 signed [long|long long|short] int
7411 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7413 * vax-tdep.h: New file.
7414 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7415 Make several routines static.
7416 (vax_get_saved_register): New function.
7417 (vax_gdbarch_init): New function.
7418 (_initialize_vax_tdep): Register vax_gdbarch_init.
7419 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7420 Remove macros now under the control of gdbarch.
7424 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7425 Some whitespace and coding standards tweaks.
7429 * vax-tdep.c: Include regcache.h.
7430 (vax_call_dummy_words): New.
7431 (sizeof_vax_call_dummy_words): New.
7432 (vax_fix_call_dummy): New function.
7433 (vax_saved_pc_after_call): Ditto.
7434 * config/vax/tm-vax.h: Don't include regcache.h.
7435 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7436 (CALL_DUMMY): Remove.
7437 (CALL_DUMMY_WORDS): Define.
7438 (SIZEOF_CALL_DUMMY_WORDS): Define.
7439 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7443 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7447 * vax-tdep.c (vax_frame_chain): New function.
7448 (vax_push_dummy_frame): Ditto.
7449 (vax_pop_frame): Ditto.
7450 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7451 (FRAMELESS_FUNCTION_INVOCATION): Use
7452 generic_frameless_function_invocation_not.
7453 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7454 (POP_FRAME): Use vax_pop_frame.
7458 * vax-tdep.c (vax_store_struct_return): New function.
7459 (vax_extract_return_value): Ditto.
7460 (vax_store_return_value): Ditto.
7461 (vax_extract_struct_value_address): Ditto.
7462 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7463 vax_store_struct_return.
7464 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7465 (STORE_RETURN_VALUE): Use vax_store_return_value.
7466 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7470 * vax-tdep.c (vax_frame_saved_pc): New function.
7471 (vax_frame_args_address_correct): Ditto.
7472 (vax_frame_args_address): Ditto.
7473 (vax_frame_locals_address): Ditto.
7474 (vax_frame_num_args): Move code to be in proximity to
7475 other frame-related functions.
7476 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7477 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7478 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7479 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7480 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7484 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7489 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7490 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7491 (FRAME_INIT_SAVED_REGS): New macro.
7495 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7499 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7501 (fetch_osf_core_registers): Likewise.
7502 (supply_gregset): Likewise.
7506 * symfile.h (get_section_index): Define.
7507 * symfile.c (get_section_index): New function.
7508 * mdebugread.c (SC_IS_SBSS): New macro.
7509 (SC_IS_BSS): Return true for the scBss storage class only, as
7510 the scSBss storage class refers to the .sbss section.
7511 (parse_partial_symbols): Discard the symbols which associated
7512 section does not exist.
7513 Make sure to use the .sbss section index for symbols which
7514 storage class is scBss, rather than using the .bss section index.
7518 * vax-tdep.c: Update copyright years.
7519 (vax_register_name): New function.
7520 (vax_register_byte): Ditto.
7521 (vax_register_raw_size): Ditto.
7522 (vax_register_virtual_size): Ditto.
7523 (vax_register_virtual_type): Ditto.
7524 * config/vax/tm-vax.h: Update copyright years.
7525 (REGISTER_NAMES): Remove.
7526 (REGISTER_NAME): Define.
7527 (REGISTER_BYTE): Use vax_register_byte.
7528 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7529 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7530 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7534 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7536 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7540 * arch-utils.c (generic_prologue_frameless_p): Kill
7541 SKIP_PROLOGUE_FRAMELESS_P code.
7542 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7544 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7545 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7546 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7548 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7549 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7550 (sparc_gdbarch_init): Pass it to
7551 set_gdbarch_prologue_frameless_p.
7555 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7556 (alphabsd-nat.o): New dependency list.
7560 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7562 (alpha-linux-tdep.o): New dependency list.
7563 (alphafbsd-tdep.o): Likewise.
7567 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7569 * alpha-tdep.c: ...from here.
7570 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7574 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7575 prototype from here...
7576 * alpha-tdep.h: ...to here.
7580 * frame.h (selected_frame_level): Document as deprecated.
7581 (frame_relative_level): Declare.
7582 * stack.c (frame_relative_level): New function.
7583 (selected_frame_level): Document as deprecated.
7584 (select_frame): Do not set the selected_frame_level.
7586 * stack.c (frame_info, record_selected_frame): Update.
7587 (frame_command, current_frame_command): Update.
7588 (up_silently_base, up_command, down_silently_base): Update.
7589 (down_command): Update.
7590 * inflow.c (kill_command): Update.
7591 * tracepoint.c (finish_tfind_command): Update.
7592 * corelow.c (core_open): Update.
7593 * thread.c (info_threads_command): Update.
7594 (do_captured_thread_select): Update.
7595 * infcmd.c (finish_command): Update.
7596 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7600 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7604 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7609 * alphafbsd-tdep.c: Update copyright years. Include
7611 (alphafbsd_use_struct_convention): Make static.
7612 (alphafbsd_init_abi): New function.
7613 (_initialize_alphafbsd_tdep): New function.
7614 * config/alpha/tm-fbsd.h: Update copyright years.
7615 (USE_STRUCT_CONVENTION): Remove.
7619 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7620 an Alpha ABI variant.
7621 (alpha_abi_handler_list): Declare.
7622 (alpha_gdbarch_register_os_abi): New function.
7623 (alpha_gdbarch_init): Give registered ABI variant handlers a
7624 chance to tweak the gdbarch once we have set up defaults.
7625 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7629 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7630 to standard_coerce_float_to_double.
7631 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7635 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7636 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7637 from gdbarch_tdep rather than a constant.
7638 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7639 the default text address for all Alpha Unix ABIs.
7640 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7641 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7645 * alpha-tdep.h: New file. Includes several Alpha target constants
7647 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7648 let gdbarch deal with.
7649 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7650 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7652 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7653 Alpha target register names.
7654 * alphabsd-nat.c: Likewise.
7655 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7656 Alpha target register names. Make serveral routines static.
7657 (alpha_get_saved_register): New function.
7658 (alpha_abi_names): New.
7659 (process_note_abi_tag_sections): New function.
7660 (get_elfosabi): New function.
7661 (alpha_gdbarch_init): New function.
7662 (alpha_dump_tdep): New function.
7663 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7667 * frame.c (find_saved_register): Delete #ifdef
7668 HAVE_REGISTER_WINDOWS code.
7669 * config/sparc/tm-sparc.h: Update comments.
7670 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7674 * i960-tdep.c (i960_find_saved_register): New function.
7675 (i960_get_saved_register): New function.
7676 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7677 (i960_get_saved_register): Declare.
7678 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7682 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7686 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7687 instead of NUM_PSEUDO_REGS.
7691 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7692 GDB_MULTI_ARCH_PARTIAL
7693 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7694 define, let tm-sp64.h do it.
7698 * frame.c (find_saved_register): Avoid a NULL pointer
7699 dereference and actually walk the frame list.
7703 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7704 sorted in most most-recent-used order. Document.
7705 * gdbarch.h, gdbarch.c: Regenerate.
7709 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7711 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7712 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7713 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7719 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7720 (build_builtin_type_vec128): Ditto.
7721 (append_composite_type_field): Fix calculation of type length in
7726 * config/djgpp/README: Update.
7728 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7733 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7734 (alpha_setup_arbitrary_frame): ...to this.
7735 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7736 for alpha_setup_arbitrary_frame.
7740 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7741 * gdbarch.h, gdbarch.c: Regenerate.
7743 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7744 * target.h (memory_breakpoint_from_pc): Update declaration.
7745 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7747 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7748 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7749 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7750 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7751 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7752 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7753 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7754 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7755 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7756 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7757 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7758 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7760 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7762 * monitor.c (monitor_insert_breakpoint): Ditto.
7763 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7765 * config/mcore/tm-mcore.h: Update copyright.
7766 * mem-break.c: Ditto.
7767 * xstormy16-tdep.c: Ditto.
7771 * p-exp.y: Add precedence rule for '^' token.
7772 This removes the shift/reduce conflicts.
7773 Remove the comment concerning these shift/reduce conflicts.
7777 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7778 (registers_powerpc_nofp): New register set for processors
7779 without floating point unit.
7783 * MAINTAINERS: Add myself to write-after-approval.
7787 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7791 * rs6000-tdep.c (frame_initial_stack_address): Use
7792 frame_register_read to read the alloca_reg.
7796 * frame.c (find_saved_register): Find saved registers in the next
7802 * gdbarch.sh (LANG): Set to ``c''.
7806 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7810 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7813 * hpread.c (hpread_get_lntt): Add declaration.
7814 Also fix PR gdb/391.
7818 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7819 * aclocal.m4, configure: Re-generate.
7824 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7825 instead of tm_print_insn.
7829 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7833 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7834 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7835 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7839 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7840 max_user_call_depth.
7841 (init_cmd_lists): Initialize the new value;
7842 * cli/cli-script.c (execute_user_command): Limit the call depth of
7843 user defined commands. This avoids a core-dump when user commands
7844 are infinitly recursive.
7848 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7849 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7850 from tdep struct instead of DEFAULT_LR_SAVE.
7851 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7852 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7853 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7857 * Remote.c: Spelling fix.
7858 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7859 If no symbol found for "sbrk", try "_sbrk".
7860 (make_output_phdrs): Use bfd_section_name.
7861 (gcore_copy_callback): Use bfd_section_name.
7862 * eval.c: Indentation fix-ups.
7863 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7864 in case it gets applied to an address that is already
7865 in the instruction space.
7866 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7867 * symfile.c: Fix indentation, long lines.
7868 * source.c: White space fix-up.
7872 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7873 * frame.c (frame_register_read): New function. Return non-zero on
7875 (read_relative_register_raw_bytes_for_frame): Delete.
7876 (read_relative_register_raw_bytes): Delete.
7877 * frame.h (frame_register_read): Declare.
7878 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7880 * infcmd.c (do_registers_info): Ditto.
7881 * hppa-tdep.c: Ditto.
7882 * rs6000-tdep.c: Ditto.
7883 * h8500-tdep.c: Ditto.
7884 * mips-tdep.c: Ditto.
7885 * h8300-tdep.c: Ditto.
7886 * z8k-tdep.c: Ditto.
7891 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7897 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7903 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7904 register sets for these processor variants.
7908 * regformats/reg-ppc.dat: Support FPSCR.
7912 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7913 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7914 Add fpscr as an invalid/unfetchable register.
7915 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7916 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7917 (fill_fpregset): Add support for register fpscr.
7918 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7919 (fill_gregset): Account for the fact that register ``mq'' might
7921 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7922 (registers_power): Add fpscr to register set at slot 71.
7923 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7924 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7928 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7929 * configure: Regenerate.
7930 * config.in: Regenerate.
7931 * acconfig.h: Add define for _SYSCALL32.
7932 * core-sol2.c: Remove #define _SYSCALL32.
7933 * solib-legacy.c: Remove #define _SYSCALL32.
7937 * stack.c (select_frame): Cleanup internal error message, do not
7942 * stack.c (select_frame): Check that selected_frame and the
7943 specified level are as expected.
7944 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7946 * frame.h (struct frame_info): Add field `level'. Update
7948 Work-in-progress PR gdb/464.
7952 * maint.c (maint_print_section_info): Rename print_section_info.
7953 (print_bfd_section_info, print_objfile_section_info): Update.
7954 * inferior.h (struct gdbarch): Add opaque declaration.
7955 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7956 * gdbarch.h: Regenerate.
7960 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7961 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7962 (kernel_u_size): Added.
7963 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7964 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7968 * valarith.c (find_size_for_pointer_math): New function, either returns
7969 the size for a pointer's target, returns 1 for void *, or errors for
7971 (value_add, value_sub): use find_size_for_pointer_math.
7975 * linux-low.c (linux_look_up_symbols): New hook.
7976 (linux_target_ops): Add linux_look_up_symbols.
7977 * remote-utils.c (decode_address): New function.
7978 (look_up_one_symbol): New function.
7979 * server.c (handle_query): Call target look_up_symbols hook.
7980 * server.h (look_up_one_symbol): Add prototype.
7981 * target.h (struct target_ops): Add look_up_symbols hook.
7985 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7986 override FP_REGNUM with frame->fp. Update copyright.
7987 * parse.c (num_std_regs, std_regs): Delete.
7988 (target_map_name_to_register): Do not search std_regs. Update
7989 function description.
7990 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7991 declarations. Update copyright.
7996 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7997 after the last symbol in a block.
8001 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8002 is non zero as a found symbol.
8006 * findvar.c: Include "builtin-regs.h".
8007 (value_of_register): Call value_of_builtin_reg when applicable.
8008 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8009 (target_map_name_to_register): Call
8010 builtin_reg_map_name_to_regnum.
8011 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8012 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8013 (builtin_regs_h): Define.
8014 (builtin-regs.o): New target.
8015 (findvar.o): Add $(builtin_regs_h).
8016 * builtin-regs.c, builtin-regs.h: New files.
8017 * std-regs.c: New file.
8018 Partial fix for PR gdb/251.
8022 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8023 it's no longer required.
8027 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8032 * rs6000-tdep.c (rs6000_software_single_step): Use
8033 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8034 and size. Use target_insert_breakpoint() and
8035 target_remove_breakpoint() to insert and remove breakpoints
8036 instead of explicit memory reads and writes.
8040 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8041 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8042 ELF_OBJECT_FORMAT ifdef.
8047 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8052 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8053 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8057 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8058 s/asprintf/xasprintf/.
8059 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8063 I believe Jeff Law denies responsability for this one:
8064 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8065 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8066 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8067 Work-around for PR gdb/366.
8071 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8072 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8073 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8077 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8078 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8083 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8088 * README (Reporting Bugs in GDB): Document the bug web page as the
8089 prefered way of submitting bugs.
8094 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8096 * gdbarch.h, gdbarch.c: Re-generate.
8100 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8101 buffer to regcache_collect.
8105 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8106 * gdbarch.c, gdbarch.h: Re-generate.
8110 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8111 declaration. Fix -Werror.
8115 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8116 * gdbarch.c: Regenerate.
8120 * breakpoint.c (clear_command): Rewrite middle section to
8121 combine two loops with identical control conditions.
8122 Add a cleanup to eliminate a memory leak.
8123 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8127 * solib-svr4.c (bkpt_names): Add "__start".
8131 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8132 as test for 64 bit target.
8136 * h8500-tdep.c (h8500_write_fp): Delete function.
8137 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8138 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8139 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8141 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8142 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8144 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8145 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8146 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8147 (d10v_write_fp): Delete function.
8148 * inferior.h (write_fp, generic_target_write_fp): Delete
8150 * regcache.c (generic_target_write_fp): Delete function.
8151 (write_fp): Delete function.
8152 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8155 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8156 (sparc64_write_fp): Delete declaration.
8157 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8158 (h8500_write_fp): Delete declaration.
8162 * sparc-tdep.c (sparc64_write_fp): Delete.
8163 (sparc_push_dummy_frame): Replace write_fp call with code to store
8165 (sparc_gdbarch_init): Do not initialize write_fp.
8169 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8174 * stack.c (get_selected_block): Add new argument `addr_in_block',
8175 used to return the exact code address we used to select the block,
8177 * blockframe.c (get_frame_block, get_current_block): Same.
8178 * frame.h (get_frame_block, get_current_block,
8179 get_selected_block): Update declarations.
8180 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8181 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8185 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8190 * utils.c (xfullpath): New function.
8191 * defs.h (xfullpath): Add declaration.
8192 * source.c (openp): Use xfullpath in place of gdb_realpath to
8193 avoid resolving the basename part of filenames when the
8194 associated file is a symbolic link. This fixes a potential
8195 inconsistency between the filenames known to GDB and the
8196 filenames it prints in the annotations.
8197 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8198 to be able to match a filename with either the real filename, or
8199 the name of any symbolic link to this file.
8200 (lookup_partial_symtab): Ditto.
8204 * breakpoint.c: Add support for hardware breakpoints in overlays.
8205 (overlay_events_enabled): New state variable.
8206 (insert_breakpoints): Use overlay_events_enabled to decide
8207 whether to attempt to set a breakpoint at the overlay load addr.
8208 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8209 (remove_breakpoint): Use overlay_events_enabled to decide
8210 whether breakpoints need to be removed from overlay load addr.
8211 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8212 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8213 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8214 disable_overlay_breakpoints): Update overlay_events_enabled.
8218 * dwarf2read.c (struct function_range): New.
8219 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8220 (check_cu_functions): New.
8221 (read_file_scope): Initialize global function lists.
8222 Call dwarf_decode_line after processing children.
8223 (read_func_scope): Add to global function list.
8224 (dwarf_decode_lines): Call check_cu_functions everywhere
8225 record_line is called. Call record_line with a linenumber
8226 of 0 to mark sequence ends.
8230 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8231 change sync with glibc.
8235 * configure.in: Call AC_C_INLINE.
8236 * configure: Regenerated.
8240 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8241 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8245 * NEWS: Mention gcore support on FreeBSD/i386.
8247 * fbsd-proc.c: New file.
8248 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8249 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8251 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8256 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8257 unescaped newlines in string literals, but newer ones don't. So
8263 * cli/cli-dump.c: New file. Dump memory to file,
8264 restore file to memory.
8265 * cli/cli-dump.h: New file.
8266 * Makefile.in: Add rules, dependencies for cli-dump.o.
8267 * NEWS: Mention new commands.
8271 * symfile.c (symbol_file_add): Move test for null symbols to later.
8275 From veksler at il.ibm.com:
8276 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8277 the xstrduped original path.
8282 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8283 * infcmd.c (_initialize_infcmd): Ditto.
8284 * language.c (_initialize_language): Ditto.
8285 * symfile.c (_initialize_symfile): Ditto.
8286 * top.c (_init_main): Ditto.
8287 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8291 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8292 vector registers handling.
8293 (skip_prologue): Handle new AltiVec instructions. Fill in new
8294 fields of frame data.
8295 (frame_get_saved_regs): Fill in information for AltiVec registers.
8299 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8300 a function; leave this macro here to invoke that function.
8301 (symbol_init_mangled_name): Declaration for that function.
8302 * symtab.c (symbol_init_mangled_name): New function.
8306 * valarith.c: Replace strerror with safe_strerror.
8307 * tracepoint.c: Ditto.
8309 * go32-nat.c: Ditto.
8315 * event-top.c (command_line_handler): Remove useless if.
8319 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8324 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8325 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8326 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8327 (x86_64_linux_dr_get_status, supply_gregset),
8328 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8329 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8330 (x86_64_register_info_table): Add.
8331 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8332 (x86_64_register_raw_size, x86_64_register_virtual_type),
8333 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8334 general x86_64_register_info_table.
8335 (i386_gdbarch_init): gdbarch_register_bytes is now set
8336 dynamicaly during initialization.
8337 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8338 * gdbserver/linux-x86-64-low.c: Ditto.
8342 * gdbserver/server.c (main): Call target_signal_to_host_p
8343 and target_signal_to_host on signals received from the remote.
8344 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8345 target_signal_from_host on signals sent to the remote.
8346 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8347 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8351 * signals/signals.c: Include "server.h" in gdbserver build.
8352 (target_signal_from_name): Don't use STREQ.
8353 (_initialize_signals): Likewise. Don't include function in
8358 * signals.c: Moved to...
8359 * signals/signals.c: Here.
8360 * Makefile (signals.o): Update.
8364 * somread.c (som_symtab_read): Remove some commented out code and
8365 updated related comments. Do not set the minimal symbol table to
8366 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8367 in a dynamic executable.
8368 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8369 where we are unable to find the minimal symbol for the given
8374 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8378 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8382 * command.h: Update copyright.
8383 (struct cmd_list_element): Replace definition with opaque
8385 (enum cmd_types): Document that it will eventually be moved to
8387 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8388 (MALLOCED_REPLACEMENT): Delete macro.
8389 * Makefile.in (cli_decode_h): Add $(command_h).
8390 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8391 * top.c: Include "cli/cli-decode.h".
8392 * completer.c: Include "cli/cli-decode.h".
8393 * maint.c: Include "cli/cli-decode.h".
8394 * cli/cli-decode.h: Include "command.h".
8395 (enum command_class): Delete.
8396 (enum cmd_types): Comment out.
8397 (enum cmd_auto_boolean): Delete.
8398 (enum var_types): Delete.
8402 * cli/cli-decode.c: Include "gdb_assert.h".
8403 (add_set_or_show_cmd): New static function.
8404 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8405 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8406 all fields, such as func, from the set command.
8410 * MAINTAINERS (sh-elf): Change warning flag to -w.
8414 * defs.h (error): Add printf format attribute.
8415 * thread-db.c (thread_from_lwp): Fix error format string.
8416 * stack.c (parse_frame_specification): Ditto.
8417 * cli/cli-decode.c (undef_cmd_error): Ditto.
8418 * scm-lang.c (scm_lookup_name): Ditto.
8419 * tracepoint.c (trace_error): Ditto.
8420 * remote-utils.c (usage): Ditto.
8421 * remote.c (compare_sections_command): Ditto.
8426 * gdbtypes.c (append_composite_type_field): New function.
8427 (init_composite_type): New function.
8428 * gdbtypes.h (append_composite_type_field): Declare.
8429 (init_composite_type): Ditto.
8433 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8435 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8436 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8437 structure returning convention for SYSV ABI case, but not
8438 for GNU/Linux, FreeBSD, or NetBSD.
8442 * symtab.h (lookup_block_symbol): Add mangled_name argument
8445 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8446 with new mangled_name argument.
8447 * linespec.c (decode_line_1): Likewise.
8448 * valops (value_of_this): Likewise.
8449 * symtab.c (lookup_transparent_type): Likewise.
8450 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8451 (lookup_symbol): If we are given a mangled name, pass it down
8452 to lookup_symbol_aux.
8453 (lookup_block_symbol): If we are given a mangled name to check
8454 against, only return symbols which match it.
8458 * win32-nat.c (child_create_inferior): Check for proper shell to use
8459 here, in case the user changes it on the fly.
8460 (_initialize_inftarg): Remove shell path considerations.
8464 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8465 for gdbarch_max_register_raw_size and max_register_virtual_size.
8466 Adjust copyright year.
8470 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8471 in a function to cover the entire beginning of the function
8472 as well if it does not already.
8476 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8477 (rs6000_ptrace64): Renamed from ptrace64.
8481 * gdbserver/remote-utils.c (remote_open): Don't call
8482 getprotobyname, we're all using TCP here so just use
8484 * gdbserver/gdbreplay.c (remote_open): Ditto.
8488 * regcache.c (_initialize_regcache): No need to call
8489 build_regcache() at this time; it gets called whenever
8490 the gdbarch changes.
8494 * sparc-nat.c: Include sys/param.h where possible.
8499 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8500 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8501 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8503 * stabsread.c (rs6000_builtin_type): Likewise.
8504 (read_sun_floating_type): Likewise.
8508 * stabsread.c (read_member_functions): Remove skip code for duplicate
8509 constructor/destructor methods. Use standard parsing for these
8510 methods and just do not chain them to the list of methods after
8515 * coffread.c: Remove redundant static declarations. Replace
8516 occurrences of `PTR' with `void *'.
8517 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8518 * top.h (quit_cover): Likewise.
8519 * defs.h (catch_errors): Likewise.
8523 * defs.h (XMALLOC): Define.
8524 * gdb-events.sh (XMALLOC): Delete macro.
8525 * gdb-events.c, gdb-events.h: Regenerate.
8526 * gdbarch.sh (XMALLOC): Delete macro.
8527 * gdbarch.c: Regenerate.
8528 * serial.c (XMALLOC): Delete macro.
8529 * ui-file.c (XMALLOC): Ditto.
8530 * ser-unix.h (XMALLOC): Ditto.
8531 * sh-tdep.c (XMALLOC): Ditto.
8532 * ui-out.c (XMALLOC): Ditto.
8533 * utils.c (XMALLOC): Ditto.
8534 * i386-tdep.c (XMALLOC): Ditto.
8535 * gdb-events.c (XMALLOC): Ditto.
8536 * d10v-tdep.c (XMALLOC): Ditto.
8537 * cli-out.c (XMALLOC): Ditto.
8539 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8540 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8541 * ui-file.c, ui-out.c: Ditto.
8545 * command.h (struct cmd_list_element): Add field context.
8546 (set_cmd_context, get_cmd_context): Declare.
8547 * cli/cli-decode.h: Ditto.
8548 * cli/cli-decode.c (get_cmd_context): New function.
8549 (set_cmd_context): New function.
8550 (add_cmd): Initialize context.
8551 Part of fixing PR gdb/145 and PR gdb/146.
8555 * cli/cli-decode.c (cmd_type): New function.
8556 * command.h (cmd_type): Declare.
8557 * infrun.c (set_schedlock_func): Call function cmd_type.
8558 * kod.c (kod_set_os): Call cmd_type.
8559 * cris-tdep.c (cris_version_update): Use function cmd_type.
8560 (cris_mode_update, cris_abi_update): Ditto.
8562 * command.h: (execute_cmd_post_hook): Declare.
8563 (execute_cmd_pre_hook): Declare.
8564 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8565 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8566 functions. Execute pre/post hook while ensuring that afterwords
8568 * top.c (execute_command): Use execute_cmd_post_hook, and
8569 execute_cmd_pre_hook to execute pre/post commands.
8570 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8572 (hook_stop_stub): Call execute_cmd_pre_hook.
8576 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8577 set'' and this leads to a core dump. Move xstrdup of
8578 operating_system to after check that it is not NULL.
8582 * kod.c (kod_set_os): Remove unnecessary check that
8583 ``command->type'' is set_cmd.
8585 * valprint.c (set_input_radix): Use input_radix.
8586 (set_output_radix): Use output_radix.
8587 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8592 * value.h (struct value): Delete field ``substring_addr''. Change
8593 aligner fields to force_doublest_align, force_longest_align,
8594 force_core_addr_align and force_pointer_aligh.
8596 * value.h (struct value): Fix typo in above change.
8600 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8601 to fix internal_error from ``maintenance print architecture''.
8605 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8606 for gcc versions after gcc-2.8.1.
8610 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8611 for method resolution. Restore adjustment of ``this'' pointer after
8612 calling value_struct_elt, which was accidentally removed during the
8617 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8619 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8621 * value.h (value_of_register): Update.
8625 * configure.in: Detect declaration for canonicalize_file_name.
8626 * utils.c (canonicalize_file_name): Declare, if needed.
8627 (gdb_realpath): Prefer realpath if available and usable.
8628 * config.in, configure: Rebuild.
8632 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8633 a constant array bound.
8635 * MAINTAINERS: Add myself to write-after-approval.
8639 * symfile.c (syms_from_objfile): Return immediately if no syms.
8640 (symbol_file_add): Return immediately if no syms.
8641 (find_sym_fns): Return immediately if no syms.
8645 * gdbserver/remote-util.c (remote_open): Print remote-side's
8646 IP address when remote debugging over the network.
8650 * config/sparc/fbsd.mh: Fix copyright.
8651 * config/sparc/fbsd.mt: Likewise.
8655 * MAINTAINERS: Fix typo in name of gdb warnings option.
8656 (x86-64): Fix formating so that this can be parsed by awk.
8660 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8661 * defs.h: Include "gdb/signals.h".
8662 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8666 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8667 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8673 * mips-tdep.c (ST0_FR): Define.
8674 (mips2_fp_compat): New function, temporarily disabled.
8675 (mips_read_fp_register_single): New function.
8676 (mips_read_fp_register_double): New function.
8677 (mips_print_register): Use them.
8678 (do_fp_register_row): Likewise.
8682 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8687 * stabsread.c (read_member_functions): Fix is_stub test for
8688 static member functions, improve comment.
8692 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8693 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8694 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8695 commands that set boolean values.
8696 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8697 (arm_rdi_resume): Always initialize PC.
8698 (arm_rdi_open): Don't use rslt as a boolean.
8699 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8700 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8701 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8702 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8706 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8707 * configure: Rebuilt.
8711 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8712 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8716 * cli/cli-decode.c (set_cmd_completer): New function.
8717 * command.h (set_cmd_completer): Declare.
8718 * cli/cli-decode.h (set_cmd_completer): Ditto.
8720 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8721 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8722 * win32-nat.c (_initialize_inftarg): Ditto.
8723 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8724 * proc-api.c (_initialize_proc_api): Ditto.
8725 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8726 * source.c (_initialize_source): Ditto.
8727 * exec.c (_initialize_exec): Ditto.
8728 * solib.c (_initialize_solib): Ditto.
8729 * top.c (init_main): Ditto.
8730 * tracepoint.c (_initialize_tracepoint): Ditto.
8731 * symfile.c (_initialize_symfile): Ditto.
8732 * printcmd.c (_initialize_printcmd): Ditto.
8733 * infcmd.c (_initialize_infcmd): Ditto.
8734 * corefile.c (_initialize_core): Ditto.
8738 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8742 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8746 * NEWS: Update headings, 5.2 has branched.
8750 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8751 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8752 (register_addr, REGISTER_RAW_SIZE): Likewise.
8753 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8754 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8758 * MAINTAINERS (x86-64): Add myself.
8759 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8760 changed value_ptr -> struct value *
8764 * configure.host (sparc64-*-freebsd): Add.
8765 * configure.tgt: Likewise.
8766 * config/sparc/fbsd.mh: New file.
8767 * config/sparc/fbsd.mt: Likewise.
8768 * config/sparc/nm-fbsd.h: Likewise.
8769 * config/sparc/tm-fbsd.h: Likewise.
8773 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8774 regformats/reg-s390x.dat.
8778 * utils.c: Add FIXME explaining true/false problem.
8782 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8786 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8790 * gdbserver/linux-s390-low.c: New file.
8791 * regformats/reg-s390.dat: New file.
8792 * regformats/reg-s390x.dat: New file.
8793 * gdbserver/configure.srv: Add S/390.
8794 * gdbserver/Makefile.in: Add S/390.
8795 * configure.tgt: Enable gdbserver for S/390.
8799 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8800 first line of the doc string for "info dos", except at the end of
8801 the sentence, since the short help stops at the first period.
8805 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8809 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8810 comment (dumy -> dummy).
8814 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8818 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8822 * gdbserver/acconfig.h: New file.
8823 * gdbserver/i387-fp.c: New file.
8824 * gdbserver/i387-fp.h: New file.
8825 * gdbserver/linux-x86-64.c: New file.
8826 * regformats/reg-x86-64.dat: New file.
8827 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8828 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8829 * gdbserver/configure.in: Add support for regsets.
8830 * gdbserver/config.in: Regenerate.
8831 * gdbserver/configure: Regenerate.
8832 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8833 * gdbserver/linux-low.h: New file.
8834 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8836 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8837 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8838 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8839 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8840 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8841 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8842 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8843 "i387-fp.h". Add PTRACE_GETREGS and friends.
8844 * gdbserver/regcache.c (supply_register): New function.
8845 (supply_register_by_name): New function.
8846 (collect_register): New function.
8847 (collect_register_by_name): New function.
8851 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8852 (config.status): Add configure.srv dependency.
8853 (server_h): Add config.h dependency.
8857 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8858 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8859 * gdbserver/configure.srv: Change i386-*-linux* to use
8864 * x86-64-tdep.c: Re-indent. Update copyright date.
8869 * x86-64-tdep.c (value.h): Delete.
8870 (gdb_assert.h): Include.
8871 (x86_64_register_convert_to_virtual,
8872 x86_64_register_convert_to_raw ): Add check which lets only
8873 floating-point values to be converted.
8874 (value_push): Delete.
8875 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8876 (i386_gdbarch_init): Number of register_bytes fixed.
8880 * MAINTAINERS: Add x86-64 target.
8884 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8885 * osfsolib.c (solib_map_sections): Ditto.
8886 * irix5-nat.c (solib_map_sections): Ditto.
8887 * corelow.c (gdb_check_format): Ditto.
8888 * symfile.c (symfile_bfd_open): Ditto.
8889 * solib.c (solib_map_sections): Ditto.
8894 * remote.c (_initialize_remote): By default, disable ``e'' and
8895 ``E'' step out-of-range packets.
8899 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8900 m68k_linux_frame_saved_pc.
8901 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8903 (SIGCONTEXT_PC_OFFSET): Remove.
8904 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8905 m68k_linux_sigtramp_saved_pc): New functions.
8906 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8907 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8908 (UCONTEXT_PC_OFFSET): Define.
8909 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8910 non-RT and RT signal trampolines.
8914 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8915 (TARGET_NBPG, STACK_END_ADDR): Delete
8916 (VARIABLES_INSIDE_BLOCK): Delete.
8920 * utils.c (perror_with_name): Make string parameter constant.
8921 (print_sys_errmsg): Ditto.
8923 * defs.h (perror_with_name): Update.
8924 (print_sys_errmsg): Update.
8930 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8934 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8935 if it already matches the current architecture from the exec file.
8936 Include arch-utils.h for gdbarch_info_init prototype.
8937 * Makefile.in (rs6000-nat.o): Update dependencies.
8941 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8942 list of exported variables.
8946 * gdbserver/configure.srv: New file.
8947 * gdbserver/configure.in: Use configure.srv instead
8948 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8950 * gdbserver/configure: Regenerated.
8951 * gdbserver/terminal.h: New file.
8952 * gdbserver/Makefile.in: Update for configure changes. Remove
8953 more unneeded include paths.
8957 From wiz at danbala:
8958 * config/sparc/tm-sp64.h: Fix grammar and typos.
8963 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8964 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8965 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8966 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8967 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8968 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8969 * s390-tdep.c: Ditto.
8970 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8971 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8972 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8973 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8974 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8975 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8976 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8977 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8978 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8979 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8984 * lin-thread.c: Delete file.
8985 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8986 to gdb_proc_service.h.
8987 * configure: Re-generate.
8989 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8990 * serial.c (serial_open): Delete check for "ocd".
8993 * Makefile.in (linux-thread.o): Delete target.
8994 * linux-thread.c: Delete file.
8996 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8997 renamed SH files to be consistent.
8999 * symtab.c (sort_search_symbols): Use xfree.
9003 * arm-linux-tdep.c (arm_linux_init_abi): Register
9004 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9005 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9006 definition with undef, since we don't want the sysvr4 definition.
9007 (SKIP_TRAMPOLINE_CODE): Likewise.
9013 * configure.in: (AC_CHECK_FUNCS) Added test for
9014 canonicalize_file_name Regenerated.
9015 * config.in, configure: Regenerated.
9016 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9017 defined use canonicalize_file_name.
9021 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9025 * README: Remove references to cygnus.com.
9026 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9027 dot com'' form. Remove references to cygnus.com and sourceware.
9032 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9033 1003.1-2001 no longer allows "head -1".
9034 * gdb/Makefile.in (version.c): Likewise.
9035 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9036 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9037 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9041 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9042 * command.h (cmd_cfunc_eq): Declare.
9043 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9045 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9046 ``struct cmd_list_element *''.
9047 * cli/cli-cmds.c (is_complete_command): Update. Use
9049 * top.c (execute_command): Pass the command to
9050 is_complete_command.
9051 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9056 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9057 architecture defines.
9058 * s390-tdep.c (s390_gdbarch_init): Likewise.
9062 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9063 (arm_linux_push_arguments): Likewise.
9064 (arm_linux_init_abi): Register them. Also register linux-specific
9066 (find_minsym_and_objfile): Use strcmp, not STREQ.
9067 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9068 (arm_linux_call_dummy_words): Delete declaration.
9069 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9070 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9072 (LOWEST_PC): Delete.
9076 * maint.c (print_section_info): Do not prepend `0x' to filepos
9077 output, it will be handled by local_hex_string_custom.
9081 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9082 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9083 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9087 Indicate that the bcache functions don't change the strings
9089 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9090 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9094 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9098 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9099 find the complete path to a loaded DLL.
9103 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9104 that marks the end of the range of a function, enter a line number
9105 entry that has a line number of zero and a PC offset that matches
9106 the end of the function. This starts a range of PC's for which no
9107 line number information is known.
9108 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9109 PC's for which no line number info is found (line number is zero)
9110 then we didn't find any valid line information.
9111 * symtab.h: Document use of zero line number entry.
9115 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9116 (have_ptrace_getvrregs): Define for run time checks.
9117 (gdb_vrregset_t): New type for Altivec register handling.
9118 (fetch_register, store_register): Fetch/store altivec register
9120 (fetch_altivec_register, store_altivec_register): New functions.
9121 (supply_vrregset, fill_vrregset): New functions.
9122 (fetch_altivec_registers, store_altivec_registers): New functions.
9123 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9128 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9132 * Makefile.in (armnbsd-nat.o): Update dependencies.
9133 * armnbsd-nat.c (supply_gregset): New function. Common code to
9134 supply the integer register set.
9135 (supply_fparegset): New function. Similar for FPA registers.
9136 (fetch_regs, fetch_fp_regs): Use them.
9137 (fetch_core_registers): Likewise.
9138 (fetch_elfcore_registers): New function.
9139 (arm_netbsd_elfcore_fns): New core-file type specification.
9140 (_initialize_arm_netbsd_nat): Register it.
9144 * armnbsd-nat.c: Include gdbcore.h.
9145 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9146 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9147 'void' to declaration, to shut up ARI.
9148 (fetch_core_registers): Make static. Rewrite using supply_register.
9149 (arm_netbsd_core_fns): New core-file type specification.
9150 (_initialize_arm_netbsd_nat): New function.
9154 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9159 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9164 * jv-exp.y (parse_number): Change type of implicit longs
9165 to builtin_type_uint64.
9169 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9170 to be an integer instead of a `union wait'.
9174 * mips-linux-nat.c: Call the operating system GNU/Linux.
9175 * mips-linux-tdep.c: Likewise.
9176 * mips-tdep.c: Likewise.
9181 * jv-exp.y (parse_number): Handle 64-bit integers.
9185 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9186 AC_STDC_HEADERS to AC_HEADER_STDC.
9187 * gdbserver/configure: Regenerated.
9191 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9193 * sparc-tdep.c (get_longjmp_target): Likewise.
9197 * News: Add news about ARM and Multi-arch. Mention the new target
9202 * stabsread.c (error_type_complaint): Improve error message.
9206 * gdbserver/README: Update documentation.
9207 * gdbserver/configure.in: Update configury to match documentation.
9208 * gdbserver/Makefile.in: Likewise.
9209 * gdbserver/configure: Regenerated.
9210 * gdbserver/aclocal.m4: New file, generated by aclocal.
9211 * gdbserver/config.in: New file, generated by autoheader.
9215 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9220 * arm-tdep.h (enum arm_float_model): New enum.
9221 (struct gdbarch_tdep): Add fp_model.
9222 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9223 up floating-point conversions until we know the floating-point model
9224 in use by the inferior. Don't complain about being unable to
9225 determine the ABI of the inferior when we don't have one.
9226 (arm_extract_return_value): Support different floating-point models.
9227 (arm_store_return_value): Likewise.
9228 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9230 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9234 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9235 of ``current_gdbarch''.
9239 * armnbsd-nat.c : ANSIfy all function declarations.
9240 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9241 (fetch_inferior_registers): Re-implement in terms of above.
9242 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9243 (store_inferior_registers): Re-implement in terms of above.
9247 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9249 * arm-linux-tdep.c: Likewise.
9250 * config/arm/tm-linux.h: Likewise.
9254 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9255 * config/arm/nbsd.mt (TM_FILE): Delete.
9256 * config/arm/tm-nbsd.h: Delete.
9260 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9261 Initialize CALL_DUMMY_LENGTH.
9265 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9267 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9268 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9269 defines one thing and that is incorrect for this port.
9270 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9274 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9278 * win32-nat.c (display_selector): New function. Displays information
9279 about the information returned by GetThreadSelectorEntry API function.
9280 (display_selectors): New function. Displays the infomation of
9281 the selector given as argument, or of CS, DS ans FS selectors
9282 if no argument is given.
9283 ( _initialize_inftarg): Add "w32" as info prefix command.
9284 Add "info w32 selector" as command calling display_selectors.
9288 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9289 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9294 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9298 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9299 (arm_fix_call_dummy): Call it.
9300 (arm_call_dummy_breakpoint_offset): Delete.
9301 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9302 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9306 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9307 Default to func_frame_chain_valid.
9308 * gdbarch.h, gdbarch.c: Re-generate.
9309 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9313 * ppc-linux-nat.c: Update copyright.
9314 (fetch_register, store_register): Add tid parameter, don't compute
9316 (fetch_ppc_registers, store_ppc_registers): Add tid
9317 parameter. Pass it along to callees.
9318 (fetch_inferior_registers, store_inferior_registers): Compute tid
9319 here, and pass it to calleed functions.
9320 (fill_gregset, supply_fpregset): Clean up formatting.
9324 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9325 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9329 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9330 * gdbarch.c gdbarch.h: Regenerate.
9331 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9333 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9334 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9335 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9337 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9338 * arm-tdep.c (arm_get_longjmp_target): New function.
9339 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9340 this to a positive value register arm_get_longjmp_target as the
9342 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9343 (arm_linux_init_abi): Set up longjmp description in tdep.
9344 * armnbsd-nat.c (get_longjmp_target): Delete.
9345 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9346 description in tdep.
9347 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9348 (get_longjmp_target): Delete declaration.
9349 (GET_LONGJMP_TARGET): Delete.
9350 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9351 (GET_LONGJMP_TARGET): Delete.
9356 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9357 of ``current_gdbarch''.
9361 * cli/cli-cmds.c (compare_strings): New function.
9362 (complete_command): Only print each unique item once.
9363 * completer.h (complete_line): Declare.
9364 * completer.c (complete_line): New function.
9365 (line_completion_function): Use it.
9369 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9370 * gdbarch.h, gdbarch.c: Re-generate.
9374 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9379 * valops.c (value_arg_coerce): Don't take the address of a reference
9380 to convert an argument to a reference.
9384 * win32-nat.c (get_image_name): New function.
9385 (handle_load_dll): Use get_image_name function.
9386 (get_child_debug_event): Avoid registering debug events until possibly
9387 execed process is started.
9388 (child_create_inferior): Allow invocation via shell so that command
9389 line redirection, etc. works ok.
9390 (_initialize_inftarg): Add new command: "set shell" to control whether
9391 a shell is used to start a process.
9395 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9396 instead of find_register_by_number.
9397 (cannot_store_register): Likewise.
9401 * dwarf2read.c: Replace fprintf (stderr, ...) by
9402 fprintf_unfiltered (gdb_stderr, ...).
9406 * gdbserver/gdbserver.1: Document --attach.
9410 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9412 * arm-tdep.c (arm_default_arm_le_breakpoint)
9413 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9414 (arm_default_thumb_be_breakpoint): New. Initialize them from
9415 traditional breakpoint defines.
9416 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9417 (arm_gdbarch_init): Initialize new breakpoint variables.
9418 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9419 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9420 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9421 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9423 (arm_netbsd_init_abi_common): ... here; new function.
9424 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9425 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9426 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9427 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9431 * arm-tdep.h (enum arm_abi): New enum.
9432 (struct gdbarch_tdep): New structure.
9433 (LOWEST_PC): Provide a default.
9434 (arm_gdbarch_register_os_abi): Declare new function.
9435 * arm-tdep.c (arm_abi_names): New array.
9436 (process_note_abi_tag_sections): New function.
9437 (get_elfosabi): New function.
9438 (arm_gdbarch_register_os_abi): New function.
9439 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9440 support for that ABI has been built in, then call the appropriate
9441 configuration routine. Use gdbarch_num_regs() to get the number
9443 (arm_dump_tdep): New function.
9444 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9445 place-holder functions.
9446 (_initialize_arm_tdep): Register them.
9447 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9449 * armnbsd-tdep.c: New file.
9450 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9451 * config/arm/nbsd.mt (TDEPFILES): Add it.
9452 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9454 * armnbsd-nat.c: Include regcache.h.
9455 * Makefile.in (armnbsd-nat.o): Update dependency list.
9457 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9461 * gdbserver/Makefile.in: Fix typos in target rules.
9465 Fix part of PR gdb/267.
9466 * linespec.c (find_methods): Handle constructors specially for now.
9470 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9472 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9473 standard_coerce_float_to_double().
9477 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9482 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9483 find_variant_by_name, because it confuses the multiarch
9484 framework. Return NULL if there isn't an architecture with the
9485 user supplied name, instead of forcing a different one without
9486 recording the change with the multiarch machinery.
9487 (find_variant_by_name): Delete.
9491 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9492 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9496 * stack.c (print_frame_info_base): When calling
9497 print_frame_info_listing_hook, set current_source_symtab.
9501 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9502 and remove unused $(INCLUDE_DIR).
9503 Add regcache.c to OBS.
9504 Add generated register protocol files to clean target.
9505 Update dependencies for new objects, obsolete old target code.
9507 * gdbserver/linux-low.c: Remove all platform-specific code to
9508 new files. Remove various dead code. Update to use regcache
9510 * gdbserver/remote-utils.c (fromhex): Add return statement
9512 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9514 (input_interrupt): Add integer parameter to match prototype
9515 of a signal handler.
9516 (outreg): Use register_data ().
9517 (prepare_resume_reply): Use gdbserver_expedite_regs.
9518 * gdbserver/server.c (main): Dynamically allocate own_buf because
9519 PBUFSIZ is no longer constant. Use registers_to_string () and
9520 registers_from_string ().
9521 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9522 for error (), fatal (), and warning (). Update definition of
9523 PBUFSIZ to use regcache functionality. Add include guard.
9524 * gdbserver/utils.c (fatal): Add missing ``const''.
9525 (warning): New function.
9527 * regformats/regdat.sh: Include "regcache.h" in generated files.
9528 Provide init_registers () function.
9529 * regformats/regdef.h: Add prototype for set_register_cache ().
9532 * gdbserver/linux-arm-low.c: New file.
9533 * gdbserver/linux-i386-low.c: New file.
9534 * gdbserver/linux-ia64-low.c: New file.
9535 * gdbserver/linux-m68k-low.c: New file.
9536 * gdbserver/linux-mips-low.c: New file.
9537 * gdbserver/linux-ppc-low.c: New file.
9538 * gdbserver/linux-sh-low.c: New file.
9540 * gdbserver/regcache.c: New file.
9541 * gdbserver/regcache.h: New file.
9543 * gdbserver/low-linux.c: Removed obsolete file.
9547 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9548 * config/i386/linux.mt: Likewise.
9549 * config/ia64/linux.mt: Likewise.
9550 * config/m68k/linux.mh: Likewise.
9551 * config/powerpc/linux.mh: Likewise.
9552 * config/mips/linux.mt: Likewise.
9554 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9556 * config/i386/i386lynx.mh: Mark gdbserver variables
9557 as (currently) obsolete for this target.
9558 * config/i386/nbsd.mt: Likewise.
9559 * config/i386/nbsdelf.mt: Likewise.
9560 * config/m32r/m32r.mt: Likewise.
9561 * config/m68k/m68klynx.mh: Likewise.
9562 * config/m68k/nbsd.mt: Likewise.
9563 * config/m68k/sun3os4.mh: Likewise.
9564 * config/mips/vr5000.mt: Likewise.
9565 * config/ns32k/nbsd.mt: Likewise.
9566 * config/pa/hppabsd.mh: Likewise.
9567 * config/pa/hppaosf.mh: Likewise.
9568 * config/powerpc/nbsd.mt: Likewise.
9569 * config/rs6000/rs6000lynx.mh: Likewise.
9570 * config/s390/s390.mt: Likewise.
9571 * config/s390/s390x.mt: Likewise.
9572 * config/sparc/sparclynx.mh: Likewise.
9573 * config/sparc/sun4os4.mh: Likewise.
9574 * config/i386/x86-64linux.mt: Likewise.
9575 * config/sparc/linux.mh: Likewise.
9579 * configure.tgt: Configure gdbserver only for known working
9580 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9581 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9582 SUBDIRS if it is configured. Update comment for ${nativefile}.
9583 * configure: Regenerated.
9587 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9589 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9590 (default_gcore_mach): Just return 0, work around a problem in bfd.
9591 (default_gcore_target): OK to return NULL if exec_bfd is null.
9592 (make_mem_sec): Use a cast, avoid a warning.
9594 * procfs.c (find_memory_regions_callback): Use a cast instead of
9595 calling host_pointer_to_address (which complains if
9596 sizeof (host pointer) != sizeof (target pointer)).
9597 (procfs_make_note_section): Avoid overflow in psargs string.
9599 * procfs.c (procfs_make_note_section): Make the default
9600 implementation return an error.
9604 * procfs.c (procfs_make_note_section): Provide a default definition
9605 (for alpha-dec-osf4.0f). Fix typos.
9609 * linux-proc.c: Add include of regcache.h.
9610 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9615 * memattr.c (create_mem_region): Disallow useless empty region.
9616 Regions are half-open intervals, so allow [A..B) [B..C) as
9621 * defs.h: Kill CONST_PTR.
9622 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9623 * c-lang.c (c_builtin_types): Likewise.
9624 * ch-lang.c (ch_builtin_types): Likewise.
9625 * f-lang.c (f_builtin_types): Likewise.
9626 * language.c (unknown_builtin_types): Likewise.
9627 * m2-lang.c (m2_builtin_types): Likewise.
9628 * p-lang.c (pascal_builtin_types): Likewise.
9629 * scm-lang.c (c_builtin_types): Likewise.
9633 * arm-tdep.h (arm_get_next_pc): Add declaration.
9637 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9638 with other related struct-returning functions.
9639 (arm_extract_struct_value_address): New function.
9640 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9641 initialize float_format, double_format and long_double_format as
9642 appropriate to the endianness of the target.
9643 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9644 (arm_use_struct_convention): Delete declaration.
9645 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9649 * defs.h (core_addr_to_string_nz): New function.
9653 Apply missing bits of 2002-01-15 patch.
9654 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9655 (fill_fpregset): Use i387_fill_fsave.
9659 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9660 (core_addr_to_string_nz): New function.
9664 * arm-linux-nat.c: Really include arm-tdep.h.
9665 * config/arm/tm-linux.h (struct type, struct value): Declare.
9669 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9670 (gcore section): Ifdef for Solaris and Unixware only.
9671 (procfs_do_thread_registers): Unixware needs one lwpstatus
9672 per thread (not one prstatus or pstatus).
9673 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9674 not over all gdb threads. For unixware, call elfcore_write_pstatus
9675 once before iterating over threads.
9679 * arm-tdep.h: New file.
9680 * arm-tdep.c: Include arm-tdep.h.
9681 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9682 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9683 (arm_print_float_info, arm_register_type, convert_to_extended)
9684 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9685 (arm_extract_return_value, arm_register_name): Make static.
9686 (arm_software_single_step): Similarly. Fix types in declaration.
9687 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9688 (arm_store_return_value, arm_store_struct_return): New functions.
9689 (arm_gdbarch_init): Register the above functions. Also register
9690 call_dummy_start_offset, sizeof_call_dummy_words,
9691 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9692 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9693 max_register_virtual_size, register_size. Set up
9694 prologue_cache.saved_regs here, rather than ...
9695 (_initialize_arm_tdep): ... here.
9696 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9698 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9699 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9700 (arm_print_float_info, arm_register_type, convert_to_extended)
9701 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9702 (arm_extract_return_value, arm_register_name): Delete declarations.
9703 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9704 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9705 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9706 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9707 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9708 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9709 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9710 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9711 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9712 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9713 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9714 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9716 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9717 * remote-rdi.c remote-rdp.c: Likewise.
9718 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9719 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9720 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9723 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9724 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9725 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9726 from non-ARM_ prefixed definitions.
9727 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9729 * remote-rdi.c remote-rdp.c: Likewise.
9730 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9734 * arm-tdep.c (arm_frameless_function_invocation)
9735 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9736 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9737 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9738 (arm_pop_frame, arm_get_next_pc): Make static.
9739 (arm_gdbarch_init): Register above in gdbarch structure.
9740 (arm_read_fp): Renamed from arm_target_read_fp.
9741 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9742 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9743 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9744 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9745 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9746 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9747 (arm_pc_is_thumb_dummy): Delete declarations.
9748 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9749 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9750 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9751 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9755 * symtab.c (compare_search_syms): New function.
9756 (sort_search_symbols): New function.
9757 (search_symbols): Sort symbols after searching rather than
9762 * NEWS: Linux -> GNU/Linux.
9766 * gdbarch.sh: For for level one methods, disallow a definition
9767 when partially multi-arched. Add comments explaining rationale.
9768 * gdbarch.h: Re-generate.
9772 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9777 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9779 * gdbarch.c: Re-generate.
9783 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9784 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9789 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9791 (PUSH_ARGUMENTS): Switch to using predefault.
9792 * gdbarch.c: Regenerate.
9796 * valops.c (PUSH_ARGUMENTS): Delete definition.
9797 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9798 partial. Default to default_push_arguments.
9799 * gdbarch.h, gdbarch.c: Regenerate.
9803 * defs.h (throw_exception): Rename return_to_top_level. Update
9805 * utils.c (error_stream, internal_verror, quit): Ditto.
9806 * top.c (throw_exception, catcher): Ditto.
9807 * sparclet-rom.c (sparclet_load): Ditto.
9808 * remote.c (interrupt_query, minitelnet): Ditto.
9809 * remote-sds.c (interrupt_query): Ditto.
9810 * remote-mips.c (mips_error, mips_kill): Ditto.
9811 * ocd.c (interrupt_query): Ditto.
9812 * monitor.c (monitor_interrupt_query): Ditto.
9813 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9814 * target.h: Update comment.
9816 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9820 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9821 default_double_format.
9822 * gdbarch.h, gdbarch.c: Re-generate.
9823 * findvar.c (floatformat_unknown): Delete variable definition.
9824 * doublest.h (floatformat_unknown): Delete variable declaration.
9828 * stabsread.c (read_type): Add code to parse Sun's syntax for
9829 prototyped function types.
9833 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9834 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9838 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9839 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9840 now _initialize_xcoffsolib gets called again and overrides the
9841 commands from solib.c in a native configuration.
9845 * doublest.c (store_typed_floating): Don't try to return a value.
9850 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9851 is prototyped and has no arguments, print its argument list as
9856 * MAINTAINERS (write-after-approval): Add myself.
9857 (paper-trail): I've escaped!
9861 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9863 (_initialize_check_for_gdb_ini): Ditto.
9867 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9868 xaprintf -> xasprintf.
9872 * win32-nat.c: Remove use of printf and sprintf functions.
9876 * arm-tdep.c (arm_frame_chain_valid): Make static.
9877 (arm_push_arguments): Likewise.
9878 (arm_gdbarch_init): New function.
9879 (_initialize_arm_tdep): Call it.
9880 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9881 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9882 (FRAME_CHAIN_VALID): Delete.
9883 (arm_frame_chain_valid): Delete declaration.
9884 (PUSH_ARGUMENTS): Delete.
9885 (arm_push_arguments): Delete declaration.
9886 (CALL_DUMMY_P): Delete.
9891 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9892 on builtin float types.
9896 * utils.c: Include <curses.h> before "bfd.h".
9897 * tui/tui-hooks.c: Likewise.
9898 * tui/tui.c: Likewise.
9899 * tui/tuiCommand.c: Likewise.
9900 * tui/tuiData.c: Likewise.
9901 * tui/tuiDataWin.c: Likewise.
9902 * tui/tuiDisassem.c: Likewise.
9903 * tui/tuiGeneralWin.c: Likewise.
9904 * tui/tuiIO.c: Likewise.
9905 * tui/tuiLayout.c: Likewise.
9906 * tui/tuiRegs.c: Likewise.
9907 * tui/tuiSource.c: Likewise.
9908 * tui/tuiSourceWin.c: Likewise.
9909 * tui/tuiStack.c: Likewise.
9910 * tui/tuiWin.c: Likewise.
9914 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9915 to include space for pseudoregs as well. Update loops accordingly.
9916 (sh_fp_frame_init_saved_regs): Ditto.
9917 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9921 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9922 Add Richard Earnshaw to Arm maintainers.
9926 * defs.h (warning_begin): Delete declaration.
9928 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9933 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9934 Logic bug, remove misplaced else.
9938 * fork-inferior.c (fork_inferior): Add '!' to the list of
9939 characters that need to be quoted when building a string for the
9940 shell. Quote '!' specifically with a backslash, since CSH chokes
9941 when trying to evaluate "str!str".
9945 * rdi-share/host.h: Only provide a typedef for bool if it is not
9950 * breakpoint.h (enum bptype): Add new overlay event bp type.
9951 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9953 * breakpoint.c (create_internal_breakpoint): New function.
9954 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9955 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9956 (create_thread_event_breakpoint): Ditto.
9957 (create_solib_event_breakpoint): Ditto.
9958 (create_overlay_event_breakpoint): New function.
9959 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9960 (update_breakpoints_after_exec): Delete and re-initialize
9961 overlay event breakpoints after an exec. Add FIXME comment
9962 about longjmp breakpoint.
9963 (print_it_typical): Ignore overlay event breakpoints.
9964 (print_one_breakpoint): Ditto.
9966 (bpstat_what): Do not stop for overlay event breakpoints.
9967 (delete_breakpoint): Don't delete overlay event breakpoints.
9968 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9969 (breakpoint_re_set): Re-create overlay event breakpoint.
9971 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9972 (overlay_manual_command): Disable overlay breakpoints.
9973 (overlay_off_command): Disable overlay breakpoints.
9977 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9978 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9979 to here from config/tm-arm.h.
9980 (coff_sym_is_thumb): Make static.
9981 (arm_elf_make_msymbol_special): New function.
9982 (arm_coff_make_msymbol_special): New function.
9983 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9984 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9985 (coff_sym_is_thumb): Delete declaration.
9986 (arm_elf_make_msymbol_special): Declare.
9987 (arm_coff_make_msymbol_special): Declare.
9988 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9989 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9993 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9997 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9998 * gdbarch.c gdbarch.h: Regenerate.
9999 * arch-utils.c (default_print_float_info): New function.
10000 * arch-utils.h (default_print_float_info): Prototype it.
10001 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10002 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10003 (PRINT_FLOAT_INFO): Document it.
10005 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10006 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10007 (PRINT_FLOAT_INFO): Define.
10011 * win32-nat.c (_initialize_check_for_gdb_ini):
10012 Add typecast to sprintf argument to suppress a warning.
10016 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10017 to allow easier handling of pass state.
10018 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10019 that gives exception name and address.
10020 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10021 and set last_sig value to ourstatus->value.sig. Some missing
10023 (child_continue): Correctly report continue_status.
10024 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10025 TARGET_SIGNAL_0 (new default value).
10026 (child_resume): consider sig argument passed to decide if
10027 the exception should be passed to debuggee or not.
10031 * regcache.c (fetch_register): Call target_fetch_register
10032 only if we don't call FETCH_PSEUDO_REGISTER.
10033 (store_register): Call target_store_register only if we
10034 don't call STORE_PSEUDO_REGISTER.
10038 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10039 ELF_MAKE_MSYMBOL_SPECIAL.
10040 * gdbarch.c, gdbarch.h: Regenerate.
10041 * arch-utils.c (default_make_msymbol_special): New function.
10042 * arch-utils.h (default_make_msymbol_special): Export.
10043 * elfread.c (elf_symtab_read): Compile use of
10044 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10046 * coffread.c (coff_symtab_read): Ditto, for
10047 COFF_MAKE_MSYMBOL_SPECIAL.
10051 * solib-svr4.c (svr4_truncate_ptr): New function.
10052 (svr4_relocate_section_addresses): Do the address arithmetic with
10053 the appropriate truncation for target addresses, even when
10054 CORE_ADDR is larger than a target address.
10058 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10063 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10068 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10072 * gdbserver/linux-low.c: Remove unused include files.
10076 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10077 (read_inferior_memory): Use it.
10078 (write_inferior_memory): Likewise.
10082 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10083 grubbing through sys_errlist.
10087 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10090 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10094 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10095 (do_sfunc, set_cmd_sfunc): New functions.
10097 * command.h (struct cmd_list_element): Add field func.
10098 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10099 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10100 * cli/cli-decode.h: Ditto.
10102 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10103 (help_all, help_cmd_list): Ditto.
10104 (find_cmd, complete_on_cmdlist): Ditto.
10105 * top.c (execute_command): Ditto.
10107 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10110 * infcmd.c (notice_args_read): Fix function signature.
10112 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10113 * cli/cli-decode.c (add_set_cmd): Ditto.
10114 * utils.c (initialize_utils): Ditto.
10115 * maint.c (_initialize_maint_cmds): Ditto.
10116 * infrun.c (_initialize_infrun): Ditto.
10117 * demangle.c (_initialize_demangler): Ditto.
10118 * remote.c (add_packet_config_cmd): Ditto.
10119 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10120 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10121 * proc-api.c (_initialize_proc_api): Ditto.
10122 * kod.c (_initialize_kod): Ditto.
10123 * valprint.c (_initialize_valprint): Ditto.
10124 * top.c (init_main): Ditto.
10125 * infcmd.c (_initialize_infcmd): Ditto.
10126 * corefile.c (_initialize_core): Ditto.
10127 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10128 * arch-utils.c (initialize_current_architecture): Ditto.
10129 (_initialize_gdbarch_utils): Ditto.
10130 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10132 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10133 * wince.c (_initialize_inftarg): Ditto.
10134 * symfile.c (_initialize_symfile): Ditto.
10135 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10136 * language.c (_initialize_language): Ditto.
10137 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10141 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10145 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10146 Add rules for building the register data files.
10150 * regformats/regdat.sh: Add braces to the definition of
10151 expedite_regs_${arch}.
10155 * regformats/regdef.h (struct reg): Add comment describing the
10156 requirements for offset and size fields.
10160 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10161 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10165 * gdbarch.sh (copyright): Update years in generated header.
10166 (SMASH_TEXT_ADDRESS): Add rule.
10167 * gdbarch.h, gdbarch.c: Re-generate.
10168 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10169 * dbxread.c: Likewise.
10170 * dwarfread.c: Likewise.
10171 * elfread.c: Likewise.
10172 * somread.c: Likewise.
10174 * arm-tdep.c (arm_smash_text_address): New function.
10175 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10179 Add support for hardware watchpoints on win32 native.
10180 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10181 CONTEXT_DEBUG_REGISTERS.
10182 (dr variable): New variable. Static array containing a local copy
10183 of debug registers.
10184 (debug_registers_changed): New variable. Reflects when debug registers
10185 are changed and need to be written to inferior.
10186 (debug_registers_used): New variable. Reflects when any debug register
10187 was set, used when new threads are created.
10188 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10190 (thread_rec): Set dr array if id is the thread of current_event .
10191 (child_continue, child_resume): Change the debug registers for all
10192 threads if debug_registers_changed.
10193 (child_add_thread): Change the debug registers if debug_registers_used.
10194 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10195 Link nm.h to new nm-cygwin.h file.
10196 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10197 of hardware registers.
10201 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10202 Restore behavour broken by 2002-01-20 Andrew Cagney
10207 * c-valprint.c (c_val_print): Pass a proper valaddr to
10208 cp_print_class_method.
10209 * valops.c (search_struct_method): If there is only one method
10210 and args is NULL, return that method.
10214 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10215 accessing tag_name directly.
10219 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10220 of accessing tag_name directly.
10225 * gdbtypes.c (replace_type): New function.
10226 * gdbtypes.h (replace_type): Add prototype.
10227 * stabsread.c (read_type): Use replace_type.
10231 * Makefile.in (memattr.o): Add missing dependencies rule.
10235 * breakpoint.c (break_at_finish_command): Really export.
10236 (break_at_finish_at_depth_command): Ditto.
10237 (tbreak_at_finish_command): Ditto.
10238 * hppa-tdep.c: Include completer.h.
10239 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10240 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10244 * utils.c (do_write): New function.
10245 (error_stream): Rewrite combining the code from error_begin and
10247 (verror): Rewrite using error_stream.
10248 (error_begin): Delete function.
10252 * utils.c (error_begin): Make static.
10253 * defs.h (error_begin): Delete declaration.
10255 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10256 (decode_line_1): Use cplusplus_error instead of error_begin,
10257 cplusplus_hint and return_to_top_level.
10258 * coffread.c (coff_symfile_read): Use error instead of error_begin
10259 and return_to_top_level.
10260 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10264 * language.h (type_error, range_error): Make string parameter
10266 * language.c (warning_pre_print): Delete extern declaration.
10267 * dwarfread.c (warning_pre_print): Ditto.
10268 * language.c (type_error, range_error): Rewrite to use verror and
10269 vwarning instead of warning_begin.
10273 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10274 (set_ignore_count): Move misplaced comment back where it belongs.
10278 * command.h (NO_FUNCTION): Delete macro.
10279 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10280 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10281 * tracepoint.c (_initialize_tracepoint): Ditto.
10282 * cli/cli-decode.c (add_set_cmd): Ditto.
10283 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10287 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10288 Update ``this'' pointer when calling virtual functions.
10292 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10293 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10297 * regformats/reg-arm.dat: New file.
10298 * regformats/reg-i386.dat: New file.
10299 * regformats/reg-ia64.dat: New file.
10300 * regformats/reg-m68k.dat: New file.
10301 * regformats/reg-mips.dat: New file.
10302 * regformats/reg-ppc.dat: New file.
10303 * regformats/reg-sh.dat: New file.
10304 * regformats/regdef.h: New file.
10305 * regformats/regdat.sh: New file.
10309 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10310 (arm_frame_args_address, arm_frame_locals_address): New functions.
10311 (arm_frame_num_args): New function.
10312 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10313 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10314 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10318 * breakpoint.c (break_at_finish_command): Export.
10319 (break_at_finish_at_depth_command): Export.
10320 (tbreak_at_finish_command): Export.
10321 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10322 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10323 "tbreak" commands, which are HPPA specific.
10325 * printcmd.c (disassemble_command): Remove an ancient
10326 artifact of an old merge.
10328 * symfile.h (enum overlay_debugging_state):
10329 Define enum constant values for overlay mode.
10330 * symfile.c (overlay_debugging): Use enums instead of literals.
10331 (overlay_is_mapped, overlay_auto_command,
10332 overlay_manual_command): Ditto.
10334 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10335 breakpoint_here_p, breakpoint_inserted_here_p,
10336 breakpoint_thread_match, bpstat_stop_status,
10337 describe_other_breakpoints, check_duplicates, clear_command):
10338 Coding standard fixes.
10340 * target.c (target_xfer_memory): Add spaces, coding standard.
10341 (do_xfer_memory): Add missing line to trust-readonly
10342 code: check bfd SEC_READONLY flag for section.
10346 * PROBLEMS: Fix typo, 5.1->5.1.1.
10350 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10351 data symbols, since we search based on textlow and texthigh.
10352 (find_pc_sect_symtab): Likewise.
10356 * defs.h (vwarning): Declare.
10357 * utils.c (vwarning): New function.
10358 (warning): Call vwarning.
10359 (warning_begin): Delete function.
10361 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10362 the warning message.
10363 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10368 * NEWS: Mention "set trust-readonly-sections" command.
10369 Mention generate-core-file command.
10373 * target.c: New command, "set trust-readonly-sections on".
10374 (do_xfer_memory): Honor the suggestion to trust readonly sections
10375 by reading them from the object file instead of from the target.
10376 (initialize_targets): Register command "set trust-readonly-sections".
10380 * parse.c (target_map_name_to_register): Simplify, search regs and
10381 pseudo-regs using a single loop.
10385 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10389 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10390 * config/i386/i386v42mp.mh: Add i387-nat.o .
10391 * i386v4-nat.c: Include i387-nat.h.
10392 (supply_fpregset): Use i387_supply_fsave.
10393 (fill_fpregset): Use i387_fill_fsave.
10397 * arm-tdep.c (arm_call_dummy_words): Define.
10398 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10399 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10400 (CALL_DUMMY_WORDS): Define.
10401 (arm_call_dummy_words): Declare.
10402 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10403 (arm_linux_call_dummy_words): Declare.
10407 * m68klinux-nat.c: Fix last change to use regcache_collect
10408 instead of referencing registers[] directly.
10412 * parse.c (target_map_name_to_register): Delete code wrapped in
10413 #ifdef REGISTER_NAME_ALIAS_HOOK.
10417 * regcache.c (legacy_read_register_gen): Need to be able to
10418 read pseudo-register as well as real register.
10419 (legacy_write_register_gen): Ditto.
10423 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10424 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10425 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10426 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10427 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10428 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10429 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10430 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10431 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10432 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10433 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10434 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10435 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10436 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10437 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10438 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10439 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10440 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10441 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10442 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10446 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10447 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10448 (initialize_current_architecture): Update target_byte_order using
10449 information from BFD.
10450 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10451 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10455 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10456 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10458 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10459 #ifdef INVALID_FLOAT.
10460 * infcmd.c (do_registers_info): Ditto.
10461 * values.c (unpack_double): Ditto. Add comment.
10463 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10464 already commented out.
10468 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10469 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10470 registers and add support for PTRACE_GETREGS.
10474 GDB 5.1.1 released from 5.1 branch.
10475 * NEWS: Add 5.1.1 news.
10476 * README: Sync with 5.1 branch.
10480 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10481 stabstring on initial malloc. Reallocing will copy it for us,
10486 * Makefile.in (hpread_h): Delete.
10487 (HFILES_NO_SRCDIR): Remove hpread.h.
10488 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10489 (hpread.o): Update dependencies.
10490 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10492 * hp-psymtab-read.c: Remove file.
10493 * hp-symtab-read.c: Remove file.
10494 * hpread.h: Remove file.
10496 * hpread.c: Merge all contents of hp-psymtab-read.c,
10497 hp-symtab-read.c and hpread.h into this file, as it was prior to
10500 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10501 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10502 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10503 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10507 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10508 fill_gregset): Call gdbarch_tdep() just once, assign result to
10509 variable and use that, instead of calling the function several
10514 * configure.host: Accept sparcv9 as alias for sparc64.
10515 * configure.tgt: Likewise.
10519 * solib-aix5.c (build_so_list_from_mapfile)
10520 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10521 arguments is not reversed.
10522 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10523 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10527 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10528 modified version of obsolete sh_fetch_pseudo_register.
10529 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10530 (sh4_register_read): New function.
10531 (sh_pseudo_register_write): New function. Renamed and modified
10532 version of obsolete sh_store_pseudo_register.
10533 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10534 (sh4_register_write): New function.
10535 (sh_gdbarch_init): Remove setting of gdbarch function
10536 fetch_pseudo_register and store_pseudo_register. Remove setting of
10537 register_convert_to_raw, register_convert_to_virtual,
10538 register_convertible.
10539 (sh_sh4_register_convertible): Delete. No longer needed. All is
10540 taken care by architecture specific functions
10541 register_read/register_write.
10542 (sh_sh4_register_convert_to_virtual): Make static.
10543 (sh_sh4_register_convert_to_raw): Ditto.
10547 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10548 (floatformat_is_nan, floatformat_mantissa): Ditto.
10550 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10551 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10552 builtin_type_ieee_double_little,
10553 builtin_type_ieee_double_littlebyte_bigword,
10554 builtin_type_m68881_ext, builtin_type_i960_ext,
10555 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10556 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10557 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10558 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10562 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10563 parameter. Set frameless flag if it exists and depended of
10564 whether the scanned function is frameless or not.
10565 (xstormy16_skip_prologue): If function is frameless, return
10566 result of xstormy16_scan_prologue().
10567 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10572 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10573 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10574 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10575 sh_sh4_register_byte, sh_sh4_register_raw_size,
10576 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10577 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10578 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10579 sh_store_pseudo_register, sh_do_pseudo_register): Call
10580 gdbarch_tdep() just once, assign result to variable and use that,
10581 instead of calling the function several times.
10585 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10586 macros instead of LAST_FPU_CTRL_REGNUM.
10587 (store_register): Likewise.
10591 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10592 is up-to-date before running the program, not just when a program
10597 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10598 when we have found all instructions we are looking for.
10602 * arm-tdep.c (arm_register_name): New function.
10603 (arm_registers_names): Make static.
10604 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10605 (arm_register_name): Declare.
10606 (REGISTER_NAME): Use it.
10611 Convert arm targets to new FRAME interface.
10612 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10613 (arm_frame_find_save_regs): Delete.
10614 (arm_frame_init_saved_regs): New.
10615 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10616 Allocate extra_info as required. Convert all uses of fsr.regs
10617 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10619 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10620 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10621 (check_prologue_cache, save_prologue_cache): Likewise.
10622 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10623 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10624 (FRAME_FIND_SAVED_REGS): Delete.
10625 (arm_frame_find_saved_regs): Delete prototype.
10626 (arm_frame_init_saved_regs): New prototype.
10627 (FRAME_INIT_SAVED_REGS): Define.
10631 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10636 * infttrace.c: Include <sys/pstat.h>.
10637 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10638 exec file if the ttrace equivalent fails.
10642 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10643 (closeLogFile): Ditto.
10647 * top.c (print_gdb_version): Bump copyright year to 2002.
10651 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10652 Zannoni and Eli Zaretskii.
10656 * buildsym.c: Update copyright years.
10657 * c-typeprint.c: Likewise.
10658 * dwarf2read.c: Likewise.
10659 * f-typeprint.c: Likewise.
10660 * gdbtypes.c: Likewise.
10661 * gdbtypes.h: Likewise.
10662 * hp-symtab-read.c: Likewise.
10663 * hpread.c: Likewise.
10664 * mdebugread.c: Likewise.
10665 * p-typeprint.c: Likewise.
10669 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10670 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10671 byte-order selectable.
10672 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10673 * arch-utils.c: Ditto.
10674 (set_endian): Ditto.
10675 (set_endian_from_file): Ditto.
10676 * gdbserver/low-sim.c (create_inferior): Ditto.
10677 * gdbarch.sh: Ditto.
10678 * gdbarch.h: Re-generate.
10679 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10680 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10681 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10682 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10683 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10684 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10685 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10686 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10688 * config/mips/tm-wince.h: Remove #undef of macro
10689 TARGET_BYTE_ORDER_SELECTABLE.
10690 * config/sh/tm-wince.h: Ditto.
10694 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10695 member function fields. Add accessor macro
10696 TYPE_FN_FIELD_ARTIFICIAL.
10697 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10698 * c-typeprint.c (c_type_print_base): Skip artificial member
10703 * f-typeprint.c: Delete unused function f_type_print_args.
10704 * p-typeprint.c: Delete unused function pascal_type_print_args.
10708 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10709 comment. Add ``artificial'' to ``union field_location''.
10711 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10713 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10714 * mdebugread.c (parse_symbol): Likewise.
10715 * stabsread.c (define_symbol): Likewise.
10716 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10717 initializing TYPE_FIELD_BITPOS to n (obsolete).
10718 (hpread_doc_function_type): Likewise.
10719 * hpread.c (hpread_function_type): Likewise.
10723 * configure.in (host_makefile_frag): Only require a host makefile
10724 fragment when a native build.
10725 * configure: Re-generate.
10729 * doublest.h (floatformat_from_type): Declare.
10730 * doublest.c (floatformat_from_type): New function.
10731 (convert_typed_floating): Use.
10733 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10734 call to function floatformat_from_type.
10736 * gdbarch.sh (IEEE_FLOAT): Delete.
10737 * gdbarch.h, gdbarch.c: Re-generate.
10738 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10739 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10740 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10741 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10742 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10743 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10744 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10745 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10746 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10747 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10748 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10749 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10751 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10752 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10753 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10754 * sh-tdep.c (sh_gdbarch_init): Ditto.
10755 * mips-tdep.c (mips_gdbarch_init): Ditto.
10756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10757 * cris-tdep.c (cris_gdbarch_init): Ditto.
10761 * configure.host, configure.tgt: Support x86-64.
10762 * NEWS: Note new target x86-64.
10764 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10765 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10766 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10767 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10768 x86-64-linux-nat.o): Fix dependencies.
10772 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10773 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10774 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10775 * config/sparc/xm-sun4os4.h: Delete file.
10776 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10780 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10781 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10782 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10783 * config/i386/i386lynx.mh (XM_FILE): Delete.
10784 * config/rs6000/xm-rs6000ly.h: Delete file.
10785 * config/sparc/xm-sparclynx.h: Delete file.
10786 * config/m68k/xm-m68klynx.h: Delete file.
10787 * config/i386/xm-i386lynx.h: Delete file.
10788 * config/xm-lynx.h: Delete file.
10789 * config/djgpp/fnchange.lst: Update.
10793 * alpha-tdep.c (alpha_register_byte): New function.
10794 (alpha_register_raw_size): Ditto.
10795 (alpha_register_virtual_size): Ditto.
10796 (alpha_skip_prologue_internal): Renamed from
10797 alpha_skip_prologue.
10798 (alpha_skip_prologue): New version that calls
10799 alpha_skip_prologue_internal.
10800 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10801 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10802 second argument from alpha_skip_prologue.
10803 (REGISTER_BYTE): Use alpha_register_byte.
10804 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10805 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10806 (FRAMELESS_FUNCTION_INVOCATION): Use
10807 generic_frameless_function_invocation_not.
10808 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10809 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10813 * config/mips/xm-news-mips.h: Delete file.
10814 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10816 * config/m88k/xm-m88k.h: Delete file.
10817 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10818 * config/m88k/xm-delta88v4.h: Ditto.
10819 * config/m88k/xm-delta88.h: Ditto.
10821 * config/alpha/xm-fbsd.h: Delete file.
10822 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10824 * config/sparc/xm-sparc.h: Delete file.
10825 * Makefile.in (xm-sun4os4.h): Delete dependency.
10826 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10827 * config/sparc/xm-sun4os4.h: Ditto.
10828 * config/sparc/xm-linux.h: Ditto.
10830 * config/i386/xm-windows.h: Delete file.
10834 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10835 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10839 * alpha-tdep.c (alpha_call_dummy_words): New.
10840 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10841 (CALL_DUMMY_P): Define.
10842 (CALL_DUMMY_WORDS): Define.
10843 (SIZEOF_CALL_DUMMY_WORDS): Define.
10847 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10848 isn't NULL, which can happen with some gcj-3.x-produced code.
10852 * alpha-tdep.c (alpha_register_virtual_type): New function.
10853 (alpha_init_frame_pc_first): Ditto.
10854 (alpha_fix_call_dummy): Ditto.
10855 (alpha_store_struct_return): Ditto.
10856 (alpha_extract_struct_value_address): Ditto.
10857 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10858 alpha_register_virtual_type.
10859 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10860 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10861 alpha_extract_struct_value_address.
10862 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10863 (INIT_FRAME_PC): Use init_frame_pc_noop.
10864 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10868 * i386gnu-nat.c: Include "i386-tdep.h".
10869 (fetch_fpregs): Simplify code dealing with uninitialized floating
10870 point states such that it doesn't require FP7_REGNUM.
10874 * alpha-tdep.c (frame_extra_info): New.
10875 (alpha_find_saved_regs): Make static. Use
10877 (alpha_frame_init_saved_regs): New function.
10878 (alpha_frame_saved_pc): Use frame->extra_info.
10879 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10880 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10881 (init_extra_frame_info): Rename to...
10882 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10883 (alpha_print_extra_frame_info): New function.
10884 (alpha_frame_locals_address): Ditto.
10885 (alpha_frame_args_address): Ditto.
10886 (alpha_pop_frame): Use frame->extra_info.
10887 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10888 alpha_frame_args_address.
10889 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10890 (alpha_find_saved_regs): Remove prototype.
10891 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10892 (EXTRA_FRAME_INFO): Remove.
10893 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10894 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10898 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10899 (alpha_cannot_fetch_register): Ditto.
10900 (alpha_cannot_store_register): Ditto.
10901 (alpha_register_convertible): Ditto.
10902 (alpha_use_struct_convention): Ditto.
10903 * config/alpha/tm-alpha.h: Update copyright years.
10904 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10905 (INNER_THAN): Use core_addr_lessthan.
10906 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10907 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10908 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10909 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10910 (FRAME_CHAIN): Remove unnecessary cast.
10914 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10919 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10920 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10921 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10922 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10923 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10924 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10925 * x86-64-linux-nat.c: Ditto.
10929 * alpha-tdep.c (alpha_register_name): New function.
10930 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10931 (REGISTER_NAME): Define.
10935 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10939 * alpha-tdep.c: Update copyright years.
10940 (alpha_next_pc): New function.
10941 (alpha_software_single_step): Ditto.
10942 * config/alpha/tm-alpha.h: Add prototype for
10943 alpha_software_single_step.
10947 * alphabsd-nat.c: Update copyright years.
10948 (fill_gregset): Use regcache_collect.
10949 (fill_fpregset): Likewise.
10950 (fetch_inferior_registers): Only fetch integer registers
10951 if requested to do so.
10952 (store_inferior_registers): Only store integer registers
10953 if requested to do so.
10957 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10958 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10959 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10960 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10961 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10962 * config/arm/linux.mh (XDEPFILES): Delete.
10963 * config/arm/nbsd.mh (XDEPFILES): Delete.
10964 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10965 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10966 * config/i386/i386m3.mh (XDEPFILES): Delete.
10967 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10968 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10969 * config/i386/fbsd.mh (XDEPFILES): Delete.
10970 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10971 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10972 * config/i386/i386v4.mh (XDEPFILES): Delete.
10973 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10974 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10975 * config/i386/i386aix.mh (XDEPFILES): Delete.
10976 * config/i386/go32.mh (XDEPFILES): Delete.
10977 * config/i386/cygwin.mh (XDEPFILES): Delete.
10978 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10979 * config/i386/i386mach.mh (XDEPFILES): Delete.
10980 * config/i386/i386v32.mh (XDEPFILES): Delete.
10981 * config/i386/linux.mh (XDEPFILES): Delete.
10982 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10983 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10984 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10985 * config/i386/i386sco.mh (XDEPFILES): Delete.
10986 * config/i386/i386v.mh (XDEPFILES): Delete.
10987 * config/i386/nbsd.mh (XDEPFILES): Delete.
10988 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10989 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10990 * config/i386/symmetry.mh (XDEPFILES): Delete.
10991 * config/i386/obsd.mh (XDEPFILES): Delete.
10992 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10993 * config/ia64/linux.mh (XDEPFILES): Delete.
10994 * config/ia64/aix.mh (XDEPFILES): Delete.
10995 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10996 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10997 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10998 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10999 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11000 * config/m68k/linux.mh (XDEPFILES): Delete.
11001 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11002 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11003 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11004 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11005 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11006 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11007 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11008 * config/m88k/delta88.mh (XDEPFILES): Delete.
11009 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11010 * config/m88k/m88k.mh (XDEPFILES): Delete.
11011 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11012 * config/mips/linux.mh (XDEPFILES): Delete.
11013 * config/mips/irix6.mh (XDEPFILES): Delete.
11014 * config/mips/irix5.mh (XDEPFILES): Delete.
11015 * config/mips/irix4.mh (XDEPFILES): Delete.
11016 * config/mips/irix3.mh (XDEPFILES): Delete.
11017 * config/mips/decstation.mh (XDEPFILES): Delete.
11018 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11019 (NATDEPFILES): Move core-aout.o to here.
11020 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11021 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11022 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11023 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11024 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11025 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11026 * config/pa/hpux11.mh (XDEPFILES): Delete.
11027 * config/powerpc/aix.mh (XDEPFILES): Delete.
11028 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11029 * config/powerpc/linux.mh (XDEPFILES): Delete.
11030 * config/romp/rtbsd.mh: Rename XDEPFILES.
11031 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11032 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11033 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11034 * config/s390/s390.mh (XDEPFILES): Delete.
11035 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11036 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11037 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11038 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11039 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11040 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11041 * config/sparc/linux.mh (XDEPFILES): Delete.
11042 * config/vax/vaxult.mh (XDEPFILES): Delete.
11043 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11044 * Makefile.in (DEPFILES): Remove XDEPFILES.
11048 * utils.c (internal_verror): Fix comments, default is yes not no.
11049 Update queries to match. Default to quit and dump core.
11053 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11055 * defs.h, event-top.c, gdbcmd.h: Ditto.
11056 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11057 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11058 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11059 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11060 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11061 * mi/mi-main.c:Ditto.
11063 * stack.c, symfile.c: Update copyright.
11067 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11068 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11069 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11070 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11074 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11075 * gdbserver/low-lynx.c (myattach): Likewise.
11076 * gdbserver/low-nbsd.c (myattach): Likewise.
11077 * gdbserver/low-sim.c (myattach): Likewise.
11078 * gdbserver/low-sparc.c (myattach): Likewise.
11079 * gdbserver/low-sun3.c (myattach): Likewise.
11081 * gdbserver/low-linux.c (myattach): New function.
11083 * gdbserver/server.c (attach_inferior): New function.
11084 (main): Handle "--attach".
11088 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11093 * c-typeprint.c (is_type_conversion_operator): Add additional
11094 check for non-conversion operators.
11098 * linux-proc.c: Add "info proc" command, a la procfs.c.
11099 (read_mapping): New function, abstract and re-use code.
11100 (linux_find_memory_regions): Use new func read_mapping.
11101 (linux_info_proc_cmd): New function, implement "info proc".
11102 (_initialize_linux_proc): Add new command "info proc".
11106 * symfile.c (generic_load): Use bfd_map_over_sections method
11107 instead of manipulating bfd structure members directly.
11108 (add_section_size_callback): New function, bfd sections callback
11109 used by generic_load.
11110 (load_sections_callback): New function, bfd sections callback
11111 used by generic_load.
11115 [Based on work by Jim Blandy]
11116 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11117 (builtin_type_vec128): Export.
11118 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11120 (builtin_type_vec128): New builtin type for 128 bit vector
11122 (build_gdbtypes): Initialize builtin_type_v16qi and
11123 builtin_type_v8hi. Create the vec128 register builtin type
11125 (build_builtin_type_vec128): New function.
11126 (_initialize_gdbtypes): Register builtin_type_v16qi and
11127 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11128 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11129 AltiVec register to new builtin type.
11133 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11138 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11139 CLEAN_UP_REGISTER_VALUE.
11140 * regcache.c (supply_register): Update only call.
11144 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11145 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11146 a29k-*-vxworks* targets as obsolete.
11150 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11151 until we can resolve portability issues.
11152 * gregset.h: Remove references to fpxregs.
11153 * gcore.c (gcore_command): Initialize note_sec to NULL.
11157 * signals.c (target_signal_to_name): Rewrite. Only use
11158 signals[].name when in bounds and non-NULL.
11163 * signals.c (target_signal_to_name): Verify that SIG is within the
11164 bounds of the signals array.
11168 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11172 * stack.c (print_frame_info_base): Print the frame's pc
11173 only if when print_frame_info_listing_hook is not defined.
11177 * varobj.c (varobj_set_value): Make sure that there were no
11178 errors evaluating the object before attempting to set its
11180 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11181 so this offset adjustment is no longer necessary.
11182 (create_child): Don't set the error flag if the child is
11183 a CPLUS_FAKE_CHILD.
11184 (value_of_child): If value_fetch_lazy fails, return NULL
11185 so that callers will be notified that an error occurred.
11186 (c_value_of_variable): Delay check of variable's validity
11187 until later. We actually want all structs and unions to have
11189 Do not return "???" for variables which could not be evaluated.
11190 This error condition must be returned to the caller so that it
11191 can get the error condition from gdb.
11192 (cplus_name_of_child): Adjust index for vptr before figuring
11193 out the name of the child.
11194 (cplus_value_of_child): If a child's (real) parent is not valid,
11195 don't even bother trying to give a value for it. Just return
11196 an error. Change all instances in this function.
11197 (cplus_type_of_child): If our parent is one of the "fake"
11198 parents, we need to get at the type of the real parent, and
11199 derive the child's true type using this information.
11204 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11205 sources.redhat.com, and tweak some related URLs which had
11206 suffered from linkrot.
11211 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11212 structures passed in registers.
11216 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11217 white space which prevented compilation. Reported by DSK
11222 * symfile.c (build_section_addr_info_from_section_tab):
11223 Use bfd access method instead of manipulating bfd directly.
11224 (syms_from_objfile): Ditto.
11225 (simple_overlay_update_1): Ditto.
11226 (simple_overlay_update): Ditto.
11227 (generic_load): Ditto.
11228 (overlay_unmapped_address): FIXME comment, bfd access methods.
11229 (sections_overlap): FIXME comment, bfd access methods.
11230 (pc_in_mapped_range): FIXME comment, bfd access methods.
11231 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11232 (section_is_mapped): FIXME comment, bfd access methods.
11233 (section_is_overlay): FIXME comment, bfd access methods.
11235 * symfile.c (generic_load): Whitespace and long line cleanups.
11236 Remove duplicate variable, change several local variables to
11237 more appropriate data types.
11238 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11242 From Peter Schauer:
11243 * language.c (longest_local_hex_string_custom): Use phex_nz to
11244 convert NUM to a hex string.
11248 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11250 Update Copyright year.
11254 * language.c (longest_raw_hex_string): Delete unused function.
11258 * MAINTAINERS (write-after-approval): Add myself.
11259 * dwarf2read.c (read_tag_string_type): Handling of
11261 (read_tag_string_type): FORTRAN fix to prevent propagation of
11263 (set_cu_language): Handling of DW_LANG_Fortran95
11267 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11268 GETPID(inferior_ptid).
11269 (store_inferior_registers): Likewise.
11273 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11278 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11279 and bfd/elf32-sh-nbsd.c.
11283 * NEWS: Mention --pid and corefile/proc-id behavior change.
11285 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11286 * gcore.c: Include cli/cli-decode.h instead of command.h.
11288 * main.c (captured_main): Add new command line option "--pid".
11289 If the second command line argument (following the symbol-file)
11290 begins with a digit, try to attach to it before trying to open
11292 (print_gdb_help): Document the "--pid" argument.
11296 * completer.c (command_completer): New function.
11298 * completer.h <command_completer>: Add prototype.
11300 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11301 completer for the "help" command.
11305 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11309 * i386-linux-nat.c (fill_fpxregset): Make global.
11310 (store_fpxregset): Ditto.
11312 * gregset.h (gdb_fpxregset_t): Define.
11313 (supply_fpxregset): Prototype.
11314 (fill_fpxregset): Prototype.
11316 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11320 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11321 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11322 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11326 * MAINTAINERS: Update target maintainer rules so that any
11327 Maintainer can approve a tested patch for a maintenance-only
11332 * MAINTAINERS (write-after-approval): Add myself.
11334 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11339 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11340 real name of the executable, rather than the /proc name.
11344 Implement a "generate-core-file" command in gdb, save target state.
11345 * gcore.c: New file. Implement new command 'generate-core-file'.
11346 Save a corefile image of the current state of the inferior.
11347 * linux-proc.c: Add linux-specific code for saving corefiles.
11348 * target.h (struct target_ops): Add new target vectors for saving
11349 corefiles; to_find_memory_regions and to_make_corefile_notes.
11350 (target_find_memory_regions): New macro.
11351 (target_make_corefile_notes): New macro.
11352 * target.c (update_current_target): Inherit new target methods.
11353 (dummy_find_memory_regions): New place-holder method.
11354 (dummy_make_corefile_notes): New place-holder method.
11355 (init_dummy_target): Initialize new dummy target vectors.
11356 * exec.c (exec_set_find_memory_regions): New function.
11357 Allow the exec_ops vector for memory regions to be taken over.
11358 (exec_make_note_section): New function, target vector method.
11359 * defs.h (exec_set_find_memory_regions): Export prototype.
11360 * procfs.c (proc_find_memory_regions): New function, corefile method.
11361 (procfs_make_note_section): New function, corefile method.
11362 (init_procfs_ops): Set new target vector pointers.
11363 (find_memory_regions_callback): New function.
11364 (procfs_do_thread_registers): New function.
11365 (procfs_corefile_thread_callback): New function.
11366 * sol-thread.c (sol_find_memory_regions): New function.
11367 (sol_make_note_section): New function.
11368 (init_sol_thread_ops): Initialize new target vectors.
11369 * inftarg.c (inftarg_set_find_memory_regions): New function.
11370 Allow to_find_memory_regions vector to be taken over.
11371 (inftarg_set_make_corefile_notes): New function.
11372 Allow to_make_corefile_notes vector to be taken over.
11373 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11374 interface layer if not target_has_execution (may be a corefile).
11375 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11376 * config/sparc/sun4sol2.mh: Ditto.
11377 * config/alpha/alpha-linux.mh: Ditto.
11378 * config/arm/linux.mh: Ditto.
11379 * config/i386/x86-64linux.mh: Ditto.
11380 * config/ia64/linux.mh: Ditto.
11381 * config/m68k/linux.mh: Ditto.
11382 * config/mips/linux.mh: Ditto.
11383 * config/powerpc/linux.mh: Ditto.
11384 * config/sparc/linux.mh: Ditto.
11388 * arm-linux-nat.c: Remove references to regcache.c internal data
11389 (registers[] and register_valid[]).
11393 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11394 so that attaching to a pid will automatically read the process's
11395 symbol file and shlibs.
11396 * Makefile.in: Add rule for linux-proc.o.
11397 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11398 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11399 * config/arm/linux.mh: Ditto.
11400 * config/i386/linux.mh: Ditto.
11401 * config/i386/x86-64linux.mh: Ditto.
11402 * config/ia64/linux.mh: Ditto.
11403 * config/m68k/linux.mh: Ditto.
11404 * config/mips/linux.mh: Ditto.
11405 * config/powerpc/linux.mh: Ditto.
11406 * config/sparc/linux.mh: Ditto.
11410 * win32-nat.c: Add i386-tdep.h dependency.
11414 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11415 instead of bfd_get_arch_size. Don't bail out just because
11416 there's no exec_bfd.
11418 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11419 * p-valprint.c (pascal_object_print_value): Ditto.
11420 * somread.c (som_symtab_read): Ditto.
11421 * symfile.c (simple_free_overlay_region_table): Ditto.
11422 * valops.c (value_assign): Ditto.
11424 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11425 use tilde_expand and strerror for opening save-tracepoints file.
11427 * thread-db.c (thread_db_new_objfile): Indendation fix.
11429 * infptrace.c (GDB_MAX_ALLOCA): New define.
11430 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11431 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11432 can be overridden with whatever value is appropriate to the host).
11433 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11434 alloca to allocate potentially large buffer.
11435 * rs6000-nat.c (child_xfer_memory): Ditto.
11436 * symm-nat.c (child_xfer_memory): Ditto.
11437 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11442 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11446 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11447 Don't use exec_bfd if it's NULL.
11451 * valops.c (value_arg_coerce): Fix formatting.
11455 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11456 * gnu-nat.c: Ditto.
11460 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11461 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11462 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11463 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11464 z8k-coff have not been multi-arched. Update z8k-coff build
11469 * MAINTAINERS: Mark a29k target as obsolete.
11470 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11471 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11473 * NEWS: Note that a29k targets are obsolete.
11474 * a29k-tdep.c: Mark as obsolete.
11475 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11476 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11477 a29k-*-vxworks* targets as obsolete.
11478 * remote-adapt.c: Obsolete.
11479 * remote-eb.c: Obsolete.
11480 * remote-mm.c: Obsolete.
11481 * remote-udi.c: Obsolete.
11482 * config/a29k/a29k-udi.mt: Obsolete.
11483 * config/a29k/a29k.mt: Obsolete.
11484 * config/a29k/tm-a29k.h: Obsolete.
11485 * config/a29k/tm-vx29k.h: Obsolete.
11486 * config/a29k/vx29k.mt: Obsolete.
11490 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11491 with BFD_ENDIAN_BIG.
11495 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11496 * configure, config.in: Re-generate.
11497 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11498 * defs.h: Do not include <endian.h>.
11502 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11503 * config.in: Regenerate.
11504 * configure.in: Update copyright years.
11505 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11506 * configure: Regenerate.
11507 * i386bsd-nat.c: Update copyright years.
11508 (fill_gregset): Use regcache_collect.
11509 (fetch_inferior_registers): Only fetch integer registers
11510 if requested to do so. Add support for XMM registers
11511 using PT_GETXMMREGS.
11512 (store_inferior_registers): Only store integer registers
11513 if requested to do so. Add support for XMM registers
11514 using PT_SETXMMREGS.
11515 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11516 (store_inferior_registers): Remove.
11517 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11518 (fetch_elfcore_registers): New function.
11519 (i386nbsd_elfcore_fns): New.
11520 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11521 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11523 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11524 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11525 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11526 * config/i386/tm-nbsd.h: Update copyright years.
11527 (HAVE_SSE_REGS): Define.
11528 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11529 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11530 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11531 (SIGCONTEXT_PC_OFFSET): Remove.
11532 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11536 * configure.tgt: Remove powerpc-*-macos* target.
11537 * config/m68k/xm-mpw.h: Delete file.
11538 * config/xm-mpw.h: Delete file.
11539 * ser-mac.c: Delete file.
11540 * mpw-make.sed: Delete file.
11541 * mpw-config.in: Delete file.
11542 * mac-xdep.c: Delete file.
11543 * mac-gdb.r: Delete file.
11544 * mac-defs.h: Delete file.
11545 * mac-nat.c: Delete file.
11546 * config/powerpc/macos.mh: Delete file.
11547 * config/powerpc/macos.mt: Delete file.
11548 * config/powerpc/nm-macos.h: Delete file.
11549 * config/powerpc/tm-macos.h: Delete file.
11550 * source.c (openp, open_source_file): Remove obsolete code.
11551 * top.c (gdb_readline): Ditto.
11552 * utils.c (query): Ditto.
11553 * event-top.c (display_gdb_prompt): Ditto.
11554 * Makefile.in (ser-mac.o): Delete obsolete target.
11559 * defs.h (BIG_ENDIAN): Delete macro definition.
11560 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11561 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11562 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11563 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11564 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11565 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11566 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11567 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11568 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11569 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11570 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11571 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11572 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11573 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11574 * gdbarch.c: Re-generate.
11578 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11583 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11587 * value.h (value_ptr): Delete typedef.
11591 * i386nbsd-nat.c: Update copyright years.
11592 Include i386-tdep.h.
11596 * stabsread.c: Update copyright years.
11599 (read_struct_fields): Deal with Sun C compiler erroneous stab
11600 output for structs and unions.
11605 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11610 * cp-abi.c: Fix whitespace.
11611 (baseclass_offset): New wrapper function.
11612 * cp-abi.h (baseclass_offset): Add prototype.
11613 (struct cp_abi_ops): Add baseclass_offset pointer.
11615 * valops.c (vb_match): Move to...
11616 * gnu-v2-abi.c (vb_match): here.
11617 * valops.c (baseclass_offset): Move to...
11618 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11620 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11622 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11623 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11624 * hpacc-abi.c (init_hpacc_ops): Likewise.
11628 * valops.c (find_overload_match): Accept obj as a
11629 reference parameter. Update it before returning.
11630 * value.h (find_overload_match): Update prototype.
11631 * eval.c (evaluate_subexp_standard): Pass object to
11632 find_overload_match by reference.
11636 * valarith.c: Replace value_ptr with struct value pointer. Remove
11637 register attribute from value declarations.
11640 * scm-lang.c (scm_lookup_name): Ditto.
11644 Abstract the functionality of iterating over mapped memory
11645 regions into a general purpose iterator function.
11646 * procfs.c (iterate_over_mappings): New function, general purpose
11647 iterator for memory sections.
11648 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11649 (solib_mappings_callback): New function, callback for above.
11650 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11651 (info_mappings_callback): New function, callback for above.
11653 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11657 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11658 * i386-tdep.c: Include "elf-bfd.h".
11659 (process_note_abi_tag_sections): New function.
11660 (i386_gdbarch_init): Add code to recognize various OS/ABI
11663 * maint.c (_initialize_maint_cmds): Add missing \ in
11666 For older changes see ChangeLog-2001
11672 version-control: never