3 * Makefile.in (install-gdbtk): Add missing continuation backslash to
4 insure that shell variables, such as "transformed_name" are propagated
5 to later shell statements in rule.
9 * config/i386/nm-i386sco.h: Add protection against
10 multiple-inclusion. Include "i386/nm-i386v.h".
11 (REGISTER_U_ADDR): Remove define.
12 (i386_register_u_addr): Remove prototype.
16 * m32r-stub.c (handle_exception): Make sure exception is "trap"
17 before treating it as a single-step event.
21 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
22 (objc_demangle): Remove assignment in if statements, Replace
24 (add_msglist): Likewise.
25 (end_msglist): Likewise.
26 (complare_selectors): Likewise.
27 (selectors_info): Likewise.
28 (compare_classes): Likewise.
29 (classes_info): Likewise.
30 (print_object_command): Likewise.
31 (find_objc_msgcall_submethod): Replace PTR with void *.
32 * objc-lang.h: Remove check for __STDC__.
36 * ui-out.h (ui_out_field_fmt_int): New prototype.
37 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
38 of field width and alignment.
39 * stack.c (print_frame_info_base): When printing frame level, use
40 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
45 * MAINTAINERS: Add self to Write After Approval list.
49 * infcmd.c (interrupt_target_command_wrapper): Delete.
50 (interrupt_target_command): Make non static.
51 (nofp_registers_info): Make static.
52 * stack.c (return_command_wrapper): Delete.
53 (return_command): Make non static.
57 * event-top.c (gdb_setup_readline): New function. Code moved from
58 _initialize_event_loop().
59 (_initialize_event_loop): Call gdb_setup_readline().
63 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
64 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
65 * gdbarch.h, gdbarch.c: Re-generate.
70 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
72 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
73 of fill_in_vptr_fieldno.
77 * inferior.h (registers_info, stepi_command, nexti_command,
78 continue_command, interrupt_target_command): Export from infcmd.c.
79 * frame.h (args_info, selected_frame_level_changed_hook,
80 return_command): Export from stack.c.
81 * v850ice.c (stepi_command, nexti_command, continue_command): use
82 prototypes from inferior.h.
83 * tracepoint.c (registers_info, args_info, locals_info): Use
84 prototypes from frame.h and inferior.h.
85 * Makefile.in (mi-main.o): Add dependency on frame.h.
89 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
90 value in register 3 adjusted by ppc_gp0_regnum.
92 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
96 * MAINTAINERS: Add myself to the Write After Approval list.
100 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
101 of the section for the N64 ABI, fixed.
103 * config/mips/tm-irix6.h: Include solib.h.
107 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
112 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
113 and that "mi0" syntax has been removed.
117 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
118 * ppc-sysv-tdep.c: #include "gdb_string.h".
119 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
124 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
125 "vrsave"'s register number.
129 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
130 use frame_unwind_signed_register to obtain the PC.
131 (mips_frame_chain): Handle a generic dummy frame.
132 (mips_init_extra_frame_info): When a generic dummy frame, don't
133 re-compute the frame base.
134 (mips_pop_frame): Handle generic dummy frames.
135 (mips_gdbarch_init): When generic dummy frames, set
136 use_generic_dummy_frames, push_dummy_frame to
137 generic_push_dummy_frame, pc_in_call_dummy to
138 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
139 generic_save_dummy_frame_tos.
143 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
144 against TOP when TOP was explictly set.
145 (generic_push_dummy_frame): Set TOP to zero.
149 * event-loop.c (start_event_loop): Rename variable 'result' to
150 'gdb_result', to avoid conflicts with upcoming intepreters changes.
154 * gdb-events.sh (selected_thread_changed): New event.
155 * gdb-events.c: Regenerated.
156 * gdb-events.h: Regenerated.
160 * MAINTAINERS: Add self to Write After Approval list.
164 * disasm.c: New file.
165 * disasm.h: New file.
166 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
167 (compare_lines): Ditto.
169 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
171 (do_assembly_only): Ditto.
172 (do_disassembly): Renamed to gdb_disassembly and moved to
173 disasm.c. Sdded uiout argument.
174 * Makefile.in: Add new files. Reorder SFILES list. Update
175 dependencies. Include libgdb.a later in the insight executable.
179 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
180 bfd/elf64-alpha-fbsd.c.
184 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
189 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
191 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
193 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
194 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
195 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
196 (S_msg_sig_post_reply): Ditto.
200 * sh-tdep.c (sh_use_struct_convention): Use definition according
202 (sh_push_arguments): Store in register with correct endianess.
203 (sh_default_store_return_value): Ditto.
204 (sh_gdbarch_init): Set sizeof long double to 8.
208 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
209 Fix some whitespace problems.
213 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
214 (mcore-tdep.o): Ditto.
215 (ns32k-tdep.o): Ditto.
216 (ns32knbsd-tdep.o): Ditto.
219 * cris-tdep.c: #include "gdb_string.h"
220 * mcore-tdep.c: Ditto.
221 * ns32k-tdep.c: Ditto.
222 * ns32knbsd-tdep.c: Ditto.
228 * config/djgpp/fnchange.lst: Add entries for
229 gdb/testsuite/gdb.c++/m-static files.
233 * MAINTAINERS: Add myself to the Write After Approval list.
237 * mips-tdep.c (find_proc_desc): Initialize startaddr.
242 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
247 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
248 (rs6000_struct_return_address): Delete variable.
249 (rs6000_store_struct_return): Update.
250 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
251 deprecated_extract_struct_value_address.
252 (rs6000_frame_align): New function.
253 (rs6000_gdbarch_init): Set frame_align.
258 * Makefile.in (gdbtk-main.o): New target.
261 (main.o): Update dependencies.
262 (gdb$(EXEEXT)): Add gdb.o.
263 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
264 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
265 (SUBDIR_GDBTK_CLEAN): Set.
266 (install-gdbtk): Install the insight binary.
267 (uninstall-gdbtk): New target.
268 (all-gdbtk, clean-gdbtk): New rule.
269 * top.c (use_windows): Default to zero.
270 * main.c: Include "main.h".
272 (struct captured_main_args): Delete.
273 (gdb_main): New function.
279 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
280 (frame_map_regnum_to_name): New function.
281 (frame_map_name_to_regnum): New function.
282 * frame.h (frame_map_name_to_regnum): Declare.
283 (frame_map_regnum_to_name): Declare.
284 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
285 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
286 * parse.c: Do not include "builtin-regs.h".
287 (target_map_name_to_register): Delete function.
288 (write_dollar_variable): Use frame_map_name_to_regnum.
289 * parser-defs.h (target_map_name_to_register): Delete declaration.
290 * expprint.c: Include "frame.h".
291 (print_subexp): Use frame_map_regnum_to_name.
292 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
293 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
297 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
298 wasn't saved, and the next innermost frame is a dummy, return the
299 dummy frame's link register.
304 * main.c (captured_main): Add a `break' after the case for 'b'.
308 * varobj.c (c_type_of_child): Use get_target_type instead
313 * source.c (get_current_or_default_source_symtab_and_line): Remove
315 (set_default_source_symtab_and_line): New function. Attempts to
316 determine a source file to list lines from if one is not currently
318 (get_current_source_symtab_and_line): Initialize sal.pc and
320 (set_current_source_symtab_and_line): Mark argument as const.
321 * source.h: Update declarations and comments.
322 * linespec.c (decode_line_1): Replace call to removed routine above.
323 * stack.c (print_frame_info_base): Ditto.
324 * cli/cli-cmds.c (edit_command): Ditto.
325 (list_command): Ditto.
329 * source.c (get_current_or_default_source_symtab_and_line): Initialize
330 sal.pc and sal.end fields.
331 (get_current_or_default_source_symtab_and_line): Ditto.
332 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
333 so we do not cause a new source symtab to be searched for (reverting an
334 unintentional change from the 2002-09-20 patch).
335 * scm-lang.c (scm_unpac): Ditto.
339 * complaints.c (symfile_explanations): Remove new-line from
340 ``isolated_message''.
341 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
342 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
346 * NEWS: Announce that V850EA ISA is no longer supported.
347 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
351 * Makefile.in (c-lang.o): Correct dependencies.
352 (utils.o): Gather dependencies.
354 * c-lang.c: #include "gdb_string.h"
359 * cli/cli-cmds.c (list_command): New function. Implements the new
361 (_init_cli_cmds): Add new command definition.
362 * gdb.1: Document edit command.
363 * doc/gdb.texinfo: Document edit command.
367 * source.c: Make global variables current_source_symtab and
368 current_source_line static.
369 (list_command): Moved to cli/cli-cmds.c.
370 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
371 (get_first_line_listed): New accessor function.
372 (get_lines_to_list): New accessor function.
373 (get_current_source_symtab_and_line): New function. Retrieves the
374 position in the source code that we consider current.
375 (get_current_or_default_source_symtab_and_line): New function.
376 Like the above but attempts to determine a default position if one
377 is not currently defined.
378 (set_current_source_symtab_and_line): New function. Sets the source
379 code position considered current and returns the previously set one.
380 (clear_current_source_symtab_and_line): Reset stored information about
381 a current source line.
382 (_initialize_source): Remove registration for the "list" command and
384 * source.h: Add declarations for the new functions above.
385 * symtab.h: Remove declarations for the global variables mentioned
387 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
388 obtain current source line.
389 * linespec.c (decode_line_1): Ditto.
390 * macroscope.c (default_macro_scope): Ditto.
391 * scm-lang.c (scm_unpac): Ditto.
392 * stack.c (print_frame_info_base): Ditto.
393 * symfile.c (clear_symtab_users): Ditto.
394 * symtab.c (decode_line_spec): Ditto.
395 * cli/cli-cmds.c (list_command): Moved here from source.c.
396 (ambiguous_line_spec): Moved here from source.c.
397 (_init_cli_cmds): Add definition for "list" and its alias.
398 * Makefile.in: Update dependencies.
402 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
403 with what gcc thinks is correct.
407 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
408 multiple register push instruction.
412 Add support for distinct host and target character sets.
413 * charset.c, charset.h: New files.
414 * c-exp.y: #include "charset.h".
415 (yylex): Convert character and string literals to the target
416 character set, before returning them as the semantic value of the
418 * c-lang.c: #include "charset.h".
419 (c_emit_char): Use charset-specific methods to recognize
420 characters with backslash escape forms, to decide which characters
421 to print literally and which to print using numeric escape
422 sequences, and to convert target characters to host characters
424 * utils.c: #include "charset.h".
425 (no_control_char_error): New function.
426 (parse_escape): Use charset-specific methods to recognize
427 backslash escapes, parse `control character' notation, and convert
428 characters from the host character set to the target character set.
429 * configure.in: Set the default host character set.
430 Check where to find iconv, and what its argument types might be.
431 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
432 * Makefile.in (SFILES): List charset.c.
433 (COMMON_OBS): List charset.o.
434 (charset.o): New rule.
435 (charset_h): New header dependency variable.
436 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
437 (LIBICONV): New variable, set by configure.
438 (CLIBS): Include $(LIBICONV) here.
439 * aclocal.m4, config.in, configure: Regenerated.
443 * ada-exp.y: Add missing semicolons to end rules. Fixes a
448 * gdb_mbuild.sh: New file.
452 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
456 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
457 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
458 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
459 valops.c, value.h: Revert previous change.
463 Preliminary support for Objective-C:
464 * defs.h (language_objc): New enum value.
465 (puts_filtered_tabular): Declaration only, exported from utils.c.
466 (skip_quoted): Delete, declared in completer.h.
467 * c-exp.y: Include completer.h.
470 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
471 New operator enum values.
472 * language.h (CAST_IS_CONVERSION): Test for language_objc.
473 * language.c (binop_result_type): Handle language_objc case.
474 (integral_type, character_type, string_type, boolean_type,
475 structured_type, binop_type_check): Ditto.
476 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
477 (struct objc_specific): Add to general_symbol_info.
478 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
479 (SYMBOL_DEMANGLED_NAME): Handle objc case.
480 * parser-defs.h (struct objc_class_str): New struct type.
481 (start_msglist, end_msglist, add_msglist): Declaration only,
482 exported from objc-lang.c.
483 * value.h (value_of_local, value_nsstring,
484 call_function_by_hand_expecting_type): Exported from valops.c.
485 * valops.c (find_function_addr): Export.
486 (call_function_by_hand_expecting_type): New function.
487 (value_of_local): New function.
488 * symfile.c (init_filename_language_table): Add ".m" extension
490 * utils.c (puts_filtered_tabular): New function.
491 (fprintf_symbol_filtered): Add objc demangling support (disabled).
492 (set/show demangle): Extend help-string to refer to ObjC.
493 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
494 * stabsread.c (symbol_reference_defined): Objective-C symbols
495 may contain colons: make allowances when scanning stabs strings
497 (objc_find_colon): New function.
498 * printcmd.c (address_info): If language == objc then print
499 "self" instead of "this".
500 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
501 OP_NSSTRING, and OP_SELF.
502 (prefixify_subexp): Ditto.
503 * source.c (print_source_lines): Mention objc in comment.
504 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
509 * complaints.h: Update copyright.
510 (struct complaints): Declare.
511 (struct complaint): Make `message' constant.
512 (internal_complaint): Declare.
513 (complaint): Declare.
514 (complaint_root): Delete declaration.
515 (symfile_complaints): Delete declaration.
516 (struct complaints): Add opaque declaration.
517 (clear_complaints): Add a complaints parameter.
518 * complaints.c: Update copyright.
519 (enum complaint_series): Define.
520 (complaint_root): Delete.
521 (struct complaints): Define.
522 (complaint_sentinel, symfile_complaint_book): New variables.
523 (symfile_explanations, symfile_complaints): New variables.
525 (get_complaints): New function.
526 (vcomplaint): New function.
527 (complaint): New function.
528 (internal_complaint): New function.
529 (complain): Call vcomplain with symfile_complaint.
530 (clear_complaints): Rewrite.
531 (_initialize_complaints): Use add_setshow_command.
532 * Makefile.in (complaints.o): Update dependencies.
533 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
534 to call to clear_complaints.
535 (new_symfile_objfile, reread_symbols): Ditto.
536 (oldsyms_complaint): Delete.
537 (empty_symtab_complaint, unknown_option_complaint): Delete.
538 (free_named_symtabs): Use complaint instead of complain.
542 Contributed by Apple Computer, Inc. Merged with current sources
545 * objc-lang.c: First clean-up round: comments, indentation.
546 * objc-lang.h: Ditto.
547 * objc-lang.y: Ditto.
551 * maint.c (maintenance_internal_error): Print the parameter as the
553 (maintenance_internal_warning): New function.
554 (_initialize_maint_cmds): Add command `maint internal-warning'.
556 * defs.h (internal_warning, internal_vwarning): Declare.
557 * utils.c (struct internal_problem): Define.
558 (internal_vproblem): New function.
559 (internal_warning): New function.
560 (internal_vwarning): New function.
561 (internal_warning_problem, internal_error_problem): New variables.
562 (internal_verror): Just call internal_vproblem.
566 * objc-lang.c: New file, support for Objective-C.
567 Preliminary check-in, not yet integrated into gdb.
568 * objc-lang.h: New file.
569 * objc-exp.y: New file.
573 * infrun.c (signal_stop_update): Convert definition to ISO C.
574 (signal_print_update): Ditto.
575 (signal_pass_update): Ditto.
576 * inflow.c (terminal_save_ours): Ditto.
578 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
581 * config/djgpp/fnchange.lst: Handle name clashes between
582 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
585 * i386-linux-tdep.h: Fix tipo.
589 * MAINTAINERS: Add myself to the Write After Approval list.
593 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
594 texthigh and textlow to reader-specific structs caused
595 objfile_relocate to miss them. This is fixable, but the work that
596 the change was supposed to prepare GDB for never got done anyway.
600 * MAINTAINERS: Alphabetize Write After Approval list.
605 * values.c (value_static_field): Call read_var_value.
609 * valops.c (hand_function_call): Align the initial stack pointer
610 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
611 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
613 * mips-tdep.c (mips_frame_align): New function.
614 (mips_gdbarch_init): Set frame_align.
615 * gdbarch.sh (FRAME_ALIGN): New method.
616 * gdbarch.h, gdbarch.c: Re-generate.
620 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
625 * NEWS: Mention that MIPS $fp behavior changed.
626 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
627 reference to FP_REGNUM.
628 (mipsnbsd_cannot_store_register): Ditto.
629 * mips-linux-nat.c: Update copyright.
630 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
631 (mips_linux_cannot_store_register): Ditto.
632 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
633 * config/mips/tm-mips.h: Update copyright.
634 (FP_REGNUM): Delete macro.
635 (MIPS_REGISTER_NAMES): Replace "fp" with "".
636 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
637 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
638 (mips_r3041_reg_names, mips_r3051_reg_names)
639 (mips_r3081_reg_names): Replace "fp" with "".
644 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
645 generic_read_register_dummy() (PR gdb/703).
646 (avr_push_return_address): #if 0 out unused vars.
647 (avr_gdbarch_init): Enable use of avr_push_return_address().
651 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
652 RTE will take care of it.
656 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
657 invalid, return SP_REGNUM.
661 * mips-tdep.c (mips_pop_frame): Read saved values of floating
662 point registers without sign extension.
666 * blockframe.c (deprecated_read_register_dummy): Rename
667 generic_read_register_dummy.
668 * frame.c (frame_unwind_signed_register): New function.
669 (frame_unwind_unsigned_register): New function.
670 * frame.h (frame_unwind_signed_register): Declare.
671 (frame_unwind_unsigned_register): Declare.
672 (deprecated_read_register_dummy): Rename
673 generic_read_register_dummy.
675 * h8300-tdep.c (h8300_frame_chain): Update.
676 (h8300_frame_saved_pc): Update.
677 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
678 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
679 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
680 (s390_frame_chain): Update.
681 * v850-tdep.c (v850_find_callers_reg): Update.
682 (v850_frame_saved_pc): Update.
683 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
684 (m32r_find_callers_reg): Update.
685 (m32r_frame_saved_pc): Update.
686 * sh-tdep.c (sh_find_callers_reg): Update.
687 (sh64_get_saved_pr): Update.
688 (sh_init_extra_frame_info): Update.
689 (sh_init_extra_frame_info): Update.
690 (sh64_init_extra_frame_info): Update.
691 (sh64_init_extra_frame_info): Update.
692 * mcore-tdep.c (mcore_find_callers_reg): Update.
693 (mcore_frame_saved_pc): Update.
694 (mcore_init_extra_frame_info): Update.
695 * i386-tdep.c (i386_frame_saved_pc): Update.
696 * ia64-tdep.c (ia64_frame_saved_pc): Update.
697 (ia64_init_extra_frame_info): Update.
698 (ia64_init_extra_frame_info): Update.
699 * d10v-tdep.c (d10v_frame_saved_pc): Update.
700 * cris-tdep.c (cris_init_extra_frame_info): Update.
701 * avr-tdep.c (avr_frame_chain): Update.
702 (avr_init_extra_frame_info): Update.
703 (avr_frame_saved_pc): Update.
704 * arm-tdep.c (arm_find_callers_reg): Update.
705 (arm_init_extra_frame_info): Update.
706 (arm_frame_saved_pc): Update.
710 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
715 * MAINTAINERS: Remove "non multi-arched" text from h8300.
716 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
718 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
723 * osfsolib.c: Remove file, replaced by solib-osf.c.
724 * Makefile.in: Remove compilation rules for osfsolib.c.
728 * cp-valprint.c (cp_print_class_method): Correct args to
729 check_stub_method_group.
733 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
734 `set architecture'. Unify naming convention of functions.
735 (h8300_skip_prologue): Improve prologue analysis.
736 (h8300_push_arguments): Rewritten to more closely match GCC's
737 bizarre argument-passing behavior, along with the comment describing
739 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
740 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
741 sim, remote-e7000.c, remote-hms.c and remote.c
745 * i386-tdep.c (gdb_print_insn_i386): Removed.
746 (i386_print_insn): New function.
747 (i386_gdbarch_init): Set print_insn to i386_print_insns.
748 (_initialize_i386_tdep): Don't initialize tm_print_insn and
753 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
758 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
759 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
760 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
764 * win32-nat.c (child_create_inferior): Honor 'tty' command.
768 * gdbtypes.c (check_stub_method): Make static.
769 (check_stub_method_group): New function.
770 * gdbtypes.h: Update prototypes.
771 * cp-support.c: New file.
772 * cp-support.h: New file.
774 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
775 (update_method_name_from_physname): New function.
776 (read_member_functions): Correct method names for operators
777 and v3 constructors/destructors. Separate v2 constructors and
779 * Makefile.in (stabsread.o): Update dependencies.
780 (SFILES): Add cp-support.c.
781 (COMMON_OBS): Add cp-support.o.
782 (cp_support_h, cp-support.o): Add.
784 * cp-valprint.c (cp_print_class_method): Call
785 check_stub_method_group instead of check_stub_method. Remove
787 * p-valprint.c (pascal_object_print_class_method): Likewise.
788 * valops.c (search_struct_method): Likewise.
789 (find_method_list, value_struct_elt_for_reference): Likewise.
793 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
794 * gdbarch.h, gdbarch.c: Regenerate.
798 * frame.c (find_saved_register): Delete function.
799 * frame.h (find_saved_register): Delete declaration.
804 * mips-tdep.c (read_next_frame_reg): Re-hack using
805 frame_register_unwind.
809 * mips-tdep.c (mips_get_saved_register): Re-hack using
810 frame_register_unwind.
814 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
815 vector. Will be useful for Interix.
816 * gdbarch.h, gdbarch.c: Regenerate.
818 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
819 name of the malloc function by NAME_OF_MALLOC.
823 * value.h (find_function_in_inferior): Add const keyword to
824 one of the parameters. Allows us to invoke this function with
826 * valops.c (find_function_in_inferior): Likewise.
830 * exec.c (xfer_memory): Fix compilation warning with old versions
832 * tracepoint.c (trace_find_tracepoint_command): Likewise.
836 * symtab.h: Run through gdb_indent.h.
837 Add 2002 to Copyright year list.
841 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
843 * MAINTAINERS: Add myself to write after approval list.
847 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
851 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
856 * procfs.c (do_detach): Clear current signal, not just fault.
857 Corrects problem with breakpoint trap signal leaking to detached
862 * buildsym.c (finish_block): Protect against null pointer.
866 * infcmd.c (default_print_registers_info): Send all output to
867 ``file'' instead of ``gdb_stdout''.
871 * mips-tdep.c (mips_extract_struct_value_address): Make val a
872 LONGEST, and use signed register read (addresses are sign-
877 * event-loop.c (gdb_do_one_event): Make public.
878 * event-loop.h (gdb_do_one_event): Declare.
882 * infttrace.c (child_resume): Simplify and rework to avoid
887 * printcmd.c (print_scalar_formatted): "len" is the number of
888 target bytes, NOT the number of target bits.
893 * top.c (init_main): Set rl_terminal_name.
897 * ada-lang.c (ada_array_bound, ada_type_match,
898 _initialize_ada_language): Fix K&R definitions.
899 * ada-tasks.c (get_current_task): Fix K&R definitions.
900 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
904 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
909 * i386-tdep.c (i386_register_virtual_type,
910 i386_register_convertible, i386_register_convert_to_virtual,
911 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
912 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
913 (i386_gdbarch_init): Fix comment. Add comments on calls that set
914 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
915 Don't set push_arguments twice.
917 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
918 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
919 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
920 sigtramp_end to NULL.
921 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
923 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
925 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
928 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
929 * gdbarch.h, gdbarch.c: Re-generate.
930 * blockframe.c (find_pc_sect_partial_function): Convert to use
931 SIGTRAMP_START_P predicate.
935 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
936 generic_dummy_frame method and old method. Also distinguish
937 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
938 (arm_extract_return_value): Use new regcache method.
940 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
941 adjustment that doesn't conform to the ABI.
942 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
943 saved regcache, not from current regcache.
947 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
952 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
953 if arm_apcs_32 is false.
957 GDB 5.3 branch created.
961 * gdb/avr-tdep.c (avr_gdbarch_init): Use
962 generic_unwind_get_saved_register.
966 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
967 argument (PR gdb/653). Update call to smash_to_method_type.
968 (read_structure_scope): Update call to dwarf2_add_member_fn.
972 * x86-64-linux-tdep.c: Include gdb_string.h
973 * x86-64-linux-nat.c: Ditto.
977 * ada-exp.y (yyname, yyrule): Remap global variables that appear
978 when YYDEBUG is set to 1.
981 * jv-exp.y: Likewise.
982 * m2-exp.y: Likewise.
987 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
989 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
990 solib_svr4_fetch_link_map_offsets to
991 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
992 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
993 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
994 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
995 solib-svr4.o, and solib-legacy.o.
996 * config/i386/tm-nbsd.h: Include solib.h.
1000 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1001 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1002 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1003 comment noting that this needs its own target configuration.
1004 * config/i386/nbsd.mt: New file.
1005 * config/i386/nbsdaout.mt: Remove.
1006 * config/i386/nbsdelf.mt: Ditto.
1007 * config/i386/tm-nbsdaout.h: Ditto.
1011 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1012 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1013 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1015 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1016 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1017 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1021 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1022 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1023 * i386-tdep.h (i386bsd_init_abi): New prototype.
1024 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1025 function declaration.
1026 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1027 for NetBSD-a.out or NetBSD-ELF.
1028 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1029 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1030 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1031 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1033 (i386nbsd_pc_in_sigtramp): New function.
1034 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1035 i386nbsd_pc_in_sigtramp.
1036 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1037 and i386nbsdelf_init_abi OS ABI handlers.
1038 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1039 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1043 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1044 registers if the target really has them.
1048 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1053 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1055 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1056 (alphanbsd_skip_sigtramp_frame): New functions.
1057 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1058 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1059 to alphanbsd_sigcontext_addr.
1063 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1065 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1066 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1067 nbsd_pc_in_sigtramp.
1068 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1069 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1070 * nbsd-tdep.c: Include gdb_string.h.
1071 (nbsd_pc_in_sigtramp): New function.
1072 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1073 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1074 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1075 ppcnbsd_pc_in_sigtramp.
1076 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1077 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1078 shnbsd_pc_in_sigtramp.
1079 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1080 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1081 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1085 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1086 watchpoints to NULL.
1087 (insert_breakpoints): set val field of watchpoints if NULL.
1092 * symtab.c (lookup_symbol_aux): In the cases where we find a
1093 minimal symbol of an appropriate name and use its address to
1094 select a symtab to read and search, use `name' (as passed to us)
1095 as the demangled name when searching the symtab's global and
1096 static blocks, not the minsym's name.
1100 * stack.c (print_frame_info_base): Always set current_source_symtab
1101 and current_source_line.
1105 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1109 * stack.c (select_frame): Add FIXME concerning selected-frame
1111 (select_frame_command): Send selected-frame-level-changed
1112 event notification, but only if the level actually changed.
1113 (up_silently_base): Add selected-frame-level-changed event
1115 (down_silently_base): Likewise.
1119 * Makefile.in: Update dependencies for all gdb/*.c files.
1123 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1124 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1125 Update dependencies.
1126 * i387-tdep.c: Include gdb_string.h.
1127 * osabi.c: Likewise.
1128 * i386-linux-nat.c: Likewise.
1129 * lin-lwp.c: Likewise.
1130 * ax-gdb.c: Likewise.
1131 * signals/signals.c: Likewise.
1132 * jv-valprint.c: Likewise.
1133 * p-lang.c: Likewise.
1134 * c-valprint.c: Likewise.
1135 * cp-abi.c: Likewise.
1139 * cli/cli-script.h (copy_command_lines): Export.
1140 * breakpoint.c: Include cli/cli-script.h.
1141 * Makefile.in (breakpoint.o): Update dependencies.
1145 * breakpoint.c (insert_breakpoints): Protect all references
1146 to 'process_warning'. Shorten long lines.
1150 * cli/cli-script.c (copy_command_lines): New function.
1151 * defs.h (copy_command_lines): Export.
1152 * testsuite/gdb.base/commands.exp: New tests for commands
1153 attached to a temporary breakpoint, and for commands that
1154 delete the breakpoint they are attached to.
1158 * breakpoint.c (bpstat_stop_status): Instead of copying the
1159 pointer to the breakpoint commands struct, make a new copy
1160 of the struct and point to that.
1161 (bpstat_clear): Free the commands struct.
1162 (bpstat_clear_actions): Free the commands struct.
1163 (bpstat_do_actions): Free the command actions. Also execute
1164 the local cleanups, instead of deleting them.
1165 (delete_breakpoint): Leave the commands field of the bpstat
1166 chain alone -- it will be freed later.
1170 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1171 deleted in 2002-08-20 commit. This function is still used by
1176 * gdb-events.sh: Add selected-frame-level-changed event.
1177 * gdb-events.c: Regenerated.
1178 * gdb-events.h: Regenerated.
1183 * inflow.c (terminal_save_ours): New function to save terminal
1185 * inferior.h (terminal_save_ours): Declare.
1186 * target.c (debug_to_terminal_save_ours): New function.
1187 (cleanup_target): Defaults to_terminal_save_ours.
1188 (update_current_target): Inherit to_terminal_save_ours.
1189 (setup_target_debug): Set to_terminal_save_ours.
1190 * target.h (target_terminal_save_ours): New to save terminal settings.
1191 (target_ops): New member to_terminal_save_ours.
1192 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1193 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1194 * inftarg.c (init_child_ops): Likewise.
1195 * m3-nat.c (init_m3_ops): Likewise.
1196 * procfs.c (init_procfs_ops): Likewise.
1197 * wince.c (init_child_ops): Likewise.
1198 * win32-nat.c (init_child_ops): Likewise.
1199 * sol-thread.c (init_sol_thread_ops): Likewise.
1203 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1204 use regcache_* functions.
1205 (i386_gdbarch_init): Set store_return_value instead of
1206 deprecated_store_return_value.
1208 * regcache.c (regcache_raw_write_signed,
1209 regcache_raw_write_unsigned): New functions.
1210 * regcache.h (regcache_raw_write_signed,
1211 regcache_raw_write_unsigned): New prototypes.
1215 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1216 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1217 source file dependencies. Cleanup corresponding generator rules.
1221 * regcache.h (register_offset_hack): Declare.
1222 (regcache_cooked_read_using_offset_hack): Declare.
1223 (regcache_cooked_write_using_offset_hack): Declare.
1225 * regcache.c (register_offset_hack): New function.
1226 (regcache_cooked_read_using_offset_hack): New function.
1227 (regcache_cooked_write_using_offset_hack): New function.
1228 (regcache_dump): Check that the registers, according to their
1229 offset, are packed hard against each other.
1230 (cooked_xfer_using_offset_hack): New function.
1234 * regcache.c (struct regcache_descr): Add field register_type.
1235 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1237 (init_regcache_descr): Initialize register_type. Pass the descr
1238 to init_legacy_regcache_descr. Use register_type instead of
1239 REGISTER_VIRTUAL_TYPE.
1240 (register_type): New function.
1241 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1242 * regcache.h (register_type): Declare.
1246 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1247 instead of deprecated_store_return_value. Fix fallout from
1252 * regcache.c (max_register_size): New function.
1253 (init_legacy_regcache_descr): Ensure that max_register_size is
1254 large enough for REGISTER_VIRTUAL_SIZE.
1255 * regcache.h (max_register_size): Declare.
1259 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1261 (e500_extract_return_value): Change type of valbuf pointer to
1266 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1269 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1270 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1271 long long) to prevent compiler warning on 64-bit systems.
1275 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1276 (DEPRECATED_STORE_RETURN_VALUE): New method.
1277 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1278 * gdbarch.h, gdbarch.c: Re-generate.
1280 * values.c (set_return_value): Pass current_regcache to
1282 * arch-utils.h (legacy_store_return_value): Declare.
1283 * arch-utils.c (legacy_store_return_value): New function.
1284 (legacy_extract_return_value): Update parameters.
1286 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1288 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1289 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1290 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1291 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1292 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1293 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1294 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1295 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1296 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1297 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1300 * i386-tdep.c (i386_extract_return_value): Update.
1301 * arch-utils.c (legacy_extract_return_value): Update.
1302 * frv-tdep.c (frv_gdbarch_init): Update.
1303 * cris-tdep.c (cris_gdbarch_init): Update.
1304 * d10v-tdep.c (d10v_gdbarch_init): Update.
1305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1306 * m68k-tdep.c (m68k_gdbarch_init): Update.
1307 * mcore-tdep.c (mcore_gdbarch_init): Update.
1308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1309 * s390-tdep.c (s390_gdbarch_init): Update.
1310 * sparc-tdep.c (sparc_gdbarch_init): Update.
1311 * sh-tdep.c (sh_gdbarch_init): Update.
1312 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1313 * v850-tdep.c (v850_gdbarch_init): Update.
1314 * avr-tdep.c (avr_gdbarch_init): Update.
1315 * ia64-tdep.c (ia64_gdbarch_init): Update.
1316 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1317 * vax-tdep.c (vax_gdbarch_init): Update.
1318 * alpha-tdep.c (alpha_gdbarch_init): Update.
1319 * arm-tdep.c (arm_gdbarch_init): Update.
1320 * mips-tdep.c (mips_gdbarch_init): Update.
1321 * i386-tdep.c (i386_gdbarch_init): Update.
1325 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1326 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1330 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1335 * infrun.c (handle_inferior_event): Move a comment outside of a
1336 function call, in order to avoid indent reformatting this part
1337 of the code in an unreadable way.
1341 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1342 when breakpoints fail. Move general breakpoint error messages to
1344 * breakpoint.c (insert_breakpoints): Change warnings when
1345 breakpoints are nto inserted to specify the type. Remove call to
1346 memory_error when hardware breakpoints can't be inserted. Remove
1347 multiple calls to warning so all messages are sent to the user at
1349 (delete_breakpoints): Make insert error messsages more explicit.
1353 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1354 gdbserver/ChangeLog.
1358 * i386-tdep.c: Include "objfiles.h".
1359 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1360 skip_trampoline_code.
1361 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1362 (CPLUS_MARKER): Define to '.'.
1364 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1366 (linux_corefile_thread_callback): Increase args->num_notes.
1367 (linux_make_note_section): Initialize thread_args.num_notes, and
1368 use it to determine whether notes for any threads were created.
1372 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1373 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1375 (write_with_trace): Conditionalize out the switch branch handling
1376 PCSHOLD if the corresponding macro is not defined. Likewise for
1377 PRSABORT and PRSTOP.
1378 This change will be needed by the Interix port.
1382 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1383 write_register wherever possible instead of manipulating the
1384 register bytes directly.
1385 Assign VALUE_CONTENTS to a variable and use that.
1386 The GPR numbers are now dependent on the architecture.
1390 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1392 (skip_prologue): Add support for BookE/e500 instructions.
1393 (e500_extract_return_value): New function.
1394 (frame_get_saved_regs): Add support for saving ev registers and
1396 (e500_store_return_value): New function.
1397 (rs6000_gdbarch_init): Move up default intializations of
1398 deprecated_extract_return_value and store_return_value. Overwrite
1399 init of store_return_value with e500 specific version.
1400 Set extract_return_value for e500.
1404 * blockframe.c (generic_call_dummy_register_unwind): Use
1405 regcache_cooked_read to catch cases in which the variable is
1406 stored in a pseudo register.
1410 * NEWS: Mention that the i960 has been made obsolete.
1411 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1413 (remote-nrom.o): Obsolete target.
1414 (remote-nindy.o, i960-tdep.o): Ditto.
1415 * remote-nrom.c: Make file obsolete.
1416 * remote-nindy.c, remote-vx960.c: Ditto.
1417 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1418 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1419 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1420 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1421 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1422 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1423 i960-*-vxworks* obsolete.
1424 * MAINTAINERS: Note that the i960 is obsolete.
1428 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1429 detach to allow reinitialization.
1433 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1438 * coffread.c (coff_symfile_read): Don't try to read the line
1439 number table from disk if the image file doesn't have a symbol
1440 table; we'll never actually look at the info anyway, and Windows
1441 ships DLL's with bogus file offsets for the line number data.
1445 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1450 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1451 (MSYMBOL_SIZE): Replace macro with function.
1452 (DEFAULT_MIPS_TYPE): Delete unused macro.
1453 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1454 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1458 * valops.c (value_cast): Simplify and correct logic for doing a
1459 static cast from a pointer to a base class to a pointer to a
1464 * infcmd.c (default_print_registers_info): Replace
1466 (registers_info): Use gdbarch_print_registers_info instead of
1468 * inferior.h (default_print_registers_info): Replace
1470 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1471 (DO_REGISTERS_INFO): Change to a predicate function.
1472 * gdbarch.h, gdbarch.c: Regenerate.
1476 * gdb-events.sh: Add target-changed event.
1477 * gdb-events.c: Regenerated.
1478 * gdb-events.c: Regenerated.
1479 * valops.c (value_assign): Add target-changed event notification
1480 to inlval_register, lval_memory, and lval_reg_frame_relative.
1484 * NEWS: Add an entry regarding the improvement of the next/step
1485 operation on Alpha Tru64 multi-processor machines.
1489 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1491 * Makefile.in: Update all _h macro definitions.
1492 * Makefile.in (install-gdbtk): Move to install section.
1493 (rdi-share/libangsd.a): Move to end of file.
1497 * frame.c (frame_register_unwind): When a register, set addrp to
1498 the register's byte.
1502 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1503 used locally, so move them from the target machine header to here.
1504 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1505 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1507 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1511 * NEWS: Mention that the Apollo line was made obsolete.
1512 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1513 m68*-hp-hpux* obsolete.
1514 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1515 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1516 * buildsym.c (make_blockvector): Make static.
1517 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1518 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1519 (ALLDEPFILES): Remove dstread.c.
1520 (dstread.o): Obsolete make rule.
1521 * dstread.c: Makefile obsolete.
1523 * config/m68k/hp300hpux.mt: Ditto.
1524 * config/m68k/hp300hpux.mh: Ditto.
1525 * config/m68k/hp300bsd.mt: Ditto.
1526 * config/m68k/hp300bsd.mh: Ditto.
1527 * config/m68k/apollo68b.mt: Ditto.
1528 * config/m68k/apollo68v.mh: Ditto.
1529 * config/m68k/apollo68b.mh: Ditto.
1533 * mips-tdep.c (mips_in_return_stub): Make static.
1534 (mips_gdbarch_init): Set in_solib_return_trampoline.
1535 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1539 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1540 * gdbarch.c, gdbarch.h: Regenerate.
1541 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1543 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1547 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1548 (mips_gdbarch_init): Set skip_trampoline_code,
1549 in_solib_call_trampoline.
1550 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1551 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1555 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1557 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1558 vector type for ev registers.
1559 (e500_pseudo_register_read): New function.
1560 (e500_pseudo_register_write): New function.
1561 (e500_dwarf2_reg_to_regnum): New function.
1562 (PPC_UISA_NOFP_SPRS): New macro.
1563 (PPC_EV_REGS): New macro.
1564 (PPC_GPRS_PSEUDO_REGS): New macro.
1565 (registers_e500): New register set for e500.
1566 (variants): Add e500 variant.
1567 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1568 before setting architectural dependent variations. Initialize ev
1569 registers numbers. Add case for e500 architecture. Set the
1570 number of pseudo registers.
1574 * rs6000-tdep.c: Clean up comments.
1578 * h8300-tdep.c: Re-indent file.
1582 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1587 * breakpoints.c (watch_command_1): Use internal breakpoint
1588 when setting a watchpoint_scope breakpoint.
1592 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1593 (build_builtin_type_vec64i): Ditto.
1594 (build_builtin_type_vec128): Ditto.
1595 (build_builtin_type_vec128i): Ditto.
1599 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1600 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1601 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1602 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1603 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1604 CALL_DUMMY_ADDRESS): Delete.
1605 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1606 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1607 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1608 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1609 push_return_address.
1610 (mips_register_raw_size, mips_eabi_use_struct_convention,
1611 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1612 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1613 mips_init_extra_frame_info, mips_eabi_push_arguments,
1614 mips_n32n64_push_arguments, mips_push_return_address,
1615 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1616 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1620 * mips-tdep.c (mips_frame_num_args): New function.
1621 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1622 frame_saved_pc, frame_args_address, frame_locals_address,
1623 frame_num_args, and frame_args_skip.
1624 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1625 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1626 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1627 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1631 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1632 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1633 * mips-tdep.c (mips_store_struct_return): New function.
1634 (mips_extract_struct_value_address): New function.
1635 (mips_gdbarch_init): Set store_struct_return and
1636 extract_struct_value_address.
1640 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1641 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1642 (read_file_scope): Check that line_header is nonzero before
1643 decoding macro information.
1647 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1648 flag the general-purpose registers as floating-point on targets
1649 that don't support the floating-point registers.
1653 * rs6000-tdep.c (altivec_register_p): Delete.
1654 (rs6000_do_altivec_registers): Delete.
1655 (rs6000_altivec_registers_info): Delete.
1656 (rs6000_do_registers_info): Delete.
1657 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1658 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1662 * infcmd.c (do_registers_info): Print vector registers in hex
1664 (print_vector_info): Check that printing registers
1666 (print_float_info): Ditto.
1670 * mips-tdep.c (mips_gdbarch_init): Update.
1671 (mips_o32_extract_return_value): Rewrite.
1672 (mips_o32_store_return_value): Rewrite.
1673 (mips_o32_xfer_return_value): New function.
1674 (mips_xfer_register): Tweak debug print message. Allow for
1675 buf_offset when dumping the value transfered.
1679 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1680 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1681 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1682 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1683 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1687 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1691 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1693 (P): New macro to define a register as a pseudo register.
1694 (R, R4, R8, R16, FR32, R64, R0): Updated.
1695 (struct variant): Add new fields for number of pseudo registers
1696 and number of total registers.
1697 (tot_num_registers): New macro replacing....
1698 (num_registers): ...deleted macro.
1699 (num_registers): New function.
1700 (num_pseudo_registers): New function.
1701 (variants): Update all variants to intialize new fields correctly.
1702 Postpone initialization of number of pseudo regs and real regs.
1703 (init_variants): New function.
1704 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1709 * valops.c (search_struct_field): Change error message to treat
1710 return value of 0 from value_static_field as meaning that field is
1712 (value_struct_elt_for_reference): Ditto.
1713 * values.c (value_static_field): Treat an unresolved location the
1714 same as a nonexistent symbol. Fix PR gdb/635.
1715 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1716 enclosed. Fix PR gdb/574.
1717 * MAINTAINERS: Add self to Write After Approval list.
1721 * mips-tdep.c (mips_xfer_register): New function.
1722 (mips_n32n64_extract_return_value): Rewrite.
1723 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1724 instead of deprecated_extract_return_value.
1728 * rs6000-tdep.c (TDEP): Delete macro.
1729 (branch_dest): Replace use of TDEP macro with its body.
1730 (rs6000_pop_frame): Ditto.
1731 (rs6000_push_arguments): Ditto.
1732 (rs6000_skip_trampoline_code): Ditto.
1733 (rs6000_frame_saved_pc): Ditto.
1734 (rs6000_frame_chain): Ditto.
1735 (rs6000_register_name): Ditto.
1736 (rs6000_register_byte): Ditto.
1737 (rs6000_register_raw_size): Ditto.
1738 (rs6000_register_virtual_type): Ditto.
1739 (rs6000_register_convertible): Ditto.
1740 (rs6000_convert_from_func_ptr_addr): Ditto.
1744 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1746 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1747 MIPS_LINUX_JB_ELEMENT_SIZE.
1748 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1749 for MAX_REGISTER_RAW_SIZE arrays.
1750 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1751 MIPS_LINUX_JB_ELEMENT_SIZE.
1755 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1759 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1760 ada-valprint.c ada-tasks.c.
1761 (YYFILES): Add ada-exp.y.
1762 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1763 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1764 (ada-exp.tab.o): New target.
1768 * regcache.c (regcache_xfer_part): New function.
1769 (regcache_raw_read_part): New function.
1770 (regcache_raw_write_part): New function.
1771 (regcache_cooked_read_part): New function.
1772 (regcache_cooked_write_part): New function.
1773 * regcache.h (regcache_raw_read_part): Declare.
1774 (regcache_raw_write_part): Declare.
1775 (regcache_cooked_read_part): Declare.
1776 (regcache_cooked_write_part): Declare.
1780 * remote.c (remote_open_1): Add async_p.
1781 (remote_async_open_1): Delete.
1782 (open_remote_target): Delete.
1783 (remote_open, extended_remote_open): Update calls to remote_open_1.
1784 (remote_async_open, extended_remote_async_open): Call
1785 remote_open_1 instead of remote_async_open_1.
1789 * blockframe.c: Fix a few coding standard violations.
1793 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1795 * config/i386/tm-i386sco5.h: ... here. File removed.
1796 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1798 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1799 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1800 (TM_FILE): Set to tm-i386.h.
1801 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1802 * config/i386/tm-i386v.h: Remove file.
1803 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1804 instead of "i386/tm-i386v.h".
1805 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1806 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1808 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1809 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1814 * config/i386/nm-i386v.h: Add protection against
1816 (i386_register_u_addr): Remove prototype.
1817 (register_u_addr): New prototype.
1818 (REGISTER_U_ADDR): Redefine accordingly.
1819 * i386v-nat.c: Improve several comments.
1820 (i386_register_u_addr): Change signature and rename to
1821 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1826 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1827 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1828 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1829 deprecated_extract_return_value.
1830 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1831 rename mips_o32o64_push_arguments.
1832 (mips_gdbarch_init): Update.
1833 (mips_extract_return_value): Delete.
1834 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1835 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1836 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1837 (mips_n32n64_extract_return_value): Clone
1838 mips_extract_return_value.
1839 (mips_store_return_value): Delete.
1840 (mips_o32_store_return_value): Clone mips_store_return_value.
1841 (mips_o64_store_return_value): Clone mips_store_return_value.
1842 (mips_eabi_store_return_value): Clone mips_store_return_value.
1843 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1847 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1848 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1852 * ada-lang.c: Run through gdb_indent.sh.
1853 * ada-lang.h: Run through gdb_indent.sh.
1854 * ada-tasks.c: Run through gdb_indent.sh.
1855 * ada-typeprint.c: Run through gdb_indent.sh.
1856 * ada-valprint.c: Run through gdb_indent.sh.
1860 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1865 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1867 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1868 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1870 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1871 write_register_gen instead of write_register_bytes.
1873 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1874 i[3456]-*-osf1mk* configurations have been made obsolete.
1875 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1876 i[3456]86-*-osf1mk* hosts obsolete.
1877 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1879 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1880 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1881 config/i386/i386m3.mt, config/i386/nm-m3.h,
1882 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1883 config/i386/i386mk.mh, config/i386/i386mk.mt,
1884 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1886 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1887 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1888 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1892 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1893 (hppa_value_returned_from_stack): Declare.
1894 (hppa_extract_return_value): Declare.
1895 * config/pa/hppa.mt: New file.
1896 * configure.tgt: Recognize hppa*-*-*.
1897 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1901 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1906 * top.c (gdb_rl_operate_and_get_next): Make sure
1907 operate-and-get-next functions correctly even when the history
1908 list is completely filled.
1912 * MAINTAINERS (Target Instruction Set Architectures): Rename
1913 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1914 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1915 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1916 already listed under Host/Native.
1918 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1919 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1924 * config/ia64/ia64.mt: New file.
1925 * config/alpha/alpha.mt: New file.
1926 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1927 ia64-linux-gnu. Mention that ia64-elf is broken.
1928 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1932 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1933 generic_func_frame_valid instead of func_frame_valid.
1937 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1938 procfs appears to be broken when debugging on multi-processor
1939 machines. So enable software single stepping in order to avoid
1940 using the procfs interface to do next/step operations, using
1941 internal breakpoints instead.
1943 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1944 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1945 make this pc address equal to the value it would have if the
1946 system stepping capability was used. Also set a new flag used
1947 to ensure that we don't readjust the PC one more time later.
1949 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1950 address by DECR_PC_AFTER_BREAK when software single step is
1951 in use for this architecture, as this has already been taken
1952 care of in handle_inferior_event().
1956 * infrun.c (handle_inferior_event): Minor reformatting, to make
1957 a rather long condition expression easier to read.
1961 * Makefile.in (gdbtk.o): Move to end of file.
1962 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1963 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1964 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1965 (gdbtk-wrapper.o, gdbres.o): Ditto.
1969 * Makefile.in (copying.o): Separate out compile rule.
1970 (hpux-thread.o, procfs.o, signals.o): Ditto.
1971 (v850ice.o, z8k-tdep.o): Ditto.
1972 (tui-file.o): Move to TUI section.
1973 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1974 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1978 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1979 skip_trampoline_code, for better namespace-proofing.
1981 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1985 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1989 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1990 signal, check whether we hit a breakpoint before checking for a
1991 single step breakpoint. Otherwise, GDB fails to notice that a
1992 breakpoint has been hit when stepping onto a breakpoint.
1996 * gdb-events.sh (clear_gdb_event_hooks): New function.
1997 * gdb-events.c: Regenerate.
1998 * gdb-events.h: Regenerate.
2002 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2003 not_a_sw_breakpoint.
2004 * breakpoint.h (bpstat_stop_status): Add parameter names.
2008 * remote.c (remote_insert_hw_breakpoint)
2009 (remote_remove_hw_breakpoint): Fix calculation of length field
2014 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2015 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2016 (supply_fpregset): Ditto.
2018 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2019 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2020 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2021 (TARGET_READ_SP): Delete.
2022 (DO_REGISTERS_INFO): Delete.
2023 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2025 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2026 from macros to functions.
2028 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2029 (mips_register_convertible, mips_register_convert_to_virtual,
2030 mips_register_convert_to_raw): Make static.
2031 (mips_read_sp): New function.
2032 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2033 (mips_do_registers_info): Make static.
2034 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2035 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2036 (mips_register_convert_from_type, mips_register_convert_to_type):
2038 (mips_gdbarch_init): Set up function_start_offset,
2039 register_virtual_size, pc_in_sigtramp.
2043 * infcmd.c (vector_info): New function.
2044 (_initialize_infcmd): Add command "info vector".
2045 (print_vector_info): New function.
2047 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2048 * gdbarch.h, gdbarch.c: Regenerate.
2052 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2053 ``print_all''. Only print vector registers when ``print_all''.
2057 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2058 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2060 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2061 Add `args' parameter.
2062 * gdbarch.h, gdbarch.c: Regenerate.
2064 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2066 * infcmd.c (float_info): Call print_float_info.
2067 (print_float_info): New function. By default, print the
2068 floating-point registers.
2070 * arch-utils.h (default_print_float_info): Delete declaration.
2071 * arch-utils.c (default_print_float_info): Delete function.
2075 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2078 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2081 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2082 * configure.host: Make i[3456]86-*-aix host obsolete.
2083 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2084 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2085 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2086 config/i386/xm-i386aix.h: Make files obsolete.
2087 * i386aix-nat.c: Make file obsolete.
2088 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2089 (i386aix-nat.o): Make target obsolete.
2091 * config/i386/nm-gnu.h: Removed.
2092 * config/i386/nm-i386gnu.h: New file.
2093 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2094 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2096 * config/i386/tm-i386gnu.h: ... here. Removed.
2097 * config/i386/xm-i386gnu.h: Removed.
2098 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2099 (NAT_FILE): Set to nm-i386gnu.h.
2100 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2101 * i386-tdep.c: New file.
2102 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2103 (i386gnu-tdep.o): Specify dependencies.
2107 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2108 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2109 Adjust a few comments to reflect reality a bit closer.
2110 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2111 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2112 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2113 target_insert_watchpoint, target_remove_watchpoint):
2115 * config/i386/nm-i386sco5.h: ... here.
2116 (kernel_u_size): Add prototype. Improve a few comments and add
2117 protection against multiple inclusion.
2119 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2122 * uw-thread.c (SP_ARG0): Define if not already defined.
2123 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2125 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2127 * config/i386/tm-i386.h: Don't include "regcache.h".
2129 * i387-tdep.h (i387_print_float_info): New prototype.
2130 * i387-tdep.c (print_i387_value, print_i387_ext,
2131 print_i387_status_word, print_i387_control_word): Add `struct
2132 ui_file *' argument and use it for output.
2133 (i387_print_float_info): Renamed from i387_float_info. Add
2134 `struct gdbarch *' and `struct ui_file *' arguments and use the
2136 * i386-tdep.c: Include "i387-tdep.h".
2137 (i386_gdbarch_init): Set print_float_info.
2138 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2139 (FLOAT_INFO): Remove define.
2143 * mips-tdep.c (mips_push_arguments): Rename to
2144 mips_eabi_push_arguments, and tune for EABI.
2145 (MIPS_REGS_HAVE_HOME_P): Delete.
2146 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2147 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2148 Delete references to mips_regs_have_home_p.
2152 * Makefile.in (install-gdbtk): Create insight plugin directory.
2153 Install plugins.tcl file.
2157 * configure.in: Move SUBDIRS to near top of the file so that
2158 --enable options may add things to it.
2159 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2160 * configure: Regenerate.
2164 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2165 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2166 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2170 * vax-tdep.c (vax_get_saved_register): Delete function.
2171 (vax_gdbarch_init): Update.
2172 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2173 (ns32k_gdbarch_init): Update.
2174 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2175 (alpha_gdbarch_init): Update.
2179 * regcache.c (init_regcache_descr): Overallocate the
2180 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2181 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2183 (set_register_cached): Add range checking assertions. Use
2188 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2189 numbers for MMX registers.
2193 * i386-tdep.c (i386_gdbarch_init): Use
2194 generic_unwind_get_saved_register.
2198 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2199 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2201 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2202 Delete. Add comment regarding this now-deleted target method.
2206 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2207 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2208 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2209 real PC and the page number (if it's within the memory bank window).
2210 (m68hc11_pseudo_register_write): Likewise when saving.
2211 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2212 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2213 (m68hc11_register_raw_size): And use 32-bit for it.
2214 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2215 16K memory bank is used by the prog; also use the virtual pc.
2219 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2220 (m68hc11_gdbarch_init): Install it in gdbarch.
2221 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2222 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2223 (MSYMBOL_SIZE): New for documentation.
2224 (insn_return_kind): Enum to specify how a function returns.
2225 (frame_extra_info): Cleanup and record the return mode.
2226 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2227 register in address computation.
2228 (m68hc11_get_return_insn): New to obtain the return instruction used
2230 (m68hc11_frame_init_saved_regs): Take into account the return
2231 instruction used by the function for far and interrupt functions.
2232 (m68hc11_init_extra_frame_info): Take into account page register.
2233 (m68hc11_frame_args_address): Adjust according to the return mode.
2234 (show_regs): Print page register only when it's used.
2238 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2239 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2240 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2242 (m68hc11_register_raw_size): Likewise.
2246 * i386-tdep.c (i386_register_name): Handle mmx registers.
2247 (mmx_regnum_p): New function.
2248 (i386_mmx_names): New array.
2249 (mmx_num_regs): New variable.
2250 (i386_pseudo_register_read): New function.
2251 (i386_pseudo_register_write): New function.
2252 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2254 * regcache.c (regcache_raw_read_unsigned): New function.
2255 (regcache_raw_read_signed): New function.
2256 * regcache.h (regcache_raw_read_unsigned): Declare.
2257 (regcache_raw_read_signed): Declare.
2261 * regcache.c (regcache_raw_read_as_address): Delete function.
2262 (regcache_cooked_read_signed): New function.
2263 (regcache_cooked_read_unsigned): New function.
2264 * regcache.h (regcache_cooked_read_signed): Declare.
2265 (regcache_cooked_read_unsigned): Declare.
2266 (regcache_raw_read_as_address): Delete declaration.
2268 * blockframe.c (generic_read_register_dummy): Use
2269 regcache_cooked_read_unsigned.
2270 * i386-tdep.c (i386_extract_struct_value_address): Use
2271 regcache_cooked_read_unsigned.
2275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2276 double sizes according to ELF ABI flags.
2277 (gdbarch_tdep): Record elf_flags.
2281 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2282 (m6812_prolog): They can appear in 68HC12 function prologue.
2283 (m68hc11_frame_chain): Cleanup.
2287 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2289 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2290 (i386_linux_register_raw_size): Delete function.
2291 (i386_linux_init_abi): Update.
2292 * i386-tdep.c (i386_register_raw_size): Delete function.
2293 (i386_register_byte): Delete function.
2294 (i386_gdbarch_init): Update.
2295 (i386_register_size): Delete array.
2296 (i386_register_offset): Delete array.
2298 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2299 (REGISTER_RAW_SIZE): Delete macro.
2300 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2301 (REGISTER_BYTE): Delete macro.
2305 * ada-lang.c (ada_lookup_partial_symbol)
2306 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2307 prototype names so that grep ^func works properly.
2309 * ada-lang.c (ada_array_element_type)
2310 (ada_lookup_partial_symbol): Fix typos in parameter list.
2312 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2313 Fix prototype names so that grep ^func works properly.
2319 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2320 (build_builtin_type_vec128i): Set the vector bit.
2321 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2322 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2323 (build_builtin_type_vec64): New function.
2324 (build_builtin_type_vec64i): New function.
2325 (build_gdbtypes): Initialize builtin_type_vec64 and
2326 builtin_type_vec64i.
2330 * regcache.c (regcache_dump): Compare the register offset
2332 * arch-utils.c (generic_register_byte): New function.
2333 * arch-utils.h (generic_register_byte): Declare.
2334 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2335 * gdbarch.h, gdbarch.c: Regenerate.
2339 * regcache.c: Include "gdbcmd.h"
2340 (_initialize_regcache): Add commands "maintenance print
2341 registers", "maintenance print raw-registers" and "maintenance
2342 print cooked-registers".
2343 (enum regcache_dump_what): Define.
2344 (dump_endian_bytes): New function.
2345 (regcache_dump): New function.
2346 (regcache_print): New function.
2347 (maintenance_print_registers): New function.
2348 (maintenance_print_raw_registers): New function.
2349 (maintenance_print_cooked_registers): New function.
2350 * Makefile.in (regcache.o): Update dependencies.
2354 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2355 (mips_push_arguments): Correct some comments. Use paddr_nz
2356 for printing addresses in debug output. Replace static
2357 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2358 (mips_n32n64_push_arguments): New function, cloned from
2359 mips_push_arguments and tuned for the n32/n64 ABI.
2360 (mips_push_register): Buffer needs dynamic allocation.
2361 (mips_print_register): Ditto.
2362 (do_gp_register_row): Ditto.
2363 (mips_store_return_value): Ditto.
2364 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2368 * memattr.c (mem_info_command): Print special case of upper bound
2369 as max CORE_ADDR + 1.
2373 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2374 returns structs by ref if they're too big to fit in two registers.
2378 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2380 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2381 mips_find_saved_regs().
2382 (mips_pop_frame): Likewise.
2386 * blockframe.c (frame_saved_regs_register_unwind): Revise
2387 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2392 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2393 T-packets; the 'a' is not taken as a register number.
2394 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2395 (remote_stopped_data_address): New functions; add to target
2397 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2398 prototypes to match other implementations of this
2399 function. replace integer argument with pointer -- the length
2400 field in the Z-packet is the length of what is pointed to or 1 if
2401 pointer is null. Add to target vector.
2402 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2406 * remote.c (remote_wait): Add support to extract optional
2407 watchpoint information from T-packet. Ignore unrecognized
2408 optional info in T-packet.
2409 (remote_async_wait): Ditto.
2413 * cli/cli-dump.c: Change fopen modes to use binary open modes
2414 as defined in include/fopen-bin.h throughout.
2418 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2422 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2423 assertion failure by returning early after a warning.
2427 * mips-tdep.c (mips_find_saved_regs): Make static.
2428 (mips_frame_init_saved_regs): New function.
2429 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2430 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2431 (mips_find_saved_regs): Delete declaration.
2435 * remote.c (remote_wait, remote_async_wait): Change
2436 thread_num from int to ULONGEST.
2437 (unpack_varlen_hex): Change result parameter from
2438 int * to ULONGEST *.
2442 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2443 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2445 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2449 * gcore.c (override_derive_stack_segment): Delete variable.
2450 (preempt_derive_stack_segment): Delete function.
2451 (derive_stack_segment): Delete function.
2452 (default_derive_stack_segment): Renamed to derive_stack_segment.
2453 (override_derive_heap_segment): Delete variable.
2454 (preempt_derive_heap_segment): Delete function.
2455 (derive_heap_segment): Delete function.
2456 (default_derive_heap_segment): Rename to derive_heap_segment.
2460 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2461 * mips-tdep.c (mips_EABI_use_struct_convention,
2462 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2463 New functions. (mips_use_struct_convention): Delete.
2464 (mips_gdbarch_init): set use_gdbarch_convention.
2468 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2469 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2470 mips_o32_reg_struct_has_addr): New functions.
2471 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2475 * regcache.c (pseudo_register): Delete function.
2476 (fetch_register): Delete function.
2477 (store_register): Delete function.
2478 (regcache_raw_read, legacy_read_register_gen): Use
2479 target_fetch_registers instead of fetch_register.
2480 (legacy_write_register_gen, regcache_raw_write): Use
2481 target_store_register instead of store_register.
2482 (write_register_bytes): Ditto.
2484 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2485 (STORE_PSEUDO_REGISTER): Delete.
2486 * gdbarch.h, gdbarch.c: Regenerate.
2490 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2491 write dump file binary.
2495 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2496 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2497 (mips_gdbarch_init): Set N32 target to be mips64.
2501 * frame.c (find_saved_register): Break out of loop once saved
2502 register address is found. Don't mention sparc in loop comment
2507 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2508 mips_default_saved_regsize to 8.
2512 * gcore.c: Do not include <sys/procfs.h>.
2513 * Makefile.in (gcore.o): Update dependencies.
2517 * configure.tgt: Make arc-*-* obsolete.
2518 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2519 * MAINTAINERS: Make arc-elf obsolete.
2520 * arc-tdep.c: Make file obsolete.
2521 * config/arc/arc.mt: Ditto.
2522 * config/arc/tm-arc.h: Ditto.
2526 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2530 * mcore-tdep.c (mcore_gdbarch_init): Use
2531 generic_unwind_get_saved_register instead of
2532 generic_get_saved_register.
2533 * v850-tdep.c (v850_gdbarch_init): Ditto.
2534 * frv-tdep.c (frv_gdbarch_init): Ditto.
2535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2536 * s390-tdep.c (s390_gdbarch_init): Ditto.
2537 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2538 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2539 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2543 * objfiles.h: Add missing #include "symfile.h"
2545 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2550 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2555 * NEWS: Cleanup and nitpick.
2559 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2563 * Makefile.in (gdbtk-bp.o): Update dependencies.
2564 (gdbtk-register.o): Ditto.
2565 (gdbtk-varobj.o): Ditto.
2569 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2570 m68hc11_fetch_pseudo_register.
2571 (m68hc11_pseudo_register_write): Replace
2572 m68hc11_store_pseudo_register.
2573 (m68hc11_gdbarch_init): Update.
2577 * gdbarch.sh: Include "gdb_string.h".
2578 * gdbarch.c: Regenerate.
2580 * regcache.c: Include "gdb_string.h".
2581 * ax-general.c: Ditto.
2583 * std-regs.c: Ditto.
2584 * fbsd-proc.c: Ditto.
2587 * Makefile.in (regcache.o): Update dependencies.
2588 (thread.o, gdbarch.o): Ditto.
2589 (ax-general.o, gdbarch.o): Ditto.
2590 (varobj.o, std-regs.o): Ditto.
2591 (fbsd-proc.o): Specify dependencies.
2595 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2597 (regcache_cooked_write): Ditto.
2601 * regcache.c (regcache_cooked_read): New function.
2602 (regcache_cooked_write): New function.
2603 (read_register_gen): Rewrite using regcache_cooked_read.
2604 (write_register_gen): Rewrite using regcache_cooked_write.
2606 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2611 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2612 Replace the architecture methods register_read and register_write.
2613 * gdbarch.h, gdbarch.c: Regenerate.
2614 * regcache.c (init_regcache_descr): Update.
2615 (read_register_gen): Update.
2616 (write_register_gen): Update.
2617 (supply_register): Update comment.
2619 * sh-tdep.c (sh_gdbarch_init): Update.
2620 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2621 `regcache' and `gdbarch' parameters. Make `buffer' a void
2622 pointer. Update code.
2623 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2624 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2625 void pointer. Update code.
2626 (sh64_register_write): Delete.
2627 (sh4_register_read): Delete.
2628 (sh64_register_read): Delete.
2629 (sh4_register_write): Delete.
2630 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2631 void pointer, `to' parameter a void pointer.
2632 (sh_sh64_register_convert_to_raw): Ditto.
2636 * mips-tdep.c (mips_register_virtual_type): Use architecture
2637 invariant return values.
2641 * linux-proc.c: Include "gdb_string.h".
2642 * Makefile.in (linux-proc.o): Update dependency list.
2646 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2651 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2652 to_insert_watchpoint, to_remove_watchpoint,
2653 to_stopped_by_watchpoint, to_stopped_data_address,
2654 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2655 target vecctor. Define their corresponding macros so they call
2658 * target.c: Add default and debug versions of for
2659 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2660 to_insert_watchpoint, to_remove_watchpoint,
2661 to_stopped_by_watchpoint, to_stopped_data_address,
2662 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2666 * mips-tdep.c (mips_register_virtual_type): New function.
2667 (mips_gdbarch_init): Register mips_register_virtual_type()
2668 with gdbarch machinery.
2669 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2670 this file instead of tm-bigmips.h.
2671 (MIPS_REGSIZE): Delete this macro.
2672 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2673 multiarch version in mips-tdep.c will be found.
2677 * NEWS: Menion that CHILL has been made obsolete.
2679 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2680 * stabsread.c (read_range_type): Ditto.
2681 * gdbtypes.h: Ditto.
2682 * language.c (binop_type_check): Ditto.
2683 (binop_result_type): Ditto.
2684 (integral_type): Ditto.
2685 (character_type): Ditto.
2686 (string_type): Ditto.
2687 (boolean_type): Ditto.
2688 (structured_type): Ditto.
2689 (lang_bool_type): Ditto.
2690 (binop_type_check): Ditto.
2691 * language.h (_LANG_chill): Ditto.
2692 * dwarfread.c (set_cu_language): Ditto.
2693 * dwarfread.c (CHILL_PRODUCER): Ditto.
2694 * dwarfread.c (handle_producer): Ditto.
2695 * expression.h (enum exp_opcode): Ditto.
2696 * eval.c: Ditto for comments.
2697 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2698 * expprint.c (print_subexp): Ditto.
2699 (print_subexp): Ditto.
2700 * valops.c (value_cast): Ditto.
2701 (search_struct_field): Ditto.
2702 * value.h (COERCE_VARYING_ARRAY): Ditto.
2703 * symfile.c (init_filename_language_table): Ditto.
2704 (add_psymbol_with_dem_name_to_list): Ditto.
2705 * valarith.c (value_binop): Ditto.
2707 * valops.c (value_slice): Ditto.
2708 * symtab.h (union language_specific): Ditto.
2709 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2710 (SYMBOL_DEMANGLED_NAME): Ditto.
2711 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2712 * defs.h (enum language): Ditto.
2713 * symtab.c (got_symtab): Ditto.
2714 * utils.c (fprintf_symbol_filtered): Ditto.
2716 * ch-typeprint.c: Make file obsolete.
2717 * ch-valprint.c: Make file obsolete.
2718 * ch-lang.h: Make file obsolete.
2719 * ch-exp.c: Make file obsolete.
2720 * ch-lang.c: Make file obsolete.
2722 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2724 (TARGET_FLAGS_TO_PASS): Ditto.
2725 (CHILLFLAGS): Obsolete.
2727 (CHILL_FOR_TARGET): Obsolete.
2728 (CHILL_LIB): Obsolete.
2729 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2731 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2732 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2734 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2739 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2740 This does not change anything at the moment, but will be helpful
2741 later when full Ada support is integrated.
2745 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2750 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2751 and save it in a local variable. Use variable in later test.
2755 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2756 test. (Thanks to Daniel Jacobowitz.)
2760 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2761 (mips_abi_strings): Add "n64".
2762 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2766 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2767 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2771 * utils.c (host_pointer_to_address, address_to_host_pointer):
2772 Use gdb_assert() instead of explicit call to internal_error().
2776 * Makefile.in (rs6000-nat.o): Update dependencies.
2778 From Nicholas Duffek:
2779 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2780 (aix-thread.o): New rule.
2781 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2782 * config/powerpc/aix432.mh: New file.
2786 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2787 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2788 (fetch_core_registers, ppc_linux_supply_gregset)
2789 (ppc_linux_supply_fpregset): New functions.
2790 (ppc_linux_regset_core_fns): New.
2791 (_initialize_ppc_linux_tdep): Call add_core_fns.
2792 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2793 and ppc_linux_supply_gregset.
2794 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2795 (supply_fpregset): Call ppc_linux_supply_fpregset.
2796 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2798 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2802 * symtab.c (lookup_symbol): Demangle before lowercasing.
2806 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2808 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2809 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2810 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2811 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2813 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2814 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2815 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2816 (avr-tdep.o, mon960-rom.o): Ditto.
2817 (aout_stabs_gnu_h): Define.
2818 (symtab_h): Remove $(gdb_obstack_h).
2823 * gdbinit.in: Move the `dir' commands that add GDB's own source
2824 directory to the search path to the end, so that the `gdb' source
2825 directory will be searched first.
2829 * gdb_obstack.h: New file.
2830 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2831 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2832 * objfiles.h: Include "gdb_obstack.h".
2833 * Makefile.in (gdb_obstack_h): Define.
2834 (symtab_h): Add $(gdb_obstack_h).
2835 (objfiles_h): Add $(gdb_obstack_h).
2837 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2838 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2839 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2840 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2841 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2842 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2843 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2844 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2846 * Makefile.in (bcache.o): Update dependencies.
2847 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2848 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2849 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2850 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2851 (stabsread.o, symfile.o, symmisc.o): Ditto.
2852 (symtab.o, typeprint.o, macroexp.o): Ditto.
2853 (macrotab.o, mdebugread.o): Ditto.
2854 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2855 (coff_ecoff_h, aout_aout64_h): Define.
2856 (aout_stabs_gnu_h, libaout_h): Define.
2860 * regcache.c (struct regcache_descr): Rename nr_registers to
2861 nr_cooked_registers. Revise comments describing the structure
2863 (init_regcache_descr): Update.
2864 (init_legacy_regcache_descr): Update.
2865 (read_register_gen, write_register_gen): When a cooked register in
2866 the raw register range, directly access the value from the raw
2871 * z8k-tdep.c: Do not include "obstack.h".
2872 * h8300-tdep.c, h8500-tdep.c: Ditto.
2873 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2874 * valprint.c, v850-tdep.c: Ditto.
2875 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2876 * mn10200-tdep.c: Ditto.
2878 * Makefile.in (z8k-tdep.o): Update dependencies.
2879 (m68hc11-tdep.o, valprint.o): Ditto.
2880 (v850-tdep.o, d10v-tdep.o): Ditto.
2881 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2882 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2883 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2884 (sh_opc_h, gdb_sim_sh_h): Define.
2885 (elf_sh_h, elf_bfd_h): Define.
2886 (opcode_m68hc11_h): Define.
2887 (OPCODES_SRC, OPCODES_DIR): define.
2888 (OPCODES): Use $(OPCODES_DIR).
2889 (gdb_sim_d10v_h): Rename sim_d10v_h.
2890 (gdb_sim_arm_h): Rename sim_arm_h.
2894 * utils.c (host_pointer_to_address, address_to_host_pointer):
2895 Change internal_error() message to indicate function responsible
2900 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2901 calls to local_hex_string_custom().
2905 * irix5-nat.c: Move IRIX shared library support from here...
2906 * solib-irix.c: ...to here. Revised substantially to work with
2907 generic solib framework.
2909 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2910 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2911 * mips-irix-tdep.c: New file.
2913 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2914 (mips-irix-tdep.o, solib-irix.o): New rules.
2915 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2917 * config/mips/irix6.mt (TDEPFILES): Likewise.
2918 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2922 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2923 disabled (via ``#if 0'') includes.
2927 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2928 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2929 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2930 Add support for the fpscr register.
2931 * rs6000-nat.c (regmap, fetch_inferior_registers)
2932 (store_inferior_registers, fetch_core_registers): Likewise.
2936 * rs6000-nat.c (language.h): Include.
2937 (special_regs): Delete this array.
2938 (regmap): New function.
2939 (fetch_register, store_register): Use regmap() to map gdb
2940 register numbers to ptrace register numbers. Also, use
2941 outputs from regmap() to make decisions regarding type of
2942 ptrace() call to make. In particular, don't compare against
2943 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2944 (fetch_inferior_registers, store_inferior_registers): Where
2945 possible, obtain register numbers from tdep struct. Don't
2946 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2947 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2948 (LAST_UISA_SP_REGNUM): Delete.
2952 * rs6000-nat.c (ppc-tdep.h): Include.
2953 (fetch_registers, store_register, fetch_core_registers): Don't
2954 access registers[] directly. Instead, use supply_register() or
2955 regcache_collect() as appropriate.
2956 (find_toc_address): Format hex address with local_hex_string().
2960 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2965 * jv-exp.y: Marked all strings with _().
2966 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2968 (MethodInvocation, CastExpression, parse_number, yyerror,
2969 java_type_from_name, push_expression_name, yylex): Typo fixes.
2973 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2974 (tee_file_flush, tee_file_write, tee_file_fputs)
2975 (tee_file_isatty): New.
2976 * ui-file.h (tee_file_new): Add prototype.
2980 * ada-lang.c: Change k&r style function definitions to prototyped
2982 * ada-typeprint.c: Change k&r style function definitions to prototyped
2984 * ada-valprint.c: Change k&r style function definitions to prototyped
2989 * README: Remove reference to remote-bug.
2990 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2992 (m88k-nat.o): Delete rule.
2993 (m88k-tdep.o): Delete rule.
2994 (remote-bug.o): Delete rule.
2995 * MAINTAINERS: Mark as obsolete.
2996 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2997 * m88k-tdep.c: Make file obsolete.
2998 * config/m88k/m88k.mh: Ditto.
2999 * config/m88k/delta88v4.mh: Ditto.
3000 * config/m88k/delta88v4.mt: Ditto.
3001 * config/m88k/delta88.mt: Ditto.
3002 * config/m88k/delta88.mh: Ditto.
3003 * remote-bug.c: Ditto.
3004 * config/m88k/tm-delta88.h: Ditto.
3005 * config/m88k/nm-delta88v4.h: Ditto.
3006 * config/m88k/xm-delta88.h: Ditto.
3007 * config/m88k/xm-dgux.h: Ditto.
3008 * config/m88k/tm-m88k.h: Ditto.
3009 * config/m88k/nm-m88k.h: Ditto.
3010 * config/m88k/tm-delta88v4.h: Ditto.
3011 * m88k-nat.c: Ditto.
3012 * cxux-nat.c: Ditto.
3013 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3014 and m88*-*-* obsolete.
3015 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3020 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3021 constant. Same for local pointer variables.
3022 (extract_signed_integer): Ditto.
3023 * defs.h (extract_unsigned_integer): Update.
3024 (extract_signed_integer): Update.
3028 * regcache.c (regcache_raw_write): Change buf parameter to a
3029 constant void pointer.
3030 (regcache_raw_read): Change buf parameter to a void pointer.
3031 (legacy_write_register_gen): Change myaddr parameter a constant
3033 (supply_register): Change val parameter to a const void pointer.
3034 * regcache.h (regcache_raw_write): Update declaration.
3035 (regcache_raw_read): Update declaration.
3036 (supply_register): Update declaration.
3040 * defs.h (gdb_readline_wrapper): Declare.
3041 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3042 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3043 * top.c (gdb_readline_wrapper): New function.
3044 (command_line_input): Use it.
3048 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3049 regcache_read and regcache_write.
3050 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3051 * regcache.c: Update.
3052 * sh-tdep.c (sh64_push_arguments): Update comment.
3053 (sh_pseudo_register_read): Update.
3054 (sh_pseudo_register_write): Update.
3055 (sh4_register_read): Update.
3056 (sh4_register_write): Update.
3057 (sh64_pseudo_register_read): Update.
3058 (sh64_pseudo_register_write): Update.
3059 (sh64_register_read): Update.
3060 (sh64_register_write): Update.
3061 * i386-tdep.c (i386_extract_return_value): Update.
3062 (i386_extract_struct_value_address): Update.
3063 (i386_extract_return_value): Update.
3064 * blockframe.c (generic_read_register_dummy): Update.
3065 (generic_call_dummy_register_unwind): Update
3066 * infrun.c (write_inferior_status_register): Update.
3070 * parser-defs.h (expression_context_pc): Make this extern.
3071 (Thanks to Michael Snyder.)
3075 GDB 5.2.1 released from 5.2 branch.
3076 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3077 * README: Update to mention 5.2.1.
3081 * remote.c (remote_read_bytes): Fix check for error.
3085 * aix-thread.c (language.h): Include.
3086 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3087 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3088 Print newlines at end of debug messages.
3089 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3090 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3094 * aix-thread.c (ppc-tdep.h): Include.
3095 (special_register_p): New function.
3096 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3097 (store_regs_user_thread): Use register number information from
3098 gdbarch_tdep struct instead of hardcoded offsets relative to
3099 FIRST_UISA_SP_REGNUM.
3100 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3101 special_register_p() instead of using FPLAST_REGNUM and
3102 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3103 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3104 will be MQ's register number.
3108 * aix-thread.c (ops): Rename to aix_thread_ops.
3109 (base_ops): Rename to base_target.
3110 (ops_attach): Rename to aix_thread_attach.
3111 (ops_detach): Rename to aix_thread_detach.
3112 (ops_resume): Rename to aix_thread_detach.
3113 (ops_wait): Rename to aix_thread_wait.
3114 (ops_kill): Rename to aix_thread_kill.
3115 (init_ops): Rename to init_aix_thread_ops.
3116 (ops_fetch_register): Rename to aix_thread_fetch_register.
3117 (ops_store_register): Rename to aix_thread_store_register.
3118 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3119 (ops_thread_alive): Rename to aix_thread_thread_alive.
3120 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3121 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3122 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3123 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3124 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3125 (store_regs_lib): Rename to store_regs_user_thread.
3126 (store_regs_kern): Rename to store_regs_kernel_thread.
3130 * aix-thread.c (ops_prepare_to_store): Eliminate.
3131 (init_ops): Don't initialize ops.prepare_to_store.
3132 (store_regs_kern): Pre-fetch register buffers from child,
3133 because some registers may not be in the cache. Copy
3134 regs from register cache only if they are cached.
3135 (store_regs_lib): Copy regs from register cache only
3137 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3138 fill_gprs64): Ditto.
3142 * aix-thread.c (gdb_assert.h): Include.
3143 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3144 register sizes (from register cache) match size of buffer holding
3146 (fill_sprs32): Change parameter types to match those in the ptrace()
3148 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3149 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3153 * aix-thread.c (supply_sprs64): Cosmetic change.
3154 (supply_sprs32): Cosmetic change.
3155 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3156 (fill_sprs64): Use regcache_collect instead of read_register.
3157 (store_regs_lib): Use regcache_collect instead of
3158 read_register. Use fill_sprs32 instead of fill_sprs64,
3159 if debugging a 32-bit architecture.
3160 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3161 out of the register cache, instead of passing a pointer into
3162 the register cache directly to ptrace. Use regcache_collect
3163 insteaad of read_register.
3164 (ops_prepare_to_store): Use target_read_registers instead
3165 of read_register_bytes.
3169 * MAINTAINERS: Add self under write after approval.
3173 * ada-tasks.c: Change k&r style function definitions to prototyped
3178 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3179 * x86-64-tdep.c: Include "objfiles.h".
3180 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3185 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3186 (update_context): Initialise cfa variable.
3190 * aix-thread.c: Shorten some long lines.
3191 Bring comments into line with code spec.
3195 * infrun.c: Re-indent using gdb_indent.sh.
3199 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3200 Leave the indentation temporarily untouched, to minimize the diffs.
3204 * stabsread.c: Make os9k sections of the code obsolete,
3206 * stabsread.h: Make os9k sections of the code obsolete.
3210 * linux-low.c (regsets_store_inferior_registers): Add free()
3211 at the end of a loop to prevent memory leak.
3212 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3213 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3214 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3216 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3220 * macrocmd.c (info_macro_command): Remove newline from error
3225 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3226 (sh_gdbarch_init): Use it for sh-dsp.
3230 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3231 64-bit DWARF2 format.
3235 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3236 <sys/proc.h> when not available.
3240 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3241 * stabsread.c: Make os9k sections of the code obsolete.
3242 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3243 * config/i386/i386os9k.mt: Make file obsolete.
3244 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3245 (COMMON_OBS): Remove os9kread.o
3246 (SFILES): Remove os9kread.c.
3247 (os9kread.o, remote-os9k.o): Make target obsolete.
3248 * remote-os9k.c: Make file obsolete.
3249 * os9kread.c: Make file obsolete.
3254 * NEWS: Mention that the FR30 has been made obsolete.
3255 * fr30-tdep.c: Make file obsolete.
3256 * config/fr30/tm-fr30.h: Ditto.
3257 * config/fr30/fr30.mt: Ditto.
3258 * configure.tgt: Make fr30-*-elf obsolete.
3259 * MAINTAINERS: Make fr30-elf obsolete.
3263 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3264 found is not inside a section.
3268 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3270 (pdc_realloc): Use xrealloc() instead of realloc().
3274 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3275 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3276 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3281 * aix-thread.c (ptrace_check): Eliminate goto.
3282 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3287 * aix-thread.c (gdbcmd.h): Include.
3288 (DEBUG, DBG, DBG2, dbg): Eliminate.
3289 (debug_aix_thread): New static global.
3290 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3291 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3292 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3293 invocations to DBG and DBG2 macros to test against
3294 ``debug_aix_thread'' and call fprintf_unfiltered().
3295 (_initialize_aix_thread): Add new command "set debug aix-thread".
3300 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3301 instead of supply_register.
3305 * dwarf2cfi.c: Include "gdb_assert.h".
3306 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3308 (update_context): Do not use __func__. Add missing ``break''.
3309 (update_context): Do not use __func__.
3313 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3314 and its setting. Set gdbarch instruction printing functions
3315 directly. For non-rs6000 case use new function
3316 gdb_print_insn_powerpc.
3317 (gdb_print_insn_powerpc): New function.
3321 * NEWS: Mention that the d30v has been marked obsolete.
3322 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3323 * configure.tgt: Mark d30v-*-* as obsolete.
3324 * d30v-tdep.c: Mark file as obsolete.
3325 * config/d30v/d30v.mt: Ditto.
3326 * config/d30v/tm-d30v.h: Ditto.
3330 * ada-tasks.c (add_task_entry): replace calls to
3331 malloc() with xmalloc
3332 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3334 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3335 ada_finish_decode_line_1, all_sals_for_line
3336 ada_breakpoint_rewrite): replace calls to free() with xfree()
3340 From Nicholas Duffek (with minor changes by Martin Hunt,
3341 Louis Hamilton, and Kevin Buettner):
3342 * aix-thread.c: New file.
3346 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3347 complaint for invalid attribute class or form.
3348 (read_func_scope): DW_AT_frame_base
3349 better handling of DW_AT_block*.
3350 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3351 better handling of DW_AT_block*.
3352 (read_common_block): DW_AT_location
3353 better handling of DW_AT_block*.
3354 (read_partial_die): DW_AT_location better handling
3356 (new_symbol): DW_AT_external better handling of
3357 DW_AT_block*. Proper initialization of variable
3359 (attr_form_is_block): New function that returns true
3360 if the attribute's form is of DW_FORM_block*.
3364 * valops.c (find_method_list): Remove comment about
3365 removed STATIC_MEMFUNCP argument.
3366 (value_find_oload_method_list): Likewise.
3370 From Nicholas Duffek:
3371 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3372 target_new_objfile_hook.
3376 From Nicholas Duffek:
3377 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3382 * MAINTAINERS: Mention --enable-sim-build-warnings.
3383 (m68hc11-elf): Disable sim build warnings.
3384 (m32r-elf): Mark as broken obsolete candidate.
3385 (x86_64-linux-gnu): Mark as buildable with -Werror.
3386 (arm-elf): Change -w to ``,'' which enables warnings but not
3391 * bcache.h: Update copyright.
3392 (struct bstring, struct bcache): Move definition to "bcache.c".
3393 Replaced by opaque declaration.
3394 (bcache_xfree): Replace free_bcache.
3395 (bcache_xmalloc, bcache_memory_used): Declare.
3397 * bcache.c: Update copyright.
3398 (struct bstring, struct bcache): Moved to here from "bcache.h".
3400 (bcache_xmalloc, bcache_memory_used): New functions.
3401 (bcache_xfree): Replace function free_bcache.
3403 * Makefile.in (objfiles.o): Add $(bcache_h).
3404 (objfiles_h): Remove $(bcache_h).
3405 (symfile.o): Add $(bcache_h).
3407 * symmisc.c: Update copyright.
3408 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3409 (print_objfile_statistics): Use bcache_memory_used.
3411 * symfile.c: Include "bcache.h".
3412 (reread_symbols): Use bcache_xfree.
3413 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3414 (add_psymbol_to_list): Pass psymbol_cache by value.
3415 (add_psymbol_with_dem_name_to_list): Ditto.
3417 * objfiles.h: Update copyright.
3418 (struct bcache): Declare opaque. Do not include "bcache.h".
3419 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3421 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3423 * objfiles.c: Include "bcache.h". Update copyright.
3424 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3426 (free_objfile): Use bcache_xfree.
3430 * monitor.c (monitor_fetch_register): Make name a constant.
3431 (monitor_store_register): Same.
3436 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3437 (finish_block) For non-function blocks, hash the symbol table. For
3438 function blocks, mark the symbol table as unhashed.
3439 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3440 (msymbol_hash_iw): Likewise.
3441 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3443 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3444 (lookup_minimal_symbol): Likewise for both.
3445 * symtab.h (struct block): Add `hashtable' flag. Comment the
3447 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3448 (ALL_BLOCK_SYMBOLS): Update.
3449 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3450 (struct symbol): Add `hash_next' pointer.
3451 * symtab.c (lookup_block_symbol): Search using the hash table when
3453 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3454 (search_symbols, find_addr_symbol): Likewise.
3456 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3457 (read_dst_symtab): Likewise.
3458 * jv-lang.c (get_java_class_symtab): Likewise.
3459 * mdebugread.c: Include "gdb_assert.h".
3460 (shrink_block): Assert that the block being modified is not hashed.
3461 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3462 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3464 (dump_symtab): Recognize hashed blocks.
3465 * printcmd.c (print_frame_args): Assert that function blocks do not
3466 have hashed symbol tables.
3467 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3468 (fill_in_ada_prototype, debug_print_block): Likewise.
3469 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3473 * stack.c (print_frame): Use result of frame_address_in_block()
3474 instead of fi->pc when evaluating symbols.
3475 (backtrace_command_1): Ditto.
3479 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3482 * arm-tdep.c (arm_register_name): Make return type constant.
3486 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3488 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3489 * s390-tdep.c (s390_fp_regnum): Ditto.
3490 (s390_read_fp): Ditto.
3491 (s390_pop_frame): Ditto.
3492 (_initialize_s390_tdep): Ditto.
3493 * remote.c (get_remote_state): Ditto.
3494 * procfs.c (mappingflags): Ditto.
3495 * memattr.c (_initialize_mem): Ditto.
3496 * mcore-tdep.c (mcore_pop_frame): Ditto.
3497 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3498 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3499 * language.c (set_case_str): Ditto.
3500 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3501 * frv-tdep.c (new_variant): Ditto.
3502 (frv_stopped_data_address): Ditto.
3503 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3504 (context_alloc): Ditto.
3505 (frame_state_alloc): Ditto.
3506 (unwind_tmp_obstack_init): Ditto.
3507 (unwind_tmp_obstack_free): Ditto.
3508 (cfi_read_fp): Ditto.
3509 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3510 (cris_pop_frame): Ditto.
3511 * c-lang.c (scanning_macro_expansion): Ditto.
3512 (finished_macro_expansion): Ditto.
3513 (c_preprocess_and_parse): Ditto.
3514 * gdbarch.sh: Ditto.
3515 * gdbarch.h, gdbarch.c: Regenerate.
3516 * config/mn10200/tm-mn10200.h: Adjust indentation.
3517 * target.c: Adjust indentation.
3518 * symtab.h: Adjust indentation.
3519 * stabsread.h: Adjust indentation.
3520 * remote-es.c: Adjust indentation.
3521 * os9kread.c: Adjust indentation.
3525 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3526 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3530 * NEWS: Mention m68k, mcore multi-arching.
3531 * MAINTAINERS: Change status of m68k, mcore to reflect
3536 * valops.c (find_overload_match): Free oload_syms.
3540 Define HAVE_SYS_PROC_H if sys/proc.h exists
3541 * configure.in: Add check for sys/proc.h
3542 * config.in: Regenerate.
3543 * configure: Regenerate.
3547 * config/m68k/tm-m68k.h: Remove macros wrapped in
3548 #if !GDB_MULTI_ARCH.
3552 * config.in, configure: Regenerate.
3556 * dwarf2cfi.c: Include "gcore.h".
3557 (execute_stack_op): Fix implementation of the
3558 DW_OP_deref and DW_OP_deref_size operators by letting do their
3559 lookup in the target.
3564 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3569 Fix PR gdb/595, gdb/602
3570 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3571 Don't call value_cast, just read the vtable pointer; update comments
3576 * config/mcore/tm-mcore.h: Remove file.
3577 * config/mcore/mcore.mt: Remove definition of TM_FILE
3578 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3582 * i386bsd-tdep.c: Include "gdb_string.h".
3586 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3587 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3589 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3590 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3591 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3592 (RETVAL_REGNUM): Move macros from tm-mcore.h
3593 (mcore_reg_struct_has_addr): New function.
3594 (mcore_gdbarch_init): Added initializations for the macros removed
3599 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3600 traditonal string branding within the ELF header.
3604 * symtab.c (remove_params): New function.
3605 (make_symbol_overload_list): Use it instead of cplus_demangle.
3606 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3610 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3612 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3614 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3615 and tdep->sigtramp_end.
3616 * i386obsd-nat.c: New file.
3617 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3619 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3620 Don't call get_current_frame().
3624 * i386-nat.c (child_post_startup_inferior): New function
3625 calling i386_cleanup_dregs if
3626 I386_USE_GENERIC_WATCHPOINTS is defined.
3627 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3628 conditional to acknowledge that i386-nat.c has its
3629 own child_post_startup_inferior function.
3633 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3634 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3635 instead of MAX_REGISTER_RAW_SIZE.
3636 (i386_extract_return_value, i386_extract_struct_value_address):
3637 Convert to use regcache.
3638 (i386_gdbarch_init): Set max_register_raw_size and
3639 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3640 Set extract_return_value and extract_struct_value_address instead
3641 of their deprecated variants.
3643 Convert i386 target to generic dummy frames.
3644 * i386-tdep.c: Include "symfile.h".
3645 (i386_frameless_signal_p): Consider a function to be frameless if
3646 the pc points at the first instruction of the function.
3647 (i386_frame_chain): Handle (generic) call dummies.
3648 (i386_frame_saved_pc): Likewise.
3649 (i386_frame_init_saved_regs): Remove code dealing with call
3650 dummies on the stack.
3651 (i386_push_dummy_frame): Removed.
3652 (i386_call_dummy_words): Removed.
3653 (i386_fix_call_dummy): Removed.
3654 (i386_push_return_address): New function.
3655 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3656 parameter, and don't call get_current_frame.
3657 (i386_pop_frame): New function.
3658 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3659 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3660 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3661 call_dummy_length to 0, set call_dummy_words to NULL, set
3662 sizeof_call_dummy_words to 0, set fix_call_dummy to
3663 generic_fix_call_dummy, set pc_in_call_dummy to
3664 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3665 generic_push_dummy_frame, set push_return_address to
3666 i386_push_return_address and set frame_chain_valid to
3667 generic_file_frame_chain_valid.
3671 * gdbarch.sh (struct regcache): Add opaque declaration.
3672 (EXTRACT_RETURN_VALUE): New architecture method.
3673 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3674 * gdbarch.h, gdbarch.c: Regenerate.
3675 * arch-utils.c (legacy_extract_return_value): New function.
3676 * arch-utils.h (legacy_extract_return_value): Declare.
3677 * values.c (value_being_returned): Re-enable code handling
3678 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3679 deprecated_grub_regcache_for_registers call to block handling
3680 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3681 (EXTRACT_RETURN_VALUE): Do not define.
3685 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3686 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3687 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3688 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3689 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3690 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3691 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3692 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3693 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3694 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3695 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3696 argument so the function fits the prototype in the architecture
3698 (mcore_pop_frame): Remove argument so the function fits the
3699 prototype. Use get_current_frame instead of the argument.
3700 (mcore_push_arguments): Change type of struct_return so the
3701 function can be used in the architecture vector.
3702 (mcore_store_struct_return): Add.
3703 (mcore_frame_init_saved_regs): Add.
3704 (mcore_gdbarch_init): Add function calls to replace the macros
3705 removed from tm-mcore.h
3709 * infcmd.c (print_return_value): Remove compatibility code calling
3710 deprecated_grub_regcache_for_registers.
3712 * values.c: Include "regcache.h".
3713 (value_being_returned): Update. Use
3714 deprecated_grub_regcache_for_registers to extract the register
3716 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3717 ``struct regcache''.
3718 * Makefile.in (values.o): Add dependency on $(regcache_h).
3720 * inferior.h (run_stack_dummy): Change type of second parameter to
3721 a ``struct regcache''.
3722 * valops.c (hand_function_call): Change type of retbuf to ``struct
3723 regcache''. Allocate using regcache_xmalloc, clean using
3724 make_cleanup_regcache_xfree.
3725 * infcmd.c (run_stack_dummy): Update. Use
3726 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3728 * regcache.c (do_regcache_xfree): New function.
3729 (make_cleanup_regcache_xfree): New function.
3730 * regcache.h (make_cleanup_regcache_xfree): Declare.
3734 * event-top.c (command_line_handler): Don't read past
3735 beginning of buffer.
3739 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3741 (varobj_create): Store frame_id for root.
3742 (varobj_gen_name): Use xasprintf.
3743 (varobj_update): Save and restore frame using get_frame_id() and
3745 (create_child): Use xasprintf.
3746 (new_root_variable): Initialize frame_id.
3747 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3748 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3749 to prevent memory leak.
3753 * valops.c (hand_function_call): Move declaration of retbuf to
3754 start of function, allocate using malloc, add a cleanup but before
3755 the inf_status cleanup, cleanup the buffer. Rename local variable
3756 old_chain to inf_status_cleanup.
3760 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3762 * cli/cli-decode.c (cmd_func_p): New function.
3763 (cmd_func): New function.
3765 * command.h: Add cmd_func() and cmd_func_p().
3769 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3770 (REGISTER_SIZE): Remove.
3771 (MAX_REGISTER_RAW_SIZE): Remove.
3772 (REGISTER_VIRTUAL_TYPE): Remove.
3773 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3774 (REGISTER_NAME): Remove.
3775 (USE_GENERIC_DUMMY_FRAMES): Remove.
3776 (CALL_DUMMY): Remove.
3777 (CALL_DUMMY_START_OFFSET): Remove.
3778 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3779 (CALL_DUMMY_LOCATION): Remove.
3780 (FIX_CALL_DUMMY): Remove.
3781 (CALL_DUMMY_ADDRESS): Remove.
3782 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3783 (SAVE_DUMMY_FRAME_TOS): Remove.
3784 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3785 (mcore_register_virtual_type): New function.
3786 (mcore_register_byte): New function.
3787 (mcore_register_size): New function.
3788 (mcore_register_name): New function.
3789 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3790 macros removed from tm-mcore.h.
3791 (mcore_dump_tdep): Add.
3792 (_initialize_mcore_tdep): Add gdbarch_register call.
3796 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3797 frameless_look_for_prologue, such that we actually call this
3802 * frame.h (frame_address_in_block): New function.
3804 * blockframe.c (frame_address_in_block): New function extracted
3805 from get_frame_block().
3806 (get_frame_block): Use frame_address_in_block().
3807 (block_innermost_frame): Use frame_address_in_block() to match
3808 the frame pc address against the block boundaries rather than
3809 the frame pc directly. This prevents a failure when a frame pc
3810 is actually a return-address pointing immediately after the end
3815 * MAINTAINERS: Add self under write after approval.
3819 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3820 used in architecture vector. The default is
3821 m68k_local_breakpoint_from_pc.
3822 (m68k_local_breakpoint_from_pc): Add.
3823 (enum): Add register numbers from tm-m68k.h.
3824 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3826 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3827 GDB_MULTI_ARCH_PARTIAL.
3828 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3829 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3831 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3832 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3833 to enum in m68k-tdep.c
3837 * solib-osf.c (open_map): Compute the list of shared libraries
3838 loaded by the inferior, rather than the list of libraries loaded
3839 by GDB itself. Otherwise, GDB ends up reading the symbols from
3840 the wrong shared libraries...
3844 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3845 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3847 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3849 (FRAMELESS_SIGNAL): Remove function.
3850 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3851 i386_linux_saved_pc_after_call): Removed.
3852 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3853 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3854 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3856 * i386-tdep.c (i386_frameless_signal_p): New function.
3857 (i386_frame_chain): Deal with frameless signals.
3858 (i386_sigtramp_saved_sp): New function.
3859 (i386_frame_saved_pc): Deal with frameless signals.
3860 (i386_saved_pc_after_call): Make sure the correct value is
3861 returned just after entry into a sigtramp.
3862 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3863 i386fbsd4_sc_sp_offset): New variables.
3864 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3865 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3866 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3867 similiar to what we already did for sc_pc_offset.
3868 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3871 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3875 * config/i386/tm-x86-64linux.h: New.
3876 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3878 * config/i386/nm-x86-64.h: Rename to ...
3879 * config/i386/nm-x86-64linux.h: ... this one.
3880 * config/i386/x86-64linux.mh: Reflect the above change.
3884 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3885 with sigcontext_addr. Add sc_sp_offset.
3886 (i386bsd_sigtramp_saved_pc): Remove prototype.
3887 (i386bsd_sicontext_addr): Add prototype.
3888 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3889 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3890 (i386_svr4_sigtramp_saved_pc): Removed.
3891 (i386_svr4_sigcontext_addr): New function.
3892 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3893 Initialize tdep->sigcontext_addr instead. Initialize
3894 tdep->sc_pc_offset and tdep->sc_sp_offset.
3895 (i386_gdbarch_init): Likewise.
3896 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3898 (i386bsd_sigtramp_saved_pc): Remove function.
3899 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3900 Initialize tdep->sigcontext_addr instead. Initialize
3902 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3903 of tdep->sigtramp_saved_pc.
3904 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3905 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3908 * i386-tdep.c (i386_frameless_function_invocation,
3909 i386_frame_num_args, i386_frame_init_saved_regs,
3910 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3911 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3912 i386_extract_return_value, i386_store_return_value,
3913 i386_extract_struct_value_address, i386_register_virtual_type,
3914 i386_register_convertible, i386_register_convert_to_virtual,
3915 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3916 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3921 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3923 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3924 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3925 this macro. Include "value.h".
3929 * ada-exp.tab.c: remove as it's a generated file
3930 * ada-lex.c: remove as it's a generated file
3934 * config/i386/tm-i386.h (struct frame_info, struct
3935 frame_saved_regs, struct value, struct type): Remove forward
3938 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3939 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3940 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3941 (FILL_FPXREGSET): Define.
3943 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3945 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3946 i[3456]86-*-netbsd* case.
3947 * config/i386/tm-obsd.h: Removed.
3948 * config/i386/obsd.mt: Removed.
3949 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3951 (MH_CFLAGS): Add -DYYDEBUG=0.
3953 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3954 i386nbsd_sc_pc_offset on OpenBSD too.
3956 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3957 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3958 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3960 * i386bsd-tdep.c: Include "arch-utils.h".
3961 (i386bsd_aout_in_solib_call_trampoline): New function.
3962 (i386bsd_init_abi): Set in_solib_call_trampoline to
3963 i386bsd_aout_in_solib_call_trampoline.
3964 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3965 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3969 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3970 (struct obstack, struct bcache): Add opaque declarations.
3971 * Makefile.in (macrotab_h): Update
3975 * blockframe.c (generic_find_dummy_frame): Change return type to
3976 ``struct regcache''.
3977 (struct dummy_frame): Replace field ``registers'' with regcache, a
3978 struct regcache object.
3979 (generic_find_dummy_frame): Update.
3980 (generic_push_dummy_frame): Update. Use regcache_xfree,
3981 regcache_xmalloc and regcache_cpy.
3982 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3984 (deprecated_generic_find_dummy_frame): Update.
3985 (generic_read_register_dummy): Update. Use
3986 regcache_read_as_address.
3987 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3988 (generic_get_saved_register): Update. Use regcache_read.
3992 * Makefile.in (objfiles_h): Add $(bcache_h).
3993 * objfiles.h: Include "bcache.h".
3995 * Makefile.in (symtab_h): Remove $(bcache_h).
3996 * symtab.h: Do not include "bcache.h".
4000 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4001 generic_func_frame_chain_valid.
4005 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4006 * config/i386/tm-fbsd.h: Likewise.
4010 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4011 generic_unwind_get_saved_register.
4016 * regcache.c (supply_register): Add missing argument to
4017 register_buffer call.
4021 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4022 Solaris /bin/grep does not not like it. From Peter Schauer.
4026 * command.h (add_setshow_cmd): Declare.
4027 (add_setshow_cmd_full): Declare.
4028 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4029 returns void. Use add_setshow_cmd_full.
4030 (add_setshow_cmd_full): New function.
4031 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4032 (add_setshow_boolean_cmd): Likewise.
4036 * config/vax/tm-vax.h: Protect from multiple inclusion.
4037 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4038 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4039 * config/vax/tm-vaxbsd.h: ...here. New file.
4040 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4044 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4045 (BELIEVE_PCC_PROMOTION): Remove.
4046 (AP_REGNUM): Move to...
4047 * config/vax/nm-vax.h: ...here.
4048 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4049 (vax_breakpoint_from_pc): New function.
4050 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4051 and gdbarch_believe_pcc_promotion.
4055 * Makefile.in (vax_tdep_h): Define.
4056 (vax-tdep.o): Use $(vax_tdep_h).
4057 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4058 (vax_dump_tdep): New function.
4059 (_initialize_vax_tdep): Register vax_dump_tdep.
4060 * vax-tdep.h: Include osabi.h.
4061 (struct gdbarch_tdep): New.
4065 * frame.h (deprecated_generic_find_dummy_frame): Rename
4066 generic_find_dummy_frame.
4067 * blockframe.c (generic_find_dummy_frame): Make static.
4068 (deprecated_generic_find_dummy_frame): New function.
4069 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4070 generic_find_dummy_frame with deprecated_find_dummy_frame.
4071 (sh64_nofp_frame_init_saved_regs): Ditto.
4072 (sh_fp_frame_init_saved_regs): Ditto.
4073 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4074 (s390_frame_chain): Ditto.
4075 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4079 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4080 gdbarch vector are at the top.
4082 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4083 (FRAME_ARGS_ADDRESS): Remove.
4084 (FRAME_LOCALS_ADDRESS): Remove.
4085 (FRAME_NUM_ARGS): Remove.
4086 (FRAME_ARGS_SKIP): Remove.
4087 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4088 (m68k_gdbarch_init): Add gdbarch initializations for macros
4089 undefined in tm-m68k.h
4093 * monitor.h: Add the function regname to monitor_ops
4094 structure. This way NUM_REGS does not have to be a constant.
4095 * monitor.c (monitor_fetch_register): Added support for regname
4096 function. The function is called if the array regnames is NULL.
4097 (monitor_store_register): Same.
4098 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4100 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4101 cpu32bug_cmds.regname to point to new function.
4102 * abug-rom.c (abug_regname): Same as above.
4103 (init_abug_cmds): Same.
4104 * dbug-rom.c (dbug_regname): Same as above.
4105 (init_dbug_cmds): Same.
4106 * remote-est.c (est_regname): Same.
4107 (init_est_cmds): Same.
4108 * rom68k-rom.c (rom68k_regname): Same.
4109 (init_rom68k_cmds): Same.
4113 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4117 * infrun.c (stop_registers): Change variable's type to ``struct
4119 (xmalloc_inferior_status): Delete function.
4120 (free_inferior_status): Delete function.
4121 (normal_stop): Use regcache_cpy.
4122 (struct inferior_status): Change type of fields ``stop_registers''
4123 and ``registers'' to ``struct regcache''.
4124 (write_inferior_status_register): Use regcache_write.
4125 (save_inferior_status): Instead of calling
4126 xmalloc_inferior_status, allocate the inf_status buffer directly.
4127 Use regcache_dup_no_passthrough and regcache_dup to save the
4129 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4130 Replace the stop_registers regcache instead of overriding it. Use
4131 regcache_xfree. Instead of calling free_inferior_status, xfree
4132 the buffer directly.
4133 (discard_inferior_status): Use regcache_xfree. Instead of calling
4134 free_inferior_status, xfree the buffer directly.
4135 (build_infrun): Use regcache_xmalloc.
4136 (_initialize_infrun): Delete redundant call to build_infrun.
4138 * Makefile.in (infcmd.o): Add $(regcache_h).
4140 * infcmd.c: Include "regcache.h".
4141 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4142 obtain the address of `stop_registers' register buffer.
4143 (print_return_value): Ditto.
4145 * inferior.h (struct regcache): Add opaque declaration.
4146 (stop_registers): Change variable's declared type to ``struct
4151 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4152 * target.c (initialize_targets): Fixed typo in
4153 trust-readonly-sections `show' documentation.
4155 * main.c: Marked all strings with _().
4159 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4160 that means max CORE_ADDR+1.
4161 (lookup_mem_region): Ditto.
4162 (mem_info_command): Ditto.
4166 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4167 (REGISTER_BYTES_OK): Remove.
4168 (REGISTER_BYTES): Remove.
4169 (STORE_STRUCT_RETURN): Remove.
4170 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4171 (STORE_RETURN_VALUE): Remove.
4172 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4173 (FRAME_CHAIN): Remove.
4174 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4175 (FRAME_SAVED_PC): Remove.
4176 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4177 (m68k_store_struct_return): Add.
4178 (m68k_deprecated_extract_return_value): Add.
4179 (m68k_deprecated_extract_struct_value_address): Add.
4180 (m68k_store_return_value): Add.
4181 (m68k_frame_chain): Add.
4182 (m68k_frameless_function_invocation): Add.
4183 (m68k_frame_saved_pc): Add.
4184 (m68k_gdbarch_init): added set_gdbarch calls for new
4185 functions and deleted macros.
4189 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4190 (ALLDEPFILES): Likewise.
4191 (udiheaders): Removed.
4192 (udip2soc.o): Likewise.
4193 (udi2go32.o): Likewise.
4195 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4199 * infrun.c (_initialize_infrun): Delete unnecessary call to
4202 * regcache.h: Update comments describing the regcache_cpy family
4204 (regcache_save, regcache_restore): Delete declaration.
4205 (regcache_save_no_passthrough): Delete declaration.
4206 (regcache_restore_no_passthrough): Delete declaration.
4207 * regcache.c (regcache_save): Delete function.
4208 (regcache_save_no_passthrough): Delete function.
4209 (regcache_restore): Delete function.
4210 (regcache_restore_no_passthrough): Delete function.
4214 * config/m68k/tm-m68k.h: Fix typo.
4215 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4216 (m68k_frame_init_saved_regs): Declare.
4220 Remove some vestiges of Harris 88k support.
4221 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4222 register numbering quirk.
4223 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4224 odd symbols occurring in Harris 88k ELF targets.
4228 * gdb_locale.h: New file.
4229 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4230 (defs_h): Added gdb_locale.h.
4231 * configure, config.in: Rebuilt.
4232 * configure.in (PACKAGE): Define.
4233 * defs.h: Include gdb_locale.h.
4234 * main.c (captured_main): Call setlocale, bindtextdomain,
4239 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4240 * config/frv/frv.mt: New file.
4241 * config/frv/tm-frv.h: New file.
4242 * configure.tgt: Support frv-*-*.
4243 * Makefile.in (frv-tdep.o): New target.
4244 * frv-tdep.c: New file.
4245 * NEWS: Mention frv.
4249 * MAINTAINERS: Add self to "Write After Approval" list.
4253 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4254 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4255 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4256 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4257 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4259 * m68k-tdep.c: Include arch-utils.h
4260 (m68k_register_raw_size): Add.
4261 (m68k_register_virtual_size): Add.
4262 (m68k_register_virtual_type): Add.
4263 (m68k_register_name): Add.
4264 (m68k_stack_align): Add.
4265 (m68k_register_byte): Add.
4266 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4271 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4272 m68k_find_saved_regs.
4273 (m68k_pop_frame): Removed saved_regs structure, and replaced
4274 references to it with frame->saved_regs.
4275 (m68k_gdbarch_init): Added function calls to initialize the
4277 (m68k_fix_call_dummy): Add.
4278 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4279 (CALL_DUMMY): Remove.
4280 (CALL_DUMMY_LENGTH): Remove.
4281 (CALL_DUMMY_START_OFFSET): Remove.
4282 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4283 (FIX_CALL_DUMMY): Remove.
4284 (PUSH_DUMMY_FRAME): Remove.
4285 (POP_FRAME): Remove.
4289 * parse.c (parse_fprintf): New function used to avoid calls to
4290 fprintf in bison parser generated debug code.
4291 * parser-defs.h: Declaration of new parse_fprintf function.
4292 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4293 Set YYDEBUG to 1 by default.
4294 Set YYFPRINTF as parse_fprintf.
4298 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4300 (pointer_encoding, enum ptr_encoding): New.
4301 (execute_cfa_program): Take care about pointer encoding.
4302 (dwarf2_build_frame_info): Only call parse_frame_info for
4303 .debug_frame and .eh_frame.
4304 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4305 fixed augmentation handling, added relative addressing,
4306 ignore duplicate FDEs. Added comments.
4307 * dwarf2cfi.c: Reindented.
4311 * event-top.c (command_handler): Don't use space_at_cmd_start
4312 unless there is sbrk() on the host. Assign time and space data
4313 to union fields of the appropriate length.
4317 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4318 x86_64_register_name. Return type changed to 'const char *'.
4319 (x86_64_register_name2nr): Rename to x86_64_register_number.
4320 (x86_64_gdbarch_init): Update to reflect the change.
4321 * x86-64-tdep.h: Ditto.
4322 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4323 (supply_fpregset): Ditto.
4327 * regcache.h: Update copyright.
4328 (struct regcache, struct gdbarch): Add opaque declarations.
4329 (current_regcache): Declare global variable.
4330 (regcache_read, regcache_write): Add gdbarch parameter.
4331 (regcache_save, regcache_save_no_passthrough)
4332 (regcache_restore, regcache_restore_no_passthrough)
4333 (regcache_dup, regcache_dup_no_passthrough)
4334 (regcache_cpy, regcache_cpy_no_passthrough)
4335 (deprecated_grub_regcache_for_registers)
4336 (deprecated_grub_regcache_for_register_valid)
4337 (regcache_valid_p): Add function declarations.
4339 * regcache.c: Update copyright.
4340 (regcache_descr_handle): New global variable.
4341 (struct regcache_descr): Define.
4342 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4343 (regcache_descr, xfree_regcache_descr): New functions.
4344 (struct regcache): Define.
4345 (regcache_xmalloc, regcache_xfree): New functions.
4346 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4347 (regcache_dup, regcache_dup_no_passthrough): New functions.
4348 (regcache_valid_p, regcache_read_as_address): New functions.
4349 (deprecated_grub_regcache_for_registers): New function.
4350 (deprecated_grub_regcache_for_register_valid): New function.
4351 (current_regcache): New global variable.
4352 (register_buffer): Add regcache parameter. Update calls.
4353 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4354 (read_register_gen, write_register_gen): Update register_buffer
4355 call. Test for legacy_p instead of gdbarch_register_read_p or
4356 gdbarch_register_write_p.
4357 (regcache_collect): Update register_buffer call.
4358 (build_regcache): Rewrite. Use deprecated grub functions.
4359 (regcache_save, regcache_save_no_passthrough): New functions.
4360 (regcache_restore, regcache_restore_no_passthrough): New
4362 (_initialize_regcache): Create the regcache_data_handle. Swap
4363 current_regcache global variable.
4365 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4366 parameter to regcache_read and regcache_write calls.
4367 (sh4_register_read): Ditto.
4368 (sh64_pseudo_register_read): Ditto.
4369 (sh64_register_read): Ditto.
4370 (sh_pseudo_register_write): Ditto.
4371 (sh4_register_write): Ditto.
4372 (sh64_pseudo_register_write): Ditto.
4373 (sh64_register_write): Ditto.
4375 * defs.h (XCALLOC): Define.
4379 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4380 * m68k-tdep.c (m68k_gdbarch_init): Added.
4381 (m68k_dump_tdep): Added.
4385 * ada-lang.c (fill_in_ada_prototype): Update comment.
4389 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4391 (mips_abi_string, mips_abi_strings): New.
4392 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4393 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4394 tdep->mips_abi_string. Honor mips_abi_string. Default to
4395 O32 if no ABI is found.
4396 (mips_dump_tdep): Use mips_abi_strings.
4397 (mips_abi_update): New function.
4398 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4399 ``set mips abi'' and ``show mips abi''. Check the size of
4404 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4409 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4410 current frame using only the first stack size adjustment. All
4411 subsequent size adjustments are not considered to be part of
4412 the "static" part of the current frame.
4413 Compute the address of the saved registers relative to the
4414 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4415 in use in this frame.
4419 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4421 suggesting this solution.
4425 * config/romp/xm-rtbsd.h: Delete file.
4426 * config/romp/rtbsd.mh: Delete file.
4430 * breakpoint.c (condition_command): Post breakpoint_modify
4431 when a condition is added to an existing breakpoint.
4432 (commands_command): Likewise for commands.
4433 (set_ignore_count): Likewise for ignore counts.
4434 If no tty, do not simply return, still need to send event
4436 (ignore_command): Only print a newline if the command came
4438 Don't call breakpoints_changed, since this is now properly
4439 handled by set_ignore_count.
4443 * MAINTAINERS: Note that cris-elf target can be compiled with
4445 * cris-tdep.c (cris_register_name): Make return type constant.
4446 (cris_breakpoint_from_pc): Ditto.
4450 * frame.h (struct frame_info): Change type of context to
4455 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4457 * gdbarch.h, gdbarch.c: Regenerate.
4458 * config/mips/tm-mips.h (mips_register_name): Update.
4459 * i386-tdep.h (i386_register_name): Update.
4460 * mips-tdep.c (mips_register_name): Update
4461 * alpha-tdep.c (alpha_register_name): Update.
4462 * arch-utils.c (legacy_register_name): Update.
4463 * arch-utils.h (legacy_register_name): Update.
4464 * avr-tdep.c (avr_register_name): Update.
4465 * ia64-tdep.c (ia64_register_name): Update.
4466 * i386-tdep.c (i386_register_name): Update.
4467 * sparc-tdep.c (sparc32_register_name): Update.
4468 (sparc64_register_name): Update.
4469 (sparclite_register_name): Update.
4470 (sparclet_register_name): Update.
4471 * sh-tdep.c (sh_generic_register_name): Update.
4472 (sh_sh_register_name): Update.
4473 (sh_sh3_register_name): Update.
4474 (sh_sh3e_register_name): Update.
4475 (sh_sh_dsp_register_name): Update.
4476 (sh_sh3_dsp_register_name): Update.
4477 (sh_sh4_register_name): Update.
4478 (sh_sh64_register_name): Update.
4479 * s390-tdep.c (s390_register_name): Update.
4480 * rs6000-tdep.c (rs6000_register_name): Update.
4481 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4482 (ns32k_register_name_32382): Update.
4483 * d10v-tdep.c (d10v_ts2_register_name): Update.
4484 (d10v_ts3_register_name): Update.
4485 * xstormy16-tdep.c (xstormy16_register_name): Update.
4486 * vax-tdep.c (vax_register_name): Update.
4487 * v850-tdep.c (v850_register_name): Update.
4488 * m68hc11-tdep.c (m68hc11_register_name): Update.
4489 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4490 (am33_register_name): Update.
4494 * m68k-tdep.c: Reindented.
4498 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4499 list of predefined types.
4503 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4504 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4505 REGISTER_CONVERT_TO_RAW): Remove defines.
4506 (i386_register_virtual_type, i386_register_convertible,
4507 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4509 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4510 macros mentioned above.
4512 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4513 (i386lynx_saved_pc_after_call): Remove prototype.
4514 * i386ly-tdep.c: Include "i386-tdep.h".
4515 (i386lynx_saved_pc_after_call): Make static. Use
4516 read_memory_nobpt instead of read_memory. Use
4517 read_memory_unsigned_integer instead of read_memory_integer.
4518 (i386lynx_init_abi): New function.
4519 (i386lynx_coff_osabi_sniffer): New function.
4520 (_initialize_i386bsd_tdep): New function.
4522 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4523 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4524 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4525 (i386_fix_call_dummy): Remove prototype.
4526 * i386-tdep.c (i386_call_dummy_words): New variable.
4527 (i386_gdbarch_init): Adjust for removal of the
4528 macros mentioned above.
4532 * command.h (add_setshow_auto_boolean_cmd): Replace
4533 add_set_auto_boolean_cmd.
4534 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4535 add_set_auto_boolean_cmd.
4536 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4537 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4538 mask-address'' command.
4539 (show_mask_address): Add cmd parameter.
4540 * remote.c (add_packet_config_cmd): Update. Change type of
4541 set_func and show_func to cmd_sfunc_ftype.
4542 (_initialize_remote): Update `set remote Z-packet'
4543 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4544 (show_remote_protocol_e_packet_cmd): Ditto.
4545 (show_remote_protocol_E_packet_cmd): Ditto.
4546 (show_remote_protocol_P_packet_cmd): Ditto.
4547 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4548 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4549 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4550 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4551 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4552 (show_remote_protocol_Z_packet_cmd): Ditto.
4553 (show_remote_protocol_binary_download_cmd): Ditto.
4554 (show_remote_cmd): Pass NULL to all of above.
4558 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4559 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4560 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4561 POP_FRAME): Remove defines.
4562 (i386_push_arguments, i386_store_struct_return,
4563 i386_extract_return_value, i386_store_return_value,
4564 i386_extract_struct_value_address, i386_push_dummy_frame,
4565 i386_pop_frame): Renove prototypes.
4566 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4567 macros mentioned above.
4571 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4572 add_set_boolean_cmd.
4573 (add_setshow_cmd): New function.
4574 * command.h (add_setshow_boolean_cmd): Replace
4575 add_set_boolean_cmd.
4576 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4577 and ``set rdiromatzero''.
4578 * maint.c (_initialize_maint_cmds): Update commented out code.
4579 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4580 * target.c (initialize_targets): Update `set
4581 trust-readonly-sections'.
4582 * remote.c (_initialize_remote): Update `set remotebreak'.
4586 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4587 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4588 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4589 fit into multi-arch framework.
4590 (i386_breakpoint_from_pc): New function.
4591 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4594 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4595 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4596 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4597 (i386_frameless_function_invocation, i386_frame_num_args,
4598 i386_frame_init_saved_regs): Remove prototypes.
4599 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4600 macros mentioned above.
4604 * cli/cli-decode.c (set_cmd_cfunc): Update.
4605 (set_cmd_sfunc): Update.
4606 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4607 (set_cmd_sfunc, set_cmd_cfunc): Update.
4608 * cli/cli-decode.h: Update.
4612 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4613 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4617 * defs.h (auto_boolean): Declare enum.
4618 * command.h (cmd_auto_boolean): Delete enum.
4619 * mips-tdep.c (mask_address_var): Update.
4620 (mips_mask_address_p): Update.
4621 (show_mask_address): Update.
4622 * remote.c (struct packet_config): Update.
4623 (update_packet_config): Update.
4624 (show_packet_config_cmd): Update.
4625 (packet_ok): Update.
4626 (add_packet_config_cmd): Update.
4627 (_initialize_remote):
4628 * command.h: Update.
4629 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4630 (do_setshow_command): Update.
4631 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4632 * cli/cli-decode.h: Update.
4636 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4637 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4638 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4639 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4640 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4641 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4643 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4644 list of DJGPP COFF targets.
4646 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4647 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4648 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4649 (FP0_REGNUM): Remove define.
4650 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4651 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4652 (i386_register_virtual_size): Remove protoype.
4653 * i386-tdep.c (i386_register_virtual_size): Removed.
4654 (i386_extract_return_value, i386_store_return_value): Use
4655 FP0_REGNUM instead of NUM_FREGS to determine whether the
4656 floating-point registers are available.
4657 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4658 Adjust for removal of macros mentioned above.
4662 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4664 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4666 (supply_gregset, fill_gregset): Remove use of register keyword and
4667 remove declaration for regmap. Use I386_NUM_GREGS instead of
4668 NUM_REGS and NUM_FREGS.
4669 (FPREGSET_FSAVE_OFFSET): Remove.
4670 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4671 NUM_FREGS to determine whether the floating-point registers are
4674 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4675 gnu_store_registers): Replace usage of NUM_GREGS with
4678 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4679 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4680 usage of NUM_GREGS with I386_NUM_GREGS.
4682 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4684 * i386bsd-nat.c: Include "i386-tdep.h".
4685 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4688 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4689 and associated comment. They no longer make any sense, since we
4690 don't use this file anymore on Linux.
4692 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4693 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4694 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4695 elements in these arrays.
4696 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4701 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4702 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4706 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4707 EXTRACT_RETURN_VALUE.
4708 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4709 EXTRACT_STRUCT_VALUE_ADDRESS.
4710 * gdbarch.h, gdbarch.c: Regenerate.
4712 * values.c (value_being_returned): Handle
4713 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4714 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4716 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4717 * arm-tdep.c (arm_gdbarch_init): Update.
4718 * avr-tdep.c (avr_gdbarch_init): Update.
4719 * cris-tdep.c (cris_gdbarch_init): Update.
4720 * d10v-tdep.c (d10v_gdbarch_init): Update.
4721 * ia64-tdep.c (ia64_gdbarch_init): Update.
4722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4724 * s390-tdep.c (s390_gdbarch_init): Update.
4725 * sh-tdep.c (sh_gdbarch_init): Update.
4726 * s390-tdep.c (s390_gdbarch_init): Update.
4727 * sparc-tdep.c (sparc_gdbarch_init): Update.
4728 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4729 * v850-tdep.c (v850_gdbarch_init): Update.
4730 * vax-tdep.c (vax_gdbarch_init): Update.
4731 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4734 * config/arc/tm-arc.h: Update.
4735 * config/d30v/tm-d30v.h: Update.
4736 * config/fr30/tm-fr30.h: Update.
4737 * config/h8300/tm-h8300.h: Update.
4738 * config/h8500/tm-h8500.h: Update.
4739 * config/i386/tm-i386.h: Update.
4740 * config/i386/tm-ptx.h: Update.
4741 * config/i386/tm-symmetry.h: Update.
4742 * config/i960/tm-i960.h: Update.
4743 * config/m32r/tm-m32r.h: Update.
4744 * config/m68k/tm-delta68.h: Update.
4745 * config/m68k/tm-linux.h: Update.
4746 * config/m68k/tm-m68k.h: Update.
4747 * config/m88k/tm-m88k.h: Update.
4748 * config/mcore/tm-mcore.h: Update.
4749 * config/mips/tm-mips.h: Update.
4750 * config/mn10200/tm-mn10200.h: Update.
4751 * config/pa/tm-hppa.h: Update.
4752 * config/pa/tm-hppa64.h: Update.
4753 * config/sparc/tm-sp64.h: Update.
4754 * config/sparc/tm-sparc.h: Update.
4755 * config/sparc/tm-sparclet.h: Update.
4756 * config/z8k/tm-z8k.h: Update.
4760 * Makefile.in (i386_linux_tdep_h): Define.
4761 (i386_tdep_h, i387_tdep_h): Define.
4762 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4763 $(i386_tdep_h) and $(i387_tdep_h).
4764 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4768 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4769 Already covered by the default.
4771 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4772 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4773 (i386_gdbarch_init): Initialize long_double_format and long_double
4776 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4777 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4779 * config/i386/i386sol2.mh: ... here.
4780 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4781 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4782 (SIGCONTEXT_PC_OFFSET): Remove define.
4783 (IN_SIGTRAMP): Remove define.
4784 * i386-sol2-tdep.c: New file.
4786 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4787 * config/i386/tm-i386nw.h: Removed.
4789 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4790 USE_STRUCT_CONVENTION): Remove defines.
4791 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4792 (get_longjmp_target): Remove prototype.
4793 (IN_SIGTRAMP): Remove define.
4794 (i386bsd_in_sigtramp): Remove prototype.
4795 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4796 function. Update comment accordingly
4797 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4798 (FRAME_SAVED_PC): Remove define.
4799 (i386bsd_frame_saved_pc): Remove prototype.
4800 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4801 GET_LONGJMP_TARGET): Remove defines.
4802 (get_longjmp_target): Remove prototype.
4803 (IN_SIGTRAMP): Remove define.
4804 (i386bsd_in_sigtramp): Remove prototype.
4805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4806 function. Update comment accordingly
4807 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4808 (FRAME_SAVED_PC): Remove define.
4809 (i386bsd_frame_saved_pc): Remove prototype.
4810 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4812 (USE_STRUCT_CONVENTION): Remove prototype.
4813 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4815 (_initialize_i386bsd_nat): Revise logic to determine some
4816 constants at compile time when compiling a native GDB. Warn if
4817 things don't match up with what we expect.
4818 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4820 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4821 to use date stored in `struct gdbarch_tdep'.
4822 (i386bsd_sigcontext_offset): Remove varaible.
4823 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4824 stored in `struct gdbarch_tdep'.
4825 (i386bsd_frame_saved_pc): Make static.
4826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4827 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4828 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4829 i386fbsd4_sc_pc_offset): New variables.
4830 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4831 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4833 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4835 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4836 Modify the value of i386fbsd_sigtramp_start and
4837 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4838 i386fbsd_sigtramp_end.
4839 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4842 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4843 define to i386-linux-tdep.h.
4844 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4845 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4847 (i386_linux_register_name, i386_linux_register_byte,
4848 i386_linux_register_raw_size): Remove prototypes.
4849 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4850 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4851 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4852 TARGET_WRITE_PC): Remove defines.
4853 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4854 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4855 i386_linux_write_pc): Remove prototypes.
4856 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4857 (get_longjmp_target): Remove prototype.
4858 * i386-linux-tdep.h: New file.
4859 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4860 * i386-linux-tdep.c: Include "i386-tdep.h" and
4861 "i386-linux-tdep.h".
4862 (i386_linux_register_name, i386_linux_register_byte,
4863 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4864 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4866 (i386_linux_init_abi): New function.
4867 (_initialize_i386_linux_tdep): New function.
4869 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4870 (i386_saved_pc_after_call): Remove prototype.
4871 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4872 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4873 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4874 (i386_register_name, i386_stab_reg_to_regnum,
4875 i386_dwarf_reg_to_regnum): Remove prototypes.
4876 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4877 SIZEOF_SSE_REGS): Remove defines.
4878 (REGISTER_BYTES): Remove define.
4879 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4880 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4881 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4882 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4883 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4884 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4885 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4886 (get_longjmp_target): Remove prototype.
4887 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4888 (sigtramp_saved_pc): Remove define.
4889 (i386v4_sigtramp_saved_pc): Remove prototype.
4890 * config/i386/tm-go32.h (FRAME_CHAIN,
4891 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4892 (i386go32_frame_saved_pc): Remove prototype.
4893 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4894 (get_longjmp_target): Remove prototype.
4895 * i386-tdep.h: Include "osabi.h".
4896 (enum i386_abi): Removed.
4897 (enum struct_return): New enum.
4898 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4899 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4900 sc_pc_offset members.
4901 (i386_gdbarch_register_os_abi): Remove prototype.
4902 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4903 I386_SSE_NUM_REGS): New defines.
4904 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4905 I386_SSE_SIZEOF_REGS): New defines.
4906 (i386_register_name, i386_register_byte, i386_register_raw_size):
4908 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4909 (i386bsd_sigtramp_saved_pc): New prototype.
4910 * i386-tdep.c: Don't include "elf-bfd.h".
4911 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4912 i386_frame_chain, i386_saved_pc_after_call): Make static.
4913 (i386_frame_saved_pc): Rewrite to call architecture dependent
4914 function to deal with signal handlers. Make static.
4915 (i386go32_frame_saved_pc): Removed.
4916 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4918 (i386_get_longjmp_target): New function.
4919 (default_struct_convention, pcc_struct_convention,
4920 reg_struct_convention, valid_conventions, struct_convention): New
4922 (i386_use_struct_convention): New function.
4923 (i386v4_sigtramp_saved_pc): Renamed to
4924 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4925 (i386_pc_in_sigtramp): New function.
4926 (i386_abi_names): Removed.
4927 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4928 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4930 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4931 i386_gdbarch_register_os_abi): Removed.
4932 (struct i386_abi_handler): Removed.
4933 (i386_abi_handler_list): Removed.
4934 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4936 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4937 i386_nw_init_abi): New functions.
4938 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4939 Use set_gdbarch_xxx() calls instead of relying on macros for a
4941 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4942 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4943 Register the various architecture variants defined in this file.
4947 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4948 (struct main_type): Remove arg_types member. Update comments for
4950 (TYPE_ARG_TYPES): Remove.
4951 (TYPE_FN_FIELD_ARGS): Update.
4952 (smash_to_method_type): Update prototype.
4954 * c-typeprint.c (cp_type_print_method_args): Take method type
4955 instead of argument list. Use new argument layout. Simplify.
4956 (c_type_print_args): Use new argument layout. Simplify.
4957 (c_type_print_base): Update call to cp_type_print_method_args.
4958 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4959 argument; use die->type instead. Update call to
4960 smash_to_method_type.
4961 (read_structure_scope): Update call to dwarf2_add_member_fn.
4962 * gdbtypes.c (allocate_stub_method): Update comment.
4963 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4964 Use new argument layout.
4965 (check_stub_method): Use new argument layout. Don't count
4966 void as an argument.
4967 (print_arg_types): Update comments. Use new argument layout.
4968 (recursive_dump_type): Don't print arg_types member.
4969 * hpread.c (hpread_read_struct_type): Use new argument layout.
4970 (fixup_class_method_type): Likewise.
4971 (hpread_type_lookup): Likewise.
4972 * stabsread.c (read_type): Update calls to read_args and
4973 smash_to_method_type.
4974 (read_args): Use new argument layout. Simplify.
4975 * valops.c (typecmp): Use new argument layout. Update parameters
4976 and comments. Simplify.
4977 (hand_function_call): Use new argument layout.
4978 (search_struct_method): Update call to typecmp.
4979 (find_overload_match): Use new argument layout.
4983 * NEWS: Mention multithreaded debug support for gdbserver.
4987 * MAINTAINERS: Mention NEWS.
4991 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4992 (struct mips_objfile_private, compare_pdr_entries): New.
4993 (non_heuristic_proc_desc): Read the ".pdr" section if it
4998 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4999 (arm_debug): New static variable.
5000 (_initialize_arm_tdep): Add ``set debug arm'' command.
5004 * Makefile.in (sim_arm_h): Define.
5005 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5006 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5007 (arm_register_sim_regno): New function, map an internal REGNUM
5008 onto a simulator register number.
5009 (arm_gdbarch_init): Set register_sim_regno.
5013 * MAINTAINERS: Add self.
5017 * source.c (source_info): Mention whether the symtab has
5018 information about preprocessor macros.
5020 Call the command `info macro', not `show macro'.
5021 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5023 (_initialize_macrocmd): Register `info_macro_command' in
5024 `infolist', not `showlist'.
5028 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5029 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5030 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5031 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5032 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5034 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5035 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5036 (_initialize_mips_tdep): Remove dead code.
5037 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5038 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5039 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5040 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5041 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5042 MIPS_LAST_FP_ARG_REGNUM): Remove.
5046 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5047 (unwind_tmp_obstack_free, parse_frame_info)
5048 (update_context, cfi_read_fp, cfi_write_fp)
5049 (cfi_frame_chain, cfi_init_extra_frame_info)
5050 (cfi_virtual_frame_pointer): Use the above function.
5051 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5055 * v850-tdep.c (v850_type_is_scalar): New function.
5056 (v850_use_struct_convention): Match current gcc implementation
5057 as close as possible.
5058 (v850_push_arguments): Fix stack_offset handling. Don't write
5059 struct_addr into register. This is done by v850_store_struct_return.
5060 (v850_extract_return_value): Care for structs.
5061 (v850_store_return_value): Ditto.
5062 (v850_store_struct_return): Actually write address.
5066 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5067 without debug information too.
5071 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5072 Make multi-arch pure.
5073 * gdbarch.h, gdbarch.c: Re-generate.
5074 * arm-tdep.c (arm_print_float_info): Update.
5075 * arch-utils.h (default_print_float_info): Update.
5076 * arch-utils.c (default_print_float_info): Update.
5077 * infcmd.c (float_info): Update call.
5081 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5082 the front of the initialize list.
5086 * infrun.c (struct inferior_status): Replace fields
5087 selected_frame_address and selected_level with field
5089 (save_inferior_status): Update. Use get_frame_id.
5090 (struct restore_selected_frame_args): Delete.
5091 (restore_selected_frame): Update. Use frame_find_by_id.
5092 (restore_inferior_status): Update.
5094 * breakpoint.h (struct breakpoint): Change type of
5095 watchpoint_frame to frame_id.
5096 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5097 call to get_current_frame.
5098 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5100 (watchpoint_check): Use frame_find_by_id.
5102 * frame.h (record_selected_frame): Delete declaration.
5103 * stack.c (record_selected_frame): Delete function.
5105 * frame.h (struct frame_id): Define.
5106 (get_frame_id): Declare.
5107 (frame_find_by_id): Declare.
5108 * frame.c (frame_find_by_id): New function.
5109 (get_frame_id): New function.
5113 * ser-e7kpc.c: Fix duplicated define and call of
5114 _initialize_ser_e7000pc
5118 * signals/signals.c (target_signal_from_host): Fix #ifdef
5120 (do_target_signal_to_host): Likewise.
5124 * mips-tdep.c (mips_find_abi_section): New function.
5125 (mips_gdbarch_init): Call it.
5129 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5130 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5131 after Andrew's 2002-06-08 gdbarch change.
5135 * i386-linux-nat.c (suppy_gregset): Don't supply
5136 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5138 (fill_gregset): Don't fetch it under the same circumstances.
5142 * Makefile.in (callback_h): Define.
5143 (remote_sim_h): Update path to remote-sim.h.
5144 (remote-rdp.o): Add $(callback_h).
5145 (remote-sim.o): Use $(callback_h).
5146 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5147 * remote-rdp.c: Include "gdb/callback.h".
5151 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5152 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5156 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5157 * rdi-share/serpardr.c: Ditto.
5158 * rdi-share/unixcomm.c: Ditto.
5159 * rdi-share/serdrv.c: Ditto.
5160 * rdi-share/hostchan.h: Ditto.
5161 * rdi-share/hostchan.c: Ditto.
5162 * rdi-share/host.h: Ditto.
5163 * rdi-share/devsw.c: Ditto.
5165 * objfiles.h: Change type of obj_private to void pointer.
5166 * pa64solib.c: Update copyright. Don't include "assert.h", use
5167 strcmp instead of STREQ, use LONGEST, do not use PTR
5168 * somsolib.c: Ditto.
5170 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5171 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5172 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5176 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5177 (default_get_saved_register): Delete function.
5178 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5179 generic_unwind_get_saved_register.
5180 * gdbarch.h, gdbarch.c: Re-generate.
5184 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5185 generic_func_frame_chain_valid.
5186 * gdbarch.h, gdbarch.c: Re-generate.
5187 * blockframe.c (generic_func_frame_chain_valid): Only check
5188 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5189 passing FP to PC_IN_CALL_DUMMY.
5194 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5195 (register_gdbarch_data): Initialize init_p.
5196 (gdbarch_data): Initialize data pointer using the init function.
5197 (init_gdbarch_data): Delete function.
5198 (gdbarch_update_p): Update.
5199 (initialize_non_multiarch): Update.
5200 (struct gdbarch): Add field initialized_p.
5201 * gdbarch.h, gdbarch.c: Re-generate.
5205 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5206 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5207 better do the things actually here.
5208 * x86-64-tdep.c (x86_64_register_name2nr): New.
5209 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5210 (x86_64_gdbarch_init): Respect the above change.
5211 * x86-64-tdep.h (x86_64_register_name2nr)
5212 (x86_64_register_nr2name): Add prototypes.
5213 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5217 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5218 Delete extra braces and re-indent.
5219 (d10v_store_return_value): Char return values
5220 must be shifted over by one byte in R0.
5221 (d10v_extract_return_value): Delete extra braces, re-indent.
5225 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5226 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5227 (d10v_integer_to_address): Rewrite.
5228 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5229 the d10v specific functions which take care of converting to the
5234 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5235 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5239 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5241 * config/tm-linux.h: Ditto.
5242 * config/alpha/tm-alphalinux.h: Ditto.
5243 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5244 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5245 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5246 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5247 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5248 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5249 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5250 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5251 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5252 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5253 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5254 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5255 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5256 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5257 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5258 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5259 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5260 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5261 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5262 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5263 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5264 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5265 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5266 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5267 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5268 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5269 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5270 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5271 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5272 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5273 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5274 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5275 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5276 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5277 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5278 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5279 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5283 * ada-exp.tab.c: New file
5284 * ada-exp.y: New file
5285 * ada-lang.c: New file
5286 * ada-lang.h: New file
5287 * ada-lex.c: New file
5288 * ada-lex.l: New file
5289 * ada-tasks.c: New file
5290 * ada-typeprint.c: New file
5291 * ada-valprint.c: New file
5295 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5296 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5300 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5301 insetead of ppc-linux-tdep.o.
5302 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5303 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5308 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5309 bit register contents for little endian hosts.
5313 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5318 * gdbarch.h: Regenerate.
5322 * MAINTAINERS: Add everyone to write-after-approval list.
5326 * stack.c (frame_info): Use frame_register_unwind instead of
5327 saved_regs. Mention when the SP is on the stack or in a register.
5329 * frame.h (frame_register_unwind_ftype): Define. Document.
5330 (struct frame_info): Add field register_unwind and
5331 register_unwind_cache.
5332 (frame_register_unwind): Declare.
5333 (generic_unwind_get_saved_register): Declare.
5335 * frame.c (frame_register_unwind): New function.
5336 (generic_unwind_get_saved_register): New function.
5338 * blockframe.c (generic_call_dummy_register_unwind): New function.
5339 (frame_saved_regs_register_unwind): New function.
5340 (set_unwind_by_pc): New function.
5341 (create_new_frame): New function.
5342 (get_prev_frame): New function.
5346 * a29k-share/: Delete directory.
5347 * remote-vx29k.c: Delete file.
5351 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5352 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5356 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5357 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5360 (sparcnbsd-tdep.o): New dependency lists.
5361 * NEWS: Note new UltraSPARC NetBSD native configuration.
5362 * configure.host (sparc64-*-netbsd*): New host.
5363 * configure.tgt (sparc-*-netbsdelf*)
5364 (sparc-*-netbsd*): Set gdb_target to nbsd.
5365 (sparc64-*-netbsd*): New target.
5366 * sparc64nbsd-nat.c: New file.
5367 * sparcnbsd-nat.c: New file.
5368 * sparcnbsd-tdep.c: New file.
5369 * sparcnbsd-tdep.h: New file.
5370 * config/sparc/nbsd.mt: New file.
5371 * config/sparc/nbsd64.mh: New file.
5372 * config/sparc/nbsd64.mt: New file.
5373 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5374 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5376 * config/sparc/nbsdaout.mt: Remove.
5377 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5378 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5380 * config/sparc/nbsdelf.mt: Remove.
5381 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5382 sparc-nat.c compatiblity defines.
5383 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5384 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5385 * config/sparc/tm-nbsd64.h: New file.
5386 * config/sparc/tm-nbsdaout.h: Remove.
5387 * config/sparc/xm-nbsd.h: Remove.
5391 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5392 * sparc-tdep.c: Include osabi.h.
5393 (gdbarch_tdep): Add osabi member.
5394 (_initialize_sparc_tdep): Use gdbarch_register.
5395 (sparc_gdbarch_init): Use generic OS ABI framework.
5396 (sparc_dump_tdep): New function.
5400 * corefile.c (do_captured_read_memory_integer): Return non-zero
5402 (safe_read_memory_integer): Copy result of memory read when
5403 status is non-zero. Also, add comments.
5407 * Makefile.in (ppc_tdep_h): Define.
5410 (rs6000-tdep.o): Use $(ppc_tdep_h).
5413 (ppcnbsd-tdep.o): New dependency lists.
5414 * ppc-tdep.h: Use generic OS ABI framework.
5415 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5416 (ppc_linux_init_abi): New functions.
5417 (ppc_sysv_abi_broken_use_struct_convention)
5418 (ppc_sysv_abi_use_struct_convention)
5419 (ppc_sysv_abi_push_arguments): Move to...
5420 * ppc-sysv-tdep.c: ...here.
5421 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5422 * rs6000-tdep.c (process_note_abi_tag_sections)
5423 (get_elfosabi): Remove.
5424 (rs6000_gdbarch_init): Use generic OS ABI framework.
5425 (rs6000_dump_tdep): New function.
5426 (_initialize_rs6000_tdep): Use gdbarch_register.
5427 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5428 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5429 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5430 of ppc-linux-tdep.o.
5431 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5432 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5433 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5434 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5435 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5436 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5440 * macroscope.c (default_macro_scope): Put `void' in empty argument
5445 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5446 * arch-utils.c: Include "sim-regno.h".
5447 * gdbarch.sh: Don't include "sim-regno.h".
5448 * gdbarch.h, gdbarch.c: Regenerate.
5449 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5451 * arch-utils.h (legacy_register_sim_regno): To here.
5452 * remote-sim.c (legacy_register_sim_regno): Move function from
5454 * arch-utils.c (legacy_register_sim_regno): To here.
5458 * sim-regno.h: New file.
5459 * Makefile.in (sim_regno_h): Define.
5460 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5461 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5462 (legacy_register_sim_regno): New function.
5463 (one2one_register_sim_regno): New function.
5464 (gdbsim_fetch_register): Rewrite.
5465 (gdbsim_store_register): Only store a register when
5466 REGISTER_SIM_REGNO is valid.
5467 * d10v-tdep.c: Include "sim-regno.h".
5468 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5469 (d10v_ts3_register_sim_regno): Ditto.
5470 * gdbarch.sh: Include "sim-regno.h".
5471 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5472 * gdbarch.h, gdbarch.c: Regenerate.
5473 * arch-utils.h (default_register_sim_regno): Delete declaration.
5474 * arch-utils.c (default_register_sim_regno): Delete function.
5478 * ppcnbsd-nat.c: Rewrite.
5479 * ppcnbsd-tdep.c: New file.
5480 * ppcnbsd-tdep.h: New file.
5481 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5482 solib.o, and solib-svr4.o.
5483 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5484 nbsd-tdep.o, and corelow.o.
5488 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5489 `tr' and `sed'. Mention that `broken' targets are not expected to
5494 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5495 Let PC point right after the prologue before looking up symbols.
5499 * i386-tdep.c (i386_register_virtual_type): Return
5500 builtin_type_vec128i for SSE registers.
5502 * gdbtypes.h (builtin_type_vec128i): Declare.
5504 * gdbtypes.c (build_builtin_type_vec128i): New function.
5505 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5506 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5507 (build_gdbtypes): Initialize new builtin vector types.
5508 (_initialize_gdbtypes): Register new vector types with gdbarch.
5512 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5513 since it has been multi-arch'd.
5514 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5515 Move Alpha and VAX multi-arch news entries to same section
5516 as other multi-arch news.
5520 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5521 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5522 static. Rename some register numbers to put them in ns32k-tdep
5524 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5525 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5527 (_initialize_ns32k_tdep): Use gdbarch_register.
5528 * ns32k-tdep.h: New file.
5529 * ns32knbsd-tdep.c: New file.
5530 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5531 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5532 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5533 REGISTER_BYTES, REGISTER_BYTE): Remove.
5534 * config/ns32k/tm-ns32k.h: New file.
5535 * config/ns32k/tm-umax.h: Remove.
5539 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5540 ns32k_store_struct_return, ns32k_extract_return_value,
5541 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5543 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5544 ns32k_saved_pc_after_call.
5545 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5546 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5547 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5548 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5549 ns32k_extract_struct_value_address.
5553 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5554 ns32k_fix_call_dummy): New.
5555 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5556 ns32k_call_dummy_words.
5557 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5558 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5559 CALL_DUMMY_NARGS): Remove.
5560 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5564 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5565 ns32k_frame_saved_pc, ns32k_frame_args_address,
5566 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5567 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5568 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5569 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5570 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5571 (BREAKPOINT): Remove..
5572 (FRAME_CHAIN): Define as ns32k_frame_chain.
5573 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5574 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5575 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5576 (FRAME_FIND_SAVED_REGS): Remove.
5577 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5578 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5579 (POP_FRAME): Define as ns32k_pop_frame.
5583 * ns32k-tdep.c (ns32k_register_byte_32082,
5584 ns32k_register_byte_32382, ns32k_register_raw_size,
5585 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5587 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5588 ns32k_register_byte_32382.
5589 * config/ns32k/tm-umax.h: Update copyright years.
5590 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5591 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5592 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5593 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5594 (ns32k_get_enter_addr): Fix prototype.
5598 * ns32k-tdep.c: Update copyright years.
5599 (ns32k_register_name_32082): New function.
5600 (ns32k_register_name_32382): Ditto.
5601 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5602 (REGISTER_NAME): Define as ns32k_register_name_32382.
5603 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5604 (REGISTER_NAME): Define as ns32k_register_name_32082.
5608 * dwarf2read.c (free_line_header): Use xfree, not free.
5612 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5613 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5617 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5621 From Ross Alexander at NEC Europe:
5622 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5626 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5627 for input, rather than parse_and_eval_address.
5631 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5632 * Makefile.in (sim_d10v_h): Update definition.
5636 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5637 change `2002-05-22 Michael Snyder' below.
5638 (d10v_push_arguments): Ditto.
5639 (d10v_extract_return_value): Ditto.
5643 * macrotab.c (check_for_redefinition): Don't complain if the new
5644 definition is the same as the previous one. Take more arguments
5645 to allow the comparison.
5646 (macro_define_object, macro_define_function): Pass more arguments
5647 to check_for_redefinition.
5651 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5652 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5653 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5654 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5655 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5656 Add a temp variable to save a call (and a memory read).
5657 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5658 if possible (so that PC_IN_CALL_DUMMY will work).
5662 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5666 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5668 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5669 (dwarf2_build_frame_info): Add offset to fde->initial_location
5670 so that frames of shared libraries are mapped correctly.
5671 (execute_stack_op): Change type of 'result' from ULONGEST to
5676 * config/alpha/tm-nbsd.h: Include solib.h.
5680 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5681 assumptions about the host's byte order.
5685 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5687 * alphanbsd-tdep.c: Include solib-svr4.h.
5688 * shnbsd-tdep.c: Ditto.
5692 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5693 nbsd-tdep.h to dependency list.
5694 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5695 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5696 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5697 nbsdaout.mh and nbsdelf.mh consistently.
5698 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5699 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5700 nbsdaout.mt and nbsdelf.mh consistently.
5701 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5702 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5703 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5704 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5705 a.out shared library stuff from here...
5706 * config/nm-nbsdaout.h: ...to here.
5707 * config/tm-nbsd.h: Remove.
5708 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5709 * config/arm/nbsd.mh: Remove.
5710 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5712 * config/arm/nbsdaout.mh: New file.
5713 * config/arm/nbsdelf.mh: New file.
5714 * config/arm/nm-nbsdaout.h: New file.
5715 * config/i386/nbsd.mh: Remove.
5716 * config/i386/nbsd.mt: Remove.
5717 * config/i386/nbsdaout.mh: New file.
5718 * config/i386/nbsdaout.mt: New file.
5719 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5720 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5721 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5722 i386_register_u_addr): Remove.
5723 * config/i386/nm-nbsdaout.h: New file.
5724 * config/i386/nm-nbsdelf.h: Remove.
5725 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5726 (USE_STRUCT_CONVENTION): Remove.
5727 * config/i386/tm-nbsdaout.h: New file.
5728 * config/i386/tm-nbsdelf.h: Remove.
5729 * config/m68k/nbsd.mh: Remove.
5730 * config/m68k/nbsd.mt: Remove.
5731 * config/m68k/nbsdaout.mh: New file.
5732 * config/m68k/nbsdaout.mt: New file.
5733 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5734 * config/m68k/nm-nbsdaout.h: New file.
5735 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5736 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5737 * config/ns32k/nbsd.mh: Remove.
5738 * config/ns32k/nbsd.mt: Remove.
5739 * config/ns32k/nbsdaout.mh: New file.
5740 * config/ns32k/nbsdaout.mt: New file.
5741 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5742 * config/ns32k/nm-nbsdaout.h: New file.
5743 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5744 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5745 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5746 (SVR4_SHARED_LIBS): Remove.
5747 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5748 * config/sparc/nbsd.mh: Remove.
5749 * config/sparc/nbsd.mt: Remove.
5750 * config/sparc/nbsdaout.mh: New file.
5751 * config/sparc/nbsdaout.mt: New file.
5752 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5753 * config/sparc/nbsdelf.mt: New file.
5754 * config/sparc/nm-nbsdaout.h: New file.
5755 * config/sparc/nm-nbsdelf.h: Remove.
5756 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5757 * config/sparc/tm-nbsdaout.h: New file.
5761 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5763 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5767 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5769 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5773 * NEWS: Note new MIPS NetBSD native configuration.
5774 * configure.host (mips*-*-netbsd*): New host.
5775 * configure.tgt (mips*-*-netbsd*): New target.
5776 * mipsnbsd-nat.c: New file.
5777 * mipsnbsd-tdep.c: New file.
5778 * mipsnbsd-tdep.h: New file.
5779 * config/mips/nbsd.mh: New file.
5780 * config/mips/nbsd.mt: New file.
5781 * config/mips/nm-nbsd.h: New file.
5782 * config/mips/tm-nbsd.h: New file.
5786 * Makefile.in (SFILES): Add osabi.c.
5787 (COMMON_OBS): Add osabi.o.
5788 (osabi.o): New dependency list.
5789 * osabi.c: New file.
5790 * osabi.h: New file.
5791 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5793 * Makefile.in (alpha_tdep_h): Define and use instead of
5795 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5796 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5798 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5799 * alpha-tdep.h: Include osabi.h.
5800 (alpha_abi): Remove.
5801 (gdbarch_tdep): Use generic OS ABI framework.
5802 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5803 gdbarch_register_osabi.
5804 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5805 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5806 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5808 * Makefile.in (sh_tdep_h): Add osabi.h.
5809 * sh-tdep.h (sh_osabi): Remove.
5810 (gdbarch_tdep): Use generic OS ABI framework.
5811 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5812 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5813 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5814 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5816 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5817 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5818 gdbarch_register_osabi.
5819 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5820 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5821 (get_elfosabi): Rename to...
5822 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5823 ABI framework support routines.
5824 (arm_gdbarch_init): Use generic OS ABI framework.
5825 (arm_dump_tdep): Likewise.
5826 (_initialize_arm_tdep): Likewise.
5827 * arm-tdep.h: Include osabi.h.
5829 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5831 (arm_gdbarch_register_os_abi): Remove prototype.
5832 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5833 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5835 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5836 * mips-tdep.c: Include osabi.h.
5837 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5842 * h8300-tdep.c: Fix formatting.
5846 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5847 printing vector registers.
5851 From Fernando Nasser:
5852 * remote.c (remote_async_open_1): Re-throw the exception when the
5854 (remote_cisco_open): Ditto.
5855 (remote_open_1): Ditto.
5859 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5860 (remote_start_remote): Add uiout parameter. Pass through to
5861 remote_start_remote_dummy.
5862 (remote_open_1): Use catch_exception instead of catch_errors.
5863 (remote_async_open_1): Ditto.
5864 (remote_cisco_open): Ditto.
5868 * remote.c (remote_start_remote): Replace PTR with void pointer.
5869 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5874 * gdb_indent.sh: Allow the script to be run in the sim directory.
5878 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5879 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5881 * corelow.c (core_open): Only call set_gdbarch_from_file if
5886 * h8300-tdep.c: Add support of EXR register
5887 * config/h8300/tm-h8300.h: Ditto.
5891 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5895 * h8300-tdep.c: Change literal regnums to REGNO.
5899 * NEWS: Note addition of macro support.
5901 Expand preprocessor macros in C expressions.
5902 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5903 (scan_macro_expansion, scanning_macro_expansion,
5904 finished_macro_expansion): New function declarations.
5905 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5906 variable declarations.
5907 * parser-defs.h (expression_context_pc): New declaration.
5908 * parse.c (expression_context_pc): New variable.
5909 (parse_exp_1): Set expression_context_pc, as well as
5910 expression_context_block.
5911 * c-exp.y (yylex): If we're not already reading the result of a
5912 macro expansion, try to macro-expand the next token. When we're
5913 done scanning a macro expansion, switch back to the mainline text.
5914 Commas and `if's in a macro's expansion don't terminate the input.
5915 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5916 (macro_original_text, macro_expanded_text,
5917 expression_macro_lookup_func, expression_macro_lookup_baton): New
5919 (scan_macro_expansion, scanning_macro_expansion,
5920 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5921 c_preprocess_and_parse): New functions.
5922 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5923 c_preprocess_and_parse, instead of c_parse.
5924 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5925 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5929 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5930 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5931 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5935 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5939 * Makefile.in (sh_tdep_h): Define and use.
5940 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5941 register enum): Move to...
5942 * * sh-tdep.h: ...here.
5943 * sh-tdep.c: Include sh-tdep.h.
5944 * sh3-rom.c: Likewise.
5945 * shnbsd-tdep.c: Likewise.
5949 * arm-tdep.c: Spelling fix in comment.
5953 Add commands for manually expanding macros and showing their
5955 * macrocmd.c, macroscope.c, macroscope.h: New files.
5956 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5957 (macroscope_h): New variable.
5958 (HFILES_NO_SRCDIR): Add macroscope.h.
5959 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5960 (macroscope.o, macrocmd.o): New rules.
5962 Teach the Dwarf 2 reader to read macro information.
5963 * dwarf2read.c: #include "macrotab.h".
5964 (dwarf_macinfo_buffer): New variable.
5965 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5967 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5968 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5969 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5970 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5971 dwarf2_macro_spaces_in_definition): New complaints.
5972 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5973 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5974 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5975 the partial symbol table.
5976 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5977 from what's recorded in the partial symbol table.
5978 (read_file_scope): If the compilation unit has a
5979 `DW_AT_macro_info' attribute, read its macro information.
5980 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5985 * ser-tcp.c: Don't include <netinet/udp.h>.
5989 * MAINTAINERS: Update my email address.
5993 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5994 include file of the same name.
5998 * configure.tgt: Mark v850 as multi-arched.
5999 * config/v850/tm-v850.h: Remove file.
6000 * config/v850/v850.mt: Eliminate TM_FILE.
6004 * v850-tdep.c: Full multi-arch.
6005 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6006 Define GDB_MULTI_ARCH to 2.
6010 * p-exp.y (current_type): New static variable.
6011 Carries the type of the expression at the position that is parsed.
6012 (push_current_type, pop_current_type): Two new functions. Used
6013 to store/restore current_type in expression on specific tokens.
6014 (search_field): New static variable. Set to one after parsing a point
6015 as at that point only a FIELDNAME token should be searched.
6016 (FIELDNAME): New token. After a point only a token belonging to
6017 current_type type definition is allowed.
6018 (all over token rules): reset and change current_type according
6020 (exp '[' rule): insert implicit array index field if
6021 exp is a pascal string type.
6025 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6026 frame info. Use frame_info's saved_regs instead of matching member
6027 in extra_frame_info throughout.
6028 (v850_frame_init_saved_regs): New function.
6029 (v850_init_extra_frame_info): Move most functionality into
6030 v850_frame_init_saved_regs().
6031 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6032 (v850_frame_find_saved_regs): Remove declaration.
6033 (FRAME_FIND_SAVED_REGS): Remove definition.
6034 (v850_frame_init_saved_regs): Add declaration.
6035 (FRAME_INIT_SAVED_REGS): Add definition.
6039 * v850-tdep.c: Begin multi-arch'ing v850.
6040 (v850_target_architecture_hook): Remove function.
6041 (v850_gdbarch_init): New function. Add code previously in
6042 v850_target_architecture_hook().
6043 (_initialize_v850_tdep): Don't set target_architecture_hook.
6044 Call register_gdbarch_init() instead.
6048 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6049 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6050 (fixup_class_method_type): Likewise.
6054 Add macro structures to GDB's symbol tables. Nobody puts anything
6056 * symtab.h (struct symtab): New member: `macro_table'.
6057 * buildsym.h (pending_macros): New global variable.
6058 * buildsym.c: #include "macrotab.h".
6059 (buildsym_init): Initialize `pending_macros'.
6060 (end_symtab): If we found macro information while reading a CU's
6061 debugging info, do build a symtab structure for it. Make the
6062 symtab point to the macro information, and clear the
6063 `pending_macros' pointer which held it while we were reading the
6065 (really_free_pendings): Free any pending macro table.
6066 * objfiles.h (struct objfile): New member: `macro_cache'.
6067 * objfiles.c (allocate_objfile): Set allocate and free functions
6068 for the macro cache's objstack.
6069 (free_objfile): Empty the macro cache's obstack.
6070 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6071 set new allocate and free functions for it.
6072 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6073 free functions for the macro cache's objstack. (Why is this
6074 function building its own objfile?)
6075 * symmisc.c (print_objfile_statistics): Print statistics on the
6077 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6081 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6082 (REGISTER_U_ADDR): Delete definition.
6083 (arm_register_u_addr): Delete declaration.
6087 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6088 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6092 * regcache.c (register_valid): Revise comments refering to "Not
6093 available" and "unavailable".
6094 * frame.c (frame_register_read): Ditto.
6095 * findvar.c (value_of_register): Ditto.
6099 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6100 (remote-sim.o): Update dependencies.
6101 (d10v-tdep.o): Specify dependencies.
6102 (sim_d10v_h): Define.
6106 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6107 * macrotab.c (macro_lookup_inclusion, find_definition,
6108 new_macro_table): Same.
6110 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6111 not `! strcmp ()'. This is a dubious improvement.
6112 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6114 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6115 although it's not necessary, to avoid a warning.
6119 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6120 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6121 TYPE_INSTANCE_FLAGS.
6122 (struct main_type): New.
6123 (struct type): Move most members to struct main_type. Change
6124 cv_type and as_type to new type_chain member. Add instance_flags.
6125 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6126 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6127 (finish_cv_type): Remove prototype.
6128 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6130 (alloc_type_instance): New function.
6131 (smash_type): New function.
6132 (make_pointer_type, make_reference_type, make_function_type)
6133 (smash_to_member_type, smash_to_method_type): Call smash_type.
6134 (make_qualified_type): New function.
6135 (make_type_with_address_space): Call make_qualified_type.
6136 (make_cv_type): Likewise.
6137 (finish_cv_type): Remove unnecessary function.
6138 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6139 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6140 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6141 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6142 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6143 * hpread.c (hpread_read_struct_type): Likewise.
6144 * stabsread.c (read_struct_type): Likewise.
6148 * configure.tgt: Add a catch all sh* target, for cases like
6149 sh[2,3,4]-elf and sh-hms.
6153 * event-loop.c (create_file_handler): Don't do anything but
6154 update data when we are given a fd which we are already
6159 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6160 (update_context): Use __func__ in warnings.
6164 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6165 and tcp_close to net_open and net_close.
6166 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6167 using UDP if requested. Don't try to disable Nagle on UDP
6169 * remote.c (remote_serial_open): New function. Warn about UDP.
6170 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6174 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6178 * configure.tgt: Remove sh-hms target.
6179 * MAINTAINERS: Don't list sh-hms as a separate target.
6183 Add first preprocessor macro-expansion files.
6184 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6185 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6186 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6187 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6188 (COMMON_OBS): Add macrotab.o, macroexp.o.
6189 (macroexp.o, macrotab.o): New rules.
6193 * config/m88k/tm-m88k.h: Update copyright.
6194 (m88k_target_write_pc): Declare
6195 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6196 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6197 (SHIFT_INST_REGS): Update definition.
6198 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6199 using old definition of TARGET_WRITE_PC.
6200 * regcache.c (generic_target_write_pc): Delete code handling
6202 * gdbarch.sh (NNPC_REGNUM): Delete.
6203 * gdbarch.h, gdbarch.c: Regenerate.
6207 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6212 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6213 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6214 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6216 * c-typeprint.c (cp_type_print_method_args): Likewise.
6217 (c_type_print_args): Likewise.
6218 * d10v-tdep.c (d10v_push_arguments): Likewise.
6219 (d10v_extract_return_value): Likewise.
6220 * expprint.c (print_subexp): Likewise.
6221 * gdbtypes.c (lookup_primitive_typename): Likewise.
6222 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6223 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6224 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6225 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6226 (TYPE_VECTOR): Likewise.
6227 * hpread.c (hpread_read_struct_type)
6228 (fix_static_member_physnames, fixup_class_method_type)
6229 (hpread_type_lookup): Likewise.
6230 * mdebugread.c (parse_symbol, parse_type): Likewise.
6231 * p-lang.c (is_pascal_string_type): Likewise.
6232 * valops.c (hand_function_call): Likewise.
6233 * x86-64-tdep.c (classify_argument): Likewise.
6235 * hpread.c (hpread_read_function_type)
6236 (hpread_read_doc_function_type): Call replace_type.
6237 * dstread.c (create_new_type): Delete.
6238 (decode_dst_structure, process_dst_function): Call alloc_type.
6239 Use type access macros.
6243 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6244 the're not supported by the current architecture.
6245 (i387_fill_fxsave): Likewise.
6249 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6250 sect_index_xxx members to index the first slot in section_offsets
6251 if all of the section_offsets are zero.
6255 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6256 checked in with last change.
6260 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6261 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6266 * Makefile.in: Update dependencies.
6270 * language.c (local_hex_string_custom): Simplify. Do not depend
6271 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6273 * memattr.c (mem_info_command): Replace calls to
6274 longest_local_hex_string and longest_local_hex_string_custom.
6275 * buildsym.c (make_blockvector): Ditto.
6276 * solib.c (info_sharedlibrary_command): Ditto.
6277 * tracepoint.c (tracepoints_info): Ditto.
6278 * symtab.c (print_msymbol_info): Ditto.
6280 * language.c (local_hex_string): Delete.
6281 (local_hex_string_custom): Delete.
6282 (longest_local_hex_string): Rename to local_hex_string.
6283 (longest_local_hex_string_custom): Rename to
6284 local_hex_string_custom.
6285 * language.h (local_hex_string): Change parameter type to LONGEST.
6286 (local_hex_string_custom): Ditto.
6287 (longest_local_hex_string): Delete declaration.
6288 (longest_local_hex_string_custom): Ditto.
6290 * solib.c: Update copyright.
6291 * memattr.c: Update copyright.
6295 * arch-utils.h (legacy_register_to_value): Declare.
6296 (legacy_value_to_register): Declare.
6297 (legacy_convert_register_p): Declare.
6298 * arch-utils.c (legacy_register_to_value): New function.
6299 (legacy_value_to_register): New function.
6300 (legacy_convert_register_p): New function.
6302 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6303 (VALUE_TO_REGISTER): Define.
6304 (CONVERT_REGISTER_P): Define.
6305 * gdbarch.h, gdbarch.c: Regenerate.
6307 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6309 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6315 * Makefile.in: Update dependencies for valops.c.
6316 * valops.c: Include "gdb_assert.h".
6317 (typecmp): Skip THIS parameter to methods.
6318 (find_method_list): Remove static_memfuncp argument,
6319 update callers. Check for stub methods.
6320 (find_value_oload_method_list): Don't set *static_memfuncp.
6321 (find_overload_match): Don't check for stub methods. Assert
6322 that methods are not stubbed. Handle static methods.
6323 (value_find_oload_method_list): Remove static_memfuncp argument.
6324 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6325 to the argument list for static stub methods.
6326 * value.h (value_find_oload_method_list): Update prototype.
6330 * arch-utils.h (generic_register_size): Declare.
6331 (generic_register_raw_size, generic_register_virtual_size): Delete
6333 * arch-utils.c (generic_register_raw_size): Delete.
6334 (generic_register_size): New function.
6335 (generic_register_virtual_size): Delete.
6337 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6338 default generic_register_size.
6339 * gdbarch.h, gdbarch.c: Re-generate.
6341 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6342 register_virtual_size.
6343 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6348 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6349 * gdbarch.h, gdbarch.c: Regenerate.
6350 * gnu-v3-abi.c: Update copyright.
6351 (vtable_address_point_offset): Update.
6352 (gnuv3_rtti_type): Update.
6353 (gnuv3_baseclass_offset): Update.
6354 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6355 (init_fetch_link_map_offsets): Update.
6356 * remote.c (get_remote_state): Update.
6360 * TODO: Remove value_headof/value_from_vtable_info comment.
6361 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6362 * values.c (value_headof, value_from_vtable_info): Delete.
6363 * value.h (value_from_vtable_info): Delete prototype.
6367 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6368 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6370 (gdb_assert_h): Define.
6371 (gdb_wait_h): Define.
6372 (gdb_regex_h): Define.
6377 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6381 * nbsd-tdep.c: Fix comment.
6385 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6386 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6387 (nbsd-tdep.o): New dependency list.
6388 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6390 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6391 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6392 * nbsd-tdep.c: New file.
6393 * nbsd-tdep.h: New file.
6394 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6396 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6397 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6398 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6399 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6403 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6404 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6405 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6406 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6407 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6408 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6412 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6413 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6414 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6415 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6416 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6417 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6418 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6422 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6423 fetch_elfcore_registers to...
6424 * i386nbsd-tdep.c: ...here.
6425 (i386nbsd_use_struct_convention): Rename to...
6426 (i386nbsd_aout_use_struct_convention): ...this.
6427 (i386nbsd_supply_reg): New function.
6428 (i386nbsd_fill_reg): New function.
6429 (fetch_core_registers): Use i386nbsd_supply_reg.
6430 (fetch_elfcore_registers): Likewise.
6431 (_initialize_i386nbsd_tdep): New function.
6432 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6433 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6434 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6435 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6436 (i386nbsd_aout_use_struct_convention): ...this.
6440 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6441 (store_inferior_registers): Use shnbsd_fill_reg.
6442 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6443 sh_nbsd_supply_register): Collapse into...
6444 (shnbsd_supply_reg): ...this.
6445 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6446 (shnbsd_fill_reg): ...this.
6447 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6448 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6449 (fetch_core_registers): Use shnbsd_supply_reg.
6450 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6451 (sh_nbsd_core_fns): Rename to...
6452 (shnbsd_core_fns): ...this.
6453 (sh_nbsd_elfcore_fns): Rename to...
6454 (shnbsd_elfcore_fns): ...this.
6455 (sh_nbsd_init_abi): Rename to...
6456 (shnbsd_init_abi): ...this.
6457 (_initialize_sh_nbsd_tdep): Rename to...
6458 (_initialize_shnbsd_tdep): ...this.
6459 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6460 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6461 sh_nbsd_fill_register): Remove prototypes.
6462 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6466 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6467 (i387-nat.o): Delete dependency list.
6468 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6469 (x86-64-linux-nat.o): Likewise.
6470 * i387-nat.c: Delete file, moving contents to...
6471 * i387-tdep.c: ...here.
6472 * i387-nat.h: Rename...
6473 * i387-tdep.h: ...to this.
6474 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6475 * i386-linux-nat.c: Likewise.
6476 * i386bsd-nat.c: Likewise.
6477 * i386gnu-nat.c: Likewise.
6478 * i386nbsd-nat.c: Likewise.
6479 * i386v4-nat.c: Likewise.
6480 * x86-64-linux-nat.c: Likewise.
6481 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6482 * config/i386/go32.mh (NATDEPFILES): Likewise.
6483 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6484 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6485 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6486 * config/i386/linux.mh (NATDEPFILES): Likewise.
6487 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6488 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6489 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6490 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6494 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6495 (alphanbsd-nat.o): Remove dependency list.
6496 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6497 * alphanbsd-nat.c: Delete. Contents moved to...
6498 * alphanbsd-tdep.c: ...here.
6499 (_initialize_alphanbsd_tdep): Register core functions.
6500 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6504 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6505 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6506 (alphanbsd-nat.o): Likewise.
6507 (alphabsd-tdep.o): New dependency list.
6508 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6509 (fill_gregset): Use alphabsd_fill_reg.
6510 (supply_fpregset): Use alphabsd_supply_fpreg.
6511 (fill_fpregset): Use alphabsd_fill_fpreg.
6512 (fetch_inferior_registers): Use struct reg and struct fpreg
6513 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6514 and alphabsd_supply_fpreg.
6515 (store_inferior_registers): Use struct reg and struct fpreg
6516 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6517 and alphabsd_fill_fpreg.
6518 * alphabsd-tdep.c: New file.
6519 * alphabsd-tdep.h: New file.
6520 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6521 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6522 alphabsd_supply_fpreg.
6523 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6524 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6528 * mips-tdep.c (mips_double_register_type): Fix thinko.
6529 (mips_single_register_type): Ditto.
6530 * MAINTAINERS: Add self.
6534 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6535 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6536 right thing on architectures with different endianness and/or
6542 * configure.in: Change sed expression which comments out
6543 NATDEPFILES to also comment out continuation lines.
6544 * configure: Regenerate.
6548 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6553 * sh-tdep.c: Include correct file.
6557 New support for sh64-elf (sh5) target.
6559 * configure.tgt: For sh64-elf target, default to sh-elf.
6561 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6562 (struct gdbarch_tdep): Add new fields for new registers and ABI
6565 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6566 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6567 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6568 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6569 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6570 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6571 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6572 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6573 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6574 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6575 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6576 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6577 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6578 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6579 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6580 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6581 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6582 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6583 sign_extend, sh64_nofp_frame_init_saved_regs,
6584 sh64_init_extra_frame_info, sh64_get_saved_register,
6585 sh64_extract_struct_value_address, sh64_pop_frame,
6586 sh64_push_arguments, sh64_extract_return_value,
6587 sh64_store_return_value, sh64_show_media_regs,
6588 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6589 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6590 sh_sh64_register_virtual_type,
6591 sh_sh64_register_convert_to_virtual,
6592 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6593 sh64_register_read, sh64_pseudo_register_write,
6594 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6595 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6596 sh64_do_pseudo_register, sh_compact_do_registers_info,
6597 sh64_do_registers_info, sh_gdbarch_init): New functions.
6601 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6605 * linespec.c (decode_line_1): Check for a double quote after
6606 a filename correctly.
6610 Properly track the size of the current objfile's .debug_line section.
6611 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6612 (DWARF_LINE_SIZE): New macro.
6613 (dwarf2_build_psymtabs_hard): Record the line section's size in
6614 the partial symbol table.
6615 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6620 * ia64-tdep.c: Handle breakpoints on L instruction type
6621 in MLX instruction bundle by moving the breakpoint to
6622 the third slot (X instruction type) as L holds only data.
6626 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6627 (process_one_symbol): Complain about discarding local symbols
6628 due to a misplaced N_LBRAC entry.
6633 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6634 decrease the depth we are at, in the case of templates.
6638 * mips-tdep.c (mips_float_register_type): New function.
6639 (mips_double_register_type): New function.
6640 (mips_print_register): Use them.
6641 (do_fp_register_row): Likewise.
6645 * signals/signals.c (signals): Remove conditional compilation around
6646 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6647 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6651 * remote-rdp.c (remote_rdp_can_run): Remove.
6655 * jv-valprint.c (java_val_print): Handle `char' as a special case
6660 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6661 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6662 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6663 str r(0123),[sp,#nn].
6664 (arm_skip_prologue): Ditto. Also make disassembly
6665 order-independent by placing it in a loop.
6669 * stabsread.c (read_type): Add recognition for new attribute:
6670 "@V;" means that an array type is actually a vector.
6671 This is analogous to the vector flag that's been added to dwarf2.
6675 * i386-tdep.h (i386_abi): New enum.
6676 (struct gdbarch_tdep): Replace os_ident member with abi.
6677 (i386_gdbarch_register_os_abi): New prototype.
6678 * i386-tdep.c (i386_abi_names): New array.
6679 (process_note_abi_tag_sections): Removed.
6680 (process_note_sections): New function.
6681 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6682 (struct i386_abi_handler): New struct.
6683 (i386_abi_handler_list): New variable.
6684 (i386_gdbarch_register_os_abi): New function.
6685 (i386_gdbarch_init): Adapt for the changes given above.
6689 * gregset.h: Say "GNU/Linux".
6693 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6694 (build_gdbtypes): Build builtin_type_v2_float.
6695 (_initialize_gdbtypes): Register new builtin type.
6699 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6700 (clear_gdbarch_swap): New function.
6701 (initialize_non_multiarch): Call.
6702 (gdbarch_update_p): Before calling init(), swap out and clear the
6703 existing architecture.
6704 * gdbarch.c: Regenerate.
6708 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6713 * sh-nbsd-nat.c: Rename to...
6714 * shnbsd-nat.c: ...this.
6715 * sh-nbsd-tdep.c: Rename to...
6716 * shnbsd-tdep.c: ...this.
6717 * sh-nbsd-tdep.h: Rename to...
6718 * shnbsd-tdep.h: ...this.
6719 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6720 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6724 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6725 concatenation for command help messages.
6729 * NEWS: Note new sh*-*-netbsdelf* configuration.
6730 * configure.host: Set gdb_host_cpu to sh for all sh*.
6731 (sh*-*-netbsdelf*): New host.
6732 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6733 (sh*-*-netbsdelf*): New target.
6734 * sh-nbsd-nat.c: New file.
6735 * sh-nbsd-tdep.c: New file.
6736 * sh-nbsd-tdep.h: New file.
6737 * config/sh/nbsd.mh: New file.
6738 * config/sh/nbsd.mt: New file.
6739 * config/sh/nm-nbsd.h: New file.
6740 * config/sh/tm-nbsd.h: New file.
6744 * sh-tdep.c (sh_osabi_names): Declare.
6745 (process_note_abi_tag_sections): New function.
6746 (get_elfosabi): Ditto.
6747 (sh_gdbarch_register_os_abi): Ditto.
6748 (sh_dump_tdep): Ditto.
6749 _initialize_sh_tdep): Use gdbarch_register to register
6750 sh_gdbarch_init and sh_dump_tdep.
6751 * config/sh/tm-sh.h (sh_osabi): Declare.
6752 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6756 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6757 (thumb_scan_prologue): Ditto.
6758 (arm_find_callers_reg): Ditto.
6759 (arm_frame_chain): Ditto.
6760 (arm_init_extra_frame_info): Ditto.
6761 (arm_frame_saved_pc): Ditto.
6762 (arm_pop_frame): Ditto.
6763 (arm_push_return_address): New function.
6764 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6765 call_dummy_location, call_dummy_breakpoint_offset_p,
6766 call_dummy_breakpoint_offset, call_dummy_p,
6767 call_dummy_stack_adjust_p, call_dummy_words,
6768 sizeof_call_dummy_words, call_dummy_start_offset,
6769 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6770 call_dummy_address, push_return_address and push_dummy_frame for
6771 generic dummy frames.
6775 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6776 size computation for alloca.
6777 (sh_fp_frame_init_saved_regs): Likewise.
6781 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6782 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6783 * arm-tdep.c (arm_store_return_value): Use them.
6784 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6785 * remote-rdp.c (remote_rdp_fetch_register): Use
6786 ARM_MAX_REGISTER_RAW_SIZE.
6787 (remote_rdp_store_register): Likewise.
6791 * dwarf2cfi.c: Code cleanup, removed unused variables,
6792 added default labels to switch {} statements.
6793 * x86-64-tdep.c: Ditto.
6794 * x86-64-linux-nat.c: Ditto.
6798 * solib.h: Protect against multiple inclusion.
6802 Add first preprocessor macro-expansion files.
6803 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6804 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6805 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6806 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6807 (COMMON_OBS): Add macrotab.o, macroexp.o.
6808 (macroexp.o, macrotab.o): New rules.
6810 Separate the job of reading the line number info statement program
6811 header (...expialidocious) out into its own function.
6812 * dwarf2read.c (struct line_head, struct filenames, struct
6813 directories): Replace with...
6814 (struct line_header): New structure, containing the full
6815 contents of the statement program header, including the
6816 include directory and file name tables.
6817 (read_file_scope): If we have line number info, instead of just
6818 calling dwarf_decode_lines to do all the work, call
6819 dwarf_decode_line_header first to get a `struct line_header'
6820 containing the data in the statement program header, and then
6821 pass that to dwarf_decode_lines, which will pick up where that
6822 left off. Be sure to clean up the `struct line_header' object.
6823 (dwarf_decode_line_header, free_line_header, add_include_dir,
6824 add_file_name): New functions.
6825 (dwarf_decode_lines): Move all the code to read the statement
6826 program header into dwarf_decode_line_header. Take the line
6827 header it built as the first argument, instead of the offset to
6828 the compilation unit's line number info. Use the new `struct
6829 line_header' type instead of the old structures. No need to do
6830 cleanups here now, since we don't allocate anything.
6831 (dwarf2_statement_list_fits_in_line_number_section,
6832 dwarf2_line_header_too_long): New complaints.
6836 * gdbtypes.c (init_vector_type): New function.
6837 (build_builtin_type_vec128): Simplify the representation of SIMD
6839 (build_gdbtypes): Initialize new builtin vector types.
6840 (_initialize_gdbtypes): Register new vector types with gdbarch.
6841 (builtin_type_v4_float, builtin_type_v4_int32,
6842 builtin_type_v8_int16, builtin_type_v16_int8,
6843 builtin_type_v2_int32, builtin_type_v4_int16,
6844 builtin_type_v8_int8): New (renamed) SIMD types.
6848 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6849 (i387_fill_fxsave): Likewise.
6853 * alpha-tdep.c (alpha_extract_return_value): Don't use
6854 non-constant array size in prototype.
6858 From Brian Taylor <briant at model dot com>:
6859 * ui-out.c (ui_out_field_core_addr): Use the function
6860 longest_local_hex_string_custom'to format addresses > 32 bits
6863 * ui-out.c (ui_out_field_core_addr): Update comment.
6867 * stack.c (select_and_print_frame): Make static. Delete the
6869 (func_command): Update call.
6870 (select_frame_command): Delete code computing the frame level.
6871 * frame.h (select_and_print_frame): Delete declaration.
6875 * sparc-tdep.c (sparc_get_saved_register): Comment why
6876 get_prev_frame call is safe.
6880 * frame.h (select_frame): Delete level parameter.
6881 * stack.c (select_frame): Update. Use frame_relative_level to
6882 obtain the frame's level.
6883 (select_and_print_frame): Update call.
6884 (select_frame_command): Ditto.
6885 (up_silently_base): Ditto.
6886 (down_silently_base): Ditto.
6887 * ocd.c (ocd_start_remote): Ditto.
6888 * remote-rdp.c (remote_rdp_open): Ditto.
6889 * remote-mips.c (mips_initialize): Ditto.
6890 (common_open): Ditto.
6891 * remote-e7000.c (e7000_start_remote): Ditto.
6892 * m3-nat.c (select_thread): Ditto.
6893 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6894 (child_get_current_exception_event): Ditto.
6895 * varobj.c (varobj_create): Ditto.
6896 (varobj_update): Ditto.
6897 (c_value_of_root): Ditto.
6898 * tracepoint.c (finish_tfind_command): Ditto.
6899 * corelow.c (core_open): Ditto.
6900 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6901 * thread.c (info_threads_command): Ditto.
6902 (switch_to_thread): Ditto.
6903 * infrun.c (normal_stop): Ditto.
6904 (restore_selected_frame): Ditto.
6905 (restore_inferior_status): Ditto.
6906 * breakpoint.c (insert_breakpoints): Ditto.
6907 (watchpoint_check): Ditto.
6908 (bpstat_stop_status): Ditto.
6909 (do_enable_breakpoint): Ditto.
6910 * blockframe.c (flush_cached_frames): Ditto.
6911 (reinit_frame_cache): Ditto.
6915 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6920 * gdbtypes.c (replace_type): Doc fix.
6924 * valprint.c (strcat_longest): Delete commented out function.
6929 * MAINTAINERS: Mark a29k as deleted.
6930 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6931 Move new configurations to the top.
6932 * configure.tgt: Remove a29k.
6933 * config/a29k/tm-vx29k.h: Delete.
6934 * config/a29k/vx29k.mt: Delete.
6935 * config/a29k/tm-a29k.h: Delete.
6936 * config/a29k/a29k-udi.mt: Delete.
6937 * config/a29k/a29k.mt: Delete.
6938 * a29k-tdep.c: Delete.
6939 * remote-udi.c: Delete.
6940 * remote-mm.c: Delete.
6941 * remote-eb.c: Delete.
6942 * remote-adapt.c: Delete.
6943 * Makefile.in: Remove obsolete code.
6944 * config/s390/s390x.mt: Ditto.
6945 * config/s390/s390.mt: Ditto.
6946 * config/sparc/sparclynx.mh: Ditto.
6947 * config/sparc/linux.mh: Ditto.
6948 * config/pa/hppaosf.mh: Ditto.
6949 * config/pa/hppabsd.mh: Ditto.
6950 * config/ns32k/nbsd.mt: Ditto.
6951 * config/mips/vr5000.mt: Ditto.
6952 * config/m68k/sun3os4.mh: Ditto.
6953 * config/m68k/nbsd.mt: Ditto.
6954 * config/m68k/m68klynx.mh: Ditto.
6955 * config/m32r/m32r.mt: Ditto.
6956 * config/i386/x86-64linux.mt: Ditto.
6957 * config/i386/nbsdelf.mt: Ditto.
6958 * config/i386/nbsd.mt: Ditto.
6959 * config/i386/i386lynx.mh: Ditto.
6963 * target.c (debug_print_register): New function. Handle oversize
6965 (debug_to_fetch_registers): Call.
6966 (debug_to_store_registers): Call.
6970 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6971 (read_type): Doc fix.
6972 * gdbtypes.c (replace_type): Doc fix.
6974 * stabsread.c (multiply_defined_struct): New complaint.
6975 (read_struct_type): If the type we were passed isn't empty, or
6976 incomplete, don't read the new struct type into it; complain,
6977 and return the original type unchanged. Take a new `type_code'
6978 argument, which is the type code for the new type.
6979 (read_type): Rather than storing the type's type code here, pass
6980 it as an argument to read_struct_type, and let that take care of
6981 storing it. That way, we don't overwrite the original type code,
6982 so read_struct_type can use it to decide whether we're overwriting
6983 something we shouldn't.
6984 (complain_about_struct_wipeout): New function.
6988 * gdbarch.sh: Assert that gdbarch is non-NULL.
6989 * gdbarch.c: Regenerate.
6993 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6998 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6999 (x86_64_dwarf2gdb_regno_map_length),
7000 (x86_64_dwarf2_reg_to_regnum): Added.
7001 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7002 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7003 (_initialize_x86_64_tdep): Synced with the change above.
7004 (x86_64_skip_prologue): Reformulated message.
7008 * f-exp.y: Also use new prev_lexptr variable
7009 to improve error reporting. Based on Michael Snyder
7010 2002-04-24 dated patch to c-exp.y.
7011 * jv-exp.y: Likewise.
7012 * m2-exp.y: Likewise.
7016 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7017 we are dealing with vectors.
7021 * config/m68k/tm-nbsd.h: Obvious fix,
7022 correct machine name.
7026 * p-typeprint.c (pascal_type_print_base): Add support
7027 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7031 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7032 for fondamental pascal 'char' type.
7036 * p-lang.h (is_pascal_string_type): Declaration changed,
7037 new sixth argument of type char ** added.
7038 * p-lang.c (is_pascal_string_type): Implementation
7039 changed. Args length_pos, length_size, string_pos, char_size
7040 can now be NULL. New argument arrayname set to the field
7041 name of the char array. Return value set to char array
7042 field index plus one.
7043 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7044 is_pascal_string_type function.
7048 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7050 * gdbarch.c: Regenerate.
7054 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7055 before probing for a new one. Detect errorenous gdbarch_init
7057 * gdbarch.c: Regenerate.
7061 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7062 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7063 * config/v850/tm-v850.h: Ditto. Update copyright.
7067 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7072 * arm-tdep.c: Whitespace clean-ups.
7073 (arm_skip_prologue): Fix thinko; two lines
7074 should have been removed as part of 4/24 change.
7078 * rs6000-tdep.c: Added comment describing how fpscr register
7079 numbers were chosen.
7083 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7087 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7088 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7089 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7094 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7095 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7096 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7097 not bfd-private xcoff data, to determine wordsize.
7098 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7102 GDB 5.2 released from 5.2 branch.
7106 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7107 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7108 (x86_64_register_info_table): Added comments with register numbers.
7112 * rs6000-tdep.c (rs6000_extract_return_value,
7113 rs6000_store_return_value): Handle returning vectors.
7114 (rs6000_gdbarch_init): Use
7115 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7116 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7118 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7120 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7121 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7123 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7125 * hpread.c (hpread_psymtab_to_symtab_1,
7126 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7127 with fprintf_unfiltered (gdb_stderr,...).
7129 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7131 * remote-array.c (printf_monitor, write_monitor,
7132 array_insert_breakpoint, array_remove_breakpoint ):
7133 Replace fprintf (stderr,...
7134 with fprintf_unfiltered (gdb_stderr,....
7135 * remote-es.c: Likewise.
7136 * remote-os9k.c: Likewise.
7137 * remote-st.c: Likewise.
7141 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7142 linux-proc.o and gcore.o.
7146 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7147 code without frame pointers.
7151 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7156 * target.c (do_xfer_memory): Correct reference to the new option
7157 "trust-readonly-sections".
7161 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7162 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7163 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7165 (read_array_type): Record the fact that this array type is really a
7166 vector (i.e. are passed in by value).
7170 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7171 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7172 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7173 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7174 * alpha-linux-tdep.c: Include frame.h.
7175 (alpha_linux_sigcontext_addr): New function.
7176 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7177 alpha_linux_sigcontext_addr.
7178 * alpha-osf1-tdep.c: Include gdbcore.h.
7179 (alpha_osf1_sigcontext_addr): New function.
7180 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7181 alpha_osf1_sigcontext_addr.
7182 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7183 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7187 * stack.c (selected_frame_level):
7188 (select_frame): Do not set selected_frame_level.
7189 * frame.h (selected_frame_level): Delete declaration.
7193 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7194 convert_from_func_ptr-addr when AIX / PowerOpen.
7198 * valops.c (hand_function_call): Call
7199 generic_save_call_dummy_addr.
7200 * frame.h (generic_save_call_dummy_addr): Declare.
7201 * blockframe.c (struct dummy_frame): Add fields call_lo and
7203 (generic_find_dummy_frame): Check for PC in range call_lo to
7204 call_hi instead of entry_point_address.
7205 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7206 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7207 (generic_save_call_dummy_addr): New function.
7211 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7212 sparc_skip_prologue.
7213 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7214 information to find prologue when possible.
7215 (sparc_prologue_frameless_p): Call examine_prologue directly.
7216 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7217 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7219 (SKIP_PROLOGUE): Likewise.
7223 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7224 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7225 indicate that the condition it was testing is always true.
7226 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7227 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7228 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7232 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7233 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7234 tdep->jb_pc and tdep->jb_elt_size.
7235 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7236 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7237 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7238 * alpha-nat.c (get_longjmp_target): Remove.
7239 (JB_ELEMENT_SIZE): Ditto.
7241 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7242 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7243 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7244 to alpha_get_longjmp_target.
7245 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7246 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7247 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7251 * README: Update to GDB 5.2.
7255 * gdbarch.sh (LC_ALL): Set to `c'.
7259 * avr-tdep.c: Ran through gdb_indent.sh.
7263 * MAINTAINERS: Add myself as AVR maintainer.
7264 * NEWS: Note new target avr.
7268 * Makefile.in: Add support for AVR target.
7269 * configure.tgt: Add support for AVR target.
7270 * avr-tdep.c: New file
7271 * config/avr/avr.mt: New file.
7275 * MAINTAINERS: Add myself to write-after-approval.
7277 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7279 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7280 with fprintf_unfiltered (gdb_stderr,....
7285 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7289 * p-exp.y: Also use new prev_lexptr variable
7290 to improve error reporting. Based on Michael Snyder
7291 2002-04-24 dated patch to c-exp.y.
7295 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7296 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7297 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7299 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7301 (FUNCTION_START_OFFSET): Remove.
7302 (BREAKPOINT): Ditto.
7306 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7311 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7312 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7313 alpha_linux_pc_in_sigtramp.
7314 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7315 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7316 alpha_osf1_pc_in_sigtramp.
7317 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7318 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7319 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7320 alphafbsd_pc_in_sigtramp.
7321 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7322 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7323 alphanbsd_pc_in_sigtramp.
7324 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7325 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7329 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7333 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7335 (alphanbsd-nat.o): New dependency list.
7336 (alphanbsd-tdep.o): Ditto.
7337 * NEWS: Note new native NetBSD/alpha configuration.
7338 * alphanbsd-nat.c: New file.
7339 * alphanbsd-tdep.c: Ditto.
7340 * configure.host (alpha*-*-netbsd*): New host.
7341 * configure.tgt (alpha*-*-netbsd*): New target.
7342 * config/alpha/nbsd.mh: New file.
7343 * config/alpha/nbsd.mt: Ditto.
7344 * config/alpha/nm-nbsd.h: Ditto.
7345 * config/alpha/tm-nbsd.h: Ditto.
7349 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7350 (alpha-osf1-tdep.o): New dependency list.
7351 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7352 and skip_sigtramp_frame members.
7353 * alpha-linux-tdep.c: Include gdbcore.h.
7354 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7355 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7356 * alpha-osf1-tdep.c: New file.
7357 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7359 (alpha_frame_past_sigtramp_frame): New function.
7360 (alpha_dynamic_sigtramp_offset): Ditto.
7361 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7362 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7363 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7364 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7365 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7366 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7367 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7368 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7369 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7370 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7371 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7372 to find_solib_trampoline_target.
7373 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7374 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7375 (SKIP_TRAMPOLINE_CODE): Remove.
7376 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7377 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7378 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7379 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7380 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7381 (PROC_SIGTRAMP_MAGIC): Ditto.
7382 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7383 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7384 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7385 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7386 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7390 * NEWS: Note that Alpha targets are now multi-arch.
7394 * parser-defs.h (prev_lexptr): New external variable.
7395 * parse.c (parse_exp_1): Set prev_lexptr to null before
7396 calling the language-specific parser.
7397 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7398 (yyerror): Use prev_lexptr in error reporting.
7402 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7403 * gregset.h: If FILL_FPXREGSET is defined, provide
7404 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7405 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7406 is defined, call fill_fpxregset.
7410 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7411 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7412 (supply_gregset, supply_fpregset): New functions.
7414 * gnu-nat.c (gnu_find_memory_regions): New function.
7415 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7416 (gnu_xfer_memory): Add a cast.
7420 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7421 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7422 of argument regs ("str r(0123), [r11, #-nn"]).
7423 (arm_skip_prologue): Better handling for frameless functions.
7424 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7425 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7429 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7430 NUM_PSEUDO_REGS can be used.
7434 * arch-utils.h: Update copyright.
7436 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7437 * gdbarch.h, gdbarch.c: Re-generate.
7439 * inferior.h (IN_SIGTRAMP): Delete definition.
7440 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7441 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7443 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7444 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7445 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7446 (find_proc_framesize): Ditto.
7447 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7448 (alpha_init_extra_frame_info): Ditto.
7449 * infrun.c (handle_inferior_event): Ditto.
7450 (handle_inferior_event): Ditto.
7451 (check_sigtramp2): Ditto.
7452 * blockframe.c (create_new_frame): Ditto.
7453 (get_prev_frame): Ditto.
7454 * ppc-linux-tdep.c: Update comments.
7455 * i386-linux-tdep.c: Update comments.
7456 * breakpoint.c (bpstat_what): Update comment.
7460 * i960-tdep.c (register_in_window_p): New function.
7461 (i960_find_saved_register): Use it instead of
7462 REGISTER_IN_WINDOW_P.
7463 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7465 * symtab.h (find_stab_function_addr): Kill extern.
7466 * minsyms.c (find_stab_function_addr): Remove from here...
7467 * dbxread.c: ... to here, and mark it static.
7471 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7472 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7476 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7477 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7478 (vx_write_register): Likewise.
7482 * source.c (is_regular_file): New function.
7483 (openp): Check wether file to open is a regular file
7484 to avoid opening directories.
7488 * findvar.c (extract_signed_integer): Cast printf argument
7489 to suppress format warning.
7490 (extract_unsigned_integer): Likewise.
7491 * infcmd.c (registers_info): Likewise.
7492 * top.c (get_prompt_1): Likewise.
7493 * valops.c (value_assign): Likewise.
7494 * valprint.c (print_decimal): Likewise.
7498 * c-exp.y (typebase): Support
7500 [long|long long|short] [signed|unsigned] [int|]
7504 signed [long|long long|short] int
7508 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7510 * vax-tdep.h: New file.
7511 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7512 Make several routines static.
7513 (vax_get_saved_register): New function.
7514 (vax_gdbarch_init): New function.
7515 (_initialize_vax_tdep): Register vax_gdbarch_init.
7516 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7517 Remove macros now under the control of gdbarch.
7521 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7522 Some whitespace and coding standards tweaks.
7526 * vax-tdep.c: Include regcache.h.
7527 (vax_call_dummy_words): New.
7528 (sizeof_vax_call_dummy_words): New.
7529 (vax_fix_call_dummy): New function.
7530 (vax_saved_pc_after_call): Ditto.
7531 * config/vax/tm-vax.h: Don't include regcache.h.
7532 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7533 (CALL_DUMMY): Remove.
7534 (CALL_DUMMY_WORDS): Define.
7535 (SIZEOF_CALL_DUMMY_WORDS): Define.
7536 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7540 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7544 * vax-tdep.c (vax_frame_chain): New function.
7545 (vax_push_dummy_frame): Ditto.
7546 (vax_pop_frame): Ditto.
7547 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7548 (FRAMELESS_FUNCTION_INVOCATION): Use
7549 generic_frameless_function_invocation_not.
7550 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7551 (POP_FRAME): Use vax_pop_frame.
7555 * vax-tdep.c (vax_store_struct_return): New function.
7556 (vax_extract_return_value): Ditto.
7557 (vax_store_return_value): Ditto.
7558 (vax_extract_struct_value_address): Ditto.
7559 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7560 vax_store_struct_return.
7561 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7562 (STORE_RETURN_VALUE): Use vax_store_return_value.
7563 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7567 * vax-tdep.c (vax_frame_saved_pc): New function.
7568 (vax_frame_args_address_correct): Ditto.
7569 (vax_frame_args_address): Ditto.
7570 (vax_frame_locals_address): Ditto.
7571 (vax_frame_num_args): Move code to be in proximity to
7572 other frame-related functions.
7573 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7574 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7575 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7576 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7577 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7581 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7586 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7587 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7588 (FRAME_INIT_SAVED_REGS): New macro.
7592 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7596 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7598 (fetch_osf_core_registers): Likewise.
7599 (supply_gregset): Likewise.
7603 * symfile.h (get_section_index): Define.
7604 * symfile.c (get_section_index): New function.
7605 * mdebugread.c (SC_IS_SBSS): New macro.
7606 (SC_IS_BSS): Return true for the scBss storage class only, as
7607 the scSBss storage class refers to the .sbss section.
7608 (parse_partial_symbols): Discard the symbols which associated
7609 section does not exist.
7610 Make sure to use the .sbss section index for symbols which
7611 storage class is scBss, rather than using the .bss section index.
7615 * vax-tdep.c: Update copyright years.
7616 (vax_register_name): New function.
7617 (vax_register_byte): Ditto.
7618 (vax_register_raw_size): Ditto.
7619 (vax_register_virtual_size): Ditto.
7620 (vax_register_virtual_type): Ditto.
7621 * config/vax/tm-vax.h: Update copyright years.
7622 (REGISTER_NAMES): Remove.
7623 (REGISTER_NAME): Define.
7624 (REGISTER_BYTE): Use vax_register_byte.
7625 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7626 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7627 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7631 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7633 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7637 * arch-utils.c (generic_prologue_frameless_p): Kill
7638 SKIP_PROLOGUE_FRAMELESS_P code.
7639 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7641 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7642 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7643 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7645 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7646 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7647 (sparc_gdbarch_init): Pass it to
7648 set_gdbarch_prologue_frameless_p.
7652 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7653 (alphabsd-nat.o): New dependency list.
7657 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7659 (alpha-linux-tdep.o): New dependency list.
7660 (alphafbsd-tdep.o): Likewise.
7664 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7666 * alpha-tdep.c: ...from here.
7667 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7671 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7672 prototype from here...
7673 * alpha-tdep.h: ...to here.
7677 * frame.h (selected_frame_level): Document as deprecated.
7678 (frame_relative_level): Declare.
7679 * stack.c (frame_relative_level): New function.
7680 (selected_frame_level): Document as deprecated.
7681 (select_frame): Do not set the selected_frame_level.
7683 * stack.c (frame_info, record_selected_frame): Update.
7684 (frame_command, current_frame_command): Update.
7685 (up_silently_base, up_command, down_silently_base): Update.
7686 (down_command): Update.
7687 * inflow.c (kill_command): Update.
7688 * tracepoint.c (finish_tfind_command): Update.
7689 * corelow.c (core_open): Update.
7690 * thread.c (info_threads_command): Update.
7691 (do_captured_thread_select): Update.
7692 * infcmd.c (finish_command): Update.
7693 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7697 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7701 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7706 * alphafbsd-tdep.c: Update copyright years. Include
7708 (alphafbsd_use_struct_convention): Make static.
7709 (alphafbsd_init_abi): New function.
7710 (_initialize_alphafbsd_tdep): New function.
7711 * config/alpha/tm-fbsd.h: Update copyright years.
7712 (USE_STRUCT_CONVENTION): Remove.
7716 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7717 an Alpha ABI variant.
7718 (alpha_abi_handler_list): Declare.
7719 (alpha_gdbarch_register_os_abi): New function.
7720 (alpha_gdbarch_init): Give registered ABI variant handlers a
7721 chance to tweak the gdbarch once we have set up defaults.
7722 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7726 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7727 to standard_coerce_float_to_double.
7728 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7732 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7733 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7734 from gdbarch_tdep rather than a constant.
7735 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7736 the default text address for all Alpha Unix ABIs.
7737 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7738 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7742 * alpha-tdep.h: New file. Includes several Alpha target constants
7744 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7745 let gdbarch deal with.
7746 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7747 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7749 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7750 Alpha target register names.
7751 * alphabsd-nat.c: Likewise.
7752 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7753 Alpha target register names. Make serveral routines static.
7754 (alpha_get_saved_register): New function.
7755 (alpha_abi_names): New.
7756 (process_note_abi_tag_sections): New function.
7757 (get_elfosabi): New function.
7758 (alpha_gdbarch_init): New function.
7759 (alpha_dump_tdep): New function.
7760 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7764 * frame.c (find_saved_register): Delete #ifdef
7765 HAVE_REGISTER_WINDOWS code.
7766 * config/sparc/tm-sparc.h: Update comments.
7767 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7771 * i960-tdep.c (i960_find_saved_register): New function.
7772 (i960_get_saved_register): New function.
7773 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7774 (i960_get_saved_register): Declare.
7775 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7779 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7783 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7784 instead of NUM_PSEUDO_REGS.
7788 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7789 GDB_MULTI_ARCH_PARTIAL
7790 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7791 define, let tm-sp64.h do it.
7795 * frame.c (find_saved_register): Avoid a NULL pointer
7796 dereference and actually walk the frame list.
7800 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7801 sorted in most most-recent-used order. Document.
7802 * gdbarch.h, gdbarch.c: Regenerate.
7806 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7808 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7809 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7810 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7816 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7817 (build_builtin_type_vec128): Ditto.
7818 (append_composite_type_field): Fix calculation of type length in
7823 * config/djgpp/README: Update.
7825 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7830 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7831 (alpha_setup_arbitrary_frame): ...to this.
7832 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7833 for alpha_setup_arbitrary_frame.
7837 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7838 * gdbarch.h, gdbarch.c: Regenerate.
7840 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7841 * target.h (memory_breakpoint_from_pc): Update declaration.
7842 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7844 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7845 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7846 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7847 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7848 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7849 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7850 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7851 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7852 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7853 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7854 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7855 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7857 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7859 * monitor.c (monitor_insert_breakpoint): Ditto.
7860 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7862 * config/mcore/tm-mcore.h: Update copyright.
7863 * mem-break.c: Ditto.
7864 * xstormy16-tdep.c: Ditto.
7868 * p-exp.y: Add precedence rule for '^' token.
7869 This removes the shift/reduce conflicts.
7870 Remove the comment concerning these shift/reduce conflicts.
7874 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7875 (registers_powerpc_nofp): New register set for processors
7876 without floating point unit.
7880 * MAINTAINERS: Add myself to write-after-approval.
7884 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7888 * rs6000-tdep.c (frame_initial_stack_address): Use
7889 frame_register_read to read the alloca_reg.
7893 * frame.c (find_saved_register): Find saved registers in the next
7899 * gdbarch.sh (LANG): Set to ``c''.
7903 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7907 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7910 * hpread.c (hpread_get_lntt): Add declaration.
7911 Also fix PR gdb/391.
7915 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7916 * aclocal.m4, configure: Re-generate.
7921 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7922 instead of tm_print_insn.
7926 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7930 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7931 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7932 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7936 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7937 max_user_call_depth.
7938 (init_cmd_lists): Initialize the new value;
7939 * cli/cli-script.c (execute_user_command): Limit the call depth of
7940 user defined commands. This avoids a core-dump when user commands
7941 are infinitly recursive.
7945 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7946 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7947 from tdep struct instead of DEFAULT_LR_SAVE.
7948 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7949 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7950 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7954 * Remote.c: Spelling fix.
7955 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7956 If no symbol found for "sbrk", try "_sbrk".
7957 (make_output_phdrs): Use bfd_section_name.
7958 (gcore_copy_callback): Use bfd_section_name.
7959 * eval.c: Indentation fix-ups.
7960 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7961 in case it gets applied to an address that is already
7962 in the instruction space.
7963 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7964 * symfile.c: Fix indentation, long lines.
7965 * source.c: White space fix-up.
7969 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7970 * frame.c (frame_register_read): New function. Return non-zero on
7972 (read_relative_register_raw_bytes_for_frame): Delete.
7973 (read_relative_register_raw_bytes): Delete.
7974 * frame.h (frame_register_read): Declare.
7975 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7977 * infcmd.c (do_registers_info): Ditto.
7978 * hppa-tdep.c: Ditto.
7979 * rs6000-tdep.c: Ditto.
7980 * h8500-tdep.c: Ditto.
7981 * mips-tdep.c: Ditto.
7982 * h8300-tdep.c: Ditto.
7983 * z8k-tdep.c: Ditto.
7988 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7994 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8000 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8001 register sets for these processor variants.
8005 * regformats/reg-ppc.dat: Support FPSCR.
8009 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8010 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8011 Add fpscr as an invalid/unfetchable register.
8012 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8013 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8014 (fill_fpregset): Add support for register fpscr.
8015 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8016 (fill_gregset): Account for the fact that register ``mq'' might
8018 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8019 (registers_power): Add fpscr to register set at slot 71.
8020 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8021 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8025 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8026 * configure: Regenerate.
8027 * config.in: Regenerate.
8028 * acconfig.h: Add define for _SYSCALL32.
8029 * core-sol2.c: Remove #define _SYSCALL32.
8030 * solib-legacy.c: Remove #define _SYSCALL32.
8034 * stack.c (select_frame): Cleanup internal error message, do not
8039 * stack.c (select_frame): Check that selected_frame and the
8040 specified level are as expected.
8041 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8043 * frame.h (struct frame_info): Add field `level'. Update
8045 Work-in-progress PR gdb/464.
8049 * maint.c (maint_print_section_info): Rename print_section_info.
8050 (print_bfd_section_info, print_objfile_section_info): Update.
8051 * inferior.h (struct gdbarch): Add opaque declaration.
8052 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8053 * gdbarch.h: Regenerate.
8057 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8058 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8059 (kernel_u_size): Added.
8060 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8061 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8065 * valarith.c (find_size_for_pointer_math): New function, either returns
8066 the size for a pointer's target, returns 1 for void *, or errors for
8068 (value_add, value_sub): use find_size_for_pointer_math.
8072 * linux-low.c (linux_look_up_symbols): New hook.
8073 (linux_target_ops): Add linux_look_up_symbols.
8074 * remote-utils.c (decode_address): New function.
8075 (look_up_one_symbol): New function.
8076 * server.c (handle_query): Call target look_up_symbols hook.
8077 * server.h (look_up_one_symbol): Add prototype.
8078 * target.h (struct target_ops): Add look_up_symbols hook.
8082 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8083 override FP_REGNUM with frame->fp. Update copyright.
8084 * parse.c (num_std_regs, std_regs): Delete.
8085 (target_map_name_to_register): Do not search std_regs. Update
8086 function description.
8087 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8088 declarations. Update copyright.
8093 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8094 after the last symbol in a block.
8098 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8099 is non zero as a found symbol.
8103 * findvar.c: Include "builtin-regs.h".
8104 (value_of_register): Call value_of_builtin_reg when applicable.
8105 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8106 (target_map_name_to_register): Call
8107 builtin_reg_map_name_to_regnum.
8108 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8109 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8110 (builtin_regs_h): Define.
8111 (builtin-regs.o): New target.
8112 (findvar.o): Add $(builtin_regs_h).
8113 * builtin-regs.c, builtin-regs.h: New files.
8114 * std-regs.c: New file.
8115 Partial fix for PR gdb/251.
8119 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8120 it's no longer required.
8124 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8129 * rs6000-tdep.c (rs6000_software_single_step): Use
8130 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8131 and size. Use target_insert_breakpoint() and
8132 target_remove_breakpoint() to insert and remove breakpoints
8133 instead of explicit memory reads and writes.
8137 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8138 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8139 ELF_OBJECT_FORMAT ifdef.
8144 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8149 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8150 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8154 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8155 s/asprintf/xasprintf/.
8156 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8160 I believe Jeff Law denies responsability for this one:
8161 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8162 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8163 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8164 Work-around for PR gdb/366.
8168 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8169 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8170 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8174 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8175 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8180 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8185 * README (Reporting Bugs in GDB): Document the bug web page as the
8186 prefered way of submitting bugs.
8191 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8193 * gdbarch.h, gdbarch.c: Re-generate.
8197 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8198 buffer to regcache_collect.
8202 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8203 * gdbarch.c, gdbarch.h: Re-generate.
8207 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8208 declaration. Fix -Werror.
8212 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8213 * gdbarch.c: Regenerate.
8217 * breakpoint.c (clear_command): Rewrite middle section to
8218 combine two loops with identical control conditions.
8219 Add a cleanup to eliminate a memory leak.
8220 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8224 * solib-svr4.c (bkpt_names): Add "__start".
8228 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8229 as test for 64 bit target.
8233 * h8500-tdep.c (h8500_write_fp): Delete function.
8234 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8235 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8236 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8238 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8239 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8241 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8242 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8243 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8244 (d10v_write_fp): Delete function.
8245 * inferior.h (write_fp, generic_target_write_fp): Delete
8247 * regcache.c (generic_target_write_fp): Delete function.
8248 (write_fp): Delete function.
8249 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8250 * gdbarch.h, gdbarch.c: Regenerate.
8251 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8252 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8253 (sparc64_write_fp): Delete declaration.
8254 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8255 (h8500_write_fp): Delete declaration.
8259 * sparc-tdep.c (sparc64_write_fp): Delete.
8260 (sparc_push_dummy_frame): Replace write_fp call with code to store
8262 (sparc_gdbarch_init): Do not initialize write_fp.
8266 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8271 * stack.c (get_selected_block): Add new argument `addr_in_block',
8272 used to return the exact code address we used to select the block,
8274 * blockframe.c (get_frame_block, get_current_block): Same.
8275 * frame.h (get_frame_block, get_current_block,
8276 get_selected_block): Update declarations.
8277 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8278 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8282 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8287 * utils.c (xfullpath): New function.
8288 * defs.h (xfullpath): Add declaration.
8289 * source.c (openp): Use xfullpath in place of gdb_realpath to
8290 avoid resolving the basename part of filenames when the
8291 associated file is a symbolic link. This fixes a potential
8292 inconsistency between the filenames known to GDB and the
8293 filenames it prints in the annotations.
8294 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8295 to be able to match a filename with either the real filename, or
8296 the name of any symbolic link to this file.
8297 (lookup_partial_symtab): Ditto.
8301 * breakpoint.c: Add support for hardware breakpoints in overlays.
8302 (overlay_events_enabled): New state variable.
8303 (insert_breakpoints): Use overlay_events_enabled to decide
8304 whether to attempt to set a breakpoint at the overlay load addr.
8305 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8306 (remove_breakpoint): Use overlay_events_enabled to decide
8307 whether breakpoints need to be removed from overlay load addr.
8308 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8309 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8310 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8311 disable_overlay_breakpoints): Update overlay_events_enabled.
8315 * dwarf2read.c (struct function_range): New.
8316 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8317 (check_cu_functions): New.
8318 (read_file_scope): Initialize global function lists.
8319 Call dwarf_decode_line after processing children.
8320 (read_func_scope): Add to global function list.
8321 (dwarf_decode_lines): Call check_cu_functions everywhere
8322 record_line is called. Call record_line with a linenumber
8323 of 0 to mark sequence ends.
8327 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8328 change sync with glibc.
8332 * configure.in: Call AC_C_INLINE.
8333 * configure: Regenerated.
8337 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8338 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8342 * NEWS: Mention gcore support on FreeBSD/i386.
8344 * fbsd-proc.c: New file.
8345 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8346 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8348 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8353 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8354 unescaped newlines in string literals, but newer ones don't. So
8360 * cli/cli-dump.c: New file. Dump memory to file,
8361 restore file to memory.
8362 * cli/cli-dump.h: New file.
8363 * Makefile.in: Add rules, dependencies for cli-dump.o.
8364 * NEWS: Mention new commands.
8368 * symfile.c (symbol_file_add): Move test for null symbols to later.
8372 From veksler at il.ibm.com:
8373 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8374 the xstrduped original path.
8379 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8380 * infcmd.c (_initialize_infcmd): Ditto.
8381 * language.c (_initialize_language): Ditto.
8382 * symfile.c (_initialize_symfile): Ditto.
8383 * top.c (_init_main): Ditto.
8384 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8388 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8389 vector registers handling.
8390 (skip_prologue): Handle new AltiVec instructions. Fill in new
8391 fields of frame data.
8392 (frame_get_saved_regs): Fill in information for AltiVec registers.
8396 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8397 a function; leave this macro here to invoke that function.
8398 (symbol_init_mangled_name): Declaration for that function.
8399 * symtab.c (symbol_init_mangled_name): New function.
8403 * valarith.c: Replace strerror with safe_strerror.
8404 * tracepoint.c: Ditto.
8406 * go32-nat.c: Ditto.
8412 * event-top.c (command_line_handler): Remove useless if.
8416 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8421 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8422 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8423 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8424 (x86_64_linux_dr_get_status, supply_gregset),
8425 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8426 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8427 (x86_64_register_info_table): Add.
8428 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8429 (x86_64_register_raw_size, x86_64_register_virtual_type),
8430 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8431 general x86_64_register_info_table.
8432 (i386_gdbarch_init): gdbarch_register_bytes is now set
8433 dynamicaly during initialization.
8434 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8435 * gdbserver/linux-x86-64-low.c: Ditto.
8439 * gdbserver/server.c (main): Call target_signal_to_host_p
8440 and target_signal_to_host on signals received from the remote.
8441 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8442 target_signal_from_host on signals sent to the remote.
8443 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8444 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8448 * signals/signals.c: Include "server.h" in gdbserver build.
8449 (target_signal_from_name): Don't use STREQ.
8450 (_initialize_signals): Likewise. Don't include function in
8455 * signals.c: Moved to...
8456 * signals/signals.c: Here.
8457 * Makefile (signals.o): Update.
8461 * somread.c (som_symtab_read): Remove some commented out code and
8462 updated related comments. Do not set the minimal symbol table to
8463 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8464 in a dynamic executable.
8465 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8466 where we are unable to find the minimal symbol for the given
8471 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8475 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8479 * command.h: Update copyright.
8480 (struct cmd_list_element): Replace definition with opaque
8482 (enum cmd_types): Document that it will eventually be moved to
8484 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8485 (MALLOCED_REPLACEMENT): Delete macro.
8486 * Makefile.in (cli_decode_h): Add $(command_h).
8487 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8488 * top.c: Include "cli/cli-decode.h".
8489 * completer.c: Include "cli/cli-decode.h".
8490 * maint.c: Include "cli/cli-decode.h".
8491 * cli/cli-decode.h: Include "command.h".
8492 (enum command_class): Delete.
8493 (enum cmd_types): Comment out.
8494 (enum cmd_auto_boolean): Delete.
8495 (enum var_types): Delete.
8499 * cli/cli-decode.c: Include "gdb_assert.h".
8500 (add_set_or_show_cmd): New static function.
8501 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8502 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8503 all fields, such as func, from the set command.
8507 * MAINTAINERS (sh-elf): Change warning flag to -w.
8511 * defs.h (error): Add printf format attribute.
8512 * thread-db.c (thread_from_lwp): Fix error format string.
8513 * stack.c (parse_frame_specification): Ditto.
8514 * cli/cli-decode.c (undef_cmd_error): Ditto.
8515 * scm-lang.c (scm_lookup_name): Ditto.
8516 * tracepoint.c (trace_error): Ditto.
8517 * remote-utils.c (usage): Ditto.
8518 * remote.c (compare_sections_command): Ditto.
8523 * gdbtypes.c (append_composite_type_field): New function.
8524 (init_composite_type): New function.
8525 * gdbtypes.h (append_composite_type_field): Declare.
8526 (init_composite_type): Ditto.
8530 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8532 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8533 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8534 structure returning convention for SYSV ABI case, but not
8535 for GNU/Linux, FreeBSD, or NetBSD.
8539 * symtab.h (lookup_block_symbol): Add mangled_name argument
8542 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8543 with new mangled_name argument.
8544 * linespec.c (decode_line_1): Likewise.
8545 * valops (value_of_this): Likewise.
8546 * symtab.c (lookup_transparent_type): Likewise.
8547 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8548 (lookup_symbol): If we are given a mangled name, pass it down
8549 to lookup_symbol_aux.
8550 (lookup_block_symbol): If we are given a mangled name to check
8551 against, only return symbols which match it.
8555 * win32-nat.c (child_create_inferior): Check for proper shell to use
8556 here, in case the user changes it on the fly.
8557 (_initialize_inftarg): Remove shell path considerations.
8561 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8562 for gdbarch_max_register_raw_size and max_register_virtual_size.
8563 Adjust copyright year.
8567 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8568 in a function to cover the entire beginning of the function
8569 as well if it does not already.
8573 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8574 (rs6000_ptrace64): Renamed from ptrace64.
8578 * gdbserver/remote-utils.c (remote_open): Don't call
8579 getprotobyname, we're all using TCP here so just use
8581 * gdbserver/gdbreplay.c (remote_open): Ditto.
8585 * regcache.c (_initialize_regcache): No need to call
8586 build_regcache() at this time; it gets called whenever
8587 the gdbarch changes.
8591 * sparc-nat.c: Include sys/param.h where possible.
8596 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8597 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8598 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8600 * stabsread.c (rs6000_builtin_type): Likewise.
8601 (read_sun_floating_type): Likewise.
8605 * stabsread.c (read_member_functions): Remove skip code for duplicate
8606 constructor/destructor methods. Use standard parsing for these
8607 methods and just do not chain them to the list of methods after
8612 * coffread.c: Remove redundant static declarations. Replace
8613 occurrences of `PTR' with `void *'.
8614 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8615 * top.h (quit_cover): Likewise.
8616 * defs.h (catch_errors): Likewise.
8620 * defs.h (XMALLOC): Define.
8621 * gdb-events.sh (XMALLOC): Delete macro.
8622 * gdb-events.c, gdb-events.h: Regenerate.
8623 * gdbarch.sh (XMALLOC): Delete macro.
8624 * gdbarch.c: Regenerate.
8625 * serial.c (XMALLOC): Delete macro.
8626 * ui-file.c (XMALLOC): Ditto.
8627 * ser-unix.h (XMALLOC): Ditto.
8628 * sh-tdep.c (XMALLOC): Ditto.
8629 * ui-out.c (XMALLOC): Ditto.
8630 * utils.c (XMALLOC): Ditto.
8631 * i386-tdep.c (XMALLOC): Ditto.
8632 * gdb-events.c (XMALLOC): Ditto.
8633 * d10v-tdep.c (XMALLOC): Ditto.
8634 * cli-out.c (XMALLOC): Ditto.
8636 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8637 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8638 * ui-file.c, ui-out.c: Ditto.
8642 * command.h (struct cmd_list_element): Add field context.
8643 (set_cmd_context, get_cmd_context): Declare.
8644 * cli/cli-decode.h: Ditto.
8645 * cli/cli-decode.c (get_cmd_context): New function.
8646 (set_cmd_context): New function.
8647 (add_cmd): Initialize context.
8648 Part of fixing PR gdb/145 and PR gdb/146.
8652 * cli/cli-decode.c (cmd_type): New function.
8653 * command.h (cmd_type): Declare.
8654 * infrun.c (set_schedlock_func): Call function cmd_type.
8655 * kod.c (kod_set_os): Call cmd_type.
8656 * cris-tdep.c (cris_version_update): Use function cmd_type.
8657 (cris_mode_update, cris_abi_update): Ditto.
8659 * command.h: (execute_cmd_post_hook): Declare.
8660 (execute_cmd_pre_hook): Declare.
8661 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8662 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8663 functions. Execute pre/post hook while ensuring that afterwords
8665 * top.c (execute_command): Use execute_cmd_post_hook, and
8666 execute_cmd_pre_hook to execute pre/post commands.
8667 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8669 (hook_stop_stub): Call execute_cmd_pre_hook.
8673 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8674 set'' and this leads to a core dump. Move xstrdup of
8675 operating_system to after check that it is not NULL.
8679 * kod.c (kod_set_os): Remove unnecessary check that
8680 ``command->type'' is set_cmd.
8682 * valprint.c (set_input_radix): Use input_radix.
8683 (set_output_radix): Use output_radix.
8684 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8689 * value.h (struct value): Delete field ``substring_addr''. Change
8690 aligner fields to force_doublest_align, force_longest_align,
8691 force_core_addr_align and force_pointer_aligh.
8693 * value.h (struct value): Fix typo in above change.
8697 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8698 to fix internal_error from ``maintenance print architecture''.
8702 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8703 for gcc versions after gcc-2.8.1.
8707 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8708 for method resolution. Restore adjustment of ``this'' pointer after
8709 calling value_struct_elt, which was accidentally removed during the
8714 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8716 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8718 * value.h (value_of_register): Update.
8722 * configure.in: Detect declaration for canonicalize_file_name.
8723 * utils.c (canonicalize_file_name): Declare, if needed.
8724 (gdb_realpath): Prefer realpath if available and usable.
8725 * config.in, configure: Rebuild.
8729 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8730 a constant array bound.
8732 * MAINTAINERS: Add myself to write-after-approval.
8736 * symfile.c (syms_from_objfile): Return immediately if no syms.
8737 (symbol_file_add): Return immediately if no syms.
8738 (find_sym_fns): Return immediately if no syms.
8742 * gdbserver/remote-util.c (remote_open): Print remote-side's
8743 IP address when remote debugging over the network.
8747 * config/sparc/fbsd.mh: Fix copyright.
8748 * config/sparc/fbsd.mt: Likewise.
8752 * MAINTAINERS: Fix typo in name of gdb warnings option.
8753 (x86-64): Fix formating so that this can be parsed by awk.
8757 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8758 * defs.h: Include "gdb/signals.h".
8759 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8763 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8764 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8770 * mips-tdep.c (ST0_FR): Define.
8771 (mips2_fp_compat): New function, temporarily disabled.
8772 (mips_read_fp_register_single): New function.
8773 (mips_read_fp_register_double): New function.
8774 (mips_print_register): Use them.
8775 (do_fp_register_row): Likewise.
8779 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8784 * stabsread.c (read_member_functions): Fix is_stub test for
8785 static member functions, improve comment.
8789 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8790 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8791 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8792 commands that set boolean values.
8793 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8794 (arm_rdi_resume): Always initialize PC.
8795 (arm_rdi_open): Don't use rslt as a boolean.
8796 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8797 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8798 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8799 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8803 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8804 * configure: Rebuilt.
8808 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8809 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8813 * cli/cli-decode.c (set_cmd_completer): New function.
8814 * command.h (set_cmd_completer): Declare.
8815 * cli/cli-decode.h (set_cmd_completer): Ditto.
8817 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8818 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8819 * win32-nat.c (_initialize_inftarg): Ditto.
8820 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8821 * proc-api.c (_initialize_proc_api): Ditto.
8822 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8823 * source.c (_initialize_source): Ditto.
8824 * exec.c (_initialize_exec): Ditto.
8825 * solib.c (_initialize_solib): Ditto.
8826 * top.c (init_main): Ditto.
8827 * tracepoint.c (_initialize_tracepoint): Ditto.
8828 * symfile.c (_initialize_symfile): Ditto.
8829 * printcmd.c (_initialize_printcmd): Ditto.
8830 * infcmd.c (_initialize_infcmd): Ditto.
8831 * corefile.c (_initialize_core): Ditto.
8835 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8839 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8843 * NEWS: Update headings, 5.2 has branched.
8847 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8848 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8849 (register_addr, REGISTER_RAW_SIZE): Likewise.
8850 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8851 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8855 * MAINTAINERS (x86-64): Add myself.
8856 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8857 changed value_ptr -> struct value *
8861 * configure.host (sparc64-*-freebsd): Add.
8862 * configure.tgt: Likewise.
8863 * config/sparc/fbsd.mh: New file.
8864 * config/sparc/fbsd.mt: Likewise.
8865 * config/sparc/nm-fbsd.h: Likewise.
8866 * config/sparc/tm-fbsd.h: Likewise.
8870 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8871 regformats/reg-s390x.dat.
8875 * utils.c: Add FIXME explaining true/false problem.
8879 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8883 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8887 * gdbserver/linux-s390-low.c: New file.
8888 * regformats/reg-s390.dat: New file.
8889 * regformats/reg-s390x.dat: New file.
8890 * gdbserver/configure.srv: Add S/390.
8891 * gdbserver/Makefile.in: Add S/390.
8892 * configure.tgt: Enable gdbserver for S/390.
8896 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8897 first line of the doc string for "info dos", except at the end of
8898 the sentence, since the short help stops at the first period.
8902 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8906 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8907 comment (dumy -> dummy).
8911 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8915 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8919 * gdbserver/acconfig.h: New file.
8920 * gdbserver/i387-fp.c: New file.
8921 * gdbserver/i387-fp.h: New file.
8922 * gdbserver/linux-x86-64.c: New file.
8923 * regformats/reg-x86-64.dat: New file.
8924 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8925 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8926 * gdbserver/configure.in: Add support for regsets.
8927 * gdbserver/config.in: Regenerate.
8928 * gdbserver/configure: Regenerate.
8929 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8930 * gdbserver/linux-low.h: New file.
8931 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8933 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8934 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8935 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8936 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8937 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8938 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8939 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8940 "i387-fp.h". Add PTRACE_GETREGS and friends.
8941 * gdbserver/regcache.c (supply_register): New function.
8942 (supply_register_by_name): New function.
8943 (collect_register): New function.
8944 (collect_register_by_name): New function.
8948 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8949 (config.status): Add configure.srv dependency.
8950 (server_h): Add config.h dependency.
8954 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8955 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8956 * gdbserver/configure.srv: Change i386-*-linux* to use
8961 * x86-64-tdep.c: Re-indent. Update copyright date.
8966 * x86-64-tdep.c (value.h): Delete.
8967 (gdb_assert.h): Include.
8968 (x86_64_register_convert_to_virtual,
8969 x86_64_register_convert_to_raw ): Add check which lets only
8970 floating-point values to be converted.
8971 (value_push): Delete.
8972 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8973 (i386_gdbarch_init): Number of register_bytes fixed.
8977 * MAINTAINERS: Add x86-64 target.
8981 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8982 * osfsolib.c (solib_map_sections): Ditto.
8983 * irix5-nat.c (solib_map_sections): Ditto.
8984 * corelow.c (gdb_check_format): Ditto.
8985 * symfile.c (symfile_bfd_open): Ditto.
8986 * solib.c (solib_map_sections): Ditto.
8991 * remote.c (_initialize_remote): By default, disable ``e'' and
8992 ``E'' step out-of-range packets.
8996 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8997 m68k_linux_frame_saved_pc.
8998 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9000 (SIGCONTEXT_PC_OFFSET): Remove.
9001 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9002 m68k_linux_sigtramp_saved_pc): New functions.
9003 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9004 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9005 (UCONTEXT_PC_OFFSET): Define.
9006 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9007 non-RT and RT signal trampolines.
9011 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9012 (TARGET_NBPG, STACK_END_ADDR): Delete
9013 (VARIABLES_INSIDE_BLOCK): Delete.
9017 * utils.c (perror_with_name): Make string parameter constant.
9018 (print_sys_errmsg): Ditto.
9020 * defs.h (perror_with_name): Update.
9021 (print_sys_errmsg): Update.
9027 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9031 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9032 if it already matches the current architecture from the exec file.
9033 Include arch-utils.h for gdbarch_info_init prototype.
9034 * Makefile.in (rs6000-nat.o): Update dependencies.
9038 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9039 list of exported variables.
9043 * gdbserver/configure.srv: New file.
9044 * gdbserver/configure.in: Use configure.srv instead
9045 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9047 * gdbserver/configure: Regenerated.
9048 * gdbserver/terminal.h: New file.
9049 * gdbserver/Makefile.in: Update for configure changes. Remove
9050 more unneeded include paths.
9054 From wiz at danbala:
9055 * config/sparc/tm-sp64.h: Fix grammar and typos.
9060 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9061 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9062 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9063 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9064 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9065 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9066 * s390-tdep.c: Ditto.
9067 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9068 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9069 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9070 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9071 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9072 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9073 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9074 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9075 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9076 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9081 * lin-thread.c: Delete file.
9082 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9083 to gdb_proc_service.h.
9084 * configure: Re-generate.
9086 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9087 * serial.c (serial_open): Delete check for "ocd".
9090 * Makefile.in (linux-thread.o): Delete target.
9091 * linux-thread.c: Delete file.
9093 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9094 renamed SH files to be consistent.
9096 * symtab.c (sort_search_symbols): Use xfree.
9100 * arm-linux-tdep.c (arm_linux_init_abi): Register
9101 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9102 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9103 definition with undef, since we don't want the sysvr4 definition.
9104 (SKIP_TRAMPOLINE_CODE): Likewise.
9110 * configure.in: (AC_CHECK_FUNCS) Added test for
9111 canonicalize_file_name Regenerated.
9112 * config.in, configure: Regenerated.
9113 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9114 defined use canonicalize_file_name.
9118 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9122 * README: Remove references to cygnus.com.
9123 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9124 dot com'' form. Remove references to cygnus.com and sourceware.
9129 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9130 1003.1-2001 no longer allows "head -1".
9131 * gdb/Makefile.in (version.c): Likewise.
9132 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9133 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9134 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9138 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9139 * command.h (cmd_cfunc_eq): Declare.
9140 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9142 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9143 ``struct cmd_list_element *''.
9144 * cli/cli-cmds.c (is_complete_command): Update. Use
9146 * top.c (execute_command): Pass the command to
9147 is_complete_command.
9148 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9153 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9154 architecture defines.
9155 * s390-tdep.c (s390_gdbarch_init): Likewise.
9159 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9160 (arm_linux_push_arguments): Likewise.
9161 (arm_linux_init_abi): Register them. Also register linux-specific
9163 (find_minsym_and_objfile): Use strcmp, not STREQ.
9164 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9165 (arm_linux_call_dummy_words): Delete declaration.
9166 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9167 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9169 (LOWEST_PC): Delete.
9173 * maint.c (print_section_info): Do not prepend `0x' to filepos
9174 output, it will be handled by local_hex_string_custom.
9178 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9179 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9180 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9184 Indicate that the bcache functions don't change the strings
9186 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9187 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9191 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9195 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9196 find the complete path to a loaded DLL.
9200 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9201 that marks the end of the range of a function, enter a line number
9202 entry that has a line number of zero and a PC offset that matches
9203 the end of the function. This starts a range of PC's for which no
9204 line number information is known.
9205 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9206 PC's for which no line number info is found (line number is zero)
9207 then we didn't find any valid line information.
9208 * symtab.h: Document use of zero line number entry.
9212 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9213 (have_ptrace_getvrregs): Define for run time checks.
9214 (gdb_vrregset_t): New type for Altivec register handling.
9215 (fetch_register, store_register): Fetch/store altivec register
9217 (fetch_altivec_register, store_altivec_register): New functions.
9218 (supply_vrregset, fill_vrregset): New functions.
9219 (fetch_altivec_registers, store_altivec_registers): New functions.
9220 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9225 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9229 * Makefile.in (armnbsd-nat.o): Update dependencies.
9230 * armnbsd-nat.c (supply_gregset): New function. Common code to
9231 supply the integer register set.
9232 (supply_fparegset): New function. Similar for FPA registers.
9233 (fetch_regs, fetch_fp_regs): Use them.
9234 (fetch_core_registers): Likewise.
9235 (fetch_elfcore_registers): New function.
9236 (arm_netbsd_elfcore_fns): New core-file type specification.
9237 (_initialize_arm_netbsd_nat): Register it.
9241 * armnbsd-nat.c: Include gdbcore.h.
9242 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9243 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9244 'void' to declaration, to shut up ARI.
9245 (fetch_core_registers): Make static. Rewrite using supply_register.
9246 (arm_netbsd_core_fns): New core-file type specification.
9247 (_initialize_arm_netbsd_nat): New function.
9251 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9256 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9261 * jv-exp.y (parse_number): Change type of implicit longs
9262 to builtin_type_uint64.
9266 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9267 to be an integer instead of a `union wait'.
9271 * mips-linux-nat.c: Call the operating system GNU/Linux.
9272 * mips-linux-tdep.c: Likewise.
9273 * mips-tdep.c: Likewise.
9278 * jv-exp.y (parse_number): Handle 64-bit integers.
9282 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9283 AC_STDC_HEADERS to AC_HEADER_STDC.
9284 * gdbserver/configure: Regenerated.
9288 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9290 * sparc-tdep.c (get_longjmp_target): Likewise.
9294 * News: Add news about ARM and Multi-arch. Mention the new target
9299 * stabsread.c (error_type_complaint): Improve error message.
9303 * gdbserver/README: Update documentation.
9304 * gdbserver/configure.in: Update configury to match documentation.
9305 * gdbserver/Makefile.in: Likewise.
9306 * gdbserver/configure: Regenerated.
9307 * gdbserver/aclocal.m4: New file, generated by aclocal.
9308 * gdbserver/config.in: New file, generated by autoheader.
9312 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9317 * arm-tdep.h (enum arm_float_model): New enum.
9318 (struct gdbarch_tdep): Add fp_model.
9319 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9320 up floating-point conversions until we know the floating-point model
9321 in use by the inferior. Don't complain about being unable to
9322 determine the ABI of the inferior when we don't have one.
9323 (arm_extract_return_value): Support different floating-point models.
9324 (arm_store_return_value): Likewise.
9325 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9327 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9331 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9332 of ``current_gdbarch''.
9336 * armnbsd-nat.c : ANSIfy all function declarations.
9337 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9338 (fetch_inferior_registers): Re-implement in terms of above.
9339 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9340 (store_inferior_registers): Re-implement in terms of above.
9344 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9346 * arm-linux-tdep.c: Likewise.
9347 * config/arm/tm-linux.h: Likewise.
9351 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9352 * config/arm/nbsd.mt (TM_FILE): Delete.
9353 * config/arm/tm-nbsd.h: Delete.
9357 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9358 Initialize CALL_DUMMY_LENGTH.
9362 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9364 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9365 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9366 defines one thing and that is incorrect for this port.
9367 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9371 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9375 * win32-nat.c (display_selector): New function. Displays information
9376 about the information returned by GetThreadSelectorEntry API function.
9377 (display_selectors): New function. Displays the infomation of
9378 the selector given as argument, or of CS, DS ans FS selectors
9379 if no argument is given.
9380 ( _initialize_inftarg): Add "w32" as info prefix command.
9381 Add "info w32 selector" as command calling display_selectors.
9385 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9386 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9391 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9395 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9396 (arm_fix_call_dummy): Call it.
9397 (arm_call_dummy_breakpoint_offset): Delete.
9398 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9399 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9403 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9404 Default to func_frame_chain_valid.
9405 * gdbarch.h, gdbarch.c: Re-generate.
9406 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9410 * ppc-linux-nat.c: Update copyright.
9411 (fetch_register, store_register): Add tid parameter, don't compute
9413 (fetch_ppc_registers, store_ppc_registers): Add tid
9414 parameter. Pass it along to callees.
9415 (fetch_inferior_registers, store_inferior_registers): Compute tid
9416 here, and pass it to calleed functions.
9417 (fill_gregset, supply_fpregset): Clean up formatting.
9421 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9422 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9426 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9427 * gdbarch.c gdbarch.h: Regenerate.
9428 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9430 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9431 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9432 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9434 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9435 * arm-tdep.c (arm_get_longjmp_target): New function.
9436 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9437 this to a positive value register arm_get_longjmp_target as the
9439 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9440 (arm_linux_init_abi): Set up longjmp description in tdep.
9441 * armnbsd-nat.c (get_longjmp_target): Delete.
9442 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9443 description in tdep.
9444 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9445 (get_longjmp_target): Delete declaration.
9446 (GET_LONGJMP_TARGET): Delete.
9447 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9448 (GET_LONGJMP_TARGET): Delete.
9453 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9454 of ``current_gdbarch''.
9458 * cli/cli-cmds.c (compare_strings): New function.
9459 (complete_command): Only print each unique item once.
9460 * completer.h (complete_line): Declare.
9461 * completer.c (complete_line): New function.
9462 (line_completion_function): Use it.
9466 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9467 * gdbarch.h, gdbarch.c: Re-generate.
9471 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9476 * valops.c (value_arg_coerce): Don't take the address of a reference
9477 to convert an argument to a reference.
9481 * win32-nat.c (get_image_name): New function.
9482 (handle_load_dll): Use get_image_name function.
9483 (get_child_debug_event): Avoid registering debug events until possibly
9484 execed process is started.
9485 (child_create_inferior): Allow invocation via shell so that command
9486 line redirection, etc. works ok.
9487 (_initialize_inftarg): Add new command: "set shell" to control whether
9488 a shell is used to start a process.
9492 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9493 instead of find_register_by_number.
9494 (cannot_store_register): Likewise.
9498 * dwarf2read.c: Replace fprintf (stderr, ...) by
9499 fprintf_unfiltered (gdb_stderr, ...).
9503 * gdbserver/gdbserver.1: Document --attach.
9507 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9509 * arm-tdep.c (arm_default_arm_le_breakpoint)
9510 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9511 (arm_default_thumb_be_breakpoint): New. Initialize them from
9512 traditional breakpoint defines.
9513 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9514 (arm_gdbarch_init): Initialize new breakpoint variables.
9515 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9516 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9517 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9518 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9520 (arm_netbsd_init_abi_common): ... here; new function.
9521 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9522 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9523 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9524 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9528 * arm-tdep.h (enum arm_abi): New enum.
9529 (struct gdbarch_tdep): New structure.
9530 (LOWEST_PC): Provide a default.
9531 (arm_gdbarch_register_os_abi): Declare new function.
9532 * arm-tdep.c (arm_abi_names): New array.
9533 (process_note_abi_tag_sections): New function.
9534 (get_elfosabi): New function.
9535 (arm_gdbarch_register_os_abi): New function.
9536 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9537 support for that ABI has been built in, then call the appropriate
9538 configuration routine. Use gdbarch_num_regs() to get the number
9540 (arm_dump_tdep): New function.
9541 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9542 place-holder functions.
9543 (_initialize_arm_tdep): Register them.
9544 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9546 * armnbsd-tdep.c: New file.
9547 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9548 * config/arm/nbsd.mt (TDEPFILES): Add it.
9549 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9551 * armnbsd-nat.c: Include regcache.h.
9552 * Makefile.in (armnbsd-nat.o): Update dependency list.
9554 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9558 * gdbserver/Makefile.in: Fix typos in target rules.
9562 Fix part of PR gdb/267.
9563 * linespec.c (find_methods): Handle constructors specially for now.
9567 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9569 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9570 standard_coerce_float_to_double().
9574 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9579 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9580 find_variant_by_name, because it confuses the multiarch
9581 framework. Return NULL if there isn't an architecture with the
9582 user supplied name, instead of forcing a different one without
9583 recording the change with the multiarch machinery.
9584 (find_variant_by_name): Delete.
9588 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9589 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9593 * stack.c (print_frame_info_base): When calling
9594 print_frame_info_listing_hook, set current_source_symtab.
9598 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9599 and remove unused $(INCLUDE_DIR).
9600 Add regcache.c to OBS.
9601 Add generated register protocol files to clean target.
9602 Update dependencies for new objects, obsolete old target code.
9604 * gdbserver/linux-low.c: Remove all platform-specific code to
9605 new files. Remove various dead code. Update to use regcache
9607 * gdbserver/remote-utils.c (fromhex): Add return statement
9609 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9611 (input_interrupt): Add integer parameter to match prototype
9612 of a signal handler.
9613 (outreg): Use register_data ().
9614 (prepare_resume_reply): Use gdbserver_expedite_regs.
9615 * gdbserver/server.c (main): Dynamically allocate own_buf because
9616 PBUFSIZ is no longer constant. Use registers_to_string () and
9617 registers_from_string ().
9618 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9619 for error (), fatal (), and warning (). Update definition of
9620 PBUFSIZ to use regcache functionality. Add include guard.
9621 * gdbserver/utils.c (fatal): Add missing ``const''.
9622 (warning): New function.
9624 * regformats/regdat.sh: Include "regcache.h" in generated files.
9625 Provide init_registers () function.
9626 * regformats/regdef.h: Add prototype for set_register_cache ().
9629 * gdbserver/linux-arm-low.c: New file.
9630 * gdbserver/linux-i386-low.c: New file.
9631 * gdbserver/linux-ia64-low.c: New file.
9632 * gdbserver/linux-m68k-low.c: New file.
9633 * gdbserver/linux-mips-low.c: New file.
9634 * gdbserver/linux-ppc-low.c: New file.
9635 * gdbserver/linux-sh-low.c: New file.
9637 * gdbserver/regcache.c: New file.
9638 * gdbserver/regcache.h: New file.
9640 * gdbserver/low-linux.c: Removed obsolete file.
9644 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9645 * config/i386/linux.mt: Likewise.
9646 * config/ia64/linux.mt: Likewise.
9647 * config/m68k/linux.mh: Likewise.
9648 * config/powerpc/linux.mh: Likewise.
9649 * config/mips/linux.mt: Likewise.
9651 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9653 * config/i386/i386lynx.mh: Mark gdbserver variables
9654 as (currently) obsolete for this target.
9655 * config/i386/nbsd.mt: Likewise.
9656 * config/i386/nbsdelf.mt: Likewise.
9657 * config/m32r/m32r.mt: Likewise.
9658 * config/m68k/m68klynx.mh: Likewise.
9659 * config/m68k/nbsd.mt: Likewise.
9660 * config/m68k/sun3os4.mh: Likewise.
9661 * config/mips/vr5000.mt: Likewise.
9662 * config/ns32k/nbsd.mt: Likewise.
9663 * config/pa/hppabsd.mh: Likewise.
9664 * config/pa/hppaosf.mh: Likewise.
9665 * config/powerpc/nbsd.mt: Likewise.
9666 * config/rs6000/rs6000lynx.mh: Likewise.
9667 * config/s390/s390.mt: Likewise.
9668 * config/s390/s390x.mt: Likewise.
9669 * config/sparc/sparclynx.mh: Likewise.
9670 * config/sparc/sun4os4.mh: Likewise.
9671 * config/i386/x86-64linux.mt: Likewise.
9672 * config/sparc/linux.mh: Likewise.
9676 * configure.tgt: Configure gdbserver only for known working
9677 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9678 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9679 SUBDIRS if it is configured. Update comment for ${nativefile}.
9680 * configure: Regenerated.
9684 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9686 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9687 (default_gcore_mach): Just return 0, work around a problem in bfd.
9688 (default_gcore_target): OK to return NULL if exec_bfd is null.
9689 (make_mem_sec): Use a cast, avoid a warning.
9691 * procfs.c (find_memory_regions_callback): Use a cast instead of
9692 calling host_pointer_to_address (which complains if
9693 sizeof (host pointer) != sizeof (target pointer)).
9694 (procfs_make_note_section): Avoid overflow in psargs string.
9696 * procfs.c (procfs_make_note_section): Make the default
9697 implementation return an error.
9701 * procfs.c (procfs_make_note_section): Provide a default definition
9702 (for alpha-dec-osf4.0f). Fix typos.
9706 * linux-proc.c: Add include of regcache.h.
9707 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9712 * memattr.c (create_mem_region): Disallow useless empty region.
9713 Regions are half-open intervals, so allow [A..B) [B..C) as
9718 * defs.h: Kill CONST_PTR.
9719 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9720 * c-lang.c (c_builtin_types): Likewise.
9721 * ch-lang.c (ch_builtin_types): Likewise.
9722 * f-lang.c (f_builtin_types): Likewise.
9723 * language.c (unknown_builtin_types): Likewise.
9724 * m2-lang.c (m2_builtin_types): Likewise.
9725 * p-lang.c (pascal_builtin_types): Likewise.
9726 * scm-lang.c (c_builtin_types): Likewise.
9730 * arm-tdep.h (arm_get_next_pc): Add declaration.
9734 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9735 with other related struct-returning functions.
9736 (arm_extract_struct_value_address): New function.
9737 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9738 initialize float_format, double_format and long_double_format as
9739 appropriate to the endianness of the target.
9740 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9741 (arm_use_struct_convention): Delete declaration.
9742 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9746 * defs.h (core_addr_to_string_nz): New function.
9750 Apply missing bits of 2002-01-15 patch.
9751 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9752 (fill_fpregset): Use i387_fill_fsave.
9756 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9757 (core_addr_to_string_nz): New function.
9761 * arm-linux-nat.c: Really include arm-tdep.h.
9762 * config/arm/tm-linux.h (struct type, struct value): Declare.
9766 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9767 (gcore section): Ifdef for Solaris and Unixware only.
9768 (procfs_do_thread_registers): Unixware needs one lwpstatus
9769 per thread (not one prstatus or pstatus).
9770 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9771 not over all gdb threads. For unixware, call elfcore_write_pstatus
9772 once before iterating over threads.
9776 * arm-tdep.h: New file.
9777 * arm-tdep.c: Include arm-tdep.h.
9778 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9779 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9780 (arm_print_float_info, arm_register_type, convert_to_extended)
9781 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9782 (arm_extract_return_value, arm_register_name): Make static.
9783 (arm_software_single_step): Similarly. Fix types in declaration.
9784 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9785 (arm_store_return_value, arm_store_struct_return): New functions.
9786 (arm_gdbarch_init): Register the above functions. Also register
9787 call_dummy_start_offset, sizeof_call_dummy_words,
9788 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9789 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9790 max_register_virtual_size, register_size. Set up
9791 prologue_cache.saved_regs here, rather than ...
9792 (_initialize_arm_tdep): ... here.
9793 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9795 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9796 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9797 (arm_print_float_info, arm_register_type, convert_to_extended)
9798 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9799 (arm_extract_return_value, arm_register_name): Delete declarations.
9800 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9801 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9802 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9803 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9804 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9805 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9806 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9807 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9808 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9809 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9810 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9811 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9813 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9814 * remote-rdi.c remote-rdp.c: Likewise.
9815 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9816 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9817 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9820 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9821 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9822 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9823 from non-ARM_ prefixed definitions.
9824 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9826 * remote-rdi.c remote-rdp.c: Likewise.
9827 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9831 * arm-tdep.c (arm_frameless_function_invocation)
9832 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9833 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9834 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9835 (arm_pop_frame, arm_get_next_pc): Make static.
9836 (arm_gdbarch_init): Register above in gdbarch structure.
9837 (arm_read_fp): Renamed from arm_target_read_fp.
9838 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9839 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9840 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9841 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9842 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9843 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9844 (arm_pc_is_thumb_dummy): Delete declarations.
9845 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9846 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9847 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9848 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9852 * symtab.c (compare_search_syms): New function.
9853 (sort_search_symbols): New function.
9854 (search_symbols): Sort symbols after searching rather than
9859 * NEWS: Linux -> GNU/Linux.
9863 * gdbarch.sh: For for level one methods, disallow a definition
9864 when partially multi-arched. Add comments explaining rationale.
9865 * gdbarch.h: Re-generate.
9869 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9874 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9876 * gdbarch.c: Re-generate.
9880 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9881 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9886 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9888 (PUSH_ARGUMENTS): Switch to using predefault.
9889 * gdbarch.c: Regenerate.
9893 * valops.c (PUSH_ARGUMENTS): Delete definition.
9894 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9895 partial. Default to default_push_arguments.
9896 * gdbarch.h, gdbarch.c: Regenerate.
9900 * defs.h (throw_exception): Rename return_to_top_level. Update
9902 * utils.c (error_stream, internal_verror, quit): Ditto.
9903 * top.c (throw_exception, catcher): Ditto.
9904 * sparclet-rom.c (sparclet_load): Ditto.
9905 * remote.c (interrupt_query, minitelnet): Ditto.
9906 * remote-sds.c (interrupt_query): Ditto.
9907 * remote-mips.c (mips_error, mips_kill): Ditto.
9908 * ocd.c (interrupt_query): Ditto.
9909 * monitor.c (monitor_interrupt_query): Ditto.
9910 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9911 * target.h: Update comment.
9913 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9917 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9918 default_double_format.
9919 * gdbarch.h, gdbarch.c: Re-generate.
9920 * findvar.c (floatformat_unknown): Delete variable definition.
9921 * doublest.h (floatformat_unknown): Delete variable declaration.
9925 * stabsread.c (read_type): Add code to parse Sun's syntax for
9926 prototyped function types.
9930 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9931 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9935 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9936 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9937 now _initialize_xcoffsolib gets called again and overrides the
9938 commands from solib.c in a native configuration.
9942 * doublest.c (store_typed_floating): Don't try to return a value.
9947 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9948 is prototyped and has no arguments, print its argument list as
9953 * MAINTAINERS (write-after-approval): Add myself.
9954 (paper-trail): I've escaped!
9958 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9960 (_initialize_check_for_gdb_ini): Ditto.
9964 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9965 xaprintf -> xasprintf.
9969 * win32-nat.c: Remove use of printf and sprintf functions.
9973 * arm-tdep.c (arm_frame_chain_valid): Make static.
9974 (arm_push_arguments): Likewise.
9975 (arm_gdbarch_init): New function.
9976 (_initialize_arm_tdep): Call it.
9977 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9978 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9979 (FRAME_CHAIN_VALID): Delete.
9980 (arm_frame_chain_valid): Delete declaration.
9981 (PUSH_ARGUMENTS): Delete.
9982 (arm_push_arguments): Delete declaration.
9983 (CALL_DUMMY_P): Delete.
9988 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9989 on builtin float types.
9993 * utils.c: Include <curses.h> before "bfd.h".
9994 * tui/tui-hooks.c: Likewise.
9995 * tui/tui.c: Likewise.
9996 * tui/tuiCommand.c: Likewise.
9997 * tui/tuiData.c: Likewise.
9998 * tui/tuiDataWin.c: Likewise.
9999 * tui/tuiDisassem.c: Likewise.
10000 * tui/tuiGeneralWin.c: Likewise.
10001 * tui/tuiIO.c: Likewise.
10002 * tui/tuiLayout.c: Likewise.
10003 * tui/tuiRegs.c: Likewise.
10004 * tui/tuiSource.c: Likewise.
10005 * tui/tuiSourceWin.c: Likewise.
10006 * tui/tuiStack.c: Likewise.
10007 * tui/tuiWin.c: Likewise.
10011 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10012 to include space for pseudoregs as well. Update loops accordingly.
10013 (sh_fp_frame_init_saved_regs): Ditto.
10014 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10018 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10019 Add Richard Earnshaw to Arm maintainers.
10023 * defs.h (warning_begin): Delete declaration.
10025 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10030 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10031 Logic bug, remove misplaced else.
10035 * fork-inferior.c (fork_inferior): Add '!' to the list of
10036 characters that need to be quoted when building a string for the
10037 shell. Quote '!' specifically with a backslash, since CSH chokes
10038 when trying to evaluate "str!str".
10042 * rdi-share/host.h: Only provide a typedef for bool if it is not
10047 * breakpoint.h (enum bptype): Add new overlay event bp type.
10048 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10050 * breakpoint.c (create_internal_breakpoint): New function.
10051 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10052 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10053 (create_thread_event_breakpoint): Ditto.
10054 (create_solib_event_breakpoint): Ditto.
10055 (create_overlay_event_breakpoint): New function.
10056 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10057 (update_breakpoints_after_exec): Delete and re-initialize
10058 overlay event breakpoints after an exec. Add FIXME comment
10059 about longjmp breakpoint.
10060 (print_it_typical): Ignore overlay event breakpoints.
10061 (print_one_breakpoint): Ditto.
10063 (bpstat_what): Do not stop for overlay event breakpoints.
10064 (delete_breakpoint): Don't delete overlay event breakpoints.
10065 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10066 (breakpoint_re_set): Re-create overlay event breakpoint.
10068 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10069 (overlay_manual_command): Disable overlay breakpoints.
10070 (overlay_off_command): Disable overlay breakpoints.
10074 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10075 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10076 to here from config/tm-arm.h.
10077 (coff_sym_is_thumb): Make static.
10078 (arm_elf_make_msymbol_special): New function.
10079 (arm_coff_make_msymbol_special): New function.
10080 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10081 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10082 (coff_sym_is_thumb): Delete declaration.
10083 (arm_elf_make_msymbol_special): Declare.
10084 (arm_coff_make_msymbol_special): Declare.
10085 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10086 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10090 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10094 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10095 * gdbarch.c gdbarch.h: Regenerate.
10096 * arch-utils.c (default_print_float_info): New function.
10097 * arch-utils.h (default_print_float_info): Prototype it.
10098 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10099 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10100 (PRINT_FLOAT_INFO): Document it.
10102 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10103 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10104 (PRINT_FLOAT_INFO): Define.
10108 * win32-nat.c (_initialize_check_for_gdb_ini):
10109 Add typecast to sprintf argument to suppress a warning.
10113 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10114 to allow easier handling of pass state.
10115 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10116 that gives exception name and address.
10117 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10118 and set last_sig value to ourstatus->value.sig. Some missing
10120 (child_continue): Correctly report continue_status.
10121 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10122 TARGET_SIGNAL_0 (new default value).
10123 (child_resume): consider sig argument passed to decide if
10124 the exception should be passed to debuggee or not.
10128 * regcache.c (fetch_register): Call target_fetch_register
10129 only if we don't call FETCH_PSEUDO_REGISTER.
10130 (store_register): Call target_store_register only if we
10131 don't call STORE_PSEUDO_REGISTER.
10135 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10136 ELF_MAKE_MSYMBOL_SPECIAL.
10137 * gdbarch.c, gdbarch.h: Regenerate.
10138 * arch-utils.c (default_make_msymbol_special): New function.
10139 * arch-utils.h (default_make_msymbol_special): Export.
10140 * elfread.c (elf_symtab_read): Compile use of
10141 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10143 * coffread.c (coff_symtab_read): Ditto, for
10144 COFF_MAKE_MSYMBOL_SPECIAL.
10148 * solib-svr4.c (svr4_truncate_ptr): New function.
10149 (svr4_relocate_section_addresses): Do the address arithmetic with
10150 the appropriate truncation for target addresses, even when
10151 CORE_ADDR is larger than a target address.
10155 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10160 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10165 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10169 * gdbserver/linux-low.c: Remove unused include files.
10173 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10174 (read_inferior_memory): Use it.
10175 (write_inferior_memory): Likewise.
10179 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10180 grubbing through sys_errlist.
10184 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10187 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10191 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10192 (do_sfunc, set_cmd_sfunc): New functions.
10194 * command.h (struct cmd_list_element): Add field func.
10195 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10196 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10197 * cli/cli-decode.h: Ditto.
10199 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10200 (help_all, help_cmd_list): Ditto.
10201 (find_cmd, complete_on_cmdlist): Ditto.
10202 * top.c (execute_command): Ditto.
10204 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10207 * infcmd.c (notice_args_read): Fix function signature.
10209 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10210 * cli/cli-decode.c (add_set_cmd): Ditto.
10211 * utils.c (initialize_utils): Ditto.
10212 * maint.c (_initialize_maint_cmds): Ditto.
10213 * infrun.c (_initialize_infrun): Ditto.
10214 * demangle.c (_initialize_demangler): Ditto.
10215 * remote.c (add_packet_config_cmd): Ditto.
10216 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10217 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10218 * proc-api.c (_initialize_proc_api): Ditto.
10219 * kod.c (_initialize_kod): Ditto.
10220 * valprint.c (_initialize_valprint): Ditto.
10221 * top.c (init_main): Ditto.
10222 * infcmd.c (_initialize_infcmd): Ditto.
10223 * corefile.c (_initialize_core): Ditto.
10224 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10225 * arch-utils.c (initialize_current_architecture): Ditto.
10226 (_initialize_gdbarch_utils): Ditto.
10227 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10229 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10230 * wince.c (_initialize_inftarg): Ditto.
10231 * symfile.c (_initialize_symfile): Ditto.
10232 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10233 * language.c (_initialize_language): Ditto.
10234 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10238 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10242 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10243 Add rules for building the register data files.
10247 * regformats/regdat.sh: Add braces to the definition of
10248 expedite_regs_${arch}.
10252 * regformats/regdef.h (struct reg): Add comment describing the
10253 requirements for offset and size fields.
10257 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10258 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10262 * gdbarch.sh (copyright): Update years in generated header.
10263 (SMASH_TEXT_ADDRESS): Add rule.
10264 * gdbarch.h, gdbarch.c: Re-generate.
10265 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10266 * dbxread.c: Likewise.
10267 * dwarfread.c: Likewise.
10268 * elfread.c: Likewise.
10269 * somread.c: Likewise.
10271 * arm-tdep.c (arm_smash_text_address): New function.
10272 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10276 Add support for hardware watchpoints on win32 native.
10277 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10278 CONTEXT_DEBUG_REGISTERS.
10279 (dr variable): New variable. Static array containing a local copy
10280 of debug registers.
10281 (debug_registers_changed): New variable. Reflects when debug registers
10282 are changed and need to be written to inferior.
10283 (debug_registers_used): New variable. Reflects when any debug register
10284 was set, used when new threads are created.
10285 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10287 (thread_rec): Set dr array if id is the thread of current_event .
10288 (child_continue, child_resume): Change the debug registers for all
10289 threads if debug_registers_changed.
10290 (child_add_thread): Change the debug registers if debug_registers_used.
10291 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10292 Link nm.h to new nm-cygwin.h file.
10293 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10294 of hardware registers.
10298 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10299 Restore behavour broken by 2002-01-20 Andrew Cagney
10304 * c-valprint.c (c_val_print): Pass a proper valaddr to
10305 cp_print_class_method.
10306 * valops.c (search_struct_method): If there is only one method
10307 and args is NULL, return that method.
10311 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10312 accessing tag_name directly.
10316 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10317 of accessing tag_name directly.
10322 * gdbtypes.c (replace_type): New function.
10323 * gdbtypes.h (replace_type): Add prototype.
10324 * stabsread.c (read_type): Use replace_type.
10328 * Makefile.in (memattr.o): Add missing dependencies rule.
10332 * breakpoint.c (break_at_finish_command): Really export.
10333 (break_at_finish_at_depth_command): Ditto.
10334 (tbreak_at_finish_command): Ditto.
10335 * hppa-tdep.c: Include completer.h.
10336 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10337 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10341 * utils.c (do_write): New function.
10342 (error_stream): Rewrite combining the code from error_begin and
10344 (verror): Rewrite using error_stream.
10345 (error_begin): Delete function.
10349 * utils.c (error_begin): Make static.
10350 * defs.h (error_begin): Delete declaration.
10352 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10353 (decode_line_1): Use cplusplus_error instead of error_begin,
10354 cplusplus_hint and return_to_top_level.
10355 * coffread.c (coff_symfile_read): Use error instead of error_begin
10356 and return_to_top_level.
10357 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10361 * language.h (type_error, range_error): Make string parameter
10363 * language.c (warning_pre_print): Delete extern declaration.
10364 * dwarfread.c (warning_pre_print): Ditto.
10365 * language.c (type_error, range_error): Rewrite to use verror and
10366 vwarning instead of warning_begin.
10370 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10371 (set_ignore_count): Move misplaced comment back where it belongs.
10375 * command.h (NO_FUNCTION): Delete macro.
10376 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10377 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10378 * tracepoint.c (_initialize_tracepoint): Ditto.
10379 * cli/cli-decode.c (add_set_cmd): Ditto.
10380 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10384 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10385 Update ``this'' pointer when calling virtual functions.
10389 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10390 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10394 * regformats/reg-arm.dat: New file.
10395 * regformats/reg-i386.dat: New file.
10396 * regformats/reg-ia64.dat: New file.
10397 * regformats/reg-m68k.dat: New file.
10398 * regformats/reg-mips.dat: New file.
10399 * regformats/reg-ppc.dat: New file.
10400 * regformats/reg-sh.dat: New file.
10401 * regformats/regdef.h: New file.
10402 * regformats/regdat.sh: New file.
10406 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10407 (arm_frame_args_address, arm_frame_locals_address): New functions.
10408 (arm_frame_num_args): New function.
10409 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10410 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10411 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10415 * breakpoint.c (break_at_finish_command): Export.
10416 (break_at_finish_at_depth_command): Export.
10417 (tbreak_at_finish_command): Export.
10418 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10419 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10420 "txbreak" commands, which are HPPA specific.
10422 * printcmd.c (disassemble_command): Remove an ancient
10423 artifact of an old merge.
10425 * symfile.h (enum overlay_debugging_state):
10426 Define enum constant values for overlay mode.
10427 * symfile.c (overlay_debugging): Use enums instead of literals.
10428 (overlay_is_mapped, overlay_auto_command,
10429 overlay_manual_command): Ditto.
10431 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10432 breakpoint_here_p, breakpoint_inserted_here_p,
10433 breakpoint_thread_match, bpstat_stop_status,
10434 describe_other_breakpoints, check_duplicates, clear_command):
10435 Coding standard fixes.
10437 * target.c (target_xfer_memory): Add spaces, coding standard.
10438 (do_xfer_memory): Add missing line to trust-readonly
10439 code: check bfd SEC_READONLY flag for section.
10443 * PROBLEMS: Fix typo, 5.1->5.1.1.
10447 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10448 data symbols, since we search based on textlow and texthigh.
10449 (find_pc_sect_symtab): Likewise.
10453 * defs.h (vwarning): Declare.
10454 * utils.c (vwarning): New function.
10455 (warning): Call vwarning.
10456 (warning_begin): Delete function.
10458 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10459 the warning message.
10460 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10465 * NEWS: Mention "set trust-readonly-sections" command.
10466 Mention generate-core-file command.
10470 * target.c: New command, "set trust-readonly-sections on".
10471 (do_xfer_memory): Honor the suggestion to trust readonly sections
10472 by reading them from the object file instead of from the target.
10473 (initialize_targets): Register command "set trust-readonly-sections".
10477 * parse.c (target_map_name_to_register): Simplify, search regs and
10478 pseudo-regs using a single loop.
10482 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10486 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10487 * config/i386/i386v42mp.mh: Add i387-nat.o .
10488 * i386v4-nat.c: Include i387-nat.h.
10489 (supply_fpregset): Use i387_supply_fsave.
10490 (fill_fpregset): Use i387_fill_fsave.
10494 * arm-tdep.c (arm_call_dummy_words): Define.
10495 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10496 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10497 (CALL_DUMMY_WORDS): Define.
10498 (arm_call_dummy_words): Declare.
10499 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10500 (arm_linux_call_dummy_words): Declare.
10504 * m68klinux-nat.c: Fix last change to use regcache_collect
10505 instead of referencing registers[] directly.
10509 * parse.c (target_map_name_to_register): Delete code wrapped in
10510 #ifdef REGISTER_NAME_ALIAS_HOOK.
10514 * regcache.c (legacy_read_register_gen): Need to be able to
10515 read pseudo-register as well as real register.
10516 (legacy_write_register_gen): Ditto.
10520 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10521 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10522 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10523 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10524 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10525 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10526 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10527 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10528 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10529 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10530 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10531 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10532 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10533 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10534 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10535 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10536 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10537 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10538 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10539 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10543 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10544 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10545 (initialize_current_architecture): Update target_byte_order using
10546 information from BFD.
10547 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10548 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10552 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10553 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10555 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10556 #ifdef INVALID_FLOAT.
10557 * infcmd.c (do_registers_info): Ditto.
10558 * values.c (unpack_double): Ditto. Add comment.
10560 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10561 already commented out.
10565 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10566 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10567 registers and add support for PTRACE_GETREGS.
10571 GDB 5.1.1 released from 5.1 branch.
10572 * NEWS: Add 5.1.1 news.
10573 * README: Sync with 5.1 branch.
10577 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10578 stabstring on initial malloc. Reallocing will copy it for us,
10583 * Makefile.in (hpread_h): Delete.
10584 (HFILES_NO_SRCDIR): Remove hpread.h.
10585 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10586 (hpread.o): Update dependencies.
10587 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10589 * hp-psymtab-read.c: Remove file.
10590 * hp-symtab-read.c: Remove file.
10591 * hpread.h: Remove file.
10593 * hpread.c: Merge all contents of hp-psymtab-read.c,
10594 hp-symtab-read.c and hpread.h into this file, as it was prior to
10597 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10598 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10599 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10600 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10604 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10605 fill_gregset): Call gdbarch_tdep() just once, assign result to
10606 variable and use that, instead of calling the function several
10611 * configure.host: Accept sparcv9 as alias for sparc64.
10612 * configure.tgt: Likewise.
10616 * solib-aix5.c (build_so_list_from_mapfile)
10617 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10618 arguments is not reversed.
10619 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10620 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10624 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10625 modified version of obsolete sh_fetch_pseudo_register.
10626 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10627 (sh4_register_read): New function.
10628 (sh_pseudo_register_write): New function. Renamed and modified
10629 version of obsolete sh_store_pseudo_register.
10630 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10631 (sh4_register_write): New function.
10632 (sh_gdbarch_init): Remove setting of gdbarch function
10633 fetch_pseudo_register and store_pseudo_register. Remove setting of
10634 register_convert_to_raw, register_convert_to_virtual,
10635 register_convertible.
10636 (sh_sh4_register_convertible): Delete. No longer needed. All is
10637 taken care by architecture specific functions
10638 register_read/register_write.
10639 (sh_sh4_register_convert_to_virtual): Make static.
10640 (sh_sh4_register_convert_to_raw): Ditto.
10644 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10645 (floatformat_is_nan, floatformat_mantissa): Ditto.
10647 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10648 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10649 builtin_type_ieee_double_little,
10650 builtin_type_ieee_double_littlebyte_bigword,
10651 builtin_type_m68881_ext, builtin_type_i960_ext,
10652 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10653 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10654 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10655 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10659 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10660 parameter. Set frameless flag if it exists and depended of
10661 whether the scanned function is frameless or not.
10662 (xstormy16_skip_prologue): If function is frameless, return
10663 result of xstormy16_scan_prologue().
10664 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10669 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10670 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10671 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10672 sh_sh4_register_byte, sh_sh4_register_raw_size,
10673 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10674 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10675 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10676 sh_store_pseudo_register, sh_do_pseudo_register): Call
10677 gdbarch_tdep() just once, assign result to variable and use that,
10678 instead of calling the function several times.
10682 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10683 macros instead of LAST_FPU_CTRL_REGNUM.
10684 (store_register): Likewise.
10688 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10689 is up-to-date before running the program, not just when a program
10694 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10695 when we have found all instructions we are looking for.
10699 * arm-tdep.c (arm_register_name): New function.
10700 (arm_registers_names): Make static.
10701 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10702 (arm_register_name): Declare.
10703 (REGISTER_NAME): Use it.
10708 Convert arm targets to new FRAME interface.
10709 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10710 (arm_frame_find_save_regs): Delete.
10711 (arm_frame_init_saved_regs): New.
10712 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10713 Allocate extra_info as required. Convert all uses of fsr.regs
10714 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10716 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10717 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10718 (check_prologue_cache, save_prologue_cache): Likewise.
10719 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10720 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10721 (FRAME_FIND_SAVED_REGS): Delete.
10722 (arm_frame_find_saved_regs): Delete prototype.
10723 (arm_frame_init_saved_regs): New prototype.
10724 (FRAME_INIT_SAVED_REGS): Define.
10728 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10733 * infttrace.c: Include <sys/pstat.h>.
10734 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10735 exec file if the ttrace equivalent fails.
10739 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10740 (closeLogFile): Ditto.
10744 * top.c (print_gdb_version): Bump copyright year to 2002.
10748 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10749 Zannoni and Eli Zaretskii.
10753 * buildsym.c: Update copyright years.
10754 * c-typeprint.c: Likewise.
10755 * dwarf2read.c: Likewise.
10756 * f-typeprint.c: Likewise.
10757 * gdbtypes.c: Likewise.
10758 * gdbtypes.h: Likewise.
10759 * hp-symtab-read.c: Likewise.
10760 * hpread.c: Likewise.
10761 * mdebugread.c: Likewise.
10762 * p-typeprint.c: Likewise.
10766 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10767 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10768 byte-order selectable.
10769 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10770 * arch-utils.c: Ditto.
10771 (set_endian): Ditto.
10772 (set_endian_from_file): Ditto.
10773 * gdbserver/low-sim.c (create_inferior): Ditto.
10774 * gdbarch.sh: Ditto.
10775 * gdbarch.h: Re-generate.
10776 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10777 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10778 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10779 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10780 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10781 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10782 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10783 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10785 * config/mips/tm-wince.h: Remove #undef of macro
10786 TARGET_BYTE_ORDER_SELECTABLE.
10787 * config/sh/tm-wince.h: Ditto.
10791 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10792 member function fields. Add accessor macro
10793 TYPE_FN_FIELD_ARTIFICIAL.
10794 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10795 * c-typeprint.c (c_type_print_base): Skip artificial member
10800 * f-typeprint.c: Delete unused function f_type_print_args.
10801 * p-typeprint.c: Delete unused function pascal_type_print_args.
10805 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10806 comment. Add ``artificial'' to ``union field_location''.
10808 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10810 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10811 * mdebugread.c (parse_symbol): Likewise.
10812 * stabsread.c (define_symbol): Likewise.
10813 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10814 initializing TYPE_FIELD_BITPOS to n (obsolete).
10815 (hpread_doc_function_type): Likewise.
10816 * hpread.c (hpread_function_type): Likewise.
10820 * configure.in (host_makefile_frag): Only require a host makefile
10821 fragment when a native build.
10822 * configure: Re-generate.
10826 * doublest.h (floatformat_from_type): Declare.
10827 * doublest.c (floatformat_from_type): New function.
10828 (convert_typed_floating): Use.
10830 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10831 call to function floatformat_from_type.
10833 * gdbarch.sh (IEEE_FLOAT): Delete.
10834 * gdbarch.h, gdbarch.c: Re-generate.
10835 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10836 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10837 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10838 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10839 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10840 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10841 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10842 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10843 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10844 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10845 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10846 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10848 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10849 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10850 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10851 * sh-tdep.c (sh_gdbarch_init): Ditto.
10852 * mips-tdep.c (mips_gdbarch_init): Ditto.
10853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10854 * cris-tdep.c (cris_gdbarch_init): Ditto.
10858 * configure.host, configure.tgt: Support x86-64.
10859 * NEWS: Note new target x86-64.
10861 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10862 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10863 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10864 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10865 x86-64-linux-nat.o): Fix dependencies.
10869 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10870 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10871 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10872 * config/sparc/xm-sun4os4.h: Delete file.
10873 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10877 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10878 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10879 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10880 * config/i386/i386lynx.mh (XM_FILE): Delete.
10881 * config/rs6000/xm-rs6000ly.h: Delete file.
10882 * config/sparc/xm-sparclynx.h: Delete file.
10883 * config/m68k/xm-m68klynx.h: Delete file.
10884 * config/i386/xm-i386lynx.h: Delete file.
10885 * config/xm-lynx.h: Delete file.
10886 * config/djgpp/fnchange.lst: Update.
10890 * alpha-tdep.c (alpha_register_byte): New function.
10891 (alpha_register_raw_size): Ditto.
10892 (alpha_register_virtual_size): Ditto.
10893 (alpha_skip_prologue_internal): Renamed from
10894 alpha_skip_prologue.
10895 (alpha_skip_prologue): New version that calls
10896 alpha_skip_prologue_internal.
10897 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10898 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10899 second argument from alpha_skip_prologue.
10900 (REGISTER_BYTE): Use alpha_register_byte.
10901 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10902 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10903 (FRAMELESS_FUNCTION_INVOCATION): Use
10904 generic_frameless_function_invocation_not.
10905 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10906 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10910 * config/mips/xm-news-mips.h: Delete file.
10911 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10913 * config/m88k/xm-m88k.h: Delete file.
10914 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10915 * config/m88k/xm-delta88v4.h: Ditto.
10916 * config/m88k/xm-delta88.h: Ditto.
10918 * config/alpha/xm-fbsd.h: Delete file.
10919 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10921 * config/sparc/xm-sparc.h: Delete file.
10922 * Makefile.in (xm-sun4os4.h): Delete dependency.
10923 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10924 * config/sparc/xm-sun4os4.h: Ditto.
10925 * config/sparc/xm-linux.h: Ditto.
10927 * config/i386/xm-windows.h: Delete file.
10931 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10932 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10936 * alpha-tdep.c (alpha_call_dummy_words): New.
10937 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10938 (CALL_DUMMY_P): Define.
10939 (CALL_DUMMY_WORDS): Define.
10940 (SIZEOF_CALL_DUMMY_WORDS): Define.
10944 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10945 isn't NULL, which can happen with some gcj-3.x-produced code.
10949 * alpha-tdep.c (alpha_register_virtual_type): New function.
10950 (alpha_init_frame_pc_first): Ditto.
10951 (alpha_fix_call_dummy): Ditto.
10952 (alpha_store_struct_return): Ditto.
10953 (alpha_extract_struct_value_address): Ditto.
10954 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10955 alpha_register_virtual_type.
10956 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10957 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10958 alpha_extract_struct_value_address.
10959 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10960 (INIT_FRAME_PC): Use init_frame_pc_noop.
10961 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10965 * i386gnu-nat.c: Include "i386-tdep.h".
10966 (fetch_fpregs): Simplify code dealing with uninitialized floating
10967 point states such that it doesn't require FP7_REGNUM.
10971 * alpha-tdep.c (frame_extra_info): New.
10972 (alpha_find_saved_regs): Make static. Use
10974 (alpha_frame_init_saved_regs): New function.
10975 (alpha_frame_saved_pc): Use frame->extra_info.
10976 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10977 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10978 (init_extra_frame_info): Rename to...
10979 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10980 (alpha_print_extra_frame_info): New function.
10981 (alpha_frame_locals_address): Ditto.
10982 (alpha_frame_args_address): Ditto.
10983 (alpha_pop_frame): Use frame->extra_info.
10984 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10985 alpha_frame_args_address.
10986 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10987 (alpha_find_saved_regs): Remove prototype.
10988 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10989 (EXTRA_FRAME_INFO): Remove.
10990 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10991 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10995 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10996 (alpha_cannot_fetch_register): Ditto.
10997 (alpha_cannot_store_register): Ditto.
10998 (alpha_register_convertible): Ditto.
10999 (alpha_use_struct_convention): Ditto.
11000 * config/alpha/tm-alpha.h: Update copyright years.
11001 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11002 (INNER_THAN): Use core_addr_lessthan.
11003 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11004 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11005 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11006 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11007 (FRAME_CHAIN): Remove unnecessary cast.
11011 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11016 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11017 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11018 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11019 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11020 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11021 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11022 * x86-64-linux-nat.c: Ditto.
11026 * alpha-tdep.c (alpha_register_name): New function.
11027 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11028 (REGISTER_NAME): Define.
11032 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11036 * alpha-tdep.c: Update copyright years.
11037 (alpha_next_pc): New function.
11038 (alpha_software_single_step): Ditto.
11039 * config/alpha/tm-alpha.h: Add prototype for
11040 alpha_software_single_step.
11044 * alphabsd-nat.c: Update copyright years.
11045 (fill_gregset): Use regcache_collect.
11046 (fill_fpregset): Likewise.
11047 (fetch_inferior_registers): Only fetch integer registers
11048 if requested to do so.
11049 (store_inferior_registers): Only store integer registers
11050 if requested to do so.
11054 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11055 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11056 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11057 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11058 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11059 * config/arm/linux.mh (XDEPFILES): Delete.
11060 * config/arm/nbsd.mh (XDEPFILES): Delete.
11061 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11062 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11063 * config/i386/i386m3.mh (XDEPFILES): Delete.
11064 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11065 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11066 * config/i386/fbsd.mh (XDEPFILES): Delete.
11067 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11068 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11069 * config/i386/i386v4.mh (XDEPFILES): Delete.
11070 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11071 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11072 * config/i386/i386aix.mh (XDEPFILES): Delete.
11073 * config/i386/go32.mh (XDEPFILES): Delete.
11074 * config/i386/cygwin.mh (XDEPFILES): Delete.
11075 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11076 * config/i386/i386mach.mh (XDEPFILES): Delete.
11077 * config/i386/i386v32.mh (XDEPFILES): Delete.
11078 * config/i386/linux.mh (XDEPFILES): Delete.
11079 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11080 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11081 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11082 * config/i386/i386sco.mh (XDEPFILES): Delete.
11083 * config/i386/i386v.mh (XDEPFILES): Delete.
11084 * config/i386/nbsd.mh (XDEPFILES): Delete.
11085 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11086 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11087 * config/i386/symmetry.mh (XDEPFILES): Delete.
11088 * config/i386/obsd.mh (XDEPFILES): Delete.
11089 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11090 * config/ia64/linux.mh (XDEPFILES): Delete.
11091 * config/ia64/aix.mh (XDEPFILES): Delete.
11092 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11093 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11094 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11095 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11096 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11097 * config/m68k/linux.mh (XDEPFILES): Delete.
11098 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11099 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11100 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11101 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11102 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11103 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11104 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11105 * config/m88k/delta88.mh (XDEPFILES): Delete.
11106 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11107 * config/m88k/m88k.mh (XDEPFILES): Delete.
11108 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11109 * config/mips/linux.mh (XDEPFILES): Delete.
11110 * config/mips/irix6.mh (XDEPFILES): Delete.
11111 * config/mips/irix5.mh (XDEPFILES): Delete.
11112 * config/mips/irix4.mh (XDEPFILES): Delete.
11113 * config/mips/irix3.mh (XDEPFILES): Delete.
11114 * config/mips/decstation.mh (XDEPFILES): Delete.
11115 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11116 (NATDEPFILES): Move core-aout.o to here.
11117 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11118 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11119 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11120 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11121 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11122 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11123 * config/pa/hpux11.mh (XDEPFILES): Delete.
11124 * config/powerpc/aix.mh (XDEPFILES): Delete.
11125 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11126 * config/powerpc/linux.mh (XDEPFILES): Delete.
11127 * config/romp/rtbsd.mh: Rename XDEPFILES.
11128 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11129 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11130 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11131 * config/s390/s390.mh (XDEPFILES): Delete.
11132 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11133 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11134 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11135 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11136 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11137 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11138 * config/sparc/linux.mh (XDEPFILES): Delete.
11139 * config/vax/vaxult.mh (XDEPFILES): Delete.
11140 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11141 * Makefile.in (DEPFILES): Remove XDEPFILES.
11145 * utils.c (internal_verror): Fix comments, default is yes not no.
11146 Update queries to match. Default to quit and dump core.
11150 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11152 * defs.h, event-top.c, gdbcmd.h: Ditto.
11153 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11154 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11155 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11156 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11157 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11158 * mi/mi-main.c:Ditto.
11160 * stack.c, symfile.c: Update copyright.
11164 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11165 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11166 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11167 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11171 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11172 * gdbserver/low-lynx.c (myattach): Likewise.
11173 * gdbserver/low-nbsd.c (myattach): Likewise.
11174 * gdbserver/low-sim.c (myattach): Likewise.
11175 * gdbserver/low-sparc.c (myattach): Likewise.
11176 * gdbserver/low-sun3.c (myattach): Likewise.
11178 * gdbserver/low-linux.c (myattach): New function.
11180 * gdbserver/server.c (attach_inferior): New function.
11181 (main): Handle "--attach".
11185 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11190 * c-typeprint.c (is_type_conversion_operator): Add additional
11191 check for non-conversion operators.
11195 * linux-proc.c: Add "info proc" command, a la procfs.c.
11196 (read_mapping): New function, abstract and re-use code.
11197 (linux_find_memory_regions): Use new func read_mapping.
11198 (linux_info_proc_cmd): New function, implement "info proc".
11199 (_initialize_linux_proc): Add new command "info proc".
11203 * symfile.c (generic_load): Use bfd_map_over_sections method
11204 instead of manipulating bfd structure members directly.
11205 (add_section_size_callback): New function, bfd sections callback
11206 used by generic_load.
11207 (load_sections_callback): New function, bfd sections callback
11208 used by generic_load.
11212 [Based on work by Jim Blandy]
11213 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11214 (builtin_type_vec128): Export.
11215 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11217 (builtin_type_vec128): New builtin type for 128 bit vector
11219 (build_gdbtypes): Initialize builtin_type_v16qi and
11220 builtin_type_v8hi. Create the vec128 register builtin type
11222 (build_builtin_type_vec128): New function.
11223 (_initialize_gdbtypes): Register builtin_type_v16qi and
11224 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11225 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11226 AltiVec register to new builtin type.
11230 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11235 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11236 CLEAN_UP_REGISTER_VALUE.
11237 * regcache.c (supply_register): Update only call.
11241 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11242 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11243 a29k-*-vxworks* targets as obsolete.
11247 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11248 until we can resolve portability issues.
11249 * gregset.h: Remove references to fpxregs.
11250 * gcore.c (gcore_command): Initialize note_sec to NULL.
11254 * signals.c (target_signal_to_name): Rewrite. Only use
11255 signals[].name when in bounds and non-NULL.
11260 * signals.c (target_signal_to_name): Verify that SIG is within the
11261 bounds of the signals array.
11265 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11269 * stack.c (print_frame_info_base): Print the frame's pc
11270 only if when print_frame_info_listing_hook is not defined.
11274 * varobj.c (varobj_set_value): Make sure that there were no
11275 errors evaluating the object before attempting to set its
11277 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11278 so this offset adjustment is no longer necessary.
11279 (create_child): Don't set the error flag if the child is
11280 a CPLUS_FAKE_CHILD.
11281 (value_of_child): If value_fetch_lazy fails, return NULL
11282 so that callers will be notified that an error occurred.
11283 (c_value_of_variable): Delay check of variable's validity
11284 until later. We actually want all structs and unions to have
11286 Do not return "???" for variables which could not be evaluated.
11287 This error condition must be returned to the caller so that it
11288 can get the error condition from gdb.
11289 (cplus_name_of_child): Adjust index for vptr before figuring
11290 out the name of the child.
11291 (cplus_value_of_child): If a child's (real) parent is not valid,
11292 don't even bother trying to give a value for it. Just return
11293 an error. Change all instances in this function.
11294 (cplus_type_of_child): If our parent is one of the "fake"
11295 parents, we need to get at the type of the real parent, and
11296 derive the child's true type using this information.
11301 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11302 sources.redhat.com, and tweak some related URLs which had
11303 suffered from linkrot.
11308 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11309 structures passed in registers.
11313 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11314 white space which prevented compilation. Reported by DSK
11319 * symfile.c (build_section_addr_info_from_section_tab):
11320 Use bfd access method instead of manipulating bfd directly.
11321 (syms_from_objfile): Ditto.
11322 (simple_overlay_update_1): Ditto.
11323 (simple_overlay_update): Ditto.
11324 (generic_load): Ditto.
11325 (overlay_unmapped_address): FIXME comment, bfd access methods.
11326 (sections_overlap): FIXME comment, bfd access methods.
11327 (pc_in_mapped_range): FIXME comment, bfd access methods.
11328 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11329 (section_is_mapped): FIXME comment, bfd access methods.
11330 (section_is_overlay): FIXME comment, bfd access methods.
11332 * symfile.c (generic_load): Whitespace and long line cleanups.
11333 Remove duplicate variable, change several local variables to
11334 more appropriate data types.
11335 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11339 From Peter Schauer:
11340 * language.c (longest_local_hex_string_custom): Use phex_nz to
11341 convert NUM to a hex string.
11345 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11347 Update Copyright year.
11351 * language.c (longest_raw_hex_string): Delete unused function.
11355 * MAINTAINERS (write-after-approval): Add myself.
11356 * dwarf2read.c (read_tag_string_type): Handling of
11358 (read_tag_string_type): FORTRAN fix to prevent propagation of
11360 (set_cu_language): Handling of DW_LANG_Fortran95
11364 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11365 GETPID(inferior_ptid).
11366 (store_inferior_registers): Likewise.
11370 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11375 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11376 and bfd/elf32-sh-nbsd.c.
11380 * NEWS: Mention --pid and corefile/proc-id behavior change.
11382 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11383 * gcore.c: Include cli/cli-decode.h instead of command.h.
11385 * main.c (captured_main): Add new command line option "--pid".
11386 If the second command line argument (following the symbol-file)
11387 begins with a digit, try to attach to it before trying to open
11389 (print_gdb_help): Document the "--pid" argument.
11393 * completer.c (command_completer): New function.
11395 * completer.h <command_completer>: Add prototype.
11397 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11398 completer for the "help" command.
11402 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11406 * i386-linux-nat.c (fill_fpxregset): Make global.
11407 (store_fpxregset): Ditto.
11409 * gregset.h (gdb_fpxregset_t): Define.
11410 (supply_fpxregset): Prototype.
11411 (fill_fpxregset): Prototype.
11413 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11417 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11418 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11419 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11423 * MAINTAINERS: Update target maintainer rules so that any
11424 Maintainer can approve a tested patch for a maintenance-only
11429 * MAINTAINERS (write-after-approval): Add myself.
11431 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11436 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11437 real name of the executable, rather than the /proc name.
11441 Implement a "generate-core-file" command in gdb, save target state.
11442 * gcore.c: New file. Implement new command 'generate-core-file'.
11443 Save a corefile image of the current state of the inferior.
11444 * linux-proc.c: Add linux-specific code for saving corefiles.
11445 * target.h (struct target_ops): Add new target vectors for saving
11446 corefiles; to_find_memory_regions and to_make_corefile_notes.
11447 (target_find_memory_regions): New macro.
11448 (target_make_corefile_notes): New macro.
11449 * target.c (update_current_target): Inherit new target methods.
11450 (dummy_find_memory_regions): New place-holder method.
11451 (dummy_make_corefile_notes): New place-holder method.
11452 (init_dummy_target): Initialize new dummy target vectors.
11453 * exec.c (exec_set_find_memory_regions): New function.
11454 Allow the exec_ops vector for memory regions to be taken over.
11455 (exec_make_note_section): New function, target vector method.
11456 * defs.h (exec_set_find_memory_regions): Export prototype.
11457 * procfs.c (proc_find_memory_regions): New function, corefile method.
11458 (procfs_make_note_section): New function, corefile method.
11459 (init_procfs_ops): Set new target vector pointers.
11460 (find_memory_regions_callback): New function.
11461 (procfs_do_thread_registers): New function.
11462 (procfs_corefile_thread_callback): New function.
11463 * sol-thread.c (sol_find_memory_regions): New function.
11464 (sol_make_note_section): New function.
11465 (init_sol_thread_ops): Initialize new target vectors.
11466 * inftarg.c (inftarg_set_find_memory_regions): New function.
11467 Allow to_find_memory_regions vector to be taken over.
11468 (inftarg_set_make_corefile_notes): New function.
11469 Allow to_make_corefile_notes vector to be taken over.
11470 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11471 interface layer if not target_has_execution (may be a corefile).
11472 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11473 * config/sparc/sun4sol2.mh: Ditto.
11474 * config/alpha/alpha-linux.mh: Ditto.
11475 * config/arm/linux.mh: Ditto.
11476 * config/i386/x86-64linux.mh: Ditto.
11477 * config/ia64/linux.mh: Ditto.
11478 * config/m68k/linux.mh: Ditto.
11479 * config/mips/linux.mh: Ditto.
11480 * config/powerpc/linux.mh: Ditto.
11481 * config/sparc/linux.mh: Ditto.
11485 * arm-linux-nat.c: Remove references to regcache.c internal data
11486 (registers[] and register_valid[]).
11490 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11491 so that attaching to a pid will automatically read the process's
11492 symbol file and shlibs.
11493 * Makefile.in: Add rule for linux-proc.o.
11494 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11495 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11496 * config/arm/linux.mh: Ditto.
11497 * config/i386/linux.mh: Ditto.
11498 * config/i386/x86-64linux.mh: Ditto.
11499 * config/ia64/linux.mh: Ditto.
11500 * config/m68k/linux.mh: Ditto.
11501 * config/mips/linux.mh: Ditto.
11502 * config/powerpc/linux.mh: Ditto.
11503 * config/sparc/linux.mh: Ditto.
11507 * win32-nat.c: Add i386-tdep.h dependency.
11511 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11512 instead of bfd_get_arch_size. Don't bail out just because
11513 there's no exec_bfd.
11515 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11516 * p-valprint.c (pascal_object_print_value): Ditto.
11517 * somread.c (som_symtab_read): Ditto.
11518 * symfile.c (simple_free_overlay_region_table): Ditto.
11519 * valops.c (value_assign): Ditto.
11521 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11522 use tilde_expand and strerror for opening save-tracepoints file.
11524 * thread-db.c (thread_db_new_objfile): Indendation fix.
11526 * infptrace.c (GDB_MAX_ALLOCA): New define.
11527 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11528 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11529 can be overridden with whatever value is appropriate to the host).
11530 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11531 alloca to allocate potentially large buffer.
11532 * rs6000-nat.c (child_xfer_memory): Ditto.
11533 * symm-nat.c (child_xfer_memory): Ditto.
11534 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11539 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11543 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11544 Don't use exec_bfd if it's NULL.
11548 * valops.c (value_arg_coerce): Fix formatting.
11552 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11553 * gnu-nat.c: Ditto.
11557 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11558 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11559 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11560 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11561 z8k-coff have not been multi-arched. Update z8k-coff build
11566 * MAINTAINERS: Mark a29k target as obsolete.
11567 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11568 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11570 * NEWS: Note that a29k targets are obsolete.
11571 * a29k-tdep.c: Mark as obsolete.
11572 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11573 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11574 a29k-*-vxworks* targets as obsolete.
11575 * remote-adapt.c: Obsolete.
11576 * remote-eb.c: Obsolete.
11577 * remote-mm.c: Obsolete.
11578 * remote-udi.c: Obsolete.
11579 * config/a29k/a29k-udi.mt: Obsolete.
11580 * config/a29k/a29k.mt: Obsolete.
11581 * config/a29k/tm-a29k.h: Obsolete.
11582 * config/a29k/tm-vx29k.h: Obsolete.
11583 * config/a29k/vx29k.mt: Obsolete.
11587 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11588 with BFD_ENDIAN_BIG.
11592 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11593 * configure, config.in: Re-generate.
11594 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11595 * defs.h: Do not include <endian.h>.
11599 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11600 * config.in: Regenerate.
11601 * configure.in: Update copyright years.
11602 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11603 * configure: Regenerate.
11604 * i386bsd-nat.c: Update copyright years.
11605 (fill_gregset): Use regcache_collect.
11606 (fetch_inferior_registers): Only fetch integer registers
11607 if requested to do so. Add support for XMM registers
11608 using PT_GETXMMREGS.
11609 (store_inferior_registers): Only store integer registers
11610 if requested to do so. Add support for XMM registers
11611 using PT_SETXMMREGS.
11612 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11613 (store_inferior_registers): Remove.
11614 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11615 (fetch_elfcore_registers): New function.
11616 (i386nbsd_elfcore_fns): New.
11617 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11618 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11620 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11621 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11622 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11623 * config/i386/tm-nbsd.h: Update copyright years.
11624 (HAVE_SSE_REGS): Define.
11625 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11626 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11627 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11628 (SIGCONTEXT_PC_OFFSET): Remove.
11629 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11633 * configure.tgt: Remove powerpc-*-macos* target.
11634 * config/m68k/xm-mpw.h: Delete file.
11635 * config/xm-mpw.h: Delete file.
11636 * ser-mac.c: Delete file.
11637 * mpw-make.sed: Delete file.
11638 * mpw-config.in: Delete file.
11639 * mac-xdep.c: Delete file.
11640 * mac-gdb.r: Delete file.
11641 * mac-defs.h: Delete file.
11642 * mac-nat.c: Delete file.
11643 * config/powerpc/macos.mh: Delete file.
11644 * config/powerpc/macos.mt: Delete file.
11645 * config/powerpc/nm-macos.h: Delete file.
11646 * config/powerpc/tm-macos.h: Delete file.
11647 * source.c (openp, open_source_file): Remove obsolete code.
11648 * top.c (gdb_readline): Ditto.
11649 * utils.c (query): Ditto.
11650 * event-top.c (display_gdb_prompt): Ditto.
11651 * Makefile.in (ser-mac.o): Delete obsolete target.
11656 * defs.h (BIG_ENDIAN): Delete macro definition.
11657 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11658 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11659 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11660 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11661 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11662 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11663 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11664 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11665 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11666 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11667 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11668 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11669 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11670 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11671 * gdbarch.c: Re-generate.
11675 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11680 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11684 * value.h (value_ptr): Delete typedef.
11688 * i386nbsd-nat.c: Update copyright years.
11689 Include i386-tdep.h.
11693 * stabsread.c: Update copyright years.
11696 (read_struct_fields): Deal with Sun C compiler erroneous stab
11697 output for structs and unions.
11702 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11707 * cp-abi.c: Fix whitespace.
11708 (baseclass_offset): New wrapper function.
11709 * cp-abi.h (baseclass_offset): Add prototype.
11710 (struct cp_abi_ops): Add baseclass_offset pointer.
11712 * valops.c (vb_match): Move to...
11713 * gnu-v2-abi.c (vb_match): here.
11714 * valops.c (baseclass_offset): Move to...
11715 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11717 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11719 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11720 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11721 * hpacc-abi.c (init_hpacc_ops): Likewise.
11725 * valops.c (find_overload_match): Accept obj as a
11726 reference parameter. Update it before returning.
11727 * value.h (find_overload_match): Update prototype.
11728 * eval.c (evaluate_subexp_standard): Pass object to
11729 find_overload_match by reference.
11733 * valarith.c: Replace value_ptr with struct value pointer. Remove
11734 register attribute from value declarations.
11737 * scm-lang.c (scm_lookup_name): Ditto.
11741 Abstract the functionality of iterating over mapped memory
11742 regions into a general purpose iterator function.
11743 * procfs.c (iterate_over_mappings): New function, general purpose
11744 iterator for memory sections.
11745 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11746 (solib_mappings_callback): New function, callback for above.
11747 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11748 (info_mappings_callback): New function, callback for above.
11750 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11754 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11755 * i386-tdep.c: Include "elf-bfd.h".
11756 (process_note_abi_tag_sections): New function.
11757 (i386_gdbarch_init): Add code to recognize various OS/ABI
11760 * maint.c (_initialize_maint_cmds): Add missing \ in
11763 For older changes see ChangeLog-2001
11769 version-control: never