1 2002-10-09 Marko Mlinar <markom@opencores.org>
3 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
4 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
5 * gdbarch.h, gdbarch.c: Re-generate.
7 2002-10-08 Petr Sorfa <petrs@caldera.com>
9 Revised and re-submitted by John Wolfe <jlw@caldera.com>
11 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
12 so we can work on more than one compilation unit at a time. This
13 helps prepare GDB to handle inter-CU die references.
14 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
15 the code to be defined before struct comp_unit_head.
16 (comp_unit_head): Added new members - offset, cu_head,
17 begin_die, next and dwarf2_abbrevs.
18 (dwarf2_abbrevs): Removed single static var; now member of
19 struct comp_unit_head.
20 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
22 (psymtab_to_symtab_1): Changed to work with the new
23 struct comp_unit_head.
24 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
25 constructs the dwarf2_abbrevs[] inside the cu_header.
26 (dwarf2_empty_abbrev_table): Now expects a ptr to a
27 dwarf2_abbrev table to clean up.
28 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
29 handling of dwarf2_abbrevs inside the cu_header.
30 (read_partial_die): Now supports the call to the new
32 (read_full_die): Now supports the call to the new
35 2002-10-06 Christopher Faylor <cgf@redhat.com>
37 * Makefile.in (install-gdbtk): Add missing continuation backslash to
38 insure that shell variables, such as "transformed_name" are propagated
39 to later shell statements in rule.
41 2002-10-06 Mark Kettenis <kettenis@gnu.org>
43 * config/i386/nm-i386sco.h: Add protection against
44 multiple-inclusion. Include "i386/nm-i386v.h".
45 (REGISTER_U_ADDR): Remove define.
46 (i386_register_u_addr): Remove prototype.
48 2002-10-04 Michael Snyder <msnyder@redhat.com>
50 * m32r-stub.c (handle_exception): Make sure exception is "trap"
51 before treating it as a single-step event.
53 2002-10-03 Adam Fedor <fedor@gnu.org>
55 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
56 (objc_demangle): Remove assignment in if statements, Replace
58 (add_msglist): Likewise.
59 (end_msglist): Likewise.
60 (complare_selectors): Likewise.
61 (selectors_info): Likewise.
62 (compare_classes): Likewise.
63 (classes_info): Likewise.
64 (print_object_command): Likewise.
65 (find_objc_msgcall_submethod): Replace PTR with void *.
66 * objc-lang.h: Remove check for __STDC__.
68 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
70 * ui-out.h (ui_out_field_fmt_int): New prototype.
71 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
72 of field width and alignment.
73 * stack.c (print_frame_info_base): When printing frame level, use
74 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
77 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
79 * MAINTAINERS: Add self to Write After Approval list.
81 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
83 * infcmd.c (interrupt_target_command_wrapper): Delete.
84 (interrupt_target_command): Make non static.
85 (nofp_registers_info): Make static.
86 * stack.c (return_command_wrapper): Delete.
87 (return_command): Make non static.
89 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
91 * event-top.c (gdb_setup_readline): New function. Code moved from
92 _initialize_event_loop().
93 (_initialize_event_loop): Call gdb_setup_readline().
95 2002-10-02 Andrew Cagney <ac131313@redhat.com>
97 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
98 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
99 * gdbarch.h, gdbarch.c: Re-generate.
101 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
104 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
106 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
107 of fill_in_vptr_fieldno.
109 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
111 * inferior.h (registers_info, stepi_command, nexti_command,
112 continue_command, interrupt_target_command): Export from infcmd.c.
113 * frame.h (args_info, selected_frame_level_changed_hook,
114 return_command): Export from stack.c.
115 * v850ice.c (stepi_command, nexti_command, continue_command): use
116 prototypes from inferior.h.
117 * tracepoint.c (registers_info, args_info, locals_info): Use
118 prototypes from frame.h and inferior.h.
119 * Makefile.in (mi-main.o): Add dependency on frame.h.
121 2002-10-02 Andrew Cagney <ac131313@redhat.com>
123 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
124 value in register 3 adjusted by ppc_gp0_regnum.
126 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
128 2002-10-02 Marko Mlinar <markom@opencores.org>
130 * MAINTAINERS: Add myself to the Write After Approval list.
132 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
134 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
135 of the section for the N64 ABI, fixed.
137 * config/mips/tm-irix6.h: Include solib.h.
139 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
141 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
144 2002-10-01 Andrew Cagney <ac131313@redhat.com>
146 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
147 and that "mi0" syntax has been removed.
149 2002-09-30 David Carlton <carlton@math.stanford.edu>
151 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
152 * ppc-sysv-tdep.c: #include "gdb_string.h".
153 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
156 2002-10-01 Andrew Cagney <ac131313@redhat.com>
158 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
159 "vrsave"'s register number.
161 2002-09-30 Andrew Cagney <ac131313@redhat.com>
163 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
164 use frame_unwind_signed_register to obtain the PC.
165 (mips_frame_chain): Handle a generic dummy frame.
166 (mips_init_extra_frame_info): When a generic dummy frame, don't
167 re-compute the frame base.
168 (mips_pop_frame): Handle generic dummy frames.
169 (mips_gdbarch_init): When generic dummy frames, set
170 use_generic_dummy_frames, push_dummy_frame to
171 generic_push_dummy_frame, pc_in_call_dummy to
172 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
173 generic_save_dummy_frame_tos.
175 2002-09-30 Andrew Cagney <ac131313@redhat.com>
177 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
178 against TOP when TOP was explictly set.
179 (generic_push_dummy_frame): Set TOP to zero.
181 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
183 * event-loop.c (start_event_loop): Rename variable 'result' to
184 'gdb_result', to avoid conflicts with upcoming intepreters changes.
186 2002-09-30 Keith Seitz <keiths@redhat.com>
188 * gdb-events.sh (selected_thread_changed): New event.
189 * gdb-events.c: Regenerated.
190 * gdb-events.h: Regenerated.
192 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
194 * MAINTAINERS: Add self to Write After Approval list.
196 2002-09-30 Fernando Nasser <fnasser@redhat.com>
198 * disasm.c: New file.
199 * disasm.h: New file.
200 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
201 (compare_lines): Ditto.
203 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
205 (do_assembly_only): Ditto.
206 (do_disassembly): Renamed to gdb_disassembly and moved to
207 disasm.c. Sdded uiout argument.
208 * Makefile.in: Add new files. Reorder SFILES list. Update
209 dependencies. Include libgdb.a later in the insight executable.
211 2002-09-29 Andrew Cagney <ac131313@redhat.com>
213 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
214 bfd/elf64-alpha-fbsd.c.
216 2002-09-29 Andrew Cagney <ac131313@redhat.com>
218 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
221 2002-09-29 Andrew Cagney <ac131313@redhat.com>
223 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
225 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
227 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
228 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
229 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
230 (S_msg_sig_post_reply): Ditto.
232 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
234 * sh-tdep.c (sh_use_struct_convention): Use definition according
236 (sh_push_arguments): Store in register with correct endianess.
237 (sh_default_store_return_value): Ditto.
238 (sh_gdbarch_init): Set sizeof long double to 8.
240 2002-09-27 Mark Kettenis <kettenis@gnu.org>
242 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
243 Fix some whitespace problems.
245 2002-09-27 David Carlton <carlton@math.stanford.edu>
247 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
248 (mcore-tdep.o): Ditto.
249 (ns32k-tdep.o): Ditto.
250 (ns32knbsd-tdep.o): Ditto.
253 * cris-tdep.c: #include "gdb_string.h"
254 * mcore-tdep.c: Ditto.
255 * ns32k-tdep.c: Ditto.
256 * ns32knbsd-tdep.c: Ditto.
260 2002-09-27 David Carlton <carlton@math.stanford.edu>
262 * config/djgpp/fnchange.lst: Add entries for
263 gdb/testsuite/gdb.c++/m-static files.
265 2002-09-27 Jim Wilson <wilson@redhat.com>
267 * MAINTAINERS: Add myself to the Write After Approval list.
269 2002-09-26 Martin M. Hunt <hunt@redhat.com>
271 * mips-tdep.c (find_proc_desc): Initialize startaddr.
274 2002-09-26 Andrew Cagney <ac131313@redhat.com>
276 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
279 2002-09-26 Andrew Cagney <ac131313@redhat.com>
281 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
282 (rs6000_struct_return_address): Delete variable.
283 (rs6000_store_struct_return): Update.
284 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
285 deprecated_extract_struct_value_address.
286 (rs6000_frame_align): New function.
287 (rs6000_gdbarch_init): Set frame_align.
289 2002-09-26 Andrew Cagney <ac131313@redhat.com>
291 From Grace Sainsbury <graces@redhat.com>:
292 * Makefile.in (gdbtk-main.o): New target.
295 (main.o): Update dependencies.
296 (gdb$(EXEEXT)): Add gdb.o.
297 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
298 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
299 (SUBDIR_GDBTK_CLEAN): Set.
300 (install-gdbtk): Install the insight binary.
301 (uninstall-gdbtk): New target.
302 (all-gdbtk, clean-gdbtk): New rule.
303 * top.c (use_windows): Default to zero.
304 * main.c: Include "main.h".
306 (struct captured_main_args): Delete.
307 (gdb_main): New function.
311 2002-09-25 Andrew Cagney <cagney@redhat.com>
313 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
314 (frame_map_regnum_to_name): New function.
315 (frame_map_name_to_regnum): New function.
316 * frame.h (frame_map_name_to_regnum): Declare.
317 (frame_map_regnum_to_name): Declare.
318 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
319 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
320 * parse.c: Do not include "builtin-regs.h".
321 (target_map_name_to_register): Delete function.
322 (write_dollar_variable): Use frame_map_name_to_regnum.
323 * parser-defs.h (target_map_name_to_register): Delete declaration.
324 * expprint.c: Include "frame.h".
325 (print_subexp): Use frame_map_regnum_to_name.
326 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
327 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
329 2002-09-25 Andrew Cagney <ac131313@redhat.com>
331 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
332 wasn't saved, and the next innermost frame is a dummy, return the
333 dummy frame's link register.
335 2002-09-24 Jim Blandy <jimb@redhat.com>
338 * main.c (captured_main): Add a `break' after the case for 'b'.
340 2002-09-24 Keith Seitz <keiths@redhat.com>
342 * varobj.c (c_type_of_child): Use get_target_type instead
345 2002-09-22 Fernando Nasser <fnasser@redhat.com>
347 * source.c (get_current_or_default_source_symtab_and_line): Remove
349 (set_default_source_symtab_and_line): New function. Attempts to
350 determine a source file to list lines from if one is not currently
352 (get_current_source_symtab_and_line): Initialize sal.pc and
354 (set_current_source_symtab_and_line): Mark argument as const.
355 * source.h: Update declarations and comments.
356 * linespec.c (decode_line_1): Replace call to removed routine above.
357 * stack.c (print_frame_info_base): Ditto.
358 * cli/cli-cmds.c (edit_command): Ditto.
359 (list_command): Ditto.
361 2002-09-22 Fernando Nasser <fnasser@redhat.com>
363 * source.c (get_current_or_default_source_symtab_and_line): Initialize
364 sal.pc and sal.end fields.
365 (get_current_or_default_source_symtab_and_line): Ditto.
366 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
367 so we do not cause a new source symtab to be searched for (reverting an
368 unintentional change from the 2002-09-20 patch).
369 * scm-lang.c (scm_unpac): Ditto.
371 2002-09-21 Andrew Cagney <cagney@redhat.com>
373 * complaints.c (symfile_explanations): Remove new-line from
374 ``isolated_message''.
375 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
376 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
378 2002-09-20 Nick Clifton <nickc@redhat.com>
380 * NEWS: Announce that V850EA ISA is no longer supported.
381 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
383 2002-09-20 David Carlton <carlton@math.stanford.edu>
385 * Makefile.in (c-lang.o): Correct dependencies.
386 (utils.o): Gather dependencies.
388 * c-lang.c: #include "gdb_string.h"
390 2002-09-20 Fernando Nasser <fnasser@redhat.com>
392 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
393 * cli/cli-cmds.c (list_command): New function. Implements the new
395 (_init_cli_cmds): Add new command definition.
396 * gdb.1: Document edit command.
397 * doc/gdb.texinfo: Document edit command.
399 2002-09-20 Fernando Nasser <fnasser@redhat.com>
401 * source.c: Make global variables current_source_symtab and
402 current_source_line static.
403 (list_command): Moved to cli/cli-cmds.c.
404 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
405 (get_first_line_listed): New accessor function.
406 (get_lines_to_list): New accessor function.
407 (get_current_source_symtab_and_line): New function. Retrieves the
408 position in the source code that we consider current.
409 (get_current_or_default_source_symtab_and_line): New function.
410 Like the above but attempts to determine a default position if one
411 is not currently defined.
412 (set_current_source_symtab_and_line): New function. Sets the source
413 code position considered current and returns the previously set one.
414 (clear_current_source_symtab_and_line): Reset stored information about
415 a current source line.
416 (_initialize_source): Remove registration for the "list" command and
418 * source.h: Add declarations for the new functions above.
419 * symtab.h: Remove declarations for the global variables mentioned
421 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
422 obtain current source line.
423 * linespec.c (decode_line_1): Ditto.
424 * macroscope.c (default_macro_scope): Ditto.
425 * scm-lang.c (scm_unpac): Ditto.
426 * stack.c (print_frame_info_base): Ditto.
427 * symfile.c (clear_symtab_users): Ditto.
428 * symtab.c (decode_line_spec): Ditto.
429 * cli/cli-cmds.c (list_command): Moved here from source.c.
430 (ambiguous_line_spec): Moved here from source.c.
431 (_init_cli_cmds): Add definition for "list" and its alias.
432 * Makefile.in: Update dependencies.
434 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
436 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
437 with what gcc thinks is correct.
439 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
441 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
442 multiple register push instruction.
444 2002-09-19 Jim Blandy <jimb@redhat.com>
446 Add support for distinct host and target character sets.
447 * charset.c, charset.h: New files.
448 * c-exp.y: #include "charset.h".
449 (yylex): Convert character and string literals to the target
450 character set, before returning them as the semantic value of the
452 * c-lang.c: #include "charset.h".
453 (c_emit_char): Use charset-specific methods to recognize
454 characters with backslash escape forms, to decide which characters
455 to print literally and which to print using numeric escape
456 sequences, and to convert target characters to host characters
458 * utils.c: #include "charset.h".
459 (no_control_char_error): New function.
460 (parse_escape): Use charset-specific methods to recognize
461 backslash escapes, parse `control character' notation, and convert
462 characters from the host character set to the target character set.
463 * configure.in: Set the default host character set.
464 Check where to find iconv, and what its argument types might be.
465 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
466 * Makefile.in (SFILES): List charset.c.
467 (COMMON_OBS): List charset.o.
468 (charset.o): New rule.
469 (charset_h): New header dependency variable.
470 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
471 (LIBICONV): New variable, set by configure.
472 (CLIBS): Include $(LIBICONV) here.
473 * aclocal.m4, config.in, configure: Regenerated.
475 2002-09-19 Joel Brobecker <brobecker@gnat.com>
477 * ada-exp.y: Add missing semicolons to end rules. Fixes a
480 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
482 * gdb_mbuild.sh: New file.
484 2002-09-19 Andrew Cagney <ac131313@redhat.com>
486 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
488 2002-09-18 Andrew Cagney <ac131313@redhat.com>
490 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
491 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
492 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
493 valops.c, value.h: Revert previous change.
495 2002-09-18 Michael Snyder <msnyder@redhat.com>
497 Preliminary support for Objective-C:
498 * defs.h (language_objc): New enum value.
499 (puts_filtered_tabular): Declaration only, exported from utils.c.
500 (skip_quoted): Delete, declared in completer.h.
501 * c-exp.y: Include completer.h.
504 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
505 New operator enum values.
506 * language.h (CAST_IS_CONVERSION): Test for language_objc.
507 * language.c (binop_result_type): Handle language_objc case.
508 (integral_type, character_type, string_type, boolean_type,
509 structured_type, binop_type_check): Ditto.
510 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
511 (struct objc_specific): Add to general_symbol_info.
512 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
513 (SYMBOL_DEMANGLED_NAME): Handle objc case.
514 * parser-defs.h (struct objc_class_str): New struct type.
515 (start_msglist, end_msglist, add_msglist): Declaration only,
516 exported from objc-lang.c.
517 * value.h (value_of_local, value_nsstring,
518 call_function_by_hand_expecting_type): Exported from valops.c.
519 * valops.c (find_function_addr): Export.
520 (call_function_by_hand_expecting_type): New function.
521 (value_of_local): New function.
522 * symfile.c (init_filename_language_table): Add ".m" extension
524 * utils.c (puts_filtered_tabular): New function.
525 (fprintf_symbol_filtered): Add objc demangling support (disabled).
526 (set/show demangle): Extend help-string to refer to ObjC.
527 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
528 * stabsread.c (symbol_reference_defined): Objective-C symbols
529 may contain colons: make allowances when scanning stabs strings
531 (objc_find_colon): New function.
532 * printcmd.c (address_info): If language == objc then print
533 "self" instead of "this".
534 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
535 OP_NSSTRING, and OP_SELF.
536 (prefixify_subexp): Ditto.
537 * source.c (print_source_lines): Mention objc in comment.
538 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
541 2002-09-18 Andrew Cagney <ac131313@redhat.com>
543 * complaints.h: Update copyright.
544 (struct complaints): Declare.
545 (struct complaint): Make `message' constant.
546 (internal_complaint): Declare.
547 (complaint): Declare.
548 (complaint_root): Delete declaration.
549 (symfile_complaints): Delete declaration.
550 (struct complaints): Add opaque declaration.
551 (clear_complaints): Add a complaints parameter.
552 * complaints.c: Update copyright.
553 (enum complaint_series): Define.
554 (complaint_root): Delete.
555 (struct complaints): Define.
556 (complaint_sentinel, symfile_complaint_book): New variables.
557 (symfile_explanations, symfile_complaints): New variables.
559 (get_complaints): New function.
560 (vcomplaint): New function.
561 (complaint): New function.
562 (internal_complaint): New function.
563 (complain): Call vcomplain with symfile_complaint.
564 (clear_complaints): Rewrite.
565 (_initialize_complaints): Use add_setshow_command.
566 * Makefile.in (complaints.o): Update dependencies.
567 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
568 to call to clear_complaints.
569 (new_symfile_objfile, reread_symbols): Ditto.
570 (oldsyms_complaint): Delete.
571 (empty_symtab_complaint, unknown_option_complaint): Delete.
572 (free_named_symtabs): Use complaint instead of complain.
574 2002-09-18 Michael Snyder <msnyder@redhat.com>
576 Contributed by Apple Computer, Inc. Merged with current sources
577 by Adam Fedor <fedor@doc.com> [cagney].
579 * objc-lang.c: First clean-up round: comments, indentation.
580 * objc-lang.h: Ditto.
581 * objc-lang.y: Ditto.
583 2002-09-18 Andrew Cagney <ac131313@redhat.com>
585 * maint.c (maintenance_internal_error): Print the parameter as the
587 (maintenance_internal_warning): New function.
588 (_initialize_maint_cmds): Add command `maint internal-warning'.
590 * defs.h (internal_warning, internal_vwarning): Declare.
591 * utils.c (struct internal_problem): Define.
592 (internal_vproblem): New function.
593 (internal_warning): New function.
594 (internal_vwarning): New function.
595 (internal_warning_problem, internal_error_problem): New variables.
596 (internal_verror): Just call internal_vproblem.
598 2002-09-18 Michael Snyder <msnyder@redhat.com>
600 * objc-lang.c: New file, support for Objective-C.
601 Preliminary check-in, not yet integrated into gdb.
602 * objc-lang.h: New file.
603 * objc-exp.y: New file.
605 2002-09-18 Andrew Cagney <ac131313@redhat.com>
607 * infrun.c (signal_stop_update): Convert definition to ISO C.
608 (signal_print_update): Ditto.
609 (signal_pass_update): Ditto.
610 * inflow.c (terminal_save_ours): Ditto.
612 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
615 * config/djgpp/fnchange.lst: Handle name clashes between
616 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
619 * i386-linux-tdep.h: Fix tipo.
621 2002-09-18 Adam Fedor <fedor@gnu.org>
623 * MAINTAINERS: Add myself to the Write After Approval list.
625 2002-09-18 Jim Blandy <jimb@redhat.com>
627 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
628 texthigh and textlow to reader-specific structs caused
629 objfile_relocate to miss them. This is fixable, but the work that
630 the change was supposed to prepare GDB for never got done anyway.
632 2002-09-18 David Carlton <carlton@math.stanford.edu>
634 * MAINTAINERS: Alphabetize Write After Approval list.
636 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
639 * values.c (value_static_field): Call read_var_value.
641 2002-09-18 Andrew Cagney <ac131313@redhat.com>
643 * valops.c (hand_function_call): Align the initial stack pointer
644 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
645 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
647 * mips-tdep.c (mips_frame_align): New function.
648 (mips_gdbarch_init): Set frame_align.
649 * gdbarch.sh (FRAME_ALIGN): New method.
650 * gdbarch.h, gdbarch.c: Re-generate.
652 2002-09-18 Michal Ludvig <mludvig@suse.cz>
654 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
657 2002-09-17 Andrew Cagney <ac131313@redhat.com>
659 * NEWS: Mention that MIPS $fp behavior changed.
660 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
661 reference to FP_REGNUM.
662 (mipsnbsd_cannot_store_register): Ditto.
663 * mips-linux-nat.c: Update copyright.
664 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
665 (mips_linux_cannot_store_register): Ditto.
666 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
667 * config/mips/tm-mips.h: Update copyright.
668 (FP_REGNUM): Delete macro.
669 (MIPS_REGISTER_NAMES): Replace "fp" with "".
670 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
671 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
672 (mips_r3041_reg_names, mips_r3051_reg_names)
673 (mips_r3081_reg_names): Replace "fp" with "".
676 2002-09-17 Theodore A. Roth <troth@verinet.com>
678 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
679 generic_read_register_dummy() (PR gdb/703).
680 (avr_push_return_address): #if 0 out unused vars.
681 (avr_gdbarch_init): Enable use of avr_push_return_address().
683 2002-09-17 Michael Snyder <msnyder@redhat.com>
685 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
686 RTE will take care of it.
688 2002-09-17 Andrew Cagney <ac131313@redhat.com>
690 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
691 invalid, return SP_REGNUM.
693 2002-09-17 Michael Snyder <msnyder@redhat.com>
695 * mips-tdep.c (mips_pop_frame): Read saved values of floating
696 point registers without sign extension.
698 2002-09-17 Andrew Cagney <cagney@redhat.com>
700 * blockframe.c (deprecated_read_register_dummy): Rename
701 generic_read_register_dummy.
702 * frame.c (frame_unwind_signed_register): New function.
703 (frame_unwind_unsigned_register): New function.
704 * frame.h (frame_unwind_signed_register): Declare.
705 (frame_unwind_unsigned_register): Declare.
706 (deprecated_read_register_dummy): Rename
707 generic_read_register_dummy.
709 * h8300-tdep.c (h8300_frame_chain): Update.
710 (h8300_frame_saved_pc): Update.
711 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
712 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
713 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
714 (s390_frame_chain): Update.
715 * v850-tdep.c (v850_find_callers_reg): Update.
716 (v850_frame_saved_pc): Update.
717 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
718 (m32r_find_callers_reg): Update.
719 (m32r_frame_saved_pc): Update.
720 * sh-tdep.c (sh_find_callers_reg): Update.
721 (sh64_get_saved_pr): Update.
722 (sh_init_extra_frame_info): Update.
723 (sh_init_extra_frame_info): Update.
724 (sh64_init_extra_frame_info): Update.
725 (sh64_init_extra_frame_info): Update.
726 * mcore-tdep.c (mcore_find_callers_reg): Update.
727 (mcore_frame_saved_pc): Update.
728 (mcore_init_extra_frame_info): Update.
729 * i386-tdep.c (i386_frame_saved_pc): Update.
730 * ia64-tdep.c (ia64_frame_saved_pc): Update.
731 (ia64_init_extra_frame_info): Update.
732 (ia64_init_extra_frame_info): Update.
733 * d10v-tdep.c (d10v_frame_saved_pc): Update.
734 * cris-tdep.c (cris_init_extra_frame_info): Update.
735 * avr-tdep.c (avr_frame_chain): Update.
736 (avr_init_extra_frame_info): Update.
737 (avr_frame_saved_pc): Update.
738 * arm-tdep.c (arm_find_callers_reg): Update.
739 (arm_init_extra_frame_info): Update.
740 (arm_frame_saved_pc): Update.
742 2002-09-17 Tom Tromey <tromey@redhat.com>
744 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
747 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
749 * MAINTAINERS: Remove "non multi-arched" text from h8300.
750 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
752 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
755 2002-09-16 Joel Brobecker <brobecker@gnat.com>
757 * osfsolib.c: Remove file, replaced by solib-osf.c.
758 * Makefile.in: Remove compilation rules for osfsolib.c.
760 2002-09-16 David Carlton <carlton@math.stanford.edu>
762 * cp-valprint.c (cp_print_class_method): Correct args to
763 check_stub_method_group.
765 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
767 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
768 `set architecture'. Unify naming convention of functions.
769 (h8300_skip_prologue): Improve prologue analysis.
770 (h8300_push_arguments): Rewritten to more closely match GCC's
771 bizarre argument-passing behavior, along with the comment describing
773 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
774 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
775 sim, remote-e7000.c, remote-hms.c and remote.c
777 2002-09-15 Mark Kettenis <kettenis@gnu.org>
779 * i386-tdep.c (gdb_print_insn_i386): Removed.
780 (i386_print_insn): New function.
781 (i386_gdbarch_init): Set print_insn to i386_print_insns.
782 (_initialize_i386_tdep): Don't initialize tm_print_insn and
785 2002-09-14 Mark Kettenis <kettenis@gnu.org>
787 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
790 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
792 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
793 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
794 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
796 2002-09-13 Christopher Faylor <cgf@redhat.com>
798 * win32-nat.c (child_create_inferior): Honor 'tty' command.
800 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
802 * gdbtypes.c (check_stub_method): Make static.
803 (check_stub_method_group): New function.
804 * gdbtypes.h: Update prototypes.
805 * cp-support.c: New file.
806 * cp-support.h: New file.
808 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
809 (update_method_name_from_physname): New function.
810 (read_member_functions): Correct method names for operators
811 and v3 constructors/destructors. Separate v2 constructors and
813 * Makefile.in (stabsread.o): Update dependencies.
814 (SFILES): Add cp-support.c.
815 (COMMON_OBS): Add cp-support.o.
816 (cp_support_h, cp-support.o): Add.
818 * cp-valprint.c (cp_print_class_method): Call
819 check_stub_method_group instead of check_stub_method. Remove
821 * p-valprint.c (pascal_object_print_class_method): Likewise.
822 * valops.c (search_struct_method): Likewise.
823 (find_method_list, value_struct_elt_for_reference): Likewise.
825 2002-09-13 Andrew Cagney <cagney@redhat.com>
827 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
828 * gdbarch.h, gdbarch.c: Regenerate.
830 2002-09-13 Andrew Cagney <ac131313@redhat.com>
832 * frame.c (find_saved_register): Delete function.
833 * frame.h (find_saved_register): Delete declaration.
836 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
838 * mips-tdep.c (read_next_frame_reg): Re-hack using
839 frame_register_unwind.
841 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
843 * mips-tdep.c (mips_get_saved_register): Re-hack using
844 frame_register_unwind.
846 2002-09-12 Joel Brobecker <brobecker@gnat.com>
848 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
849 vector. Will be useful for Interix.
850 * gdbarch.h, gdbarch.c: Regenerate.
852 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
853 name of the malloc function by NAME_OF_MALLOC.
855 2002-09-12 Joel Brobecker <brobecker@gnat.com>
857 * value.h (find_function_in_inferior): Add const keyword to
858 one of the parameters. Allows us to invoke this function with
860 * valops.c (find_function_in_inferior): Likewise.
862 2002-09-12 Joel Brobecker <brobecker@gnat.com>
864 * exec.c (xfer_memory): Fix compilation warning with old versions
866 * tracepoint.c (trace_find_tracepoint_command): Likewise.
868 2002-09-12 David Carlton <carlton@math.stanford.edu>
870 * symtab.h: Run through gdb_indent.h.
871 Add 2002 to Copyright year list.
873 2002-09-12 Alan Modra <amodra@bigpond.net.au>
875 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
877 * MAINTAINERS: Add myself to write after approval list.
879 2002-09-11 J. Brobecker <brobecker@gnat.com>
881 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
883 2002-09-11 J. Brobecker <brobecker@gnat.com>
885 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
888 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
890 * procfs.c (do_detach): Clear current signal, not just fault.
891 Corrects problem with breakpoint trap signal leaking to detached
894 2002-09-10 Michael Snyder <msnyder@redhat.com>
896 * buildsym.c (finish_block): Protect against null pointer.
898 2002-09-10 Andrew Cagney <cagney@redhat.com>
900 * infcmd.c (default_print_registers_info): Send all output to
901 ``file'' instead of ``gdb_stdout''.
903 2002-09-10 Michael Snyder <msnyder@redhat.com>
905 * mips-tdep.c (mips_extract_struct_value_address): Make val a
906 LONGEST, and use signed register read (addresses are sign-
909 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
911 * event-loop.c (gdb_do_one_event): Make public.
912 * event-loop.h (gdb_do_one_event): Declare.
914 2002-09-10 Jeff Law <law@redhat.com>
916 * infttrace.c (child_resume): Simplify and rework to avoid
919 2002-09-09 Fred Fish <fnf@intrinsity.com>
921 * printcmd.c (print_scalar_formatted): "len" is the number of
922 target bytes, NOT the number of target bits.
924 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
926 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
927 * top.c (init_main): Set rl_terminal_name.
929 2002-09-08 Aidan Skinner <aidan@velvet.net>
931 * ada-lang.c (ada_array_bound, ada_type_match,
932 _initialize_ada_language): Fix K&R definitions.
933 * ada-tasks.c (get_current_task): Fix K&R definitions.
934 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
936 2002-09-07 Christopher Faylor <cgf@redhat.com>
938 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
941 2002-09-06 Mark Kettenis <kettenis@gnu.org>
943 * i386-tdep.c (i386_register_virtual_type,
944 i386_register_convertible, i386_register_convert_to_virtual,
945 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
946 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
947 (i386_gdbarch_init): Fix comment. Add comments on calls that set
948 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
949 Don't set push_arguments twice.
951 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
952 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
953 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
954 sigtramp_end to NULL.
955 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
957 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
959 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
962 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
963 * gdbarch.h, gdbarch.c: Re-generate.
964 * blockframe.c (find_pc_sect_partial_function): Convert to use
965 SIGTRAMP_START_P predicate.
967 2002-09-05 Michael Snyder <msnyder@redhat.com>
969 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
970 generic_dummy_frame method and old method. Also distinguish
971 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
972 (arm_extract_return_value): Use new regcache method.
974 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
975 adjustment that doesn't conform to the ABI.
976 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
977 saved regcache, not from current regcache.
979 2002-09-05 Andrew Cagney <ac131313@redhat.com>
981 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
984 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
986 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
987 if arm_apcs_32 is false.
989 2002-09-04 Andrew Cagney <ac131313@redhat.com>
991 GDB 5.3 branch created.
993 2002-09-03 Theodore A. Roth <troth@verinet.com>
995 * gdb/avr-tdep.c (avr_gdbarch_init): Use
996 generic_unwind_get_saved_register.
998 2002-09-03 David Carlton <carlton@math.stanford.edu>
1000 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1001 argument (PR gdb/653). Update call to smash_to_method_type.
1002 (read_structure_scope): Update call to dwarf2_add_member_fn.
1004 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1006 * x86-64-linux-tdep.c: Include gdb_string.h
1007 * x86-64-linux-nat.c: Ditto.
1009 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1011 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1012 when YYDEBUG is set to 1.
1013 * c-exp.y: Likewise.
1014 * f-exp.y: Likewise.
1015 * jv-exp.y: Likewise.
1016 * m2-exp.y: Likewise.
1017 * p-exp.y: Likewise.
1019 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1021 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1023 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1024 solib_svr4_fetch_link_map_offsets to
1025 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1026 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1027 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1028 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1029 solib-svr4.o, and solib-legacy.o.
1030 * config/i386/tm-nbsd.h: Include solib.h.
1032 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1034 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1035 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1036 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1037 comment noting that this needs its own target configuration.
1038 * config/i386/nbsd.mt: New file.
1039 * config/i386/nbsdaout.mt: Remove.
1040 * config/i386/nbsdelf.mt: Ditto.
1041 * config/i386/tm-nbsdaout.h: Ditto.
1043 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1045 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1046 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1047 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1049 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1050 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1051 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1053 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1055 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1056 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1057 * i386-tdep.h (i386bsd_init_abi): New prototype.
1058 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1059 function declaration.
1060 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1061 for NetBSD-a.out or NetBSD-ELF.
1062 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1063 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1064 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1065 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1067 (i386nbsd_pc_in_sigtramp): New function.
1068 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1069 i386nbsd_pc_in_sigtramp.
1070 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1071 and i386nbsdelf_init_abi OS ABI handlers.
1072 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1073 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1075 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1077 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1078 registers if the target really has them.
1080 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1082 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1085 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1087 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1089 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1090 (alphanbsd_skip_sigtramp_frame): New functions.
1091 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1092 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1093 to alphanbsd_sigcontext_addr.
1095 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1097 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1099 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1100 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1101 nbsd_pc_in_sigtramp.
1102 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1103 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1104 * nbsd-tdep.c: Include gdb_string.h.
1105 (nbsd_pc_in_sigtramp): New function.
1106 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1107 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1108 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1109 ppcnbsd_pc_in_sigtramp.
1110 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1111 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1112 shnbsd_pc_in_sigtramp.
1113 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1114 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1115 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1117 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1119 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1120 watchpoints to NULL.
1121 (insert_breakpoints): set val field of watchpoints if NULL.
1124 2002-08-29 Jim Blandy <jimb@redhat.com>
1126 * symtab.c (lookup_symbol_aux): In the cases where we find a
1127 minimal symbol of an appropriate name and use its address to
1128 select a symtab to read and search, use `name' (as passed to us)
1129 as the demangled name when searching the symtab's global and
1130 static blocks, not the minsym's name.
1132 2002-08-29 Keith Seitz <keiths@redhat.com>
1134 * stack.c (print_frame_info_base): Always set current_source_symtab
1135 and current_source_line.
1137 2002-08-29 Donn Terry <donnte@microsoft.com>
1139 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1141 2002-08-28 Keith Seitz <keiths@redhat.com>
1143 * stack.c (select_frame): Add FIXME concerning selected-frame
1145 (select_frame_command): Send selected-frame-level-changed
1146 event notification, but only if the level actually changed.
1147 (up_silently_base): Add selected-frame-level-changed event
1149 (down_silently_base): Likewise.
1151 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1153 * Makefile.in: Update dependencies for all gdb/*.c files.
1155 2002-08-27 Tom Tromey <tromey@redhat.com>
1157 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1158 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1159 Update dependencies.
1160 * i387-tdep.c: Include gdb_string.h.
1161 * osabi.c: Likewise.
1162 * i386-linux-nat.c: Likewise.
1163 * lin-lwp.c: Likewise.
1164 * ax-gdb.c: Likewise.
1165 * signals/signals.c: Likewise.
1166 * jv-valprint.c: Likewise.
1167 * p-lang.c: Likewise.
1168 * c-valprint.c: Likewise.
1169 * cp-abi.c: Likewise.
1171 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1173 * cli/cli-script.h (copy_command_lines): Export.
1174 * breakpoint.c: Include cli/cli-script.h.
1175 * Makefile.in (breakpoint.o): Update dependencies.
1177 2002-08-26 Michael Snyder <msnyder@redhat.com>
1179 * breakpoint.c (insert_breakpoints): Protect all references
1180 to 'process_warning'. Shorten long lines.
1182 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1184 * cli/cli-script.c (copy_command_lines): New function.
1185 * defs.h (copy_command_lines): Export.
1186 * testsuite/gdb.base/commands.exp: New tests for commands
1187 attached to a temporary breakpoint, and for commands that
1188 delete the breakpoint they are attached to.
1190 2002-08-26 Michael Snyder <msnyder@redhat.com>
1192 * breakpoint.c (bpstat_stop_status): Instead of copying the
1193 pointer to the breakpoint commands struct, make a new copy
1194 of the struct and point to that.
1195 (bpstat_clear): Free the commands struct.
1196 (bpstat_clear_actions): Free the commands struct.
1197 (bpstat_do_actions): Free the command actions. Also execute
1198 the local cleanups, instead of deleting them.
1199 (delete_breakpoint): Leave the commands field of the bpstat
1200 chain alone -- it will be freed later.
1202 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1204 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1205 deleted in 2002-08-20 commit. This function is still used by
1208 2002-08-26 Keith Seitz <keiths@redhat.com>
1210 * gdb-events.sh: Add selected-frame-level-changed event.
1211 * gdb-events.c: Regenerated.
1212 * gdb-events.h: Regenerated.
1214 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1217 * inflow.c (terminal_save_ours): New function to save terminal
1219 * inferior.h (terminal_save_ours): Declare.
1220 * target.c (debug_to_terminal_save_ours): New function.
1221 (cleanup_target): Defaults to_terminal_save_ours.
1222 (update_current_target): Inherit to_terminal_save_ours.
1223 (setup_target_debug): Set to_terminal_save_ours.
1224 * target.h (target_terminal_save_ours): New to save terminal settings.
1225 (target_ops): New member to_terminal_save_ours.
1226 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1227 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1228 * inftarg.c (init_child_ops): Likewise.
1229 * m3-nat.c (init_m3_ops): Likewise.
1230 * procfs.c (init_procfs_ops): Likewise.
1231 * wince.c (init_child_ops): Likewise.
1232 * win32-nat.c (init_child_ops): Likewise.
1233 * sol-thread.c (init_sol_thread_ops): Likewise.
1235 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1237 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1238 use regcache_* functions.
1239 (i386_gdbarch_init): Set store_return_value instead of
1240 deprecated_store_return_value.
1242 * regcache.c (regcache_raw_write_signed,
1243 regcache_raw_write_unsigned): New functions.
1244 * regcache.h (regcache_raw_write_signed,
1245 regcache_raw_write_unsigned): New prototypes.
1247 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1249 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1250 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1251 source file dependencies. Cleanup corresponding generator rules.
1253 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1255 * regcache.h (register_offset_hack): Declare.
1256 (regcache_cooked_read_using_offset_hack): Declare.
1257 (regcache_cooked_write_using_offset_hack): Declare.
1259 * regcache.c (register_offset_hack): New function.
1260 (regcache_cooked_read_using_offset_hack): New function.
1261 (regcache_cooked_write_using_offset_hack): New function.
1262 (regcache_dump): Check that the registers, according to their
1263 offset, are packed hard against each other.
1264 (cooked_xfer_using_offset_hack): New function.
1266 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1268 * regcache.c (struct regcache_descr): Add field register_type.
1269 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1271 (init_regcache_descr): Initialize register_type. Pass the descr
1272 to init_legacy_regcache_descr. Use register_type instead of
1273 REGISTER_VIRTUAL_TYPE.
1274 (register_type): New function.
1275 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1276 * regcache.h (register_type): Declare.
1278 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1280 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1281 instead of deprecated_store_return_value. Fix fallout from
1282 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1284 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1286 * regcache.c (max_register_size): New function.
1287 (init_legacy_regcache_descr): Ensure that max_register_size is
1288 large enough for REGISTER_VIRTUAL_SIZE.
1289 * regcache.h (max_register_size): Declare.
1291 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1293 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1295 (e500_extract_return_value): Change type of valbuf pointer to
1298 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1300 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1303 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1304 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1305 long long) to prevent compiler warning on 64-bit systems.
1307 2002-08-23 Andrew Cagney <cagney@redhat.com>
1309 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1310 (DEPRECATED_STORE_RETURN_VALUE): New method.
1311 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1312 * gdbarch.h, gdbarch.c: Re-generate.
1314 * values.c (set_return_value): Pass current_regcache to
1316 * arch-utils.h (legacy_store_return_value): Declare.
1317 * arch-utils.c (legacy_store_return_value): New function.
1318 (legacy_extract_return_value): Update parameters.
1320 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1322 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1323 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1324 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1325 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1326 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1327 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1328 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1329 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1330 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1331 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1334 * i386-tdep.c (i386_extract_return_value): Update.
1335 * arch-utils.c (legacy_extract_return_value): Update.
1336 * frv-tdep.c (frv_gdbarch_init): Update.
1337 * cris-tdep.c (cris_gdbarch_init): Update.
1338 * d10v-tdep.c (d10v_gdbarch_init): Update.
1339 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1340 * m68k-tdep.c (m68k_gdbarch_init): Update.
1341 * mcore-tdep.c (mcore_gdbarch_init): Update.
1342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1343 * s390-tdep.c (s390_gdbarch_init): Update.
1344 * sparc-tdep.c (sparc_gdbarch_init): Update.
1345 * sh-tdep.c (sh_gdbarch_init): Update.
1346 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1347 * v850-tdep.c (v850_gdbarch_init): Update.
1348 * avr-tdep.c (avr_gdbarch_init): Update.
1349 * ia64-tdep.c (ia64_gdbarch_init): Update.
1350 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1351 * vax-tdep.c (vax_gdbarch_init): Update.
1352 * alpha-tdep.c (alpha_gdbarch_init): Update.
1353 * arm-tdep.c (arm_gdbarch_init): Update.
1354 * mips-tdep.c (mips_gdbarch_init): Update.
1355 * i386-tdep.c (i386_gdbarch_init): Update.
1357 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1359 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1360 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1362 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1364 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1367 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1369 * infrun.c (handle_inferior_event): Move a comment outside of a
1370 function call, in order to avoid indent reformatting this part
1371 of the code in an unreadable way.
1373 2002-08-23 Grace Sainsbury <graces@redhat.com>
1375 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1376 when breakpoints fail. Move general breakpoint error messages to
1378 * breakpoint.c (insert_breakpoints): Change warnings when
1379 breakpoints are nto inserted to specify the type. Remove call to
1380 memory_error when hardware breakpoints can't be inserted. Remove
1381 multiple calls to warning so all messages are sent to the user at
1383 (delete_breakpoints): Make insert error messsages more explicit.
1385 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1387 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1388 gdbserver/ChangeLog.
1390 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1392 * i386-tdep.c: Include "objfiles.h".
1393 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1394 skip_trampoline_code.
1395 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1396 (CPLUS_MARKER): Define to '.'.
1398 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1400 (linux_corefile_thread_callback): Increase args->num_notes.
1401 (linux_make_note_section): Initialize thread_args.num_notes, and
1402 use it to determine whether notes for any threads were created.
1404 2002-08-23 Donn Terry <donnte@microsoft.com>
1406 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1407 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1409 (write_with_trace): Conditionalize out the switch branch handling
1410 PCSHOLD if the corresponding macro is not defined. Likewise for
1411 PRSABORT and PRSTOP.
1412 This change will be needed by the Interix port.
1414 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1416 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1417 write_register wherever possible instead of manipulating the
1418 register bytes directly.
1419 Assign VALUE_CONTENTS to a variable and use that.
1420 The GPR numbers are now dependent on the architecture.
1422 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1424 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1426 (skip_prologue): Add support for BookE/e500 instructions.
1427 (e500_extract_return_value): New function.
1428 (frame_get_saved_regs): Add support for saving ev registers and
1430 (e500_store_return_value): New function.
1431 (rs6000_gdbarch_init): Move up default intializations of
1432 deprecated_extract_return_value and store_return_value. Overwrite
1433 init of store_return_value with e500 specific version.
1434 Set extract_return_value for e500.
1436 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1438 * blockframe.c (generic_call_dummy_register_unwind): Use
1439 regcache_cooked_read to catch cases in which the variable is
1440 stored in a pseudo register.
1442 2002-08-22 Andrew Cagney <cagney@redhat.com>
1444 * NEWS: Mention that the i960 has been made obsolete.
1445 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1447 (remote-nrom.o): Obsolete target.
1448 (remote-nindy.o, i960-tdep.o): Ditto.
1449 * remote-nrom.c: Make file obsolete.
1450 * remote-nindy.c, remote-vx960.c: Ditto.
1451 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1452 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1453 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1454 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1455 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1456 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1457 i960-*-vxworks* obsolete.
1458 * MAINTAINERS: Note that the i960 is obsolete.
1460 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1462 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1463 detach to allow reinitialization.
1465 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1467 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1470 2002-08-22 Jim Blandy <jimb@redhat.com>
1472 * coffread.c (coff_symfile_read): Don't try to read the line
1473 number table from disk if the image file doesn't have a symbol
1474 table; we'll never actually look at the info anyway, and Windows
1475 ships DLL's with bogus file offsets for the line number data.
1477 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1479 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1482 2002-08-21 Michael Snyder <msnyder@redhat.com>
1484 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1485 (MSYMBOL_SIZE): Replace macro with function.
1486 (DEFAULT_MIPS_TYPE): Delete unused macro.
1487 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1488 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1490 2002-08-21 Jim Blandy <jimb@redhat.com>
1492 * valops.c (value_cast): Simplify and correct logic for doing a
1493 static cast from a pointer to a base class to a pointer to a
1496 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1498 * infcmd.c (default_print_registers_info): Replace
1500 (registers_info): Use gdbarch_print_registers_info instead of
1502 * inferior.h (default_print_registers_info): Replace
1504 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1505 (DO_REGISTERS_INFO): Change to a predicate function.
1506 * gdbarch.h, gdbarch.c: Regenerate.
1508 2002-08-21 Keith Seitz <keiths@redhat.com>
1510 * gdb-events.sh: Add target-changed event.
1511 * gdb-events.c: Regenerated.
1512 * gdb-events.c: Regenerated.
1513 * valops.c (value_assign): Add target-changed event notification
1514 to inlval_register, lval_memory, and lval_reg_frame_relative.
1516 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1518 * NEWS: Add an entry regarding the improvement of the next/step
1519 operation on Alpha Tru64 multi-processor machines.
1521 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1523 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1525 * Makefile.in: Update all _h macro definitions.
1526 * Makefile.in (install-gdbtk): Move to install section.
1527 (rdi-share/libangsd.a): Move to end of file.
1529 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1531 * frame.c (frame_register_unwind): When a register, set addrp to
1532 the register's byte.
1534 2002-08-20 Michael Snyder <msnyder@redhat.com>
1536 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1537 used locally, so move them from the target machine header to here.
1538 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1539 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1541 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1543 2002-08-20 Andrew Cagney <cagney@redhat.com>
1545 * NEWS: Mention that the Apollo line was made obsolete.
1546 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1547 m68*-hp-hpux* obsolete.
1548 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1549 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1550 * buildsym.c (make_blockvector): Make static.
1551 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1552 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1553 (ALLDEPFILES): Remove dstread.c.
1554 (dstread.o): Obsolete make rule.
1555 * dstread.c: Makefile obsolete.
1557 * config/m68k/hp300hpux.mt: Ditto.
1558 * config/m68k/hp300hpux.mh: Ditto.
1559 * config/m68k/hp300bsd.mt: Ditto.
1560 * config/m68k/hp300bsd.mh: Ditto.
1561 * config/m68k/apollo68b.mt: Ditto.
1562 * config/m68k/apollo68v.mh: Ditto.
1563 * config/m68k/apollo68b.mh: Ditto.
1565 2002-08-20 Michael Snyder <msnyder@redhat.com>
1567 * mips-tdep.c (mips_in_return_stub): Make static.
1568 (mips_gdbarch_init): Set in_solib_return_trampoline.
1569 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1571 2002-08-20 Michael Snyder <msnyder@redhat.com>
1573 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1574 * gdbarch.c, gdbarch.h: Regenerate.
1575 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1577 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1579 2002-08-20 Michael Snyder <msnyder@redhat.com>
1581 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1582 (mips_gdbarch_init): Set skip_trampoline_code,
1583 in_solib_call_trampoline.
1584 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1585 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1587 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1589 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1591 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1592 vector type for ev registers.
1593 (e500_pseudo_register_read): New function.
1594 (e500_pseudo_register_write): New function.
1595 (e500_dwarf2_reg_to_regnum): New function.
1596 (PPC_UISA_NOFP_SPRS): New macro.
1597 (PPC_EV_REGS): New macro.
1598 (PPC_GPRS_PSEUDO_REGS): New macro.
1599 (registers_e500): New register set for e500.
1600 (variants): Add e500 variant.
1601 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1602 before setting architectural dependent variations. Initialize ev
1603 registers numbers. Add case for e500 architecture. Set the
1604 number of pseudo registers.
1606 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1608 * rs6000-tdep.c: Clean up comments.
1610 2002-08-20 Andrew Cagney <cagney@redhat.com>
1612 * h8300-tdep.c: Re-indent file.
1614 2002-08-20 Jim Blandy <jimb@redhat.com>
1616 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1619 2002-08-20 Keith Seitz <keiths@redhat.com>
1621 * breakpoints.c (watch_command_1): Use internal breakpoint
1622 when setting a watchpoint_scope breakpoint.
1624 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1626 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1627 (build_builtin_type_vec64i): Ditto.
1628 (build_builtin_type_vec128): Ditto.
1629 (build_builtin_type_vec128i): Ditto.
1631 2002-08-19 Michael Snyder <msnyder@redhat.com>
1633 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1634 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1635 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1636 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1637 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1638 CALL_DUMMY_ADDRESS): Delete.
1639 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1640 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1641 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1642 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1643 push_return_address.
1644 (mips_register_raw_size, mips_eabi_use_struct_convention,
1645 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1646 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1647 mips_init_extra_frame_info, mips_eabi_push_arguments,
1648 mips_n32n64_push_arguments, mips_push_return_address,
1649 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1650 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1652 2002-08-19 Michael Snyder <msnyder@redhat.com>
1654 * mips-tdep.c (mips_frame_num_args): New function.
1655 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1656 frame_saved_pc, frame_args_address, frame_locals_address,
1657 frame_num_args, and frame_args_skip.
1658 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1659 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1660 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1661 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1663 2002-08-20 Michael Snyder <msnyder@redhat.com>
1665 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1666 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1667 * mips-tdep.c (mips_store_struct_return): New function.
1668 (mips_extract_struct_value_address): New function.
1669 (mips_gdbarch_init): Set store_struct_return and
1670 extract_struct_value_address.
1672 2002-08-20 David Carlton <carlton@math.stanford.edu>
1674 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1675 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1676 (read_file_scope): Check that line_header is nonzero before
1677 decoding macro information.
1679 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1681 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1682 flag the general-purpose registers as floating-point on targets
1683 that don't support the floating-point registers.
1685 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1687 * rs6000-tdep.c (altivec_register_p): Delete.
1688 (rs6000_do_altivec_registers): Delete.
1689 (rs6000_altivec_registers_info): Delete.
1690 (rs6000_do_registers_info): Delete.
1691 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1692 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1694 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1696 * infcmd.c (do_registers_info): Print vector registers in hex
1698 (print_vector_info): Check that printing registers
1700 (print_float_info): Ditto.
1702 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1704 * mips-tdep.c (mips_gdbarch_init): Update.
1705 (mips_o32_extract_return_value): Rewrite.
1706 (mips_o32_store_return_value): Rewrite.
1707 (mips_o32_xfer_return_value): New function.
1708 (mips_xfer_register): Tweak debug print message. Allow for
1709 buf_offset when dumping the value transfered.
1711 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1713 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1714 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1715 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1716 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1717 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1719 2002-08-14 Michael Snyder <msnyder@redhat.com>
1721 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1723 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1725 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1727 (P): New macro to define a register as a pseudo register.
1728 (R, R4, R8, R16, FR32, R64, R0): Updated.
1729 (struct variant): Add new fields for number of pseudo registers
1730 and number of total registers.
1731 (tot_num_registers): New macro replacing....
1732 (num_registers): ...deleted macro.
1733 (num_registers): New function.
1734 (num_pseudo_registers): New function.
1735 (variants): Update all variants to intialize new fields correctly.
1736 Postpone initialization of number of pseudo regs and real regs.
1737 (init_variants): New function.
1738 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1741 2002-08-19 David Carlton <carlton@math.stanford.edu>
1743 * valops.c (search_struct_field): Change error message to treat
1744 return value of 0 from value_static_field as meaning that field is
1746 (value_struct_elt_for_reference): Ditto.
1747 * values.c (value_static_field): Treat an unresolved location the
1748 same as a nonexistent symbol. Fix PR gdb/635.
1749 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1750 enclosed. Fix PR gdb/574.
1751 * MAINTAINERS: Add self to Write After Approval list.
1753 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1755 * mips-tdep.c (mips_xfer_register): New function.
1756 (mips_n32n64_extract_return_value): Rewrite.
1757 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1758 instead of deprecated_extract_return_value.
1760 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1762 * rs6000-tdep.c (TDEP): Delete macro.
1763 (branch_dest): Replace use of TDEP macro with its body.
1764 (rs6000_pop_frame): Ditto.
1765 (rs6000_push_arguments): Ditto.
1766 (rs6000_skip_trampoline_code): Ditto.
1767 (rs6000_frame_saved_pc): Ditto.
1768 (rs6000_frame_chain): Ditto.
1769 (rs6000_register_name): Ditto.
1770 (rs6000_register_byte): Ditto.
1771 (rs6000_register_raw_size): Ditto.
1772 (rs6000_register_virtual_type): Ditto.
1773 (rs6000_register_convertible): Ditto.
1774 (rs6000_convert_from_func_ptr_addr): Ditto.
1776 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1778 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1780 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1781 MIPS_LINUX_JB_ELEMENT_SIZE.
1782 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1783 for MAX_REGISTER_RAW_SIZE arrays.
1784 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1785 MIPS_LINUX_JB_ELEMENT_SIZE.
1787 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1789 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1791 2002-08-19 Aidan Skinner <aidan@velvet.net>
1793 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1794 ada-valprint.c ada-tasks.c.
1795 (YYFILES): Add ada-exp.y.
1796 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1797 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1798 (ada-exp.tab.o): New target.
1800 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1802 * regcache.c (regcache_xfer_part): New function.
1803 (regcache_raw_read_part): New function.
1804 (regcache_raw_write_part): New function.
1805 (regcache_cooked_read_part): New function.
1806 (regcache_cooked_write_part): New function.
1807 * regcache.h (regcache_raw_read_part): Declare.
1808 (regcache_raw_write_part): Declare.
1809 (regcache_cooked_read_part): Declare.
1810 (regcache_cooked_write_part): Declare.
1812 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1814 * remote.c (remote_open_1): Add async_p.
1815 (remote_async_open_1): Delete.
1816 (open_remote_target): Delete.
1817 (remote_open, extended_remote_open): Update calls to remote_open_1.
1818 (remote_async_open, extended_remote_async_open): Call
1819 remote_open_1 instead of remote_async_open_1.
1821 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1823 * blockframe.c: Fix a few coding standard violations.
1825 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1827 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1829 * config/i386/tm-i386sco5.h: ... here. File removed.
1830 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1832 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1833 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1834 (TM_FILE): Set to tm-i386.h.
1835 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1836 * config/i386/tm-i386v.h: Remove file.
1837 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1838 instead of "i386/tm-i386v.h".
1839 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1840 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1842 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1843 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1846 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1848 * config/i386/nm-i386v.h: Add protection against
1850 (i386_register_u_addr): Remove prototype.
1851 (register_u_addr): New prototype.
1852 (REGISTER_U_ADDR): Redefine accordingly.
1853 * i386v-nat.c: Improve several comments.
1854 (i386_register_u_addr): Change signature and rename to
1855 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1858 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1860 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1861 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1862 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1863 deprecated_extract_return_value.
1864 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1865 rename mips_o32o64_push_arguments.
1866 (mips_gdbarch_init): Update.
1867 (mips_extract_return_value): Delete.
1868 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1869 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1870 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1871 (mips_n32n64_extract_return_value): Clone
1872 mips_extract_return_value.
1873 (mips_store_return_value): Delete.
1874 (mips_o32_store_return_value): Clone mips_store_return_value.
1875 (mips_o64_store_return_value): Clone mips_store_return_value.
1876 (mips_eabi_store_return_value): Clone mips_store_return_value.
1877 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1879 2002-08-18 Aidan Skinner <aidan@velvet.net>
1881 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1882 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1884 2002-08-18 Aidan Skinner <aidan@velvet.net>
1886 * ada-lang.c: Run through gdb_indent.sh.
1887 * ada-lang.h: Run through gdb_indent.sh.
1888 * ada-tasks.c: Run through gdb_indent.sh.
1889 * ada-typeprint.c: Run through gdb_indent.sh.
1890 * ada-valprint.c: Run through gdb_indent.sh.
1892 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1894 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1897 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1899 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1901 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1902 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1904 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1905 write_register_gen instead of write_register_bytes.
1907 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1908 i[3456]-*-osf1mk* configurations have been made obsolete.
1909 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1910 i[3456]86-*-osf1mk* hosts obsolete.
1911 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1913 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1914 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1915 config/i386/i386m3.mt, config/i386/nm-m3.h,
1916 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1917 config/i386/i386mk.mh, config/i386/i386mk.mt,
1918 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1920 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1921 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1922 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1924 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1926 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1927 (hppa_value_returned_from_stack): Declare.
1928 (hppa_extract_return_value): Declare.
1929 * config/pa/hppa.mt: New file.
1930 * configure.tgt: Recognize hppa*-*-*.
1931 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1933 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1935 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1938 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1940 * top.c (gdb_rl_operate_and_get_next): Make sure
1941 operate-and-get-next functions correctly even when the history
1942 list is completely filled.
1944 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1946 * MAINTAINERS (Target Instruction Set Architectures): Rename
1947 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1948 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1949 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1950 already listed under Host/Native.
1952 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1953 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1956 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1958 * config/ia64/ia64.mt: New file.
1959 * config/alpha/alpha.mt: New file.
1960 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1961 ia64-linux-gnu. Mention that ia64-elf is broken.
1962 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1964 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1966 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1967 generic_func_frame_valid instead of func_frame_valid.
1969 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1971 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1972 procfs appears to be broken when debugging on multi-processor
1973 machines. So enable software single stepping in order to avoid
1974 using the procfs interface to do next/step operations, using
1975 internal breakpoints instead.
1977 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1978 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1979 make this pc address equal to the value it would have if the
1980 system stepping capability was used. Also set a new flag used
1981 to ensure that we don't readjust the PC one more time later.
1983 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1984 address by DECR_PC_AFTER_BREAK when software single step is
1985 in use for this architecture, as this has already been taken
1986 care of in handle_inferior_event().
1988 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1990 * infrun.c (handle_inferior_event): Minor reformatting, to make
1991 a rather long condition expression easier to read.
1993 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1995 * Makefile.in (gdbtk.o): Move to end of file.
1996 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1997 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1998 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1999 (gdbtk-wrapper.o, gdbres.o): Ditto.
2001 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2003 * Makefile.in (copying.o): Separate out compile rule.
2004 (hpux-thread.o, procfs.o, signals.o): Ditto.
2005 (v850ice.o, z8k-tdep.o): Ditto.
2006 (tui-file.o): Move to TUI section.
2007 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2008 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2010 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2012 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2013 skip_trampoline_code, for better namespace-proofing.
2015 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2017 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2019 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2021 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2023 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2024 signal, check whether we hit a breakpoint before checking for a
2025 single step breakpoint. Otherwise, GDB fails to notice that a
2026 breakpoint has been hit when stepping onto a breakpoint.
2028 2002-08-16 Keith Seitz <keiths@redhat.com>
2030 * gdb-events.sh (clear_gdb_event_hooks): New function.
2031 * gdb-events.c: Regenerate.
2032 * gdb-events.h: Regenerate.
2034 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2036 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2037 not_a_sw_breakpoint.
2038 * breakpoint.h (bpstat_stop_status): Add parameter names.
2040 2002-08-16 Grace Sainsbury <graces@redhat.com>
2042 * remote.c (remote_insert_hw_breakpoint)
2043 (remote_remove_hw_breakpoint): Fix calculation of length field
2046 2002-08-15 Michael Snyder <msnyder@redhat.com>
2048 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2049 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2050 (supply_fpregset): Ditto.
2052 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2053 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2054 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2055 (TARGET_READ_SP): Delete.
2056 (DO_REGISTERS_INFO): Delete.
2057 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2059 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2060 from macros to functions.
2062 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2063 (mips_register_convertible, mips_register_convert_to_virtual,
2064 mips_register_convert_to_raw): Make static.
2065 (mips_read_sp): New function.
2066 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2067 (mips_do_registers_info): Make static.
2068 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2069 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2070 (mips_register_convert_from_type, mips_register_convert_to_type):
2072 (mips_gdbarch_init): Set up function_start_offset,
2073 register_virtual_size, pc_in_sigtramp.
2075 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2077 * infcmd.c (vector_info): New function.
2078 (_initialize_infcmd): Add command "info vector".
2079 (print_vector_info): New function.
2081 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2082 * gdbarch.h, gdbarch.c: Regenerate.
2084 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2086 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2087 ``print_all''. Only print vector registers when ``print_all''.
2089 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2091 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2092 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2094 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2095 Add `args' parameter.
2096 * gdbarch.h, gdbarch.c: Regenerate.
2098 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2100 * infcmd.c (float_info): Call print_float_info.
2101 (print_float_info): New function. By default, print the
2102 floating-point registers.
2104 * arch-utils.h (default_print_float_info): Delete declaration.
2105 * arch-utils.c (default_print_float_info): Delete function.
2107 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2109 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2112 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2115 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2116 * configure.host: Make i[3456]86-*-aix host obsolete.
2117 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2118 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2119 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2120 config/i386/xm-i386aix.h: Make files obsolete.
2121 * i386aix-nat.c: Make file obsolete.
2122 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2123 (i386aix-nat.o): Make target obsolete.
2125 * config/i386/nm-gnu.h: Removed.
2126 * config/i386/nm-i386gnu.h: New file.
2127 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2128 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2130 * config/i386/tm-i386gnu.h: ... here. Removed.
2131 * config/i386/xm-i386gnu.h: Removed.
2132 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2133 (NAT_FILE): Set to nm-i386gnu.h.
2134 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2135 * i386-tdep.c: New file.
2136 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2137 (i386gnu-tdep.o): Specify dependencies.
2139 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2141 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2142 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2143 Adjust a few comments to reflect reality a bit closer.
2144 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2145 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2146 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2147 target_insert_watchpoint, target_remove_watchpoint):
2149 * config/i386/nm-i386sco5.h: ... here.
2150 (kernel_u_size): Add prototype. Improve a few comments and add
2151 protection against multiple inclusion.
2153 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2156 * uw-thread.c (SP_ARG0): Define if not already defined.
2157 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2159 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2161 * config/i386/tm-i386.h: Don't include "regcache.h".
2163 * i387-tdep.h (i387_print_float_info): New prototype.
2164 * i387-tdep.c (print_i387_value, print_i387_ext,
2165 print_i387_status_word, print_i387_control_word): Add `struct
2166 ui_file *' argument and use it for output.
2167 (i387_print_float_info): Renamed from i387_float_info. Add
2168 `struct gdbarch *' and `struct ui_file *' arguments and use the
2170 * i386-tdep.c: Include "i387-tdep.h".
2171 (i386_gdbarch_init): Set print_float_info.
2172 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2173 (FLOAT_INFO): Remove define.
2175 2002-08-13 Michael Snyder <msnyder@redhat.com>
2177 * mips-tdep.c (mips_push_arguments): Rename to
2178 mips_eabi_push_arguments, and tune for EABI.
2179 (MIPS_REGS_HAVE_HOME_P): Delete.
2180 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2181 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2182 Delete references to mips_regs_have_home_p.
2184 2002-08-14 Keith Seitz <keiths@redhat.com>
2186 * Makefile.in (install-gdbtk): Create insight plugin directory.
2187 Install plugins.tcl file.
2189 2002-08-14 Keith Seitz <keiths@redhat.com>
2191 * configure.in: Move SUBDIRS to near top of the file so that
2192 --enable options may add things to it.
2193 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2194 * configure: Regenerate.
2196 2002-08-13 Michael Snyder <msnyder@redhat.com>
2198 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2199 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2200 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2202 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2204 * vax-tdep.c (vax_get_saved_register): Delete function.
2205 (vax_gdbarch_init): Update.
2206 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2207 (ns32k_gdbarch_init): Update.
2208 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2209 (alpha_gdbarch_init): Update.
2211 2002-08-13 Andrew Cagney <cagney@redhat.com>
2213 * regcache.c (init_regcache_descr): Overallocate the
2214 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2215 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2217 (set_register_cached): Add range checking assertions. Use
2220 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2222 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2223 numbers for MMX registers.
2225 2002-08-13 Andrew Cagney <cagney@redhat.com>
2227 * i386-tdep.c (i386_gdbarch_init): Use
2228 generic_unwind_get_saved_register.
2230 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2232 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2233 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2235 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2236 Delete. Add comment regarding this now-deleted target method.
2238 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2240 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2241 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2242 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2243 real PC and the page number (if it's within the memory bank window).
2244 (m68hc11_pseudo_register_write): Likewise when saving.
2245 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2246 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2247 (m68hc11_register_raw_size): And use 32-bit for it.
2248 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2249 16K memory bank is used by the prog; also use the virtual pc.
2251 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2253 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2254 (m68hc11_gdbarch_init): Install it in gdbarch.
2255 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2256 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2257 (MSYMBOL_SIZE): New for documentation.
2258 (insn_return_kind): Enum to specify how a function returns.
2259 (frame_extra_info): Cleanup and record the return mode.
2260 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2261 register in address computation.
2262 (m68hc11_get_return_insn): New to obtain the return instruction used
2264 (m68hc11_frame_init_saved_regs): Take into account the return
2265 instruction used by the function for far and interrupt functions.
2266 (m68hc11_init_extra_frame_info): Take into account page register.
2267 (m68hc11_frame_args_address): Adjust according to the return mode.
2268 (show_regs): Print page register only when it's used.
2270 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2272 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2273 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2274 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2276 (m68hc11_register_raw_size): Likewise.
2278 2002-08-13 Andrew Cagney <cagney@redhat.com>
2280 * i386-tdep.c (i386_register_name): Handle mmx registers.
2281 (mmx_regnum_p): New function.
2282 (i386_mmx_names): New array.
2283 (mmx_num_regs): New variable.
2284 (i386_pseudo_register_read): New function.
2285 (i386_pseudo_register_write): New function.
2286 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2288 * regcache.c (regcache_raw_read_unsigned): New function.
2289 (regcache_raw_read_signed): New function.
2290 * regcache.h (regcache_raw_read_unsigned): Declare.
2291 (regcache_raw_read_signed): Declare.
2293 2002-08-13 Andrew Cagney <cagney@redhat.com>
2295 * regcache.c (regcache_raw_read_as_address): Delete function.
2296 (regcache_cooked_read_signed): New function.
2297 (regcache_cooked_read_unsigned): New function.
2298 * regcache.h (regcache_cooked_read_signed): Declare.
2299 (regcache_cooked_read_unsigned): Declare.
2300 (regcache_raw_read_as_address): Delete declaration.
2302 * blockframe.c (generic_read_register_dummy): Use
2303 regcache_cooked_read_unsigned.
2304 * i386-tdep.c (i386_extract_struct_value_address): Use
2305 regcache_cooked_read_unsigned.
2307 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2310 double sizes according to ELF ABI flags.
2311 (gdbarch_tdep): Record elf_flags.
2313 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2315 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2316 (m6812_prolog): They can appear in 68HC12 function prologue.
2317 (m68hc11_frame_chain): Cleanup.
2319 2002-08-12 Andrew Cagney <cagney@redhat.com>
2321 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2323 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2324 (i386_linux_register_raw_size): Delete function.
2325 (i386_linux_init_abi): Update.
2326 * i386-tdep.c (i386_register_raw_size): Delete function.
2327 (i386_register_byte): Delete function.
2328 (i386_gdbarch_init): Update.
2329 (i386_register_size): Delete array.
2330 (i386_register_offset): Delete array.
2332 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2333 (REGISTER_RAW_SIZE): Delete macro.
2334 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2335 (REGISTER_BYTE): Delete macro.
2337 2002-08-11 Aidan Skinner <aidan@velvet.net>
2339 * ada-lang.c (ada_lookup_partial_symbol)
2340 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2341 prototype names so that grep ^func works properly.
2343 * ada-lang.c (ada_array_element_type)
2344 (ada_lookup_partial_symbol): Fix typos in parameter list.
2346 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2347 Fix prototype names so that grep ^func works properly.
2349 2002-08-10 Andrew Cagney <cagney@redhat.com>
2350 Elena Zannoni <ezannoni@redhat.com>
2351 Martin M. Hunt <hunt@redhat.com>
2353 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2354 (build_builtin_type_vec128i): Set the vector bit.
2355 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2356 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2357 (build_builtin_type_vec64): New function.
2358 (build_builtin_type_vec64i): New function.
2359 (build_gdbtypes): Initialize builtin_type_vec64 and
2360 builtin_type_vec64i.
2362 2002-08-09 Andrew Cagney <cagney@redhat.com>
2364 * regcache.c (regcache_dump): Compare the register offset
2366 * arch-utils.c (generic_register_byte): New function.
2367 * arch-utils.h (generic_register_byte): Declare.
2368 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2369 * gdbarch.h, gdbarch.c: Regenerate.
2371 2002-08-09 Andrew Cagney <cagney@redhat.com>
2373 * regcache.c: Include "gdbcmd.h"
2374 (_initialize_regcache): Add commands "maintenance print
2375 registers", "maintenance print raw-registers" and "maintenance
2376 print cooked-registers".
2377 (enum regcache_dump_what): Define.
2378 (dump_endian_bytes): New function.
2379 (regcache_dump): New function.
2380 (regcache_print): New function.
2381 (maintenance_print_registers): New function.
2382 (maintenance_print_raw_registers): New function.
2383 (maintenance_print_cooked_registers): New function.
2384 * Makefile.in (regcache.o): Update dependencies.
2386 2002-08-09 Michael Snyder <msnyder@redhat.com>
2388 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2389 (mips_push_arguments): Correct some comments. Use paddr_nz
2390 for printing addresses in debug output. Replace static
2391 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2392 (mips_n32n64_push_arguments): New function, cloned from
2393 mips_push_arguments and tuned for the n32/n64 ABI.
2394 (mips_push_register): Buffer needs dynamic allocation.
2395 (mips_print_register): Ditto.
2396 (do_gp_register_row): Ditto.
2397 (mips_store_return_value): Ditto.
2398 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2400 2002-08-09 Don Howard <dhoward@redhat.com>
2402 * memattr.c (mem_info_command): Print special case of upper bound
2403 as max CORE_ADDR + 1.
2405 2002-08-08 Michael Snyder <msnyder@redhat.com>
2407 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2408 returns structs by ref if they're too big to fit in two registers.
2410 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2412 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2414 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2415 mips_find_saved_regs().
2416 (mips_pop_frame): Likewise.
2418 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2420 * blockframe.c (frame_saved_regs_register_unwind): Revise
2421 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2424 2002-08-09 Grace Sainsbury <graces@redhat.com>
2426 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2427 T-packets; the 'a' is not taken as a register number.
2428 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2429 (remote_stopped_data_address): New functions; add to target
2431 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2432 prototypes to match other implementations of this
2433 function. replace integer argument with pointer -- the length
2434 field in the Z-packet is the length of what is pointed to or 1 if
2435 pointer is null. Add to target vector.
2436 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2440 * remote.c (remote_wait): Add support to extract optional
2441 watchpoint information from T-packet. Ignore unrecognized
2442 optional info in T-packet.
2443 (remote_async_wait): Ditto.
2445 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2447 * cli/cli-dump.c: Change fopen modes to use binary open modes
2448 as defined in include/fopen-bin.h throughout.
2450 2002-08-08 Michael Snyder <msnyder@redhat.com>
2452 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2454 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2456 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2457 assertion failure by returning early after a warning.
2459 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2461 * mips-tdep.c (mips_find_saved_regs): Make static.
2462 (mips_frame_init_saved_regs): New function.
2463 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2464 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2465 (mips_find_saved_regs): Delete declaration.
2467 2002-08-08 Grace Sainsbury <graces@redhat.com>
2469 * remote.c (remote_wait, remote_async_wait): Change
2470 thread_num from int to ULONGEST.
2471 (unpack_varlen_hex): Change result parameter from
2472 int * to ULONGEST *.
2474 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2476 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2477 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2479 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2481 2002-08-08 Andrew Cagney <cagney@redhat.com>
2483 * gcore.c (override_derive_stack_segment): Delete variable.
2484 (preempt_derive_stack_segment): Delete function.
2485 (derive_stack_segment): Delete function.
2486 (default_derive_stack_segment): Renamed to derive_stack_segment.
2487 (override_derive_heap_segment): Delete variable.
2488 (preempt_derive_heap_segment): Delete function.
2489 (derive_heap_segment): Delete function.
2490 (default_derive_heap_segment): Rename to derive_heap_segment.
2492 2002-08-06 Michael Snyder <msnyder@redhat.com>
2494 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2495 * mips-tdep.c (mips_EABI_use_struct_convention,
2496 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2497 New functions. (mips_use_struct_convention): Delete.
2498 (mips_gdbarch_init): set use_gdbarch_convention.
2500 2002-08-06 Michael Snyder <msnyder@redhat.com>
2502 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2503 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2504 mips_o32_reg_struct_has_addr): New functions.
2505 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2507 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2509 * regcache.c (pseudo_register): Delete function.
2510 (fetch_register): Delete function.
2511 (store_register): Delete function.
2512 (regcache_raw_read, legacy_read_register_gen): Use
2513 target_fetch_registers instead of fetch_register.
2514 (legacy_write_register_gen, regcache_raw_write): Use
2515 target_store_register instead of store_register.
2516 (write_register_bytes): Ditto.
2518 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2519 (STORE_PSEUDO_REGISTER): Delete.
2520 * gdbarch.h, gdbarch.c: Regenerate.
2522 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2524 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2525 write dump file binary.
2527 2002-08-05 Michael Snyder <msnyder@redhat.com>
2529 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2530 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2531 (mips_gdbarch_init): Set N32 target to be mips64.
2533 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2535 * frame.c (find_saved_register): Break out of loop once saved
2536 register address is found. Don't mention sparc in loop comment
2539 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2541 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2542 mips_default_saved_regsize to 8.
2544 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2546 * gcore.c: Do not include <sys/procfs.h>.
2547 * Makefile.in (gcore.o): Update dependencies.
2549 2002-08-06 Andrew Cagney <cagney@redhat.com>
2551 * configure.tgt: Make arc-*-* obsolete.
2552 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2553 * MAINTAINERS: Make arc-elf obsolete.
2554 * arc-tdep.c: Make file obsolete.
2555 * config/arc/arc.mt: Ditto.
2556 * config/arc/tm-arc.h: Ditto.
2558 2002-08-05 Theodore A. Roth <troth@verinet.com>
2560 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2562 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2564 * mcore-tdep.c (mcore_gdbarch_init): Use
2565 generic_unwind_get_saved_register instead of
2566 generic_get_saved_register.
2567 * v850-tdep.c (v850_gdbarch_init): Ditto.
2568 * frv-tdep.c (frv_gdbarch_init): Ditto.
2569 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2570 * s390-tdep.c (s390_gdbarch_init): Ditto.
2571 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2572 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2573 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2575 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2577 * objfiles.h: Add missing #include "symfile.h"
2579 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2581 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2583 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2584 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2587 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2589 * NEWS: Cleanup and nitpick.
2591 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2593 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2595 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2597 * Makefile.in (gdbtk-bp.o): Update dependencies.
2598 (gdbtk-register.o): Ditto.
2599 (gdbtk-varobj.o): Ditto.
2601 2002-08-03 Andrew Cagney <cagney@redhat.com>
2603 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2604 m68hc11_fetch_pseudo_register.
2605 (m68hc11_pseudo_register_write): Replace
2606 m68hc11_store_pseudo_register.
2607 (m68hc11_gdbarch_init): Update.
2609 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2611 * gdbarch.sh: Include "gdb_string.h".
2612 * gdbarch.c: Regenerate.
2614 * regcache.c: Include "gdb_string.h".
2615 * ax-general.c: Ditto.
2617 * std-regs.c: Ditto.
2618 * fbsd-proc.c: Ditto.
2621 * Makefile.in (regcache.o): Update dependencies.
2622 (thread.o, gdbarch.o): Ditto.
2623 (ax-general.o, gdbarch.o): Ditto.
2624 (varobj.o, std-regs.o): Ditto.
2625 (fbsd-proc.o): Specify dependencies.
2627 2002-08-02 Andrew Cagney <cagney@redhat.com>
2629 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2631 (regcache_cooked_write): Ditto.
2633 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2635 * regcache.c (regcache_cooked_read): New function.
2636 (regcache_cooked_write): New function.
2637 (read_register_gen): Rewrite using regcache_cooked_read.
2638 (write_register_gen): Rewrite using regcache_cooked_write.
2640 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2643 2002-08-02 Andrew Cagney <cagney@redhat.com>
2645 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2646 Replace the architecture methods register_read and register_write.
2647 * gdbarch.h, gdbarch.c: Regenerate.
2648 * regcache.c (init_regcache_descr): Update.
2649 (read_register_gen): Update.
2650 (write_register_gen): Update.
2651 (supply_register): Update comment.
2653 * sh-tdep.c (sh_gdbarch_init): Update.
2654 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2655 `regcache' and `gdbarch' parameters. Make `buffer' a void
2656 pointer. Update code.
2657 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2658 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2659 void pointer. Update code.
2660 (sh64_register_write): Delete.
2661 (sh4_register_read): Delete.
2662 (sh64_register_read): Delete.
2663 (sh4_register_write): Delete.
2664 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2665 void pointer, `to' parameter a void pointer.
2666 (sh_sh64_register_convert_to_raw): Ditto.
2668 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2670 * mips-tdep.c (mips_register_virtual_type): Use architecture
2671 invariant return values.
2673 2002-08-01 Andrew Cagney <cagney@redhat.com>
2675 * linux-proc.c: Include "gdb_string.h".
2676 * Makefile.in (linux-proc.o): Update dependency list.
2678 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2680 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2683 2002-08-01 Grace Sainsbury <graces@redhat.com>
2685 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2686 to_insert_watchpoint, to_remove_watchpoint,
2687 to_stopped_by_watchpoint, to_stopped_data_address,
2688 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2689 target vecctor. Define their corresponding macros so they call
2692 * target.c: Add default and debug versions of for
2693 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2694 to_insert_watchpoint, to_remove_watchpoint,
2695 to_stopped_by_watchpoint, to_stopped_data_address,
2696 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2698 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2700 * mips-tdep.c (mips_register_virtual_type): New function.
2701 (mips_gdbarch_init): Register mips_register_virtual_type()
2702 with gdbarch machinery.
2703 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2704 this file instead of tm-bigmips.h.
2705 (MIPS_REGSIZE): Delete this macro.
2706 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2707 multiarch version in mips-tdep.c will be found.
2709 2002-08-01 Andrew Cagney <cagney@redhat.com>
2711 * NEWS: Menion that CHILL has been made obsolete.
2713 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2714 * stabsread.c (read_range_type): Ditto.
2715 * gdbtypes.h: Ditto.
2716 * language.c (binop_type_check): Ditto.
2717 (binop_result_type): Ditto.
2718 (integral_type): Ditto.
2719 (character_type): Ditto.
2720 (string_type): Ditto.
2721 (boolean_type): Ditto.
2722 (structured_type): Ditto.
2723 (lang_bool_type): Ditto.
2724 (binop_type_check): Ditto.
2725 * language.h (_LANG_chill): Ditto.
2726 * dwarfread.c (set_cu_language): Ditto.
2727 * dwarfread.c (CHILL_PRODUCER): Ditto.
2728 * dwarfread.c (handle_producer): Ditto.
2729 * expression.h (enum exp_opcode): Ditto.
2730 * eval.c: Ditto for comments.
2731 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2732 * expprint.c (print_subexp): Ditto.
2733 (print_subexp): Ditto.
2734 * valops.c (value_cast): Ditto.
2735 (search_struct_field): Ditto.
2736 * value.h (COERCE_VARYING_ARRAY): Ditto.
2737 * symfile.c (init_filename_language_table): Ditto.
2738 (add_psymbol_with_dem_name_to_list): Ditto.
2739 * valarith.c (value_binop): Ditto.
2741 * valops.c (value_slice): Ditto.
2742 * symtab.h (union language_specific): Ditto.
2743 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2744 (SYMBOL_DEMANGLED_NAME): Ditto.
2745 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2746 * defs.h (enum language): Ditto.
2747 * symtab.c (got_symtab): Ditto.
2748 * utils.c (fprintf_symbol_filtered): Ditto.
2750 * ch-typeprint.c: Make file obsolete.
2751 * ch-valprint.c: Make file obsolete.
2752 * ch-lang.h: Make file obsolete.
2753 * ch-exp.c: Make file obsolete.
2754 * ch-lang.c: Make file obsolete.
2756 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2758 (TARGET_FLAGS_TO_PASS): Ditto.
2759 (CHILLFLAGS): Obsolete.
2761 (CHILL_FOR_TARGET): Obsolete.
2762 (CHILL_LIB): Obsolete.
2763 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2765 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2766 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2768 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2771 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2773 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2774 This does not change anything at the moment, but will be helpful
2775 later when full Ada support is integrated.
2777 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2779 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2782 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2784 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2785 and save it in a local variable. Use variable in later test.
2787 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2789 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2790 test. (Thanks to Daniel Jacobowitz.)
2792 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2794 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2795 (mips_abi_strings): Add "n64".
2796 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2798 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2800 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2801 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2803 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2805 * utils.c (host_pointer_to_address, address_to_host_pointer):
2806 Use gdb_assert() instead of explicit call to internal_error().
2808 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2810 * Makefile.in (rs6000-nat.o): Update dependencies.
2812 From Nicholas Duffek:
2813 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2814 (aix-thread.o): New rule.
2815 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2816 * config/powerpc/aix432.mh: New file.
2818 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2820 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2821 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2822 (fetch_core_registers, ppc_linux_supply_gregset)
2823 (ppc_linux_supply_fpregset): New functions.
2824 (ppc_linux_regset_core_fns): New.
2825 (_initialize_ppc_linux_tdep): Call add_core_fns.
2826 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2827 and ppc_linux_supply_gregset.
2828 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2829 (supply_fpregset): Call ppc_linux_supply_fpregset.
2830 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2832 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2834 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2836 * symtab.c (lookup_symbol): Demangle before lowercasing.
2838 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2840 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2842 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2843 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2844 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2845 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2847 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2848 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2849 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2850 (avr-tdep.o, mon960-rom.o): Ditto.
2851 (aout_stabs_gnu_h): Define.
2852 (symtab_h): Remove $(gdb_obstack_h).
2854 2002-07-30 Jim Blandy <jimb@redhat.com>
2856 Patch from David Carlton <carlton@math.stanford.edu>:
2857 * gdbinit.in: Move the `dir' commands that add GDB's own source
2858 directory to the search path to the end, so that the `gdb' source
2859 directory will be searched first.
2861 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2863 * gdb_obstack.h: New file.
2864 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2865 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2866 * objfiles.h: Include "gdb_obstack.h".
2867 * Makefile.in (gdb_obstack_h): Define.
2868 (symtab_h): Add $(gdb_obstack_h).
2869 (objfiles_h): Add $(gdb_obstack_h).
2871 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2872 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2873 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2874 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2875 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2876 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2877 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2878 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2880 * Makefile.in (bcache.o): Update dependencies.
2881 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2882 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2883 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2884 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2885 (stabsread.o, symfile.o, symmisc.o): Ditto.
2886 (symtab.o, typeprint.o, macroexp.o): Ditto.
2887 (macrotab.o, mdebugread.o): Ditto.
2888 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2889 (coff_ecoff_h, aout_aout64_h): Define.
2890 (aout_stabs_gnu_h, libaout_h): Define.
2892 2002-07-29 Andrew Cagney <cagney@redhat.com>
2894 * regcache.c (struct regcache_descr): Rename nr_registers to
2895 nr_cooked_registers. Revise comments describing the structure
2897 (init_regcache_descr): Update.
2898 (init_legacy_regcache_descr): Update.
2899 (read_register_gen, write_register_gen): When a cooked register in
2900 the raw register range, directly access the value from the raw
2903 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2905 * z8k-tdep.c: Do not include "obstack.h".
2906 * h8300-tdep.c, h8500-tdep.c: Ditto.
2907 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2908 * valprint.c, v850-tdep.c: Ditto.
2909 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2910 * mn10200-tdep.c: Ditto.
2912 * Makefile.in (z8k-tdep.o): Update dependencies.
2913 (m68hc11-tdep.o, valprint.o): Ditto.
2914 (v850-tdep.o, d10v-tdep.o): Ditto.
2915 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2916 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2917 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2918 (sh_opc_h, gdb_sim_sh_h): Define.
2919 (elf_sh_h, elf_bfd_h): Define.
2920 (opcode_m68hc11_h): Define.
2921 (OPCODES_SRC, OPCODES_DIR): define.
2922 (OPCODES): Use $(OPCODES_DIR).
2923 (gdb_sim_d10v_h): Rename sim_d10v_h.
2924 (gdb_sim_arm_h): Rename sim_arm_h.
2926 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2928 * utils.c (host_pointer_to_address, address_to_host_pointer):
2929 Change internal_error() message to indicate function responsible
2932 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2934 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2935 calls to local_hex_string_custom().
2937 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2939 * irix5-nat.c: Move IRIX shared library support from here...
2940 * solib-irix.c: ...to here. Revised substantially to work with
2941 generic solib framework.
2943 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2944 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2945 * mips-irix-tdep.c: New file.
2947 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2948 (mips-irix-tdep.o, solib-irix.o): New rules.
2949 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2951 * config/mips/irix6.mt (TDEPFILES): Likewise.
2952 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2954 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2956 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2957 disabled (via ``#if 0'') includes.
2959 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2961 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2962 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2963 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2964 Add support for the fpscr register.
2965 * rs6000-nat.c (regmap, fetch_inferior_registers)
2966 (store_inferior_registers, fetch_core_registers): Likewise.
2968 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2970 * rs6000-nat.c (language.h): Include.
2971 (special_regs): Delete this array.
2972 (regmap): New function.
2973 (fetch_register, store_register): Use regmap() to map gdb
2974 register numbers to ptrace register numbers. Also, use
2975 outputs from regmap() to make decisions regarding type of
2976 ptrace() call to make. In particular, don't compare against
2977 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2978 (fetch_inferior_registers, store_inferior_registers): Where
2979 possible, obtain register numbers from tdep struct. Don't
2980 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2981 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2982 (LAST_UISA_SP_REGNUM): Delete.
2984 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2986 * rs6000-nat.c (ppc-tdep.h): Include.
2987 (fetch_registers, store_register, fetch_core_registers): Don't
2988 access registers[] directly. Instead, use supply_register() or
2989 regcache_collect() as appropriate.
2990 (find_toc_address): Format hex address with local_hex_string().
2992 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2994 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2997 2002-07-24 Tom Tromey <tromey@redhat.com>
2999 * jv-exp.y: Marked all strings with _().
3000 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3002 (MethodInvocation, CastExpression, parse_number, yyerror,
3003 java_type_from_name, push_expression_name, yylex): Typo fixes.
3005 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3007 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3008 (tee_file_flush, tee_file_write, tee_file_fputs)
3009 (tee_file_isatty): New.
3010 * ui-file.h (tee_file_new): Add prototype.
3012 2002-07-24 Aidan Skinner <aidan@velvet.net>
3014 * ada-lang.c: Change k&r style function definitions to prototyped
3016 * ada-typeprint.c: Change k&r style function definitions to prototyped
3018 * ada-valprint.c: Change k&r style function definitions to prototyped
3021 2002-07-24 Andrew Cagney <cagney@redhat.com>
3023 * README: Remove reference to remote-bug.
3024 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3026 (m88k-nat.o): Delete rule.
3027 (m88k-tdep.o): Delete rule.
3028 (remote-bug.o): Delete rule.
3029 * MAINTAINERS: Mark as obsolete.
3030 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3031 * m88k-tdep.c: Make file obsolete.
3032 * config/m88k/m88k.mh: Ditto.
3033 * config/m88k/delta88v4.mh: Ditto.
3034 * config/m88k/delta88v4.mt: Ditto.
3035 * config/m88k/delta88.mt: Ditto.
3036 * config/m88k/delta88.mh: Ditto.
3037 * remote-bug.c: Ditto.
3038 * config/m88k/tm-delta88.h: Ditto.
3039 * config/m88k/nm-delta88v4.h: Ditto.
3040 * config/m88k/xm-delta88.h: Ditto.
3041 * config/m88k/xm-dgux.h: Ditto.
3042 * config/m88k/tm-m88k.h: Ditto.
3043 * config/m88k/nm-m88k.h: Ditto.
3044 * config/m88k/tm-delta88v4.h: Ditto.
3045 * m88k-nat.c: Ditto.
3046 * cxux-nat.c: Ditto.
3047 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3048 and m88*-*-* obsolete.
3049 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3052 2002-07-24 Andrew Cagney <cagney@redhat.com>
3054 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3055 constant. Same for local pointer variables.
3056 (extract_signed_integer): Ditto.
3057 * defs.h (extract_unsigned_integer): Update.
3058 (extract_signed_integer): Update.
3060 2002-07-24 Andrew Cagney <cagney@redhat.com>
3062 * regcache.c (regcache_raw_write): Change buf parameter to a
3063 constant void pointer.
3064 (regcache_raw_read): Change buf parameter to a void pointer.
3065 (legacy_write_register_gen): Change myaddr parameter a constant
3067 (supply_register): Change val parameter to a const void pointer.
3068 * regcache.h (regcache_raw_write): Update declaration.
3069 (regcache_raw_read): Update declaration.
3070 (supply_register): Update declaration.
3072 2002-07-24 Tom Tromey <tromey@redhat.com>
3074 * defs.h (gdb_readline_wrapper): Declare.
3075 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3076 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3077 * top.c (gdb_readline_wrapper): New function.
3078 (command_line_input): Use it.
3080 2002-07-24 Andrew Cagney <cagney@redhat.com>
3082 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3083 regcache_read and regcache_write.
3084 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3085 * regcache.c: Update.
3086 * sh-tdep.c (sh64_push_arguments): Update comment.
3087 (sh_pseudo_register_read): Update.
3088 (sh_pseudo_register_write): Update.
3089 (sh4_register_read): Update.
3090 (sh4_register_write): Update.
3091 (sh64_pseudo_register_read): Update.
3092 (sh64_pseudo_register_write): Update.
3093 (sh64_register_read): Update.
3094 (sh64_register_write): Update.
3095 * i386-tdep.c (i386_extract_return_value): Update.
3096 (i386_extract_struct_value_address): Update.
3097 (i386_extract_return_value): Update.
3098 * blockframe.c (generic_read_register_dummy): Update.
3099 (generic_call_dummy_register_unwind): Update
3100 * infrun.c (write_inferior_status_register): Update.
3102 2002-07-23 Jim Blandy <jimb@redhat.com>
3104 * parser-defs.h (expression_context_pc): Make this extern.
3105 (Thanks to Michael Snyder.)
3107 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3109 GDB 5.2.1 released from 5.2 branch.
3110 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3111 * README: Update to mention 5.2.1.
3113 2002-07-23 Mark Salter <msalter@redhat.com>
3115 * remote.c (remote_read_bytes): Fix check for error.
3117 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3119 * aix-thread.c (language.h): Include.
3120 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3121 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3122 Print newlines at end of debug messages.
3123 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3124 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3126 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3128 * aix-thread.c (ppc-tdep.h): Include.
3129 (special_register_p): New function.
3130 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3131 (store_regs_user_thread): Use register number information from
3132 gdbarch_tdep struct instead of hardcoded offsets relative to
3133 FIRST_UISA_SP_REGNUM.
3134 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3135 special_register_p() instead of using FPLAST_REGNUM and
3136 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3137 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3138 will be MQ's register number.
3140 2002-07-22 Michael Snyder <msnyder@redhat.com>
3142 * aix-thread.c (ops): Rename to aix_thread_ops.
3143 (base_ops): Rename to base_target.
3144 (ops_attach): Rename to aix_thread_attach.
3145 (ops_detach): Rename to aix_thread_detach.
3146 (ops_resume): Rename to aix_thread_detach.
3147 (ops_wait): Rename to aix_thread_wait.
3148 (ops_kill): Rename to aix_thread_kill.
3149 (init_ops): Rename to init_aix_thread_ops.
3150 (ops_fetch_register): Rename to aix_thread_fetch_register.
3151 (ops_store_register): Rename to aix_thread_store_register.
3152 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3153 (ops_thread_alive): Rename to aix_thread_thread_alive.
3154 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3155 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3156 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3157 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3158 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3159 (store_regs_lib): Rename to store_regs_user_thread.
3160 (store_regs_kern): Rename to store_regs_kernel_thread.
3162 2002-07-22 Michael Snyder <msnyder@redhat.com>
3164 * aix-thread.c (ops_prepare_to_store): Eliminate.
3165 (init_ops): Don't initialize ops.prepare_to_store.
3166 (store_regs_kern): Pre-fetch register buffers from child,
3167 because some registers may not be in the cache. Copy
3168 regs from register cache only if they are cached.
3169 (store_regs_lib): Copy regs from register cache only
3171 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3172 fill_gprs64): Ditto.
3174 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3176 * aix-thread.c (gdb_assert.h): Include.
3177 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3178 register sizes (from register cache) match size of buffer holding
3180 (fill_sprs32): Change parameter types to match those in the ptrace()
3182 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3183 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3185 2002-07-22 Michael Snyder <msnyder@redhat.com>
3187 * aix-thread.c (supply_sprs64): Cosmetic change.
3188 (supply_sprs32): Cosmetic change.
3189 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3190 (fill_sprs64): Use regcache_collect instead of read_register.
3191 (store_regs_lib): Use regcache_collect instead of
3192 read_register. Use fill_sprs32 instead of fill_sprs64,
3193 if debugging a 32-bit architecture.
3194 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3195 out of the register cache, instead of passing a pointer into
3196 the register cache directly to ptrace. Use regcache_collect
3197 insteaad of read_register.
3198 (ops_prepare_to_store): Use target_read_registers instead
3199 of read_register_bytes.
3201 2002-07-20 Aidan Skinner <aidan@velvet.net>
3203 * MAINTAINERS: Add self under write after approval.
3205 2002-07-20 Aidan Skinner <aidan@velvet.net>
3207 * ada-tasks.c: Change k&r style function definitions to prototyped
3210 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3212 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3213 * x86-64-tdep.c: Include "objfiles.h".
3214 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3215 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3217 2002-07-17 Michal Ludvig <michal@suse.cz>
3219 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3220 (update_context): Initialise cfa variable.
3222 2002-07-17 Michael Snyder <msnyder@redhat.com>
3224 * aix-thread.c: Shorten some long lines.
3225 Bring comments into line with code spec.
3227 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3229 * infrun.c: Re-indent using gdb_indent.sh.
3231 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3233 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3234 Leave the indentation temporarily untouched, to minimize the diffs.
3236 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3238 * stabsread.c: Make os9k sections of the code obsolete,
3240 * stabsread.h: Make os9k sections of the code obsolete.
3242 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3244 * linux-low.c (regsets_store_inferior_registers): Add free()
3245 at the end of a loop to prevent memory leak.
3246 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3247 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3248 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3250 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3252 2002-07-17 Jim Blandy <jimb@redhat.com>
3254 * macrocmd.c (info_macro_command): Remove newline from error
3257 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3259 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3260 (sh_gdbarch_init): Use it for sh-dsp.
3262 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3264 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3265 64-bit DWARF2 format.
3267 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3269 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3270 <sys/proc.h> when not available.
3272 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3274 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3275 * stabsread.c: Make os9k sections of the code obsolete.
3276 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3277 * config/i386/i386os9k.mt: Make file obsolete.
3278 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3279 (COMMON_OBS): Remove os9kread.o
3280 (SFILES): Remove os9kread.c.
3281 (os9kread.o, remote-os9k.o): Make target obsolete.
3282 * remote-os9k.c: Make file obsolete.
3283 * os9kread.c: Make file obsolete.
3286 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3288 * NEWS: Mention that the FR30 has been made obsolete.
3289 * fr30-tdep.c: Make file obsolete.
3290 * config/fr30/tm-fr30.h: Ditto.
3291 * config/fr30/fr30.mt: Ditto.
3292 * configure.tgt: Make fr30-*-elf obsolete.
3293 * MAINTAINERS: Make fr30-elf obsolete.
3295 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3297 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3298 found is not inside a section.
3300 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3302 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3304 (pdc_realloc): Use xrealloc() instead of realloc().
3306 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3308 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3309 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3310 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3313 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3315 * aix-thread.c (ptrace_check): Eliminate goto.
3316 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3319 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3321 * aix-thread.c (gdbcmd.h): Include.
3322 (DEBUG, DBG, DBG2, dbg): Eliminate.
3323 (debug_aix_thread): New static global.
3324 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3325 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3326 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3327 invocations to DBG and DBG2 macros to test against
3328 ``debug_aix_thread'' and call fprintf_unfiltered().
3329 (_initialize_aix_thread): Add new command "set debug aix-thread".
3331 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3333 From Gerhard Tonn <TON@de.ibm.com>:
3334 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3335 instead of supply_register.
3337 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3339 * dwarf2cfi.c: Include "gdb_assert.h".
3340 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3342 (update_context): Do not use __func__. Add missing ``break''.
3343 (update_context): Do not use __func__.
3345 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3347 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3348 and its setting. Set gdbarch instruction printing functions
3349 directly. For non-rs6000 case use new function
3350 gdb_print_insn_powerpc.
3351 (gdb_print_insn_powerpc): New function.
3353 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3355 * NEWS: Mention that the d30v has been marked obsolete.
3356 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3357 * configure.tgt: Mark d30v-*-* as obsolete.
3358 * d30v-tdep.c: Mark file as obsolete.
3359 * config/d30v/d30v.mt: Ditto.
3360 * config/d30v/tm-d30v.h: Ditto.
3362 2002-07-13 Aidan Skinner <aidan@velvet.net>
3364 * ada-tasks.c (add_task_entry): replace calls to
3365 malloc() with xmalloc
3366 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3368 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3369 ada_finish_decode_line_1, all_sals_for_line
3370 ada_breakpoint_rewrite): replace calls to free() with xfree()
3372 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3374 From Nicholas Duffek (with minor changes by Martin Hunt,
3375 Louis Hamilton, and Kevin Buettner):
3376 * aix-thread.c: New file.
3378 2002-07-12 Petr Sorfa <petrs@caldera.com>
3380 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3381 complaint for invalid attribute class or form.
3382 (read_func_scope): DW_AT_frame_base
3383 better handling of DW_AT_block*.
3384 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3385 better handling of DW_AT_block*.
3386 (read_common_block): DW_AT_location
3387 better handling of DW_AT_block*.
3388 (read_partial_die): DW_AT_location better handling
3390 (new_symbol): DW_AT_external better handling of
3391 DW_AT_block*. Proper initialization of variable
3393 (attr_form_is_block): New function that returns true
3394 if the attribute's form is of DW_FORM_block*.
3396 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3398 * valops.c (find_method_list): Remove comment about
3399 removed STATIC_MEMFUNCP argument.
3400 (value_find_oload_method_list): Likewise.
3402 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3404 From Nicholas Duffek:
3405 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3406 target_new_objfile_hook.
3408 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3410 From Nicholas Duffek:
3411 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3414 2002-07-12 Andrew Cagney <cagney@redhat.com>
3416 * MAINTAINERS: Mention --enable-sim-build-warnings.
3417 (m68hc11-elf): Disable sim build warnings.
3418 (m32r-elf): Mark as broken obsolete candidate.
3419 (x86_64-linux-gnu): Mark as buildable with -Werror.
3420 (arm-elf): Change -w to ``,'' which enables warnings but not
3423 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3425 * bcache.h: Update copyright.
3426 (struct bstring, struct bcache): Move definition to "bcache.c".
3427 Replaced by opaque declaration.
3428 (bcache_xfree): Replace free_bcache.
3429 (bcache_xmalloc, bcache_memory_used): Declare.
3431 * bcache.c: Update copyright.
3432 (struct bstring, struct bcache): Moved to here from "bcache.h".
3434 (bcache_xmalloc, bcache_memory_used): New functions.
3435 (bcache_xfree): Replace function free_bcache.
3437 * Makefile.in (objfiles.o): Add $(bcache_h).
3438 (objfiles_h): Remove $(bcache_h).
3439 (symfile.o): Add $(bcache_h).
3441 * symmisc.c: Update copyright.
3442 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3443 (print_objfile_statistics): Use bcache_memory_used.
3445 * symfile.c: Include "bcache.h".
3446 (reread_symbols): Use bcache_xfree.
3447 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3448 (add_psymbol_to_list): Pass psymbol_cache by value.
3449 (add_psymbol_with_dem_name_to_list): Ditto.
3451 * objfiles.h: Update copyright.
3452 (struct bcache): Declare opaque. Do not include "bcache.h".
3453 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3455 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3457 * objfiles.c: Include "bcache.h". Update copyright.
3458 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3460 (free_objfile): Use bcache_xfree.
3462 2002-07-11 Grace Sainsbury <graces@redhat.com>
3464 * monitor.c (monitor_fetch_register): Make name a constant.
3465 (monitor_store_register): Same.
3467 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3469 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3470 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3471 (finish_block) For non-function blocks, hash the symbol table. For
3472 function blocks, mark the symbol table as unhashed.
3473 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3474 (msymbol_hash_iw): Likewise.
3475 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3477 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3478 (lookup_minimal_symbol): Likewise for both.
3479 * symtab.h (struct block): Add `hashtable' flag. Comment the
3481 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3482 (ALL_BLOCK_SYMBOLS): Update.
3483 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3484 (struct symbol): Add `hash_next' pointer.
3485 * symtab.c (lookup_block_symbol): Search using the hash table when
3487 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3488 (search_symbols, find_addr_symbol): Likewise.
3490 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3491 (read_dst_symtab): Likewise.
3492 * jv-lang.c (get_java_class_symtab): Likewise.
3493 * mdebugread.c: Include "gdb_assert.h".
3494 (shrink_block): Assert that the block being modified is not hashed.
3495 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3496 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3498 (dump_symtab): Recognize hashed blocks.
3499 * printcmd.c (print_frame_args): Assert that function blocks do not
3500 have hashed symbol tables.
3501 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3502 (fill_in_ada_prototype, debug_print_block): Likewise.
3503 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3505 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3507 * stack.c (print_frame): Use result of frame_address_in_block()
3508 instead of fi->pc when evaluating symbols.
3509 (backtrace_command_1): Ditto.
3511 2002-07-11 Andrew Cagney <cagney@redhat.com>
3513 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3516 * arm-tdep.c (arm_register_name): Make return type constant.
3518 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3520 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3522 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3523 * s390-tdep.c (s390_fp_regnum): Ditto.
3524 (s390_read_fp): Ditto.
3525 (s390_pop_frame): Ditto.
3526 (_initialize_s390_tdep): Ditto.
3527 * remote.c (get_remote_state): Ditto.
3528 * procfs.c (mappingflags): Ditto.
3529 * memattr.c (_initialize_mem): Ditto.
3530 * mcore-tdep.c (mcore_pop_frame): Ditto.
3531 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3532 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3533 * language.c (set_case_str): Ditto.
3534 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3535 * frv-tdep.c (new_variant): Ditto.
3536 (frv_stopped_data_address): Ditto.
3537 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3538 (context_alloc): Ditto.
3539 (frame_state_alloc): Ditto.
3540 (unwind_tmp_obstack_init): Ditto.
3541 (unwind_tmp_obstack_free): Ditto.
3542 (cfi_read_fp): Ditto.
3543 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3544 (cris_pop_frame): Ditto.
3545 * c-lang.c (scanning_macro_expansion): Ditto.
3546 (finished_macro_expansion): Ditto.
3547 (c_preprocess_and_parse): Ditto.
3548 * gdbarch.sh: Ditto.
3549 * gdbarch.h, gdbarch.c: Regenerate.
3550 * config/mn10200/tm-mn10200.h: Adjust indentation.
3551 * target.c: Adjust indentation.
3552 * symtab.h: Adjust indentation.
3553 * stabsread.h: Adjust indentation.
3554 * remote-es.c: Adjust indentation.
3555 * os9kread.c: Adjust indentation.
3557 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3559 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3560 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3562 2002-07-10 Grace Sainsbury <graces@redhat.com>
3564 * NEWS: Mention m68k, mcore multi-arching.
3565 * MAINTAINERS: Change status of m68k, mcore to reflect
3568 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3570 * valops.c (find_overload_match): Free oload_syms.
3572 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3574 Define HAVE_SYS_PROC_H if sys/proc.h exists
3575 * configure.in: Add check for sys/proc.h
3576 * config.in: Regenerate.
3577 * configure: Regenerate.
3579 2002-07-09 Grace Sainsbury <graces@redhat.com>
3581 * config/m68k/tm-m68k.h: Remove macros wrapped in
3582 #if !GDB_MULTI_ARCH.
3584 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3586 * config.in, configure: Regenerate.
3588 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3590 * dwarf2cfi.c: Include "gcore.h".
3591 (execute_stack_op): Fix implementation of the
3592 DW_OP_deref and DW_OP_deref_size operators by letting do their
3593 lookup in the target.
3595 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3597 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3598 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3601 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3603 Fix PR gdb/595, gdb/602
3604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3605 Don't call value_cast, just read the vtable pointer; update comments
3608 2002-07-05 Grace Sainsbury <graces@redhat.com>
3610 * config/mcore/tm-mcore.h: Remove file.
3611 * config/mcore/mcore.mt: Remove definition of TM_FILE
3612 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3614 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3616 * i386bsd-tdep.c: Include "gdb_string.h".
3618 2002-07-04 Grace Sainsbury <graces@redhat.com>
3620 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3621 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3623 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3624 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3625 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3626 (RETVAL_REGNUM): Move macros from tm-mcore.h
3627 (mcore_reg_struct_has_addr): New function.
3628 (mcore_gdbarch_init): Added initializations for the macros removed
3631 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3633 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3634 traditonal string branding within the ELF header.
3636 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3638 * symtab.c (remove_params): New function.
3639 (make_symbol_overload_list): Use it instead of cplus_demangle.
3640 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3642 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3644 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3646 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3648 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3649 and tdep->sigtramp_end.
3650 * i386obsd-nat.c: New file.
3651 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3653 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3654 Don't call get_current_frame().
3656 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3658 * i386-nat.c (child_post_startup_inferior): New function
3659 calling i386_cleanup_dregs if
3660 I386_USE_GENERIC_WATCHPOINTS is defined.
3661 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3662 conditional to acknowledge that i386-nat.c has its
3663 own child_post_startup_inferior function.
3665 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3667 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3668 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3669 instead of MAX_REGISTER_RAW_SIZE.
3670 (i386_extract_return_value, i386_extract_struct_value_address):
3671 Convert to use regcache.
3672 (i386_gdbarch_init): Set max_register_raw_size and
3673 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3674 Set extract_return_value and extract_struct_value_address instead
3675 of their deprecated variants.
3677 Convert i386 target to generic dummy frames.
3678 * i386-tdep.c: Include "symfile.h".
3679 (i386_frameless_signal_p): Consider a function to be frameless if
3680 the pc points at the first instruction of the function.
3681 (i386_frame_chain): Handle (generic) call dummies.
3682 (i386_frame_saved_pc): Likewise.
3683 (i386_frame_init_saved_regs): Remove code dealing with call
3684 dummies on the stack.
3685 (i386_push_dummy_frame): Removed.
3686 (i386_call_dummy_words): Removed.
3687 (i386_fix_call_dummy): Removed.
3688 (i386_push_return_address): New function.
3689 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3690 parameter, and don't call get_current_frame.
3691 (i386_pop_frame): New function.
3692 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3693 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3694 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3695 call_dummy_length to 0, set call_dummy_words to NULL, set
3696 sizeof_call_dummy_words to 0, set fix_call_dummy to
3697 generic_fix_call_dummy, set pc_in_call_dummy to
3698 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3699 generic_push_dummy_frame, set push_return_address to
3700 i386_push_return_address and set frame_chain_valid to
3701 generic_file_frame_chain_valid.
3703 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3705 * gdbarch.sh (struct regcache): Add opaque declaration.
3706 (EXTRACT_RETURN_VALUE): New architecture method.
3707 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3708 * gdbarch.h, gdbarch.c: Regenerate.
3709 * arch-utils.c (legacy_extract_return_value): New function.
3710 * arch-utils.h (legacy_extract_return_value): Declare.
3711 * values.c (value_being_returned): Re-enable code handling
3712 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3713 deprecated_grub_regcache_for_registers call to block handling
3714 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3715 (EXTRACT_RETURN_VALUE): Do not define.
3717 2002-07-03 Grace Sainsbury <graces@redhat.com>
3719 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3720 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3721 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3722 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3723 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3724 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3725 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3726 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3727 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3728 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3729 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3730 argument so the function fits the prototype in the architecture
3732 (mcore_pop_frame): Remove argument so the function fits the
3733 prototype. Use get_current_frame instead of the argument.
3734 (mcore_push_arguments): Change type of struct_return so the
3735 function can be used in the architecture vector.
3736 (mcore_store_struct_return): Add.
3737 (mcore_frame_init_saved_regs): Add.
3738 (mcore_gdbarch_init): Add function calls to replace the macros
3739 removed from tm-mcore.h
3741 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3743 * infcmd.c (print_return_value): Remove compatibility code calling
3744 deprecated_grub_regcache_for_registers.
3746 * values.c: Include "regcache.h".
3747 (value_being_returned): Update. Use
3748 deprecated_grub_regcache_for_registers to extract the register
3750 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3751 ``struct regcache''.
3752 * Makefile.in (values.o): Add dependency on $(regcache_h).
3754 * inferior.h (run_stack_dummy): Change type of second parameter to
3755 a ``struct regcache''.
3756 * valops.c (hand_function_call): Change type of retbuf to ``struct
3757 regcache''. Allocate using regcache_xmalloc, clean using
3758 make_cleanup_regcache_xfree.
3759 * infcmd.c (run_stack_dummy): Update. Use
3760 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3762 * regcache.c (do_regcache_xfree): New function.
3763 (make_cleanup_regcache_xfree): New function.
3764 * regcache.h (make_cleanup_regcache_xfree): Declare.
3766 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3768 * event-top.c (command_line_handler): Don't read past
3769 beginning of buffer.
3771 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3773 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3775 (varobj_create): Store frame_id for root.
3776 (varobj_gen_name): Use xasprintf.
3777 (varobj_update): Save and restore frame using get_frame_id() and
3779 (create_child): Use xasprintf.
3780 (new_root_variable): Initialize frame_id.
3781 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3782 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3783 to prevent memory leak.
3785 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3787 * valops.c (hand_function_call): Move declaration of retbuf to
3788 start of function, allocate using malloc, add a cleanup but before
3789 the inf_status cleanup, cleanup the buffer. Rename local variable
3790 old_chain to inf_status_cleanup.
3792 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3794 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3796 * cli/cli-decode.c (cmd_func_p): New function.
3797 (cmd_func): New function.
3799 * command.h: Add cmd_func() and cmd_func_p().
3801 2002-07-03 Grace Sainsbury <graces@redhat.com>
3803 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3804 (REGISTER_SIZE): Remove.
3805 (MAX_REGISTER_RAW_SIZE): Remove.
3806 (REGISTER_VIRTUAL_TYPE): Remove.
3807 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3808 (REGISTER_NAME): Remove.
3809 (USE_GENERIC_DUMMY_FRAMES): Remove.
3810 (CALL_DUMMY): Remove.
3811 (CALL_DUMMY_START_OFFSET): Remove.
3812 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3813 (CALL_DUMMY_LOCATION): Remove.
3814 (FIX_CALL_DUMMY): Remove.
3815 (CALL_DUMMY_ADDRESS): Remove.
3816 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3817 (SAVE_DUMMY_FRAME_TOS): Remove.
3818 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3819 (mcore_register_virtual_type): New function.
3820 (mcore_register_byte): New function.
3821 (mcore_register_size): New function.
3822 (mcore_register_name): New function.
3823 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3824 macros removed from tm-mcore.h.
3825 (mcore_dump_tdep): Add.
3826 (_initialize_mcore_tdep): Add gdbarch_register call.
3828 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3830 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3831 frameless_look_for_prologue, such that we actually call this
3834 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3836 * frame.h (frame_address_in_block): New function.
3838 * blockframe.c (frame_address_in_block): New function extracted
3839 from get_frame_block().
3840 (get_frame_block): Use frame_address_in_block().
3841 (block_innermost_frame): Use frame_address_in_block() to match
3842 the frame pc address against the block boundaries rather than
3843 the frame pc directly. This prevents a failure when a frame pc
3844 is actually a return-address pointing immediately after the end
3847 2002-07-02 Grace Sainsbury <graces@redhat.com>
3849 * MAINTAINERS: Add self under write after approval.
3851 2002-07-02 Grace Sainsbury <graces@redhat.com>
3853 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3854 used in architecture vector. The default is
3855 m68k_local_breakpoint_from_pc.
3856 (m68k_local_breakpoint_from_pc): Add.
3857 (enum): Add register numbers from tm-m68k.h.
3858 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3860 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3861 GDB_MULTI_ARCH_PARTIAL.
3862 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3863 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3865 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3866 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3867 to enum in m68k-tdep.c
3869 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3871 * solib-osf.c (open_map): Compute the list of shared libraries
3872 loaded by the inferior, rather than the list of libraries loaded
3873 by GDB itself. Otherwise, GDB ends up reading the symbols from
3874 the wrong shared libraries...
3876 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3878 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3879 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3881 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3883 (FRAMELESS_SIGNAL): Remove function.
3884 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3885 i386_linux_saved_pc_after_call): Removed.
3886 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3887 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3888 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3890 * i386-tdep.c (i386_frameless_signal_p): New function.
3891 (i386_frame_chain): Deal with frameless signals.
3892 (i386_sigtramp_saved_sp): New function.
3893 (i386_frame_saved_pc): Deal with frameless signals.
3894 (i386_saved_pc_after_call): Make sure the correct value is
3895 returned just after entry into a sigtramp.
3896 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3897 i386fbsd4_sc_sp_offset): New variables.
3898 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3899 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3900 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3901 similiar to what we already did for sc_pc_offset.
3902 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3905 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3907 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3909 * config/i386/tm-x86-64linux.h: New.
3910 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3912 * config/i386/nm-x86-64.h: Rename to ...
3913 * config/i386/nm-x86-64linux.h: ... this one.
3914 * config/i386/x86-64linux.mh: Reflect the above change.
3916 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3918 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3919 with sigcontext_addr. Add sc_sp_offset.
3920 (i386bsd_sigtramp_saved_pc): Remove prototype.
3921 (i386bsd_sicontext_addr): Add prototype.
3922 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3923 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3924 (i386_svr4_sigtramp_saved_pc): Removed.
3925 (i386_svr4_sigcontext_addr): New function.
3926 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3927 Initialize tdep->sigcontext_addr instead. Initialize
3928 tdep->sc_pc_offset and tdep->sc_sp_offset.
3929 (i386_gdbarch_init): Likewise.
3930 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3932 (i386bsd_sigtramp_saved_pc): Remove function.
3933 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3934 Initialize tdep->sigcontext_addr instead. Initialize
3936 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3937 of tdep->sigtramp_saved_pc.
3938 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3939 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3942 * i386-tdep.c (i386_frameless_function_invocation,
3943 i386_frame_num_args, i386_frame_init_saved_regs,
3944 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3945 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3946 i386_extract_return_value, i386_store_return_value,
3947 i386_extract_struct_value_address, i386_register_virtual_type,
3948 i386_register_convertible, i386_register_convert_to_virtual,
3949 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3950 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3953 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3955 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3957 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3958 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3959 this macro. Include "value.h".
3961 2002-06-30 Aidan Skinner <aidan@velvet.net>
3963 * ada-exp.tab.c: remove as it's a generated file
3964 * ada-lex.c: remove as it's a generated file
3966 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3968 * config/i386/tm-i386.h (struct frame_info, struct
3969 frame_saved_regs, struct value, struct type): Remove forward
3972 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3973 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3974 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3975 (FILL_FPXREGSET): Define.
3977 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3979 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3980 i[3456]86-*-netbsd* case.
3981 * config/i386/tm-obsd.h: Removed.
3982 * config/i386/obsd.mt: Removed.
3983 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3985 (MH_CFLAGS): Add -DYYDEBUG=0.
3987 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3988 i386nbsd_sc_pc_offset on OpenBSD too.
3990 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3991 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3992 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3994 * i386bsd-tdep.c: Include "arch-utils.h".
3995 (i386bsd_aout_in_solib_call_trampoline): New function.
3996 (i386bsd_init_abi): Set in_solib_call_trampoline to
3997 i386bsd_aout_in_solib_call_trampoline.
3998 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3999 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4001 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4003 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4004 (struct obstack, struct bcache): Add opaque declarations.
4005 * Makefile.in (macrotab_h): Update
4007 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4009 * blockframe.c (generic_find_dummy_frame): Change return type to
4010 ``struct regcache''.
4011 (struct dummy_frame): Replace field ``registers'' with regcache, a
4012 struct regcache object.
4013 (generic_find_dummy_frame): Update.
4014 (generic_push_dummy_frame): Update. Use regcache_xfree,
4015 regcache_xmalloc and regcache_cpy.
4016 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4018 (deprecated_generic_find_dummy_frame): Update.
4019 (generic_read_register_dummy): Update. Use
4020 regcache_read_as_address.
4021 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4022 (generic_get_saved_register): Update. Use regcache_read.
4024 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4026 * Makefile.in (objfiles_h): Add $(bcache_h).
4027 * objfiles.h: Include "bcache.h".
4029 * Makefile.in (symtab_h): Remove $(bcache_h).
4030 * symtab.h: Do not include "bcache.h".
4032 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4034 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4035 generic_func_frame_chain_valid.
4037 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4039 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4040 * config/i386/tm-fbsd.h: Likewise.
4042 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4044 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4045 generic_unwind_get_saved_register.
4047 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4049 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4050 * regcache.c (supply_register): Add missing argument to
4051 register_buffer call.
4053 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4055 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4056 Solaris /bin/grep does not not like it. From Peter Schauer.
4058 2002-06-26 Tom Tromey <tromey@redhat.com>
4060 * command.h (add_setshow_cmd): Declare.
4061 (add_setshow_cmd_full): Declare.
4062 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4063 returns void. Use add_setshow_cmd_full.
4064 (add_setshow_cmd_full): New function.
4065 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4066 (add_setshow_boolean_cmd): Likewise.
4068 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4070 * config/vax/tm-vax.h: Protect from multiple inclusion.
4071 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4072 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4073 * config/vax/tm-vaxbsd.h: ...here. New file.
4074 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4076 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4078 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4079 (BELIEVE_PCC_PROMOTION): Remove.
4080 (AP_REGNUM): Move to...
4081 * config/vax/nm-vax.h: ...here.
4082 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4083 (vax_breakpoint_from_pc): New function.
4084 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4085 and gdbarch_believe_pcc_promotion.
4087 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4089 * Makefile.in (vax_tdep_h): Define.
4090 (vax-tdep.o): Use $(vax_tdep_h).
4091 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4092 (vax_dump_tdep): New function.
4093 (_initialize_vax_tdep): Register vax_dump_tdep.
4094 * vax-tdep.h: Include osabi.h.
4095 (struct gdbarch_tdep): New.
4097 2002-06-26 Andrew Cagney <cagney@redhat.com>
4099 * frame.h (deprecated_generic_find_dummy_frame): Rename
4100 generic_find_dummy_frame.
4101 * blockframe.c (generic_find_dummy_frame): Make static.
4102 (deprecated_generic_find_dummy_frame): New function.
4103 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4104 generic_find_dummy_frame with deprecated_find_dummy_frame.
4105 (sh64_nofp_frame_init_saved_regs): Ditto.
4106 (sh_fp_frame_init_saved_regs): Ditto.
4107 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4108 (s390_frame_chain): Ditto.
4109 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4111 2002-06-26 Grace Sainsbury <graces@redhat.com>
4113 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4114 gdbarch vector are at the top.
4116 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4117 (FRAME_ARGS_ADDRESS): Remove.
4118 (FRAME_LOCALS_ADDRESS): Remove.
4119 (FRAME_NUM_ARGS): Remove.
4120 (FRAME_ARGS_SKIP): Remove.
4121 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4122 (m68k_gdbarch_init): Add gdbarch initializations for macros
4123 undefined in tm-m68k.h
4125 2002-06-26 Grace Sainsbury <graces@redhat.com>
4127 * monitor.h: Add the function regname to monitor_ops
4128 structure. This way NUM_REGS does not have to be a constant.
4129 * monitor.c (monitor_fetch_register): Added support for regname
4130 function. The function is called if the array regnames is NULL.
4131 (monitor_store_register): Same.
4132 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4134 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4135 cpu32bug_cmds.regname to point to new function.
4136 * abug-rom.c (abug_regname): Same as above.
4137 (init_abug_cmds): Same.
4138 * dbug-rom.c (dbug_regname): Same as above.
4139 (init_dbug_cmds): Same.
4140 * remote-est.c (est_regname): Same.
4141 (init_est_cmds): Same.
4142 * rom68k-rom.c (rom68k_regname): Same.
4143 (init_rom68k_cmds): Same.
4145 2002-06-25 Tom Tromey <tromey@redhat.com>
4147 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4149 2002-06-25 Andrew Cagney <cagney@redhat.com>
4151 * infrun.c (stop_registers): Change variable's type to ``struct
4153 (xmalloc_inferior_status): Delete function.
4154 (free_inferior_status): Delete function.
4155 (normal_stop): Use regcache_cpy.
4156 (struct inferior_status): Change type of fields ``stop_registers''
4157 and ``registers'' to ``struct regcache''.
4158 (write_inferior_status_register): Use regcache_write.
4159 (save_inferior_status): Instead of calling
4160 xmalloc_inferior_status, allocate the inf_status buffer directly.
4161 Use regcache_dup_no_passthrough and regcache_dup to save the
4163 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4164 Replace the stop_registers regcache instead of overriding it. Use
4165 regcache_xfree. Instead of calling free_inferior_status, xfree
4166 the buffer directly.
4167 (discard_inferior_status): Use regcache_xfree. Instead of calling
4168 free_inferior_status, xfree the buffer directly.
4169 (build_infrun): Use regcache_xmalloc.
4170 (_initialize_infrun): Delete redundant call to build_infrun.
4172 * Makefile.in (infcmd.o): Add $(regcache_h).
4174 * infcmd.c: Include "regcache.h".
4175 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4176 obtain the address of `stop_registers' register buffer.
4177 (print_return_value): Ditto.
4179 * inferior.h (struct regcache): Add opaque declaration.
4180 (stop_registers): Change variable's declared type to ``struct
4183 2002-06-24 Tom Tromey <tromey@redhat.com>
4185 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4186 * target.c (initialize_targets): Fixed typo in
4187 trust-readonly-sections `show' documentation.
4189 * main.c: Marked all strings with _().
4191 2002-06-24 Don Howard <dhoward@redhat.com>
4193 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4194 that means max CORE_ADDR+1.
4195 (lookup_mem_region): Ditto.
4196 (mem_info_command): Ditto.
4198 2002-06-24 Grace Sainsbury <graces@redhat.com>
4200 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4201 (REGISTER_BYTES_OK): Remove.
4202 (REGISTER_BYTES): Remove.
4203 (STORE_STRUCT_RETURN): Remove.
4204 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4205 (STORE_RETURN_VALUE): Remove.
4206 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4207 (FRAME_CHAIN): Remove.
4208 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4209 (FRAME_SAVED_PC): Remove.
4210 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4211 (m68k_store_struct_return): Add.
4212 (m68k_deprecated_extract_return_value): Add.
4213 (m68k_deprecated_extract_struct_value_address): Add.
4214 (m68k_store_return_value): Add.
4215 (m68k_frame_chain): Add.
4216 (m68k_frameless_function_invocation): Add.
4217 (m68k_frame_saved_pc): Add.
4218 (m68k_gdbarch_init): added set_gdbarch calls for new
4219 functions and deleted macros.
4221 2002-06-23 Tom Tromey <tromey@redhat.com>
4223 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4224 (ALLDEPFILES): Likewise.
4225 (udiheaders): Removed.
4226 (udip2soc.o): Likewise.
4227 (udi2go32.o): Likewise.
4229 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4231 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4233 * infrun.c (_initialize_infrun): Delete unnecessary call to
4236 * regcache.h: Update comments describing the regcache_cpy family
4238 (regcache_save, regcache_restore): Delete declaration.
4239 (regcache_save_no_passthrough): Delete declaration.
4240 (regcache_restore_no_passthrough): Delete declaration.
4241 * regcache.c (regcache_save): Delete function.
4242 (regcache_save_no_passthrough): Delete function.
4243 (regcache_restore): Delete function.
4244 (regcache_restore_no_passthrough): Delete function.
4246 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4248 * config/m68k/tm-m68k.h: Fix typo.
4249 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4250 (m68k_frame_init_saved_regs): Declare.
4252 2002-06-21 Jim Blandy <jimb@redhat.com>
4254 Remove some vestiges of Harris 88k support.
4255 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4256 register numbering quirk.
4257 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4258 odd symbols occurring in Harris 88k ELF targets.
4260 2002-06-21 Tom Tromey <tromey@redhat.com>
4262 * gdb_locale.h: New file.
4263 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4264 (defs_h): Added gdb_locale.h.
4265 * configure, config.in: Rebuilt.
4266 * configure.in (PACKAGE): Define.
4267 * defs.h: Include gdb_locale.h.
4268 * main.c (captured_main): Call setlocale, bindtextdomain,
4271 2002-06-21 Dave Brolley <brolley@redhat.com>
4273 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4274 * config/frv/frv.mt: New file.
4275 * config/frv/tm-frv.h: New file.
4276 * configure.tgt: Support frv-*-*.
4277 * Makefile.in (frv-tdep.o): New target.
4278 * frv-tdep.c: New file.
4279 * NEWS: Mention frv.
4281 2002-06-21 Dave Brolley <brolley@redhat.com>
4283 * MAINTAINERS: Add self to "Write After Approval" list.
4285 2002-06-21 Grace Sainsbury <graces@redhat.com>
4287 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4288 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4289 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4290 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4291 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4293 * m68k-tdep.c: Include arch-utils.h
4294 (m68k_register_raw_size): Add.
4295 (m68k_register_virtual_size): Add.
4296 (m68k_register_virtual_type): Add.
4297 (m68k_register_name): Add.
4298 (m68k_stack_align): Add.
4299 (m68k_register_byte): Add.
4300 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4303 2002-06-21 Grace Sainsbury <graces@redhat.com>
4305 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4306 m68k_find_saved_regs.
4307 (m68k_pop_frame): Removed saved_regs structure, and replaced
4308 references to it with frame->saved_regs.
4309 (m68k_gdbarch_init): Added function calls to initialize the
4311 (m68k_fix_call_dummy): Add.
4312 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4313 (CALL_DUMMY): Remove.
4314 (CALL_DUMMY_LENGTH): Remove.
4315 (CALL_DUMMY_START_OFFSET): Remove.
4316 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4317 (FIX_CALL_DUMMY): Remove.
4318 (PUSH_DUMMY_FRAME): Remove.
4319 (POP_FRAME): Remove.
4321 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4323 * parse.c (parse_fprintf): New function used to avoid calls to
4324 fprintf in bison parser generated debug code.
4325 * parser-defs.h: Declaration of new parse_fprintf function.
4326 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4327 Set YYDEBUG to 1 by default.
4328 Set YYFPRINTF as parse_fprintf.
4330 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4332 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4334 (pointer_encoding, enum ptr_encoding): New.
4335 (execute_cfa_program): Take care about pointer encoding.
4336 (dwarf2_build_frame_info): Only call parse_frame_info for
4337 .debug_frame and .eh_frame.
4338 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4339 fixed augmentation handling, added relative addressing,
4340 ignore duplicate FDEs. Added comments.
4341 * dwarf2cfi.c: Reindented.
4343 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4345 * event-top.c (command_handler): Don't use space_at_cmd_start
4346 unless there is sbrk() on the host. Assign time and space data
4347 to union fields of the appropriate length.
4349 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4351 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4352 x86_64_register_name. Return type changed to 'const char *'.
4353 (x86_64_register_name2nr): Rename to x86_64_register_number.
4354 (x86_64_gdbarch_init): Update to reflect the change.
4355 * x86-64-tdep.h: Ditto.
4356 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4357 (supply_fpregset): Ditto.
4359 2002-06-19 Andrew Cagney <cagney@redhat.com>
4361 * regcache.h: Update copyright.
4362 (struct regcache, struct gdbarch): Add opaque declarations.
4363 (current_regcache): Declare global variable.
4364 (regcache_read, regcache_write): Add gdbarch parameter.
4365 (regcache_save, regcache_save_no_passthrough)
4366 (regcache_restore, regcache_restore_no_passthrough)
4367 (regcache_dup, regcache_dup_no_passthrough)
4368 (regcache_cpy, regcache_cpy_no_passthrough)
4369 (deprecated_grub_regcache_for_registers)
4370 (deprecated_grub_regcache_for_register_valid)
4371 (regcache_valid_p): Add function declarations.
4373 * regcache.c: Update copyright.
4374 (regcache_descr_handle): New global variable.
4375 (struct regcache_descr): Define.
4376 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4377 (regcache_descr, xfree_regcache_descr): New functions.
4378 (struct regcache): Define.
4379 (regcache_xmalloc, regcache_xfree): New functions.
4380 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4381 (regcache_dup, regcache_dup_no_passthrough): New functions.
4382 (regcache_valid_p, regcache_read_as_address): New functions.
4383 (deprecated_grub_regcache_for_registers): New function.
4384 (deprecated_grub_regcache_for_register_valid): New function.
4385 (current_regcache): New global variable.
4386 (register_buffer): Add regcache parameter. Update calls.
4387 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4388 (read_register_gen, write_register_gen): Update register_buffer
4389 call. Test for legacy_p instead of gdbarch_register_read_p or
4390 gdbarch_register_write_p.
4391 (regcache_collect): Update register_buffer call.
4392 (build_regcache): Rewrite. Use deprecated grub functions.
4393 (regcache_save, regcache_save_no_passthrough): New functions.
4394 (regcache_restore, regcache_restore_no_passthrough): New
4396 (_initialize_regcache): Create the regcache_data_handle. Swap
4397 current_regcache global variable.
4399 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4400 parameter to regcache_read and regcache_write calls.
4401 (sh4_register_read): Ditto.
4402 (sh64_pseudo_register_read): Ditto.
4403 (sh64_register_read): Ditto.
4404 (sh_pseudo_register_write): Ditto.
4405 (sh4_register_write): Ditto.
4406 (sh64_pseudo_register_write): Ditto.
4407 (sh64_register_write): Ditto.
4409 * defs.h (XCALLOC): Define.
4411 2002-06-19 Grace Sainsbury <graces@redhat.com>
4413 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4414 * m68k-tdep.c (m68k_gdbarch_init): Added.
4415 (m68k_dump_tdep): Added.
4417 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4419 * ada-lang.c (fill_in_ada_prototype): Update comment.
4421 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4423 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4425 (mips_abi_string, mips_abi_strings): New.
4426 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4427 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4428 tdep->mips_abi_string. Honor mips_abi_string. Default to
4429 O32 if no ABI is found.
4430 (mips_dump_tdep): Use mips_abi_strings.
4431 (mips_abi_update): New function.
4432 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4433 ``set mips abi'' and ``show mips abi''. Check the size of
4436 2002-06-19 Andrew Cagney <cagney@redhat.com>
4438 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4441 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4443 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4444 current frame using only the first stack size adjustment. All
4445 subsequent size adjustments are not considered to be part of
4446 the "static" part of the current frame.
4447 Compute the address of the saved registers relative to the
4448 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4449 in use in this frame.
4451 2002-06-18 Don Howard <dhoward@redhat.com>
4453 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4454 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4455 suggesting this solution.
4457 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4459 * config/romp/xm-rtbsd.h: Delete file.
4460 * config/romp/rtbsd.mh: Delete file.
4462 2002-06-18 Keith Seitz <keiths@redhat.com>
4464 * breakpoint.c (condition_command): Post breakpoint_modify
4465 when a condition is added to an existing breakpoint.
4466 (commands_command): Likewise for commands.
4467 (set_ignore_count): Likewise for ignore counts.
4468 If no tty, do not simply return, still need to send event
4470 (ignore_command): Only print a newline if the command came
4472 Don't call breakpoints_changed, since this is now properly
4473 handled by set_ignore_count.
4475 2002-06-18 Andrew Cagney <cagney@redhat.com>
4477 * MAINTAINERS: Note that cris-elf target can be compiled with
4479 * cris-tdep.c (cris_register_name): Make return type constant.
4480 (cris_breakpoint_from_pc): Ditto.
4482 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4484 * frame.h (struct frame_info): Change type of context to
4487 2002-06-17 Andrew Cagney <cagney@redhat.com>
4489 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4491 * gdbarch.h, gdbarch.c: Regenerate.
4492 * config/mips/tm-mips.h (mips_register_name): Update.
4493 * i386-tdep.h (i386_register_name): Update.
4494 * mips-tdep.c (mips_register_name): Update
4495 * alpha-tdep.c (alpha_register_name): Update.
4496 * arch-utils.c (legacy_register_name): Update.
4497 * arch-utils.h (legacy_register_name): Update.
4498 * avr-tdep.c (avr_register_name): Update.
4499 * ia64-tdep.c (ia64_register_name): Update.
4500 * i386-tdep.c (i386_register_name): Update.
4501 * sparc-tdep.c (sparc32_register_name): Update.
4502 (sparc64_register_name): Update.
4503 (sparclite_register_name): Update.
4504 (sparclet_register_name): Update.
4505 * sh-tdep.c (sh_generic_register_name): Update.
4506 (sh_sh_register_name): Update.
4507 (sh_sh3_register_name): Update.
4508 (sh_sh3e_register_name): Update.
4509 (sh_sh_dsp_register_name): Update.
4510 (sh_sh3_dsp_register_name): Update.
4511 (sh_sh4_register_name): Update.
4512 (sh_sh64_register_name): Update.
4513 * s390-tdep.c (s390_register_name): Update.
4514 * rs6000-tdep.c (rs6000_register_name): Update.
4515 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4516 (ns32k_register_name_32382): Update.
4517 * d10v-tdep.c (d10v_ts2_register_name): Update.
4518 (d10v_ts3_register_name): Update.
4519 * xstormy16-tdep.c (xstormy16_register_name): Update.
4520 * vax-tdep.c (vax_register_name): Update.
4521 * v850-tdep.c (v850_register_name): Update.
4522 * m68hc11-tdep.c (m68hc11_register_name): Update.
4523 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4524 (am33_register_name): Update.
4526 2002-06-17 Grace Sainsbury <graces@redhat.com>
4528 * m68k-tdep.c: Reindented.
4530 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4532 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4533 list of predefined types.
4535 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4537 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4538 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4539 REGISTER_CONVERT_TO_RAW): Remove defines.
4540 (i386_register_virtual_type, i386_register_convertible,
4541 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4543 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4544 macros mentioned above.
4546 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4547 (i386lynx_saved_pc_after_call): Remove prototype.
4548 * i386ly-tdep.c: Include "i386-tdep.h".
4549 (i386lynx_saved_pc_after_call): Make static. Use
4550 read_memory_nobpt instead of read_memory. Use
4551 read_memory_unsigned_integer instead of read_memory_integer.
4552 (i386lynx_init_abi): New function.
4553 (i386lynx_coff_osabi_sniffer): New function.
4554 (_initialize_i386bsd_tdep): New function.
4556 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4557 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4558 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4559 (i386_fix_call_dummy): Remove prototype.
4560 * i386-tdep.c (i386_call_dummy_words): New variable.
4561 (i386_gdbarch_init): Adjust for removal of the
4562 macros mentioned above.
4564 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4566 * command.h (add_setshow_auto_boolean_cmd): Replace
4567 add_set_auto_boolean_cmd.
4568 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4569 add_set_auto_boolean_cmd.
4570 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4571 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4572 mask-address'' command.
4573 (show_mask_address): Add cmd parameter.
4574 * remote.c (add_packet_config_cmd): Update. Change type of
4575 set_func and show_func to cmd_sfunc_ftype.
4576 (_initialize_remote): Update `set remote Z-packet'
4577 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4578 (show_remote_protocol_e_packet_cmd): Ditto.
4579 (show_remote_protocol_E_packet_cmd): Ditto.
4580 (show_remote_protocol_P_packet_cmd): Ditto.
4581 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4582 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4583 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4584 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4585 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4586 (show_remote_protocol_Z_packet_cmd): Ditto.
4587 (show_remote_protocol_binary_download_cmd): Ditto.
4588 (show_remote_cmd): Pass NULL to all of above.
4590 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4592 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4593 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4595 POP_FRAME): Remove defines.
4596 (i386_push_arguments, i386_store_struct_return,
4597 i386_extract_return_value, i386_store_return_value,
4598 i386_extract_struct_value_address, i386_push_dummy_frame,
4599 i386_pop_frame): Renove prototypes.
4600 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4601 macros mentioned above.
4603 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4605 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4606 add_set_boolean_cmd.
4607 (add_setshow_cmd): New function.
4608 * command.h (add_setshow_boolean_cmd): Replace
4609 add_set_boolean_cmd.
4610 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4611 and ``set rdiromatzero''.
4612 * maint.c (_initialize_maint_cmds): Update commented out code.
4613 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4614 * target.c (initialize_targets): Update `set
4615 trust-readonly-sections'.
4616 * remote.c (_initialize_remote): Update `set remotebreak'.
4618 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4620 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4621 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4622 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4623 fit into multi-arch framework.
4624 (i386_breakpoint_from_pc): New function.
4625 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4628 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4629 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4630 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4631 (i386_frameless_function_invocation, i386_frame_num_args,
4632 i386_frame_init_saved_regs): Remove prototypes.
4633 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4634 macros mentioned above.
4636 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4638 * cli/cli-decode.c (set_cmd_cfunc): Update.
4639 (set_cmd_sfunc): Update.
4640 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4641 (set_cmd_sfunc, set_cmd_cfunc): Update.
4642 * cli/cli-decode.h: Update.
4644 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4646 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4647 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4649 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4651 * defs.h (auto_boolean): Declare enum.
4652 * command.h (cmd_auto_boolean): Delete enum.
4653 * mips-tdep.c (mask_address_var): Update.
4654 (mips_mask_address_p): Update.
4655 (show_mask_address): Update.
4656 * remote.c (struct packet_config): Update.
4657 (update_packet_config): Update.
4658 (show_packet_config_cmd): Update.
4659 (packet_ok): Update.
4660 (add_packet_config_cmd): Update.
4661 (_initialize_remote):
4662 * command.h: Update.
4663 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4664 (do_setshow_command): Update.
4665 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4666 * cli/cli-decode.h: Update.
4668 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4670 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4671 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4672 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4673 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4674 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4675 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4677 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4678 list of DJGPP COFF targets.
4680 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4681 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4682 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4683 (FP0_REGNUM): Remove define.
4684 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4685 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4686 (i386_register_virtual_size): Remove protoype.
4687 * i386-tdep.c (i386_register_virtual_size): Removed.
4688 (i386_extract_return_value, i386_store_return_value): Use
4689 FP0_REGNUM instead of NUM_FREGS to determine whether the
4690 floating-point registers are available.
4691 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4692 Adjust for removal of macros mentioned above.
4694 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4696 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4698 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4700 (supply_gregset, fill_gregset): Remove use of register keyword and
4701 remove declaration for regmap. Use I386_NUM_GREGS instead of
4702 NUM_REGS and NUM_FREGS.
4703 (FPREGSET_FSAVE_OFFSET): Remove.
4704 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4705 NUM_FREGS to determine whether the floating-point registers are
4708 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4709 gnu_store_registers): Replace usage of NUM_GREGS with
4712 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4713 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4714 usage of NUM_GREGS with I386_NUM_GREGS.
4716 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4718 * i386bsd-nat.c: Include "i386-tdep.h".
4719 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4722 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4723 and associated comment. They no longer make any sense, since we
4724 don't use this file anymore on Linux.
4726 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4727 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4728 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4729 elements in these arrays.
4730 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4733 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4735 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4736 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4738 2002-06-14 Andrew Cagney <cagney@redhat.com>
4740 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4741 EXTRACT_RETURN_VALUE.
4742 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4743 EXTRACT_STRUCT_VALUE_ADDRESS.
4744 * gdbarch.h, gdbarch.c: Regenerate.
4746 * values.c (value_being_returned): Handle
4747 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4748 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4750 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4751 * arm-tdep.c (arm_gdbarch_init): Update.
4752 * avr-tdep.c (avr_gdbarch_init): Update.
4753 * cris-tdep.c (cris_gdbarch_init): Update.
4754 * d10v-tdep.c (d10v_gdbarch_init): Update.
4755 * ia64-tdep.c (ia64_gdbarch_init): Update.
4756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4757 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4758 * s390-tdep.c (s390_gdbarch_init): Update.
4759 * sh-tdep.c (sh_gdbarch_init): Update.
4760 * s390-tdep.c (s390_gdbarch_init): Update.
4761 * sparc-tdep.c (sparc_gdbarch_init): Update.
4762 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4763 * v850-tdep.c (v850_gdbarch_init): Update.
4764 * vax-tdep.c (vax_gdbarch_init): Update.
4765 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4768 * config/arc/tm-arc.h: Update.
4769 * config/d30v/tm-d30v.h: Update.
4770 * config/fr30/tm-fr30.h: Update.
4771 * config/h8300/tm-h8300.h: Update.
4772 * config/h8500/tm-h8500.h: Update.
4773 * config/i386/tm-i386.h: Update.
4774 * config/i386/tm-ptx.h: Update.
4775 * config/i386/tm-symmetry.h: Update.
4776 * config/i960/tm-i960.h: Update.
4777 * config/m32r/tm-m32r.h: Update.
4778 * config/m68k/tm-delta68.h: Update.
4779 * config/m68k/tm-linux.h: Update.
4780 * config/m68k/tm-m68k.h: Update.
4781 * config/m88k/tm-m88k.h: Update.
4782 * config/mcore/tm-mcore.h: Update.
4783 * config/mips/tm-mips.h: Update.
4784 * config/mn10200/tm-mn10200.h: Update.
4785 * config/pa/tm-hppa.h: Update.
4786 * config/pa/tm-hppa64.h: Update.
4787 * config/sparc/tm-sp64.h: Update.
4788 * config/sparc/tm-sparc.h: Update.
4789 * config/sparc/tm-sparclet.h: Update.
4790 * config/z8k/tm-z8k.h: Update.
4792 2002-06-14 Andrew Cagney <cagney@redhat.com>
4794 * Makefile.in (i386_linux_tdep_h): Define.
4795 (i386_tdep_h, i387_tdep_h): Define.
4796 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4797 $(i386_tdep_h) and $(i387_tdep_h).
4798 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4800 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4802 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4803 Already covered by the default.
4805 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4806 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4807 (i386_gdbarch_init): Initialize long_double_format and long_double
4810 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4811 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4813 * config/i386/i386sol2.mh: ... here.
4814 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4815 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4816 (SIGCONTEXT_PC_OFFSET): Remove define.
4817 (IN_SIGTRAMP): Remove define.
4818 * i386-sol2-tdep.c: New file.
4820 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4821 * config/i386/tm-i386nw.h: Removed.
4823 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4824 USE_STRUCT_CONVENTION): Remove defines.
4825 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4826 (get_longjmp_target): Remove prototype.
4827 (IN_SIGTRAMP): Remove define.
4828 (i386bsd_in_sigtramp): Remove prototype.
4829 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4830 function. Update comment accordingly
4831 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4832 (FRAME_SAVED_PC): Remove define.
4833 (i386bsd_frame_saved_pc): Remove prototype.
4834 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4835 GET_LONGJMP_TARGET): Remove defines.
4836 (get_longjmp_target): Remove prototype.
4837 (IN_SIGTRAMP): Remove define.
4838 (i386bsd_in_sigtramp): Remove prototype.
4839 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4840 function. Update comment accordingly
4841 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4842 (FRAME_SAVED_PC): Remove define.
4843 (i386bsd_frame_saved_pc): Remove prototype.
4844 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4846 (USE_STRUCT_CONVENTION): Remove prototype.
4847 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4849 (_initialize_i386bsd_nat): Revise logic to determine some
4850 constants at compile time when compiling a native GDB. Warn if
4851 things don't match up with what we expect.
4852 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4854 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4855 to use date stored in `struct gdbarch_tdep'.
4856 (i386bsd_sigcontext_offset): Remove varaible.
4857 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4858 stored in `struct gdbarch_tdep'.
4859 (i386bsd_frame_saved_pc): Make static.
4860 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4861 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4862 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4863 i386fbsd4_sc_pc_offset): New variables.
4864 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4865 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4867 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4869 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4870 Modify the value of i386fbsd_sigtramp_start and
4871 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4872 i386fbsd_sigtramp_end.
4873 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4876 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4877 define to i386-linux-tdep.h.
4878 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4879 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4881 (i386_linux_register_name, i386_linux_register_byte,
4882 i386_linux_register_raw_size): Remove prototypes.
4883 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4884 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4885 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4886 TARGET_WRITE_PC): Remove defines.
4887 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4888 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4889 i386_linux_write_pc): Remove prototypes.
4890 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4891 (get_longjmp_target): Remove prototype.
4892 * i386-linux-tdep.h: New file.
4893 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4894 * i386-linux-tdep.c: Include "i386-tdep.h" and
4895 "i386-linux-tdep.h".
4896 (i386_linux_register_name, i386_linux_register_byte,
4897 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4898 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4900 (i386_linux_init_abi): New function.
4901 (_initialize_i386_linux_tdep): New function.
4903 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4904 (i386_saved_pc_after_call): Remove prototype.
4905 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4906 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4907 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4908 (i386_register_name, i386_stab_reg_to_regnum,
4909 i386_dwarf_reg_to_regnum): Remove prototypes.
4910 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4911 SIZEOF_SSE_REGS): Remove defines.
4912 (REGISTER_BYTES): Remove define.
4913 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4914 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4915 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4916 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4917 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4918 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4919 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4920 (get_longjmp_target): Remove prototype.
4921 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4922 (sigtramp_saved_pc): Remove define.
4923 (i386v4_sigtramp_saved_pc): Remove prototype.
4924 * config/i386/tm-go32.h (FRAME_CHAIN,
4925 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4926 (i386go32_frame_saved_pc): Remove prototype.
4927 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4928 (get_longjmp_target): Remove prototype.
4929 * i386-tdep.h: Include "osabi.h".
4930 (enum i386_abi): Removed.
4931 (enum struct_return): New enum.
4932 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4933 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4934 sc_pc_offset members.
4935 (i386_gdbarch_register_os_abi): Remove prototype.
4936 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4937 I386_SSE_NUM_REGS): New defines.
4938 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4939 I386_SSE_SIZEOF_REGS): New defines.
4940 (i386_register_name, i386_register_byte, i386_register_raw_size):
4942 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4943 (i386bsd_sigtramp_saved_pc): New prototype.
4944 * i386-tdep.c: Don't include "elf-bfd.h".
4945 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4946 i386_frame_chain, i386_saved_pc_after_call): Make static.
4947 (i386_frame_saved_pc): Rewrite to call architecture dependent
4948 function to deal with signal handlers. Make static.
4949 (i386go32_frame_saved_pc): Removed.
4950 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4952 (i386_get_longjmp_target): New function.
4953 (default_struct_convention, pcc_struct_convention,
4954 reg_struct_convention, valid_conventions, struct_convention): New
4956 (i386_use_struct_convention): New function.
4957 (i386v4_sigtramp_saved_pc): Renamed to
4958 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4959 (i386_pc_in_sigtramp): New function.
4960 (i386_abi_names): Removed.
4961 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4962 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4964 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4965 i386_gdbarch_register_os_abi): Removed.
4966 (struct i386_abi_handler): Removed.
4967 (i386_abi_handler_list): Removed.
4968 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4970 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4971 i386_nw_init_abi): New functions.
4972 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4973 Use set_gdbarch_xxx() calls instead of relying on macros for a
4975 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4976 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4977 Register the various architecture variants defined in this file.
4979 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4981 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4982 (struct main_type): Remove arg_types member. Update comments for
4984 (TYPE_ARG_TYPES): Remove.
4985 (TYPE_FN_FIELD_ARGS): Update.
4986 (smash_to_method_type): Update prototype.
4988 * c-typeprint.c (cp_type_print_method_args): Take method type
4989 instead of argument list. Use new argument layout. Simplify.
4990 (c_type_print_args): Use new argument layout. Simplify.
4991 (c_type_print_base): Update call to cp_type_print_method_args.
4992 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4993 argument; use die->type instead. Update call to
4994 smash_to_method_type.
4995 (read_structure_scope): Update call to dwarf2_add_member_fn.
4996 * gdbtypes.c (allocate_stub_method): Update comment.
4997 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4998 Use new argument layout.
4999 (check_stub_method): Use new argument layout. Don't count
5000 void as an argument.
5001 (print_arg_types): Update comments. Use new argument layout.
5002 (recursive_dump_type): Don't print arg_types member.
5003 * hpread.c (hpread_read_struct_type): Use new argument layout.
5004 (fixup_class_method_type): Likewise.
5005 (hpread_type_lookup): Likewise.
5006 * stabsread.c (read_type): Update calls to read_args and
5007 smash_to_method_type.
5008 (read_args): Use new argument layout. Simplify.
5009 * valops.c (typecmp): Use new argument layout. Update parameters
5010 and comments. Simplify.
5011 (hand_function_call): Use new argument layout.
5012 (search_struct_method): Update call to typecmp.
5013 (find_overload_match): Use new argument layout.
5015 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5017 * NEWS: Mention multithreaded debug support for gdbserver.
5019 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5021 * MAINTAINERS: Mention NEWS.
5023 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5025 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5026 (struct mips_objfile_private, compare_pdr_entries): New.
5027 (non_heuristic_proc_desc): Read the ".pdr" section if it
5030 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5032 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5033 (arm_debug): New static variable.
5034 (_initialize_arm_tdep): Add ``set debug arm'' command.
5036 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5038 * Makefile.in (sim_arm_h): Define.
5039 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5040 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5041 (arm_register_sim_regno): New function, map an internal REGNUM
5042 onto a simulator register number.
5043 (arm_gdbarch_init): Set register_sim_regno.
5045 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5047 * MAINTAINERS: Add self.
5049 2002-06-11 Jim Blandy <jimb@redhat.com>
5051 * source.c (source_info): Mention whether the symtab has
5052 information about preprocessor macros.
5054 Call the command `info macro', not `show macro'.
5055 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5057 (_initialize_macrocmd): Register `info_macro_command' in
5058 `infolist', not `showlist'.
5060 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5062 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5063 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5064 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5065 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5066 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5068 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5069 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5070 (_initialize_mips_tdep): Remove dead code.
5071 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5072 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5073 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5074 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5075 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5076 MIPS_LAST_FP_ARG_REGNUM): Remove.
5078 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5080 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5081 (unwind_tmp_obstack_free, parse_frame_info)
5082 (update_context, cfi_read_fp, cfi_write_fp)
5083 (cfi_frame_chain, cfi_init_extra_frame_info)
5084 (cfi_virtual_frame_pointer): Use the above function.
5085 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5087 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5089 * v850-tdep.c (v850_type_is_scalar): New function.
5090 (v850_use_struct_convention): Match current gcc implementation
5091 as close as possible.
5092 (v850_push_arguments): Fix stack_offset handling. Don't write
5093 struct_addr into register. This is done by v850_store_struct_return.
5094 (v850_extract_return_value): Care for structs.
5095 (v850_store_return_value): Ditto.
5096 (v850_store_struct_return): Actually write address.
5098 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5100 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5101 without debug information too.
5103 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5105 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5106 Make multi-arch pure.
5107 * gdbarch.h, gdbarch.c: Re-generate.
5108 * arm-tdep.c (arm_print_float_info): Update.
5109 * arch-utils.h (default_print_float_info): Update.
5110 * arch-utils.c (default_print_float_info): Update.
5111 * infcmd.c (float_info): Update call.
5113 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5115 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5116 the front of the initialize list.
5118 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5120 * infrun.c (struct inferior_status): Replace fields
5121 selected_frame_address and selected_level with field
5123 (save_inferior_status): Update. Use get_frame_id.
5124 (struct restore_selected_frame_args): Delete.
5125 (restore_selected_frame): Update. Use frame_find_by_id.
5126 (restore_inferior_status): Update.
5128 * breakpoint.h (struct breakpoint): Change type of
5129 watchpoint_frame to frame_id.
5130 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5131 call to get_current_frame.
5132 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5134 (watchpoint_check): Use frame_find_by_id.
5136 * frame.h (record_selected_frame): Delete declaration.
5137 * stack.c (record_selected_frame): Delete function.
5139 * frame.h (struct frame_id): Define.
5140 (get_frame_id): Declare.
5141 (frame_find_by_id): Declare.
5142 * frame.c (frame_find_by_id): New function.
5143 (get_frame_id): New function.
5145 2002-06-10 Andrey Volkov <avolkov@transas.com>
5147 * ser-e7kpc.c: Fix duplicated define and call of
5148 _initialize_ser_e7000pc
5150 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5152 * signals/signals.c (target_signal_from_host): Fix #ifdef
5154 (do_target_signal_to_host): Likewise.
5156 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5158 * mips-tdep.c (mips_find_abi_section): New function.
5159 (mips_gdbarch_init): Call it.
5161 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5163 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5164 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5165 after Andrew's 2002-06-08 gdbarch change.
5167 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5169 * i386-linux-nat.c (suppy_gregset): Don't supply
5170 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5172 (fill_gregset): Don't fetch it under the same circumstances.
5174 2002-06-09 Andrew Cagney <cagney@redhat.com>
5176 * Makefile.in (callback_h): Define.
5177 (remote_sim_h): Update path to remote-sim.h.
5178 (remote-rdp.o): Add $(callback_h).
5179 (remote-sim.o): Use $(callback_h).
5180 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5181 * remote-rdp.c: Include "gdb/callback.h".
5183 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5185 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5186 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5188 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5190 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5191 * rdi-share/serpardr.c: Ditto.
5192 * rdi-share/unixcomm.c: Ditto.
5193 * rdi-share/serdrv.c: Ditto.
5194 * rdi-share/hostchan.h: Ditto.
5195 * rdi-share/hostchan.c: Ditto.
5196 * rdi-share/host.h: Ditto.
5197 * rdi-share/devsw.c: Ditto.
5199 * objfiles.h: Change type of obj_private to void pointer.
5200 * pa64solib.c: Update copyright. Don't include "assert.h", use
5201 strcmp instead of STREQ, use LONGEST, do not use PTR
5202 * somsolib.c: Ditto.
5204 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5205 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5206 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5208 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5210 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5211 (default_get_saved_register): Delete function.
5212 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5213 generic_unwind_get_saved_register.
5214 * gdbarch.h, gdbarch.c: Re-generate.
5216 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5218 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5219 generic_func_frame_chain_valid.
5220 * gdbarch.h, gdbarch.c: Re-generate.
5221 * blockframe.c (generic_func_frame_chain_valid): Only check
5222 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5223 passing FP to PC_IN_CALL_DUMMY.
5226 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5228 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5229 (register_gdbarch_data): Initialize init_p.
5230 (gdbarch_data): Initialize data pointer using the init function.
5231 (init_gdbarch_data): Delete function.
5232 (gdbarch_update_p): Update.
5233 (initialize_non_multiarch): Update.
5234 (struct gdbarch): Add field initialized_p.
5235 * gdbarch.h, gdbarch.c: Re-generate.
5237 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5239 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5240 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5241 better do the things actually here.
5242 * x86-64-tdep.c (x86_64_register_name2nr): New.
5243 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5244 (x86_64_gdbarch_init): Respect the above change.
5245 * x86-64-tdep.h (x86_64_register_name2nr)
5246 (x86_64_register_nr2name): Add prototypes.
5247 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5249 2002-06-06 Michael Snyder <msnyder@redhat.com>
5251 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5252 Delete extra braces and re-indent.
5253 (d10v_store_return_value): Char return values
5254 must be shifted over by one byte in R0.
5255 (d10v_extract_return_value): Delete extra braces, re-indent.
5257 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5259 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5260 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5261 (d10v_integer_to_address): Rewrite.
5262 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5263 the d10v specific functions which take care of converting to the
5266 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5268 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5269 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5271 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5273 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5275 * config/tm-linux.h: Ditto.
5276 * config/alpha/tm-alphalinux.h: Ditto.
5277 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5278 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5279 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5280 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5281 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5282 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5283 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5284 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5285 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5286 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5287 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5288 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5289 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5290 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5291 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5292 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5293 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5294 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5295 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5296 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5297 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5298 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5299 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5300 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5301 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5302 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5303 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5304 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5305 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5306 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5307 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5308 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5309 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5310 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5311 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5312 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5313 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5315 2002-05-04 Aidan Skinner <aidan@velvet.net>
5317 * ada-exp.tab.c: New file
5318 * ada-exp.y: New file
5319 * ada-lang.c: New file
5320 * ada-lang.h: New file
5321 * ada-lex.c: New file
5322 * ada-lex.l: New file
5323 * ada-tasks.c: New file
5324 * ada-typeprint.c: New file
5325 * ada-valprint.c: New file
5327 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5329 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5330 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5332 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5334 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5335 insetead of ppc-linux-tdep.o.
5336 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5337 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5339 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5341 2002-05-07 Christian Groessler <chris@groessler.org>
5342 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5343 bit register contents for little endian hosts.
5345 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5347 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5350 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5352 * gdbarch.h: Regenerate.
5354 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5356 * MAINTAINERS: Add everyone to write-after-approval list.
5358 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5360 * stack.c (frame_info): Use frame_register_unwind instead of
5361 saved_regs. Mention when the SP is on the stack or in a register.
5363 * frame.h (frame_register_unwind_ftype): Define. Document.
5364 (struct frame_info): Add field register_unwind and
5365 register_unwind_cache.
5366 (frame_register_unwind): Declare.
5367 (generic_unwind_get_saved_register): Declare.
5369 * frame.c (frame_register_unwind): New function.
5370 (generic_unwind_get_saved_register): New function.
5372 * blockframe.c (generic_call_dummy_register_unwind): New function.
5373 (frame_saved_regs_register_unwind): New function.
5374 (set_unwind_by_pc): New function.
5375 (create_new_frame): New function.
5376 (get_prev_frame): New function.
5378 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5380 * a29k-share/: Delete directory.
5381 * remote-vx29k.c: Delete file.
5383 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5385 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5386 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5388 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5390 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5391 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5394 (sparcnbsd-tdep.o): New dependency lists.
5395 * NEWS: Note new UltraSPARC NetBSD native configuration.
5396 * configure.host (sparc64-*-netbsd*): New host.
5397 * configure.tgt (sparc-*-netbsdelf*)
5398 (sparc-*-netbsd*): Set gdb_target to nbsd.
5399 (sparc64-*-netbsd*): New target.
5400 * sparc64nbsd-nat.c: New file.
5401 * sparcnbsd-nat.c: New file.
5402 * sparcnbsd-tdep.c: New file.
5403 * sparcnbsd-tdep.h: New file.
5404 * config/sparc/nbsd.mt: New file.
5405 * config/sparc/nbsd64.mh: New file.
5406 * config/sparc/nbsd64.mt: New file.
5407 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5408 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5410 * config/sparc/nbsdaout.mt: Remove.
5411 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5412 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5414 * config/sparc/nbsdelf.mt: Remove.
5415 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5416 sparc-nat.c compatiblity defines.
5417 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5418 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5419 * config/sparc/tm-nbsd64.h: New file.
5420 * config/sparc/tm-nbsdaout.h: Remove.
5421 * config/sparc/xm-nbsd.h: Remove.
5423 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5425 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5426 * sparc-tdep.c: Include osabi.h.
5427 (gdbarch_tdep): Add osabi member.
5428 (_initialize_sparc_tdep): Use gdbarch_register.
5429 (sparc_gdbarch_init): Use generic OS ABI framework.
5430 (sparc_dump_tdep): New function.
5432 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5434 * corefile.c (do_captured_read_memory_integer): Return non-zero
5436 (safe_read_memory_integer): Copy result of memory read when
5437 status is non-zero. Also, add comments.
5439 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5441 * Makefile.in (ppc_tdep_h): Define.
5444 (rs6000-tdep.o): Use $(ppc_tdep_h).
5447 (ppcnbsd-tdep.o): New dependency lists.
5448 * ppc-tdep.h: Use generic OS ABI framework.
5449 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5450 (ppc_linux_init_abi): New functions.
5451 (ppc_sysv_abi_broken_use_struct_convention)
5452 (ppc_sysv_abi_use_struct_convention)
5453 (ppc_sysv_abi_push_arguments): Move to...
5454 * ppc-sysv-tdep.c: ...here.
5455 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5456 * rs6000-tdep.c (process_note_abi_tag_sections)
5457 (get_elfosabi): Remove.
5458 (rs6000_gdbarch_init): Use generic OS ABI framework.
5459 (rs6000_dump_tdep): New function.
5460 (_initialize_rs6000_tdep): Use gdbarch_register.
5461 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5462 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5463 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5464 of ppc-linux-tdep.o.
5465 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5466 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5467 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5468 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5469 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5470 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5472 2002-05-29 Jim Blandy <jimb@redhat.com>
5474 * macroscope.c (default_macro_scope): Put `void' in empty argument
5477 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5479 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5480 * arch-utils.c: Include "sim-regno.h".
5481 * gdbarch.sh: Don't include "sim-regno.h".
5482 * gdbarch.h, gdbarch.c: Regenerate.
5483 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5485 * arch-utils.h (legacy_register_sim_regno): To here.
5486 * remote-sim.c (legacy_register_sim_regno): Move function from
5488 * arch-utils.c (legacy_register_sim_regno): To here.
5490 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5492 * sim-regno.h: New file.
5493 * Makefile.in (sim_regno_h): Define.
5494 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5495 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5496 (legacy_register_sim_regno): New function.
5497 (one2one_register_sim_regno): New function.
5498 (gdbsim_fetch_register): Rewrite.
5499 (gdbsim_store_register): Only store a register when
5500 REGISTER_SIM_REGNO is valid.
5501 * d10v-tdep.c: Include "sim-regno.h".
5502 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5503 (d10v_ts3_register_sim_regno): Ditto.
5504 * gdbarch.sh: Include "sim-regno.h".
5505 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5506 * gdbarch.h, gdbarch.c: Regenerate.
5507 * arch-utils.h (default_register_sim_regno): Delete declaration.
5508 * arch-utils.c (default_register_sim_regno): Delete function.
5510 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5512 * ppcnbsd-nat.c: Rewrite.
5513 * ppcnbsd-tdep.c: New file.
5514 * ppcnbsd-tdep.h: New file.
5515 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5516 solib.o, and solib-svr4.o.
5517 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5518 nbsd-tdep.o, and corelow.o.
5520 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5522 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5523 `tr' and `sed'. Mention that `broken' targets are not expected to
5526 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5528 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5529 Let PC point right after the prologue before looking up symbols.
5531 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5533 * i386-tdep.c (i386_register_virtual_type): Return
5534 builtin_type_vec128i for SSE registers.
5536 * gdbtypes.h (builtin_type_vec128i): Declare.
5538 * gdbtypes.c (build_builtin_type_vec128i): New function.
5539 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5540 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5541 (build_gdbtypes): Initialize new builtin vector types.
5542 (_initialize_gdbtypes): Register new vector types with gdbarch.
5544 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5546 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5547 since it has been multi-arch'd.
5548 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5549 Move Alpha and VAX multi-arch news entries to same section
5550 as other multi-arch news.
5552 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5554 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5555 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5556 static. Rename some register numbers to put them in ns32k-tdep
5558 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5559 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5561 (_initialize_ns32k_tdep): Use gdbarch_register.
5562 * ns32k-tdep.h: New file.
5563 * ns32knbsd-tdep.c: New file.
5564 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5565 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5566 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5567 REGISTER_BYTES, REGISTER_BYTE): Remove.
5568 * config/ns32k/tm-ns32k.h: New file.
5569 * config/ns32k/tm-umax.h: Remove.
5571 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5573 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5574 ns32k_store_struct_return, ns32k_extract_return_value,
5575 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5577 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5578 ns32k_saved_pc_after_call.
5579 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5580 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5581 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5582 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5583 ns32k_extract_struct_value_address.
5585 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5587 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5588 ns32k_fix_call_dummy): New.
5589 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5590 ns32k_call_dummy_words.
5591 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5592 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5593 CALL_DUMMY_NARGS): Remove.
5594 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5596 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5598 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5599 ns32k_frame_saved_pc, ns32k_frame_args_address,
5600 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5601 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5602 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5603 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5604 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5605 (BREAKPOINT): Remove..
5606 (FRAME_CHAIN): Define as ns32k_frame_chain.
5607 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5608 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5609 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5610 (FRAME_FIND_SAVED_REGS): Remove.
5611 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5612 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5613 (POP_FRAME): Define as ns32k_pop_frame.
5615 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5617 * ns32k-tdep.c (ns32k_register_byte_32082,
5618 ns32k_register_byte_32382, ns32k_register_raw_size,
5619 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5621 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5622 ns32k_register_byte_32382.
5623 * config/ns32k/tm-umax.h: Update copyright years.
5624 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5625 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5626 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5627 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5628 (ns32k_get_enter_addr): Fix prototype.
5630 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5632 * ns32k-tdep.c: Update copyright years.
5633 (ns32k_register_name_32082): New function.
5634 (ns32k_register_name_32382): Ditto.
5635 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5636 (REGISTER_NAME): Define as ns32k_register_name_32382.
5637 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5638 (REGISTER_NAME): Define as ns32k_register_name_32082.
5640 2002-05-24 Jim Blandy <jimb@redhat.com>
5642 * dwarf2read.c (free_line_header): Use xfree, not free.
5644 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5646 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5647 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5649 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5651 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5653 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5655 From Ross Alexander at NEC Europe:
5656 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5658 2002-05-23 Michael Snyder <msnyder@redhat.com>
5660 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5661 for input, rather than parse_and_eval_address.
5663 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5665 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5666 * Makefile.in (sim_d10v_h): Update definition.
5668 2002-05-24 Andrew Cagney <cagney@redhat.com>
5670 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5671 change `2002-05-22 Michael Snyder' below.
5672 (d10v_push_arguments): Ditto.
5673 (d10v_extract_return_value): Ditto.
5675 2002-05-23 Jim Blandy <jimb@redhat.com>
5677 * macrotab.c (check_for_redefinition): Don't complain if the new
5678 definition is the same as the previous one. Take more arguments
5679 to allow the comparison.
5680 (macro_define_object, macro_define_function): Pass more arguments
5681 to check_for_redefinition.
5683 2002-05-22 Michael Snyder <msnyder@redhat.com>
5685 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5686 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5687 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5688 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5689 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5690 Add a temp variable to save a call (and a memory read).
5691 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5692 if possible (so that PC_IN_CALL_DUMMY will work).
5694 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5696 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5698 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5700 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5702 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5703 (dwarf2_build_frame_info): Add offset to fde->initial_location
5704 so that frames of shared libraries are mapped correctly.
5705 (execute_stack_op): Change type of 'result' from ULONGEST to
5708 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5710 * config/alpha/tm-nbsd.h: Include solib.h.
5712 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5714 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5715 assumptions about the host's byte order.
5717 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5719 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5721 * alphanbsd-tdep.c: Include solib-svr4.h.
5722 * shnbsd-tdep.c: Ditto.
5724 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5726 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5727 nbsd-tdep.h to dependency list.
5728 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5729 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5730 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5731 nbsdaout.mh and nbsdelf.mh consistently.
5732 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5733 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5734 nbsdaout.mt and nbsdelf.mh consistently.
5735 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5736 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5737 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5738 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5739 a.out shared library stuff from here...
5740 * config/nm-nbsdaout.h: ...to here.
5741 * config/tm-nbsd.h: Remove.
5742 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5743 * config/arm/nbsd.mh: Remove.
5744 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5746 * config/arm/nbsdaout.mh: New file.
5747 * config/arm/nbsdelf.mh: New file.
5748 * config/arm/nm-nbsdaout.h: New file.
5749 * config/i386/nbsd.mh: Remove.
5750 * config/i386/nbsd.mt: Remove.
5751 * config/i386/nbsdaout.mh: New file.
5752 * config/i386/nbsdaout.mt: New file.
5753 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5754 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5755 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5756 i386_register_u_addr): Remove.
5757 * config/i386/nm-nbsdaout.h: New file.
5758 * config/i386/nm-nbsdelf.h: Remove.
5759 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5760 (USE_STRUCT_CONVENTION): Remove.
5761 * config/i386/tm-nbsdaout.h: New file.
5762 * config/i386/tm-nbsdelf.h: Remove.
5763 * config/m68k/nbsd.mh: Remove.
5764 * config/m68k/nbsd.mt: Remove.
5765 * config/m68k/nbsdaout.mh: New file.
5766 * config/m68k/nbsdaout.mt: New file.
5767 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5768 * config/m68k/nm-nbsdaout.h: New file.
5769 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5770 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5771 * config/ns32k/nbsd.mh: Remove.
5772 * config/ns32k/nbsd.mt: Remove.
5773 * config/ns32k/nbsdaout.mh: New file.
5774 * config/ns32k/nbsdaout.mt: New file.
5775 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5776 * config/ns32k/nm-nbsdaout.h: New file.
5777 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5778 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5779 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5780 (SVR4_SHARED_LIBS): Remove.
5781 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5782 * config/sparc/nbsd.mh: Remove.
5783 * config/sparc/nbsd.mt: Remove.
5784 * config/sparc/nbsdaout.mh: New file.
5785 * config/sparc/nbsdaout.mt: New file.
5786 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5787 * config/sparc/nbsdelf.mt: New file.
5788 * config/sparc/nm-nbsdaout.h: New file.
5789 * config/sparc/nm-nbsdelf.h: Remove.
5790 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5791 * config/sparc/tm-nbsdaout.h: New file.
5793 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5795 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5797 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5799 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5801 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5803 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5805 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5807 * NEWS: Note new MIPS NetBSD native configuration.
5808 * configure.host (mips*-*-netbsd*): New host.
5809 * configure.tgt (mips*-*-netbsd*): New target.
5810 * mipsnbsd-nat.c: New file.
5811 * mipsnbsd-tdep.c: New file.
5812 * mipsnbsd-tdep.h: New file.
5813 * config/mips/nbsd.mh: New file.
5814 * config/mips/nbsd.mt: New file.
5815 * config/mips/nm-nbsd.h: New file.
5816 * config/mips/tm-nbsd.h: New file.
5818 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5820 * Makefile.in (SFILES): Add osabi.c.
5821 (COMMON_OBS): Add osabi.o.
5822 (osabi.o): New dependency list.
5823 * osabi.c: New file.
5824 * osabi.h: New file.
5825 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5827 * Makefile.in (alpha_tdep_h): Define and use instead of
5829 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5830 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5832 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5833 * alpha-tdep.h: Include osabi.h.
5834 (alpha_abi): Remove.
5835 (gdbarch_tdep): Use generic OS ABI framework.
5836 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5837 gdbarch_register_osabi.
5838 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5839 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5840 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5842 * Makefile.in (sh_tdep_h): Add osabi.h.
5843 * sh-tdep.h (sh_osabi): Remove.
5844 (gdbarch_tdep): Use generic OS ABI framework.
5845 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5846 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5847 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5848 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5850 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5851 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5852 gdbarch_register_osabi.
5853 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5854 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5855 (get_elfosabi): Rename to...
5856 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5857 ABI framework support routines.
5858 (arm_gdbarch_init): Use generic OS ABI framework.
5859 (arm_dump_tdep): Likewise.
5860 (_initialize_arm_tdep): Likewise.
5861 * arm-tdep.h: Include osabi.h.
5863 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5865 (arm_gdbarch_register_os_abi): Remove prototype.
5866 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5867 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5869 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5870 * mips-tdep.c: Include osabi.h.
5871 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5874 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5876 * h8300-tdep.c: Fix formatting.
5878 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5880 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5881 printing vector registers.
5883 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5885 From Fernando Nasser:
5886 * remote.c (remote_async_open_1): Re-throw the exception when the
5888 (remote_cisco_open): Ditto.
5889 (remote_open_1): Ditto.
5891 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5893 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5894 (remote_start_remote): Add uiout parameter. Pass through to
5895 remote_start_remote_dummy.
5896 (remote_open_1): Use catch_exception instead of catch_errors.
5897 (remote_async_open_1): Ditto.
5898 (remote_cisco_open): Ditto.
5900 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5902 * remote.c (remote_start_remote): Replace PTR with void pointer.
5903 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5906 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5908 * gdb_indent.sh: Allow the script to be run in the sim directory.
5910 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5912 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5913 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5915 * corelow.c (core_open): Only call set_gdbarch_from_file if
5918 2002-05-17 Andrey Volkov <avolkov@transas.com>
5920 * h8300-tdep.c: Add support of EXR register
5921 * config/h8300/tm-h8300.h: Ditto.
5923 2002-05-17 Andrey Volkov <avolkov@transas.com>
5925 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5927 2002-05-17 Andrey Volkov <avolkov@transas.com>
5929 * h8300-tdep.c: Change literal regnums to REGNO.
5931 2002-05-17 Jim Blandy <jimb@redhat.com>
5933 * NEWS: Note addition of macro support.
5935 Expand preprocessor macros in C expressions.
5936 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5937 (scan_macro_expansion, scanning_macro_expansion,
5938 finished_macro_expansion): New function declarations.
5939 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5940 variable declarations.
5941 * parser-defs.h (expression_context_pc): New declaration.
5942 * parse.c (expression_context_pc): New variable.
5943 (parse_exp_1): Set expression_context_pc, as well as
5944 expression_context_block.
5945 * c-exp.y (yylex): If we're not already reading the result of a
5946 macro expansion, try to macro-expand the next token. When we're
5947 done scanning a macro expansion, switch back to the mainline text.
5948 Commas and `if's in a macro's expansion don't terminate the input.
5949 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5950 (macro_original_text, macro_expanded_text,
5951 expression_macro_lookup_func, expression_macro_lookup_baton): New
5953 (scan_macro_expansion, scanning_macro_expansion,
5954 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5955 c_preprocess_and_parse): New functions.
5956 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5957 c_preprocess_and_parse, instead of c_parse.
5958 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5959 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5961 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5963 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5964 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5965 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5967 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5969 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5971 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5973 * Makefile.in (sh_tdep_h): Define and use.
5974 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5975 register enum): Move to...
5976 * * sh-tdep.h: ...here.
5977 * sh-tdep.c: Include sh-tdep.h.
5978 * sh3-rom.c: Likewise.
5979 * shnbsd-tdep.c: Likewise.
5981 2002-05-16 Michael Snyder <msnyder@redhat.com>
5983 * arm-tdep.c: Spelling fix in comment.
5985 2002-05-16 Jim Blandy <jimb@redhat.com>
5987 Add commands for manually expanding macros and showing their
5989 * macrocmd.c, macroscope.c, macroscope.h: New files.
5990 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5991 (macroscope_h): New variable.
5992 (HFILES_NO_SRCDIR): Add macroscope.h.
5993 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5994 (macroscope.o, macrocmd.o): New rules.
5996 Teach the Dwarf 2 reader to read macro information.
5997 * dwarf2read.c: #include "macrotab.h".
5998 (dwarf_macinfo_buffer): New variable.
5999 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6001 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6002 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6003 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6004 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6005 dwarf2_macro_spaces_in_definition): New complaints.
6006 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6007 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6008 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6009 the partial symbol table.
6010 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6011 from what's recorded in the partial symbol table.
6012 (read_file_scope): If the compilation unit has a
6013 `DW_AT_macro_info' attribute, read its macro information.
6014 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6016 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6019 * ser-tcp.c: Don't include <netinet/udp.h>.
6021 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6023 * MAINTAINERS: Update my email address.
6025 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6027 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6028 include file of the same name.
6030 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6032 * configure.tgt: Mark v850 as multi-arched.
6033 * config/v850/tm-v850.h: Remove file.
6034 * config/v850/v850.mt: Eliminate TM_FILE.
6036 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6038 * v850-tdep.c: Full multi-arch.
6039 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6040 Define GDB_MULTI_ARCH to 2.
6042 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6044 * p-exp.y (current_type): New static variable.
6045 Carries the type of the expression at the position that is parsed.
6046 (push_current_type, pop_current_type): Two new functions. Used
6047 to store/restore current_type in expression on specific tokens.
6048 (search_field): New static variable. Set to one after parsing a point
6049 as at that point only a FIELDNAME token should be searched.
6050 (FIELDNAME): New token. After a point only a token belonging to
6051 current_type type definition is allowed.
6052 (all over token rules): reset and change current_type according
6054 (exp '[' rule): insert implicit array index field if
6055 exp is a pascal string type.
6057 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6059 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6060 frame info. Use frame_info's saved_regs instead of matching member
6061 in extra_frame_info throughout.
6062 (v850_frame_init_saved_regs): New function.
6063 (v850_init_extra_frame_info): Move most functionality into
6064 v850_frame_init_saved_regs().
6065 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6066 (v850_frame_find_saved_regs): Remove declaration.
6067 (FRAME_FIND_SAVED_REGS): Remove definition.
6068 (v850_frame_init_saved_regs): Add declaration.
6069 (FRAME_INIT_SAVED_REGS): Add definition.
6071 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6073 * v850-tdep.c: Begin multi-arch'ing v850.
6074 (v850_target_architecture_hook): Remove function.
6075 (v850_gdbarch_init): New function. Add code previously in
6076 v850_target_architecture_hook().
6077 (_initialize_v850_tdep): Don't set target_architecture_hook.
6078 Call register_gdbarch_init() instead.
6080 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6082 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6083 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6084 (fixup_class_method_type): Likewise.
6086 2002-05-15 Jim Blandy <jimb@redhat.com>
6088 Add macro structures to GDB's symbol tables. Nobody puts anything
6090 * symtab.h (struct symtab): New member: `macro_table'.
6091 * buildsym.h (pending_macros): New global variable.
6092 * buildsym.c: #include "macrotab.h".
6093 (buildsym_init): Initialize `pending_macros'.
6094 (end_symtab): If we found macro information while reading a CU's
6095 debugging info, do build a symtab structure for it. Make the
6096 symtab point to the macro information, and clear the
6097 `pending_macros' pointer which held it while we were reading the
6099 (really_free_pendings): Free any pending macro table.
6100 * objfiles.h (struct objfile): New member: `macro_cache'.
6101 * objfiles.c (allocate_objfile): Set allocate and free functions
6102 for the macro cache's objstack.
6103 (free_objfile): Empty the macro cache's obstack.
6104 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6105 set new allocate and free functions for it.
6106 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6107 free functions for the macro cache's objstack. (Why is this
6108 function building its own objfile?)
6109 * symmisc.c (print_objfile_statistics): Print statistics on the
6111 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6113 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6115 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6116 (REGISTER_U_ADDR): Delete definition.
6117 (arm_register_u_addr): Delete declaration.
6119 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6121 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6122 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6124 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6126 * regcache.c (register_valid): Revise comments refering to "Not
6127 available" and "unavailable".
6128 * frame.c (frame_register_read): Ditto.
6129 * findvar.c (value_of_register): Ditto.
6131 2002-05-15 Andrew Cagney <cagney@redhat.com>
6133 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6134 (remote-sim.o): Update dependencies.
6135 (d10v-tdep.o): Specify dependencies.
6136 (sim_d10v_h): Define.
6138 2002-05-14 Jim Blandy <jimb@redhat.com>
6140 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6141 * macrotab.c (macro_lookup_inclusion, find_definition,
6142 new_macro_table): Same.
6144 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6145 not `! strcmp ()'. This is a dubious improvement.
6146 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6148 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6149 although it's not necessary, to avoid a warning.
6151 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6153 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6154 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6155 TYPE_INSTANCE_FLAGS.
6156 (struct main_type): New.
6157 (struct type): Move most members to struct main_type. Change
6158 cv_type and as_type to new type_chain member. Add instance_flags.
6159 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6160 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6161 (finish_cv_type): Remove prototype.
6162 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6164 (alloc_type_instance): New function.
6165 (smash_type): New function.
6166 (make_pointer_type, make_reference_type, make_function_type)
6167 (smash_to_member_type, smash_to_method_type): Call smash_type.
6168 (make_qualified_type): New function.
6169 (make_type_with_address_space): Call make_qualified_type.
6170 (make_cv_type): Likewise.
6171 (finish_cv_type): Remove unnecessary function.
6172 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6173 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6174 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6175 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6176 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6177 * hpread.c (hpread_read_struct_type): Likewise.
6178 * stabsread.c (read_struct_type): Likewise.
6180 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6182 * configure.tgt: Add a catch all sh* target, for cases like
6183 sh[2,3,4]-elf and sh-hms.
6185 2002-05-14 Keith Seitz <keiths@redhat.com>
6187 * event-loop.c (create_file_handler): Don't do anything but
6188 update data when we are given a fd which we are already
6191 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6193 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6194 (update_context): Use __func__ in warnings.
6196 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6198 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6199 and tcp_close to net_open and net_close.
6200 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6201 using UDP if requested. Don't try to disable Nagle on UDP
6203 * remote.c (remote_serial_open): New function. Warn about UDP.
6204 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6206 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6208 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6210 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6212 * configure.tgt: Remove sh-hms target.
6213 * MAINTAINERS: Don't list sh-hms as a separate target.
6215 2002-05-13 Jim Blandy <jimb@redhat.com>
6217 Add first preprocessor macro-expansion files.
6218 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6219 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6220 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6221 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6222 (COMMON_OBS): Add macrotab.o, macroexp.o.
6223 (macroexp.o, macrotab.o): New rules.
6225 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6227 * config/m88k/tm-m88k.h: Update copyright.
6228 (m88k_target_write_pc): Declare
6229 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6230 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6231 (SHIFT_INST_REGS): Update definition.
6232 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6233 using old definition of TARGET_WRITE_PC.
6234 * regcache.c (generic_target_write_pc): Delete code handling
6236 * gdbarch.sh (NNPC_REGNUM): Delete.
6237 * gdbarch.h, gdbarch.c: Regenerate.
6239 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6241 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6244 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6246 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6247 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6248 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6250 * c-typeprint.c (cp_type_print_method_args): Likewise.
6251 (c_type_print_args): Likewise.
6252 * d10v-tdep.c (d10v_push_arguments): Likewise.
6253 (d10v_extract_return_value): Likewise.
6254 * expprint.c (print_subexp): Likewise.
6255 * gdbtypes.c (lookup_primitive_typename): Likewise.
6256 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6257 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6258 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6259 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6260 (TYPE_VECTOR): Likewise.
6261 * hpread.c (hpread_read_struct_type)
6262 (fix_static_member_physnames, fixup_class_method_type)
6263 (hpread_type_lookup): Likewise.
6264 * mdebugread.c (parse_symbol, parse_type): Likewise.
6265 * p-lang.c (is_pascal_string_type): Likewise.
6266 * valops.c (hand_function_call): Likewise.
6267 * x86-64-tdep.c (classify_argument): Likewise.
6269 * hpread.c (hpread_read_function_type)
6270 (hpread_read_doc_function_type): Call replace_type.
6271 * dstread.c (create_new_type): Delete.
6272 (decode_dst_structure, process_dst_function): Call alloc_type.
6273 Use type access macros.
6275 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6277 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6278 the're not supported by the current architecture.
6279 (i387_fill_fxsave): Likewise.
6281 2002-05-12 Fred Fish <fnf@redhat.com>
6283 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6284 sect_index_xxx members to index the first slot in section_offsets
6285 if all of the section_offsets are zero.
6287 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6289 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6290 checked in with last change.
6292 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6294 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6295 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6298 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6300 * Makefile.in: Update dependencies.
6302 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6304 * language.c (local_hex_string_custom): Simplify. Do not depend
6305 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6307 * memattr.c (mem_info_command): Replace calls to
6308 longest_local_hex_string and longest_local_hex_string_custom.
6309 * buildsym.c (make_blockvector): Ditto.
6310 * solib.c (info_sharedlibrary_command): Ditto.
6311 * tracepoint.c (tracepoints_info): Ditto.
6312 * symtab.c (print_msymbol_info): Ditto.
6314 * language.c (local_hex_string): Delete.
6315 (local_hex_string_custom): Delete.
6316 (longest_local_hex_string): Rename to local_hex_string.
6317 (longest_local_hex_string_custom): Rename to
6318 local_hex_string_custom.
6319 * language.h (local_hex_string): Change parameter type to LONGEST.
6320 (local_hex_string_custom): Ditto.
6321 (longest_local_hex_string): Delete declaration.
6322 (longest_local_hex_string_custom): Ditto.
6324 * solib.c: Update copyright.
6325 * memattr.c: Update copyright.
6327 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6329 * arch-utils.h (legacy_register_to_value): Declare.
6330 (legacy_value_to_register): Declare.
6331 (legacy_convert_register_p): Declare.
6332 * arch-utils.c (legacy_register_to_value): New function.
6333 (legacy_value_to_register): New function.
6334 (legacy_convert_register_p): New function.
6336 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6337 (VALUE_TO_REGISTER): Define.
6338 (CONVERT_REGISTER_P): Define.
6339 * gdbarch.h, gdbarch.c: Regenerate.
6341 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6343 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6346 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6347 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6349 * Makefile.in: Update dependencies for valops.c.
6350 * valops.c: Include "gdb_assert.h".
6351 (typecmp): Skip THIS parameter to methods.
6352 (find_method_list): Remove static_memfuncp argument,
6353 update callers. Check for stub methods.
6354 (find_value_oload_method_list): Don't set *static_memfuncp.
6355 (find_overload_match): Don't check for stub methods. Assert
6356 that methods are not stubbed. Handle static methods.
6357 (value_find_oload_method_list): Remove static_memfuncp argument.
6358 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6359 to the argument list for static stub methods.
6360 * value.h (value_find_oload_method_list): Update prototype.
6362 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6364 * arch-utils.h (generic_register_size): Declare.
6365 (generic_register_raw_size, generic_register_virtual_size): Delete
6367 * arch-utils.c (generic_register_raw_size): Delete.
6368 (generic_register_size): New function.
6369 (generic_register_virtual_size): Delete.
6371 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6372 default generic_register_size.
6373 * gdbarch.h, gdbarch.c: Re-generate.
6375 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6376 register_virtual_size.
6377 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6378 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6380 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6382 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6383 * gdbarch.h, gdbarch.c: Regenerate.
6384 * gnu-v3-abi.c: Update copyright.
6385 (vtable_address_point_offset): Update.
6386 (gnuv3_rtti_type): Update.
6387 (gnuv3_baseclass_offset): Update.
6388 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6389 (init_fetch_link_map_offsets): Update.
6390 * remote.c (get_remote_state): Update.
6392 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6394 * TODO: Remove value_headof/value_from_vtable_info comment.
6395 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6396 * values.c (value_headof, value_from_vtable_info): Delete.
6397 * value.h (value_from_vtable_info): Delete prototype.
6399 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6401 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6402 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6404 (gdb_assert_h): Define.
6405 (gdb_wait_h): Define.
6406 (gdb_regex_h): Define.
6408 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6410 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6411 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6413 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6415 * nbsd-tdep.c: Fix comment.
6417 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6419 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6420 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6421 (nbsd-tdep.o): New dependency list.
6422 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6424 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6425 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6426 * nbsd-tdep.c: New file.
6427 * nbsd-tdep.h: New file.
6428 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6430 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6431 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6432 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6433 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6435 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6437 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6438 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6439 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6440 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6441 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6442 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6444 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6446 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6447 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6448 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6449 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6450 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6451 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6452 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6454 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6456 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6457 fetch_elfcore_registers to...
6458 * i386nbsd-tdep.c: ...here.
6459 (i386nbsd_use_struct_convention): Rename to...
6460 (i386nbsd_aout_use_struct_convention): ...this.
6461 (i386nbsd_supply_reg): New function.
6462 (i386nbsd_fill_reg): New function.
6463 (fetch_core_registers): Use i386nbsd_supply_reg.
6464 (fetch_elfcore_registers): Likewise.
6465 (_initialize_i386nbsd_tdep): New function.
6466 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6467 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6468 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6469 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6470 (i386nbsd_aout_use_struct_convention): ...this.
6472 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6474 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6475 (store_inferior_registers): Use shnbsd_fill_reg.
6476 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6477 sh_nbsd_supply_register): Collapse into...
6478 (shnbsd_supply_reg): ...this.
6479 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6480 (shnbsd_fill_reg): ...this.
6481 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6482 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6483 (fetch_core_registers): Use shnbsd_supply_reg.
6484 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6485 (sh_nbsd_core_fns): Rename to...
6486 (shnbsd_core_fns): ...this.
6487 (sh_nbsd_elfcore_fns): Rename to...
6488 (shnbsd_elfcore_fns): ...this.
6489 (sh_nbsd_init_abi): Rename to...
6490 (shnbsd_init_abi): ...this.
6491 (_initialize_sh_nbsd_tdep): Rename to...
6492 (_initialize_shnbsd_tdep): ...this.
6493 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6494 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6495 sh_nbsd_fill_register): Remove prototypes.
6496 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6498 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6500 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6501 (i387-nat.o): Delete dependency list.
6502 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6503 (x86-64-linux-nat.o): Likewise.
6504 * i387-nat.c: Delete file, moving contents to...
6505 * i387-tdep.c: ...here.
6506 * i387-nat.h: Rename...
6507 * i387-tdep.h: ...to this.
6508 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6509 * i386-linux-nat.c: Likewise.
6510 * i386bsd-nat.c: Likewise.
6511 * i386gnu-nat.c: Likewise.
6512 * i386nbsd-nat.c: Likewise.
6513 * i386v4-nat.c: Likewise.
6514 * x86-64-linux-nat.c: Likewise.
6515 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6516 * config/i386/go32.mh (NATDEPFILES): Likewise.
6517 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6518 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6519 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6520 * config/i386/linux.mh (NATDEPFILES): Likewise.
6521 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6522 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6523 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6524 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6526 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6528 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6529 (alphanbsd-nat.o): Remove dependency list.
6530 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6531 * alphanbsd-nat.c: Delete. Contents moved to...
6532 * alphanbsd-tdep.c: ...here.
6533 (_initialize_alphanbsd_tdep): Register core functions.
6534 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6536 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6538 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6539 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6540 (alphanbsd-nat.o): Likewise.
6541 (alphabsd-tdep.o): New dependency list.
6542 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6543 (fill_gregset): Use alphabsd_fill_reg.
6544 (supply_fpregset): Use alphabsd_supply_fpreg.
6545 (fill_fpregset): Use alphabsd_fill_fpreg.
6546 (fetch_inferior_registers): Use struct reg and struct fpreg
6547 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6548 and alphabsd_supply_fpreg.
6549 (store_inferior_registers): Use struct reg and struct fpreg
6550 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6551 and alphabsd_fill_fpreg.
6552 * alphabsd-tdep.c: New file.
6553 * alphabsd-tdep.h: New file.
6554 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6555 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6556 alphabsd_supply_fpreg.
6557 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6558 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6560 2002-05-11 Eric Christopher <echristo@redhat.com>
6562 * mips-tdep.c (mips_double_register_type): Fix thinko.
6563 (mips_single_register_type): Ditto.
6564 * MAINTAINERS: Add self.
6566 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6568 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6569 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6570 right thing on architectures with different endianness and/or
6573 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6575 From Christian Limpach <chris@Pin.LU>
6576 * configure.in: Change sed expression which comments out
6577 NATDEPFILES to also comment out continuation lines.
6578 * configure: Regenerate.
6580 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6582 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6585 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6587 * sh-tdep.c: Include correct file.
6589 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6591 New support for sh64-elf (sh5) target.
6593 * configure.tgt: For sh64-elf target, default to sh-elf.
6595 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6596 (struct gdbarch_tdep): Add new fields for new registers and ABI
6599 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6600 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6601 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6602 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6603 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6604 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6605 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6606 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6607 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6608 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6609 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6610 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6611 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6612 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6613 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6614 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6615 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6616 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6617 sign_extend, sh64_nofp_frame_init_saved_regs,
6618 sh64_init_extra_frame_info, sh64_get_saved_register,
6619 sh64_extract_struct_value_address, sh64_pop_frame,
6620 sh64_push_arguments, sh64_extract_return_value,
6621 sh64_store_return_value, sh64_show_media_regs,
6622 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6623 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6624 sh_sh64_register_virtual_type,
6625 sh_sh64_register_convert_to_virtual,
6626 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6627 sh64_register_read, sh64_pseudo_register_write,
6628 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6629 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6630 sh64_do_pseudo_register, sh_compact_do_registers_info,
6631 sh64_do_registers_info, sh_gdbarch_init): New functions.
6633 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6635 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6637 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6639 * linespec.c (decode_line_1): Check for a double quote after
6640 a filename correctly.
6642 2002-05-10 Jim Blandy <jimb@redhat.com>
6644 Properly track the size of the current objfile's .debug_line section.
6645 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6646 (DWARF_LINE_SIZE): New macro.
6647 (dwarf2_build_psymtabs_hard): Record the line section's size in
6648 the partial symbol table.
6649 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6652 2002-05-10 Petr Sorfa <petrs@caldera.com>
6654 * ia64-tdep.c: Handle breakpoints on L instruction type
6655 in MLX instruction bundle by moving the breakpoint to
6656 the third slot (X instruction type) as L holds only data.
6658 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6660 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6661 (process_one_symbol): Complain about discarding local symbols
6662 due to a misplaced N_LBRAC entry.
6664 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6666 From Daniel Berlin <dan@cgsoftware.com>
6667 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6668 decrease the depth we are at, in the case of templates.
6670 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6672 * mips-tdep.c (mips_float_register_type): New function.
6673 (mips_double_register_type): New function.
6674 (mips_print_register): Use them.
6675 (do_fp_register_row): Likewise.
6677 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6679 * signals/signals.c (signals): Remove conditional compilation around
6680 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6681 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6683 2002-05-09 Michael Snyder <msnyder@redhat.com>
6685 * remote-rdp.c (remote_rdp_can_run): Remove.
6687 2002-05-09 Tom Tromey <tromey@redhat.com>
6689 * jv-valprint.c (java_val_print): Handle `char' as a special case
6692 2002-05-09 Michael Snyder <msnyder@redhat.com>
6694 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6695 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6696 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6697 str r(0123),[sp,#nn].
6698 (arm_skip_prologue): Ditto. Also make disassembly
6699 order-independent by placing it in a loop.
6701 2002-05-06 Michael Snyder <msnyder@redhat.com>
6703 * stabsread.c (read_type): Add recognition for new attribute:
6704 "@V;" means that an array type is actually a vector.
6705 This is analogous to the vector flag that's been added to dwarf2.
6707 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6709 * i386-tdep.h (i386_abi): New enum.
6710 (struct gdbarch_tdep): Replace os_ident member with abi.
6711 (i386_gdbarch_register_os_abi): New prototype.
6712 * i386-tdep.c (i386_abi_names): New array.
6713 (process_note_abi_tag_sections): Removed.
6714 (process_note_sections): New function.
6715 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6716 (struct i386_abi_handler): New struct.
6717 (i386_abi_handler_list): New variable.
6718 (i386_gdbarch_register_os_abi): New function.
6719 (i386_gdbarch_init): Adapt for the changes given above.
6721 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6723 * gregset.h: Say "GNU/Linux".
6725 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6727 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6728 (build_gdbtypes): Build builtin_type_v2_float.
6729 (_initialize_gdbtypes): Register new builtin type.
6731 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6733 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6734 (clear_gdbarch_swap): New function.
6735 (initialize_non_multiarch): Call.
6736 (gdbarch_update_p): Before calling init(), swap out and clear the
6737 existing architecture.
6738 * gdbarch.c: Regenerate.
6740 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6742 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6745 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6747 * sh-nbsd-nat.c: Rename to...
6748 * shnbsd-nat.c: ...this.
6749 * sh-nbsd-tdep.c: Rename to...
6750 * shnbsd-tdep.c: ...this.
6751 * sh-nbsd-tdep.h: Rename to...
6752 * shnbsd-tdep.h: ...this.
6753 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6754 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6756 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6758 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6759 concatenation for command help messages.
6761 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6763 * NEWS: Note new sh*-*-netbsdelf* configuration.
6764 * configure.host: Set gdb_host_cpu to sh for all sh*.
6765 (sh*-*-netbsdelf*): New host.
6766 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6767 (sh*-*-netbsdelf*): New target.
6768 * sh-nbsd-nat.c: New file.
6769 * sh-nbsd-tdep.c: New file.
6770 * sh-nbsd-tdep.h: New file.
6771 * config/sh/nbsd.mh: New file.
6772 * config/sh/nbsd.mt: New file.
6773 * config/sh/nm-nbsd.h: New file.
6774 * config/sh/tm-nbsd.h: New file.
6776 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6778 * sh-tdep.c (sh_osabi_names): Declare.
6779 (process_note_abi_tag_sections): New function.
6780 (get_elfosabi): Ditto.
6781 (sh_gdbarch_register_os_abi): Ditto.
6782 (sh_dump_tdep): Ditto.
6783 _initialize_sh_tdep): Use gdbarch_register to register
6784 sh_gdbarch_init and sh_dump_tdep.
6785 * config/sh/tm-sh.h (sh_osabi): Declare.
6786 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6788 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6790 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6791 (thumb_scan_prologue): Ditto.
6792 (arm_find_callers_reg): Ditto.
6793 (arm_frame_chain): Ditto.
6794 (arm_init_extra_frame_info): Ditto.
6795 (arm_frame_saved_pc): Ditto.
6796 (arm_pop_frame): Ditto.
6797 (arm_push_return_address): New function.
6798 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6799 call_dummy_location, call_dummy_breakpoint_offset_p,
6800 call_dummy_breakpoint_offset, call_dummy_p,
6801 call_dummy_stack_adjust_p, call_dummy_words,
6802 sizeof_call_dummy_words, call_dummy_start_offset,
6803 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6804 call_dummy_address, push_return_address and push_dummy_frame for
6805 generic dummy frames.
6807 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6809 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6810 size computation for alloca.
6811 (sh_fp_frame_init_saved_regs): Likewise.
6813 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6815 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6816 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6817 * arm-tdep.c (arm_store_return_value): Use them.
6818 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6819 * remote-rdp.c (remote_rdp_fetch_register): Use
6820 ARM_MAX_REGISTER_RAW_SIZE.
6821 (remote_rdp_store_register): Likewise.
6823 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6825 * dwarf2cfi.c: Code cleanup, removed unused variables,
6826 added default labels to switch {} statements.
6827 * x86-64-tdep.c: Ditto.
6828 * x86-64-linux-nat.c: Ditto.
6830 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6832 * solib.h: Protect against multiple inclusion.
6834 2002-05-06 Jim Blandy <jimb@redhat.com>
6836 Add first preprocessor macro-expansion files.
6837 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6838 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6839 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6840 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6841 (COMMON_OBS): Add macrotab.o, macroexp.o.
6842 (macroexp.o, macrotab.o): New rules.
6844 Separate the job of reading the line number info statement program
6845 header (...expialidocious) out into its own function.
6846 * dwarf2read.c (struct line_head, struct filenames, struct
6847 directories): Replace with...
6848 (struct line_header): New structure, containing the full
6849 contents of the statement program header, including the
6850 include directory and file name tables.
6851 (read_file_scope): If we have line number info, instead of just
6852 calling dwarf_decode_lines to do all the work, call
6853 dwarf_decode_line_header first to get a `struct line_header'
6854 containing the data in the statement program header, and then
6855 pass that to dwarf_decode_lines, which will pick up where that
6856 left off. Be sure to clean up the `struct line_header' object.
6857 (dwarf_decode_line_header, free_line_header, add_include_dir,
6858 add_file_name): New functions.
6859 (dwarf_decode_lines): Move all the code to read the statement
6860 program header into dwarf_decode_line_header. Take the line
6861 header it built as the first argument, instead of the offset to
6862 the compilation unit's line number info. Use the new `struct
6863 line_header' type instead of the old structures. No need to do
6864 cleanups here now, since we don't allocate anything.
6865 (dwarf2_statement_list_fits_in_line_number_section,
6866 dwarf2_line_header_too_long): New complaints.
6868 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6870 * gdbtypes.c (init_vector_type): New function.
6871 (build_builtin_type_vec128): Simplify the representation of SIMD
6873 (build_gdbtypes): Initialize new builtin vector types.
6874 (_initialize_gdbtypes): Register new vector types with gdbarch.
6875 (builtin_type_v4_float, builtin_type_v4_int32,
6876 builtin_type_v8_int16, builtin_type_v16_int8,
6877 builtin_type_v2_int32, builtin_type_v4_int16,
6878 builtin_type_v8_int8): New (renamed) SIMD types.
6880 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6882 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6883 (i387_fill_fxsave): Likewise.
6885 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6887 * alpha-tdep.c (alpha_extract_return_value): Don't use
6888 non-constant array size in prototype.
6890 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6892 From Brian Taylor <briant at model dot com>:
6893 * ui-out.c (ui_out_field_core_addr): Use the function
6894 longest_local_hex_string_custom'to format addresses > 32 bits
6897 * ui-out.c (ui_out_field_core_addr): Update comment.
6899 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6901 * stack.c (select_and_print_frame): Make static. Delete the
6903 (func_command): Update call.
6904 (select_frame_command): Delete code computing the frame level.
6905 * frame.h (select_and_print_frame): Delete declaration.
6907 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6909 * sparc-tdep.c (sparc_get_saved_register): Comment why
6910 get_prev_frame call is safe.
6912 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6914 * frame.h (select_frame): Delete level parameter.
6915 * stack.c (select_frame): Update. Use frame_relative_level to
6916 obtain the frame's level.
6917 (select_and_print_frame): Update call.
6918 (select_frame_command): Ditto.
6919 (up_silently_base): Ditto.
6920 (down_silently_base): Ditto.
6921 * ocd.c (ocd_start_remote): Ditto.
6922 * remote-rdp.c (remote_rdp_open): Ditto.
6923 * remote-mips.c (mips_initialize): Ditto.
6924 (common_open): Ditto.
6925 * remote-e7000.c (e7000_start_remote): Ditto.
6926 * m3-nat.c (select_thread): Ditto.
6927 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6928 (child_get_current_exception_event): Ditto.
6929 * varobj.c (varobj_create): Ditto.
6930 (varobj_update): Ditto.
6931 (c_value_of_root): Ditto.
6932 * tracepoint.c (finish_tfind_command): Ditto.
6933 * corelow.c (core_open): Ditto.
6934 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6935 * thread.c (info_threads_command): Ditto.
6936 (switch_to_thread): Ditto.
6937 * infrun.c (normal_stop): Ditto.
6938 (restore_selected_frame): Ditto.
6939 (restore_inferior_status): Ditto.
6940 * breakpoint.c (insert_breakpoints): Ditto.
6941 (watchpoint_check): Ditto.
6942 (bpstat_stop_status): Ditto.
6943 (do_enable_breakpoint): Ditto.
6944 * blockframe.c (flush_cached_frames): Ditto.
6945 (reinit_frame_cache): Ditto.
6947 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6949 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6952 2002-05-04 Jim Blandy <jimb@redhat.com>
6954 * gdbtypes.c (replace_type): Doc fix.
6956 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6958 * valprint.c (strcat_longest): Delete commented out function.
6961 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6963 * MAINTAINERS: Mark a29k as deleted.
6964 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6965 Move new configurations to the top.
6966 * configure.tgt: Remove a29k.
6967 * config/a29k/tm-vx29k.h: Delete.
6968 * config/a29k/vx29k.mt: Delete.
6969 * config/a29k/tm-a29k.h: Delete.
6970 * config/a29k/a29k-udi.mt: Delete.
6971 * config/a29k/a29k.mt: Delete.
6972 * a29k-tdep.c: Delete.
6973 * remote-udi.c: Delete.
6974 * remote-mm.c: Delete.
6975 * remote-eb.c: Delete.
6976 * remote-adapt.c: Delete.
6977 * Makefile.in: Remove obsolete code.
6978 * config/s390/s390x.mt: Ditto.
6979 * config/s390/s390.mt: Ditto.
6980 * config/sparc/sparclynx.mh: Ditto.
6981 * config/sparc/linux.mh: Ditto.
6982 * config/pa/hppaosf.mh: Ditto.
6983 * config/pa/hppabsd.mh: Ditto.
6984 * config/ns32k/nbsd.mt: Ditto.
6985 * config/mips/vr5000.mt: Ditto.
6986 * config/m68k/sun3os4.mh: Ditto.
6987 * config/m68k/nbsd.mt: Ditto.
6988 * config/m68k/m68klynx.mh: Ditto.
6989 * config/m32r/m32r.mt: Ditto.
6990 * config/i386/x86-64linux.mt: Ditto.
6991 * config/i386/nbsdelf.mt: Ditto.
6992 * config/i386/nbsd.mt: Ditto.
6993 * config/i386/i386lynx.mh: Ditto.
6995 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6997 * target.c (debug_print_register): New function. Handle oversize
6999 (debug_to_fetch_registers): Call.
7000 (debug_to_store_registers): Call.
7002 2002-05-03 Jim Blandy <jimb@redhat.com>
7004 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7005 (read_type): Doc fix.
7006 * gdbtypes.c (replace_type): Doc fix.
7008 * stabsread.c (multiply_defined_struct): New complaint.
7009 (read_struct_type): If the type we were passed isn't empty, or
7010 incomplete, don't read the new struct type into it; complain,
7011 and return the original type unchanged. Take a new `type_code'
7012 argument, which is the type code for the new type.
7013 (read_type): Rather than storing the type's type code here, pass
7014 it as an argument to read_struct_type, and let that take care of
7015 storing it. That way, we don't overwrite the original type code,
7016 so read_struct_type can use it to decide whether we're overwriting
7017 something we shouldn't.
7018 (complain_about_struct_wipeout): New function.
7020 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7022 * gdbarch.sh: Assert that gdbarch is non-NULL.
7023 * gdbarch.c: Regenerate.
7025 2002-05-03 Jason Merrill <jason@redhat.com>
7027 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7030 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7032 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7033 (x86_64_dwarf2gdb_regno_map_length),
7034 (x86_64_dwarf2_reg_to_regnum): Added.
7035 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7036 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7037 (_initialize_x86_64_tdep): Synced with the change above.
7038 (x86_64_skip_prologue): Reformulated message.
7040 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7042 * f-exp.y: Also use new prev_lexptr variable
7043 to improve error reporting. Based on Michael Snyder
7044 2002-04-24 dated patch to c-exp.y.
7045 * jv-exp.y: Likewise.
7046 * m2-exp.y: Likewise.
7048 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7050 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7051 we are dealing with vectors.
7053 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7055 * config/m68k/tm-nbsd.h: Obvious fix,
7056 correct machine name.
7058 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7060 * p-typeprint.c (pascal_type_print_base): Add support
7061 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7063 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7065 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7066 for fondamental pascal 'char' type.
7068 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7070 * p-lang.h (is_pascal_string_type): Declaration changed,
7071 new sixth argument of type char ** added.
7072 * p-lang.c (is_pascal_string_type): Implementation
7073 changed. Args length_pos, length_size, string_pos, char_size
7074 can now be NULL. New argument arrayname set to the field
7075 name of the char array. Return value set to char array
7076 field index plus one.
7077 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7078 is_pascal_string_type function.
7080 2002-05-02 Andrew Cagney <cagney@redhat.com>
7082 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7083 <cagney@redhat.com> change.
7084 * gdbarch.c: Regenerate.
7086 2002-05-02 Andrew Cagney <cagney@redhat.com>
7088 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7089 before probing for a new one. Detect errorenous gdbarch_init
7091 * gdbarch.c: Regenerate.
7093 2002-05-01 Andrew Cagney <cagney@redhat.com>
7095 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7096 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7097 * config/v850/tm-v850.h: Ditto. Update copyright.
7099 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7101 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7104 2002-04-30 Michael Snyder <msnyder@redhat.com>
7106 * arm-tdep.c: Whitespace clean-ups.
7107 (arm_skip_prologue): Fix thinko; two lines
7108 should have been removed as part of 4/24 change.
7110 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7112 * rs6000-tdep.c: Added comment describing how fpscr register
7113 numbers were chosen.
7115 2002-04-30 Michael Snyder <msnyder@redhat.com>
7117 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7119 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7121 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7122 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7123 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7125 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7127 From Louis Hamilton <hamilton@redhat.com>:
7128 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7129 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7130 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7131 not bfd-private xcoff data, to determine wordsize.
7132 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7134 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7136 GDB 5.2 released from 5.2 branch.
7138 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7140 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7141 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7142 (x86_64_register_info_table): Added comments with register numbers.
7144 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7146 * rs6000-tdep.c (rs6000_extract_return_value,
7147 rs6000_store_return_value): Handle returning vectors.
7148 (rs6000_gdbarch_init): Use
7149 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7150 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7152 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7154 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7155 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7157 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7159 * hpread.c (hpread_psymtab_to_symtab_1,
7160 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7161 with fprintf_unfiltered (gdb_stderr,...).
7163 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7165 * remote-array.c (printf_monitor, write_monitor,
7166 array_insert_breakpoint, array_remove_breakpoint ):
7167 Replace fprintf (stderr,...
7168 with fprintf_unfiltered (gdb_stderr,....
7169 * remote-es.c: Likewise.
7170 * remote-os9k.c: Likewise.
7171 * remote-st.c: Likewise.
7173 2002-04-28 Andreas Schwab <schwab@suse.de>
7175 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7176 linux-proc.o and gcore.o.
7178 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7180 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7181 code without frame pointers.
7183 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7185 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7188 2002-04-26 Ben Elliston <bje@redhat.com>
7190 * target.c (do_xfer_memory): Correct reference to the new option
7191 "trust-readonly-sections".
7193 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7195 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7196 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7197 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7199 (read_array_type): Record the fact that this array type is really a
7200 vector (i.e. are passed in by value).
7202 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7204 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7205 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7206 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7207 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7208 * alpha-linux-tdep.c: Include frame.h.
7209 (alpha_linux_sigcontext_addr): New function.
7210 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7211 alpha_linux_sigcontext_addr.
7212 * alpha-osf1-tdep.c: Include gdbcore.h.
7213 (alpha_osf1_sigcontext_addr): New function.
7214 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7215 alpha_osf1_sigcontext_addr.
7216 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7217 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7219 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7221 * stack.c (selected_frame_level):
7222 (select_frame): Do not set selected_frame_level.
7223 * frame.h (selected_frame_level): Delete declaration.
7225 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7227 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7228 convert_from_func_ptr-addr when AIX / PowerOpen.
7230 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7232 * valops.c (hand_function_call): Call
7233 generic_save_call_dummy_addr.
7234 * frame.h (generic_save_call_dummy_addr): Declare.
7235 * blockframe.c (struct dummy_frame): Add fields call_lo and
7237 (generic_find_dummy_frame): Check for PC in range call_lo to
7238 call_hi instead of entry_point_address.
7239 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7240 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7241 (generic_save_call_dummy_addr): New function.
7243 2002-04-24 David S. Miller <davem@redhat.com>
7245 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7246 sparc_skip_prologue.
7247 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7248 information to find prologue when possible.
7249 (sparc_prologue_frameless_p): Call examine_prologue directly.
7250 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7251 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7253 (SKIP_PROLOGUE): Likewise.
7255 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7257 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7258 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7259 indicate that the condition it was testing is always true.
7260 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7261 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7262 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7264 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7266 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7267 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7268 tdep->jb_pc and tdep->jb_elt_size.
7269 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7270 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7271 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7272 * alpha-nat.c (get_longjmp_target): Remove.
7273 (JB_ELEMENT_SIZE): Ditto.
7275 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7276 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7277 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7278 to alpha_get_longjmp_target.
7279 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7280 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7281 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7283 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7285 * README: Update to GDB 5.2.
7287 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7289 * gdbarch.sh (LC_ALL): Set to `c'.
7291 2002-04-25 Theodore A. Roth <troth@verinet.com>
7293 * avr-tdep.c: Ran through gdb_indent.sh.
7295 2002-04-25 Theodore A. Roth <troth@verinet.com>
7297 * MAINTAINERS: Add myself as AVR maintainer.
7298 * NEWS: Note new target avr.
7300 2002-04-25 Theodore A. Roth <troth@verinet.com>
7302 * Makefile.in: Add support for AVR target.
7303 * configure.tgt: Add support for AVR target.
7304 * avr-tdep.c: New file
7305 * config/avr/avr.mt: New file.
7307 2002-04-25 Theodore A. Roth <troth@verinet.com>
7309 * MAINTAINERS: Add myself to write-after-approval.
7311 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7313 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7314 with fprintf_unfiltered (gdb_stderr,....
7316 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7319 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7321 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7323 * p-exp.y: Also use new prev_lexptr variable
7324 to improve error reporting. Based on Michael Snyder
7325 2002-04-24 dated patch to c-exp.y.
7327 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7329 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7330 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7331 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7333 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7335 (FUNCTION_START_OFFSET): Remove.
7336 (BREAKPOINT): Ditto.
7338 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7340 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7343 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7345 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7346 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7347 alpha_linux_pc_in_sigtramp.
7348 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7349 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7350 alpha_osf1_pc_in_sigtramp.
7351 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7352 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7353 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7354 alphafbsd_pc_in_sigtramp.
7355 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7356 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7357 alphanbsd_pc_in_sigtramp.
7358 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7359 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7361 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7363 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7365 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7367 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7369 (alphanbsd-nat.o): New dependency list.
7370 (alphanbsd-tdep.o): Ditto.
7371 * NEWS: Note new native NetBSD/alpha configuration.
7372 * alphanbsd-nat.c: New file.
7373 * alphanbsd-tdep.c: Ditto.
7374 * configure.host (alpha*-*-netbsd*): New host.
7375 * configure.tgt (alpha*-*-netbsd*): New target.
7376 * config/alpha/nbsd.mh: New file.
7377 * config/alpha/nbsd.mt: Ditto.
7378 * config/alpha/nm-nbsd.h: Ditto.
7379 * config/alpha/tm-nbsd.h: Ditto.
7381 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7383 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7384 (alpha-osf1-tdep.o): New dependency list.
7385 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7386 and skip_sigtramp_frame members.
7387 * alpha-linux-tdep.c: Include gdbcore.h.
7388 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7389 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7390 * alpha-osf1-tdep.c: New file.
7391 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7393 (alpha_frame_past_sigtramp_frame): New function.
7394 (alpha_dynamic_sigtramp_offset): Ditto.
7395 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7396 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7397 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7398 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7399 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7400 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7401 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7402 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7403 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7404 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7405 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7406 to find_solib_trampoline_target.
7407 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7408 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7409 (SKIP_TRAMPOLINE_CODE): Remove.
7410 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7411 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7412 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7413 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7414 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7415 (PROC_SIGTRAMP_MAGIC): Ditto.
7416 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7417 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7418 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7419 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7420 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7422 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7424 * NEWS: Note that Alpha targets are now multi-arch.
7426 2002-04-24 Michael Snyder <msnyder@redhat.com>
7428 * parser-defs.h (prev_lexptr): New external variable.
7429 * parse.c (parse_exp_1): Set prev_lexptr to null before
7430 calling the language-specific parser.
7431 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7432 (yyerror): Use prev_lexptr in error reporting.
7434 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7436 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7437 * gregset.h: If FILL_FPXREGSET is defined, provide
7438 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7439 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7440 is defined, call fill_fpxregset.
7442 2002-04-24 Roland McGrath <roland@frob.com>
7444 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7445 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7446 (supply_gregset, supply_fpregset): New functions.
7448 * gnu-nat.c (gnu_find_memory_regions): New function.
7449 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7450 (gnu_xfer_memory): Add a cast.
7452 2002-04-24 Michael Snyder <msnyder@redhat.com>
7454 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7455 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7456 of argument regs ("str r(0123), [r11, #-nn"]).
7457 (arm_skip_prologue): Better handling for frameless functions.
7458 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7459 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7461 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7463 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7464 NUM_PSEUDO_REGS can be used.
7466 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7468 * arch-utils.h: Update copyright.
7470 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7471 * gdbarch.h, gdbarch.c: Re-generate.
7473 * inferior.h (IN_SIGTRAMP): Delete definition.
7474 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7475 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7477 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7478 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7479 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7480 (find_proc_framesize): Ditto.
7481 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7482 (alpha_init_extra_frame_info): Ditto.
7483 * infrun.c (handle_inferior_event): Ditto.
7484 (handle_inferior_event): Ditto.
7485 (check_sigtramp2): Ditto.
7486 * blockframe.c (create_new_frame): Ditto.
7487 (get_prev_frame): Ditto.
7488 * ppc-linux-tdep.c: Update comments.
7489 * i386-linux-tdep.c: Update comments.
7490 * breakpoint.c (bpstat_what): Update comment.
7492 2002-04-24 David S. Miller <davem@redhat.com>
7494 * i960-tdep.c (register_in_window_p): New function.
7495 (i960_find_saved_register): Use it instead of
7496 REGISTER_IN_WINDOW_P.
7497 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7499 * symtab.h (find_stab_function_addr): Kill extern.
7500 * minsyms.c (find_stab_function_addr): Remove from here...
7501 * dbxread.c: ... to here, and mark it static.
7503 2002-04-20 David S. Miller <davem@redhat.com>
7505 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7506 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7508 2002-04-21 David S. Miller <davem@redhat.com>
7510 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7511 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7512 (vx_write_register): Likewise.
7514 2002-04-23 J. Brobecker <brobecker@gnat.com>
7516 * source.c (is_regular_file): New function.
7517 (openp): Check wether file to open is a regular file
7518 to avoid opening directories.
7520 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7522 * findvar.c (extract_signed_integer): Cast printf argument
7523 to suppress format warning.
7524 (extract_unsigned_integer): Likewise.
7525 * infcmd.c (registers_info): Likewise.
7526 * top.c (get_prompt_1): Likewise.
7527 * valops.c (value_assign): Likewise.
7528 * valprint.c (print_decimal): Likewise.
7530 2002-04-22 H.J. Lu (hjl@gnu.org)
7532 * c-exp.y (typebase): Support
7534 [long|long long|short] [signed|unsigned] [int|]
7538 signed [long|long long|short] int
7540 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7542 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7544 * vax-tdep.h: New file.
7545 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7546 Make several routines static.
7547 (vax_get_saved_register): New function.
7548 (vax_gdbarch_init): New function.
7549 (_initialize_vax_tdep): Register vax_gdbarch_init.
7550 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7551 Remove macros now under the control of gdbarch.
7553 2002-04-22 Michael Snyder <msnyder@redhat.com>
7555 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7556 Some whitespace and coding standards tweaks.
7558 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7560 * vax-tdep.c: Include regcache.h.
7561 (vax_call_dummy_words): New.
7562 (sizeof_vax_call_dummy_words): New.
7563 (vax_fix_call_dummy): New function.
7564 (vax_saved_pc_after_call): Ditto.
7565 * config/vax/tm-vax.h: Don't include regcache.h.
7566 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7567 (CALL_DUMMY): Remove.
7568 (CALL_DUMMY_WORDS): Define.
7569 (SIZEOF_CALL_DUMMY_WORDS): Define.
7570 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7572 2002-04-18 Michael Snyder <msnyder@redhat.com>
7574 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7576 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7578 * vax-tdep.c (vax_frame_chain): New function.
7579 (vax_push_dummy_frame): Ditto.
7580 (vax_pop_frame): Ditto.
7581 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7582 (FRAMELESS_FUNCTION_INVOCATION): Use
7583 generic_frameless_function_invocation_not.
7584 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7585 (POP_FRAME): Use vax_pop_frame.
7587 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7589 * vax-tdep.c (vax_store_struct_return): New function.
7590 (vax_extract_return_value): Ditto.
7591 (vax_store_return_value): Ditto.
7592 (vax_extract_struct_value_address): Ditto.
7593 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7594 vax_store_struct_return.
7595 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7596 (STORE_RETURN_VALUE): Use vax_store_return_value.
7597 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7599 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7601 * vax-tdep.c (vax_frame_saved_pc): New function.
7602 (vax_frame_args_address_correct): Ditto.
7603 (vax_frame_args_address): Ditto.
7604 (vax_frame_locals_address): Ditto.
7605 (vax_frame_num_args): Move code to be in proximity to
7606 other frame-related functions.
7607 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7608 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7609 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7610 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7611 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7613 2002-04-22 H.J. Lu (hjl@gnu.org)
7615 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7618 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7620 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7621 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7622 (FRAME_INIT_SAVED_REGS): New macro.
7624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7626 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7628 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7630 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7632 (fetch_osf_core_registers): Likewise.
7633 (supply_gregset): Likewise.
7635 2002-04-22 J. Brobecker <brobecker@gnat.com>
7637 * symfile.h (get_section_index): Define.
7638 * symfile.c (get_section_index): New function.
7639 * mdebugread.c (SC_IS_SBSS): New macro.
7640 (SC_IS_BSS): Return true for the scBss storage class only, as
7641 the scSBss storage class refers to the .sbss section.
7642 (parse_partial_symbols): Discard the symbols which associated
7643 section does not exist.
7644 Make sure to use the .sbss section index for symbols which
7645 storage class is scBss, rather than using the .bss section index.
7647 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7649 * vax-tdep.c: Update copyright years.
7650 (vax_register_name): New function.
7651 (vax_register_byte): Ditto.
7652 (vax_register_raw_size): Ditto.
7653 (vax_register_virtual_size): Ditto.
7654 (vax_register_virtual_type): Ditto.
7655 * config/vax/tm-vax.h: Update copyright years.
7656 (REGISTER_NAMES): Remove.
7657 (REGISTER_NAME): Define.
7658 (REGISTER_BYTE): Use vax_register_byte.
7659 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7660 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7661 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7663 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7665 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7667 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7669 2002-04-21 David S. Miller <davem@redhat.com>
7671 * arch-utils.c (generic_prologue_frameless_p): Kill
7672 SKIP_PROLOGUE_FRAMELESS_P code.
7673 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7675 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7676 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7677 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7679 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7680 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7681 (sparc_gdbarch_init): Pass it to
7682 set_gdbarch_prologue_frameless_p.
7684 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7686 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7687 (alphabsd-nat.o): New dependency list.
7689 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7691 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7693 (alpha-linux-tdep.o): New dependency list.
7694 (alphafbsd-tdep.o): Likewise.
7696 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7698 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7700 * alpha-tdep.c: ...from here.
7701 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7703 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7705 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7706 prototype from here...
7707 * alpha-tdep.h: ...to here.
7709 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7711 * frame.h (selected_frame_level): Document as deprecated.
7712 (frame_relative_level): Declare.
7713 * stack.c (frame_relative_level): New function.
7714 (selected_frame_level): Document as deprecated.
7715 (select_frame): Do not set the selected_frame_level.
7717 * stack.c (frame_info, record_selected_frame): Update.
7718 (frame_command, current_frame_command): Update.
7719 (up_silently_base, up_command, down_silently_base): Update.
7720 (down_command): Update.
7721 * inflow.c (kill_command): Update.
7722 * tracepoint.c (finish_tfind_command): Update.
7723 * corelow.c (core_open): Update.
7724 * thread.c (info_threads_command): Update.
7725 (do_captured_thread_select): Update.
7726 * infcmd.c (finish_command): Update.
7727 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7729 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7731 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7733 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7735 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7738 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7740 * alphafbsd-tdep.c: Update copyright years. Include
7742 (alphafbsd_use_struct_convention): Make static.
7743 (alphafbsd_init_abi): New function.
7744 (_initialize_alphafbsd_tdep): New function.
7745 * config/alpha/tm-fbsd.h: Update copyright years.
7746 (USE_STRUCT_CONVENTION): Remove.
7748 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7750 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7751 an Alpha ABI variant.
7752 (alpha_abi_handler_list): Declare.
7753 (alpha_gdbarch_register_os_abi): New function.
7754 (alpha_gdbarch_init): Give registered ABI variant handlers a
7755 chance to tweak the gdbarch once we have set up defaults.
7756 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7758 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7760 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7761 to standard_coerce_float_to_double.
7762 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7764 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7766 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7767 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7768 from gdbarch_tdep rather than a constant.
7769 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7770 the default text address for all Alpha Unix ABIs.
7771 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7772 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7774 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7776 * alpha-tdep.h: New file. Includes several Alpha target constants
7778 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7779 let gdbarch deal with.
7780 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7781 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7783 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7784 Alpha target register names.
7785 * alphabsd-nat.c: Likewise.
7786 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7787 Alpha target register names. Make serveral routines static.
7788 (alpha_get_saved_register): New function.
7789 (alpha_abi_names): New.
7790 (process_note_abi_tag_sections): New function.
7791 (get_elfosabi): New function.
7792 (alpha_gdbarch_init): New function.
7793 (alpha_dump_tdep): New function.
7794 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7796 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7798 * frame.c (find_saved_register): Delete #ifdef
7799 HAVE_REGISTER_WINDOWS code.
7800 * config/sparc/tm-sparc.h: Update comments.
7801 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7803 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7805 * i960-tdep.c (i960_find_saved_register): New function.
7806 (i960_get_saved_register): New function.
7807 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7808 (i960_get_saved_register): Declare.
7809 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7811 2002-04-20 David S. Miller <davem@redhat.com>
7813 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7815 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7817 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7818 instead of NUM_PSEUDO_REGS.
7820 2002-04-20 David S. Miller <davem@redhat.com>
7822 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7823 GDB_MULTI_ARCH_PARTIAL
7824 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7825 define, let tm-sp64.h do it.
7827 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7829 * frame.c (find_saved_register): Avoid a NULL pointer
7830 dereference and actually walk the frame list.
7832 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7834 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7835 sorted in most most-recent-used order. Document.
7836 * gdbarch.h, gdbarch.c: Regenerate.
7838 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7840 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7842 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7843 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7844 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7847 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7850 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7851 (build_builtin_type_vec128): Ditto.
7852 (append_composite_type_field): Fix calculation of type length in
7855 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7857 * config/djgpp/README: Update.
7859 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7862 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7864 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7865 (alpha_setup_arbitrary_frame): ...to this.
7866 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7867 for alpha_setup_arbitrary_frame.
7869 2002-04-18 Andrew Cagney <cagney@redhat.com>
7871 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7872 * gdbarch.h, gdbarch.c: Regenerate.
7874 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7875 * target.h (memory_breakpoint_from_pc): Update declaration.
7876 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7878 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7879 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7880 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7881 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7882 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7883 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7884 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7885 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7886 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7887 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7888 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7889 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7891 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7893 * monitor.c (monitor_insert_breakpoint): Ditto.
7894 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7896 * config/mcore/tm-mcore.h: Update copyright.
7897 * mem-break.c: Ditto.
7898 * xstormy16-tdep.c: Ditto.
7900 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7902 * p-exp.y: Add precedence rule for '^' token.
7903 This removes the shift/reduce conflicts.
7904 Remove the comment concerning these shift/reduce conflicts.
7906 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7908 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7909 (registers_powerpc_nofp): New register set for processors
7910 without floating point unit.
7912 2002-04-18 David S. Miller <davem@redhat.com>
7914 * MAINTAINERS: Add myself to write-after-approval.
7916 2002-04-17 Michael Snyder <msnyder@redhat.com>
7918 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7920 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7922 * rs6000-tdep.c (frame_initial_stack_address): Use
7923 frame_register_read to read the alloca_reg.
7925 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7927 * frame.c (find_saved_register): Find saved registers in the next
7931 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7933 * gdbarch.sh (LANG): Set to ``c''.
7935 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7937 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7939 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7941 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7944 * hpread.c (hpread_get_lntt): Add declaration.
7945 Also fix PR gdb/391.
7947 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7949 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7950 * aclocal.m4, configure: Re-generate.
7953 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7955 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7956 instead of tm_print_insn.
7958 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7960 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7962 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7964 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7965 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7966 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7968 2002-04-12 Don Howard <dhoward@redhat.com>
7970 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7971 max_user_call_depth.
7972 (init_cmd_lists): Initialize the new value;
7973 * cli/cli-script.c (execute_user_command): Limit the call depth of
7974 user defined commands. This avoids a core-dump when user commands
7975 are infinitly recursive.
7977 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7979 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7980 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7981 from tdep struct instead of DEFAULT_LR_SAVE.
7982 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7983 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7984 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7986 2002-04-12 Michael Snyder <msnyder@redhat.com>
7988 * Remote.c: Spelling fix.
7989 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7990 If no symbol found for "sbrk", try "_sbrk".
7991 (make_output_phdrs): Use bfd_section_name.
7992 (gcore_copy_callback): Use bfd_section_name.
7993 * eval.c: Indentation fix-ups.
7994 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7995 in case it gets applied to an address that is already
7996 in the instruction space.
7997 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7998 * symfile.c: Fix indentation, long lines.
7999 * source.c: White space fix-up.
8001 2002-04-12 Andrew Cagney <cagney@redhat.com>
8003 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8004 * frame.c (frame_register_read): New function. Return non-zero on
8006 (read_relative_register_raw_bytes_for_frame): Delete.
8007 (read_relative_register_raw_bytes): Delete.
8008 * frame.h (frame_register_read): Declare.
8009 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8011 * infcmd.c (do_registers_info): Ditto.
8012 * hppa-tdep.c: Ditto.
8013 * rs6000-tdep.c: Ditto.
8014 * h8500-tdep.c: Ditto.
8015 * mips-tdep.c: Ditto.
8016 * h8300-tdep.c: Ditto.
8017 * z8k-tdep.c: Ditto.
8019 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8021 From Jimi X <jimix@watson.ibm.com>:
8022 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8025 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8027 From Jimi X <jimix@watson.ibm.com>:
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8031 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8033 From Jimi X <jimix@watson.ibm.com>:
8034 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8035 register sets for these processor variants.
8037 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8039 * regformats/reg-ppc.dat: Support FPSCR.
8041 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8043 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8044 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8045 Add fpscr as an invalid/unfetchable register.
8046 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8047 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8048 (fill_fpregset): Add support for register fpscr.
8049 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8050 (fill_gregset): Account for the fact that register ``mq'' might
8052 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8053 (registers_power): Add fpscr to register set at slot 71.
8054 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8055 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8057 2002-04-11 Michael Snyder <msnyder@redhat.com>
8059 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8060 * configure: Regenerate.
8061 * config.in: Regenerate.
8062 * acconfig.h: Add define for _SYSCALL32.
8063 * core-sol2.c: Remove #define _SYSCALL32.
8064 * solib-legacy.c: Remove #define _SYSCALL32.
8066 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8068 * stack.c (select_frame): Cleanup internal error message, do not
8071 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8073 * stack.c (select_frame): Check that selected_frame and the
8074 specified level are as expected.
8075 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8077 * frame.h (struct frame_info): Add field `level'. Update
8079 Work-in-progress PR gdb/464.
8081 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8083 * maint.c (maint_print_section_info): Rename print_section_info.
8084 (print_bfd_section_info, print_objfile_section_info): Update.
8085 * inferior.h (struct gdbarch): Add opaque declaration.
8086 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8087 * gdbarch.h: Regenerate.
8089 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8091 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8092 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8093 (kernel_u_size): Added.
8094 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8095 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8097 2002-04-04 Jim Ingham <jingham@apple.com>
8099 * valarith.c (find_size_for_pointer_math): New function, either returns
8100 the size for a pointer's target, returns 1 for void *, or errors for
8102 (value_add, value_sub): use find_size_for_pointer_math.
8104 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8106 * linux-low.c (linux_look_up_symbols): New hook.
8107 (linux_target_ops): Add linux_look_up_symbols.
8108 * remote-utils.c (decode_address): New function.
8109 (look_up_one_symbol): New function.
8110 * server.c (handle_query): Call target look_up_symbols hook.
8111 * server.h (look_up_one_symbol): Add prototype.
8112 * target.h (struct target_ops): Add look_up_symbols hook.
8114 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8116 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8117 override FP_REGNUM with frame->fp. Update copyright.
8118 * parse.c (num_std_regs, std_regs): Delete.
8119 (target_map_name_to_register): Do not search std_regs. Update
8120 function description.
8121 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8122 declarations. Update copyright.
8125 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8127 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8128 after the last symbol in a block.
8130 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8132 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8133 is non zero as a found symbol.
8135 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8137 * findvar.c: Include "builtin-regs.h".
8138 (value_of_register): Call value_of_builtin_reg when applicable.
8139 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8140 (target_map_name_to_register): Call
8141 builtin_reg_map_name_to_regnum.
8142 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8143 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8144 (builtin_regs_h): Define.
8145 (builtin-regs.o): New target.
8146 (findvar.o): Add $(builtin_regs_h).
8147 * builtin-regs.c, builtin-regs.h: New files.
8148 * std-regs.c: New file.
8149 Partial fix for PR gdb/251.
8151 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8153 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8154 it's no longer required.
8156 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8158 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8160 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8162 From Jimi X <jimix@watson.ibm.com>:
8163 * rs6000-tdep.c (rs6000_software_single_step): Use
8164 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8165 and size. Use target_insert_breakpoint() and
8166 target_remove_breakpoint() to insert and remove breakpoints
8167 instead of explicit memory reads and writes.
8169 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8171 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8172 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8173 ELF_OBJECT_FORMAT ifdef.
8175 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8177 From Jimi X <jimix@watson.ibm.com>:
8178 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8180 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8182 From Jimi X <jimix@watson.ibm.com>:
8183 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8184 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8186 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8188 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8189 s/asprintf/xasprintf/.
8190 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8192 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8194 I believe Jeff Law denies responsability for this one:
8195 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8196 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8197 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8198 Work-around for PR gdb/366.
8200 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8202 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8203 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8204 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8206 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8208 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8209 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8212 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8214 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8217 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8219 * README (Reporting Bugs in GDB): Document the bug web page as the
8220 prefered way of submitting bugs.
8223 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8225 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8227 * gdbarch.h, gdbarch.c: Re-generate.
8229 2002-04-07 Andreas Schwab <schwab@suse.de>
8231 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8232 buffer to regcache_collect.
8234 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8236 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8237 * gdbarch.c, gdbarch.h: Re-generate.
8239 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8241 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8242 declaration. Fix -Werror.
8244 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8246 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8247 * gdbarch.c: Regenerate.
8249 2002-04-05 Michael Snyder <msnyder@redhat.com>
8251 * breakpoint.c (clear_command): Rewrite middle section to
8252 combine two loops with identical control conditions.
8253 Add a cleanup to eliminate a memory leak.
8254 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8256 2002-04-05 H.J. Lu (hjl@gnu.org)
8258 * solib-svr4.c (bkpt_names): Add "__start".
8260 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8262 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8263 as test for 64 bit target.
8265 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8267 * h8500-tdep.c (h8500_write_fp): Delete function.
8268 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8269 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8270 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8272 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8273 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8275 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8276 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8277 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8278 (d10v_write_fp): Delete function.
8279 * inferior.h (write_fp, generic_target_write_fp): Delete
8281 * regcache.c (generic_target_write_fp): Delete function.
8282 (write_fp): Delete function.
8283 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8284 * gdbarch.h, gdbarch.c: Regenerate.
8285 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8286 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8287 (sparc64_write_fp): Delete declaration.
8288 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8289 (h8500_write_fp): Delete declaration.
8291 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8293 * sparc-tdep.c (sparc64_write_fp): Delete.
8294 (sparc_push_dummy_frame): Replace write_fp call with code to store
8296 (sparc_gdbarch_init): Do not initialize write_fp.
8298 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8300 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8303 2002-03-29 Jim Blandy <jimb@redhat.com>
8305 * stack.c (get_selected_block): Add new argument `addr_in_block',
8306 used to return the exact code address we used to select the block,
8308 * blockframe.c (get_frame_block, get_current_block): Same.
8309 * frame.h (get_frame_block, get_current_block,
8310 get_selected_block): Update declarations.
8311 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8312 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8314 2002-04-05 Michael Snyder <msnyder@redhat.com>
8316 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8319 2002-04-05 J. Brobecker <brobecker@gnat.com>
8321 * utils.c (xfullpath): New function.
8322 * defs.h (xfullpath): Add declaration.
8323 * source.c (openp): Use xfullpath in place of gdb_realpath to
8324 avoid resolving the basename part of filenames when the
8325 associated file is a symbolic link. This fixes a potential
8326 inconsistency between the filenames known to GDB and the
8327 filenames it prints in the annotations.
8328 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8329 to be able to match a filename with either the real filename, or
8330 the name of any symbolic link to this file.
8331 (lookup_partial_symtab): Ditto.
8333 2002-04-04 Michael Snyder <msnyder@redhat.com>
8335 * breakpoint.c: Add support for hardware breakpoints in overlays.
8336 (overlay_events_enabled): New state variable.
8337 (insert_breakpoints): Use overlay_events_enabled to decide
8338 whether to attempt to set a breakpoint at the overlay load addr.
8339 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8340 (remove_breakpoint): Use overlay_events_enabled to decide
8341 whether breakpoints need to be removed from overlay load addr.
8342 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8343 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8344 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8345 disable_overlay_breakpoints): Update overlay_events_enabled.
8347 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8349 * dwarf2read.c (struct function_range): New.
8350 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8351 (check_cu_functions): New.
8352 (read_file_scope): Initialize global function lists.
8353 Call dwarf_decode_line after processing children.
8354 (read_func_scope): Add to global function list.
8355 (dwarf_decode_lines): Call check_cu_functions everywhere
8356 record_line is called. Call record_line with a linenumber
8357 of 0 to mark sequence ends.
8359 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8361 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8362 change sync with glibc.
8364 2002-04-03 Jim Blandy <jimb@redhat.com>
8366 * configure.in: Call AC_C_INLINE.
8367 * configure: Regenerated.
8369 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8371 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8372 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8374 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8376 * NEWS: Mention gcore support on FreeBSD/i386.
8378 * fbsd-proc.c: New file.
8379 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8380 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8382 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8385 2002-03-29 Jim Blandy <jimb@redhat.com>
8387 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8388 unescaped newlines in string literals, but newer ones don't. So
8391 2002-03-26 Michael Snyder <msnyder@redhat.com>
8392 Andrew Cagney <cagney@redhat.com>
8394 * cli/cli-dump.c: New file. Dump memory to file,
8395 restore file to memory.
8396 * cli/cli-dump.h: New file.
8397 * Makefile.in: Add rules, dependencies for cli-dump.o.
8398 * NEWS: Mention new commands.
8400 2002-03-28 Michael Snyder <msnyder@redhat.com>
8402 * symfile.c (symbol_file_add): Move test for null symbols to later.
8404 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8406 From veksler at il.ibm.com:
8407 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8408 the xstrduped original path.
8411 2002-03-27 Michael Snyder <msnyder@redhat.com>
8413 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8414 * infcmd.c (_initialize_infcmd): Ditto.
8415 * language.c (_initialize_language): Ditto.
8416 * symfile.c (_initialize_symfile): Ditto.
8417 * top.c (_init_main): Ditto.
8418 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8420 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8422 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8423 vector registers handling.
8424 (skip_prologue): Handle new AltiVec instructions. Fill in new
8425 fields of frame data.
8426 (frame_get_saved_regs): Fill in information for AltiVec registers.
8428 2002-03-27 Jim Blandy <jimb@redhat.com>
8430 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8431 a function; leave this macro here to invoke that function.
8432 (symbol_init_mangled_name): Declaration for that function.
8433 * symtab.c (symbol_init_mangled_name): New function.
8435 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8437 * valarith.c: Replace strerror with safe_strerror.
8438 * tracepoint.c: Ditto.
8440 * go32-nat.c: Ditto.
8444 2002-03-27 Andreas Schwab <schwab@suse.de>
8446 * event-top.c (command_line_handler): Remove useless if.
8448 2002-03-27 Andreas Jaeger <aj@suse.de>
8450 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8453 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8455 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8456 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8457 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8458 (x86_64_linux_dr_get_status, supply_gregset),
8459 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8460 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8461 (x86_64_register_info_table): Add.
8462 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8463 (x86_64_register_raw_size, x86_64_register_virtual_type),
8464 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8465 general x86_64_register_info_table.
8466 (i386_gdbarch_init): gdbarch_register_bytes is now set
8467 dynamicaly during initialization.
8468 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8469 * gdbserver/linux-x86-64-low.c: Ditto.
8471 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8473 * gdbserver/server.c (main): Call target_signal_to_host_p
8474 and target_signal_to_host on signals received from the remote.
8475 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8476 target_signal_from_host on signals sent to the remote.
8477 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8478 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8480 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8482 * signals/signals.c: Include "server.h" in gdbserver build.
8483 (target_signal_from_name): Don't use STREQ.
8484 (_initialize_signals): Likewise. Don't include function in
8487 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8489 * signals.c: Moved to...
8490 * signals/signals.c: Here.
8491 * Makefile (signals.o): Update.
8493 2002-03-26 Jeff Law (law@redhat.com)
8495 * somread.c (som_symtab_read): Remove some commented out code and
8496 updated related comments. Do not set the minimal symbol table to
8497 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8498 in a dynamic executable.
8499 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8500 where we are unable to find the minimal symbol for the given
8503 2002-03-25 Jeff Law (law@redhat.com)
8505 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8507 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8509 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8511 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8513 * command.h: Update copyright.
8514 (struct cmd_list_element): Replace definition with opaque
8516 (enum cmd_types): Document that it will eventually be moved to
8518 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8519 (MALLOCED_REPLACEMENT): Delete macro.
8520 * Makefile.in (cli_decode_h): Add $(command_h).
8521 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8522 * top.c: Include "cli/cli-decode.h".
8523 * completer.c: Include "cli/cli-decode.h".
8524 * maint.c: Include "cli/cli-decode.h".
8525 * cli/cli-decode.h: Include "command.h".
8526 (enum command_class): Delete.
8527 (enum cmd_types): Comment out.
8528 (enum cmd_auto_boolean): Delete.
8529 (enum var_types): Delete.
8531 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8533 * cli/cli-decode.c: Include "gdb_assert.h".
8534 (add_set_or_show_cmd): New static function.
8535 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8536 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8537 all fields, such as func, from the set command.
8539 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8541 * MAINTAINERS (sh-elf): Change warning flag to -w.
8543 2002-03-23 Andrew Cagney <cagney@redhat.com>
8545 * defs.h (error): Add printf format attribute.
8546 * thread-db.c (thread_from_lwp): Fix error format string.
8547 * stack.c (parse_frame_specification): Ditto.
8548 * cli/cli-decode.c (undef_cmd_error): Ditto.
8549 * scm-lang.c (scm_lookup_name): Ditto.
8550 * tracepoint.c (trace_error): Ditto.
8551 * remote-utils.c (usage): Ditto.
8552 * remote.c (compare_sections_command): Ditto.
8555 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8557 * gdbtypes.c (append_composite_type_field): New function.
8558 (init_composite_type): New function.
8559 * gdbtypes.h (append_composite_type_field): Declare.
8560 (init_composite_type): Ditto.
8562 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8564 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8566 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8567 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8568 structure returning convention for SYSV ABI case, but not
8569 for GNU/Linux, FreeBSD, or NetBSD.
8571 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8573 * symtab.h (lookup_block_symbol): Add mangled_name argument
8576 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8577 with new mangled_name argument.
8578 * linespec.c (decode_line_1): Likewise.
8579 * valops (value_of_this): Likewise.
8580 * symtab.c (lookup_transparent_type): Likewise.
8581 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8582 (lookup_symbol): If we are given a mangled name, pass it down
8583 to lookup_symbol_aux.
8584 (lookup_block_symbol): If we are given a mangled name to check
8585 against, only return symbols which match it.
8587 2002-03-22 Christopher Faylor <cgf@redhat.com>
8589 * win32-nat.c (child_create_inferior): Check for proper shell to use
8590 here, in case the user changes it on the fly.
8591 (_initialize_inftarg): Remove shell path considerations.
8593 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8595 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8596 for gdbarch_max_register_raw_size and max_register_virtual_size.
8597 Adjust copyright year.
8599 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8601 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8602 in a function to cover the entire beginning of the function
8603 as well if it does not already.
8605 2002-03-21 Tom Rix <trix@redhat.com>
8607 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8608 (rs6000_ptrace64): Renamed from ptrace64.
8610 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8612 * gdbserver/remote-utils.c (remote_open): Don't call
8613 getprotobyname, we're all using TCP here so just use
8615 * gdbserver/gdbreplay.c (remote_open): Ditto.
8617 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8619 * regcache.c (_initialize_regcache): No need to call
8620 build_regcache() at this time; it gets called whenever
8621 the gdbarch changes.
8623 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8625 * sparc-nat.c: Include sys/param.h where possible.
8627 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8630 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8631 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8632 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8634 * stabsread.c (rs6000_builtin_type): Likewise.
8635 (read_sun_floating_type): Likewise.
8637 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8639 * stabsread.c (read_member_functions): Remove skip code for duplicate
8640 constructor/destructor methods. Use standard parsing for these
8641 methods and just do not chain them to the list of methods after
8644 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8646 * coffread.c: Remove redundant static declarations. Replace
8647 occurrences of `PTR' with `void *'.
8648 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8649 * top.h (quit_cover): Likewise.
8650 * defs.h (catch_errors): Likewise.
8652 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8654 * defs.h (XMALLOC): Define.
8655 * gdb-events.sh (XMALLOC): Delete macro.
8656 * gdb-events.c, gdb-events.h: Regenerate.
8657 * gdbarch.sh (XMALLOC): Delete macro.
8658 * gdbarch.c: Regenerate.
8659 * serial.c (XMALLOC): Delete macro.
8660 * ui-file.c (XMALLOC): Ditto.
8661 * ser-unix.h (XMALLOC): Ditto.
8662 * sh-tdep.c (XMALLOC): Ditto.
8663 * ui-out.c (XMALLOC): Ditto.
8664 * utils.c (XMALLOC): Ditto.
8665 * i386-tdep.c (XMALLOC): Ditto.
8666 * gdb-events.c (XMALLOC): Ditto.
8667 * d10v-tdep.c (XMALLOC): Ditto.
8668 * cli-out.c (XMALLOC): Ditto.
8670 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8671 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8672 * ui-file.c, ui-out.c: Ditto.
8674 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8676 * command.h (struct cmd_list_element): Add field context.
8677 (set_cmd_context, get_cmd_context): Declare.
8678 * cli/cli-decode.h: Ditto.
8679 * cli/cli-decode.c (get_cmd_context): New function.
8680 (set_cmd_context): New function.
8681 (add_cmd): Initialize context.
8682 Part of fixing PR gdb/145 and PR gdb/146.
8684 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8686 * cli/cli-decode.c (cmd_type): New function.
8687 * command.h (cmd_type): Declare.
8688 * infrun.c (set_schedlock_func): Call function cmd_type.
8689 * kod.c (kod_set_os): Call cmd_type.
8690 * cris-tdep.c (cris_version_update): Use function cmd_type.
8691 (cris_mode_update, cris_abi_update): Ditto.
8693 * command.h: (execute_cmd_post_hook): Declare.
8694 (execute_cmd_pre_hook): Declare.
8695 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8696 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8697 functions. Execute pre/post hook while ensuring that afterwords
8699 * top.c (execute_command): Use execute_cmd_post_hook, and
8700 execute_cmd_pre_hook to execute pre/post commands.
8701 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8703 (hook_stop_stub): Call execute_cmd_pre_hook.
8705 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8707 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8708 set'' and this leads to a core dump. Move xstrdup of
8709 operating_system to after check that it is not NULL.
8711 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8713 * kod.c (kod_set_os): Remove unnecessary check that
8714 ``command->type'' is set_cmd.
8716 * valprint.c (set_input_radix): Use input_radix.
8717 (set_output_radix): Use output_radix.
8718 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8721 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8723 * value.h (struct value): Delete field ``substring_addr''. Change
8724 aligner fields to force_doublest_align, force_longest_align,
8725 force_core_addr_align and force_pointer_aligh.
8727 * value.h (struct value): Fix typo in above change.
8729 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8731 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8732 to fix internal_error from ``maintenance print architecture''.
8734 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8736 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8737 for gcc versions after gcc-2.8.1.
8739 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8741 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8742 for method resolution. Restore adjustment of ``this'' pointer after
8743 calling value_struct_elt, which was accidentally removed during the
8746 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8748 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8750 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8752 * value.h (value_of_register): Update.
8754 2002-03-14 Richard Henderson <rth@redhat.com>
8756 * configure.in: Detect declaration for canonicalize_file_name.
8757 * utils.c (canonicalize_file_name): Declare, if needed.
8758 (gdb_realpath): Prefer realpath if available and usable.
8759 * config.in, configure: Rebuild.
8761 2002-03-14 Richard Henderson <rth@redhat.com>
8763 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8764 a constant array bound.
8766 * MAINTAINERS: Add myself to write-after-approval.
8768 2002-03-14 Michael Snyder <msnyder@redhat.com>
8770 * symfile.c (syms_from_objfile): Return immediately if no syms.
8771 (symbol_file_add): Return immediately if no syms.
8772 (find_sym_fns): Return immediately if no syms.
8774 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8776 * gdbserver/remote-util.c (remote_open): Print remote-side's
8777 IP address when remote debugging over the network.
8779 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8781 * config/sparc/fbsd.mh: Fix copyright.
8782 * config/sparc/fbsd.mt: Likewise.
8784 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8786 * MAINTAINERS: Fix typo in name of gdb warnings option.
8787 (x86-64): Fix formating so that this can be parsed by awk.
8789 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8791 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8792 * defs.h: Include "gdb/signals.h".
8793 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8795 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8797 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8798 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8801 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8802 Don Howard <dhoward@redhat.com>
8804 * mips-tdep.c (ST0_FR): Define.
8805 (mips2_fp_compat): New function, temporarily disabled.
8806 (mips_read_fp_register_single): New function.
8807 (mips_read_fp_register_double): New function.
8808 (mips_print_register): Use them.
8809 (do_fp_register_row): Likewise.
8811 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8813 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8816 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8818 * stabsread.c (read_member_functions): Fix is_stub test for
8819 static member functions, improve comment.
8821 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8823 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8824 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8825 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8826 commands that set boolean values.
8827 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8828 (arm_rdi_resume): Always initialize PC.
8829 (arm_rdi_open): Don't use rslt as a boolean.
8830 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8831 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8832 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8833 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8835 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8837 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8838 * configure: Rebuilt.
8840 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8842 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8843 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8845 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8847 * cli/cli-decode.c (set_cmd_completer): New function.
8848 * command.h (set_cmd_completer): Declare.
8849 * cli/cli-decode.h (set_cmd_completer): Ditto.
8851 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8852 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8853 * win32-nat.c (_initialize_inftarg): Ditto.
8854 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8855 * proc-api.c (_initialize_proc_api): Ditto.
8856 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8857 * source.c (_initialize_source): Ditto.
8858 * exec.c (_initialize_exec): Ditto.
8859 * solib.c (_initialize_solib): Ditto.
8860 * top.c (init_main): Ditto.
8861 * tracepoint.c (_initialize_tracepoint): Ditto.
8862 * symfile.c (_initialize_symfile): Ditto.
8863 * printcmd.c (_initialize_printcmd): Ditto.
8864 * infcmd.c (_initialize_infcmd): Ditto.
8865 * corefile.c (_initialize_core): Ditto.
8867 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8869 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8871 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8873 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8875 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8877 * NEWS: Update headings, 5.2 has branched.
8879 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8881 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8882 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8883 (register_addr, REGISTER_RAW_SIZE): Likewise.
8884 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8885 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8887 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8889 * MAINTAINERS (x86-64): Add myself.
8890 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8891 changed value_ptr -> struct value *
8893 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8895 * configure.host (sparc64-*-freebsd): Add.
8896 * configure.tgt: Likewise.
8897 * config/sparc/fbsd.mh: New file.
8898 * config/sparc/fbsd.mt: Likewise.
8899 * config/sparc/nm-fbsd.h: Likewise.
8900 * config/sparc/tm-fbsd.h: Likewise.
8902 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8904 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8905 regformats/reg-s390x.dat.
8907 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8909 * utils.c: Add FIXME explaining true/false problem.
8911 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8913 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8915 2002-02-28 Michael Chastain <mec@shout.net>
8917 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8919 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8921 * gdbserver/linux-s390-low.c: New file.
8922 * regformats/reg-s390.dat: New file.
8923 * regformats/reg-s390x.dat: New file.
8924 * gdbserver/configure.srv: Add S/390.
8925 * gdbserver/Makefile.in: Add S/390.
8926 * configure.tgt: Enable gdbserver for S/390.
8928 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8930 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8931 first line of the doc string for "info dos", except at the end of
8932 the sentence, since the short help stops at the first period.
8934 2002-02-28 Jason Merrill <jason@redhat.com>
8936 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8938 2002-02-27 Fred Fish <fnf@redhat.com>
8940 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8941 comment (dumy -> dummy).
8943 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8945 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8947 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8949 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8951 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8953 * gdbserver/acconfig.h: New file.
8954 * gdbserver/i387-fp.c: New file.
8955 * gdbserver/i387-fp.h: New file.
8956 * gdbserver/linux-x86-64.c: New file.
8957 * regformats/reg-x86-64.dat: New file.
8958 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8959 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8960 * gdbserver/configure.in: Add support for regsets.
8961 * gdbserver/config.in: Regenerate.
8962 * gdbserver/configure: Regenerate.
8963 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8964 * gdbserver/linux-low.h: New file.
8965 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8967 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8968 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8969 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8970 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8971 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8972 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8973 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8974 "i387-fp.h". Add PTRACE_GETREGS and friends.
8975 * gdbserver/regcache.c (supply_register): New function.
8976 (supply_register_by_name): New function.
8977 (collect_register): New function.
8978 (collect_register_by_name): New function.
8980 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8982 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8983 (config.status): Add configure.srv dependency.
8984 (server_h): Add config.h dependency.
8986 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8988 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8989 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8990 * gdbserver/configure.srv: Change i386-*-linux* to use
8993 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8995 * x86-64-tdep.c: Re-indent. Update copyright date.
8997 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8999 From Michal Ludvig <mludvig@suse.cz>:
9000 * x86-64-tdep.c (value.h): Delete.
9001 (gdb_assert.h): Include.
9002 (x86_64_register_convert_to_virtual,
9003 x86_64_register_convert_to_raw ): Add check which lets only
9004 floating-point values to be converted.
9005 (value_push): Delete.
9006 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9007 (i386_gdbarch_init): Number of register_bytes fixed.
9009 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9011 * MAINTAINERS: Add x86-64 target.
9013 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9015 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9016 * osfsolib.c (solib_map_sections): Ditto.
9017 * irix5-nat.c (solib_map_sections): Ditto.
9018 * corelow.c (gdb_check_format): Ditto.
9019 * symfile.c (symfile_bfd_open): Ditto.
9020 * solib.c (solib_map_sections): Ditto.
9023 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9025 * remote.c (_initialize_remote): By default, disable ``e'' and
9026 ``E'' step out-of-range packets.
9028 2002-02-26 Andreas Schwab <schwab@suse.de>
9030 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9031 m68k_linux_frame_saved_pc.
9032 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9034 (SIGCONTEXT_PC_OFFSET): Remove.
9035 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9036 m68k_linux_sigtramp_saved_pc): New functions.
9037 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9038 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9039 (UCONTEXT_PC_OFFSET): Define.
9040 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9041 non-RT and RT signal trampolines.
9043 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9045 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9046 (TARGET_NBPG, STACK_END_ADDR): Delete
9047 (VARIABLES_INSIDE_BLOCK): Delete.
9049 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9051 * utils.c (perror_with_name): Make string parameter constant.
9052 (print_sys_errmsg): Ditto.
9054 * defs.h (perror_with_name): Update.
9055 (print_sys_errmsg): Update.
9058 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9060 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9061 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9063 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9065 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9066 if it already matches the current architecture from the exec file.
9067 Include arch-utils.h for gdbarch_info_init prototype.
9068 * Makefile.in (rs6000-nat.o): Update dependencies.
9070 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9072 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9073 list of exported variables.
9075 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9077 * gdbserver/configure.srv: New file.
9078 * gdbserver/configure.in: Use configure.srv instead
9079 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9081 * gdbserver/configure: Regenerated.
9082 * gdbserver/terminal.h: New file.
9083 * gdbserver/Makefile.in: Update for configure changes. Remove
9084 more unneeded include paths.
9086 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9088 From wiz at danbala:
9089 * config/sparc/tm-sp64.h: Fix grammar and typos.
9092 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9094 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9095 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9096 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9097 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9098 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9099 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9100 * s390-tdep.c: Ditto.
9101 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9102 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9103 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9104 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9105 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9106 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9107 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9108 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9109 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9110 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9113 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9115 * lin-thread.c: Delete file.
9116 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9117 to gdb_proc_service.h.
9118 * configure: Re-generate.
9120 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9121 * serial.c (serial_open): Delete check for "ocd".
9124 * Makefile.in (linux-thread.o): Delete target.
9125 * linux-thread.c: Delete file.
9127 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9128 renamed SH files to be consistent.
9130 * symtab.c (sort_search_symbols): Use xfree.
9132 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9134 * arm-linux-tdep.c (arm_linux_init_abi): Register
9135 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9136 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9137 definition with undef, since we don't want the sysvr4 definition.
9138 (SKIP_TRAMPOLINE_CODE): Likewise.
9140 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9142 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9144 * configure.in: (AC_CHECK_FUNCS) Added test for
9145 canonicalize_file_name Regenerated.
9146 * config.in, configure: Regenerated.
9147 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9148 defined use canonicalize_file_name.
9150 2002-02-23 Michael Chastain <mec@shout.net>
9152 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9154 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9156 * README: Remove references to cygnus.com.
9157 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9158 dot com'' form. Remove references to cygnus.com and sourceware.
9160 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9162 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9163 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9164 1003.1-2001 no longer allows "head -1".
9165 * gdb/Makefile.in (version.c): Likewise.
9166 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9167 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9168 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9170 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9172 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9173 * command.h (cmd_cfunc_eq): Declare.
9174 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9176 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9177 ``struct cmd_list_element *''.
9178 * cli/cli-cmds.c (is_complete_command): Update. Use
9180 * top.c (execute_command): Pass the command to
9181 is_complete_command.
9182 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9184 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9186 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9187 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9188 architecture defines.
9189 * s390-tdep.c (s390_gdbarch_init): Likewise.
9191 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9193 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9194 (arm_linux_push_arguments): Likewise.
9195 (arm_linux_init_abi): Register them. Also register linux-specific
9197 (find_minsym_and_objfile): Use strcmp, not STREQ.
9198 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9199 (arm_linux_call_dummy_words): Delete declaration.
9200 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9201 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9203 (LOWEST_PC): Delete.
9205 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9207 * maint.c (print_section_info): Do not prepend `0x' to filepos
9208 output, it will be handled by local_hex_string_custom.
9210 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9212 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9213 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9214 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9216 2002-02-22 Jim Blandy <jimb@redhat.com>
9218 Indicate that the bcache functions don't change the strings
9220 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9221 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9223 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9225 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9227 2002-02-21 Christopher Faylor <cgf@redhat.com>
9229 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9230 find the complete path to a loaded DLL.
9232 2002-02-21 Fred Fish <fnf@redhat.com>
9234 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9235 that marks the end of the range of a function, enter a line number
9236 entry that has a line number of zero and a PC offset that matches
9237 the end of the function. This starts a range of PC's for which no
9238 line number information is known.
9239 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9240 PC's for which no line number info is found (line number is zero)
9241 then we didn't find any valid line information.
9242 * symtab.h: Document use of zero line number entry.
9244 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9246 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9247 (have_ptrace_getvrregs): Define for run time checks.
9248 (gdb_vrregset_t): New type for Altivec register handling.
9249 (fetch_register, store_register): Fetch/store altivec register
9251 (fetch_altivec_register, store_altivec_register): New functions.
9252 (supply_vrregset, fill_vrregset): New functions.
9253 (fetch_altivec_registers, store_altivec_registers): New functions.
9254 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9257 2002-02-21 Jiri Smid <smid@suse.cz>
9259 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9261 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9263 * Makefile.in (armnbsd-nat.o): Update dependencies.
9264 * armnbsd-nat.c (supply_gregset): New function. Common code to
9265 supply the integer register set.
9266 (supply_fparegset): New function. Similar for FPA registers.
9267 (fetch_regs, fetch_fp_regs): Use them.
9268 (fetch_core_registers): Likewise.
9269 (fetch_elfcore_registers): New function.
9270 (arm_netbsd_elfcore_fns): New core-file type specification.
9271 (_initialize_arm_netbsd_nat): Register it.
9273 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9275 * armnbsd-nat.c: Include gdbcore.h.
9276 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9277 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9278 'void' to declaration, to shut up ARI.
9279 (fetch_core_registers): Make static. Rewrite using supply_register.
9280 (arm_netbsd_core_fns): New core-file type specification.
9281 (_initialize_arm_netbsd_nat): New function.
9283 2002-02-21 Christopher Faylor <cgf@redhat.com>
9285 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9288 2002-02-20 Christopher Faylor <cgf@redhat.com>
9290 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9293 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9295 * jv-exp.y (parse_number): Change type of implicit longs
9296 to builtin_type_uint64.
9298 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9300 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9301 to be an integer instead of a `union wait'.
9303 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9305 * mips-linux-nat.c: Call the operating system GNU/Linux.
9306 * mips-linux-tdep.c: Likewise.
9307 * mips-tdep.c: Likewise.
9309 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9312 * jv-exp.y (parse_number): Handle 64-bit integers.
9314 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9316 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9317 AC_STDC_HEADERS to AC_HEADER_STDC.
9318 * gdbserver/configure: Regenerated.
9320 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9322 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9324 * sparc-tdep.c (get_longjmp_target): Likewise.
9326 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9328 * News: Add news about ARM and Multi-arch. Mention the new target
9331 2002-02-19 Jim Blandy <jimb@redhat.com>
9333 * stabsread.c (error_type_complaint): Improve error message.
9335 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9337 * gdbserver/README: Update documentation.
9338 * gdbserver/configure.in: Update configury to match documentation.
9339 * gdbserver/Makefile.in: Likewise.
9340 * gdbserver/configure: Regenerated.
9341 * gdbserver/aclocal.m4: New file, generated by aclocal.
9342 * gdbserver/config.in: New file, generated by autoheader.
9344 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9346 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9349 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9351 * arm-tdep.h (enum arm_float_model): New enum.
9352 (struct gdbarch_tdep): Add fp_model.
9353 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9354 up floating-point conversions until we know the floating-point model
9355 in use by the inferior. Don't complain about being unable to
9356 determine the ABI of the inferior when we don't have one.
9357 (arm_extract_return_value): Support different floating-point models.
9358 (arm_store_return_value): Likewise.
9359 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9361 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9363 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9365 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9366 of ``current_gdbarch''.
9368 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9370 * armnbsd-nat.c : ANSIfy all function declarations.
9371 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9372 (fetch_inferior_registers): Re-implement in terms of above.
9373 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9374 (store_inferior_registers): Re-implement in terms of above.
9376 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9378 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9380 * arm-linux-tdep.c: Likewise.
9381 * config/arm/tm-linux.h: Likewise.
9383 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9385 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9386 * config/arm/nbsd.mt (TM_FILE): Delete.
9387 * config/arm/tm-nbsd.h: Delete.
9389 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9391 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9392 Initialize CALL_DUMMY_LENGTH.
9394 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9396 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9398 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9399 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9400 defines one thing and that is incorrect for this port.
9401 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9403 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9405 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9407 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9409 * win32-nat.c (display_selector): New function. Displays information
9410 about the information returned by GetThreadSelectorEntry API function.
9411 (display_selectors): New function. Displays the infomation of
9412 the selector given as argument, or of CS, DS ans FS selectors
9413 if no argument is given.
9414 ( _initialize_inftarg): Add "w32" as info prefix command.
9415 Add "info w32 selector" as command calling display_selectors.
9417 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9419 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9420 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9423 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9425 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9427 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9429 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9430 (arm_fix_call_dummy): Call it.
9431 (arm_call_dummy_breakpoint_offset): Delete.
9432 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9433 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9435 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9437 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9438 Default to func_frame_chain_valid.
9439 * gdbarch.h, gdbarch.c: Re-generate.
9440 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9442 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9444 * ppc-linux-nat.c: Update copyright.
9445 (fetch_register, store_register): Add tid parameter, don't compute
9447 (fetch_ppc_registers, store_ppc_registers): Add tid
9448 parameter. Pass it along to callees.
9449 (fetch_inferior_registers, store_inferior_registers): Compute tid
9450 here, and pass it to calleed functions.
9451 (fill_gregset, supply_fpregset): Clean up formatting.
9453 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9455 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9456 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9458 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9460 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9461 * gdbarch.c gdbarch.h: Regenerate.
9462 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9464 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9465 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9466 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9468 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9469 * arm-tdep.c (arm_get_longjmp_target): New function.
9470 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9471 this to a positive value register arm_get_longjmp_target as the
9473 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9474 (arm_linux_init_abi): Set up longjmp description in tdep.
9475 * armnbsd-nat.c (get_longjmp_target): Delete.
9476 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9477 description in tdep.
9478 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9479 (get_longjmp_target): Delete declaration.
9480 (GET_LONGJMP_TARGET): Delete.
9481 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9482 (GET_LONGJMP_TARGET): Delete.
9484 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9486 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9487 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9488 of ``current_gdbarch''.
9490 2002-02-17 Tom Tromey <tromey@redhat.com>
9492 * cli/cli-cmds.c (compare_strings): New function.
9493 (complete_command): Only print each unique item once.
9494 * completer.h (complete_line): Declare.
9495 * completer.c (complete_line): New function.
9496 (line_completion_function): Use it.
9498 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9500 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9501 * gdbarch.h, gdbarch.c: Re-generate.
9503 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9505 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9507 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9509 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9510 * valops.c (value_arg_coerce): Don't take the address of a reference
9511 to convert an argument to a reference.
9513 2002-02-15 Christopher Faylor <cgf@redhat.com>
9515 * win32-nat.c (get_image_name): New function.
9516 (handle_load_dll): Use get_image_name function.
9517 (get_child_debug_event): Avoid registering debug events until possibly
9518 execed process is started.
9519 (child_create_inferior): Allow invocation via shell so that command
9520 line redirection, etc. works ok.
9521 (_initialize_inftarg): Add new command: "set shell" to control whether
9522 a shell is used to start a process.
9524 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9526 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9527 instead of find_register_by_number.
9528 (cannot_store_register): Likewise.
9530 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9532 * dwarf2read.c: Replace fprintf (stderr, ...) by
9533 fprintf_unfiltered (gdb_stderr, ...).
9535 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9537 * gdbserver/gdbserver.1: Document --attach.
9539 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9541 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9543 * arm-tdep.c (arm_default_arm_le_breakpoint)
9544 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9545 (arm_default_thumb_be_breakpoint): New. Initialize them from
9546 traditional breakpoint defines.
9547 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9548 (arm_gdbarch_init): Initialize new breakpoint variables.
9549 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9550 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9551 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9552 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9554 (arm_netbsd_init_abi_common): ... here; new function.
9555 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9556 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9557 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9558 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9560 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9562 * arm-tdep.h (enum arm_abi): New enum.
9563 (struct gdbarch_tdep): New structure.
9564 (LOWEST_PC): Provide a default.
9565 (arm_gdbarch_register_os_abi): Declare new function.
9566 * arm-tdep.c (arm_abi_names): New array.
9567 (process_note_abi_tag_sections): New function.
9568 (get_elfosabi): New function.
9569 (arm_gdbarch_register_os_abi): New function.
9570 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9571 support for that ABI has been built in, then call the appropriate
9572 configuration routine. Use gdbarch_num_regs() to get the number
9574 (arm_dump_tdep): New function.
9575 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9576 place-holder functions.
9577 (_initialize_arm_tdep): Register them.
9578 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9580 * armnbsd-tdep.c: New file.
9581 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9582 * config/arm/nbsd.mt (TDEPFILES): Add it.
9583 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9585 * armnbsd-nat.c: Include regcache.h.
9586 * Makefile.in (armnbsd-nat.o): Update dependency list.
9588 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9590 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9592 * gdbserver/Makefile.in: Fix typos in target rules.
9594 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9596 Fix part of PR gdb/267.
9597 * linespec.c (find_methods): Handle constructors specially for now.
9599 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9601 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9603 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9604 standard_coerce_float_to_double().
9606 2002-02-14 Christopher Faylor <cgf@redhat.com>
9608 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9611 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9613 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9614 find_variant_by_name, because it confuses the multiarch
9615 framework. Return NULL if there isn't an architecture with the
9616 user supplied name, instead of forcing a different one without
9617 recording the change with the multiarch machinery.
9618 (find_variant_by_name): Delete.
9620 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9622 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9623 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9625 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9627 * stack.c (print_frame_info_base): When calling
9628 print_frame_info_listing_hook, set current_source_symtab.
9630 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9632 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9633 and remove unused $(INCLUDE_DIR).
9634 Add regcache.c to OBS.
9635 Add generated register protocol files to clean target.
9636 Update dependencies for new objects, obsolete old target code.
9638 * gdbserver/linux-low.c: Remove all platform-specific code to
9639 new files. Remove various dead code. Update to use regcache
9641 * gdbserver/remote-utils.c (fromhex): Add return statement
9643 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9645 (input_interrupt): Add integer parameter to match prototype
9646 of a signal handler.
9647 (outreg): Use register_data ().
9648 (prepare_resume_reply): Use gdbserver_expedite_regs.
9649 * gdbserver/server.c (main): Dynamically allocate own_buf because
9650 PBUFSIZ is no longer constant. Use registers_to_string () and
9651 registers_from_string ().
9652 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9653 for error (), fatal (), and warning (). Update definition of
9654 PBUFSIZ to use regcache functionality. Add include guard.
9655 * gdbserver/utils.c (fatal): Add missing ``const''.
9656 (warning): New function.
9658 * regformats/regdat.sh: Include "regcache.h" in generated files.
9659 Provide init_registers () function.
9660 * regformats/regdef.h: Add prototype for set_register_cache ().
9663 * gdbserver/linux-arm-low.c: New file.
9664 * gdbserver/linux-i386-low.c: New file.
9665 * gdbserver/linux-ia64-low.c: New file.
9666 * gdbserver/linux-m68k-low.c: New file.
9667 * gdbserver/linux-mips-low.c: New file.
9668 * gdbserver/linux-ppc-low.c: New file.
9669 * gdbserver/linux-sh-low.c: New file.
9671 * gdbserver/regcache.c: New file.
9672 * gdbserver/regcache.h: New file.
9674 * gdbserver/low-linux.c: Removed obsolete file.
9676 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9678 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9679 * config/i386/linux.mt: Likewise.
9680 * config/ia64/linux.mt: Likewise.
9681 * config/m68k/linux.mh: Likewise.
9682 * config/powerpc/linux.mh: Likewise.
9683 * config/mips/linux.mt: Likewise.
9685 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9687 * config/i386/i386lynx.mh: Mark gdbserver variables
9688 as (currently) obsolete for this target.
9689 * config/i386/nbsd.mt: Likewise.
9690 * config/i386/nbsdelf.mt: Likewise.
9691 * config/m32r/m32r.mt: Likewise.
9692 * config/m68k/m68klynx.mh: Likewise.
9693 * config/m68k/nbsd.mt: Likewise.
9694 * config/m68k/sun3os4.mh: Likewise.
9695 * config/mips/vr5000.mt: Likewise.
9696 * config/ns32k/nbsd.mt: Likewise.
9697 * config/pa/hppabsd.mh: Likewise.
9698 * config/pa/hppaosf.mh: Likewise.
9699 * config/powerpc/nbsd.mt: Likewise.
9700 * config/rs6000/rs6000lynx.mh: Likewise.
9701 * config/s390/s390.mt: Likewise.
9702 * config/s390/s390x.mt: Likewise.
9703 * config/sparc/sparclynx.mh: Likewise.
9704 * config/sparc/sun4os4.mh: Likewise.
9705 * config/i386/x86-64linux.mt: Likewise.
9706 * config/sparc/linux.mh: Likewise.
9708 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9710 * configure.tgt: Configure gdbserver only for known working
9711 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9712 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9713 SUBDIRS if it is configured. Update comment for ${nativefile}.
9714 * configure: Regenerated.
9716 2002-02-13 Michael Snyder <msnyder@redhat.com>
9718 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9720 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9721 (default_gcore_mach): Just return 0, work around a problem in bfd.
9722 (default_gcore_target): OK to return NULL if exec_bfd is null.
9723 (make_mem_sec): Use a cast, avoid a warning.
9725 * procfs.c (find_memory_regions_callback): Use a cast instead of
9726 calling host_pointer_to_address (which complains if
9727 sizeof (host pointer) != sizeof (target pointer)).
9728 (procfs_make_note_section): Avoid overflow in psargs string.
9730 * procfs.c (procfs_make_note_section): Make the default
9731 implementation return an error.
9733 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9735 * procfs.c (procfs_make_note_section): Provide a default definition
9736 (for alpha-dec-osf4.0f). Fix typos.
9738 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9740 * linux-proc.c: Add include of regcache.h.
9741 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9743 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9745 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9746 * memattr.c (create_mem_region): Disallow useless empty region.
9747 Regions are half-open intervals, so allow [A..B) [B..C) as
9750 2002-02-13 Michael Chastain <mec@shout.net>
9752 * defs.h: Kill CONST_PTR.
9753 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9754 * c-lang.c (c_builtin_types): Likewise.
9755 * ch-lang.c (ch_builtin_types): Likewise.
9756 * f-lang.c (f_builtin_types): Likewise.
9757 * language.c (unknown_builtin_types): Likewise.
9758 * m2-lang.c (m2_builtin_types): Likewise.
9759 * p-lang.c (pascal_builtin_types): Likewise.
9760 * scm-lang.c (c_builtin_types): Likewise.
9762 2002-02-13 Keith Seitz <keiths@redhat.com>
9764 * arm-tdep.h (arm_get_next_pc): Add declaration.
9766 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9768 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9769 with other related struct-returning functions.
9770 (arm_extract_struct_value_address): New function.
9771 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9772 initialize float_format, double_format and long_double_format as
9773 appropriate to the endianness of the target.
9774 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9775 (arm_use_struct_convention): Delete declaration.
9776 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9778 2002-02-13 Keith Seitz <keiths@redhat.com>
9780 * defs.h (core_addr_to_string_nz): New function.
9782 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9784 Apply missing bits of 2002-01-15 patch.
9785 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9786 (fill_fpregset): Use i387_fill_fsave.
9788 2002-02-12 Keith Seitz <keiths@redhat.com>
9790 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9791 (core_addr_to_string_nz): New function.
9793 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9795 * arm-linux-nat.c: Really include arm-tdep.h.
9796 * config/arm/tm-linux.h (struct type, struct value): Declare.
9798 2002-02-11 Michael Snyder <msnyder@redhat.com>
9800 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9801 (gcore section): Ifdef for Solaris and Unixware only.
9802 (procfs_do_thread_registers): Unixware needs one lwpstatus
9803 per thread (not one prstatus or pstatus).
9804 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9805 not over all gdb threads. For unixware, call elfcore_write_pstatus
9806 once before iterating over threads.
9808 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9810 * arm-tdep.h: New file.
9811 * arm-tdep.c: Include arm-tdep.h.
9812 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9813 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9814 (arm_print_float_info, arm_register_type, convert_to_extended)
9815 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9816 (arm_extract_return_value, arm_register_name): Make static.
9817 (arm_software_single_step): Similarly. Fix types in declaration.
9818 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9819 (arm_store_return_value, arm_store_struct_return): New functions.
9820 (arm_gdbarch_init): Register the above functions. Also register
9821 call_dummy_start_offset, sizeof_call_dummy_words,
9822 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9823 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9824 max_register_virtual_size, register_size. Set up
9825 prologue_cache.saved_regs here, rather than ...
9826 (_initialize_arm_tdep): ... here.
9827 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9829 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9830 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9831 (arm_print_float_info, arm_register_type, convert_to_extended)
9832 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9833 (arm_extract_return_value, arm_register_name): Delete declarations.
9834 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9835 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9836 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9837 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9838 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9839 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9840 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9841 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9842 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9843 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9844 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9845 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9847 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9848 * remote-rdi.c remote-rdp.c: Likewise.
9849 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9850 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9851 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9854 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9855 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9856 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9857 from non-ARM_ prefixed definitions.
9858 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9860 * remote-rdi.c remote-rdp.c: Likewise.
9861 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9863 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9865 * arm-tdep.c (arm_frameless_function_invocation)
9866 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9867 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9868 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9869 (arm_pop_frame, arm_get_next_pc): Make static.
9870 (arm_gdbarch_init): Register above in gdbarch structure.
9871 (arm_read_fp): Renamed from arm_target_read_fp.
9872 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9873 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9874 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9875 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9876 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9877 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9878 (arm_pc_is_thumb_dummy): Delete declarations.
9879 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9880 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9881 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9882 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9884 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9886 * symtab.c (compare_search_syms): New function.
9887 (sort_search_symbols): New function.
9888 (search_symbols): Sort symbols after searching rather than
9891 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9893 * NEWS: Linux -> GNU/Linux.
9895 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9897 * gdbarch.sh: For for level one methods, disallow a definition
9898 when partially multi-arched. Add comments explaining rationale.
9899 * gdbarch.h: Re-generate.
9901 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9903 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9906 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9908 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9910 * gdbarch.c: Re-generate.
9912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9914 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9915 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9918 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9920 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9922 (PUSH_ARGUMENTS): Switch to using predefault.
9923 * gdbarch.c: Regenerate.
9925 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9927 * valops.c (PUSH_ARGUMENTS): Delete definition.
9928 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9929 partial. Default to default_push_arguments.
9930 * gdbarch.h, gdbarch.c: Regenerate.
9932 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9934 * defs.h (throw_exception): Rename return_to_top_level. Update
9936 * utils.c (error_stream, internal_verror, quit): Ditto.
9937 * top.c (throw_exception, catcher): Ditto.
9938 * sparclet-rom.c (sparclet_load): Ditto.
9939 * remote.c (interrupt_query, minitelnet): Ditto.
9940 * remote-sds.c (interrupt_query): Ditto.
9941 * remote-mips.c (mips_error, mips_kill): Ditto.
9942 * ocd.c (interrupt_query): Ditto.
9943 * monitor.c (monitor_interrupt_query): Ditto.
9944 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9945 * target.h: Update comment.
9947 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9949 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9951 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9952 default_double_format.
9953 * gdbarch.h, gdbarch.c: Re-generate.
9954 * findvar.c (floatformat_unknown): Delete variable definition.
9955 * doublest.h (floatformat_unknown): Delete variable declaration.
9957 2002-02-09 Jim Blandy <jimb@redhat.com>
9959 * stabsread.c (read_type): Add code to parse Sun's syntax for
9960 prototyped function types.
9962 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9964 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9965 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9967 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9969 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9970 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9971 now _initialize_xcoffsolib gets called again and overrides the
9972 commands from solib.c in a native configuration.
9974 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9976 * doublest.c (store_typed_floating): Don't try to return a value.
9979 2002-02-08 Jim Blandy <jimb@redhat.com>
9981 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9982 is prototyped and has no arguments, print its argument list as
9985 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9987 * MAINTAINERS (write-after-approval): Add myself.
9988 (paper-trail): I've escaped!
9990 2002-02-08 Christopher Faylor <cgf@redhat.com>
9992 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9994 (_initialize_check_for_gdb_ini): Ditto.
9996 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9998 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9999 xaprintf -> xasprintf.
10001 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10003 * win32-nat.c: Remove use of printf and sprintf functions.
10005 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10007 * arm-tdep.c (arm_frame_chain_valid): Make static.
10008 (arm_push_arguments): Likewise.
10009 (arm_gdbarch_init): New function.
10010 (_initialize_arm_tdep): Call it.
10011 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10012 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10013 (FRAME_CHAIN_VALID): Delete.
10014 (arm_frame_chain_valid): Delete declaration.
10015 (PUSH_ARGUMENTS): Delete.
10016 (arm_push_arguments): Delete declaration.
10017 (CALL_DUMMY_P): Delete.
10019 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10020 Corinna Vinschen <vinschen@redhat.com>
10022 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10023 on builtin float types.
10025 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10027 * utils.c: Include <curses.h> before "bfd.h".
10028 * tui/tui-hooks.c: Likewise.
10029 * tui/tui.c: Likewise.
10030 * tui/tuiCommand.c: Likewise.
10031 * tui/tuiData.c: Likewise.
10032 * tui/tuiDataWin.c: Likewise.
10033 * tui/tuiDisassem.c: Likewise.
10034 * tui/tuiGeneralWin.c: Likewise.
10035 * tui/tuiIO.c: Likewise.
10036 * tui/tuiLayout.c: Likewise.
10037 * tui/tuiRegs.c: Likewise.
10038 * tui/tuiSource.c: Likewise.
10039 * tui/tuiSourceWin.c: Likewise.
10040 * tui/tuiStack.c: Likewise.
10041 * tui/tuiWin.c: Likewise.
10043 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10045 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10046 to include space for pseudoregs as well. Update loops accordingly.
10047 (sh_fp_frame_init_saved_regs): Ditto.
10048 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10050 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10052 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10053 Add Richard Earnshaw to Arm maintainers.
10055 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10057 * defs.h (warning_begin): Delete declaration.
10059 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10062 2002-02-07 Michael Snyder <msnyder@redhat.com>
10064 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10065 Logic bug, remove misplaced else.
10067 2002-02-07 Klee Dienes <klee@apple.com>
10069 * fork-inferior.c (fork_inferior): Add '!' to the list of
10070 characters that need to be quoted when building a string for the
10071 shell. Quote '!' specifically with a backslash, since CSH chokes
10072 when trying to evaluate "str!str".
10074 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10076 * rdi-share/host.h: Only provide a typedef for bool if it is not
10079 2002-02-04 Michael Snyder <msnyder@redhat.com>
10081 * breakpoint.h (enum bptype): Add new overlay event bp type.
10082 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10084 * breakpoint.c (create_internal_breakpoint): New function.
10085 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10086 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10087 (create_thread_event_breakpoint): Ditto.
10088 (create_solib_event_breakpoint): Ditto.
10089 (create_overlay_event_breakpoint): New function.
10090 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10091 (update_breakpoints_after_exec): Delete and re-initialize
10092 overlay event breakpoints after an exec. Add FIXME comment
10093 about longjmp breakpoint.
10094 (print_it_typical): Ignore overlay event breakpoints.
10095 (print_one_breakpoint): Ditto.
10097 (bpstat_what): Do not stop for overlay event breakpoints.
10098 (delete_breakpoint): Don't delete overlay event breakpoints.
10099 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10100 (breakpoint_re_set): Re-create overlay event breakpoint.
10102 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10103 (overlay_manual_command): Disable overlay breakpoints.
10104 (overlay_off_command): Disable overlay breakpoints.
10106 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10108 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10109 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10110 to here from config/tm-arm.h.
10111 (coff_sym_is_thumb): Make static.
10112 (arm_elf_make_msymbol_special): New function.
10113 (arm_coff_make_msymbol_special): New function.
10114 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10115 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10116 (coff_sym_is_thumb): Delete declaration.
10117 (arm_elf_make_msymbol_special): Declare.
10118 (arm_coff_make_msymbol_special): Declare.
10119 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10120 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10122 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10124 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10126 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10128 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10129 * gdbarch.c gdbarch.h: Regenerate.
10130 * arch-utils.c (default_print_float_info): New function.
10131 * arch-utils.h (default_print_float_info): Prototype it.
10132 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10133 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10134 (PRINT_FLOAT_INFO): Document it.
10136 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10137 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10138 (PRINT_FLOAT_INFO): Define.
10140 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10142 * win32-nat.c (_initialize_check_for_gdb_ini):
10143 Add typecast to sprintf argument to suppress a warning.
10145 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10147 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10148 to allow easier handling of pass state.
10149 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10150 that gives exception name and address.
10151 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10152 and set last_sig value to ourstatus->value.sig. Some missing
10154 (child_continue): Correctly report continue_status.
10155 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10156 TARGET_SIGNAL_0 (new default value).
10157 (child_resume): consider sig argument passed to decide if
10158 the exception should be passed to debuggee or not.
10160 2002-02-05 Michael Snyder <msnyder@redhat.com>
10162 * regcache.c (fetch_register): Call target_fetch_register
10163 only if we don't call FETCH_PSEUDO_REGISTER.
10164 (store_register): Call target_store_register only if we
10165 don't call STORE_PSEUDO_REGISTER.
10167 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10169 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10170 ELF_MAKE_MSYMBOL_SPECIAL.
10171 * gdbarch.c, gdbarch.h: Regenerate.
10172 * arch-utils.c (default_make_msymbol_special): New function.
10173 * arch-utils.h (default_make_msymbol_special): Export.
10174 * elfread.c (elf_symtab_read): Compile use of
10175 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10177 * coffread.c (coff_symtab_read): Ditto, for
10178 COFF_MAKE_MSYMBOL_SPECIAL.
10180 2002-02-05 Jim Blandy <jimb@redhat.com>
10182 * solib-svr4.c (svr4_truncate_ptr): New function.
10183 (svr4_relocate_section_addresses): Do the address arithmetic with
10184 the appropriate truncation for target addresses, even when
10185 CORE_ADDR is larger than a target address.
10187 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10189 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10192 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10194 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10197 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10199 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10201 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10203 * gdbserver/linux-low.c: Remove unused include files.
10205 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10207 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10208 (read_inferior_memory): Use it.
10209 (write_inferior_memory): Likewise.
10211 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10213 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10214 grubbing through sys_errlist.
10216 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10218 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10220 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10221 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10223 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10225 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10226 (do_sfunc, set_cmd_sfunc): New functions.
10228 * command.h (struct cmd_list_element): Add field func.
10229 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10230 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10231 * cli/cli-decode.h: Ditto.
10233 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10234 (help_all, help_cmd_list): Ditto.
10235 (find_cmd, complete_on_cmdlist): Ditto.
10236 * top.c (execute_command): Ditto.
10238 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10241 * infcmd.c (notice_args_read): Fix function signature.
10243 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10244 * cli/cli-decode.c (add_set_cmd): Ditto.
10245 * utils.c (initialize_utils): Ditto.
10246 * maint.c (_initialize_maint_cmds): Ditto.
10247 * infrun.c (_initialize_infrun): Ditto.
10248 * demangle.c (_initialize_demangler): Ditto.
10249 * remote.c (add_packet_config_cmd): Ditto.
10250 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10251 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10252 * proc-api.c (_initialize_proc_api): Ditto.
10253 * kod.c (_initialize_kod): Ditto.
10254 * valprint.c (_initialize_valprint): Ditto.
10255 * top.c (init_main): Ditto.
10256 * infcmd.c (_initialize_infcmd): Ditto.
10257 * corefile.c (_initialize_core): Ditto.
10258 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10259 * arch-utils.c (initialize_current_architecture): Ditto.
10260 (_initialize_gdbarch_utils): Ditto.
10261 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10263 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10264 * wince.c (_initialize_inftarg): Ditto.
10265 * symfile.c (_initialize_symfile): Ditto.
10266 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10267 * language.c (_initialize_language): Ditto.
10268 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10270 2002-02-04 Michael Snyder <msnyder@redhat.com>
10272 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10274 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10276 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10277 Add rules for building the register data files.
10279 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10281 * regformats/regdat.sh: Add braces to the definition of
10282 expedite_regs_${arch}.
10284 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10286 * regformats/regdef.h (struct reg): Add comment describing the
10287 requirements for offset and size fields.
10289 2002-02-04 Andreas Schwab <schwab@suse.de>
10291 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10292 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10294 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10296 * gdbarch.sh (copyright): Update years in generated header.
10297 (SMASH_TEXT_ADDRESS): Add rule.
10298 * gdbarch.h, gdbarch.c: Re-generate.
10299 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10300 * dbxread.c: Likewise.
10301 * dwarfread.c: Likewise.
10302 * elfread.c: Likewise.
10303 * somread.c: Likewise.
10305 * arm-tdep.c (arm_smash_text_address): New function.
10306 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10308 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10310 Add support for hardware watchpoints on win32 native.
10311 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10312 CONTEXT_DEBUG_REGISTERS.
10313 (dr variable): New variable. Static array containing a local copy
10314 of debug registers.
10315 (debug_registers_changed): New variable. Reflects when debug registers
10316 are changed and need to be written to inferior.
10317 (debug_registers_used): New variable. Reflects when any debug register
10318 was set, used when new threads are created.
10319 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10321 (thread_rec): Set dr array if id is the thread of current_event .
10322 (child_continue, child_resume): Change the debug registers for all
10323 threads if debug_registers_changed.
10324 (child_add_thread): Change the debug registers if debug_registers_used.
10325 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10326 Link nm.h to new nm-cygwin.h file.
10327 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10328 of hardware registers.
10330 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10332 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10333 Restore behavour broken by 2002-01-20 Andrew Cagney
10334 <ac131313@redhat.com> IEEE_FLOAT removal.
10336 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10338 * c-valprint.c (c_val_print): Pass a proper valaddr to
10339 cp_print_class_method.
10340 * valops.c (search_struct_method): If there is only one method
10341 and args is NULL, return that method.
10343 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10345 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10346 accessing tag_name directly.
10348 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10350 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10351 of accessing tag_name directly.
10353 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10356 * gdbtypes.c (replace_type): New function.
10357 * gdbtypes.h (replace_type): Add prototype.
10358 * stabsread.c (read_type): Use replace_type.
10360 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10362 * Makefile.in (memattr.o): Add missing dependencies rule.
10364 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10366 * breakpoint.c (break_at_finish_command): Really export.
10367 (break_at_finish_at_depth_command): Ditto.
10368 (tbreak_at_finish_command): Ditto.
10369 * hppa-tdep.c: Include completer.h.
10370 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10371 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10373 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10375 * utils.c (do_write): New function.
10376 (error_stream): Rewrite combining the code from error_begin and
10378 (verror): Rewrite using error_stream.
10379 (error_begin): Delete function.
10381 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10383 * utils.c (error_begin): Make static.
10384 * defs.h (error_begin): Delete declaration.
10386 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10387 (decode_line_1): Use cplusplus_error instead of error_begin,
10388 cplusplus_hint and return_to_top_level.
10389 * coffread.c (coff_symfile_read): Use error instead of error_begin
10390 and return_to_top_level.
10391 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10393 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10395 * language.h (type_error, range_error): Make string parameter
10397 * language.c (warning_pre_print): Delete extern declaration.
10398 * dwarfread.c (warning_pre_print): Ditto.
10399 * language.c (type_error, range_error): Rewrite to use verror and
10400 vwarning instead of warning_begin.
10402 2002-02-01 Michael Snyder <msnyder@redhat.com>
10404 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10405 (set_ignore_count): Move misplaced comment back where it belongs.
10407 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10409 * command.h (NO_FUNCTION): Delete macro.
10410 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10411 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10412 * tracepoint.c (_initialize_tracepoint): Ditto.
10413 * cli/cli-decode.c (add_set_cmd): Ditto.
10414 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10416 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10418 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10419 Update ``this'' pointer when calling virtual functions.
10421 2002-02-01 Michael Snyder <msnyder@redhat.com>
10423 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10424 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10426 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10428 * regformats/reg-arm.dat: New file.
10429 * regformats/reg-i386.dat: New file.
10430 * regformats/reg-ia64.dat: New file.
10431 * regformats/reg-m68k.dat: New file.
10432 * regformats/reg-mips.dat: New file.
10433 * regformats/reg-ppc.dat: New file.
10434 * regformats/reg-sh.dat: New file.
10435 * regformats/regdef.h: New file.
10436 * regformats/regdat.sh: New file.
10438 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10440 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10441 (arm_frame_args_address, arm_frame_locals_address): New functions.
10442 (arm_frame_num_args): New function.
10443 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10444 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10445 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10447 2002-01-31 Michael Snyder <msnyder@redhat.com>
10449 * breakpoint.c (break_at_finish_command): Export.
10450 (break_at_finish_at_depth_command): Export.
10451 (tbreak_at_finish_command): Export.
10452 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10453 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10454 "txbreak" commands, which are HPPA specific.
10456 * printcmd.c (disassemble_command): Remove an ancient
10457 artifact of an old merge.
10459 * symfile.h (enum overlay_debugging_state):
10460 Define enum constant values for overlay mode.
10461 * symfile.c (overlay_debugging): Use enums instead of literals.
10462 (overlay_is_mapped, overlay_auto_command,
10463 overlay_manual_command): Ditto.
10465 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10466 breakpoint_here_p, breakpoint_inserted_here_p,
10467 breakpoint_thread_match, bpstat_stop_status,
10468 describe_other_breakpoints, check_duplicates, clear_command):
10469 Coding standard fixes.
10471 * target.c (target_xfer_memory): Add spaces, coding standard.
10472 (do_xfer_memory): Add missing line to trust-readonly
10473 code: check bfd SEC_READONLY flag for section.
10475 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10477 * PROBLEMS: Fix typo, 5.1->5.1.1.
10479 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10481 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10482 data symbols, since we search based on textlow and texthigh.
10483 (find_pc_sect_symtab): Likewise.
10485 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10487 * defs.h (vwarning): Declare.
10488 * utils.c (vwarning): New function.
10489 (warning): Call vwarning.
10490 (warning_begin): Delete function.
10492 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10493 the warning message.
10494 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10497 2002-01-30 Michael Snyder <msnyder@redhat.com>
10499 * NEWS: Mention "set trust-readonly-sections" command.
10500 Mention generate-core-file command.
10502 2002-01-15 Michael Snyder <msnyder@redhat.com>
10504 * target.c: New command, "set trust-readonly-sections on".
10505 (do_xfer_memory): Honor the suggestion to trust readonly sections
10506 by reading them from the object file instead of from the target.
10507 (initialize_targets): Register command "set trust-readonly-sections".
10509 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10511 * parse.c (target_map_name_to_register): Simplify, search regs and
10512 pseudo-regs using a single loop.
10514 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10516 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10518 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10520 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10521 * config/i386/i386v42mp.mh: Add i387-nat.o .
10522 * i386v4-nat.c: Include i387-nat.h.
10523 (supply_fpregset): Use i387_supply_fsave.
10524 (fill_fpregset): Use i387_fill_fsave.
10526 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10528 * arm-tdep.c (arm_call_dummy_words): Define.
10529 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10530 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10531 (CALL_DUMMY_WORDS): Define.
10532 (arm_call_dummy_words): Declare.
10533 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10534 (arm_linux_call_dummy_words): Declare.
10536 2002-01-30 Andreas Schwab <schwab@suse.de>
10538 * m68klinux-nat.c: Fix last change to use regcache_collect
10539 instead of referencing registers[] directly.
10541 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10543 * parse.c (target_map_name_to_register): Delete code wrapped in
10544 #ifdef REGISTER_NAME_ALIAS_HOOK.
10546 2002-01-28 Michael Snyder <msnyder@redhat.com>
10548 * regcache.c (legacy_read_register_gen): Need to be able to
10549 read pseudo-register as well as real register.
10550 (legacy_write_register_gen): Ditto.
10552 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10554 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10555 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10556 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10557 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10558 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10559 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10560 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10561 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10562 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10563 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10564 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10565 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10566 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10567 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10568 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10569 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10570 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10571 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10572 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10573 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10575 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10577 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10578 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10579 (initialize_current_architecture): Update target_byte_order using
10580 information from BFD.
10581 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10582 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10584 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10586 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10587 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10589 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10590 #ifdef INVALID_FLOAT.
10591 * infcmd.c (do_registers_info): Ditto.
10592 * values.c (unpack_double): Ditto. Add comment.
10594 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10595 already commented out.
10597 2002-01-26 Andreas Schwab <schwab@suse.de>
10599 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10600 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10601 registers and add support for PTRACE_GETREGS.
10603 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10605 GDB 5.1.1 released from 5.1 branch.
10606 * NEWS: Add 5.1.1 news.
10607 * README: Sync with 5.1 branch.
10609 2002-01-23 Fred Fish <fnf@redhat.com>
10611 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10612 stabstring on initial malloc. Reallocing will copy it for us,
10615 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10617 * Makefile.in (hpread_h): Delete.
10618 (HFILES_NO_SRCDIR): Remove hpread.h.
10619 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10620 (hpread.o): Update dependencies.
10621 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10623 * hp-psymtab-read.c: Remove file.
10624 * hp-symtab-read.c: Remove file.
10625 * hpread.h: Remove file.
10627 * hpread.c: Merge all contents of hp-psymtab-read.c,
10628 hp-symtab-read.c and hpread.h into this file, as it was prior to
10631 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10632 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10633 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10634 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10636 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10638 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10639 fill_gregset): Call gdbarch_tdep() just once, assign result to
10640 variable and use that, instead of calling the function several
10643 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10645 * configure.host: Accept sparcv9 as alias for sparc64.
10646 * configure.tgt: Likewise.
10648 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10650 * solib-aix5.c (build_so_list_from_mapfile)
10651 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10652 arguments is not reversed.
10653 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10654 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10656 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10658 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10659 modified version of obsolete sh_fetch_pseudo_register.
10660 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10661 (sh4_register_read): New function.
10662 (sh_pseudo_register_write): New function. Renamed and modified
10663 version of obsolete sh_store_pseudo_register.
10664 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10665 (sh4_register_write): New function.
10666 (sh_gdbarch_init): Remove setting of gdbarch function
10667 fetch_pseudo_register and store_pseudo_register. Remove setting of
10668 register_convert_to_raw, register_convert_to_virtual,
10669 register_convertible.
10670 (sh_sh4_register_convertible): Delete. No longer needed. All is
10671 taken care by architecture specific functions
10672 register_read/register_write.
10673 (sh_sh4_register_convert_to_virtual): Make static.
10674 (sh_sh4_register_convert_to_raw): Ditto.
10676 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10678 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10679 (floatformat_is_nan, floatformat_mantissa): Ditto.
10681 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10682 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10683 builtin_type_ieee_double_little,
10684 builtin_type_ieee_double_littlebyte_bigword,
10685 builtin_type_m68881_ext, builtin_type_i960_ext,
10686 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10687 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10688 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10689 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10691 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10693 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10694 parameter. Set frameless flag if it exists and depended of
10695 whether the scanned function is frameless or not.
10696 (xstormy16_skip_prologue): If function is frameless, return
10697 result of xstormy16_scan_prologue().
10698 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10701 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10703 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10704 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10705 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10706 sh_sh4_register_byte, sh_sh4_register_raw_size,
10707 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10708 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10709 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10710 sh_store_pseudo_register, sh_do_pseudo_register): Call
10711 gdbarch_tdep() just once, assign result to variable and use that,
10712 instead of calling the function several times.
10714 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10716 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10717 macros instead of LAST_FPU_CTRL_REGNUM.
10718 (store_register): Likewise.
10720 2002-01-21 Jim Blandy <jimb@redhat.com>
10722 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10723 is up-to-date before running the program, not just when a program
10726 2002-01-21 Fred Fish <fnf@redhat.com>
10728 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10729 when we have found all instructions we are looking for.
10731 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10733 * arm-tdep.c (arm_register_name): New function.
10734 (arm_registers_names): Make static.
10735 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10736 (arm_register_name): Declare.
10737 (REGISTER_NAME): Use it.
10739 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10740 Kevin Buettner <kevinb@redhat.com>
10742 Convert arm targets to new FRAME interface.
10743 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10744 (arm_frame_find_save_regs): Delete.
10745 (arm_frame_init_saved_regs): New.
10746 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10747 Allocate extra_info as required. Convert all uses of fsr.regs
10748 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10750 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10751 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10752 (check_prologue_cache, save_prologue_cache): Likewise.
10753 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10754 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10755 (FRAME_FIND_SAVED_REGS): Delete.
10756 (arm_frame_find_saved_regs): Delete prototype.
10757 (arm_frame_init_saved_regs): New prototype.
10758 (FRAME_INIT_SAVED_REGS): Define.
10760 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10762 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10764 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10766 From Jeff Law <law@redhat.com>:
10767 * infttrace.c: Include <sys/pstat.h>.
10768 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10769 exec file if the ttrace equivalent fails.
10771 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10773 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10774 (closeLogFile): Ditto.
10776 2002-01-20 Michael Chastain <mec@shout.net>
10778 * top.c (print_gdb_version): Bump copyright year to 2002.
10780 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10782 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10783 Zannoni and Eli Zaretskii.
10785 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10787 * buildsym.c: Update copyright years.
10788 * c-typeprint.c: Likewise.
10789 * dwarf2read.c: Likewise.
10790 * f-typeprint.c: Likewise.
10791 * gdbtypes.c: Likewise.
10792 * gdbtypes.h: Likewise.
10793 * hp-symtab-read.c: Likewise.
10794 * hpread.c: Likewise.
10795 * mdebugread.c: Likewise.
10796 * p-typeprint.c: Likewise.
10798 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10800 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10801 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10802 byte-order selectable.
10803 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10804 * arch-utils.c: Ditto.
10805 (set_endian): Ditto.
10806 (set_endian_from_file): Ditto.
10807 * gdbserver/low-sim.c (create_inferior): Ditto.
10808 * gdbarch.sh: Ditto.
10809 * gdbarch.h: Re-generate.
10810 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10811 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10812 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10813 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10814 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10815 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10816 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10817 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10819 * config/mips/tm-wince.h: Remove #undef of macro
10820 TARGET_BYTE_ORDER_SELECTABLE.
10821 * config/sh/tm-wince.h: Ditto.
10823 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10825 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10826 member function fields. Add accessor macro
10827 TYPE_FN_FIELD_ARTIFICIAL.
10828 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10829 * c-typeprint.c (c_type_print_base): Skip artificial member
10832 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10834 * f-typeprint.c: Delete unused function f_type_print_args.
10835 * p-typeprint.c: Delete unused function pascal_type_print_args.
10837 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10839 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10840 comment. Add ``artificial'' to ``union field_location''.
10842 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10844 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10845 * mdebugread.c (parse_symbol): Likewise.
10846 * stabsread.c (define_symbol): Likewise.
10847 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10848 initializing TYPE_FIELD_BITPOS to n (obsolete).
10849 (hpread_doc_function_type): Likewise.
10850 * hpread.c (hpread_function_type): Likewise.
10852 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10854 * configure.in (host_makefile_frag): Only require a host makefile
10855 fragment when a native build.
10856 * configure: Re-generate.
10858 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10860 * doublest.h (floatformat_from_type): Declare.
10861 * doublest.c (floatformat_from_type): New function.
10862 (convert_typed_floating): Use.
10864 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10865 call to function floatformat_from_type.
10867 * gdbarch.sh (IEEE_FLOAT): Delete.
10868 * gdbarch.h, gdbarch.c: Re-generate.
10869 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10870 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10871 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10872 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10873 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10874 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10875 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10876 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10877 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10878 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10879 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10880 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10882 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10883 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10884 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10885 * sh-tdep.c (sh_gdbarch_init): Ditto.
10886 * mips-tdep.c (mips_gdbarch_init): Ditto.
10887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10888 * cris-tdep.c (cris_gdbarch_init): Ditto.
10890 2002-01-20 Jiri Smid <smid@suse.cz>
10892 * configure.host, configure.tgt: Support x86-64.
10893 * NEWS: Note new target x86-64.
10895 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10896 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10897 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10898 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10899 x86-64-linux-nat.o): Fix dependencies.
10901 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10903 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10904 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10905 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10906 * config/sparc/xm-sun4os4.h: Delete file.
10907 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10909 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10911 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10912 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10913 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10914 * config/i386/i386lynx.mh (XM_FILE): Delete.
10915 * config/rs6000/xm-rs6000ly.h: Delete file.
10916 * config/sparc/xm-sparclynx.h: Delete file.
10917 * config/m68k/xm-m68klynx.h: Delete file.
10918 * config/i386/xm-i386lynx.h: Delete file.
10919 * config/xm-lynx.h: Delete file.
10920 * config/djgpp/fnchange.lst: Update.
10922 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10924 * alpha-tdep.c (alpha_register_byte): New function.
10925 (alpha_register_raw_size): Ditto.
10926 (alpha_register_virtual_size): Ditto.
10927 (alpha_skip_prologue_internal): Renamed from
10928 alpha_skip_prologue.
10929 (alpha_skip_prologue): New version that calls
10930 alpha_skip_prologue_internal.
10931 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10932 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10933 second argument from alpha_skip_prologue.
10934 (REGISTER_BYTE): Use alpha_register_byte.
10935 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10936 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10937 (FRAMELESS_FUNCTION_INVOCATION): Use
10938 generic_frameless_function_invocation_not.
10939 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10940 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10942 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10944 * config/mips/xm-news-mips.h: Delete file.
10945 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10947 * config/m88k/xm-m88k.h: Delete file.
10948 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10949 * config/m88k/xm-delta88v4.h: Ditto.
10950 * config/m88k/xm-delta88.h: Ditto.
10952 * config/alpha/xm-fbsd.h: Delete file.
10953 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10955 * config/sparc/xm-sparc.h: Delete file.
10956 * Makefile.in (xm-sun4os4.h): Delete dependency.
10957 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10958 * config/sparc/xm-sun4os4.h: Ditto.
10959 * config/sparc/xm-linux.h: Ditto.
10961 * config/i386/xm-windows.h: Delete file.
10963 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10965 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10966 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10968 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10970 * alpha-tdep.c (alpha_call_dummy_words): New.
10971 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10972 (CALL_DUMMY_P): Define.
10973 (CALL_DUMMY_WORDS): Define.
10974 (SIZEOF_CALL_DUMMY_WORDS): Define.
10976 2002-01-19 Per Bothner <per@bothner.com>
10978 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10979 isn't NULL, which can happen with some gcj-3.x-produced code.
10981 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10983 * alpha-tdep.c (alpha_register_virtual_type): New function.
10984 (alpha_init_frame_pc_first): Ditto.
10985 (alpha_fix_call_dummy): Ditto.
10986 (alpha_store_struct_return): Ditto.
10987 (alpha_extract_struct_value_address): Ditto.
10988 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10989 alpha_register_virtual_type.
10990 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10991 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10992 alpha_extract_struct_value_address.
10993 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10994 (INIT_FRAME_PC): Use init_frame_pc_noop.
10995 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10997 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10999 * i386gnu-nat.c: Include "i386-tdep.h".
11000 (fetch_fpregs): Simplify code dealing with uninitialized floating
11001 point states such that it doesn't require FP7_REGNUM.
11003 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11005 * alpha-tdep.c (frame_extra_info): New.
11006 (alpha_find_saved_regs): Make static. Use
11008 (alpha_frame_init_saved_regs): New function.
11009 (alpha_frame_saved_pc): Use frame->extra_info.
11010 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11011 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11012 (init_extra_frame_info): Rename to...
11013 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11014 (alpha_print_extra_frame_info): New function.
11015 (alpha_frame_locals_address): Ditto.
11016 (alpha_frame_args_address): Ditto.
11017 (alpha_pop_frame): Use frame->extra_info.
11018 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11019 alpha_frame_args_address.
11020 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11021 (alpha_find_saved_regs): Remove prototype.
11022 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11023 (EXTRA_FRAME_INFO): Remove.
11024 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11025 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11027 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11029 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11030 (alpha_cannot_fetch_register): Ditto.
11031 (alpha_cannot_store_register): Ditto.
11032 (alpha_register_convertible): Ditto.
11033 (alpha_use_struct_convention): Ditto.
11034 * config/alpha/tm-alpha.h: Update copyright years.
11035 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11036 (INNER_THAN): Use core_addr_lessthan.
11037 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11038 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11039 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11040 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11041 (FRAME_CHAIN): Remove unnecessary cast.
11043 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11045 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11048 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11050 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11051 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11052 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11053 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11054 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11055 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11056 * x86-64-linux-nat.c: Ditto.
11058 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11060 * alpha-tdep.c (alpha_register_name): New function.
11061 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11062 (REGISTER_NAME): Define.
11064 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11066 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11068 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11070 * alpha-tdep.c: Update copyright years.
11071 (alpha_next_pc): New function.
11072 (alpha_software_single_step): Ditto.
11073 * config/alpha/tm-alpha.h: Add prototype for
11074 alpha_software_single_step.
11076 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11078 * alphabsd-nat.c: Update copyright years.
11079 (fill_gregset): Use regcache_collect.
11080 (fill_fpregset): Likewise.
11081 (fetch_inferior_registers): Only fetch integer registers
11082 if requested to do so.
11083 (store_inferior_registers): Only store integer registers
11084 if requested to do so.
11086 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11088 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11089 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11090 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11091 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11092 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11093 * config/arm/linux.mh (XDEPFILES): Delete.
11094 * config/arm/nbsd.mh (XDEPFILES): Delete.
11095 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11096 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11097 * config/i386/i386m3.mh (XDEPFILES): Delete.
11098 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11099 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11100 * config/i386/fbsd.mh (XDEPFILES): Delete.
11101 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11102 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11103 * config/i386/i386v4.mh (XDEPFILES): Delete.
11104 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11105 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11106 * config/i386/i386aix.mh (XDEPFILES): Delete.
11107 * config/i386/go32.mh (XDEPFILES): Delete.
11108 * config/i386/cygwin.mh (XDEPFILES): Delete.
11109 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11110 * config/i386/i386mach.mh (XDEPFILES): Delete.
11111 * config/i386/i386v32.mh (XDEPFILES): Delete.
11112 * config/i386/linux.mh (XDEPFILES): Delete.
11113 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11114 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11115 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11116 * config/i386/i386sco.mh (XDEPFILES): Delete.
11117 * config/i386/i386v.mh (XDEPFILES): Delete.
11118 * config/i386/nbsd.mh (XDEPFILES): Delete.
11119 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11120 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11121 * config/i386/symmetry.mh (XDEPFILES): Delete.
11122 * config/i386/obsd.mh (XDEPFILES): Delete.
11123 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11124 * config/ia64/linux.mh (XDEPFILES): Delete.
11125 * config/ia64/aix.mh (XDEPFILES): Delete.
11126 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11127 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11128 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11129 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11130 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11131 * config/m68k/linux.mh (XDEPFILES): Delete.
11132 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11133 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11134 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11135 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11136 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11137 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11138 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11139 * config/m88k/delta88.mh (XDEPFILES): Delete.
11140 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11141 * config/m88k/m88k.mh (XDEPFILES): Delete.
11142 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11143 * config/mips/linux.mh (XDEPFILES): Delete.
11144 * config/mips/irix6.mh (XDEPFILES): Delete.
11145 * config/mips/irix5.mh (XDEPFILES): Delete.
11146 * config/mips/irix4.mh (XDEPFILES): Delete.
11147 * config/mips/irix3.mh (XDEPFILES): Delete.
11148 * config/mips/decstation.mh (XDEPFILES): Delete.
11149 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11150 (NATDEPFILES): Move core-aout.o to here.
11151 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11152 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11153 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11154 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11155 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11156 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11157 * config/pa/hpux11.mh (XDEPFILES): Delete.
11158 * config/powerpc/aix.mh (XDEPFILES): Delete.
11159 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11160 * config/powerpc/linux.mh (XDEPFILES): Delete.
11161 * config/romp/rtbsd.mh: Rename XDEPFILES.
11162 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11163 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11164 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11165 * config/s390/s390.mh (XDEPFILES): Delete.
11166 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11167 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11168 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11169 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11170 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11171 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11172 * config/sparc/linux.mh (XDEPFILES): Delete.
11173 * config/vax/vaxult.mh (XDEPFILES): Delete.
11174 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11175 * Makefile.in (DEPFILES): Remove XDEPFILES.
11177 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11179 * utils.c (internal_verror): Fix comments, default is yes not no.
11180 Update queries to match. Default to quit and dump core.
11182 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11184 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11186 * defs.h, event-top.c, gdbcmd.h: Ditto.
11187 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11188 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11189 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11190 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11191 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11192 * mi/mi-main.c:Ditto.
11194 * stack.c, symfile.c: Update copyright.
11196 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11198 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11199 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11200 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11201 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11203 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11205 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11206 * gdbserver/low-lynx.c (myattach): Likewise.
11207 * gdbserver/low-nbsd.c (myattach): Likewise.
11208 * gdbserver/low-sim.c (myattach): Likewise.
11209 * gdbserver/low-sparc.c (myattach): Likewise.
11210 * gdbserver/low-sun3.c (myattach): Likewise.
11212 * gdbserver/low-linux.c (myattach): New function.
11214 * gdbserver/server.c (attach_inferior): New function.
11215 (main): Handle "--attach".
11217 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11219 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11222 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11224 * c-typeprint.c (is_type_conversion_operator): Add additional
11225 check for non-conversion operators.
11227 2002-01-15 Michael Snyder <msnyder@redhat.com>
11229 * linux-proc.c: Add "info proc" command, a la procfs.c.
11230 (read_mapping): New function, abstract and re-use code.
11231 (linux_find_memory_regions): Use new func read_mapping.
11232 (linux_info_proc_cmd): New function, implement "info proc".
11233 (_initialize_linux_proc): Add new command "info proc".
11235 2002-01-15 Michael Snyder <msnyder@redhat.com>
11237 * symfile.c (generic_load): Use bfd_map_over_sections method
11238 instead of manipulating bfd structure members directly.
11239 (add_section_size_callback): New function, bfd sections callback
11240 used by generic_load.
11241 (load_sections_callback): New function, bfd sections callback
11242 used by generic_load.
11244 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11246 [Based on work by Jim Blandy]
11247 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11248 (builtin_type_vec128): Export.
11249 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11251 (builtin_type_vec128): New builtin type for 128 bit vector
11253 (build_gdbtypes): Initialize builtin_type_v16qi and
11254 builtin_type_v8hi. Create the vec128 register builtin type
11256 (build_builtin_type_vec128): New function.
11257 (_initialize_gdbtypes): Register builtin_type_v16qi and
11258 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11259 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11260 AltiVec register to new builtin type.
11262 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11264 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11267 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11269 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11270 CLEAN_UP_REGISTER_VALUE.
11271 * regcache.c (supply_register): Update only call.
11273 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11275 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11276 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11277 a29k-*-vxworks* targets as obsolete.
11279 2002-01-14 Michael Snyder <msnyder@redhat.com>
11281 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11282 until we can resolve portability issues.
11283 * gregset.h: Remove references to fpxregs.
11284 * gcore.c (gcore_command): Initialize note_sec to NULL.
11286 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11288 * signals.c (target_signal_to_name): Rewrite. Only use
11289 signals[].name when in bounds and non-NULL.
11291 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11293 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11294 * signals.c (target_signal_to_name): Verify that SIG is within the
11295 bounds of the signals array.
11297 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11299 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11301 2002-01-13 Keith Seitz <keiths@redhat.com>
11303 * stack.c (print_frame_info_base): Print the frame's pc
11304 only if when print_frame_info_listing_hook is not defined.
11306 2002-01-13 Keith Seitz <keiths@redhat.com>
11308 * varobj.c (varobj_set_value): Make sure that there were no
11309 errors evaluating the object before attempting to set its
11311 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11312 so this offset adjustment is no longer necessary.
11313 (create_child): Don't set the error flag if the child is
11314 a CPLUS_FAKE_CHILD.
11315 (value_of_child): If value_fetch_lazy fails, return NULL
11316 so that callers will be notified that an error occurred.
11317 (c_value_of_variable): Delay check of variable's validity
11318 until later. We actually want all structs and unions to have
11320 Do not return "???" for variables which could not be evaluated.
11321 This error condition must be returned to the caller so that it
11322 can get the error condition from gdb.
11323 (cplus_name_of_child): Adjust index for vptr before figuring
11324 out the name of the child.
11325 (cplus_value_of_child): If a child's (real) parent is not valid,
11326 don't even bother trying to give a value for it. Just return
11327 an error. Change all instances in this function.
11328 (cplus_type_of_child): If our parent is one of the "fake"
11329 parents, we need to get at the type of the real parent, and
11330 derive the child's true type using this information.
11332 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11334 From 2002-01-09 John Marshall <johnm@falch.net>:
11335 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11336 sources.redhat.com, and tweak some related URLs which had
11337 suffered from linkrot.
11339 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11342 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11343 structures passed in registers.
11345 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11347 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11348 white space which prevented compilation. Reported by DSK
11349 <dsk@student.unsw.edu.au>.
11351 2002-01-11 Michael Snyder <msnyder@redhat.com>
11353 * symfile.c (build_section_addr_info_from_section_tab):
11354 Use bfd access method instead of manipulating bfd directly.
11355 (syms_from_objfile): Ditto.
11356 (simple_overlay_update_1): Ditto.
11357 (simple_overlay_update): Ditto.
11358 (generic_load): Ditto.
11359 (overlay_unmapped_address): FIXME comment, bfd access methods.
11360 (sections_overlap): FIXME comment, bfd access methods.
11361 (pc_in_mapped_range): FIXME comment, bfd access methods.
11362 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11363 (section_is_mapped): FIXME comment, bfd access methods.
11364 (section_is_overlay): FIXME comment, bfd access methods.
11366 * symfile.c (generic_load): Whitespace and long line cleanups.
11367 Remove duplicate variable, change several local variables to
11368 more appropriate data types.
11369 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11371 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11373 From Peter Schauer:
11374 * language.c (longest_local_hex_string_custom): Use phex_nz to
11375 convert NUM to a hex string.
11377 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11379 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11381 Update Copyright year.
11383 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11385 * language.c (longest_raw_hex_string): Delete unused function.
11387 2002-01-11 Petr Sorfa <petrs@caldera.com>
11389 * MAINTAINERS (write-after-approval): Add myself.
11390 * dwarf2read.c (read_tag_string_type): Handling of
11392 (read_tag_string_type): FORTRAN fix to prevent propagation of
11394 (set_cu_language): Handling of DW_LANG_Fortran95
11396 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11398 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11399 GETPID(inferior_ptid).
11400 (store_inferior_registers): Likewise.
11402 2002-01-10 Jason Merrill <jason@redhat.com>
11404 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11407 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11409 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11410 and bfd/elf32-sh-nbsd.c.
11412 2002-01-10 Michael Snyder <msnyder@redhat.com>
11414 * NEWS: Mention --pid and corefile/proc-id behavior change.
11416 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11417 * gcore.c: Include cli/cli-decode.h instead of command.h.
11419 * main.c (captured_main): Add new command line option "--pid".
11420 If the second command line argument (following the symbol-file)
11421 begins with a digit, try to attach to it before trying to open
11423 (print_gdb_help): Document the "--pid" argument.
11425 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11427 * completer.c (command_completer): New function.
11429 * completer.h <command_completer>: Add prototype.
11431 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11432 completer for the "help" command.
11434 2002-01-09 Jason Merrill <jason@redhat.com>
11436 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11438 2002-01-09 Michael Snyder <msnyder@redhat.com>
11440 * i386-linux-nat.c (fill_fpxregset): Make global.
11441 (store_fpxregset): Ditto.
11443 * gregset.h (gdb_fpxregset_t): Define.
11444 (supply_fpxregset): Prototype.
11445 (fill_fpxregset): Prototype.
11447 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11449 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11451 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11452 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11453 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11455 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11457 * MAINTAINERS: Update target maintainer rules so that any
11458 Maintainer can approve a tested patch for a maintenance-only
11461 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11463 * MAINTAINERS (write-after-approval): Add myself.
11465 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11468 2002-01-08 Michael Snyder <msnyder@redhat.com>
11470 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11471 real name of the executable, rather than the /proc name.
11473 2002-01-03 Michael Snyder <msnyder@redhat.com>
11475 Implement a "generate-core-file" command in gdb, save target state.
11476 * gcore.c: New file. Implement new command 'generate-core-file'.
11477 Save a corefile image of the current state of the inferior.
11478 * linux-proc.c: Add linux-specific code for saving corefiles.
11479 * target.h (struct target_ops): Add new target vectors for saving
11480 corefiles; to_find_memory_regions and to_make_corefile_notes.
11481 (target_find_memory_regions): New macro.
11482 (target_make_corefile_notes): New macro.
11483 * target.c (update_current_target): Inherit new target methods.
11484 (dummy_find_memory_regions): New place-holder method.
11485 (dummy_make_corefile_notes): New place-holder method.
11486 (init_dummy_target): Initialize new dummy target vectors.
11487 * exec.c (exec_set_find_memory_regions): New function.
11488 Allow the exec_ops vector for memory regions to be taken over.
11489 (exec_make_note_section): New function, target vector method.
11490 * defs.h (exec_set_find_memory_regions): Export prototype.
11491 * procfs.c (proc_find_memory_regions): New function, corefile method.
11492 (procfs_make_note_section): New function, corefile method.
11493 (init_procfs_ops): Set new target vector pointers.
11494 (find_memory_regions_callback): New function.
11495 (procfs_do_thread_registers): New function.
11496 (procfs_corefile_thread_callback): New function.
11497 * sol-thread.c (sol_find_memory_regions): New function.
11498 (sol_make_note_section): New function.
11499 (init_sol_thread_ops): Initialize new target vectors.
11500 * inftarg.c (inftarg_set_find_memory_regions): New function.
11501 Allow to_find_memory_regions vector to be taken over.
11502 (inftarg_set_make_corefile_notes): New function.
11503 Allow to_make_corefile_notes vector to be taken over.
11504 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11505 interface layer if not target_has_execution (may be a corefile).
11506 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11507 * config/sparc/sun4sol2.mh: Ditto.
11508 * config/alpha/alpha-linux.mh: Ditto.
11509 * config/arm/linux.mh: Ditto.
11510 * config/i386/x86-64linux.mh: Ditto.
11511 * config/ia64/linux.mh: Ditto.
11512 * config/m68k/linux.mh: Ditto.
11513 * config/mips/linux.mh: Ditto.
11514 * config/powerpc/linux.mh: Ditto.
11515 * config/sparc/linux.mh: Ditto.
11517 2002-01-07 Michael Snyder <msnyder@redhat.com>
11519 * arm-linux-nat.c: Remove references to regcache.c internal data
11520 (registers[] and register_valid[]).
11522 2002-01-07 Michael Snyder <msnyder@redhat.com>
11524 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11525 so that attaching to a pid will automatically read the process's
11526 symbol file and shlibs.
11527 * Makefile.in: Add rule for linux-proc.o.
11528 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11529 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11530 * config/arm/linux.mh: Ditto.
11531 * config/i386/linux.mh: Ditto.
11532 * config/i386/x86-64linux.mh: Ditto.
11533 * config/ia64/linux.mh: Ditto.
11534 * config/m68k/linux.mh: Ditto.
11535 * config/mips/linux.mh: Ditto.
11536 * config/powerpc/linux.mh: Ditto.
11537 * config/sparc/linux.mh: Ditto.
11539 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11541 * win32-nat.c: Add i386-tdep.h dependency.
11543 2002-01-07 Michael Snyder <msnyder@redhat.com>
11545 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11546 instead of bfd_get_arch_size. Don't bail out just because
11547 there's no exec_bfd.
11549 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11550 * p-valprint.c (pascal_object_print_value): Ditto.
11551 * somread.c (som_symtab_read): Ditto.
11552 * symfile.c (simple_free_overlay_region_table): Ditto.
11553 * valops.c (value_assign): Ditto.
11555 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11556 use tilde_expand and strerror for opening save-tracepoints file.
11558 * thread-db.c (thread_db_new_objfile): Indendation fix.
11560 * infptrace.c (GDB_MAX_ALLOCA): New define.
11561 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11562 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11563 can be overridden with whatever value is appropriate to the host).
11564 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11565 alloca to allocate potentially large buffer.
11566 * rs6000-nat.c (child_xfer_memory): Ditto.
11567 * symm-nat.c (child_xfer_memory): Ditto.
11568 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11570 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11572 From Nick Clifton <nickc@redhat.com>
11573 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11575 2002-01-07 Michael Snyder <msnyder@redhat.com>
11577 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11578 Don't use exec_bfd if it's NULL.
11580 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11582 * valops.c (value_arg_coerce): Fix formatting.
11584 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11586 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11587 * gnu-nat.c: Ditto.
11589 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11591 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11592 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11593 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11594 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11595 z8k-coff have not been multi-arched. Update z8k-coff build
11598 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11600 * MAINTAINERS: Mark a29k target as obsolete.
11601 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11602 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11604 * NEWS: Note that a29k targets are obsolete.
11605 * a29k-tdep.c: Mark as obsolete.
11606 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11607 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11608 a29k-*-vxworks* targets as obsolete.
11609 * remote-adapt.c: Obsolete.
11610 * remote-eb.c: Obsolete.
11611 * remote-mm.c: Obsolete.
11612 * remote-udi.c: Obsolete.
11613 * config/a29k/a29k-udi.mt: Obsolete.
11614 * config/a29k/a29k.mt: Obsolete.
11615 * config/a29k/tm-a29k.h: Obsolete.
11616 * config/a29k/tm-vx29k.h: Obsolete.
11617 * config/a29k/vx29k.mt: Obsolete.
11619 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11621 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11622 with BFD_ENDIAN_BIG.
11624 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11626 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11627 * configure, config.in: Re-generate.
11628 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11629 * defs.h: Do not include <endian.h>.
11631 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11633 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11634 * config.in: Regenerate.
11635 * configure.in: Update copyright years.
11636 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11637 * configure: Regenerate.
11638 * i386bsd-nat.c: Update copyright years.
11639 (fill_gregset): Use regcache_collect.
11640 (fetch_inferior_registers): Only fetch integer registers
11641 if requested to do so. Add support for XMM registers
11642 using PT_GETXMMREGS.
11643 (store_inferior_registers): Only store integer registers
11644 if requested to do so. Add support for XMM registers
11645 using PT_SETXMMREGS.
11646 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11647 (store_inferior_registers): Remove.
11648 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11649 (fetch_elfcore_registers): New function.
11650 (i386nbsd_elfcore_fns): New.
11651 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11652 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11654 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11655 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11656 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11657 * config/i386/tm-nbsd.h: Update copyright years.
11658 (HAVE_SSE_REGS): Define.
11659 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11660 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11661 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11662 (SIGCONTEXT_PC_OFFSET): Remove.
11663 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11665 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11667 * configure.tgt: Remove powerpc-*-macos* target.
11668 * config/m68k/xm-mpw.h: Delete file.
11669 * config/xm-mpw.h: Delete file.
11670 * ser-mac.c: Delete file.
11671 * mpw-make.sed: Delete file.
11672 * mpw-config.in: Delete file.
11673 * mac-xdep.c: Delete file.
11674 * mac-gdb.r: Delete file.
11675 * mac-defs.h: Delete file.
11676 * mac-nat.c: Delete file.
11677 * config/powerpc/macos.mh: Delete file.
11678 * config/powerpc/macos.mt: Delete file.
11679 * config/powerpc/nm-macos.h: Delete file.
11680 * config/powerpc/tm-macos.h: Delete file.
11681 * source.c (openp, open_source_file): Remove obsolete code.
11682 * top.c (gdb_readline): Ditto.
11683 * utils.c (query): Ditto.
11684 * event-top.c (display_gdb_prompt): Ditto.
11685 * Makefile.in (ser-mac.o): Delete obsolete target.
11688 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11690 * defs.h (BIG_ENDIAN): Delete macro definition.
11691 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11692 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11693 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11694 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11695 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11696 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11697 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11698 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11699 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11700 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11701 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11702 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11703 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11704 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11705 * gdbarch.c: Re-generate.
11707 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11709 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11712 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11714 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11716 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11718 * value.h (value_ptr): Delete typedef.
11720 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11722 * i386nbsd-nat.c: Update copyright years.
11723 Include i386-tdep.h.
11725 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11727 * stabsread.c: Update copyright years.
11729 From Debashis Mahata <debashis.mahata@wipro.com>:
11730 (read_struct_fields): Deal with Sun C compiler erroneous stab
11731 output for structs and unions.
11734 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11736 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11739 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11741 * cp-abi.c: Fix whitespace.
11742 (baseclass_offset): New wrapper function.
11743 * cp-abi.h (baseclass_offset): Add prototype.
11744 (struct cp_abi_ops): Add baseclass_offset pointer.
11746 * valops.c (vb_match): Move to...
11747 * gnu-v2-abi.c (vb_match): here.
11748 * valops.c (baseclass_offset): Move to...
11749 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11751 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11753 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11754 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11755 * hpacc-abi.c (init_hpacc_ops): Likewise.
11757 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11759 * valops.c (find_overload_match): Accept obj as a
11760 reference parameter. Update it before returning.
11761 * value.h (find_overload_match): Update prototype.
11762 * eval.c (evaluate_subexp_standard): Pass object to
11763 find_overload_match by reference.
11765 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11767 * valarith.c: Replace value_ptr with struct value pointer. Remove
11768 register attribute from value declarations.
11771 * scm-lang.c (scm_lookup_name): Ditto.
11773 2002-01-03 Michael Snyder <msnyder@redhat.com>
11775 Abstract the functionality of iterating over mapped memory
11776 regions into a general purpose iterator function.
11777 * procfs.c (iterate_over_mappings): New function, general purpose
11778 iterator for memory sections.
11779 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11780 (solib_mappings_callback): New function, callback for above.
11781 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11782 (info_mappings_callback): New function, callback for above.
11784 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11786 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11788 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11789 * i386-tdep.c: Include "elf-bfd.h".
11790 (process_note_abi_tag_sections): New function.
11791 (i386_gdbarch_init): Add code to recognize various OS/ABI
11794 * maint.c (_initialize_maint_cmds): Add missing \ in
11797 For older changes see ChangeLog-2001
11803 version-control: never