1 2002-10-10 Marko Mlinar <markom@opencores.org>
3 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
4 accidentially not commited 2002-10-09
5 * gdbarch.h, gdbarch.c: Re-generate.
7 2002-10-09 Marko Mlinar <markom@opencores.org>
9 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
10 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
11 * gdbarch.h, gdbarch.c: Re-generate.
13 2002-10-08 Petr Sorfa <petrs@caldera.com>
15 Revised and re-submitted by John Wolfe <jlw@caldera.com>
17 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
18 so we can work on more than one compilation unit at a time. This
19 helps prepare GDB to handle inter-CU die references.
20 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
21 the code to be defined before struct comp_unit_head.
22 (comp_unit_head): Added new members - offset, cu_head,
23 begin_die, next and dwarf2_abbrevs.
24 (dwarf2_abbrevs): Removed single static var; now member of
25 struct comp_unit_head.
26 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
28 (psymtab_to_symtab_1): Changed to work with the new
29 struct comp_unit_head.
30 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
31 constructs the dwarf2_abbrevs[] inside the cu_header.
32 (dwarf2_empty_abbrev_table): Now expects a ptr to a
33 dwarf2_abbrev table to clean up.
34 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
35 handling of dwarf2_abbrevs inside the cu_header.
36 (read_partial_die): Now supports the call to the new
38 (read_full_die): Now supports the call to the new
41 2002-10-06 Christopher Faylor <cgf@redhat.com>
43 * Makefile.in (install-gdbtk): Add missing continuation backslash to
44 insure that shell variables, such as "transformed_name" are propagated
45 to later shell statements in rule.
47 2002-10-06 Mark Kettenis <kettenis@gnu.org>
49 * config/i386/nm-i386sco.h: Add protection against
50 multiple-inclusion. Include "i386/nm-i386v.h".
51 (REGISTER_U_ADDR): Remove define.
52 (i386_register_u_addr): Remove prototype.
54 2002-10-04 Michael Snyder <msnyder@redhat.com>
56 * m32r-stub.c (handle_exception): Make sure exception is "trap"
57 before treating it as a single-step event.
59 2002-10-03 Adam Fedor <fedor@gnu.org>
61 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
62 (objc_demangle): Remove assignment in if statements, Replace
64 (add_msglist): Likewise.
65 (end_msglist): Likewise.
66 (complare_selectors): Likewise.
67 (selectors_info): Likewise.
68 (compare_classes): Likewise.
69 (classes_info): Likewise.
70 (print_object_command): Likewise.
71 (find_objc_msgcall_submethod): Replace PTR with void *.
72 * objc-lang.h: Remove check for __STDC__.
74 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
76 * ui-out.h (ui_out_field_fmt_int): New prototype.
77 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
78 of field width and alignment.
79 * stack.c (print_frame_info_base): When printing frame level, use
80 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
83 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
85 * MAINTAINERS: Add self to Write After Approval list.
87 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
89 * infcmd.c (interrupt_target_command_wrapper): Delete.
90 (interrupt_target_command): Make non static.
91 (nofp_registers_info): Make static.
92 * stack.c (return_command_wrapper): Delete.
93 (return_command): Make non static.
95 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
97 * event-top.c (gdb_setup_readline): New function. Code moved from
98 _initialize_event_loop().
99 (_initialize_event_loop): Call gdb_setup_readline().
101 2002-10-02 Andrew Cagney <ac131313@redhat.com>
103 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
104 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
105 * gdbarch.h, gdbarch.c: Re-generate.
107 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
110 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
112 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
113 of fill_in_vptr_fieldno.
115 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
117 * inferior.h (registers_info, stepi_command, nexti_command,
118 continue_command, interrupt_target_command): Export from infcmd.c.
119 * frame.h (args_info, selected_frame_level_changed_hook,
120 return_command): Export from stack.c.
121 * v850ice.c (stepi_command, nexti_command, continue_command): use
122 prototypes from inferior.h.
123 * tracepoint.c (registers_info, args_info, locals_info): Use
124 prototypes from frame.h and inferior.h.
125 * Makefile.in (mi-main.o): Add dependency on frame.h.
127 2002-10-02 Andrew Cagney <ac131313@redhat.com>
129 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
130 value in register 3 adjusted by ppc_gp0_regnum.
132 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
134 2002-10-02 Marko Mlinar <markom@opencores.org>
136 * MAINTAINERS: Add myself to the Write After Approval list.
138 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
140 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
141 of the section for the N64 ABI, fixed.
143 * config/mips/tm-irix6.h: Include solib.h.
145 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
147 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
150 2002-10-01 Andrew Cagney <ac131313@redhat.com>
152 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
153 and that "mi0" syntax has been removed.
155 2002-09-30 David Carlton <carlton@math.stanford.edu>
157 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
158 * ppc-sysv-tdep.c: #include "gdb_string.h".
159 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
162 2002-10-01 Andrew Cagney <ac131313@redhat.com>
164 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
165 "vrsave"'s register number.
167 2002-09-30 Andrew Cagney <ac131313@redhat.com>
169 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
170 use frame_unwind_signed_register to obtain the PC.
171 (mips_frame_chain): Handle a generic dummy frame.
172 (mips_init_extra_frame_info): When a generic dummy frame, don't
173 re-compute the frame base.
174 (mips_pop_frame): Handle generic dummy frames.
175 (mips_gdbarch_init): When generic dummy frames, set
176 use_generic_dummy_frames, push_dummy_frame to
177 generic_push_dummy_frame, pc_in_call_dummy to
178 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
179 generic_save_dummy_frame_tos.
181 2002-09-30 Andrew Cagney <ac131313@redhat.com>
183 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
184 against TOP when TOP was explictly set.
185 (generic_push_dummy_frame): Set TOP to zero.
187 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
189 * event-loop.c (start_event_loop): Rename variable 'result' to
190 'gdb_result', to avoid conflicts with upcoming intepreters changes.
192 2002-09-30 Keith Seitz <keiths@redhat.com>
194 * gdb-events.sh (selected_thread_changed): New event.
195 * gdb-events.c: Regenerated.
196 * gdb-events.h: Regenerated.
198 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
200 * MAINTAINERS: Add self to Write After Approval list.
202 2002-09-30 Fernando Nasser <fnasser@redhat.com>
204 * disasm.c: New file.
205 * disasm.h: New file.
206 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
207 (compare_lines): Ditto.
209 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
211 (do_assembly_only): Ditto.
212 (do_disassembly): Renamed to gdb_disassembly and moved to
213 disasm.c. Sdded uiout argument.
214 * Makefile.in: Add new files. Reorder SFILES list. Update
215 dependencies. Include libgdb.a later in the insight executable.
217 2002-09-29 Andrew Cagney <ac131313@redhat.com>
219 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
220 bfd/elf64-alpha-fbsd.c.
222 2002-09-29 Andrew Cagney <ac131313@redhat.com>
224 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
227 2002-09-29 Andrew Cagney <ac131313@redhat.com>
229 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
231 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
233 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
234 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
235 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
236 (S_msg_sig_post_reply): Ditto.
238 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
240 * sh-tdep.c (sh_use_struct_convention): Use definition according
242 (sh_push_arguments): Store in register with correct endianess.
243 (sh_default_store_return_value): Ditto.
244 (sh_gdbarch_init): Set sizeof long double to 8.
246 2002-09-27 Mark Kettenis <kettenis@gnu.org>
248 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
249 Fix some whitespace problems.
251 2002-09-27 David Carlton <carlton@math.stanford.edu>
253 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
254 (mcore-tdep.o): Ditto.
255 (ns32k-tdep.o): Ditto.
256 (ns32knbsd-tdep.o): Ditto.
259 * cris-tdep.c: #include "gdb_string.h"
260 * mcore-tdep.c: Ditto.
261 * ns32k-tdep.c: Ditto.
262 * ns32knbsd-tdep.c: Ditto.
266 2002-09-27 David Carlton <carlton@math.stanford.edu>
268 * config/djgpp/fnchange.lst: Add entries for
269 gdb/testsuite/gdb.c++/m-static files.
271 2002-09-27 Jim Wilson <wilson@redhat.com>
273 * MAINTAINERS: Add myself to the Write After Approval list.
275 2002-09-26 Martin M. Hunt <hunt@redhat.com>
277 * mips-tdep.c (find_proc_desc): Initialize startaddr.
280 2002-09-26 Andrew Cagney <ac131313@redhat.com>
282 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
285 2002-09-26 Andrew Cagney <ac131313@redhat.com>
287 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
288 (rs6000_struct_return_address): Delete variable.
289 (rs6000_store_struct_return): Update.
290 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
291 deprecated_extract_struct_value_address.
292 (rs6000_frame_align): New function.
293 (rs6000_gdbarch_init): Set frame_align.
295 2002-09-26 Andrew Cagney <ac131313@redhat.com>
297 From Grace Sainsbury <graces@redhat.com>:
298 * Makefile.in (gdbtk-main.o): New target.
301 (main.o): Update dependencies.
302 (gdb$(EXEEXT)): Add gdb.o.
303 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
304 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
305 (SUBDIR_GDBTK_CLEAN): Set.
306 (install-gdbtk): Install the insight binary.
307 (uninstall-gdbtk): New target.
308 (all-gdbtk, clean-gdbtk): New rule.
309 * top.c (use_windows): Default to zero.
310 * main.c: Include "main.h".
312 (struct captured_main_args): Delete.
313 (gdb_main): New function.
317 2002-09-25 Andrew Cagney <cagney@redhat.com>
319 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
320 (frame_map_regnum_to_name): New function.
321 (frame_map_name_to_regnum): New function.
322 * frame.h (frame_map_name_to_regnum): Declare.
323 (frame_map_regnum_to_name): Declare.
324 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
325 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
326 * parse.c: Do not include "builtin-regs.h".
327 (target_map_name_to_register): Delete function.
328 (write_dollar_variable): Use frame_map_name_to_regnum.
329 * parser-defs.h (target_map_name_to_register): Delete declaration.
330 * expprint.c: Include "frame.h".
331 (print_subexp): Use frame_map_regnum_to_name.
332 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
333 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
335 2002-09-25 Andrew Cagney <ac131313@redhat.com>
337 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
338 wasn't saved, and the next innermost frame is a dummy, return the
339 dummy frame's link register.
341 2002-09-24 Jim Blandy <jimb@redhat.com>
344 * main.c (captured_main): Add a `break' after the case for 'b'.
346 2002-09-24 Keith Seitz <keiths@redhat.com>
348 * varobj.c (c_type_of_child): Use get_target_type instead
351 2002-09-22 Fernando Nasser <fnasser@redhat.com>
353 * source.c (get_current_or_default_source_symtab_and_line): Remove
355 (set_default_source_symtab_and_line): New function. Attempts to
356 determine a source file to list lines from if one is not currently
358 (get_current_source_symtab_and_line): Initialize sal.pc and
360 (set_current_source_symtab_and_line): Mark argument as const.
361 * source.h: Update declarations and comments.
362 * linespec.c (decode_line_1): Replace call to removed routine above.
363 * stack.c (print_frame_info_base): Ditto.
364 * cli/cli-cmds.c (edit_command): Ditto.
365 (list_command): Ditto.
367 2002-09-22 Fernando Nasser <fnasser@redhat.com>
369 * source.c (get_current_or_default_source_symtab_and_line): Initialize
370 sal.pc and sal.end fields.
371 (get_current_or_default_source_symtab_and_line): Ditto.
372 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
373 so we do not cause a new source symtab to be searched for (reverting an
374 unintentional change from the 2002-09-20 patch).
375 * scm-lang.c (scm_unpac): Ditto.
377 2002-09-21 Andrew Cagney <cagney@redhat.com>
379 * complaints.c (symfile_explanations): Remove new-line from
380 ``isolated_message''.
381 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
382 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
384 2002-09-20 Nick Clifton <nickc@redhat.com>
386 * NEWS: Announce that V850EA ISA is no longer supported.
387 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
389 2002-09-20 David Carlton <carlton@math.stanford.edu>
391 * Makefile.in (c-lang.o): Correct dependencies.
392 (utils.o): Gather dependencies.
394 * c-lang.c: #include "gdb_string.h"
396 2002-09-20 Fernando Nasser <fnasser@redhat.com>
398 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
399 * cli/cli-cmds.c (list_command): New function. Implements the new
401 (_init_cli_cmds): Add new command definition.
402 * gdb.1: Document edit command.
403 * doc/gdb.texinfo: Document edit command.
405 2002-09-20 Fernando Nasser <fnasser@redhat.com>
407 * source.c: Make global variables current_source_symtab and
408 current_source_line static.
409 (list_command): Moved to cli/cli-cmds.c.
410 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
411 (get_first_line_listed): New accessor function.
412 (get_lines_to_list): New accessor function.
413 (get_current_source_symtab_and_line): New function. Retrieves the
414 position in the source code that we consider current.
415 (get_current_or_default_source_symtab_and_line): New function.
416 Like the above but attempts to determine a default position if one
417 is not currently defined.
418 (set_current_source_symtab_and_line): New function. Sets the source
419 code position considered current and returns the previously set one.
420 (clear_current_source_symtab_and_line): Reset stored information about
421 a current source line.
422 (_initialize_source): Remove registration for the "list" command and
424 * source.h: Add declarations for the new functions above.
425 * symtab.h: Remove declarations for the global variables mentioned
427 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
428 obtain current source line.
429 * linespec.c (decode_line_1): Ditto.
430 * macroscope.c (default_macro_scope): Ditto.
431 * scm-lang.c (scm_unpac): Ditto.
432 * stack.c (print_frame_info_base): Ditto.
433 * symfile.c (clear_symtab_users): Ditto.
434 * symtab.c (decode_line_spec): Ditto.
435 * cli/cli-cmds.c (list_command): Moved here from source.c.
436 (ambiguous_line_spec): Moved here from source.c.
437 (_init_cli_cmds): Add definition for "list" and its alias.
438 * Makefile.in: Update dependencies.
440 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
442 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
443 with what gcc thinks is correct.
445 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
447 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
448 multiple register push instruction.
450 2002-09-19 Jim Blandy <jimb@redhat.com>
452 Add support for distinct host and target character sets.
453 * charset.c, charset.h: New files.
454 * c-exp.y: #include "charset.h".
455 (yylex): Convert character and string literals to the target
456 character set, before returning them as the semantic value of the
458 * c-lang.c: #include "charset.h".
459 (c_emit_char): Use charset-specific methods to recognize
460 characters with backslash escape forms, to decide which characters
461 to print literally and which to print using numeric escape
462 sequences, and to convert target characters to host characters
464 * utils.c: #include "charset.h".
465 (no_control_char_error): New function.
466 (parse_escape): Use charset-specific methods to recognize
467 backslash escapes, parse `control character' notation, and convert
468 characters from the host character set to the target character set.
469 * configure.in: Set the default host character set.
470 Check where to find iconv, and what its argument types might be.
471 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
472 * Makefile.in (SFILES): List charset.c.
473 (COMMON_OBS): List charset.o.
474 (charset.o): New rule.
475 (charset_h): New header dependency variable.
476 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
477 (LIBICONV): New variable, set by configure.
478 (CLIBS): Include $(LIBICONV) here.
479 * aclocal.m4, config.in, configure: Regenerated.
481 2002-09-19 Joel Brobecker <brobecker@gnat.com>
483 * ada-exp.y: Add missing semicolons to end rules. Fixes a
486 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
488 * gdb_mbuild.sh: New file.
490 2002-09-19 Andrew Cagney <ac131313@redhat.com>
492 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
494 2002-09-18 Andrew Cagney <ac131313@redhat.com>
496 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
497 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
498 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
499 valops.c, value.h: Revert previous change.
501 2002-09-18 Michael Snyder <msnyder@redhat.com>
503 Preliminary support for Objective-C:
504 * defs.h (language_objc): New enum value.
505 (puts_filtered_tabular): Declaration only, exported from utils.c.
506 (skip_quoted): Delete, declared in completer.h.
507 * c-exp.y: Include completer.h.
510 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
511 New operator enum values.
512 * language.h (CAST_IS_CONVERSION): Test for language_objc.
513 * language.c (binop_result_type): Handle language_objc case.
514 (integral_type, character_type, string_type, boolean_type,
515 structured_type, binop_type_check): Ditto.
516 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
517 (struct objc_specific): Add to general_symbol_info.
518 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
519 (SYMBOL_DEMANGLED_NAME): Handle objc case.
520 * parser-defs.h (struct objc_class_str): New struct type.
521 (start_msglist, end_msglist, add_msglist): Declaration only,
522 exported from objc-lang.c.
523 * value.h (value_of_local, value_nsstring,
524 call_function_by_hand_expecting_type): Exported from valops.c.
525 * valops.c (find_function_addr): Export.
526 (call_function_by_hand_expecting_type): New function.
527 (value_of_local): New function.
528 * symfile.c (init_filename_language_table): Add ".m" extension
530 * utils.c (puts_filtered_tabular): New function.
531 (fprintf_symbol_filtered): Add objc demangling support (disabled).
532 (set/show demangle): Extend help-string to refer to ObjC.
533 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
534 * stabsread.c (symbol_reference_defined): Objective-C symbols
535 may contain colons: make allowances when scanning stabs strings
537 (objc_find_colon): New function.
538 * printcmd.c (address_info): If language == objc then print
539 "self" instead of "this".
540 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
541 OP_NSSTRING, and OP_SELF.
542 (prefixify_subexp): Ditto.
543 * source.c (print_source_lines): Mention objc in comment.
544 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
547 2002-09-18 Andrew Cagney <ac131313@redhat.com>
549 * complaints.h: Update copyright.
550 (struct complaints): Declare.
551 (struct complaint): Make `message' constant.
552 (internal_complaint): Declare.
553 (complaint): Declare.
554 (complaint_root): Delete declaration.
555 (symfile_complaints): Delete declaration.
556 (struct complaints): Add opaque declaration.
557 (clear_complaints): Add a complaints parameter.
558 * complaints.c: Update copyright.
559 (enum complaint_series): Define.
560 (complaint_root): Delete.
561 (struct complaints): Define.
562 (complaint_sentinel, symfile_complaint_book): New variables.
563 (symfile_explanations, symfile_complaints): New variables.
565 (get_complaints): New function.
566 (vcomplaint): New function.
567 (complaint): New function.
568 (internal_complaint): New function.
569 (complain): Call vcomplain with symfile_complaint.
570 (clear_complaints): Rewrite.
571 (_initialize_complaints): Use add_setshow_command.
572 * Makefile.in (complaints.o): Update dependencies.
573 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
574 to call to clear_complaints.
575 (new_symfile_objfile, reread_symbols): Ditto.
576 (oldsyms_complaint): Delete.
577 (empty_symtab_complaint, unknown_option_complaint): Delete.
578 (free_named_symtabs): Use complaint instead of complain.
580 2002-09-18 Michael Snyder <msnyder@redhat.com>
582 Contributed by Apple Computer, Inc. Merged with current sources
583 by Adam Fedor <fedor@doc.com> [cagney].
585 * objc-lang.c: First clean-up round: comments, indentation.
586 * objc-lang.h: Ditto.
587 * objc-lang.y: Ditto.
589 2002-09-18 Andrew Cagney <ac131313@redhat.com>
591 * maint.c (maintenance_internal_error): Print the parameter as the
593 (maintenance_internal_warning): New function.
594 (_initialize_maint_cmds): Add command `maint internal-warning'.
596 * defs.h (internal_warning, internal_vwarning): Declare.
597 * utils.c (struct internal_problem): Define.
598 (internal_vproblem): New function.
599 (internal_warning): New function.
600 (internal_vwarning): New function.
601 (internal_warning_problem, internal_error_problem): New variables.
602 (internal_verror): Just call internal_vproblem.
604 2002-09-18 Michael Snyder <msnyder@redhat.com>
606 * objc-lang.c: New file, support for Objective-C.
607 Preliminary check-in, not yet integrated into gdb.
608 * objc-lang.h: New file.
609 * objc-exp.y: New file.
611 2002-09-18 Andrew Cagney <ac131313@redhat.com>
613 * infrun.c (signal_stop_update): Convert definition to ISO C.
614 (signal_print_update): Ditto.
615 (signal_pass_update): Ditto.
616 * inflow.c (terminal_save_ours): Ditto.
618 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
621 * config/djgpp/fnchange.lst: Handle name clashes between
622 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
625 * i386-linux-tdep.h: Fix tipo.
627 2002-09-18 Adam Fedor <fedor@gnu.org>
629 * MAINTAINERS: Add myself to the Write After Approval list.
631 2002-09-18 Jim Blandy <jimb@redhat.com>
633 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
634 texthigh and textlow to reader-specific structs caused
635 objfile_relocate to miss them. This is fixable, but the work that
636 the change was supposed to prepare GDB for never got done anyway.
638 2002-09-18 David Carlton <carlton@math.stanford.edu>
640 * MAINTAINERS: Alphabetize Write After Approval list.
642 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
645 * values.c (value_static_field): Call read_var_value.
647 2002-09-18 Andrew Cagney <ac131313@redhat.com>
649 * valops.c (hand_function_call): Align the initial stack pointer
650 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
651 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
653 * mips-tdep.c (mips_frame_align): New function.
654 (mips_gdbarch_init): Set frame_align.
655 * gdbarch.sh (FRAME_ALIGN): New method.
656 * gdbarch.h, gdbarch.c: Re-generate.
658 2002-09-18 Michal Ludvig <mludvig@suse.cz>
660 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
663 2002-09-17 Andrew Cagney <ac131313@redhat.com>
665 * NEWS: Mention that MIPS $fp behavior changed.
666 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
667 reference to FP_REGNUM.
668 (mipsnbsd_cannot_store_register): Ditto.
669 * mips-linux-nat.c: Update copyright.
670 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
671 (mips_linux_cannot_store_register): Ditto.
672 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
673 * config/mips/tm-mips.h: Update copyright.
674 (FP_REGNUM): Delete macro.
675 (MIPS_REGISTER_NAMES): Replace "fp" with "".
676 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
677 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
678 (mips_r3041_reg_names, mips_r3051_reg_names)
679 (mips_r3081_reg_names): Replace "fp" with "".
682 2002-09-17 Theodore A. Roth <troth@verinet.com>
684 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
685 generic_read_register_dummy() (PR gdb/703).
686 (avr_push_return_address): #if 0 out unused vars.
687 (avr_gdbarch_init): Enable use of avr_push_return_address().
689 2002-09-17 Michael Snyder <msnyder@redhat.com>
691 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
692 RTE will take care of it.
694 2002-09-17 Andrew Cagney <ac131313@redhat.com>
696 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
697 invalid, return SP_REGNUM.
699 2002-09-17 Michael Snyder <msnyder@redhat.com>
701 * mips-tdep.c (mips_pop_frame): Read saved values of floating
702 point registers without sign extension.
704 2002-09-17 Andrew Cagney <cagney@redhat.com>
706 * blockframe.c (deprecated_read_register_dummy): Rename
707 generic_read_register_dummy.
708 * frame.c (frame_unwind_signed_register): New function.
709 (frame_unwind_unsigned_register): New function.
710 * frame.h (frame_unwind_signed_register): Declare.
711 (frame_unwind_unsigned_register): Declare.
712 (deprecated_read_register_dummy): Rename
713 generic_read_register_dummy.
715 * h8300-tdep.c (h8300_frame_chain): Update.
716 (h8300_frame_saved_pc): Update.
717 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
718 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
719 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
720 (s390_frame_chain): Update.
721 * v850-tdep.c (v850_find_callers_reg): Update.
722 (v850_frame_saved_pc): Update.
723 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
724 (m32r_find_callers_reg): Update.
725 (m32r_frame_saved_pc): Update.
726 * sh-tdep.c (sh_find_callers_reg): Update.
727 (sh64_get_saved_pr): Update.
728 (sh_init_extra_frame_info): Update.
729 (sh_init_extra_frame_info): Update.
730 (sh64_init_extra_frame_info): Update.
731 (sh64_init_extra_frame_info): Update.
732 * mcore-tdep.c (mcore_find_callers_reg): Update.
733 (mcore_frame_saved_pc): Update.
734 (mcore_init_extra_frame_info): Update.
735 * i386-tdep.c (i386_frame_saved_pc): Update.
736 * ia64-tdep.c (ia64_frame_saved_pc): Update.
737 (ia64_init_extra_frame_info): Update.
738 (ia64_init_extra_frame_info): Update.
739 * d10v-tdep.c (d10v_frame_saved_pc): Update.
740 * cris-tdep.c (cris_init_extra_frame_info): Update.
741 * avr-tdep.c (avr_frame_chain): Update.
742 (avr_init_extra_frame_info): Update.
743 (avr_frame_saved_pc): Update.
744 * arm-tdep.c (arm_find_callers_reg): Update.
745 (arm_init_extra_frame_info): Update.
746 (arm_frame_saved_pc): Update.
748 2002-09-17 Tom Tromey <tromey@redhat.com>
750 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
753 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
755 * MAINTAINERS: Remove "non multi-arched" text from h8300.
756 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
758 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
761 2002-09-16 Joel Brobecker <brobecker@gnat.com>
763 * osfsolib.c: Remove file, replaced by solib-osf.c.
764 * Makefile.in: Remove compilation rules for osfsolib.c.
766 2002-09-16 David Carlton <carlton@math.stanford.edu>
768 * cp-valprint.c (cp_print_class_method): Correct args to
769 check_stub_method_group.
771 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
773 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
774 `set architecture'. Unify naming convention of functions.
775 (h8300_skip_prologue): Improve prologue analysis.
776 (h8300_push_arguments): Rewritten to more closely match GCC's
777 bizarre argument-passing behavior, along with the comment describing
779 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
780 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
781 sim, remote-e7000.c, remote-hms.c and remote.c
783 2002-09-15 Mark Kettenis <kettenis@gnu.org>
785 * i386-tdep.c (gdb_print_insn_i386): Removed.
786 (i386_print_insn): New function.
787 (i386_gdbarch_init): Set print_insn to i386_print_insns.
788 (_initialize_i386_tdep): Don't initialize tm_print_insn and
791 2002-09-14 Mark Kettenis <kettenis@gnu.org>
793 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
796 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
798 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
799 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
800 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
802 2002-09-13 Christopher Faylor <cgf@redhat.com>
804 * win32-nat.c (child_create_inferior): Honor 'tty' command.
806 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
808 * gdbtypes.c (check_stub_method): Make static.
809 (check_stub_method_group): New function.
810 * gdbtypes.h: Update prototypes.
811 * cp-support.c: New file.
812 * cp-support.h: New file.
814 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
815 (update_method_name_from_physname): New function.
816 (read_member_functions): Correct method names for operators
817 and v3 constructors/destructors. Separate v2 constructors and
819 * Makefile.in (stabsread.o): Update dependencies.
820 (SFILES): Add cp-support.c.
821 (COMMON_OBS): Add cp-support.o.
822 (cp_support_h, cp-support.o): Add.
824 * cp-valprint.c (cp_print_class_method): Call
825 check_stub_method_group instead of check_stub_method. Remove
827 * p-valprint.c (pascal_object_print_class_method): Likewise.
828 * valops.c (search_struct_method): Likewise.
829 (find_method_list, value_struct_elt_for_reference): Likewise.
831 2002-09-13 Andrew Cagney <cagney@redhat.com>
833 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
834 * gdbarch.h, gdbarch.c: Regenerate.
836 2002-09-13 Andrew Cagney <ac131313@redhat.com>
838 * frame.c (find_saved_register): Delete function.
839 * frame.h (find_saved_register): Delete declaration.
842 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
844 * mips-tdep.c (read_next_frame_reg): Re-hack using
845 frame_register_unwind.
847 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
849 * mips-tdep.c (mips_get_saved_register): Re-hack using
850 frame_register_unwind.
852 2002-09-12 Joel Brobecker <brobecker@gnat.com>
854 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
855 vector. Will be useful for Interix.
856 * gdbarch.h, gdbarch.c: Regenerate.
858 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
859 name of the malloc function by NAME_OF_MALLOC.
861 2002-09-12 Joel Brobecker <brobecker@gnat.com>
863 * value.h (find_function_in_inferior): Add const keyword to
864 one of the parameters. Allows us to invoke this function with
866 * valops.c (find_function_in_inferior): Likewise.
868 2002-09-12 Joel Brobecker <brobecker@gnat.com>
870 * exec.c (xfer_memory): Fix compilation warning with old versions
872 * tracepoint.c (trace_find_tracepoint_command): Likewise.
874 2002-09-12 David Carlton <carlton@math.stanford.edu>
876 * symtab.h: Run through gdb_indent.h.
877 Add 2002 to Copyright year list.
879 2002-09-12 Alan Modra <amodra@bigpond.net.au>
881 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
883 * MAINTAINERS: Add myself to write after approval list.
885 2002-09-11 J. Brobecker <brobecker@gnat.com>
887 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
889 2002-09-11 J. Brobecker <brobecker@gnat.com>
891 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
894 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
896 * procfs.c (do_detach): Clear current signal, not just fault.
897 Corrects problem with breakpoint trap signal leaking to detached
900 2002-09-10 Michael Snyder <msnyder@redhat.com>
902 * buildsym.c (finish_block): Protect against null pointer.
904 2002-09-10 Andrew Cagney <cagney@redhat.com>
906 * infcmd.c (default_print_registers_info): Send all output to
907 ``file'' instead of ``gdb_stdout''.
909 2002-09-10 Michael Snyder <msnyder@redhat.com>
911 * mips-tdep.c (mips_extract_struct_value_address): Make val a
912 LONGEST, and use signed register read (addresses are sign-
915 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
917 * event-loop.c (gdb_do_one_event): Make public.
918 * event-loop.h (gdb_do_one_event): Declare.
920 2002-09-10 Jeff Law <law@redhat.com>
922 * infttrace.c (child_resume): Simplify and rework to avoid
925 2002-09-09 Fred Fish <fnf@intrinsity.com>
927 * printcmd.c (print_scalar_formatted): "len" is the number of
928 target bytes, NOT the number of target bits.
930 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
932 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
933 * top.c (init_main): Set rl_terminal_name.
935 2002-09-08 Aidan Skinner <aidan@velvet.net>
937 * ada-lang.c (ada_array_bound, ada_type_match,
938 _initialize_ada_language): Fix K&R definitions.
939 * ada-tasks.c (get_current_task): Fix K&R definitions.
940 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
942 2002-09-07 Christopher Faylor <cgf@redhat.com>
944 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
947 2002-09-06 Mark Kettenis <kettenis@gnu.org>
949 * i386-tdep.c (i386_register_virtual_type,
950 i386_register_convertible, i386_register_convert_to_virtual,
951 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
952 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
953 (i386_gdbarch_init): Fix comment. Add comments on calls that set
954 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
955 Don't set push_arguments twice.
957 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
958 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
959 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
960 sigtramp_end to NULL.
961 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
963 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
965 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
968 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
969 * gdbarch.h, gdbarch.c: Re-generate.
970 * blockframe.c (find_pc_sect_partial_function): Convert to use
971 SIGTRAMP_START_P predicate.
973 2002-09-05 Michael Snyder <msnyder@redhat.com>
975 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
976 generic_dummy_frame method and old method. Also distinguish
977 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
978 (arm_extract_return_value): Use new regcache method.
980 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
981 adjustment that doesn't conform to the ABI.
982 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
983 saved regcache, not from current regcache.
985 2002-09-05 Andrew Cagney <ac131313@redhat.com>
987 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
990 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
992 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
993 if arm_apcs_32 is false.
995 2002-09-04 Andrew Cagney <ac131313@redhat.com>
997 GDB 5.3 branch created.
999 2002-09-03 Theodore A. Roth <troth@verinet.com>
1001 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1002 generic_unwind_get_saved_register.
1004 2002-09-03 David Carlton <carlton@math.stanford.edu>
1006 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1007 argument (PR gdb/653). Update call to smash_to_method_type.
1008 (read_structure_scope): Update call to dwarf2_add_member_fn.
1010 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1012 * x86-64-linux-tdep.c: Include gdb_string.h
1013 * x86-64-linux-nat.c: Ditto.
1015 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1017 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1018 when YYDEBUG is set to 1.
1019 * c-exp.y: Likewise.
1020 * f-exp.y: Likewise.
1021 * jv-exp.y: Likewise.
1022 * m2-exp.y: Likewise.
1023 * p-exp.y: Likewise.
1025 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1027 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1029 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1030 solib_svr4_fetch_link_map_offsets to
1031 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1032 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1033 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1034 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1035 solib-svr4.o, and solib-legacy.o.
1036 * config/i386/tm-nbsd.h: Include solib.h.
1038 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1040 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1041 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1042 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1043 comment noting that this needs its own target configuration.
1044 * config/i386/nbsd.mt: New file.
1045 * config/i386/nbsdaout.mt: Remove.
1046 * config/i386/nbsdelf.mt: Ditto.
1047 * config/i386/tm-nbsdaout.h: Ditto.
1049 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1051 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1052 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1053 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1055 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1056 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1057 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1059 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1061 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1062 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1063 * i386-tdep.h (i386bsd_init_abi): New prototype.
1064 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1065 function declaration.
1066 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1067 for NetBSD-a.out or NetBSD-ELF.
1068 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1069 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1070 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1071 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1073 (i386nbsd_pc_in_sigtramp): New function.
1074 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1075 i386nbsd_pc_in_sigtramp.
1076 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1077 and i386nbsdelf_init_abi OS ABI handlers.
1078 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1079 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1081 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1083 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1084 registers if the target really has them.
1086 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1088 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1091 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1093 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1095 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1096 (alphanbsd_skip_sigtramp_frame): New functions.
1097 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1098 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1099 to alphanbsd_sigcontext_addr.
1101 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1103 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1105 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1106 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1107 nbsd_pc_in_sigtramp.
1108 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1109 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1110 * nbsd-tdep.c: Include gdb_string.h.
1111 (nbsd_pc_in_sigtramp): New function.
1112 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1113 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1114 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1115 ppcnbsd_pc_in_sigtramp.
1116 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1117 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1118 shnbsd_pc_in_sigtramp.
1119 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1120 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1121 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1123 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1125 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1126 watchpoints to NULL.
1127 (insert_breakpoints): set val field of watchpoints if NULL.
1130 2002-08-29 Jim Blandy <jimb@redhat.com>
1132 * symtab.c (lookup_symbol_aux): In the cases where we find a
1133 minimal symbol of an appropriate name and use its address to
1134 select a symtab to read and search, use `name' (as passed to us)
1135 as the demangled name when searching the symtab's global and
1136 static blocks, not the minsym's name.
1138 2002-08-29 Keith Seitz <keiths@redhat.com>
1140 * stack.c (print_frame_info_base): Always set current_source_symtab
1141 and current_source_line.
1143 2002-08-29 Donn Terry <donnte@microsoft.com>
1145 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1147 2002-08-28 Keith Seitz <keiths@redhat.com>
1149 * stack.c (select_frame): Add FIXME concerning selected-frame
1151 (select_frame_command): Send selected-frame-level-changed
1152 event notification, but only if the level actually changed.
1153 (up_silently_base): Add selected-frame-level-changed event
1155 (down_silently_base): Likewise.
1157 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1159 * Makefile.in: Update dependencies for all gdb/*.c files.
1161 2002-08-27 Tom Tromey <tromey@redhat.com>
1163 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1164 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1165 Update dependencies.
1166 * i387-tdep.c: Include gdb_string.h.
1167 * osabi.c: Likewise.
1168 * i386-linux-nat.c: Likewise.
1169 * lin-lwp.c: Likewise.
1170 * ax-gdb.c: Likewise.
1171 * signals/signals.c: Likewise.
1172 * jv-valprint.c: Likewise.
1173 * p-lang.c: Likewise.
1174 * c-valprint.c: Likewise.
1175 * cp-abi.c: Likewise.
1177 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1179 * cli/cli-script.h (copy_command_lines): Export.
1180 * breakpoint.c: Include cli/cli-script.h.
1181 * Makefile.in (breakpoint.o): Update dependencies.
1183 2002-08-26 Michael Snyder <msnyder@redhat.com>
1185 * breakpoint.c (insert_breakpoints): Protect all references
1186 to 'process_warning'. Shorten long lines.
1188 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1190 * cli/cli-script.c (copy_command_lines): New function.
1191 * defs.h (copy_command_lines): Export.
1192 * testsuite/gdb.base/commands.exp: New tests for commands
1193 attached to a temporary breakpoint, and for commands that
1194 delete the breakpoint they are attached to.
1196 2002-08-26 Michael Snyder <msnyder@redhat.com>
1198 * breakpoint.c (bpstat_stop_status): Instead of copying the
1199 pointer to the breakpoint commands struct, make a new copy
1200 of the struct and point to that.
1201 (bpstat_clear): Free the commands struct.
1202 (bpstat_clear_actions): Free the commands struct.
1203 (bpstat_do_actions): Free the command actions. Also execute
1204 the local cleanups, instead of deleting them.
1205 (delete_breakpoint): Leave the commands field of the bpstat
1206 chain alone -- it will be freed later.
1208 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1210 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1211 deleted in 2002-08-20 commit. This function is still used by
1214 2002-08-26 Keith Seitz <keiths@redhat.com>
1216 * gdb-events.sh: Add selected-frame-level-changed event.
1217 * gdb-events.c: Regenerated.
1218 * gdb-events.h: Regenerated.
1220 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1223 * inflow.c (terminal_save_ours): New function to save terminal
1225 * inferior.h (terminal_save_ours): Declare.
1226 * target.c (debug_to_terminal_save_ours): New function.
1227 (cleanup_target): Defaults to_terminal_save_ours.
1228 (update_current_target): Inherit to_terminal_save_ours.
1229 (setup_target_debug): Set to_terminal_save_ours.
1230 * target.h (target_terminal_save_ours): New to save terminal settings.
1231 (target_ops): New member to_terminal_save_ours.
1232 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1233 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1234 * inftarg.c (init_child_ops): Likewise.
1235 * m3-nat.c (init_m3_ops): Likewise.
1236 * procfs.c (init_procfs_ops): Likewise.
1237 * wince.c (init_child_ops): Likewise.
1238 * win32-nat.c (init_child_ops): Likewise.
1239 * sol-thread.c (init_sol_thread_ops): Likewise.
1241 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1243 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1244 use regcache_* functions.
1245 (i386_gdbarch_init): Set store_return_value instead of
1246 deprecated_store_return_value.
1248 * regcache.c (regcache_raw_write_signed,
1249 regcache_raw_write_unsigned): New functions.
1250 * regcache.h (regcache_raw_write_signed,
1251 regcache_raw_write_unsigned): New prototypes.
1253 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1255 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1256 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1257 source file dependencies. Cleanup corresponding generator rules.
1259 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1261 * regcache.h (register_offset_hack): Declare.
1262 (regcache_cooked_read_using_offset_hack): Declare.
1263 (regcache_cooked_write_using_offset_hack): Declare.
1265 * regcache.c (register_offset_hack): New function.
1266 (regcache_cooked_read_using_offset_hack): New function.
1267 (regcache_cooked_write_using_offset_hack): New function.
1268 (regcache_dump): Check that the registers, according to their
1269 offset, are packed hard against each other.
1270 (cooked_xfer_using_offset_hack): New function.
1272 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1274 * regcache.c (struct regcache_descr): Add field register_type.
1275 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1277 (init_regcache_descr): Initialize register_type. Pass the descr
1278 to init_legacy_regcache_descr. Use register_type instead of
1279 REGISTER_VIRTUAL_TYPE.
1280 (register_type): New function.
1281 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1282 * regcache.h (register_type): Declare.
1284 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1286 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1287 instead of deprecated_store_return_value. Fix fallout from
1288 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1290 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1292 * regcache.c (max_register_size): New function.
1293 (init_legacy_regcache_descr): Ensure that max_register_size is
1294 large enough for REGISTER_VIRTUAL_SIZE.
1295 * regcache.h (max_register_size): Declare.
1297 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1299 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1301 (e500_extract_return_value): Change type of valbuf pointer to
1304 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1306 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1309 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1310 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1311 long long) to prevent compiler warning on 64-bit systems.
1313 2002-08-23 Andrew Cagney <cagney@redhat.com>
1315 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1316 (DEPRECATED_STORE_RETURN_VALUE): New method.
1317 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1318 * gdbarch.h, gdbarch.c: Re-generate.
1320 * values.c (set_return_value): Pass current_regcache to
1322 * arch-utils.h (legacy_store_return_value): Declare.
1323 * arch-utils.c (legacy_store_return_value): New function.
1324 (legacy_extract_return_value): Update parameters.
1326 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1328 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1329 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1330 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1331 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1332 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1333 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1334 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1335 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1336 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1337 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1340 * i386-tdep.c (i386_extract_return_value): Update.
1341 * arch-utils.c (legacy_extract_return_value): Update.
1342 * frv-tdep.c (frv_gdbarch_init): Update.
1343 * cris-tdep.c (cris_gdbarch_init): Update.
1344 * d10v-tdep.c (d10v_gdbarch_init): Update.
1345 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1346 * m68k-tdep.c (m68k_gdbarch_init): Update.
1347 * mcore-tdep.c (mcore_gdbarch_init): Update.
1348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1349 * s390-tdep.c (s390_gdbarch_init): Update.
1350 * sparc-tdep.c (sparc_gdbarch_init): Update.
1351 * sh-tdep.c (sh_gdbarch_init): Update.
1352 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1353 * v850-tdep.c (v850_gdbarch_init): Update.
1354 * avr-tdep.c (avr_gdbarch_init): Update.
1355 * ia64-tdep.c (ia64_gdbarch_init): Update.
1356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1357 * vax-tdep.c (vax_gdbarch_init): Update.
1358 * alpha-tdep.c (alpha_gdbarch_init): Update.
1359 * arm-tdep.c (arm_gdbarch_init): Update.
1360 * mips-tdep.c (mips_gdbarch_init): Update.
1361 * i386-tdep.c (i386_gdbarch_init): Update.
1363 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1365 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1366 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1368 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1370 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1373 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1375 * infrun.c (handle_inferior_event): Move a comment outside of a
1376 function call, in order to avoid indent reformatting this part
1377 of the code in an unreadable way.
1379 2002-08-23 Grace Sainsbury <graces@redhat.com>
1381 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1382 when breakpoints fail. Move general breakpoint error messages to
1384 * breakpoint.c (insert_breakpoints): Change warnings when
1385 breakpoints are nto inserted to specify the type. Remove call to
1386 memory_error when hardware breakpoints can't be inserted. Remove
1387 multiple calls to warning so all messages are sent to the user at
1389 (delete_breakpoints): Make insert error messsages more explicit.
1391 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1393 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1394 gdbserver/ChangeLog.
1396 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1398 * i386-tdep.c: Include "objfiles.h".
1399 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1400 skip_trampoline_code.
1401 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1402 (CPLUS_MARKER): Define to '.'.
1404 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1406 (linux_corefile_thread_callback): Increase args->num_notes.
1407 (linux_make_note_section): Initialize thread_args.num_notes, and
1408 use it to determine whether notes for any threads were created.
1410 2002-08-23 Donn Terry <donnte@microsoft.com>
1412 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1413 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1415 (write_with_trace): Conditionalize out the switch branch handling
1416 PCSHOLD if the corresponding macro is not defined. Likewise for
1417 PRSABORT and PRSTOP.
1418 This change will be needed by the Interix port.
1420 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1422 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1423 write_register wherever possible instead of manipulating the
1424 register bytes directly.
1425 Assign VALUE_CONTENTS to a variable and use that.
1426 The GPR numbers are now dependent on the architecture.
1428 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1430 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1432 (skip_prologue): Add support for BookE/e500 instructions.
1433 (e500_extract_return_value): New function.
1434 (frame_get_saved_regs): Add support for saving ev registers and
1436 (e500_store_return_value): New function.
1437 (rs6000_gdbarch_init): Move up default intializations of
1438 deprecated_extract_return_value and store_return_value. Overwrite
1439 init of store_return_value with e500 specific version.
1440 Set extract_return_value for e500.
1442 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1444 * blockframe.c (generic_call_dummy_register_unwind): Use
1445 regcache_cooked_read to catch cases in which the variable is
1446 stored in a pseudo register.
1448 2002-08-22 Andrew Cagney <cagney@redhat.com>
1450 * NEWS: Mention that the i960 has been made obsolete.
1451 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1453 (remote-nrom.o): Obsolete target.
1454 (remote-nindy.o, i960-tdep.o): Ditto.
1455 * remote-nrom.c: Make file obsolete.
1456 * remote-nindy.c, remote-vx960.c: Ditto.
1457 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1458 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1459 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1460 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1461 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1462 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1463 i960-*-vxworks* obsolete.
1464 * MAINTAINERS: Note that the i960 is obsolete.
1466 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1468 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1469 detach to allow reinitialization.
1471 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1473 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1476 2002-08-22 Jim Blandy <jimb@redhat.com>
1478 * coffread.c (coff_symfile_read): Don't try to read the line
1479 number table from disk if the image file doesn't have a symbol
1480 table; we'll never actually look at the info anyway, and Windows
1481 ships DLL's with bogus file offsets for the line number data.
1483 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1485 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1488 2002-08-21 Michael Snyder <msnyder@redhat.com>
1490 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1491 (MSYMBOL_SIZE): Replace macro with function.
1492 (DEFAULT_MIPS_TYPE): Delete unused macro.
1493 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1494 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1496 2002-08-21 Jim Blandy <jimb@redhat.com>
1498 * valops.c (value_cast): Simplify and correct logic for doing a
1499 static cast from a pointer to a base class to a pointer to a
1502 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1504 * infcmd.c (default_print_registers_info): Replace
1506 (registers_info): Use gdbarch_print_registers_info instead of
1508 * inferior.h (default_print_registers_info): Replace
1510 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1511 (DO_REGISTERS_INFO): Change to a predicate function.
1512 * gdbarch.h, gdbarch.c: Regenerate.
1514 2002-08-21 Keith Seitz <keiths@redhat.com>
1516 * gdb-events.sh: Add target-changed event.
1517 * gdb-events.c: Regenerated.
1518 * gdb-events.c: Regenerated.
1519 * valops.c (value_assign): Add target-changed event notification
1520 to inlval_register, lval_memory, and lval_reg_frame_relative.
1522 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1524 * NEWS: Add an entry regarding the improvement of the next/step
1525 operation on Alpha Tru64 multi-processor machines.
1527 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1529 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1531 * Makefile.in: Update all _h macro definitions.
1532 * Makefile.in (install-gdbtk): Move to install section.
1533 (rdi-share/libangsd.a): Move to end of file.
1535 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1537 * frame.c (frame_register_unwind): When a register, set addrp to
1538 the register's byte.
1540 2002-08-20 Michael Snyder <msnyder@redhat.com>
1542 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1543 used locally, so move them from the target machine header to here.
1544 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1545 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1547 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1549 2002-08-20 Andrew Cagney <cagney@redhat.com>
1551 * NEWS: Mention that the Apollo line was made obsolete.
1552 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1553 m68*-hp-hpux* obsolete.
1554 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1555 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1556 * buildsym.c (make_blockvector): Make static.
1557 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1558 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1559 (ALLDEPFILES): Remove dstread.c.
1560 (dstread.o): Obsolete make rule.
1561 * dstread.c: Makefile obsolete.
1563 * config/m68k/hp300hpux.mt: Ditto.
1564 * config/m68k/hp300hpux.mh: Ditto.
1565 * config/m68k/hp300bsd.mt: Ditto.
1566 * config/m68k/hp300bsd.mh: Ditto.
1567 * config/m68k/apollo68b.mt: Ditto.
1568 * config/m68k/apollo68v.mh: Ditto.
1569 * config/m68k/apollo68b.mh: Ditto.
1571 2002-08-20 Michael Snyder <msnyder@redhat.com>
1573 * mips-tdep.c (mips_in_return_stub): Make static.
1574 (mips_gdbarch_init): Set in_solib_return_trampoline.
1575 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1577 2002-08-20 Michael Snyder <msnyder@redhat.com>
1579 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1580 * gdbarch.c, gdbarch.h: Regenerate.
1581 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1583 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1585 2002-08-20 Michael Snyder <msnyder@redhat.com>
1587 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1588 (mips_gdbarch_init): Set skip_trampoline_code,
1589 in_solib_call_trampoline.
1590 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1591 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1593 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1595 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1597 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1598 vector type for ev registers.
1599 (e500_pseudo_register_read): New function.
1600 (e500_pseudo_register_write): New function.
1601 (e500_dwarf2_reg_to_regnum): New function.
1602 (PPC_UISA_NOFP_SPRS): New macro.
1603 (PPC_EV_REGS): New macro.
1604 (PPC_GPRS_PSEUDO_REGS): New macro.
1605 (registers_e500): New register set for e500.
1606 (variants): Add e500 variant.
1607 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1608 before setting architectural dependent variations. Initialize ev
1609 registers numbers. Add case for e500 architecture. Set the
1610 number of pseudo registers.
1612 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1614 * rs6000-tdep.c: Clean up comments.
1616 2002-08-20 Andrew Cagney <cagney@redhat.com>
1618 * h8300-tdep.c: Re-indent file.
1620 2002-08-20 Jim Blandy <jimb@redhat.com>
1622 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1625 2002-08-20 Keith Seitz <keiths@redhat.com>
1627 * breakpoints.c (watch_command_1): Use internal breakpoint
1628 when setting a watchpoint_scope breakpoint.
1630 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1632 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1633 (build_builtin_type_vec64i): Ditto.
1634 (build_builtin_type_vec128): Ditto.
1635 (build_builtin_type_vec128i): Ditto.
1637 2002-08-19 Michael Snyder <msnyder@redhat.com>
1639 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1640 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1641 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1642 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1643 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1644 CALL_DUMMY_ADDRESS): Delete.
1645 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1646 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1647 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1648 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1649 push_return_address.
1650 (mips_register_raw_size, mips_eabi_use_struct_convention,
1651 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1652 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1653 mips_init_extra_frame_info, mips_eabi_push_arguments,
1654 mips_n32n64_push_arguments, mips_push_return_address,
1655 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1656 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1658 2002-08-19 Michael Snyder <msnyder@redhat.com>
1660 * mips-tdep.c (mips_frame_num_args): New function.
1661 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1662 frame_saved_pc, frame_args_address, frame_locals_address,
1663 frame_num_args, and frame_args_skip.
1664 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1665 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1666 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1667 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1669 2002-08-20 Michael Snyder <msnyder@redhat.com>
1671 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1672 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1673 * mips-tdep.c (mips_store_struct_return): New function.
1674 (mips_extract_struct_value_address): New function.
1675 (mips_gdbarch_init): Set store_struct_return and
1676 extract_struct_value_address.
1678 2002-08-20 David Carlton <carlton@math.stanford.edu>
1680 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1681 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1682 (read_file_scope): Check that line_header is nonzero before
1683 decoding macro information.
1685 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1687 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1688 flag the general-purpose registers as floating-point on targets
1689 that don't support the floating-point registers.
1691 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1693 * rs6000-tdep.c (altivec_register_p): Delete.
1694 (rs6000_do_altivec_registers): Delete.
1695 (rs6000_altivec_registers_info): Delete.
1696 (rs6000_do_registers_info): Delete.
1697 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1698 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1700 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1702 * infcmd.c (do_registers_info): Print vector registers in hex
1704 (print_vector_info): Check that printing registers
1706 (print_float_info): Ditto.
1708 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1710 * mips-tdep.c (mips_gdbarch_init): Update.
1711 (mips_o32_extract_return_value): Rewrite.
1712 (mips_o32_store_return_value): Rewrite.
1713 (mips_o32_xfer_return_value): New function.
1714 (mips_xfer_register): Tweak debug print message. Allow for
1715 buf_offset when dumping the value transfered.
1717 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1719 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1720 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1721 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1722 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1723 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1725 2002-08-14 Michael Snyder <msnyder@redhat.com>
1727 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1729 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1731 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1733 (P): New macro to define a register as a pseudo register.
1734 (R, R4, R8, R16, FR32, R64, R0): Updated.
1735 (struct variant): Add new fields for number of pseudo registers
1736 and number of total registers.
1737 (tot_num_registers): New macro replacing....
1738 (num_registers): ...deleted macro.
1739 (num_registers): New function.
1740 (num_pseudo_registers): New function.
1741 (variants): Update all variants to intialize new fields correctly.
1742 Postpone initialization of number of pseudo regs and real regs.
1743 (init_variants): New function.
1744 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1747 2002-08-19 David Carlton <carlton@math.stanford.edu>
1749 * valops.c (search_struct_field): Change error message to treat
1750 return value of 0 from value_static_field as meaning that field is
1752 (value_struct_elt_for_reference): Ditto.
1753 * values.c (value_static_field): Treat an unresolved location the
1754 same as a nonexistent symbol. Fix PR gdb/635.
1755 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1756 enclosed. Fix PR gdb/574.
1757 * MAINTAINERS: Add self to Write After Approval list.
1759 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1761 * mips-tdep.c (mips_xfer_register): New function.
1762 (mips_n32n64_extract_return_value): Rewrite.
1763 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1764 instead of deprecated_extract_return_value.
1766 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1768 * rs6000-tdep.c (TDEP): Delete macro.
1769 (branch_dest): Replace use of TDEP macro with its body.
1770 (rs6000_pop_frame): Ditto.
1771 (rs6000_push_arguments): Ditto.
1772 (rs6000_skip_trampoline_code): Ditto.
1773 (rs6000_frame_saved_pc): Ditto.
1774 (rs6000_frame_chain): Ditto.
1775 (rs6000_register_name): Ditto.
1776 (rs6000_register_byte): Ditto.
1777 (rs6000_register_raw_size): Ditto.
1778 (rs6000_register_virtual_type): Ditto.
1779 (rs6000_register_convertible): Ditto.
1780 (rs6000_convert_from_func_ptr_addr): Ditto.
1782 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1784 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1786 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1787 MIPS_LINUX_JB_ELEMENT_SIZE.
1788 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1789 for MAX_REGISTER_RAW_SIZE arrays.
1790 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1791 MIPS_LINUX_JB_ELEMENT_SIZE.
1793 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1795 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1797 2002-08-19 Aidan Skinner <aidan@velvet.net>
1799 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1800 ada-valprint.c ada-tasks.c.
1801 (YYFILES): Add ada-exp.y.
1802 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1803 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1804 (ada-exp.tab.o): New target.
1806 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1808 * regcache.c (regcache_xfer_part): New function.
1809 (regcache_raw_read_part): New function.
1810 (regcache_raw_write_part): New function.
1811 (regcache_cooked_read_part): New function.
1812 (regcache_cooked_write_part): New function.
1813 * regcache.h (regcache_raw_read_part): Declare.
1814 (regcache_raw_write_part): Declare.
1815 (regcache_cooked_read_part): Declare.
1816 (regcache_cooked_write_part): Declare.
1818 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1820 * remote.c (remote_open_1): Add async_p.
1821 (remote_async_open_1): Delete.
1822 (open_remote_target): Delete.
1823 (remote_open, extended_remote_open): Update calls to remote_open_1.
1824 (remote_async_open, extended_remote_async_open): Call
1825 remote_open_1 instead of remote_async_open_1.
1827 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1829 * blockframe.c: Fix a few coding standard violations.
1831 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1833 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1835 * config/i386/tm-i386sco5.h: ... here. File removed.
1836 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1838 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1839 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1840 (TM_FILE): Set to tm-i386.h.
1841 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1842 * config/i386/tm-i386v.h: Remove file.
1843 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1844 instead of "i386/tm-i386v.h".
1845 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1846 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1848 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1849 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1852 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1854 * config/i386/nm-i386v.h: Add protection against
1856 (i386_register_u_addr): Remove prototype.
1857 (register_u_addr): New prototype.
1858 (REGISTER_U_ADDR): Redefine accordingly.
1859 * i386v-nat.c: Improve several comments.
1860 (i386_register_u_addr): Change signature and rename to
1861 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1864 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1866 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1867 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1868 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1869 deprecated_extract_return_value.
1870 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1871 rename mips_o32o64_push_arguments.
1872 (mips_gdbarch_init): Update.
1873 (mips_extract_return_value): Delete.
1874 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1875 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1876 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1877 (mips_n32n64_extract_return_value): Clone
1878 mips_extract_return_value.
1879 (mips_store_return_value): Delete.
1880 (mips_o32_store_return_value): Clone mips_store_return_value.
1881 (mips_o64_store_return_value): Clone mips_store_return_value.
1882 (mips_eabi_store_return_value): Clone mips_store_return_value.
1883 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1885 2002-08-18 Aidan Skinner <aidan@velvet.net>
1887 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1888 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1890 2002-08-18 Aidan Skinner <aidan@velvet.net>
1892 * ada-lang.c: Run through gdb_indent.sh.
1893 * ada-lang.h: Run through gdb_indent.sh.
1894 * ada-tasks.c: Run through gdb_indent.sh.
1895 * ada-typeprint.c: Run through gdb_indent.sh.
1896 * ada-valprint.c: Run through gdb_indent.sh.
1898 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1900 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1903 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1905 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1907 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1908 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1910 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1911 write_register_gen instead of write_register_bytes.
1913 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1914 i[3456]-*-osf1mk* configurations have been made obsolete.
1915 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1916 i[3456]86-*-osf1mk* hosts obsolete.
1917 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1919 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1920 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1921 config/i386/i386m3.mt, config/i386/nm-m3.h,
1922 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1923 config/i386/i386mk.mh, config/i386/i386mk.mt,
1924 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1926 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1927 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1928 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1930 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1932 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1933 (hppa_value_returned_from_stack): Declare.
1934 (hppa_extract_return_value): Declare.
1935 * config/pa/hppa.mt: New file.
1936 * configure.tgt: Recognize hppa*-*-*.
1937 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1939 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1941 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1944 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1946 * top.c (gdb_rl_operate_and_get_next): Make sure
1947 operate-and-get-next functions correctly even when the history
1948 list is completely filled.
1950 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1952 * MAINTAINERS (Target Instruction Set Architectures): Rename
1953 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1954 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1955 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1956 already listed under Host/Native.
1958 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1959 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1962 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1964 * config/ia64/ia64.mt: New file.
1965 * config/alpha/alpha.mt: New file.
1966 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1967 ia64-linux-gnu. Mention that ia64-elf is broken.
1968 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1970 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1972 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1973 generic_func_frame_valid instead of func_frame_valid.
1975 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1977 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1978 procfs appears to be broken when debugging on multi-processor
1979 machines. So enable software single stepping in order to avoid
1980 using the procfs interface to do next/step operations, using
1981 internal breakpoints instead.
1983 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1984 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1985 make this pc address equal to the value it would have if the
1986 system stepping capability was used. Also set a new flag used
1987 to ensure that we don't readjust the PC one more time later.
1989 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1990 address by DECR_PC_AFTER_BREAK when software single step is
1991 in use for this architecture, as this has already been taken
1992 care of in handle_inferior_event().
1994 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1996 * infrun.c (handle_inferior_event): Minor reformatting, to make
1997 a rather long condition expression easier to read.
1999 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2001 * Makefile.in (gdbtk.o): Move to end of file.
2002 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2003 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2004 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2005 (gdbtk-wrapper.o, gdbres.o): Ditto.
2007 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2009 * Makefile.in (copying.o): Separate out compile rule.
2010 (hpux-thread.o, procfs.o, signals.o): Ditto.
2011 (v850ice.o, z8k-tdep.o): Ditto.
2012 (tui-file.o): Move to TUI section.
2013 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2014 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2016 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2018 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2019 skip_trampoline_code, for better namespace-proofing.
2021 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2023 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2025 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2027 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2029 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2030 signal, check whether we hit a breakpoint before checking for a
2031 single step breakpoint. Otherwise, GDB fails to notice that a
2032 breakpoint has been hit when stepping onto a breakpoint.
2034 2002-08-16 Keith Seitz <keiths@redhat.com>
2036 * gdb-events.sh (clear_gdb_event_hooks): New function.
2037 * gdb-events.c: Regenerate.
2038 * gdb-events.h: Regenerate.
2040 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2042 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2043 not_a_sw_breakpoint.
2044 * breakpoint.h (bpstat_stop_status): Add parameter names.
2046 2002-08-16 Grace Sainsbury <graces@redhat.com>
2048 * remote.c (remote_insert_hw_breakpoint)
2049 (remote_remove_hw_breakpoint): Fix calculation of length field
2052 2002-08-15 Michael Snyder <msnyder@redhat.com>
2054 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2055 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2056 (supply_fpregset): Ditto.
2058 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2059 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2060 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2061 (TARGET_READ_SP): Delete.
2062 (DO_REGISTERS_INFO): Delete.
2063 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2065 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2066 from macros to functions.
2068 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2069 (mips_register_convertible, mips_register_convert_to_virtual,
2070 mips_register_convert_to_raw): Make static.
2071 (mips_read_sp): New function.
2072 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2073 (mips_do_registers_info): Make static.
2074 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2075 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2076 (mips_register_convert_from_type, mips_register_convert_to_type):
2078 (mips_gdbarch_init): Set up function_start_offset,
2079 register_virtual_size, pc_in_sigtramp.
2081 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2083 * infcmd.c (vector_info): New function.
2084 (_initialize_infcmd): Add command "info vector".
2085 (print_vector_info): New function.
2087 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2088 * gdbarch.h, gdbarch.c: Regenerate.
2090 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2092 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2093 ``print_all''. Only print vector registers when ``print_all''.
2095 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2097 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2098 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2100 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2101 Add `args' parameter.
2102 * gdbarch.h, gdbarch.c: Regenerate.
2104 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2106 * infcmd.c (float_info): Call print_float_info.
2107 (print_float_info): New function. By default, print the
2108 floating-point registers.
2110 * arch-utils.h (default_print_float_info): Delete declaration.
2111 * arch-utils.c (default_print_float_info): Delete function.
2113 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2115 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2118 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2121 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2122 * configure.host: Make i[3456]86-*-aix host obsolete.
2123 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2124 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2125 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2126 config/i386/xm-i386aix.h: Make files obsolete.
2127 * i386aix-nat.c: Make file obsolete.
2128 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2129 (i386aix-nat.o): Make target obsolete.
2131 * config/i386/nm-gnu.h: Removed.
2132 * config/i386/nm-i386gnu.h: New file.
2133 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2134 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2136 * config/i386/tm-i386gnu.h: ... here. Removed.
2137 * config/i386/xm-i386gnu.h: Removed.
2138 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2139 (NAT_FILE): Set to nm-i386gnu.h.
2140 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2141 * i386-tdep.c: New file.
2142 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2143 (i386gnu-tdep.o): Specify dependencies.
2145 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2147 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2148 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2149 Adjust a few comments to reflect reality a bit closer.
2150 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2151 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2152 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2153 target_insert_watchpoint, target_remove_watchpoint):
2155 * config/i386/nm-i386sco5.h: ... here.
2156 (kernel_u_size): Add prototype. Improve a few comments and add
2157 protection against multiple inclusion.
2159 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2162 * uw-thread.c (SP_ARG0): Define if not already defined.
2163 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2165 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2167 * config/i386/tm-i386.h: Don't include "regcache.h".
2169 * i387-tdep.h (i387_print_float_info): New prototype.
2170 * i387-tdep.c (print_i387_value, print_i387_ext,
2171 print_i387_status_word, print_i387_control_word): Add `struct
2172 ui_file *' argument and use it for output.
2173 (i387_print_float_info): Renamed from i387_float_info. Add
2174 `struct gdbarch *' and `struct ui_file *' arguments and use the
2176 * i386-tdep.c: Include "i387-tdep.h".
2177 (i386_gdbarch_init): Set print_float_info.
2178 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2179 (FLOAT_INFO): Remove define.
2181 2002-08-13 Michael Snyder <msnyder@redhat.com>
2183 * mips-tdep.c (mips_push_arguments): Rename to
2184 mips_eabi_push_arguments, and tune for EABI.
2185 (MIPS_REGS_HAVE_HOME_P): Delete.
2186 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2187 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2188 Delete references to mips_regs_have_home_p.
2190 2002-08-14 Keith Seitz <keiths@redhat.com>
2192 * Makefile.in (install-gdbtk): Create insight plugin directory.
2193 Install plugins.tcl file.
2195 2002-08-14 Keith Seitz <keiths@redhat.com>
2197 * configure.in: Move SUBDIRS to near top of the file so that
2198 --enable options may add things to it.
2199 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2200 * configure: Regenerate.
2202 2002-08-13 Michael Snyder <msnyder@redhat.com>
2204 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2205 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2206 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2208 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2210 * vax-tdep.c (vax_get_saved_register): Delete function.
2211 (vax_gdbarch_init): Update.
2212 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2213 (ns32k_gdbarch_init): Update.
2214 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2215 (alpha_gdbarch_init): Update.
2217 2002-08-13 Andrew Cagney <cagney@redhat.com>
2219 * regcache.c (init_regcache_descr): Overallocate the
2220 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2221 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2223 (set_register_cached): Add range checking assertions. Use
2226 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2228 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2229 numbers for MMX registers.
2231 2002-08-13 Andrew Cagney <cagney@redhat.com>
2233 * i386-tdep.c (i386_gdbarch_init): Use
2234 generic_unwind_get_saved_register.
2236 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2238 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2239 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2241 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2242 Delete. Add comment regarding this now-deleted target method.
2244 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2246 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2247 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2248 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2249 real PC and the page number (if it's within the memory bank window).
2250 (m68hc11_pseudo_register_write): Likewise when saving.
2251 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2252 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2253 (m68hc11_register_raw_size): And use 32-bit for it.
2254 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2255 16K memory bank is used by the prog; also use the virtual pc.
2257 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2259 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2260 (m68hc11_gdbarch_init): Install it in gdbarch.
2261 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2262 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2263 (MSYMBOL_SIZE): New for documentation.
2264 (insn_return_kind): Enum to specify how a function returns.
2265 (frame_extra_info): Cleanup and record the return mode.
2266 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2267 register in address computation.
2268 (m68hc11_get_return_insn): New to obtain the return instruction used
2270 (m68hc11_frame_init_saved_regs): Take into account the return
2271 instruction used by the function for far and interrupt functions.
2272 (m68hc11_init_extra_frame_info): Take into account page register.
2273 (m68hc11_frame_args_address): Adjust according to the return mode.
2274 (show_regs): Print page register only when it's used.
2276 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2278 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2279 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2280 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2282 (m68hc11_register_raw_size): Likewise.
2284 2002-08-13 Andrew Cagney <cagney@redhat.com>
2286 * i386-tdep.c (i386_register_name): Handle mmx registers.
2287 (mmx_regnum_p): New function.
2288 (i386_mmx_names): New array.
2289 (mmx_num_regs): New variable.
2290 (i386_pseudo_register_read): New function.
2291 (i386_pseudo_register_write): New function.
2292 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2294 * regcache.c (regcache_raw_read_unsigned): New function.
2295 (regcache_raw_read_signed): New function.
2296 * regcache.h (regcache_raw_read_unsigned): Declare.
2297 (regcache_raw_read_signed): Declare.
2299 2002-08-13 Andrew Cagney <cagney@redhat.com>
2301 * regcache.c (regcache_raw_read_as_address): Delete function.
2302 (regcache_cooked_read_signed): New function.
2303 (regcache_cooked_read_unsigned): New function.
2304 * regcache.h (regcache_cooked_read_signed): Declare.
2305 (regcache_cooked_read_unsigned): Declare.
2306 (regcache_raw_read_as_address): Delete declaration.
2308 * blockframe.c (generic_read_register_dummy): Use
2309 regcache_cooked_read_unsigned.
2310 * i386-tdep.c (i386_extract_struct_value_address): Use
2311 regcache_cooked_read_unsigned.
2313 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2316 double sizes according to ELF ABI flags.
2317 (gdbarch_tdep): Record elf_flags.
2319 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2321 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2322 (m6812_prolog): They can appear in 68HC12 function prologue.
2323 (m68hc11_frame_chain): Cleanup.
2325 2002-08-12 Andrew Cagney <cagney@redhat.com>
2327 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2329 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2330 (i386_linux_register_raw_size): Delete function.
2331 (i386_linux_init_abi): Update.
2332 * i386-tdep.c (i386_register_raw_size): Delete function.
2333 (i386_register_byte): Delete function.
2334 (i386_gdbarch_init): Update.
2335 (i386_register_size): Delete array.
2336 (i386_register_offset): Delete array.
2338 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2339 (REGISTER_RAW_SIZE): Delete macro.
2340 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2341 (REGISTER_BYTE): Delete macro.
2343 2002-08-11 Aidan Skinner <aidan@velvet.net>
2345 * ada-lang.c (ada_lookup_partial_symbol)
2346 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2347 prototype names so that grep ^func works properly.
2349 * ada-lang.c (ada_array_element_type)
2350 (ada_lookup_partial_symbol): Fix typos in parameter list.
2352 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2353 Fix prototype names so that grep ^func works properly.
2355 2002-08-10 Andrew Cagney <cagney@redhat.com>
2356 Elena Zannoni <ezannoni@redhat.com>
2357 Martin M. Hunt <hunt@redhat.com>
2359 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2360 (build_builtin_type_vec128i): Set the vector bit.
2361 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2362 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2363 (build_builtin_type_vec64): New function.
2364 (build_builtin_type_vec64i): New function.
2365 (build_gdbtypes): Initialize builtin_type_vec64 and
2366 builtin_type_vec64i.
2368 2002-08-09 Andrew Cagney <cagney@redhat.com>
2370 * regcache.c (regcache_dump): Compare the register offset
2372 * arch-utils.c (generic_register_byte): New function.
2373 * arch-utils.h (generic_register_byte): Declare.
2374 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2375 * gdbarch.h, gdbarch.c: Regenerate.
2377 2002-08-09 Andrew Cagney <cagney@redhat.com>
2379 * regcache.c: Include "gdbcmd.h"
2380 (_initialize_regcache): Add commands "maintenance print
2381 registers", "maintenance print raw-registers" and "maintenance
2382 print cooked-registers".
2383 (enum regcache_dump_what): Define.
2384 (dump_endian_bytes): New function.
2385 (regcache_dump): New function.
2386 (regcache_print): New function.
2387 (maintenance_print_registers): New function.
2388 (maintenance_print_raw_registers): New function.
2389 (maintenance_print_cooked_registers): New function.
2390 * Makefile.in (regcache.o): Update dependencies.
2392 2002-08-09 Michael Snyder <msnyder@redhat.com>
2394 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2395 (mips_push_arguments): Correct some comments. Use paddr_nz
2396 for printing addresses in debug output. Replace static
2397 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2398 (mips_n32n64_push_arguments): New function, cloned from
2399 mips_push_arguments and tuned for the n32/n64 ABI.
2400 (mips_push_register): Buffer needs dynamic allocation.
2401 (mips_print_register): Ditto.
2402 (do_gp_register_row): Ditto.
2403 (mips_store_return_value): Ditto.
2404 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2406 2002-08-09 Don Howard <dhoward@redhat.com>
2408 * memattr.c (mem_info_command): Print special case of upper bound
2409 as max CORE_ADDR + 1.
2411 2002-08-08 Michael Snyder <msnyder@redhat.com>
2413 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2414 returns structs by ref if they're too big to fit in two registers.
2416 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2418 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2420 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2421 mips_find_saved_regs().
2422 (mips_pop_frame): Likewise.
2424 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2426 * blockframe.c (frame_saved_regs_register_unwind): Revise
2427 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2430 2002-08-09 Grace Sainsbury <graces@redhat.com>
2432 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2433 T-packets; the 'a' is not taken as a register number.
2434 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2435 (remote_stopped_data_address): New functions; add to target
2437 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2438 prototypes to match other implementations of this
2439 function. replace integer argument with pointer -- the length
2440 field in the Z-packet is the length of what is pointed to or 1 if
2441 pointer is null. Add to target vector.
2442 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2446 * remote.c (remote_wait): Add support to extract optional
2447 watchpoint information from T-packet. Ignore unrecognized
2448 optional info in T-packet.
2449 (remote_async_wait): Ditto.
2451 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2453 * cli/cli-dump.c: Change fopen modes to use binary open modes
2454 as defined in include/fopen-bin.h throughout.
2456 2002-08-08 Michael Snyder <msnyder@redhat.com>
2458 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2460 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2462 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2463 assertion failure by returning early after a warning.
2465 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2467 * mips-tdep.c (mips_find_saved_regs): Make static.
2468 (mips_frame_init_saved_regs): New function.
2469 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2470 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2471 (mips_find_saved_regs): Delete declaration.
2473 2002-08-08 Grace Sainsbury <graces@redhat.com>
2475 * remote.c (remote_wait, remote_async_wait): Change
2476 thread_num from int to ULONGEST.
2477 (unpack_varlen_hex): Change result parameter from
2478 int * to ULONGEST *.
2480 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2482 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2483 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2485 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2487 2002-08-08 Andrew Cagney <cagney@redhat.com>
2489 * gcore.c (override_derive_stack_segment): Delete variable.
2490 (preempt_derive_stack_segment): Delete function.
2491 (derive_stack_segment): Delete function.
2492 (default_derive_stack_segment): Renamed to derive_stack_segment.
2493 (override_derive_heap_segment): Delete variable.
2494 (preempt_derive_heap_segment): Delete function.
2495 (derive_heap_segment): Delete function.
2496 (default_derive_heap_segment): Rename to derive_heap_segment.
2498 2002-08-06 Michael Snyder <msnyder@redhat.com>
2500 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2501 * mips-tdep.c (mips_EABI_use_struct_convention,
2502 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2503 New functions. (mips_use_struct_convention): Delete.
2504 (mips_gdbarch_init): set use_gdbarch_convention.
2506 2002-08-06 Michael Snyder <msnyder@redhat.com>
2508 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2509 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2510 mips_o32_reg_struct_has_addr): New functions.
2511 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2513 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2515 * regcache.c (pseudo_register): Delete function.
2516 (fetch_register): Delete function.
2517 (store_register): Delete function.
2518 (regcache_raw_read, legacy_read_register_gen): Use
2519 target_fetch_registers instead of fetch_register.
2520 (legacy_write_register_gen, regcache_raw_write): Use
2521 target_store_register instead of store_register.
2522 (write_register_bytes): Ditto.
2524 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2525 (STORE_PSEUDO_REGISTER): Delete.
2526 * gdbarch.h, gdbarch.c: Regenerate.
2528 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2530 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2531 write dump file binary.
2533 2002-08-05 Michael Snyder <msnyder@redhat.com>
2535 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2536 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2537 (mips_gdbarch_init): Set N32 target to be mips64.
2539 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2541 * frame.c (find_saved_register): Break out of loop once saved
2542 register address is found. Don't mention sparc in loop comment
2545 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2547 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2548 mips_default_saved_regsize to 8.
2550 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2552 * gcore.c: Do not include <sys/procfs.h>.
2553 * Makefile.in (gcore.o): Update dependencies.
2555 2002-08-06 Andrew Cagney <cagney@redhat.com>
2557 * configure.tgt: Make arc-*-* obsolete.
2558 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2559 * MAINTAINERS: Make arc-elf obsolete.
2560 * arc-tdep.c: Make file obsolete.
2561 * config/arc/arc.mt: Ditto.
2562 * config/arc/tm-arc.h: Ditto.
2564 2002-08-05 Theodore A. Roth <troth@verinet.com>
2566 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2568 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2570 * mcore-tdep.c (mcore_gdbarch_init): Use
2571 generic_unwind_get_saved_register instead of
2572 generic_get_saved_register.
2573 * v850-tdep.c (v850_gdbarch_init): Ditto.
2574 * frv-tdep.c (frv_gdbarch_init): Ditto.
2575 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2576 * s390-tdep.c (s390_gdbarch_init): Ditto.
2577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2578 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2579 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2581 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2583 * objfiles.h: Add missing #include "symfile.h"
2585 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2587 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2589 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2590 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2593 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2595 * NEWS: Cleanup and nitpick.
2597 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2599 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2601 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2603 * Makefile.in (gdbtk-bp.o): Update dependencies.
2604 (gdbtk-register.o): Ditto.
2605 (gdbtk-varobj.o): Ditto.
2607 2002-08-03 Andrew Cagney <cagney@redhat.com>
2609 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2610 m68hc11_fetch_pseudo_register.
2611 (m68hc11_pseudo_register_write): Replace
2612 m68hc11_store_pseudo_register.
2613 (m68hc11_gdbarch_init): Update.
2615 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2617 * gdbarch.sh: Include "gdb_string.h".
2618 * gdbarch.c: Regenerate.
2620 * regcache.c: Include "gdb_string.h".
2621 * ax-general.c: Ditto.
2623 * std-regs.c: Ditto.
2624 * fbsd-proc.c: Ditto.
2627 * Makefile.in (regcache.o): Update dependencies.
2628 (thread.o, gdbarch.o): Ditto.
2629 (ax-general.o, gdbarch.o): Ditto.
2630 (varobj.o, std-regs.o): Ditto.
2631 (fbsd-proc.o): Specify dependencies.
2633 2002-08-02 Andrew Cagney <cagney@redhat.com>
2635 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2637 (regcache_cooked_write): Ditto.
2639 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2641 * regcache.c (regcache_cooked_read): New function.
2642 (regcache_cooked_write): New function.
2643 (read_register_gen): Rewrite using regcache_cooked_read.
2644 (write_register_gen): Rewrite using regcache_cooked_write.
2646 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2649 2002-08-02 Andrew Cagney <cagney@redhat.com>
2651 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2652 Replace the architecture methods register_read and register_write.
2653 * gdbarch.h, gdbarch.c: Regenerate.
2654 * regcache.c (init_regcache_descr): Update.
2655 (read_register_gen): Update.
2656 (write_register_gen): Update.
2657 (supply_register): Update comment.
2659 * sh-tdep.c (sh_gdbarch_init): Update.
2660 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2661 `regcache' and `gdbarch' parameters. Make `buffer' a void
2662 pointer. Update code.
2663 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2664 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2665 void pointer. Update code.
2666 (sh64_register_write): Delete.
2667 (sh4_register_read): Delete.
2668 (sh64_register_read): Delete.
2669 (sh4_register_write): Delete.
2670 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2671 void pointer, `to' parameter a void pointer.
2672 (sh_sh64_register_convert_to_raw): Ditto.
2674 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2676 * mips-tdep.c (mips_register_virtual_type): Use architecture
2677 invariant return values.
2679 2002-08-01 Andrew Cagney <cagney@redhat.com>
2681 * linux-proc.c: Include "gdb_string.h".
2682 * Makefile.in (linux-proc.o): Update dependency list.
2684 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2686 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2689 2002-08-01 Grace Sainsbury <graces@redhat.com>
2691 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2692 to_insert_watchpoint, to_remove_watchpoint,
2693 to_stopped_by_watchpoint, to_stopped_data_address,
2694 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2695 target vecctor. Define their corresponding macros so they call
2698 * target.c: Add default and debug versions of for
2699 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2700 to_insert_watchpoint, to_remove_watchpoint,
2701 to_stopped_by_watchpoint, to_stopped_data_address,
2702 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2704 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2706 * mips-tdep.c (mips_register_virtual_type): New function.
2707 (mips_gdbarch_init): Register mips_register_virtual_type()
2708 with gdbarch machinery.
2709 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2710 this file instead of tm-bigmips.h.
2711 (MIPS_REGSIZE): Delete this macro.
2712 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2713 multiarch version in mips-tdep.c will be found.
2715 2002-08-01 Andrew Cagney <cagney@redhat.com>
2717 * NEWS: Menion that CHILL has been made obsolete.
2719 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2720 * stabsread.c (read_range_type): Ditto.
2721 * gdbtypes.h: Ditto.
2722 * language.c (binop_type_check): Ditto.
2723 (binop_result_type): Ditto.
2724 (integral_type): Ditto.
2725 (character_type): Ditto.
2726 (string_type): Ditto.
2727 (boolean_type): Ditto.
2728 (structured_type): Ditto.
2729 (lang_bool_type): Ditto.
2730 (binop_type_check): Ditto.
2731 * language.h (_LANG_chill): Ditto.
2732 * dwarfread.c (set_cu_language): Ditto.
2733 * dwarfread.c (CHILL_PRODUCER): Ditto.
2734 * dwarfread.c (handle_producer): Ditto.
2735 * expression.h (enum exp_opcode): Ditto.
2736 * eval.c: Ditto for comments.
2737 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2738 * expprint.c (print_subexp): Ditto.
2739 (print_subexp): Ditto.
2740 * valops.c (value_cast): Ditto.
2741 (search_struct_field): Ditto.
2742 * value.h (COERCE_VARYING_ARRAY): Ditto.
2743 * symfile.c (init_filename_language_table): Ditto.
2744 (add_psymbol_with_dem_name_to_list): Ditto.
2745 * valarith.c (value_binop): Ditto.
2747 * valops.c (value_slice): Ditto.
2748 * symtab.h (union language_specific): Ditto.
2749 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2750 (SYMBOL_DEMANGLED_NAME): Ditto.
2751 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2752 * defs.h (enum language): Ditto.
2753 * symtab.c (got_symtab): Ditto.
2754 * utils.c (fprintf_symbol_filtered): Ditto.
2756 * ch-typeprint.c: Make file obsolete.
2757 * ch-valprint.c: Make file obsolete.
2758 * ch-lang.h: Make file obsolete.
2759 * ch-exp.c: Make file obsolete.
2760 * ch-lang.c: Make file obsolete.
2762 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2764 (TARGET_FLAGS_TO_PASS): Ditto.
2765 (CHILLFLAGS): Obsolete.
2767 (CHILL_FOR_TARGET): Obsolete.
2768 (CHILL_LIB): Obsolete.
2769 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2771 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2772 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2774 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2777 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2779 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2780 This does not change anything at the moment, but will be helpful
2781 later when full Ada support is integrated.
2783 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2785 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2788 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2790 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2791 and save it in a local variable. Use variable in later test.
2793 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2795 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2796 test. (Thanks to Daniel Jacobowitz.)
2798 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2800 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2801 (mips_abi_strings): Add "n64".
2802 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2804 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2806 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2807 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2809 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2811 * utils.c (host_pointer_to_address, address_to_host_pointer):
2812 Use gdb_assert() instead of explicit call to internal_error().
2814 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2816 * Makefile.in (rs6000-nat.o): Update dependencies.
2818 From Nicholas Duffek:
2819 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2820 (aix-thread.o): New rule.
2821 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2822 * config/powerpc/aix432.mh: New file.
2824 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2826 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2827 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2828 (fetch_core_registers, ppc_linux_supply_gregset)
2829 (ppc_linux_supply_fpregset): New functions.
2830 (ppc_linux_regset_core_fns): New.
2831 (_initialize_ppc_linux_tdep): Call add_core_fns.
2832 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2833 and ppc_linux_supply_gregset.
2834 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2835 (supply_fpregset): Call ppc_linux_supply_fpregset.
2836 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2838 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2840 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2842 * symtab.c (lookup_symbol): Demangle before lowercasing.
2844 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2846 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2848 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2849 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2850 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2851 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2853 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2854 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2855 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2856 (avr-tdep.o, mon960-rom.o): Ditto.
2857 (aout_stabs_gnu_h): Define.
2858 (symtab_h): Remove $(gdb_obstack_h).
2860 2002-07-30 Jim Blandy <jimb@redhat.com>
2862 Patch from David Carlton <carlton@math.stanford.edu>:
2863 * gdbinit.in: Move the `dir' commands that add GDB's own source
2864 directory to the search path to the end, so that the `gdb' source
2865 directory will be searched first.
2867 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2869 * gdb_obstack.h: New file.
2870 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2871 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2872 * objfiles.h: Include "gdb_obstack.h".
2873 * Makefile.in (gdb_obstack_h): Define.
2874 (symtab_h): Add $(gdb_obstack_h).
2875 (objfiles_h): Add $(gdb_obstack_h).
2877 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2878 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2879 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2880 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2881 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2882 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2883 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2884 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2886 * Makefile.in (bcache.o): Update dependencies.
2887 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2888 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2889 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2890 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2891 (stabsread.o, symfile.o, symmisc.o): Ditto.
2892 (symtab.o, typeprint.o, macroexp.o): Ditto.
2893 (macrotab.o, mdebugread.o): Ditto.
2894 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2895 (coff_ecoff_h, aout_aout64_h): Define.
2896 (aout_stabs_gnu_h, libaout_h): Define.
2898 2002-07-29 Andrew Cagney <cagney@redhat.com>
2900 * regcache.c (struct regcache_descr): Rename nr_registers to
2901 nr_cooked_registers. Revise comments describing the structure
2903 (init_regcache_descr): Update.
2904 (init_legacy_regcache_descr): Update.
2905 (read_register_gen, write_register_gen): When a cooked register in
2906 the raw register range, directly access the value from the raw
2909 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2911 * z8k-tdep.c: Do not include "obstack.h".
2912 * h8300-tdep.c, h8500-tdep.c: Ditto.
2913 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2914 * valprint.c, v850-tdep.c: Ditto.
2915 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2916 * mn10200-tdep.c: Ditto.
2918 * Makefile.in (z8k-tdep.o): Update dependencies.
2919 (m68hc11-tdep.o, valprint.o): Ditto.
2920 (v850-tdep.o, d10v-tdep.o): Ditto.
2921 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2922 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2923 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2924 (sh_opc_h, gdb_sim_sh_h): Define.
2925 (elf_sh_h, elf_bfd_h): Define.
2926 (opcode_m68hc11_h): Define.
2927 (OPCODES_SRC, OPCODES_DIR): define.
2928 (OPCODES): Use $(OPCODES_DIR).
2929 (gdb_sim_d10v_h): Rename sim_d10v_h.
2930 (gdb_sim_arm_h): Rename sim_arm_h.
2932 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2934 * utils.c (host_pointer_to_address, address_to_host_pointer):
2935 Change internal_error() message to indicate function responsible
2938 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2940 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2941 calls to local_hex_string_custom().
2943 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2945 * irix5-nat.c: Move IRIX shared library support from here...
2946 * solib-irix.c: ...to here. Revised substantially to work with
2947 generic solib framework.
2949 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2950 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2951 * mips-irix-tdep.c: New file.
2953 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2954 (mips-irix-tdep.o, solib-irix.o): New rules.
2955 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2957 * config/mips/irix6.mt (TDEPFILES): Likewise.
2958 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2960 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2962 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2963 disabled (via ``#if 0'') includes.
2965 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2967 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2968 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2969 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2970 Add support for the fpscr register.
2971 * rs6000-nat.c (regmap, fetch_inferior_registers)
2972 (store_inferior_registers, fetch_core_registers): Likewise.
2974 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2976 * rs6000-nat.c (language.h): Include.
2977 (special_regs): Delete this array.
2978 (regmap): New function.
2979 (fetch_register, store_register): Use regmap() to map gdb
2980 register numbers to ptrace register numbers. Also, use
2981 outputs from regmap() to make decisions regarding type of
2982 ptrace() call to make. In particular, don't compare against
2983 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2984 (fetch_inferior_registers, store_inferior_registers): Where
2985 possible, obtain register numbers from tdep struct. Don't
2986 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2987 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2988 (LAST_UISA_SP_REGNUM): Delete.
2990 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2992 * rs6000-nat.c (ppc-tdep.h): Include.
2993 (fetch_registers, store_register, fetch_core_registers): Don't
2994 access registers[] directly. Instead, use supply_register() or
2995 regcache_collect() as appropriate.
2996 (find_toc_address): Format hex address with local_hex_string().
2998 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3000 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3003 2002-07-24 Tom Tromey <tromey@redhat.com>
3005 * jv-exp.y: Marked all strings with _().
3006 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3008 (MethodInvocation, CastExpression, parse_number, yyerror,
3009 java_type_from_name, push_expression_name, yylex): Typo fixes.
3011 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3013 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3014 (tee_file_flush, tee_file_write, tee_file_fputs)
3015 (tee_file_isatty): New.
3016 * ui-file.h (tee_file_new): Add prototype.
3018 2002-07-24 Aidan Skinner <aidan@velvet.net>
3020 * ada-lang.c: Change k&r style function definitions to prototyped
3022 * ada-typeprint.c: Change k&r style function definitions to prototyped
3024 * ada-valprint.c: Change k&r style function definitions to prototyped
3027 2002-07-24 Andrew Cagney <cagney@redhat.com>
3029 * README: Remove reference to remote-bug.
3030 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3032 (m88k-nat.o): Delete rule.
3033 (m88k-tdep.o): Delete rule.
3034 (remote-bug.o): Delete rule.
3035 * MAINTAINERS: Mark as obsolete.
3036 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3037 * m88k-tdep.c: Make file obsolete.
3038 * config/m88k/m88k.mh: Ditto.
3039 * config/m88k/delta88v4.mh: Ditto.
3040 * config/m88k/delta88v4.mt: Ditto.
3041 * config/m88k/delta88.mt: Ditto.
3042 * config/m88k/delta88.mh: Ditto.
3043 * remote-bug.c: Ditto.
3044 * config/m88k/tm-delta88.h: Ditto.
3045 * config/m88k/nm-delta88v4.h: Ditto.
3046 * config/m88k/xm-delta88.h: Ditto.
3047 * config/m88k/xm-dgux.h: Ditto.
3048 * config/m88k/tm-m88k.h: Ditto.
3049 * config/m88k/nm-m88k.h: Ditto.
3050 * config/m88k/tm-delta88v4.h: Ditto.
3051 * m88k-nat.c: Ditto.
3052 * cxux-nat.c: Ditto.
3053 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3054 and m88*-*-* obsolete.
3055 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3058 2002-07-24 Andrew Cagney <cagney@redhat.com>
3060 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3061 constant. Same for local pointer variables.
3062 (extract_signed_integer): Ditto.
3063 * defs.h (extract_unsigned_integer): Update.
3064 (extract_signed_integer): Update.
3066 2002-07-24 Andrew Cagney <cagney@redhat.com>
3068 * regcache.c (regcache_raw_write): Change buf parameter to a
3069 constant void pointer.
3070 (regcache_raw_read): Change buf parameter to a void pointer.
3071 (legacy_write_register_gen): Change myaddr parameter a constant
3073 (supply_register): Change val parameter to a const void pointer.
3074 * regcache.h (regcache_raw_write): Update declaration.
3075 (regcache_raw_read): Update declaration.
3076 (supply_register): Update declaration.
3078 2002-07-24 Tom Tromey <tromey@redhat.com>
3080 * defs.h (gdb_readline_wrapper): Declare.
3081 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3082 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3083 * top.c (gdb_readline_wrapper): New function.
3084 (command_line_input): Use it.
3086 2002-07-24 Andrew Cagney <cagney@redhat.com>
3088 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3089 regcache_read and regcache_write.
3090 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3091 * regcache.c: Update.
3092 * sh-tdep.c (sh64_push_arguments): Update comment.
3093 (sh_pseudo_register_read): Update.
3094 (sh_pseudo_register_write): Update.
3095 (sh4_register_read): Update.
3096 (sh4_register_write): Update.
3097 (sh64_pseudo_register_read): Update.
3098 (sh64_pseudo_register_write): Update.
3099 (sh64_register_read): Update.
3100 (sh64_register_write): Update.
3101 * i386-tdep.c (i386_extract_return_value): Update.
3102 (i386_extract_struct_value_address): Update.
3103 (i386_extract_return_value): Update.
3104 * blockframe.c (generic_read_register_dummy): Update.
3105 (generic_call_dummy_register_unwind): Update
3106 * infrun.c (write_inferior_status_register): Update.
3108 2002-07-23 Jim Blandy <jimb@redhat.com>
3110 * parser-defs.h (expression_context_pc): Make this extern.
3111 (Thanks to Michael Snyder.)
3113 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3115 GDB 5.2.1 released from 5.2 branch.
3116 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3117 * README: Update to mention 5.2.1.
3119 2002-07-23 Mark Salter <msalter@redhat.com>
3121 * remote.c (remote_read_bytes): Fix check for error.
3123 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3125 * aix-thread.c (language.h): Include.
3126 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3127 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3128 Print newlines at end of debug messages.
3129 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3130 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3132 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3134 * aix-thread.c (ppc-tdep.h): Include.
3135 (special_register_p): New function.
3136 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3137 (store_regs_user_thread): Use register number information from
3138 gdbarch_tdep struct instead of hardcoded offsets relative to
3139 FIRST_UISA_SP_REGNUM.
3140 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3141 special_register_p() instead of using FPLAST_REGNUM and
3142 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3143 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3144 will be MQ's register number.
3146 2002-07-22 Michael Snyder <msnyder@redhat.com>
3148 * aix-thread.c (ops): Rename to aix_thread_ops.
3149 (base_ops): Rename to base_target.
3150 (ops_attach): Rename to aix_thread_attach.
3151 (ops_detach): Rename to aix_thread_detach.
3152 (ops_resume): Rename to aix_thread_detach.
3153 (ops_wait): Rename to aix_thread_wait.
3154 (ops_kill): Rename to aix_thread_kill.
3155 (init_ops): Rename to init_aix_thread_ops.
3156 (ops_fetch_register): Rename to aix_thread_fetch_register.
3157 (ops_store_register): Rename to aix_thread_store_register.
3158 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3159 (ops_thread_alive): Rename to aix_thread_thread_alive.
3160 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3161 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3162 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3163 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3164 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3165 (store_regs_lib): Rename to store_regs_user_thread.
3166 (store_regs_kern): Rename to store_regs_kernel_thread.
3168 2002-07-22 Michael Snyder <msnyder@redhat.com>
3170 * aix-thread.c (ops_prepare_to_store): Eliminate.
3171 (init_ops): Don't initialize ops.prepare_to_store.
3172 (store_regs_kern): Pre-fetch register buffers from child,
3173 because some registers may not be in the cache. Copy
3174 regs from register cache only if they are cached.
3175 (store_regs_lib): Copy regs from register cache only
3177 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3178 fill_gprs64): Ditto.
3180 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3182 * aix-thread.c (gdb_assert.h): Include.
3183 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3184 register sizes (from register cache) match size of buffer holding
3186 (fill_sprs32): Change parameter types to match those in the ptrace()
3188 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3189 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3191 2002-07-22 Michael Snyder <msnyder@redhat.com>
3193 * aix-thread.c (supply_sprs64): Cosmetic change.
3194 (supply_sprs32): Cosmetic change.
3195 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3196 (fill_sprs64): Use regcache_collect instead of read_register.
3197 (store_regs_lib): Use regcache_collect instead of
3198 read_register. Use fill_sprs32 instead of fill_sprs64,
3199 if debugging a 32-bit architecture.
3200 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3201 out of the register cache, instead of passing a pointer into
3202 the register cache directly to ptrace. Use regcache_collect
3203 insteaad of read_register.
3204 (ops_prepare_to_store): Use target_read_registers instead
3205 of read_register_bytes.
3207 2002-07-20 Aidan Skinner <aidan@velvet.net>
3209 * MAINTAINERS: Add self under write after approval.
3211 2002-07-20 Aidan Skinner <aidan@velvet.net>
3213 * ada-tasks.c: Change k&r style function definitions to prototyped
3216 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3218 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3219 * x86-64-tdep.c: Include "objfiles.h".
3220 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3221 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3223 2002-07-17 Michal Ludvig <michal@suse.cz>
3225 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3226 (update_context): Initialise cfa variable.
3228 2002-07-17 Michael Snyder <msnyder@redhat.com>
3230 * aix-thread.c: Shorten some long lines.
3231 Bring comments into line with code spec.
3233 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3235 * infrun.c: Re-indent using gdb_indent.sh.
3237 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3239 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3240 Leave the indentation temporarily untouched, to minimize the diffs.
3242 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3244 * stabsread.c: Make os9k sections of the code obsolete,
3246 * stabsread.h: Make os9k sections of the code obsolete.
3248 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3250 * linux-low.c (regsets_store_inferior_registers): Add free()
3251 at the end of a loop to prevent memory leak.
3252 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3253 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3254 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3256 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3258 2002-07-17 Jim Blandy <jimb@redhat.com>
3260 * macrocmd.c (info_macro_command): Remove newline from error
3263 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3265 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3266 (sh_gdbarch_init): Use it for sh-dsp.
3268 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3270 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3271 64-bit DWARF2 format.
3273 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3275 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3276 <sys/proc.h> when not available.
3278 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3280 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3281 * stabsread.c: Make os9k sections of the code obsolete.
3282 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3283 * config/i386/i386os9k.mt: Make file obsolete.
3284 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3285 (COMMON_OBS): Remove os9kread.o
3286 (SFILES): Remove os9kread.c.
3287 (os9kread.o, remote-os9k.o): Make target obsolete.
3288 * remote-os9k.c: Make file obsolete.
3289 * os9kread.c: Make file obsolete.
3292 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3294 * NEWS: Mention that the FR30 has been made obsolete.
3295 * fr30-tdep.c: Make file obsolete.
3296 * config/fr30/tm-fr30.h: Ditto.
3297 * config/fr30/fr30.mt: Ditto.
3298 * configure.tgt: Make fr30-*-elf obsolete.
3299 * MAINTAINERS: Make fr30-elf obsolete.
3301 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3303 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3304 found is not inside a section.
3306 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3308 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3310 (pdc_realloc): Use xrealloc() instead of realloc().
3312 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3314 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3315 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3316 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3319 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3321 * aix-thread.c (ptrace_check): Eliminate goto.
3322 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3325 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3327 * aix-thread.c (gdbcmd.h): Include.
3328 (DEBUG, DBG, DBG2, dbg): Eliminate.
3329 (debug_aix_thread): New static global.
3330 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3331 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3332 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3333 invocations to DBG and DBG2 macros to test against
3334 ``debug_aix_thread'' and call fprintf_unfiltered().
3335 (_initialize_aix_thread): Add new command "set debug aix-thread".
3337 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3339 From Gerhard Tonn <TON@de.ibm.com>:
3340 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3341 instead of supply_register.
3343 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3345 * dwarf2cfi.c: Include "gdb_assert.h".
3346 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3348 (update_context): Do not use __func__. Add missing ``break''.
3349 (update_context): Do not use __func__.
3351 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3353 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3354 and its setting. Set gdbarch instruction printing functions
3355 directly. For non-rs6000 case use new function
3356 gdb_print_insn_powerpc.
3357 (gdb_print_insn_powerpc): New function.
3359 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3361 * NEWS: Mention that the d30v has been marked obsolete.
3362 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3363 * configure.tgt: Mark d30v-*-* as obsolete.
3364 * d30v-tdep.c: Mark file as obsolete.
3365 * config/d30v/d30v.mt: Ditto.
3366 * config/d30v/tm-d30v.h: Ditto.
3368 2002-07-13 Aidan Skinner <aidan@velvet.net>
3370 * ada-tasks.c (add_task_entry): replace calls to
3371 malloc() with xmalloc
3372 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3374 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3375 ada_finish_decode_line_1, all_sals_for_line
3376 ada_breakpoint_rewrite): replace calls to free() with xfree()
3378 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3380 From Nicholas Duffek (with minor changes by Martin Hunt,
3381 Louis Hamilton, and Kevin Buettner):
3382 * aix-thread.c: New file.
3384 2002-07-12 Petr Sorfa <petrs@caldera.com>
3386 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3387 complaint for invalid attribute class or form.
3388 (read_func_scope): DW_AT_frame_base
3389 better handling of DW_AT_block*.
3390 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3391 better handling of DW_AT_block*.
3392 (read_common_block): DW_AT_location
3393 better handling of DW_AT_block*.
3394 (read_partial_die): DW_AT_location better handling
3396 (new_symbol): DW_AT_external better handling of
3397 DW_AT_block*. Proper initialization of variable
3399 (attr_form_is_block): New function that returns true
3400 if the attribute's form is of DW_FORM_block*.
3402 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3404 * valops.c (find_method_list): Remove comment about
3405 removed STATIC_MEMFUNCP argument.
3406 (value_find_oload_method_list): Likewise.
3408 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3410 From Nicholas Duffek:
3411 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3412 target_new_objfile_hook.
3414 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3416 From Nicholas Duffek:
3417 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3420 2002-07-12 Andrew Cagney <cagney@redhat.com>
3422 * MAINTAINERS: Mention --enable-sim-build-warnings.
3423 (m68hc11-elf): Disable sim build warnings.
3424 (m32r-elf): Mark as broken obsolete candidate.
3425 (x86_64-linux-gnu): Mark as buildable with -Werror.
3426 (arm-elf): Change -w to ``,'' which enables warnings but not
3429 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3431 * bcache.h: Update copyright.
3432 (struct bstring, struct bcache): Move definition to "bcache.c".
3433 Replaced by opaque declaration.
3434 (bcache_xfree): Replace free_bcache.
3435 (bcache_xmalloc, bcache_memory_used): Declare.
3437 * bcache.c: Update copyright.
3438 (struct bstring, struct bcache): Moved to here from "bcache.h".
3440 (bcache_xmalloc, bcache_memory_used): New functions.
3441 (bcache_xfree): Replace function free_bcache.
3443 * Makefile.in (objfiles.o): Add $(bcache_h).
3444 (objfiles_h): Remove $(bcache_h).
3445 (symfile.o): Add $(bcache_h).
3447 * symmisc.c: Update copyright.
3448 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3449 (print_objfile_statistics): Use bcache_memory_used.
3451 * symfile.c: Include "bcache.h".
3452 (reread_symbols): Use bcache_xfree.
3453 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3454 (add_psymbol_to_list): Pass psymbol_cache by value.
3455 (add_psymbol_with_dem_name_to_list): Ditto.
3457 * objfiles.h: Update copyright.
3458 (struct bcache): Declare opaque. Do not include "bcache.h".
3459 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3461 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3463 * objfiles.c: Include "bcache.h". Update copyright.
3464 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3466 (free_objfile): Use bcache_xfree.
3468 2002-07-11 Grace Sainsbury <graces@redhat.com>
3470 * monitor.c (monitor_fetch_register): Make name a constant.
3471 (monitor_store_register): Same.
3473 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3475 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3476 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3477 (finish_block) For non-function blocks, hash the symbol table. For
3478 function blocks, mark the symbol table as unhashed.
3479 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3480 (msymbol_hash_iw): Likewise.
3481 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3483 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3484 (lookup_minimal_symbol): Likewise for both.
3485 * symtab.h (struct block): Add `hashtable' flag. Comment the
3487 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3488 (ALL_BLOCK_SYMBOLS): Update.
3489 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3490 (struct symbol): Add `hash_next' pointer.
3491 * symtab.c (lookup_block_symbol): Search using the hash table when
3493 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3494 (search_symbols, find_addr_symbol): Likewise.
3496 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3497 (read_dst_symtab): Likewise.
3498 * jv-lang.c (get_java_class_symtab): Likewise.
3499 * mdebugread.c: Include "gdb_assert.h".
3500 (shrink_block): Assert that the block being modified is not hashed.
3501 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3502 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3504 (dump_symtab): Recognize hashed blocks.
3505 * printcmd.c (print_frame_args): Assert that function blocks do not
3506 have hashed symbol tables.
3507 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3508 (fill_in_ada_prototype, debug_print_block): Likewise.
3509 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3511 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3513 * stack.c (print_frame): Use result of frame_address_in_block()
3514 instead of fi->pc when evaluating symbols.
3515 (backtrace_command_1): Ditto.
3517 2002-07-11 Andrew Cagney <cagney@redhat.com>
3519 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3522 * arm-tdep.c (arm_register_name): Make return type constant.
3524 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3526 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3528 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3529 * s390-tdep.c (s390_fp_regnum): Ditto.
3530 (s390_read_fp): Ditto.
3531 (s390_pop_frame): Ditto.
3532 (_initialize_s390_tdep): Ditto.
3533 * remote.c (get_remote_state): Ditto.
3534 * procfs.c (mappingflags): Ditto.
3535 * memattr.c (_initialize_mem): Ditto.
3536 * mcore-tdep.c (mcore_pop_frame): Ditto.
3537 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3538 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3539 * language.c (set_case_str): Ditto.
3540 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3541 * frv-tdep.c (new_variant): Ditto.
3542 (frv_stopped_data_address): Ditto.
3543 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3544 (context_alloc): Ditto.
3545 (frame_state_alloc): Ditto.
3546 (unwind_tmp_obstack_init): Ditto.
3547 (unwind_tmp_obstack_free): Ditto.
3548 (cfi_read_fp): Ditto.
3549 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3550 (cris_pop_frame): Ditto.
3551 * c-lang.c (scanning_macro_expansion): Ditto.
3552 (finished_macro_expansion): Ditto.
3553 (c_preprocess_and_parse): Ditto.
3554 * gdbarch.sh: Ditto.
3555 * gdbarch.h, gdbarch.c: Regenerate.
3556 * config/mn10200/tm-mn10200.h: Adjust indentation.
3557 * target.c: Adjust indentation.
3558 * symtab.h: Adjust indentation.
3559 * stabsread.h: Adjust indentation.
3560 * remote-es.c: Adjust indentation.
3561 * os9kread.c: Adjust indentation.
3563 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3565 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3566 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3568 2002-07-10 Grace Sainsbury <graces@redhat.com>
3570 * NEWS: Mention m68k, mcore multi-arching.
3571 * MAINTAINERS: Change status of m68k, mcore to reflect
3574 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3576 * valops.c (find_overload_match): Free oload_syms.
3578 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3580 Define HAVE_SYS_PROC_H if sys/proc.h exists
3581 * configure.in: Add check for sys/proc.h
3582 * config.in: Regenerate.
3583 * configure: Regenerate.
3585 2002-07-09 Grace Sainsbury <graces@redhat.com>
3587 * config/m68k/tm-m68k.h: Remove macros wrapped in
3588 #if !GDB_MULTI_ARCH.
3590 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3592 * config.in, configure: Regenerate.
3594 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3596 * dwarf2cfi.c: Include "gcore.h".
3597 (execute_stack_op): Fix implementation of the
3598 DW_OP_deref and DW_OP_deref_size operators by letting do their
3599 lookup in the target.
3601 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3603 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3604 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3607 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3609 Fix PR gdb/595, gdb/602
3610 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3611 Don't call value_cast, just read the vtable pointer; update comments
3614 2002-07-05 Grace Sainsbury <graces@redhat.com>
3616 * config/mcore/tm-mcore.h: Remove file.
3617 * config/mcore/mcore.mt: Remove definition of TM_FILE
3618 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3620 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3622 * i386bsd-tdep.c: Include "gdb_string.h".
3624 2002-07-04 Grace Sainsbury <graces@redhat.com>
3626 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3627 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3629 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3630 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3631 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3632 (RETVAL_REGNUM): Move macros from tm-mcore.h
3633 (mcore_reg_struct_has_addr): New function.
3634 (mcore_gdbarch_init): Added initializations for the macros removed
3637 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3639 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3640 traditonal string branding within the ELF header.
3642 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3644 * symtab.c (remove_params): New function.
3645 (make_symbol_overload_list): Use it instead of cplus_demangle.
3646 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3648 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3650 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3652 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3654 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3655 and tdep->sigtramp_end.
3656 * i386obsd-nat.c: New file.
3657 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3659 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3660 Don't call get_current_frame().
3662 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3664 * i386-nat.c (child_post_startup_inferior): New function
3665 calling i386_cleanup_dregs if
3666 I386_USE_GENERIC_WATCHPOINTS is defined.
3667 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3668 conditional to acknowledge that i386-nat.c has its
3669 own child_post_startup_inferior function.
3671 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3673 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3674 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3675 instead of MAX_REGISTER_RAW_SIZE.
3676 (i386_extract_return_value, i386_extract_struct_value_address):
3677 Convert to use regcache.
3678 (i386_gdbarch_init): Set max_register_raw_size and
3679 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3680 Set extract_return_value and extract_struct_value_address instead
3681 of their deprecated variants.
3683 Convert i386 target to generic dummy frames.
3684 * i386-tdep.c: Include "symfile.h".
3685 (i386_frameless_signal_p): Consider a function to be frameless if
3686 the pc points at the first instruction of the function.
3687 (i386_frame_chain): Handle (generic) call dummies.
3688 (i386_frame_saved_pc): Likewise.
3689 (i386_frame_init_saved_regs): Remove code dealing with call
3690 dummies on the stack.
3691 (i386_push_dummy_frame): Removed.
3692 (i386_call_dummy_words): Removed.
3693 (i386_fix_call_dummy): Removed.
3694 (i386_push_return_address): New function.
3695 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3696 parameter, and don't call get_current_frame.
3697 (i386_pop_frame): New function.
3698 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3699 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3700 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3701 call_dummy_length to 0, set call_dummy_words to NULL, set
3702 sizeof_call_dummy_words to 0, set fix_call_dummy to
3703 generic_fix_call_dummy, set pc_in_call_dummy to
3704 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3705 generic_push_dummy_frame, set push_return_address to
3706 i386_push_return_address and set frame_chain_valid to
3707 generic_file_frame_chain_valid.
3709 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3711 * gdbarch.sh (struct regcache): Add opaque declaration.
3712 (EXTRACT_RETURN_VALUE): New architecture method.
3713 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3714 * gdbarch.h, gdbarch.c: Regenerate.
3715 * arch-utils.c (legacy_extract_return_value): New function.
3716 * arch-utils.h (legacy_extract_return_value): Declare.
3717 * values.c (value_being_returned): Re-enable code handling
3718 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3719 deprecated_grub_regcache_for_registers call to block handling
3720 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3721 (EXTRACT_RETURN_VALUE): Do not define.
3723 2002-07-03 Grace Sainsbury <graces@redhat.com>
3725 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3726 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3727 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3728 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3729 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3730 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3731 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3732 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3733 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3734 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3735 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3736 argument so the function fits the prototype in the architecture
3738 (mcore_pop_frame): Remove argument so the function fits the
3739 prototype. Use get_current_frame instead of the argument.
3740 (mcore_push_arguments): Change type of struct_return so the
3741 function can be used in the architecture vector.
3742 (mcore_store_struct_return): Add.
3743 (mcore_frame_init_saved_regs): Add.
3744 (mcore_gdbarch_init): Add function calls to replace the macros
3745 removed from tm-mcore.h
3747 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3749 * infcmd.c (print_return_value): Remove compatibility code calling
3750 deprecated_grub_regcache_for_registers.
3752 * values.c: Include "regcache.h".
3753 (value_being_returned): Update. Use
3754 deprecated_grub_regcache_for_registers to extract the register
3756 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3757 ``struct regcache''.
3758 * Makefile.in (values.o): Add dependency on $(regcache_h).
3760 * inferior.h (run_stack_dummy): Change type of second parameter to
3761 a ``struct regcache''.
3762 * valops.c (hand_function_call): Change type of retbuf to ``struct
3763 regcache''. Allocate using regcache_xmalloc, clean using
3764 make_cleanup_regcache_xfree.
3765 * infcmd.c (run_stack_dummy): Update. Use
3766 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3768 * regcache.c (do_regcache_xfree): New function.
3769 (make_cleanup_regcache_xfree): New function.
3770 * regcache.h (make_cleanup_regcache_xfree): Declare.
3772 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3774 * event-top.c (command_line_handler): Don't read past
3775 beginning of buffer.
3777 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3779 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3781 (varobj_create): Store frame_id for root.
3782 (varobj_gen_name): Use xasprintf.
3783 (varobj_update): Save and restore frame using get_frame_id() and
3785 (create_child): Use xasprintf.
3786 (new_root_variable): Initialize frame_id.
3787 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3788 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3789 to prevent memory leak.
3791 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3793 * valops.c (hand_function_call): Move declaration of retbuf to
3794 start of function, allocate using malloc, add a cleanup but before
3795 the inf_status cleanup, cleanup the buffer. Rename local variable
3796 old_chain to inf_status_cleanup.
3798 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3800 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3802 * cli/cli-decode.c (cmd_func_p): New function.
3803 (cmd_func): New function.
3805 * command.h: Add cmd_func() and cmd_func_p().
3807 2002-07-03 Grace Sainsbury <graces@redhat.com>
3809 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3810 (REGISTER_SIZE): Remove.
3811 (MAX_REGISTER_RAW_SIZE): Remove.
3812 (REGISTER_VIRTUAL_TYPE): Remove.
3813 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3814 (REGISTER_NAME): Remove.
3815 (USE_GENERIC_DUMMY_FRAMES): Remove.
3816 (CALL_DUMMY): Remove.
3817 (CALL_DUMMY_START_OFFSET): Remove.
3818 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3819 (CALL_DUMMY_LOCATION): Remove.
3820 (FIX_CALL_DUMMY): Remove.
3821 (CALL_DUMMY_ADDRESS): Remove.
3822 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3823 (SAVE_DUMMY_FRAME_TOS): Remove.
3824 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3825 (mcore_register_virtual_type): New function.
3826 (mcore_register_byte): New function.
3827 (mcore_register_size): New function.
3828 (mcore_register_name): New function.
3829 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3830 macros removed from tm-mcore.h.
3831 (mcore_dump_tdep): Add.
3832 (_initialize_mcore_tdep): Add gdbarch_register call.
3834 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3836 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3837 frameless_look_for_prologue, such that we actually call this
3840 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3842 * frame.h (frame_address_in_block): New function.
3844 * blockframe.c (frame_address_in_block): New function extracted
3845 from get_frame_block().
3846 (get_frame_block): Use frame_address_in_block().
3847 (block_innermost_frame): Use frame_address_in_block() to match
3848 the frame pc address against the block boundaries rather than
3849 the frame pc directly. This prevents a failure when a frame pc
3850 is actually a return-address pointing immediately after the end
3853 2002-07-02 Grace Sainsbury <graces@redhat.com>
3855 * MAINTAINERS: Add self under write after approval.
3857 2002-07-02 Grace Sainsbury <graces@redhat.com>
3859 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3860 used in architecture vector. The default is
3861 m68k_local_breakpoint_from_pc.
3862 (m68k_local_breakpoint_from_pc): Add.
3863 (enum): Add register numbers from tm-m68k.h.
3864 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3866 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3867 GDB_MULTI_ARCH_PARTIAL.
3868 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3869 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3871 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3872 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3873 to enum in m68k-tdep.c
3875 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3877 * solib-osf.c (open_map): Compute the list of shared libraries
3878 loaded by the inferior, rather than the list of libraries loaded
3879 by GDB itself. Otherwise, GDB ends up reading the symbols from
3880 the wrong shared libraries...
3882 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3884 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3885 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3887 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3889 (FRAMELESS_SIGNAL): Remove function.
3890 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3891 i386_linux_saved_pc_after_call): Removed.
3892 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3893 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3894 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3896 * i386-tdep.c (i386_frameless_signal_p): New function.
3897 (i386_frame_chain): Deal with frameless signals.
3898 (i386_sigtramp_saved_sp): New function.
3899 (i386_frame_saved_pc): Deal with frameless signals.
3900 (i386_saved_pc_after_call): Make sure the correct value is
3901 returned just after entry into a sigtramp.
3902 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3903 i386fbsd4_sc_sp_offset): New variables.
3904 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3905 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3906 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3907 similiar to what we already did for sc_pc_offset.
3908 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3911 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3913 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3915 * config/i386/tm-x86-64linux.h: New.
3916 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3918 * config/i386/nm-x86-64.h: Rename to ...
3919 * config/i386/nm-x86-64linux.h: ... this one.
3920 * config/i386/x86-64linux.mh: Reflect the above change.
3922 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3924 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3925 with sigcontext_addr. Add sc_sp_offset.
3926 (i386bsd_sigtramp_saved_pc): Remove prototype.
3927 (i386bsd_sicontext_addr): Add prototype.
3928 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3929 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3930 (i386_svr4_sigtramp_saved_pc): Removed.
3931 (i386_svr4_sigcontext_addr): New function.
3932 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3933 Initialize tdep->sigcontext_addr instead. Initialize
3934 tdep->sc_pc_offset and tdep->sc_sp_offset.
3935 (i386_gdbarch_init): Likewise.
3936 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3938 (i386bsd_sigtramp_saved_pc): Remove function.
3939 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3940 Initialize tdep->sigcontext_addr instead. Initialize
3942 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3943 of tdep->sigtramp_saved_pc.
3944 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3945 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3948 * i386-tdep.c (i386_frameless_function_invocation,
3949 i386_frame_num_args, i386_frame_init_saved_regs,
3950 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3951 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3952 i386_extract_return_value, i386_store_return_value,
3953 i386_extract_struct_value_address, i386_register_virtual_type,
3954 i386_register_convertible, i386_register_convert_to_virtual,
3955 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3956 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3959 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3961 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3963 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3964 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3965 this macro. Include "value.h".
3967 2002-06-30 Aidan Skinner <aidan@velvet.net>
3969 * ada-exp.tab.c: remove as it's a generated file
3970 * ada-lex.c: remove as it's a generated file
3972 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3974 * config/i386/tm-i386.h (struct frame_info, struct
3975 frame_saved_regs, struct value, struct type): Remove forward
3978 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3979 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3980 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3981 (FILL_FPXREGSET): Define.
3983 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3985 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3986 i[3456]86-*-netbsd* case.
3987 * config/i386/tm-obsd.h: Removed.
3988 * config/i386/obsd.mt: Removed.
3989 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3991 (MH_CFLAGS): Add -DYYDEBUG=0.
3993 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3994 i386nbsd_sc_pc_offset on OpenBSD too.
3996 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3997 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3998 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4000 * i386bsd-tdep.c: Include "arch-utils.h".
4001 (i386bsd_aout_in_solib_call_trampoline): New function.
4002 (i386bsd_init_abi): Set in_solib_call_trampoline to
4003 i386bsd_aout_in_solib_call_trampoline.
4004 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4005 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4007 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4009 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4010 (struct obstack, struct bcache): Add opaque declarations.
4011 * Makefile.in (macrotab_h): Update
4013 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4015 * blockframe.c (generic_find_dummy_frame): Change return type to
4016 ``struct regcache''.
4017 (struct dummy_frame): Replace field ``registers'' with regcache, a
4018 struct regcache object.
4019 (generic_find_dummy_frame): Update.
4020 (generic_push_dummy_frame): Update. Use regcache_xfree,
4021 regcache_xmalloc and regcache_cpy.
4022 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4024 (deprecated_generic_find_dummy_frame): Update.
4025 (generic_read_register_dummy): Update. Use
4026 regcache_read_as_address.
4027 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4028 (generic_get_saved_register): Update. Use regcache_read.
4030 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4032 * Makefile.in (objfiles_h): Add $(bcache_h).
4033 * objfiles.h: Include "bcache.h".
4035 * Makefile.in (symtab_h): Remove $(bcache_h).
4036 * symtab.h: Do not include "bcache.h".
4038 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4040 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4041 generic_func_frame_chain_valid.
4043 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4045 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4046 * config/i386/tm-fbsd.h: Likewise.
4048 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4050 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4051 generic_unwind_get_saved_register.
4053 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4055 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4056 * regcache.c (supply_register): Add missing argument to
4057 register_buffer call.
4059 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4061 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4062 Solaris /bin/grep does not not like it. From Peter Schauer.
4064 2002-06-26 Tom Tromey <tromey@redhat.com>
4066 * command.h (add_setshow_cmd): Declare.
4067 (add_setshow_cmd_full): Declare.
4068 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4069 returns void. Use add_setshow_cmd_full.
4070 (add_setshow_cmd_full): New function.
4071 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4072 (add_setshow_boolean_cmd): Likewise.
4074 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4076 * config/vax/tm-vax.h: Protect from multiple inclusion.
4077 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4078 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4079 * config/vax/tm-vaxbsd.h: ...here. New file.
4080 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4082 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4084 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4085 (BELIEVE_PCC_PROMOTION): Remove.
4086 (AP_REGNUM): Move to...
4087 * config/vax/nm-vax.h: ...here.
4088 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4089 (vax_breakpoint_from_pc): New function.
4090 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4091 and gdbarch_believe_pcc_promotion.
4093 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4095 * Makefile.in (vax_tdep_h): Define.
4096 (vax-tdep.o): Use $(vax_tdep_h).
4097 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4098 (vax_dump_tdep): New function.
4099 (_initialize_vax_tdep): Register vax_dump_tdep.
4100 * vax-tdep.h: Include osabi.h.
4101 (struct gdbarch_tdep): New.
4103 2002-06-26 Andrew Cagney <cagney@redhat.com>
4105 * frame.h (deprecated_generic_find_dummy_frame): Rename
4106 generic_find_dummy_frame.
4107 * blockframe.c (generic_find_dummy_frame): Make static.
4108 (deprecated_generic_find_dummy_frame): New function.
4109 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4110 generic_find_dummy_frame with deprecated_find_dummy_frame.
4111 (sh64_nofp_frame_init_saved_regs): Ditto.
4112 (sh_fp_frame_init_saved_regs): Ditto.
4113 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4114 (s390_frame_chain): Ditto.
4115 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4117 2002-06-26 Grace Sainsbury <graces@redhat.com>
4119 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4120 gdbarch vector are at the top.
4122 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4123 (FRAME_ARGS_ADDRESS): Remove.
4124 (FRAME_LOCALS_ADDRESS): Remove.
4125 (FRAME_NUM_ARGS): Remove.
4126 (FRAME_ARGS_SKIP): Remove.
4127 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4128 (m68k_gdbarch_init): Add gdbarch initializations for macros
4129 undefined in tm-m68k.h
4131 2002-06-26 Grace Sainsbury <graces@redhat.com>
4133 * monitor.h: Add the function regname to monitor_ops
4134 structure. This way NUM_REGS does not have to be a constant.
4135 * monitor.c (monitor_fetch_register): Added support for regname
4136 function. The function is called if the array regnames is NULL.
4137 (monitor_store_register): Same.
4138 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4140 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4141 cpu32bug_cmds.regname to point to new function.
4142 * abug-rom.c (abug_regname): Same as above.
4143 (init_abug_cmds): Same.
4144 * dbug-rom.c (dbug_regname): Same as above.
4145 (init_dbug_cmds): Same.
4146 * remote-est.c (est_regname): Same.
4147 (init_est_cmds): Same.
4148 * rom68k-rom.c (rom68k_regname): Same.
4149 (init_rom68k_cmds): Same.
4151 2002-06-25 Tom Tromey <tromey@redhat.com>
4153 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4155 2002-06-25 Andrew Cagney <cagney@redhat.com>
4157 * infrun.c (stop_registers): Change variable's type to ``struct
4159 (xmalloc_inferior_status): Delete function.
4160 (free_inferior_status): Delete function.
4161 (normal_stop): Use regcache_cpy.
4162 (struct inferior_status): Change type of fields ``stop_registers''
4163 and ``registers'' to ``struct regcache''.
4164 (write_inferior_status_register): Use regcache_write.
4165 (save_inferior_status): Instead of calling
4166 xmalloc_inferior_status, allocate the inf_status buffer directly.
4167 Use regcache_dup_no_passthrough and regcache_dup to save the
4169 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4170 Replace the stop_registers regcache instead of overriding it. Use
4171 regcache_xfree. Instead of calling free_inferior_status, xfree
4172 the buffer directly.
4173 (discard_inferior_status): Use regcache_xfree. Instead of calling
4174 free_inferior_status, xfree the buffer directly.
4175 (build_infrun): Use regcache_xmalloc.
4176 (_initialize_infrun): Delete redundant call to build_infrun.
4178 * Makefile.in (infcmd.o): Add $(regcache_h).
4180 * infcmd.c: Include "regcache.h".
4181 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4182 obtain the address of `stop_registers' register buffer.
4183 (print_return_value): Ditto.
4185 * inferior.h (struct regcache): Add opaque declaration.
4186 (stop_registers): Change variable's declared type to ``struct
4189 2002-06-24 Tom Tromey <tromey@redhat.com>
4191 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4192 * target.c (initialize_targets): Fixed typo in
4193 trust-readonly-sections `show' documentation.
4195 * main.c: Marked all strings with _().
4197 2002-06-24 Don Howard <dhoward@redhat.com>
4199 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4200 that means max CORE_ADDR+1.
4201 (lookup_mem_region): Ditto.
4202 (mem_info_command): Ditto.
4204 2002-06-24 Grace Sainsbury <graces@redhat.com>
4206 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4207 (REGISTER_BYTES_OK): Remove.
4208 (REGISTER_BYTES): Remove.
4209 (STORE_STRUCT_RETURN): Remove.
4210 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4211 (STORE_RETURN_VALUE): Remove.
4212 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4213 (FRAME_CHAIN): Remove.
4214 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4215 (FRAME_SAVED_PC): Remove.
4216 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4217 (m68k_store_struct_return): Add.
4218 (m68k_deprecated_extract_return_value): Add.
4219 (m68k_deprecated_extract_struct_value_address): Add.
4220 (m68k_store_return_value): Add.
4221 (m68k_frame_chain): Add.
4222 (m68k_frameless_function_invocation): Add.
4223 (m68k_frame_saved_pc): Add.
4224 (m68k_gdbarch_init): added set_gdbarch calls for new
4225 functions and deleted macros.
4227 2002-06-23 Tom Tromey <tromey@redhat.com>
4229 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4230 (ALLDEPFILES): Likewise.
4231 (udiheaders): Removed.
4232 (udip2soc.o): Likewise.
4233 (udi2go32.o): Likewise.
4235 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4237 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4239 * infrun.c (_initialize_infrun): Delete unnecessary call to
4242 * regcache.h: Update comments describing the regcache_cpy family
4244 (regcache_save, regcache_restore): Delete declaration.
4245 (regcache_save_no_passthrough): Delete declaration.
4246 (regcache_restore_no_passthrough): Delete declaration.
4247 * regcache.c (regcache_save): Delete function.
4248 (regcache_save_no_passthrough): Delete function.
4249 (regcache_restore): Delete function.
4250 (regcache_restore_no_passthrough): Delete function.
4252 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4254 * config/m68k/tm-m68k.h: Fix typo.
4255 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4256 (m68k_frame_init_saved_regs): Declare.
4258 2002-06-21 Jim Blandy <jimb@redhat.com>
4260 Remove some vestiges of Harris 88k support.
4261 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4262 register numbering quirk.
4263 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4264 odd symbols occurring in Harris 88k ELF targets.
4266 2002-06-21 Tom Tromey <tromey@redhat.com>
4268 * gdb_locale.h: New file.
4269 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4270 (defs_h): Added gdb_locale.h.
4271 * configure, config.in: Rebuilt.
4272 * configure.in (PACKAGE): Define.
4273 * defs.h: Include gdb_locale.h.
4274 * main.c (captured_main): Call setlocale, bindtextdomain,
4277 2002-06-21 Dave Brolley <brolley@redhat.com>
4279 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4280 * config/frv/frv.mt: New file.
4281 * config/frv/tm-frv.h: New file.
4282 * configure.tgt: Support frv-*-*.
4283 * Makefile.in (frv-tdep.o): New target.
4284 * frv-tdep.c: New file.
4285 * NEWS: Mention frv.
4287 2002-06-21 Dave Brolley <brolley@redhat.com>
4289 * MAINTAINERS: Add self to "Write After Approval" list.
4291 2002-06-21 Grace Sainsbury <graces@redhat.com>
4293 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4294 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4295 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4296 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4297 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4299 * m68k-tdep.c: Include arch-utils.h
4300 (m68k_register_raw_size): Add.
4301 (m68k_register_virtual_size): Add.
4302 (m68k_register_virtual_type): Add.
4303 (m68k_register_name): Add.
4304 (m68k_stack_align): Add.
4305 (m68k_register_byte): Add.
4306 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4309 2002-06-21 Grace Sainsbury <graces@redhat.com>
4311 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4312 m68k_find_saved_regs.
4313 (m68k_pop_frame): Removed saved_regs structure, and replaced
4314 references to it with frame->saved_regs.
4315 (m68k_gdbarch_init): Added function calls to initialize the
4317 (m68k_fix_call_dummy): Add.
4318 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4319 (CALL_DUMMY): Remove.
4320 (CALL_DUMMY_LENGTH): Remove.
4321 (CALL_DUMMY_START_OFFSET): Remove.
4322 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4323 (FIX_CALL_DUMMY): Remove.
4324 (PUSH_DUMMY_FRAME): Remove.
4325 (POP_FRAME): Remove.
4327 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4329 * parse.c (parse_fprintf): New function used to avoid calls to
4330 fprintf in bison parser generated debug code.
4331 * parser-defs.h: Declaration of new parse_fprintf function.
4332 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4333 Set YYDEBUG to 1 by default.
4334 Set YYFPRINTF as parse_fprintf.
4336 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4338 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4340 (pointer_encoding, enum ptr_encoding): New.
4341 (execute_cfa_program): Take care about pointer encoding.
4342 (dwarf2_build_frame_info): Only call parse_frame_info for
4343 .debug_frame and .eh_frame.
4344 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4345 fixed augmentation handling, added relative addressing,
4346 ignore duplicate FDEs. Added comments.
4347 * dwarf2cfi.c: Reindented.
4349 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4351 * event-top.c (command_handler): Don't use space_at_cmd_start
4352 unless there is sbrk() on the host. Assign time and space data
4353 to union fields of the appropriate length.
4355 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4357 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4358 x86_64_register_name. Return type changed to 'const char *'.
4359 (x86_64_register_name2nr): Rename to x86_64_register_number.
4360 (x86_64_gdbarch_init): Update to reflect the change.
4361 * x86-64-tdep.h: Ditto.
4362 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4363 (supply_fpregset): Ditto.
4365 2002-06-19 Andrew Cagney <cagney@redhat.com>
4367 * regcache.h: Update copyright.
4368 (struct regcache, struct gdbarch): Add opaque declarations.
4369 (current_regcache): Declare global variable.
4370 (regcache_read, regcache_write): Add gdbarch parameter.
4371 (regcache_save, regcache_save_no_passthrough)
4372 (regcache_restore, regcache_restore_no_passthrough)
4373 (regcache_dup, regcache_dup_no_passthrough)
4374 (regcache_cpy, regcache_cpy_no_passthrough)
4375 (deprecated_grub_regcache_for_registers)
4376 (deprecated_grub_regcache_for_register_valid)
4377 (regcache_valid_p): Add function declarations.
4379 * regcache.c: Update copyright.
4380 (regcache_descr_handle): New global variable.
4381 (struct regcache_descr): Define.
4382 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4383 (regcache_descr, xfree_regcache_descr): New functions.
4384 (struct regcache): Define.
4385 (regcache_xmalloc, regcache_xfree): New functions.
4386 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4387 (regcache_dup, regcache_dup_no_passthrough): New functions.
4388 (regcache_valid_p, regcache_read_as_address): New functions.
4389 (deprecated_grub_regcache_for_registers): New function.
4390 (deprecated_grub_regcache_for_register_valid): New function.
4391 (current_regcache): New global variable.
4392 (register_buffer): Add regcache parameter. Update calls.
4393 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4394 (read_register_gen, write_register_gen): Update register_buffer
4395 call. Test for legacy_p instead of gdbarch_register_read_p or
4396 gdbarch_register_write_p.
4397 (regcache_collect): Update register_buffer call.
4398 (build_regcache): Rewrite. Use deprecated grub functions.
4399 (regcache_save, regcache_save_no_passthrough): New functions.
4400 (regcache_restore, regcache_restore_no_passthrough): New
4402 (_initialize_regcache): Create the regcache_data_handle. Swap
4403 current_regcache global variable.
4405 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4406 parameter to regcache_read and regcache_write calls.
4407 (sh4_register_read): Ditto.
4408 (sh64_pseudo_register_read): Ditto.
4409 (sh64_register_read): Ditto.
4410 (sh_pseudo_register_write): Ditto.
4411 (sh4_register_write): Ditto.
4412 (sh64_pseudo_register_write): Ditto.
4413 (sh64_register_write): Ditto.
4415 * defs.h (XCALLOC): Define.
4417 2002-06-19 Grace Sainsbury <graces@redhat.com>
4419 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4420 * m68k-tdep.c (m68k_gdbarch_init): Added.
4421 (m68k_dump_tdep): Added.
4423 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4425 * ada-lang.c (fill_in_ada_prototype): Update comment.
4427 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4429 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4431 (mips_abi_string, mips_abi_strings): New.
4432 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4433 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4434 tdep->mips_abi_string. Honor mips_abi_string. Default to
4435 O32 if no ABI is found.
4436 (mips_dump_tdep): Use mips_abi_strings.
4437 (mips_abi_update): New function.
4438 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4439 ``set mips abi'' and ``show mips abi''. Check the size of
4442 2002-06-19 Andrew Cagney <cagney@redhat.com>
4444 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4447 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4449 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4450 current frame using only the first stack size adjustment. All
4451 subsequent size adjustments are not considered to be part of
4452 the "static" part of the current frame.
4453 Compute the address of the saved registers relative to the
4454 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4455 in use in this frame.
4457 2002-06-18 Don Howard <dhoward@redhat.com>
4459 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4460 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4461 suggesting this solution.
4463 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4465 * config/romp/xm-rtbsd.h: Delete file.
4466 * config/romp/rtbsd.mh: Delete file.
4468 2002-06-18 Keith Seitz <keiths@redhat.com>
4470 * breakpoint.c (condition_command): Post breakpoint_modify
4471 when a condition is added to an existing breakpoint.
4472 (commands_command): Likewise for commands.
4473 (set_ignore_count): Likewise for ignore counts.
4474 If no tty, do not simply return, still need to send event
4476 (ignore_command): Only print a newline if the command came
4478 Don't call breakpoints_changed, since this is now properly
4479 handled by set_ignore_count.
4481 2002-06-18 Andrew Cagney <cagney@redhat.com>
4483 * MAINTAINERS: Note that cris-elf target can be compiled with
4485 * cris-tdep.c (cris_register_name): Make return type constant.
4486 (cris_breakpoint_from_pc): Ditto.
4488 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4490 * frame.h (struct frame_info): Change type of context to
4493 2002-06-17 Andrew Cagney <cagney@redhat.com>
4495 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4497 * gdbarch.h, gdbarch.c: Regenerate.
4498 * config/mips/tm-mips.h (mips_register_name): Update.
4499 * i386-tdep.h (i386_register_name): Update.
4500 * mips-tdep.c (mips_register_name): Update
4501 * alpha-tdep.c (alpha_register_name): Update.
4502 * arch-utils.c (legacy_register_name): Update.
4503 * arch-utils.h (legacy_register_name): Update.
4504 * avr-tdep.c (avr_register_name): Update.
4505 * ia64-tdep.c (ia64_register_name): Update.
4506 * i386-tdep.c (i386_register_name): Update.
4507 * sparc-tdep.c (sparc32_register_name): Update.
4508 (sparc64_register_name): Update.
4509 (sparclite_register_name): Update.
4510 (sparclet_register_name): Update.
4511 * sh-tdep.c (sh_generic_register_name): Update.
4512 (sh_sh_register_name): Update.
4513 (sh_sh3_register_name): Update.
4514 (sh_sh3e_register_name): Update.
4515 (sh_sh_dsp_register_name): Update.
4516 (sh_sh3_dsp_register_name): Update.
4517 (sh_sh4_register_name): Update.
4518 (sh_sh64_register_name): Update.
4519 * s390-tdep.c (s390_register_name): Update.
4520 * rs6000-tdep.c (rs6000_register_name): Update.
4521 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4522 (ns32k_register_name_32382): Update.
4523 * d10v-tdep.c (d10v_ts2_register_name): Update.
4524 (d10v_ts3_register_name): Update.
4525 * xstormy16-tdep.c (xstormy16_register_name): Update.
4526 * vax-tdep.c (vax_register_name): Update.
4527 * v850-tdep.c (v850_register_name): Update.
4528 * m68hc11-tdep.c (m68hc11_register_name): Update.
4529 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4530 (am33_register_name): Update.
4532 2002-06-17 Grace Sainsbury <graces@redhat.com>
4534 * m68k-tdep.c: Reindented.
4536 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4538 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4539 list of predefined types.
4541 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4543 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4544 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4545 REGISTER_CONVERT_TO_RAW): Remove defines.
4546 (i386_register_virtual_type, i386_register_convertible,
4547 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4549 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4550 macros mentioned above.
4552 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4553 (i386lynx_saved_pc_after_call): Remove prototype.
4554 * i386ly-tdep.c: Include "i386-tdep.h".
4555 (i386lynx_saved_pc_after_call): Make static. Use
4556 read_memory_nobpt instead of read_memory. Use
4557 read_memory_unsigned_integer instead of read_memory_integer.
4558 (i386lynx_init_abi): New function.
4559 (i386lynx_coff_osabi_sniffer): New function.
4560 (_initialize_i386bsd_tdep): New function.
4562 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4563 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4564 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4565 (i386_fix_call_dummy): Remove prototype.
4566 * i386-tdep.c (i386_call_dummy_words): New variable.
4567 (i386_gdbarch_init): Adjust for removal of the
4568 macros mentioned above.
4570 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4572 * command.h (add_setshow_auto_boolean_cmd): Replace
4573 add_set_auto_boolean_cmd.
4574 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4575 add_set_auto_boolean_cmd.
4576 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4577 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4578 mask-address'' command.
4579 (show_mask_address): Add cmd parameter.
4580 * remote.c (add_packet_config_cmd): Update. Change type of
4581 set_func and show_func to cmd_sfunc_ftype.
4582 (_initialize_remote): Update `set remote Z-packet'
4583 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4584 (show_remote_protocol_e_packet_cmd): Ditto.
4585 (show_remote_protocol_E_packet_cmd): Ditto.
4586 (show_remote_protocol_P_packet_cmd): Ditto.
4587 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4588 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4589 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4590 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4591 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4592 (show_remote_protocol_Z_packet_cmd): Ditto.
4593 (show_remote_protocol_binary_download_cmd): Ditto.
4594 (show_remote_cmd): Pass NULL to all of above.
4596 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4598 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4599 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4600 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4601 POP_FRAME): Remove defines.
4602 (i386_push_arguments, i386_store_struct_return,
4603 i386_extract_return_value, i386_store_return_value,
4604 i386_extract_struct_value_address, i386_push_dummy_frame,
4605 i386_pop_frame): Renove prototypes.
4606 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4607 macros mentioned above.
4609 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4611 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4612 add_set_boolean_cmd.
4613 (add_setshow_cmd): New function.
4614 * command.h (add_setshow_boolean_cmd): Replace
4615 add_set_boolean_cmd.
4616 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4617 and ``set rdiromatzero''.
4618 * maint.c (_initialize_maint_cmds): Update commented out code.
4619 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4620 * target.c (initialize_targets): Update `set
4621 trust-readonly-sections'.
4622 * remote.c (_initialize_remote): Update `set remotebreak'.
4624 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4626 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4627 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4628 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4629 fit into multi-arch framework.
4630 (i386_breakpoint_from_pc): New function.
4631 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4634 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4635 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4636 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4637 (i386_frameless_function_invocation, i386_frame_num_args,
4638 i386_frame_init_saved_regs): Remove prototypes.
4639 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4640 macros mentioned above.
4642 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4644 * cli/cli-decode.c (set_cmd_cfunc): Update.
4645 (set_cmd_sfunc): Update.
4646 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4647 (set_cmd_sfunc, set_cmd_cfunc): Update.
4648 * cli/cli-decode.h: Update.
4650 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4652 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4653 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4655 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4657 * defs.h (auto_boolean): Declare enum.
4658 * command.h (cmd_auto_boolean): Delete enum.
4659 * mips-tdep.c (mask_address_var): Update.
4660 (mips_mask_address_p): Update.
4661 (show_mask_address): Update.
4662 * remote.c (struct packet_config): Update.
4663 (update_packet_config): Update.
4664 (show_packet_config_cmd): Update.
4665 (packet_ok): Update.
4666 (add_packet_config_cmd): Update.
4667 (_initialize_remote):
4668 * command.h: Update.
4669 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4670 (do_setshow_command): Update.
4671 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4672 * cli/cli-decode.h: Update.
4674 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4676 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4677 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4678 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4679 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4680 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4681 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4683 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4684 list of DJGPP COFF targets.
4686 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4687 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4688 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4689 (FP0_REGNUM): Remove define.
4690 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4691 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4692 (i386_register_virtual_size): Remove protoype.
4693 * i386-tdep.c (i386_register_virtual_size): Removed.
4694 (i386_extract_return_value, i386_store_return_value): Use
4695 FP0_REGNUM instead of NUM_FREGS to determine whether the
4696 floating-point registers are available.
4697 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4698 Adjust for removal of macros mentioned above.
4700 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4702 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4704 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4706 (supply_gregset, fill_gregset): Remove use of register keyword and
4707 remove declaration for regmap. Use I386_NUM_GREGS instead of
4708 NUM_REGS and NUM_FREGS.
4709 (FPREGSET_FSAVE_OFFSET): Remove.
4710 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4711 NUM_FREGS to determine whether the floating-point registers are
4714 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4715 gnu_store_registers): Replace usage of NUM_GREGS with
4718 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4719 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4720 usage of NUM_GREGS with I386_NUM_GREGS.
4722 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4724 * i386bsd-nat.c: Include "i386-tdep.h".
4725 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4728 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4729 and associated comment. They no longer make any sense, since we
4730 don't use this file anymore on Linux.
4732 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4733 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4734 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4735 elements in these arrays.
4736 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4739 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4741 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4742 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4744 2002-06-14 Andrew Cagney <cagney@redhat.com>
4746 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4747 EXTRACT_RETURN_VALUE.
4748 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4749 EXTRACT_STRUCT_VALUE_ADDRESS.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4752 * values.c (value_being_returned): Handle
4753 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4754 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4756 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4757 * arm-tdep.c (arm_gdbarch_init): Update.
4758 * avr-tdep.c (avr_gdbarch_init): Update.
4759 * cris-tdep.c (cris_gdbarch_init): Update.
4760 * d10v-tdep.c (d10v_gdbarch_init): Update.
4761 * ia64-tdep.c (ia64_gdbarch_init): Update.
4762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4764 * s390-tdep.c (s390_gdbarch_init): Update.
4765 * sh-tdep.c (sh_gdbarch_init): Update.
4766 * s390-tdep.c (s390_gdbarch_init): Update.
4767 * sparc-tdep.c (sparc_gdbarch_init): Update.
4768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4769 * v850-tdep.c (v850_gdbarch_init): Update.
4770 * vax-tdep.c (vax_gdbarch_init): Update.
4771 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4774 * config/arc/tm-arc.h: Update.
4775 * config/d30v/tm-d30v.h: Update.
4776 * config/fr30/tm-fr30.h: Update.
4777 * config/h8300/tm-h8300.h: Update.
4778 * config/h8500/tm-h8500.h: Update.
4779 * config/i386/tm-i386.h: Update.
4780 * config/i386/tm-ptx.h: Update.
4781 * config/i386/tm-symmetry.h: Update.
4782 * config/i960/tm-i960.h: Update.
4783 * config/m32r/tm-m32r.h: Update.
4784 * config/m68k/tm-delta68.h: Update.
4785 * config/m68k/tm-linux.h: Update.
4786 * config/m68k/tm-m68k.h: Update.
4787 * config/m88k/tm-m88k.h: Update.
4788 * config/mcore/tm-mcore.h: Update.
4789 * config/mips/tm-mips.h: Update.
4790 * config/mn10200/tm-mn10200.h: Update.
4791 * config/pa/tm-hppa.h: Update.
4792 * config/pa/tm-hppa64.h: Update.
4793 * config/sparc/tm-sp64.h: Update.
4794 * config/sparc/tm-sparc.h: Update.
4795 * config/sparc/tm-sparclet.h: Update.
4796 * config/z8k/tm-z8k.h: Update.
4798 2002-06-14 Andrew Cagney <cagney@redhat.com>
4800 * Makefile.in (i386_linux_tdep_h): Define.
4801 (i386_tdep_h, i387_tdep_h): Define.
4802 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4803 $(i386_tdep_h) and $(i387_tdep_h).
4804 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4806 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4808 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4809 Already covered by the default.
4811 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4812 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4813 (i386_gdbarch_init): Initialize long_double_format and long_double
4816 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4817 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4819 * config/i386/i386sol2.mh: ... here.
4820 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4821 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4822 (SIGCONTEXT_PC_OFFSET): Remove define.
4823 (IN_SIGTRAMP): Remove define.
4824 * i386-sol2-tdep.c: New file.
4826 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4827 * config/i386/tm-i386nw.h: Removed.
4829 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4830 USE_STRUCT_CONVENTION): Remove defines.
4831 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4832 (get_longjmp_target): Remove prototype.
4833 (IN_SIGTRAMP): Remove define.
4834 (i386bsd_in_sigtramp): Remove prototype.
4835 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4836 function. Update comment accordingly
4837 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4838 (FRAME_SAVED_PC): Remove define.
4839 (i386bsd_frame_saved_pc): Remove prototype.
4840 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4841 GET_LONGJMP_TARGET): Remove defines.
4842 (get_longjmp_target): Remove prototype.
4843 (IN_SIGTRAMP): Remove define.
4844 (i386bsd_in_sigtramp): Remove prototype.
4845 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4846 function. Update comment accordingly
4847 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4848 (FRAME_SAVED_PC): Remove define.
4849 (i386bsd_frame_saved_pc): Remove prototype.
4850 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4852 (USE_STRUCT_CONVENTION): Remove prototype.
4853 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4855 (_initialize_i386bsd_nat): Revise logic to determine some
4856 constants at compile time when compiling a native GDB. Warn if
4857 things don't match up with what we expect.
4858 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4860 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4861 to use date stored in `struct gdbarch_tdep'.
4862 (i386bsd_sigcontext_offset): Remove varaible.
4863 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4864 stored in `struct gdbarch_tdep'.
4865 (i386bsd_frame_saved_pc): Make static.
4866 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4867 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4868 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4869 i386fbsd4_sc_pc_offset): New variables.
4870 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4871 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4873 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4875 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4876 Modify the value of i386fbsd_sigtramp_start and
4877 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4878 i386fbsd_sigtramp_end.
4879 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4882 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4883 define to i386-linux-tdep.h.
4884 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4885 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4887 (i386_linux_register_name, i386_linux_register_byte,
4888 i386_linux_register_raw_size): Remove prototypes.
4889 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4890 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4891 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4892 TARGET_WRITE_PC): Remove defines.
4893 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4894 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4895 i386_linux_write_pc): Remove prototypes.
4896 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4897 (get_longjmp_target): Remove prototype.
4898 * i386-linux-tdep.h: New file.
4899 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4900 * i386-linux-tdep.c: Include "i386-tdep.h" and
4901 "i386-linux-tdep.h".
4902 (i386_linux_register_name, i386_linux_register_byte,
4903 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4904 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4906 (i386_linux_init_abi): New function.
4907 (_initialize_i386_linux_tdep): New function.
4909 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4910 (i386_saved_pc_after_call): Remove prototype.
4911 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4912 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4913 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4914 (i386_register_name, i386_stab_reg_to_regnum,
4915 i386_dwarf_reg_to_regnum): Remove prototypes.
4916 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4917 SIZEOF_SSE_REGS): Remove defines.
4918 (REGISTER_BYTES): Remove define.
4919 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4920 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4921 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4922 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4923 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4924 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4925 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4926 (get_longjmp_target): Remove prototype.
4927 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4928 (sigtramp_saved_pc): Remove define.
4929 (i386v4_sigtramp_saved_pc): Remove prototype.
4930 * config/i386/tm-go32.h (FRAME_CHAIN,
4931 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4932 (i386go32_frame_saved_pc): Remove prototype.
4933 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4934 (get_longjmp_target): Remove prototype.
4935 * i386-tdep.h: Include "osabi.h".
4936 (enum i386_abi): Removed.
4937 (enum struct_return): New enum.
4938 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4939 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4940 sc_pc_offset members.
4941 (i386_gdbarch_register_os_abi): Remove prototype.
4942 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4943 I386_SSE_NUM_REGS): New defines.
4944 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4945 I386_SSE_SIZEOF_REGS): New defines.
4946 (i386_register_name, i386_register_byte, i386_register_raw_size):
4948 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4949 (i386bsd_sigtramp_saved_pc): New prototype.
4950 * i386-tdep.c: Don't include "elf-bfd.h".
4951 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4952 i386_frame_chain, i386_saved_pc_after_call): Make static.
4953 (i386_frame_saved_pc): Rewrite to call architecture dependent
4954 function to deal with signal handlers. Make static.
4955 (i386go32_frame_saved_pc): Removed.
4956 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4958 (i386_get_longjmp_target): New function.
4959 (default_struct_convention, pcc_struct_convention,
4960 reg_struct_convention, valid_conventions, struct_convention): New
4962 (i386_use_struct_convention): New function.
4963 (i386v4_sigtramp_saved_pc): Renamed to
4964 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4965 (i386_pc_in_sigtramp): New function.
4966 (i386_abi_names): Removed.
4967 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4968 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4970 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4971 i386_gdbarch_register_os_abi): Removed.
4972 (struct i386_abi_handler): Removed.
4973 (i386_abi_handler_list): Removed.
4974 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4976 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4977 i386_nw_init_abi): New functions.
4978 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4979 Use set_gdbarch_xxx() calls instead of relying on macros for a
4981 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4982 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4983 Register the various architecture variants defined in this file.
4985 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4987 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4988 (struct main_type): Remove arg_types member. Update comments for
4990 (TYPE_ARG_TYPES): Remove.
4991 (TYPE_FN_FIELD_ARGS): Update.
4992 (smash_to_method_type): Update prototype.
4994 * c-typeprint.c (cp_type_print_method_args): Take method type
4995 instead of argument list. Use new argument layout. Simplify.
4996 (c_type_print_args): Use new argument layout. Simplify.
4997 (c_type_print_base): Update call to cp_type_print_method_args.
4998 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4999 argument; use die->type instead. Update call to
5000 smash_to_method_type.
5001 (read_structure_scope): Update call to dwarf2_add_member_fn.
5002 * gdbtypes.c (allocate_stub_method): Update comment.
5003 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5004 Use new argument layout.
5005 (check_stub_method): Use new argument layout. Don't count
5006 void as an argument.
5007 (print_arg_types): Update comments. Use new argument layout.
5008 (recursive_dump_type): Don't print arg_types member.
5009 * hpread.c (hpread_read_struct_type): Use new argument layout.
5010 (fixup_class_method_type): Likewise.
5011 (hpread_type_lookup): Likewise.
5012 * stabsread.c (read_type): Update calls to read_args and
5013 smash_to_method_type.
5014 (read_args): Use new argument layout. Simplify.
5015 * valops.c (typecmp): Use new argument layout. Update parameters
5016 and comments. Simplify.
5017 (hand_function_call): Use new argument layout.
5018 (search_struct_method): Update call to typecmp.
5019 (find_overload_match): Use new argument layout.
5021 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5023 * NEWS: Mention multithreaded debug support for gdbserver.
5025 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5027 * MAINTAINERS: Mention NEWS.
5029 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5031 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5032 (struct mips_objfile_private, compare_pdr_entries): New.
5033 (non_heuristic_proc_desc): Read the ".pdr" section if it
5036 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5038 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5039 (arm_debug): New static variable.
5040 (_initialize_arm_tdep): Add ``set debug arm'' command.
5042 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5044 * Makefile.in (sim_arm_h): Define.
5045 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5046 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5047 (arm_register_sim_regno): New function, map an internal REGNUM
5048 onto a simulator register number.
5049 (arm_gdbarch_init): Set register_sim_regno.
5051 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5053 * MAINTAINERS: Add self.
5055 2002-06-11 Jim Blandy <jimb@redhat.com>
5057 * source.c (source_info): Mention whether the symtab has
5058 information about preprocessor macros.
5060 Call the command `info macro', not `show macro'.
5061 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5063 (_initialize_macrocmd): Register `info_macro_command' in
5064 `infolist', not `showlist'.
5066 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5068 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5069 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5070 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5071 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5072 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5074 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5075 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5076 (_initialize_mips_tdep): Remove dead code.
5077 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5078 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5079 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5080 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5081 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5082 MIPS_LAST_FP_ARG_REGNUM): Remove.
5084 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5086 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5087 (unwind_tmp_obstack_free, parse_frame_info)
5088 (update_context, cfi_read_fp, cfi_write_fp)
5089 (cfi_frame_chain, cfi_init_extra_frame_info)
5090 (cfi_virtual_frame_pointer): Use the above function.
5091 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5093 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5095 * v850-tdep.c (v850_type_is_scalar): New function.
5096 (v850_use_struct_convention): Match current gcc implementation
5097 as close as possible.
5098 (v850_push_arguments): Fix stack_offset handling. Don't write
5099 struct_addr into register. This is done by v850_store_struct_return.
5100 (v850_extract_return_value): Care for structs.
5101 (v850_store_return_value): Ditto.
5102 (v850_store_struct_return): Actually write address.
5104 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5106 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5107 without debug information too.
5109 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5111 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5112 Make multi-arch pure.
5113 * gdbarch.h, gdbarch.c: Re-generate.
5114 * arm-tdep.c (arm_print_float_info): Update.
5115 * arch-utils.h (default_print_float_info): Update.
5116 * arch-utils.c (default_print_float_info): Update.
5117 * infcmd.c (float_info): Update call.
5119 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5121 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5122 the front of the initialize list.
5124 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5126 * infrun.c (struct inferior_status): Replace fields
5127 selected_frame_address and selected_level with field
5129 (save_inferior_status): Update. Use get_frame_id.
5130 (struct restore_selected_frame_args): Delete.
5131 (restore_selected_frame): Update. Use frame_find_by_id.
5132 (restore_inferior_status): Update.
5134 * breakpoint.h (struct breakpoint): Change type of
5135 watchpoint_frame to frame_id.
5136 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5137 call to get_current_frame.
5138 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5140 (watchpoint_check): Use frame_find_by_id.
5142 * frame.h (record_selected_frame): Delete declaration.
5143 * stack.c (record_selected_frame): Delete function.
5145 * frame.h (struct frame_id): Define.
5146 (get_frame_id): Declare.
5147 (frame_find_by_id): Declare.
5148 * frame.c (frame_find_by_id): New function.
5149 (get_frame_id): New function.
5151 2002-06-10 Andrey Volkov <avolkov@transas.com>
5153 * ser-e7kpc.c: Fix duplicated define and call of
5154 _initialize_ser_e7000pc
5156 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5158 * signals/signals.c (target_signal_from_host): Fix #ifdef
5160 (do_target_signal_to_host): Likewise.
5162 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5164 * mips-tdep.c (mips_find_abi_section): New function.
5165 (mips_gdbarch_init): Call it.
5167 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5169 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5170 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5171 after Andrew's 2002-06-08 gdbarch change.
5173 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5175 * i386-linux-nat.c (suppy_gregset): Don't supply
5176 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5178 (fill_gregset): Don't fetch it under the same circumstances.
5180 2002-06-09 Andrew Cagney <cagney@redhat.com>
5182 * Makefile.in (callback_h): Define.
5183 (remote_sim_h): Update path to remote-sim.h.
5184 (remote-rdp.o): Add $(callback_h).
5185 (remote-sim.o): Use $(callback_h).
5186 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5187 * remote-rdp.c: Include "gdb/callback.h".
5189 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5191 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5192 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5194 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5196 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5197 * rdi-share/serpardr.c: Ditto.
5198 * rdi-share/unixcomm.c: Ditto.
5199 * rdi-share/serdrv.c: Ditto.
5200 * rdi-share/hostchan.h: Ditto.
5201 * rdi-share/hostchan.c: Ditto.
5202 * rdi-share/host.h: Ditto.
5203 * rdi-share/devsw.c: Ditto.
5205 * objfiles.h: Change type of obj_private to void pointer.
5206 * pa64solib.c: Update copyright. Don't include "assert.h", use
5207 strcmp instead of STREQ, use LONGEST, do not use PTR
5208 * somsolib.c: Ditto.
5210 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5211 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5212 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5214 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5216 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5217 (default_get_saved_register): Delete function.
5218 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5219 generic_unwind_get_saved_register.
5220 * gdbarch.h, gdbarch.c: Re-generate.
5222 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5224 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5225 generic_func_frame_chain_valid.
5226 * gdbarch.h, gdbarch.c: Re-generate.
5227 * blockframe.c (generic_func_frame_chain_valid): Only check
5228 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5229 passing FP to PC_IN_CALL_DUMMY.
5232 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5234 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5235 (register_gdbarch_data): Initialize init_p.
5236 (gdbarch_data): Initialize data pointer using the init function.
5237 (init_gdbarch_data): Delete function.
5238 (gdbarch_update_p): Update.
5239 (initialize_non_multiarch): Update.
5240 (struct gdbarch): Add field initialized_p.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5243 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5245 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5246 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5247 better do the things actually here.
5248 * x86-64-tdep.c (x86_64_register_name2nr): New.
5249 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5250 (x86_64_gdbarch_init): Respect the above change.
5251 * x86-64-tdep.h (x86_64_register_name2nr)
5252 (x86_64_register_nr2name): Add prototypes.
5253 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5255 2002-06-06 Michael Snyder <msnyder@redhat.com>
5257 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5258 Delete extra braces and re-indent.
5259 (d10v_store_return_value): Char return values
5260 must be shifted over by one byte in R0.
5261 (d10v_extract_return_value): Delete extra braces, re-indent.
5263 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5265 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5266 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5267 (d10v_integer_to_address): Rewrite.
5268 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5269 the d10v specific functions which take care of converting to the
5272 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5274 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5275 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5277 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5279 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5281 * config/tm-linux.h: Ditto.
5282 * config/alpha/tm-alphalinux.h: Ditto.
5283 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5284 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5285 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5286 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5287 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5288 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5289 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5290 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5291 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5292 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5293 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5294 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5295 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5296 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5297 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5298 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5299 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5300 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5301 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5302 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5303 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5304 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5305 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5306 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5307 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5308 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5309 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5310 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5311 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5312 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5313 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5314 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5315 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5316 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5317 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5318 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5319 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5321 2002-05-04 Aidan Skinner <aidan@velvet.net>
5323 * ada-exp.tab.c: New file
5324 * ada-exp.y: New file
5325 * ada-lang.c: New file
5326 * ada-lang.h: New file
5327 * ada-lex.c: New file
5328 * ada-lex.l: New file
5329 * ada-tasks.c: New file
5330 * ada-typeprint.c: New file
5331 * ada-valprint.c: New file
5333 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5335 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5336 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5338 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5340 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5341 insetead of ppc-linux-tdep.o.
5342 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5343 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5345 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5347 2002-05-07 Christian Groessler <chris@groessler.org>
5348 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5349 bit register contents for little endian hosts.
5351 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5353 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5356 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5358 * gdbarch.h: Regenerate.
5360 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5362 * MAINTAINERS: Add everyone to write-after-approval list.
5364 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5366 * stack.c (frame_info): Use frame_register_unwind instead of
5367 saved_regs. Mention when the SP is on the stack or in a register.
5369 * frame.h (frame_register_unwind_ftype): Define. Document.
5370 (struct frame_info): Add field register_unwind and
5371 register_unwind_cache.
5372 (frame_register_unwind): Declare.
5373 (generic_unwind_get_saved_register): Declare.
5375 * frame.c (frame_register_unwind): New function.
5376 (generic_unwind_get_saved_register): New function.
5378 * blockframe.c (generic_call_dummy_register_unwind): New function.
5379 (frame_saved_regs_register_unwind): New function.
5380 (set_unwind_by_pc): New function.
5381 (create_new_frame): New function.
5382 (get_prev_frame): New function.
5384 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5386 * a29k-share/: Delete directory.
5387 * remote-vx29k.c: Delete file.
5389 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5391 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5392 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5394 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5396 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5397 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5400 (sparcnbsd-tdep.o): New dependency lists.
5401 * NEWS: Note new UltraSPARC NetBSD native configuration.
5402 * configure.host (sparc64-*-netbsd*): New host.
5403 * configure.tgt (sparc-*-netbsdelf*)
5404 (sparc-*-netbsd*): Set gdb_target to nbsd.
5405 (sparc64-*-netbsd*): New target.
5406 * sparc64nbsd-nat.c: New file.
5407 * sparcnbsd-nat.c: New file.
5408 * sparcnbsd-tdep.c: New file.
5409 * sparcnbsd-tdep.h: New file.
5410 * config/sparc/nbsd.mt: New file.
5411 * config/sparc/nbsd64.mh: New file.
5412 * config/sparc/nbsd64.mt: New file.
5413 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5414 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5416 * config/sparc/nbsdaout.mt: Remove.
5417 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5418 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5420 * config/sparc/nbsdelf.mt: Remove.
5421 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5422 sparc-nat.c compatiblity defines.
5423 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5424 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5425 * config/sparc/tm-nbsd64.h: New file.
5426 * config/sparc/tm-nbsdaout.h: Remove.
5427 * config/sparc/xm-nbsd.h: Remove.
5429 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5431 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5432 * sparc-tdep.c: Include osabi.h.
5433 (gdbarch_tdep): Add osabi member.
5434 (_initialize_sparc_tdep): Use gdbarch_register.
5435 (sparc_gdbarch_init): Use generic OS ABI framework.
5436 (sparc_dump_tdep): New function.
5438 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5440 * corefile.c (do_captured_read_memory_integer): Return non-zero
5442 (safe_read_memory_integer): Copy result of memory read when
5443 status is non-zero. Also, add comments.
5445 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5447 * Makefile.in (ppc_tdep_h): Define.
5450 (rs6000-tdep.o): Use $(ppc_tdep_h).
5453 (ppcnbsd-tdep.o): New dependency lists.
5454 * ppc-tdep.h: Use generic OS ABI framework.
5455 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5456 (ppc_linux_init_abi): New functions.
5457 (ppc_sysv_abi_broken_use_struct_convention)
5458 (ppc_sysv_abi_use_struct_convention)
5459 (ppc_sysv_abi_push_arguments): Move to...
5460 * ppc-sysv-tdep.c: ...here.
5461 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5462 * rs6000-tdep.c (process_note_abi_tag_sections)
5463 (get_elfosabi): Remove.
5464 (rs6000_gdbarch_init): Use generic OS ABI framework.
5465 (rs6000_dump_tdep): New function.
5466 (_initialize_rs6000_tdep): Use gdbarch_register.
5467 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5468 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5469 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5470 of ppc-linux-tdep.o.
5471 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5472 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5473 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5474 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5475 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5476 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5478 2002-05-29 Jim Blandy <jimb@redhat.com>
5480 * macroscope.c (default_macro_scope): Put `void' in empty argument
5483 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5485 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5486 * arch-utils.c: Include "sim-regno.h".
5487 * gdbarch.sh: Don't include "sim-regno.h".
5488 * gdbarch.h, gdbarch.c: Regenerate.
5489 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5491 * arch-utils.h (legacy_register_sim_regno): To here.
5492 * remote-sim.c (legacy_register_sim_regno): Move function from
5494 * arch-utils.c (legacy_register_sim_regno): To here.
5496 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5498 * sim-regno.h: New file.
5499 * Makefile.in (sim_regno_h): Define.
5500 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5501 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5502 (legacy_register_sim_regno): New function.
5503 (one2one_register_sim_regno): New function.
5504 (gdbsim_fetch_register): Rewrite.
5505 (gdbsim_store_register): Only store a register when
5506 REGISTER_SIM_REGNO is valid.
5507 * d10v-tdep.c: Include "sim-regno.h".
5508 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5509 (d10v_ts3_register_sim_regno): Ditto.
5510 * gdbarch.sh: Include "sim-regno.h".
5511 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5512 * gdbarch.h, gdbarch.c: Regenerate.
5513 * arch-utils.h (default_register_sim_regno): Delete declaration.
5514 * arch-utils.c (default_register_sim_regno): Delete function.
5516 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5518 * ppcnbsd-nat.c: Rewrite.
5519 * ppcnbsd-tdep.c: New file.
5520 * ppcnbsd-tdep.h: New file.
5521 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5522 solib.o, and solib-svr4.o.
5523 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5524 nbsd-tdep.o, and corelow.o.
5526 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5528 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5529 `tr' and `sed'. Mention that `broken' targets are not expected to
5532 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5534 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5535 Let PC point right after the prologue before looking up symbols.
5537 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5539 * i386-tdep.c (i386_register_virtual_type): Return
5540 builtin_type_vec128i for SSE registers.
5542 * gdbtypes.h (builtin_type_vec128i): Declare.
5544 * gdbtypes.c (build_builtin_type_vec128i): New function.
5545 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5546 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5547 (build_gdbtypes): Initialize new builtin vector types.
5548 (_initialize_gdbtypes): Register new vector types with gdbarch.
5550 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5552 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5553 since it has been multi-arch'd.
5554 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5555 Move Alpha and VAX multi-arch news entries to same section
5556 as other multi-arch news.
5558 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5560 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5561 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5562 static. Rename some register numbers to put them in ns32k-tdep
5564 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5565 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5567 (_initialize_ns32k_tdep): Use gdbarch_register.
5568 * ns32k-tdep.h: New file.
5569 * ns32knbsd-tdep.c: New file.
5570 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5571 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5572 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5573 REGISTER_BYTES, REGISTER_BYTE): Remove.
5574 * config/ns32k/tm-ns32k.h: New file.
5575 * config/ns32k/tm-umax.h: Remove.
5577 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5579 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5580 ns32k_store_struct_return, ns32k_extract_return_value,
5581 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5583 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5584 ns32k_saved_pc_after_call.
5585 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5586 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5587 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5588 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5589 ns32k_extract_struct_value_address.
5591 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5593 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5594 ns32k_fix_call_dummy): New.
5595 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5596 ns32k_call_dummy_words.
5597 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5598 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5599 CALL_DUMMY_NARGS): Remove.
5600 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5604 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5605 ns32k_frame_saved_pc, ns32k_frame_args_address,
5606 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5607 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5608 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5609 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5610 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5611 (BREAKPOINT): Remove..
5612 (FRAME_CHAIN): Define as ns32k_frame_chain.
5613 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5614 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5615 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5616 (FRAME_FIND_SAVED_REGS): Remove.
5617 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5618 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5619 (POP_FRAME): Define as ns32k_pop_frame.
5621 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5623 * ns32k-tdep.c (ns32k_register_byte_32082,
5624 ns32k_register_byte_32382, ns32k_register_raw_size,
5625 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5627 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5628 ns32k_register_byte_32382.
5629 * config/ns32k/tm-umax.h: Update copyright years.
5630 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5631 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5632 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5633 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5634 (ns32k_get_enter_addr): Fix prototype.
5636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5638 * ns32k-tdep.c: Update copyright years.
5639 (ns32k_register_name_32082): New function.
5640 (ns32k_register_name_32382): Ditto.
5641 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5642 (REGISTER_NAME): Define as ns32k_register_name_32382.
5643 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5644 (REGISTER_NAME): Define as ns32k_register_name_32082.
5646 2002-05-24 Jim Blandy <jimb@redhat.com>
5648 * dwarf2read.c (free_line_header): Use xfree, not free.
5650 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5652 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5653 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5655 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5657 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5659 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5661 From Ross Alexander at NEC Europe:
5662 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5664 2002-05-23 Michael Snyder <msnyder@redhat.com>
5666 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5667 for input, rather than parse_and_eval_address.
5669 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5671 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5672 * Makefile.in (sim_d10v_h): Update definition.
5674 2002-05-24 Andrew Cagney <cagney@redhat.com>
5676 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5677 change `2002-05-22 Michael Snyder' below.
5678 (d10v_push_arguments): Ditto.
5679 (d10v_extract_return_value): Ditto.
5681 2002-05-23 Jim Blandy <jimb@redhat.com>
5683 * macrotab.c (check_for_redefinition): Don't complain if the new
5684 definition is the same as the previous one. Take more arguments
5685 to allow the comparison.
5686 (macro_define_object, macro_define_function): Pass more arguments
5687 to check_for_redefinition.
5689 2002-05-22 Michael Snyder <msnyder@redhat.com>
5691 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5692 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5693 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5694 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5695 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5696 Add a temp variable to save a call (and a memory read).
5697 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5698 if possible (so that PC_IN_CALL_DUMMY will work).
5700 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5702 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5704 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5706 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5708 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5709 (dwarf2_build_frame_info): Add offset to fde->initial_location
5710 so that frames of shared libraries are mapped correctly.
5711 (execute_stack_op): Change type of 'result' from ULONGEST to
5714 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5716 * config/alpha/tm-nbsd.h: Include solib.h.
5718 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5720 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5721 assumptions about the host's byte order.
5723 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5725 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5727 * alphanbsd-tdep.c: Include solib-svr4.h.
5728 * shnbsd-tdep.c: Ditto.
5730 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5732 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5733 nbsd-tdep.h to dependency list.
5734 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5735 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5736 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5737 nbsdaout.mh and nbsdelf.mh consistently.
5738 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5739 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5740 nbsdaout.mt and nbsdelf.mh consistently.
5741 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5742 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5743 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5744 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5745 a.out shared library stuff from here...
5746 * config/nm-nbsdaout.h: ...to here.
5747 * config/tm-nbsd.h: Remove.
5748 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5749 * config/arm/nbsd.mh: Remove.
5750 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5752 * config/arm/nbsdaout.mh: New file.
5753 * config/arm/nbsdelf.mh: New file.
5754 * config/arm/nm-nbsdaout.h: New file.
5755 * config/i386/nbsd.mh: Remove.
5756 * config/i386/nbsd.mt: Remove.
5757 * config/i386/nbsdaout.mh: New file.
5758 * config/i386/nbsdaout.mt: New file.
5759 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5760 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5761 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5762 i386_register_u_addr): Remove.
5763 * config/i386/nm-nbsdaout.h: New file.
5764 * config/i386/nm-nbsdelf.h: Remove.
5765 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5766 (USE_STRUCT_CONVENTION): Remove.
5767 * config/i386/tm-nbsdaout.h: New file.
5768 * config/i386/tm-nbsdelf.h: Remove.
5769 * config/m68k/nbsd.mh: Remove.
5770 * config/m68k/nbsd.mt: Remove.
5771 * config/m68k/nbsdaout.mh: New file.
5772 * config/m68k/nbsdaout.mt: New file.
5773 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5774 * config/m68k/nm-nbsdaout.h: New file.
5775 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5776 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5777 * config/ns32k/nbsd.mh: Remove.
5778 * config/ns32k/nbsd.mt: Remove.
5779 * config/ns32k/nbsdaout.mh: New file.
5780 * config/ns32k/nbsdaout.mt: New file.
5781 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5782 * config/ns32k/nm-nbsdaout.h: New file.
5783 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5784 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5785 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5786 (SVR4_SHARED_LIBS): Remove.
5787 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5788 * config/sparc/nbsd.mh: Remove.
5789 * config/sparc/nbsd.mt: Remove.
5790 * config/sparc/nbsdaout.mh: New file.
5791 * config/sparc/nbsdaout.mt: New file.
5792 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5793 * config/sparc/nbsdelf.mt: New file.
5794 * config/sparc/nm-nbsdaout.h: New file.
5795 * config/sparc/nm-nbsdelf.h: Remove.
5796 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5797 * config/sparc/tm-nbsdaout.h: New file.
5799 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5801 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5803 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5805 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5807 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5809 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5811 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5813 * NEWS: Note new MIPS NetBSD native configuration.
5814 * configure.host (mips*-*-netbsd*): New host.
5815 * configure.tgt (mips*-*-netbsd*): New target.
5816 * mipsnbsd-nat.c: New file.
5817 * mipsnbsd-tdep.c: New file.
5818 * mipsnbsd-tdep.h: New file.
5819 * config/mips/nbsd.mh: New file.
5820 * config/mips/nbsd.mt: New file.
5821 * config/mips/nm-nbsd.h: New file.
5822 * config/mips/tm-nbsd.h: New file.
5824 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5826 * Makefile.in (SFILES): Add osabi.c.
5827 (COMMON_OBS): Add osabi.o.
5828 (osabi.o): New dependency list.
5829 * osabi.c: New file.
5830 * osabi.h: New file.
5831 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5833 * Makefile.in (alpha_tdep_h): Define and use instead of
5835 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5836 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5838 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5839 * alpha-tdep.h: Include osabi.h.
5840 (alpha_abi): Remove.
5841 (gdbarch_tdep): Use generic OS ABI framework.
5842 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5843 gdbarch_register_osabi.
5844 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5845 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5846 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5848 * Makefile.in (sh_tdep_h): Add osabi.h.
5849 * sh-tdep.h (sh_osabi): Remove.
5850 (gdbarch_tdep): Use generic OS ABI framework.
5851 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5852 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5853 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5854 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5856 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5857 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5858 gdbarch_register_osabi.
5859 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5860 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5861 (get_elfosabi): Rename to...
5862 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5863 ABI framework support routines.
5864 (arm_gdbarch_init): Use generic OS ABI framework.
5865 (arm_dump_tdep): Likewise.
5866 (_initialize_arm_tdep): Likewise.
5867 * arm-tdep.h: Include osabi.h.
5869 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5871 (arm_gdbarch_register_os_abi): Remove prototype.
5872 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5873 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5875 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5876 * mips-tdep.c: Include osabi.h.
5877 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5880 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5882 * h8300-tdep.c: Fix formatting.
5884 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5886 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5887 printing vector registers.
5889 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5891 From Fernando Nasser:
5892 * remote.c (remote_async_open_1): Re-throw the exception when the
5894 (remote_cisco_open): Ditto.
5895 (remote_open_1): Ditto.
5897 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5899 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5900 (remote_start_remote): Add uiout parameter. Pass through to
5901 remote_start_remote_dummy.
5902 (remote_open_1): Use catch_exception instead of catch_errors.
5903 (remote_async_open_1): Ditto.
5904 (remote_cisco_open): Ditto.
5906 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5908 * remote.c (remote_start_remote): Replace PTR with void pointer.
5909 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5912 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5914 * gdb_indent.sh: Allow the script to be run in the sim directory.
5916 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5918 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5919 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5921 * corelow.c (core_open): Only call set_gdbarch_from_file if
5924 2002-05-17 Andrey Volkov <avolkov@transas.com>
5926 * h8300-tdep.c: Add support of EXR register
5927 * config/h8300/tm-h8300.h: Ditto.
5929 2002-05-17 Andrey Volkov <avolkov@transas.com>
5931 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5933 2002-05-17 Andrey Volkov <avolkov@transas.com>
5935 * h8300-tdep.c: Change literal regnums to REGNO.
5937 2002-05-17 Jim Blandy <jimb@redhat.com>
5939 * NEWS: Note addition of macro support.
5941 Expand preprocessor macros in C expressions.
5942 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5943 (scan_macro_expansion, scanning_macro_expansion,
5944 finished_macro_expansion): New function declarations.
5945 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5946 variable declarations.
5947 * parser-defs.h (expression_context_pc): New declaration.
5948 * parse.c (expression_context_pc): New variable.
5949 (parse_exp_1): Set expression_context_pc, as well as
5950 expression_context_block.
5951 * c-exp.y (yylex): If we're not already reading the result of a
5952 macro expansion, try to macro-expand the next token. When we're
5953 done scanning a macro expansion, switch back to the mainline text.
5954 Commas and `if's in a macro's expansion don't terminate the input.
5955 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5956 (macro_original_text, macro_expanded_text,
5957 expression_macro_lookup_func, expression_macro_lookup_baton): New
5959 (scan_macro_expansion, scanning_macro_expansion,
5960 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5961 c_preprocess_and_parse): New functions.
5962 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5963 c_preprocess_and_parse, instead of c_parse.
5964 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5965 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5967 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5969 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5970 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5971 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5973 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5975 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5977 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5979 * Makefile.in (sh_tdep_h): Define and use.
5980 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5981 register enum): Move to...
5982 * * sh-tdep.h: ...here.
5983 * sh-tdep.c: Include sh-tdep.h.
5984 * sh3-rom.c: Likewise.
5985 * shnbsd-tdep.c: Likewise.
5987 2002-05-16 Michael Snyder <msnyder@redhat.com>
5989 * arm-tdep.c: Spelling fix in comment.
5991 2002-05-16 Jim Blandy <jimb@redhat.com>
5993 Add commands for manually expanding macros and showing their
5995 * macrocmd.c, macroscope.c, macroscope.h: New files.
5996 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5997 (macroscope_h): New variable.
5998 (HFILES_NO_SRCDIR): Add macroscope.h.
5999 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6000 (macroscope.o, macrocmd.o): New rules.
6002 Teach the Dwarf 2 reader to read macro information.
6003 * dwarf2read.c: #include "macrotab.h".
6004 (dwarf_macinfo_buffer): New variable.
6005 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6007 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6008 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6009 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6010 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6011 dwarf2_macro_spaces_in_definition): New complaints.
6012 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6013 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6014 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6015 the partial symbol table.
6016 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6017 from what's recorded in the partial symbol table.
6018 (read_file_scope): If the compilation unit has a
6019 `DW_AT_macro_info' attribute, read its macro information.
6020 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6022 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6025 * ser-tcp.c: Don't include <netinet/udp.h>.
6027 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6029 * MAINTAINERS: Update my email address.
6031 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6033 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6034 include file of the same name.
6036 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6038 * configure.tgt: Mark v850 as multi-arched.
6039 * config/v850/tm-v850.h: Remove file.
6040 * config/v850/v850.mt: Eliminate TM_FILE.
6042 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6044 * v850-tdep.c: Full multi-arch.
6045 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6046 Define GDB_MULTI_ARCH to 2.
6048 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6050 * p-exp.y (current_type): New static variable.
6051 Carries the type of the expression at the position that is parsed.
6052 (push_current_type, pop_current_type): Two new functions. Used
6053 to store/restore current_type in expression on specific tokens.
6054 (search_field): New static variable. Set to one after parsing a point
6055 as at that point only a FIELDNAME token should be searched.
6056 (FIELDNAME): New token. After a point only a token belonging to
6057 current_type type definition is allowed.
6058 (all over token rules): reset and change current_type according
6060 (exp '[' rule): insert implicit array index field if
6061 exp is a pascal string type.
6063 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6065 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6066 frame info. Use frame_info's saved_regs instead of matching member
6067 in extra_frame_info throughout.
6068 (v850_frame_init_saved_regs): New function.
6069 (v850_init_extra_frame_info): Move most functionality into
6070 v850_frame_init_saved_regs().
6071 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6072 (v850_frame_find_saved_regs): Remove declaration.
6073 (FRAME_FIND_SAVED_REGS): Remove definition.
6074 (v850_frame_init_saved_regs): Add declaration.
6075 (FRAME_INIT_SAVED_REGS): Add definition.
6077 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6079 * v850-tdep.c: Begin multi-arch'ing v850.
6080 (v850_target_architecture_hook): Remove function.
6081 (v850_gdbarch_init): New function. Add code previously in
6082 v850_target_architecture_hook().
6083 (_initialize_v850_tdep): Don't set target_architecture_hook.
6084 Call register_gdbarch_init() instead.
6086 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6088 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6089 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6090 (fixup_class_method_type): Likewise.
6092 2002-05-15 Jim Blandy <jimb@redhat.com>
6094 Add macro structures to GDB's symbol tables. Nobody puts anything
6096 * symtab.h (struct symtab): New member: `macro_table'.
6097 * buildsym.h (pending_macros): New global variable.
6098 * buildsym.c: #include "macrotab.h".
6099 (buildsym_init): Initialize `pending_macros'.
6100 (end_symtab): If we found macro information while reading a CU's
6101 debugging info, do build a symtab structure for it. Make the
6102 symtab point to the macro information, and clear the
6103 `pending_macros' pointer which held it while we were reading the
6105 (really_free_pendings): Free any pending macro table.
6106 * objfiles.h (struct objfile): New member: `macro_cache'.
6107 * objfiles.c (allocate_objfile): Set allocate and free functions
6108 for the macro cache's objstack.
6109 (free_objfile): Empty the macro cache's obstack.
6110 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6111 set new allocate and free functions for it.
6112 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6113 free functions for the macro cache's objstack. (Why is this
6114 function building its own objfile?)
6115 * symmisc.c (print_objfile_statistics): Print statistics on the
6117 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6119 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6121 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6122 (REGISTER_U_ADDR): Delete definition.
6123 (arm_register_u_addr): Delete declaration.
6125 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6127 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6128 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6130 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6132 * regcache.c (register_valid): Revise comments refering to "Not
6133 available" and "unavailable".
6134 * frame.c (frame_register_read): Ditto.
6135 * findvar.c (value_of_register): Ditto.
6137 2002-05-15 Andrew Cagney <cagney@redhat.com>
6139 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6140 (remote-sim.o): Update dependencies.
6141 (d10v-tdep.o): Specify dependencies.
6142 (sim_d10v_h): Define.
6144 2002-05-14 Jim Blandy <jimb@redhat.com>
6146 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6147 * macrotab.c (macro_lookup_inclusion, find_definition,
6148 new_macro_table): Same.
6150 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6151 not `! strcmp ()'. This is a dubious improvement.
6152 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6154 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6155 although it's not necessary, to avoid a warning.
6157 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6159 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6160 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6161 TYPE_INSTANCE_FLAGS.
6162 (struct main_type): New.
6163 (struct type): Move most members to struct main_type. Change
6164 cv_type and as_type to new type_chain member. Add instance_flags.
6165 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6166 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6167 (finish_cv_type): Remove prototype.
6168 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6170 (alloc_type_instance): New function.
6171 (smash_type): New function.
6172 (make_pointer_type, make_reference_type, make_function_type)
6173 (smash_to_member_type, smash_to_method_type): Call smash_type.
6174 (make_qualified_type): New function.
6175 (make_type_with_address_space): Call make_qualified_type.
6176 (make_cv_type): Likewise.
6177 (finish_cv_type): Remove unnecessary function.
6178 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6179 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6180 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6181 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6182 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6183 * hpread.c (hpread_read_struct_type): Likewise.
6184 * stabsread.c (read_struct_type): Likewise.
6186 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6188 * configure.tgt: Add a catch all sh* target, for cases like
6189 sh[2,3,4]-elf and sh-hms.
6191 2002-05-14 Keith Seitz <keiths@redhat.com>
6193 * event-loop.c (create_file_handler): Don't do anything but
6194 update data when we are given a fd which we are already
6197 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6199 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6200 (update_context): Use __func__ in warnings.
6202 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6204 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6205 and tcp_close to net_open and net_close.
6206 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6207 using UDP if requested. Don't try to disable Nagle on UDP
6209 * remote.c (remote_serial_open): New function. Warn about UDP.
6210 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6212 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6214 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6216 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6218 * configure.tgt: Remove sh-hms target.
6219 * MAINTAINERS: Don't list sh-hms as a separate target.
6221 2002-05-13 Jim Blandy <jimb@redhat.com>
6223 Add first preprocessor macro-expansion files.
6224 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6225 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6226 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6227 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6228 (COMMON_OBS): Add macrotab.o, macroexp.o.
6229 (macroexp.o, macrotab.o): New rules.
6231 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6233 * config/m88k/tm-m88k.h: Update copyright.
6234 (m88k_target_write_pc): Declare
6235 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6236 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6237 (SHIFT_INST_REGS): Update definition.
6238 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6239 using old definition of TARGET_WRITE_PC.
6240 * regcache.c (generic_target_write_pc): Delete code handling
6242 * gdbarch.sh (NNPC_REGNUM): Delete.
6243 * gdbarch.h, gdbarch.c: Regenerate.
6245 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6247 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6250 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6252 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6253 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6254 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6256 * c-typeprint.c (cp_type_print_method_args): Likewise.
6257 (c_type_print_args): Likewise.
6258 * d10v-tdep.c (d10v_push_arguments): Likewise.
6259 (d10v_extract_return_value): Likewise.
6260 * expprint.c (print_subexp): Likewise.
6261 * gdbtypes.c (lookup_primitive_typename): Likewise.
6262 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6263 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6264 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6265 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6266 (TYPE_VECTOR): Likewise.
6267 * hpread.c (hpread_read_struct_type)
6268 (fix_static_member_physnames, fixup_class_method_type)
6269 (hpread_type_lookup): Likewise.
6270 * mdebugread.c (parse_symbol, parse_type): Likewise.
6271 * p-lang.c (is_pascal_string_type): Likewise.
6272 * valops.c (hand_function_call): Likewise.
6273 * x86-64-tdep.c (classify_argument): Likewise.
6275 * hpread.c (hpread_read_function_type)
6276 (hpread_read_doc_function_type): Call replace_type.
6277 * dstread.c (create_new_type): Delete.
6278 (decode_dst_structure, process_dst_function): Call alloc_type.
6279 Use type access macros.
6281 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6283 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6284 the're not supported by the current architecture.
6285 (i387_fill_fxsave): Likewise.
6287 2002-05-12 Fred Fish <fnf@redhat.com>
6289 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6290 sect_index_xxx members to index the first slot in section_offsets
6291 if all of the section_offsets are zero.
6293 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6295 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6296 checked in with last change.
6298 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6300 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6301 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6304 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6306 * Makefile.in: Update dependencies.
6308 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6310 * language.c (local_hex_string_custom): Simplify. Do not depend
6311 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6313 * memattr.c (mem_info_command): Replace calls to
6314 longest_local_hex_string and longest_local_hex_string_custom.
6315 * buildsym.c (make_blockvector): Ditto.
6316 * solib.c (info_sharedlibrary_command): Ditto.
6317 * tracepoint.c (tracepoints_info): Ditto.
6318 * symtab.c (print_msymbol_info): Ditto.
6320 * language.c (local_hex_string): Delete.
6321 (local_hex_string_custom): Delete.
6322 (longest_local_hex_string): Rename to local_hex_string.
6323 (longest_local_hex_string_custom): Rename to
6324 local_hex_string_custom.
6325 * language.h (local_hex_string): Change parameter type to LONGEST.
6326 (local_hex_string_custom): Ditto.
6327 (longest_local_hex_string): Delete declaration.
6328 (longest_local_hex_string_custom): Ditto.
6330 * solib.c: Update copyright.
6331 * memattr.c: Update copyright.
6333 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6335 * arch-utils.h (legacy_register_to_value): Declare.
6336 (legacy_value_to_register): Declare.
6337 (legacy_convert_register_p): Declare.
6338 * arch-utils.c (legacy_register_to_value): New function.
6339 (legacy_value_to_register): New function.
6340 (legacy_convert_register_p): New function.
6342 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6343 (VALUE_TO_REGISTER): Define.
6344 (CONVERT_REGISTER_P): Define.
6345 * gdbarch.h, gdbarch.c: Regenerate.
6347 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6349 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6352 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6353 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6355 * Makefile.in: Update dependencies for valops.c.
6356 * valops.c: Include "gdb_assert.h".
6357 (typecmp): Skip THIS parameter to methods.
6358 (find_method_list): Remove static_memfuncp argument,
6359 update callers. Check for stub methods.
6360 (find_value_oload_method_list): Don't set *static_memfuncp.
6361 (find_overload_match): Don't check for stub methods. Assert
6362 that methods are not stubbed. Handle static methods.
6363 (value_find_oload_method_list): Remove static_memfuncp argument.
6364 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6365 to the argument list for static stub methods.
6366 * value.h (value_find_oload_method_list): Update prototype.
6368 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6370 * arch-utils.h (generic_register_size): Declare.
6371 (generic_register_raw_size, generic_register_virtual_size): Delete
6373 * arch-utils.c (generic_register_raw_size): Delete.
6374 (generic_register_size): New function.
6375 (generic_register_virtual_size): Delete.
6377 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6378 default generic_register_size.
6379 * gdbarch.h, gdbarch.c: Re-generate.
6381 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6382 register_virtual_size.
6383 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6386 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6388 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6389 * gdbarch.h, gdbarch.c: Regenerate.
6390 * gnu-v3-abi.c: Update copyright.
6391 (vtable_address_point_offset): Update.
6392 (gnuv3_rtti_type): Update.
6393 (gnuv3_baseclass_offset): Update.
6394 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6395 (init_fetch_link_map_offsets): Update.
6396 * remote.c (get_remote_state): Update.
6398 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6400 * TODO: Remove value_headof/value_from_vtable_info comment.
6401 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6402 * values.c (value_headof, value_from_vtable_info): Delete.
6403 * value.h (value_from_vtable_info): Delete prototype.
6405 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6407 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6408 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6410 (gdb_assert_h): Define.
6411 (gdb_wait_h): Define.
6412 (gdb_regex_h): Define.
6414 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6416 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6417 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6419 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6421 * nbsd-tdep.c: Fix comment.
6423 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6425 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6426 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6427 (nbsd-tdep.o): New dependency list.
6428 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6430 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6431 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6432 * nbsd-tdep.c: New file.
6433 * nbsd-tdep.h: New file.
6434 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6436 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6437 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6438 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6439 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6441 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6443 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6444 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6445 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6446 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6447 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6448 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6450 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6452 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6453 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6454 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6455 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6456 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6457 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6458 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6460 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6462 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6463 fetch_elfcore_registers to...
6464 * i386nbsd-tdep.c: ...here.
6465 (i386nbsd_use_struct_convention): Rename to...
6466 (i386nbsd_aout_use_struct_convention): ...this.
6467 (i386nbsd_supply_reg): New function.
6468 (i386nbsd_fill_reg): New function.
6469 (fetch_core_registers): Use i386nbsd_supply_reg.
6470 (fetch_elfcore_registers): Likewise.
6471 (_initialize_i386nbsd_tdep): New function.
6472 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6473 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6474 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6475 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6476 (i386nbsd_aout_use_struct_convention): ...this.
6478 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6480 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6481 (store_inferior_registers): Use shnbsd_fill_reg.
6482 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6483 sh_nbsd_supply_register): Collapse into...
6484 (shnbsd_supply_reg): ...this.
6485 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6486 (shnbsd_fill_reg): ...this.
6487 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6488 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6489 (fetch_core_registers): Use shnbsd_supply_reg.
6490 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6491 (sh_nbsd_core_fns): Rename to...
6492 (shnbsd_core_fns): ...this.
6493 (sh_nbsd_elfcore_fns): Rename to...
6494 (shnbsd_elfcore_fns): ...this.
6495 (sh_nbsd_init_abi): Rename to...
6496 (shnbsd_init_abi): ...this.
6497 (_initialize_sh_nbsd_tdep): Rename to...
6498 (_initialize_shnbsd_tdep): ...this.
6499 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6500 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6501 sh_nbsd_fill_register): Remove prototypes.
6502 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6504 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6506 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6507 (i387-nat.o): Delete dependency list.
6508 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6509 (x86-64-linux-nat.o): Likewise.
6510 * i387-nat.c: Delete file, moving contents to...
6511 * i387-tdep.c: ...here.
6512 * i387-nat.h: Rename...
6513 * i387-tdep.h: ...to this.
6514 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6515 * i386-linux-nat.c: Likewise.
6516 * i386bsd-nat.c: Likewise.
6517 * i386gnu-nat.c: Likewise.
6518 * i386nbsd-nat.c: Likewise.
6519 * i386v4-nat.c: Likewise.
6520 * x86-64-linux-nat.c: Likewise.
6521 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6522 * config/i386/go32.mh (NATDEPFILES): Likewise.
6523 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6524 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6525 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6526 * config/i386/linux.mh (NATDEPFILES): Likewise.
6527 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6528 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6529 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6530 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6532 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6534 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6535 (alphanbsd-nat.o): Remove dependency list.
6536 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6537 * alphanbsd-nat.c: Delete. Contents moved to...
6538 * alphanbsd-tdep.c: ...here.
6539 (_initialize_alphanbsd_tdep): Register core functions.
6540 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6542 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6544 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6545 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6546 (alphanbsd-nat.o): Likewise.
6547 (alphabsd-tdep.o): New dependency list.
6548 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6549 (fill_gregset): Use alphabsd_fill_reg.
6550 (supply_fpregset): Use alphabsd_supply_fpreg.
6551 (fill_fpregset): Use alphabsd_fill_fpreg.
6552 (fetch_inferior_registers): Use struct reg and struct fpreg
6553 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6554 and alphabsd_supply_fpreg.
6555 (store_inferior_registers): Use struct reg and struct fpreg
6556 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6557 and alphabsd_fill_fpreg.
6558 * alphabsd-tdep.c: New file.
6559 * alphabsd-tdep.h: New file.
6560 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6561 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6562 alphabsd_supply_fpreg.
6563 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6564 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6566 2002-05-11 Eric Christopher <echristo@redhat.com>
6568 * mips-tdep.c (mips_double_register_type): Fix thinko.
6569 (mips_single_register_type): Ditto.
6570 * MAINTAINERS: Add self.
6572 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6574 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6575 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6576 right thing on architectures with different endianness and/or
6579 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6581 From Christian Limpach <chris@Pin.LU>
6582 * configure.in: Change sed expression which comments out
6583 NATDEPFILES to also comment out continuation lines.
6584 * configure: Regenerate.
6586 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6588 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6591 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6593 * sh-tdep.c: Include correct file.
6595 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6597 New support for sh64-elf (sh5) target.
6599 * configure.tgt: For sh64-elf target, default to sh-elf.
6601 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6602 (struct gdbarch_tdep): Add new fields for new registers and ABI
6605 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6606 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6607 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6608 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6609 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6610 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6611 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6612 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6613 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6614 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6615 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6616 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6617 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6618 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6619 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6620 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6621 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6622 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6623 sign_extend, sh64_nofp_frame_init_saved_regs,
6624 sh64_init_extra_frame_info, sh64_get_saved_register,
6625 sh64_extract_struct_value_address, sh64_pop_frame,
6626 sh64_push_arguments, sh64_extract_return_value,
6627 sh64_store_return_value, sh64_show_media_regs,
6628 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6629 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6630 sh_sh64_register_virtual_type,
6631 sh_sh64_register_convert_to_virtual,
6632 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6633 sh64_register_read, sh64_pseudo_register_write,
6634 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6635 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6636 sh64_do_pseudo_register, sh_compact_do_registers_info,
6637 sh64_do_registers_info, sh_gdbarch_init): New functions.
6639 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6641 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6643 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6645 * linespec.c (decode_line_1): Check for a double quote after
6646 a filename correctly.
6648 2002-05-10 Jim Blandy <jimb@redhat.com>
6650 Properly track the size of the current objfile's .debug_line section.
6651 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6652 (DWARF_LINE_SIZE): New macro.
6653 (dwarf2_build_psymtabs_hard): Record the line section's size in
6654 the partial symbol table.
6655 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6658 2002-05-10 Petr Sorfa <petrs@caldera.com>
6660 * ia64-tdep.c: Handle breakpoints on L instruction type
6661 in MLX instruction bundle by moving the breakpoint to
6662 the third slot (X instruction type) as L holds only data.
6664 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6666 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6667 (process_one_symbol): Complain about discarding local symbols
6668 due to a misplaced N_LBRAC entry.
6670 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6672 From Daniel Berlin <dan@cgsoftware.com>
6673 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6674 decrease the depth we are at, in the case of templates.
6676 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6678 * mips-tdep.c (mips_float_register_type): New function.
6679 (mips_double_register_type): New function.
6680 (mips_print_register): Use them.
6681 (do_fp_register_row): Likewise.
6683 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6685 * signals/signals.c (signals): Remove conditional compilation around
6686 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6687 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6689 2002-05-09 Michael Snyder <msnyder@redhat.com>
6691 * remote-rdp.c (remote_rdp_can_run): Remove.
6693 2002-05-09 Tom Tromey <tromey@redhat.com>
6695 * jv-valprint.c (java_val_print): Handle `char' as a special case
6698 2002-05-09 Michael Snyder <msnyder@redhat.com>
6700 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6701 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6702 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6703 str r(0123),[sp,#nn].
6704 (arm_skip_prologue): Ditto. Also make disassembly
6705 order-independent by placing it in a loop.
6707 2002-05-06 Michael Snyder <msnyder@redhat.com>
6709 * stabsread.c (read_type): Add recognition for new attribute:
6710 "@V;" means that an array type is actually a vector.
6711 This is analogous to the vector flag that's been added to dwarf2.
6713 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6715 * i386-tdep.h (i386_abi): New enum.
6716 (struct gdbarch_tdep): Replace os_ident member with abi.
6717 (i386_gdbarch_register_os_abi): New prototype.
6718 * i386-tdep.c (i386_abi_names): New array.
6719 (process_note_abi_tag_sections): Removed.
6720 (process_note_sections): New function.
6721 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6722 (struct i386_abi_handler): New struct.
6723 (i386_abi_handler_list): New variable.
6724 (i386_gdbarch_register_os_abi): New function.
6725 (i386_gdbarch_init): Adapt for the changes given above.
6727 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6729 * gregset.h: Say "GNU/Linux".
6731 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6733 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6734 (build_gdbtypes): Build builtin_type_v2_float.
6735 (_initialize_gdbtypes): Register new builtin type.
6737 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6739 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6740 (clear_gdbarch_swap): New function.
6741 (initialize_non_multiarch): Call.
6742 (gdbarch_update_p): Before calling init(), swap out and clear the
6743 existing architecture.
6744 * gdbarch.c: Regenerate.
6746 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6748 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6751 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6753 * sh-nbsd-nat.c: Rename to...
6754 * shnbsd-nat.c: ...this.
6755 * sh-nbsd-tdep.c: Rename to...
6756 * shnbsd-tdep.c: ...this.
6757 * sh-nbsd-tdep.h: Rename to...
6758 * shnbsd-tdep.h: ...this.
6759 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6760 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6762 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6764 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6765 concatenation for command help messages.
6767 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6769 * NEWS: Note new sh*-*-netbsdelf* configuration.
6770 * configure.host: Set gdb_host_cpu to sh for all sh*.
6771 (sh*-*-netbsdelf*): New host.
6772 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6773 (sh*-*-netbsdelf*): New target.
6774 * sh-nbsd-nat.c: New file.
6775 * sh-nbsd-tdep.c: New file.
6776 * sh-nbsd-tdep.h: New file.
6777 * config/sh/nbsd.mh: New file.
6778 * config/sh/nbsd.mt: New file.
6779 * config/sh/nm-nbsd.h: New file.
6780 * config/sh/tm-nbsd.h: New file.
6782 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6784 * sh-tdep.c (sh_osabi_names): Declare.
6785 (process_note_abi_tag_sections): New function.
6786 (get_elfosabi): Ditto.
6787 (sh_gdbarch_register_os_abi): Ditto.
6788 (sh_dump_tdep): Ditto.
6789 _initialize_sh_tdep): Use gdbarch_register to register
6790 sh_gdbarch_init and sh_dump_tdep.
6791 * config/sh/tm-sh.h (sh_osabi): Declare.
6792 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6794 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6796 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6797 (thumb_scan_prologue): Ditto.
6798 (arm_find_callers_reg): Ditto.
6799 (arm_frame_chain): Ditto.
6800 (arm_init_extra_frame_info): Ditto.
6801 (arm_frame_saved_pc): Ditto.
6802 (arm_pop_frame): Ditto.
6803 (arm_push_return_address): New function.
6804 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6805 call_dummy_location, call_dummy_breakpoint_offset_p,
6806 call_dummy_breakpoint_offset, call_dummy_p,
6807 call_dummy_stack_adjust_p, call_dummy_words,
6808 sizeof_call_dummy_words, call_dummy_start_offset,
6809 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6810 call_dummy_address, push_return_address and push_dummy_frame for
6811 generic dummy frames.
6813 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6815 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6816 size computation for alloca.
6817 (sh_fp_frame_init_saved_regs): Likewise.
6819 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6821 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6822 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6823 * arm-tdep.c (arm_store_return_value): Use them.
6824 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6825 * remote-rdp.c (remote_rdp_fetch_register): Use
6826 ARM_MAX_REGISTER_RAW_SIZE.
6827 (remote_rdp_store_register): Likewise.
6829 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6831 * dwarf2cfi.c: Code cleanup, removed unused variables,
6832 added default labels to switch {} statements.
6833 * x86-64-tdep.c: Ditto.
6834 * x86-64-linux-nat.c: Ditto.
6836 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6838 * solib.h: Protect against multiple inclusion.
6840 2002-05-06 Jim Blandy <jimb@redhat.com>
6842 Add first preprocessor macro-expansion files.
6843 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6844 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6845 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6846 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6847 (COMMON_OBS): Add macrotab.o, macroexp.o.
6848 (macroexp.o, macrotab.o): New rules.
6850 Separate the job of reading the line number info statement program
6851 header (...expialidocious) out into its own function.
6852 * dwarf2read.c (struct line_head, struct filenames, struct
6853 directories): Replace with...
6854 (struct line_header): New structure, containing the full
6855 contents of the statement program header, including the
6856 include directory and file name tables.
6857 (read_file_scope): If we have line number info, instead of just
6858 calling dwarf_decode_lines to do all the work, call
6859 dwarf_decode_line_header first to get a `struct line_header'
6860 containing the data in the statement program header, and then
6861 pass that to dwarf_decode_lines, which will pick up where that
6862 left off. Be sure to clean up the `struct line_header' object.
6863 (dwarf_decode_line_header, free_line_header, add_include_dir,
6864 add_file_name): New functions.
6865 (dwarf_decode_lines): Move all the code to read the statement
6866 program header into dwarf_decode_line_header. Take the line
6867 header it built as the first argument, instead of the offset to
6868 the compilation unit's line number info. Use the new `struct
6869 line_header' type instead of the old structures. No need to do
6870 cleanups here now, since we don't allocate anything.
6871 (dwarf2_statement_list_fits_in_line_number_section,
6872 dwarf2_line_header_too_long): New complaints.
6874 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6876 * gdbtypes.c (init_vector_type): New function.
6877 (build_builtin_type_vec128): Simplify the representation of SIMD
6879 (build_gdbtypes): Initialize new builtin vector types.
6880 (_initialize_gdbtypes): Register new vector types with gdbarch.
6881 (builtin_type_v4_float, builtin_type_v4_int32,
6882 builtin_type_v8_int16, builtin_type_v16_int8,
6883 builtin_type_v2_int32, builtin_type_v4_int16,
6884 builtin_type_v8_int8): New (renamed) SIMD types.
6886 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6888 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6889 (i387_fill_fxsave): Likewise.
6891 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6893 * alpha-tdep.c (alpha_extract_return_value): Don't use
6894 non-constant array size in prototype.
6896 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6898 From Brian Taylor <briant at model dot com>:
6899 * ui-out.c (ui_out_field_core_addr): Use the function
6900 longest_local_hex_string_custom'to format addresses > 32 bits
6903 * ui-out.c (ui_out_field_core_addr): Update comment.
6905 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6907 * stack.c (select_and_print_frame): Make static. Delete the
6909 (func_command): Update call.
6910 (select_frame_command): Delete code computing the frame level.
6911 * frame.h (select_and_print_frame): Delete declaration.
6913 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6915 * sparc-tdep.c (sparc_get_saved_register): Comment why
6916 get_prev_frame call is safe.
6918 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6920 * frame.h (select_frame): Delete level parameter.
6921 * stack.c (select_frame): Update. Use frame_relative_level to
6922 obtain the frame's level.
6923 (select_and_print_frame): Update call.
6924 (select_frame_command): Ditto.
6925 (up_silently_base): Ditto.
6926 (down_silently_base): Ditto.
6927 * ocd.c (ocd_start_remote): Ditto.
6928 * remote-rdp.c (remote_rdp_open): Ditto.
6929 * remote-mips.c (mips_initialize): Ditto.
6930 (common_open): Ditto.
6931 * remote-e7000.c (e7000_start_remote): Ditto.
6932 * m3-nat.c (select_thread): Ditto.
6933 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6934 (child_get_current_exception_event): Ditto.
6935 * varobj.c (varobj_create): Ditto.
6936 (varobj_update): Ditto.
6937 (c_value_of_root): Ditto.
6938 * tracepoint.c (finish_tfind_command): Ditto.
6939 * corelow.c (core_open): Ditto.
6940 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6941 * thread.c (info_threads_command): Ditto.
6942 (switch_to_thread): Ditto.
6943 * infrun.c (normal_stop): Ditto.
6944 (restore_selected_frame): Ditto.
6945 (restore_inferior_status): Ditto.
6946 * breakpoint.c (insert_breakpoints): Ditto.
6947 (watchpoint_check): Ditto.
6948 (bpstat_stop_status): Ditto.
6949 (do_enable_breakpoint): Ditto.
6950 * blockframe.c (flush_cached_frames): Ditto.
6951 (reinit_frame_cache): Ditto.
6953 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6955 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6958 2002-05-04 Jim Blandy <jimb@redhat.com>
6960 * gdbtypes.c (replace_type): Doc fix.
6962 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6964 * valprint.c (strcat_longest): Delete commented out function.
6967 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6969 * MAINTAINERS: Mark a29k as deleted.
6970 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6971 Move new configurations to the top.
6972 * configure.tgt: Remove a29k.
6973 * config/a29k/tm-vx29k.h: Delete.
6974 * config/a29k/vx29k.mt: Delete.
6975 * config/a29k/tm-a29k.h: Delete.
6976 * config/a29k/a29k-udi.mt: Delete.
6977 * config/a29k/a29k.mt: Delete.
6978 * a29k-tdep.c: Delete.
6979 * remote-udi.c: Delete.
6980 * remote-mm.c: Delete.
6981 * remote-eb.c: Delete.
6982 * remote-adapt.c: Delete.
6983 * Makefile.in: Remove obsolete code.
6984 * config/s390/s390x.mt: Ditto.
6985 * config/s390/s390.mt: Ditto.
6986 * config/sparc/sparclynx.mh: Ditto.
6987 * config/sparc/linux.mh: Ditto.
6988 * config/pa/hppaosf.mh: Ditto.
6989 * config/pa/hppabsd.mh: Ditto.
6990 * config/ns32k/nbsd.mt: Ditto.
6991 * config/mips/vr5000.mt: Ditto.
6992 * config/m68k/sun3os4.mh: Ditto.
6993 * config/m68k/nbsd.mt: Ditto.
6994 * config/m68k/m68klynx.mh: Ditto.
6995 * config/m32r/m32r.mt: Ditto.
6996 * config/i386/x86-64linux.mt: Ditto.
6997 * config/i386/nbsdelf.mt: Ditto.
6998 * config/i386/nbsd.mt: Ditto.
6999 * config/i386/i386lynx.mh: Ditto.
7001 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7003 * target.c (debug_print_register): New function. Handle oversize
7005 (debug_to_fetch_registers): Call.
7006 (debug_to_store_registers): Call.
7008 2002-05-03 Jim Blandy <jimb@redhat.com>
7010 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7011 (read_type): Doc fix.
7012 * gdbtypes.c (replace_type): Doc fix.
7014 * stabsread.c (multiply_defined_struct): New complaint.
7015 (read_struct_type): If the type we were passed isn't empty, or
7016 incomplete, don't read the new struct type into it; complain,
7017 and return the original type unchanged. Take a new `type_code'
7018 argument, which is the type code for the new type.
7019 (read_type): Rather than storing the type's type code here, pass
7020 it as an argument to read_struct_type, and let that take care of
7021 storing it. That way, we don't overwrite the original type code,
7022 so read_struct_type can use it to decide whether we're overwriting
7023 something we shouldn't.
7024 (complain_about_struct_wipeout): New function.
7026 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7028 * gdbarch.sh: Assert that gdbarch is non-NULL.
7029 * gdbarch.c: Regenerate.
7031 2002-05-03 Jason Merrill <jason@redhat.com>
7033 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7036 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7038 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7039 (x86_64_dwarf2gdb_regno_map_length),
7040 (x86_64_dwarf2_reg_to_regnum): Added.
7041 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7042 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7043 (_initialize_x86_64_tdep): Synced with the change above.
7044 (x86_64_skip_prologue): Reformulated message.
7046 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7048 * f-exp.y: Also use new prev_lexptr variable
7049 to improve error reporting. Based on Michael Snyder
7050 2002-04-24 dated patch to c-exp.y.
7051 * jv-exp.y: Likewise.
7052 * m2-exp.y: Likewise.
7054 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7056 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7057 we are dealing with vectors.
7059 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7061 * config/m68k/tm-nbsd.h: Obvious fix,
7062 correct machine name.
7064 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7066 * p-typeprint.c (pascal_type_print_base): Add support
7067 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7069 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7071 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7072 for fondamental pascal 'char' type.
7074 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7076 * p-lang.h (is_pascal_string_type): Declaration changed,
7077 new sixth argument of type char ** added.
7078 * p-lang.c (is_pascal_string_type): Implementation
7079 changed. Args length_pos, length_size, string_pos, char_size
7080 can now be NULL. New argument arrayname set to the field
7081 name of the char array. Return value set to char array
7082 field index plus one.
7083 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7084 is_pascal_string_type function.
7086 2002-05-02 Andrew Cagney <cagney@redhat.com>
7088 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7089 <cagney@redhat.com> change.
7090 * gdbarch.c: Regenerate.
7092 2002-05-02 Andrew Cagney <cagney@redhat.com>
7094 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7095 before probing for a new one. Detect errorenous gdbarch_init
7097 * gdbarch.c: Regenerate.
7099 2002-05-01 Andrew Cagney <cagney@redhat.com>
7101 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7102 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7103 * config/v850/tm-v850.h: Ditto. Update copyright.
7105 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7107 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7110 2002-04-30 Michael Snyder <msnyder@redhat.com>
7112 * arm-tdep.c: Whitespace clean-ups.
7113 (arm_skip_prologue): Fix thinko; two lines
7114 should have been removed as part of 4/24 change.
7116 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7118 * rs6000-tdep.c: Added comment describing how fpscr register
7119 numbers were chosen.
7121 2002-04-30 Michael Snyder <msnyder@redhat.com>
7123 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7125 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7127 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7128 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7129 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7131 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7133 From Louis Hamilton <hamilton@redhat.com>:
7134 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7135 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7136 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7137 not bfd-private xcoff data, to determine wordsize.
7138 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7140 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7142 GDB 5.2 released from 5.2 branch.
7144 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7146 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7147 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7148 (x86_64_register_info_table): Added comments with register numbers.
7150 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7152 * rs6000-tdep.c (rs6000_extract_return_value,
7153 rs6000_store_return_value): Handle returning vectors.
7154 (rs6000_gdbarch_init): Use
7155 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7156 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7158 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7160 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7161 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7163 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7165 * hpread.c (hpread_psymtab_to_symtab_1,
7166 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7167 with fprintf_unfiltered (gdb_stderr,...).
7169 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7171 * remote-array.c (printf_monitor, write_monitor,
7172 array_insert_breakpoint, array_remove_breakpoint ):
7173 Replace fprintf (stderr,...
7174 with fprintf_unfiltered (gdb_stderr,....
7175 * remote-es.c: Likewise.
7176 * remote-os9k.c: Likewise.
7177 * remote-st.c: Likewise.
7179 2002-04-28 Andreas Schwab <schwab@suse.de>
7181 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7182 linux-proc.o and gcore.o.
7184 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7186 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7187 code without frame pointers.
7189 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7191 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7194 2002-04-26 Ben Elliston <bje@redhat.com>
7196 * target.c (do_xfer_memory): Correct reference to the new option
7197 "trust-readonly-sections".
7199 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7201 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7202 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7203 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7205 (read_array_type): Record the fact that this array type is really a
7206 vector (i.e. are passed in by value).
7208 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7210 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7211 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7212 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7213 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7214 * alpha-linux-tdep.c: Include frame.h.
7215 (alpha_linux_sigcontext_addr): New function.
7216 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7217 alpha_linux_sigcontext_addr.
7218 * alpha-osf1-tdep.c: Include gdbcore.h.
7219 (alpha_osf1_sigcontext_addr): New function.
7220 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7221 alpha_osf1_sigcontext_addr.
7222 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7223 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7225 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7227 * stack.c (selected_frame_level):
7228 (select_frame): Do not set selected_frame_level.
7229 * frame.h (selected_frame_level): Delete declaration.
7231 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7233 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7234 convert_from_func_ptr-addr when AIX / PowerOpen.
7236 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7238 * valops.c (hand_function_call): Call
7239 generic_save_call_dummy_addr.
7240 * frame.h (generic_save_call_dummy_addr): Declare.
7241 * blockframe.c (struct dummy_frame): Add fields call_lo and
7243 (generic_find_dummy_frame): Check for PC in range call_lo to
7244 call_hi instead of entry_point_address.
7245 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7246 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7247 (generic_save_call_dummy_addr): New function.
7249 2002-04-24 David S. Miller <davem@redhat.com>
7251 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7252 sparc_skip_prologue.
7253 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7254 information to find prologue when possible.
7255 (sparc_prologue_frameless_p): Call examine_prologue directly.
7256 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7257 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7259 (SKIP_PROLOGUE): Likewise.
7261 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7263 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7264 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7265 indicate that the condition it was testing is always true.
7266 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7267 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7268 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7270 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7272 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7273 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7274 tdep->jb_pc and tdep->jb_elt_size.
7275 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7276 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7277 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7278 * alpha-nat.c (get_longjmp_target): Remove.
7279 (JB_ELEMENT_SIZE): Ditto.
7281 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7282 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7283 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7284 to alpha_get_longjmp_target.
7285 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7286 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7287 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7289 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7291 * README: Update to GDB 5.2.
7293 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7295 * gdbarch.sh (LC_ALL): Set to `c'.
7297 2002-04-25 Theodore A. Roth <troth@verinet.com>
7299 * avr-tdep.c: Ran through gdb_indent.sh.
7301 2002-04-25 Theodore A. Roth <troth@verinet.com>
7303 * MAINTAINERS: Add myself as AVR maintainer.
7304 * NEWS: Note new target avr.
7306 2002-04-25 Theodore A. Roth <troth@verinet.com>
7308 * Makefile.in: Add support for AVR target.
7309 * configure.tgt: Add support for AVR target.
7310 * avr-tdep.c: New file
7311 * config/avr/avr.mt: New file.
7313 2002-04-25 Theodore A. Roth <troth@verinet.com>
7315 * MAINTAINERS: Add myself to write-after-approval.
7317 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7319 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7320 with fprintf_unfiltered (gdb_stderr,....
7322 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7325 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7327 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7329 * p-exp.y: Also use new prev_lexptr variable
7330 to improve error reporting. Based on Michael Snyder
7331 2002-04-24 dated patch to c-exp.y.
7333 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7335 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7336 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7337 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7339 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7341 (FUNCTION_START_OFFSET): Remove.
7342 (BREAKPOINT): Ditto.
7344 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7346 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7349 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7351 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7352 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7353 alpha_linux_pc_in_sigtramp.
7354 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7355 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7356 alpha_osf1_pc_in_sigtramp.
7357 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7358 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7359 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7360 alphafbsd_pc_in_sigtramp.
7361 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7362 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7363 alphanbsd_pc_in_sigtramp.
7364 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7365 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7367 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7369 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7371 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7373 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7375 (alphanbsd-nat.o): New dependency list.
7376 (alphanbsd-tdep.o): Ditto.
7377 * NEWS: Note new native NetBSD/alpha configuration.
7378 * alphanbsd-nat.c: New file.
7379 * alphanbsd-tdep.c: Ditto.
7380 * configure.host (alpha*-*-netbsd*): New host.
7381 * configure.tgt (alpha*-*-netbsd*): New target.
7382 * config/alpha/nbsd.mh: New file.
7383 * config/alpha/nbsd.mt: Ditto.
7384 * config/alpha/nm-nbsd.h: Ditto.
7385 * config/alpha/tm-nbsd.h: Ditto.
7387 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7389 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7390 (alpha-osf1-tdep.o): New dependency list.
7391 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7392 and skip_sigtramp_frame members.
7393 * alpha-linux-tdep.c: Include gdbcore.h.
7394 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7395 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7396 * alpha-osf1-tdep.c: New file.
7397 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7399 (alpha_frame_past_sigtramp_frame): New function.
7400 (alpha_dynamic_sigtramp_offset): Ditto.
7401 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7402 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7403 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7404 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7405 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7406 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7407 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7408 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7409 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7410 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7411 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7412 to find_solib_trampoline_target.
7413 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7414 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7415 (SKIP_TRAMPOLINE_CODE): Remove.
7416 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7417 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7418 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7419 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7420 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7421 (PROC_SIGTRAMP_MAGIC): Ditto.
7422 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7423 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7424 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7425 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7426 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7428 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7430 * NEWS: Note that Alpha targets are now multi-arch.
7432 2002-04-24 Michael Snyder <msnyder@redhat.com>
7434 * parser-defs.h (prev_lexptr): New external variable.
7435 * parse.c (parse_exp_1): Set prev_lexptr to null before
7436 calling the language-specific parser.
7437 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7438 (yyerror): Use prev_lexptr in error reporting.
7440 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7442 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7443 * gregset.h: If FILL_FPXREGSET is defined, provide
7444 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7445 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7446 is defined, call fill_fpxregset.
7448 2002-04-24 Roland McGrath <roland@frob.com>
7450 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7451 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7452 (supply_gregset, supply_fpregset): New functions.
7454 * gnu-nat.c (gnu_find_memory_regions): New function.
7455 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7456 (gnu_xfer_memory): Add a cast.
7458 2002-04-24 Michael Snyder <msnyder@redhat.com>
7460 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7461 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7462 of argument regs ("str r(0123), [r11, #-nn"]).
7463 (arm_skip_prologue): Better handling for frameless functions.
7464 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7465 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7467 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7469 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7470 NUM_PSEUDO_REGS can be used.
7472 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7474 * arch-utils.h: Update copyright.
7476 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7477 * gdbarch.h, gdbarch.c: Re-generate.
7479 * inferior.h (IN_SIGTRAMP): Delete definition.
7480 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7481 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7483 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7484 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7485 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7486 (find_proc_framesize): Ditto.
7487 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7488 (alpha_init_extra_frame_info): Ditto.
7489 * infrun.c (handle_inferior_event): Ditto.
7490 (handle_inferior_event): Ditto.
7491 (check_sigtramp2): Ditto.
7492 * blockframe.c (create_new_frame): Ditto.
7493 (get_prev_frame): Ditto.
7494 * ppc-linux-tdep.c: Update comments.
7495 * i386-linux-tdep.c: Update comments.
7496 * breakpoint.c (bpstat_what): Update comment.
7498 2002-04-24 David S. Miller <davem@redhat.com>
7500 * i960-tdep.c (register_in_window_p): New function.
7501 (i960_find_saved_register): Use it instead of
7502 REGISTER_IN_WINDOW_P.
7503 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7505 * symtab.h (find_stab_function_addr): Kill extern.
7506 * minsyms.c (find_stab_function_addr): Remove from here...
7507 * dbxread.c: ... to here, and mark it static.
7509 2002-04-20 David S. Miller <davem@redhat.com>
7511 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7512 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7514 2002-04-21 David S. Miller <davem@redhat.com>
7516 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7517 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7518 (vx_write_register): Likewise.
7520 2002-04-23 J. Brobecker <brobecker@gnat.com>
7522 * source.c (is_regular_file): New function.
7523 (openp): Check wether file to open is a regular file
7524 to avoid opening directories.
7526 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7528 * findvar.c (extract_signed_integer): Cast printf argument
7529 to suppress format warning.
7530 (extract_unsigned_integer): Likewise.
7531 * infcmd.c (registers_info): Likewise.
7532 * top.c (get_prompt_1): Likewise.
7533 * valops.c (value_assign): Likewise.
7534 * valprint.c (print_decimal): Likewise.
7536 2002-04-22 H.J. Lu (hjl@gnu.org)
7538 * c-exp.y (typebase): Support
7540 [long|long long|short] [signed|unsigned] [int|]
7544 signed [long|long long|short] int
7546 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7548 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7550 * vax-tdep.h: New file.
7551 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7552 Make several routines static.
7553 (vax_get_saved_register): New function.
7554 (vax_gdbarch_init): New function.
7555 (_initialize_vax_tdep): Register vax_gdbarch_init.
7556 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7557 Remove macros now under the control of gdbarch.
7559 2002-04-22 Michael Snyder <msnyder@redhat.com>
7561 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7562 Some whitespace and coding standards tweaks.
7564 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7566 * vax-tdep.c: Include regcache.h.
7567 (vax_call_dummy_words): New.
7568 (sizeof_vax_call_dummy_words): New.
7569 (vax_fix_call_dummy): New function.
7570 (vax_saved_pc_after_call): Ditto.
7571 * config/vax/tm-vax.h: Don't include regcache.h.
7572 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7573 (CALL_DUMMY): Remove.
7574 (CALL_DUMMY_WORDS): Define.
7575 (SIZEOF_CALL_DUMMY_WORDS): Define.
7576 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7578 2002-04-18 Michael Snyder <msnyder@redhat.com>
7580 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7582 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7584 * vax-tdep.c (vax_frame_chain): New function.
7585 (vax_push_dummy_frame): Ditto.
7586 (vax_pop_frame): Ditto.
7587 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7588 (FRAMELESS_FUNCTION_INVOCATION): Use
7589 generic_frameless_function_invocation_not.
7590 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7591 (POP_FRAME): Use vax_pop_frame.
7593 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7595 * vax-tdep.c (vax_store_struct_return): New function.
7596 (vax_extract_return_value): Ditto.
7597 (vax_store_return_value): Ditto.
7598 (vax_extract_struct_value_address): Ditto.
7599 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7600 vax_store_struct_return.
7601 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7602 (STORE_RETURN_VALUE): Use vax_store_return_value.
7603 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7605 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7607 * vax-tdep.c (vax_frame_saved_pc): New function.
7608 (vax_frame_args_address_correct): Ditto.
7609 (vax_frame_args_address): Ditto.
7610 (vax_frame_locals_address): Ditto.
7611 (vax_frame_num_args): Move code to be in proximity to
7612 other frame-related functions.
7613 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7614 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7615 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7616 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7617 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7619 2002-04-22 H.J. Lu (hjl@gnu.org)
7621 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7626 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7627 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7628 (FRAME_INIT_SAVED_REGS): New macro.
7630 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7632 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7634 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7636 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7638 (fetch_osf_core_registers): Likewise.
7639 (supply_gregset): Likewise.
7641 2002-04-22 J. Brobecker <brobecker@gnat.com>
7643 * symfile.h (get_section_index): Define.
7644 * symfile.c (get_section_index): New function.
7645 * mdebugread.c (SC_IS_SBSS): New macro.
7646 (SC_IS_BSS): Return true for the scBss storage class only, as
7647 the scSBss storage class refers to the .sbss section.
7648 (parse_partial_symbols): Discard the symbols which associated
7649 section does not exist.
7650 Make sure to use the .sbss section index for symbols which
7651 storage class is scBss, rather than using the .bss section index.
7653 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7655 * vax-tdep.c: Update copyright years.
7656 (vax_register_name): New function.
7657 (vax_register_byte): Ditto.
7658 (vax_register_raw_size): Ditto.
7659 (vax_register_virtual_size): Ditto.
7660 (vax_register_virtual_type): Ditto.
7661 * config/vax/tm-vax.h: Update copyright years.
7662 (REGISTER_NAMES): Remove.
7663 (REGISTER_NAME): Define.
7664 (REGISTER_BYTE): Use vax_register_byte.
7665 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7666 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7667 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7669 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7671 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7673 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7675 2002-04-21 David S. Miller <davem@redhat.com>
7677 * arch-utils.c (generic_prologue_frameless_p): Kill
7678 SKIP_PROLOGUE_FRAMELESS_P code.
7679 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7681 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7682 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7683 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7685 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7686 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7687 (sparc_gdbarch_init): Pass it to
7688 set_gdbarch_prologue_frameless_p.
7690 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7692 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7693 (alphabsd-nat.o): New dependency list.
7695 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7697 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7699 (alpha-linux-tdep.o): New dependency list.
7700 (alphafbsd-tdep.o): Likewise.
7702 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7704 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7706 * alpha-tdep.c: ...from here.
7707 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7709 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7711 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7712 prototype from here...
7713 * alpha-tdep.h: ...to here.
7715 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7717 * frame.h (selected_frame_level): Document as deprecated.
7718 (frame_relative_level): Declare.
7719 * stack.c (frame_relative_level): New function.
7720 (selected_frame_level): Document as deprecated.
7721 (select_frame): Do not set the selected_frame_level.
7723 * stack.c (frame_info, record_selected_frame): Update.
7724 (frame_command, current_frame_command): Update.
7725 (up_silently_base, up_command, down_silently_base): Update.
7726 (down_command): Update.
7727 * inflow.c (kill_command): Update.
7728 * tracepoint.c (finish_tfind_command): Update.
7729 * corelow.c (core_open): Update.
7730 * thread.c (info_threads_command): Update.
7731 (do_captured_thread_select): Update.
7732 * infcmd.c (finish_command): Update.
7733 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7737 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7739 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7741 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7744 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7746 * alphafbsd-tdep.c: Update copyright years. Include
7748 (alphafbsd_use_struct_convention): Make static.
7749 (alphafbsd_init_abi): New function.
7750 (_initialize_alphafbsd_tdep): New function.
7751 * config/alpha/tm-fbsd.h: Update copyright years.
7752 (USE_STRUCT_CONVENTION): Remove.
7754 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7756 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7757 an Alpha ABI variant.
7758 (alpha_abi_handler_list): Declare.
7759 (alpha_gdbarch_register_os_abi): New function.
7760 (alpha_gdbarch_init): Give registered ABI variant handlers a
7761 chance to tweak the gdbarch once we have set up defaults.
7762 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7764 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7766 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7767 to standard_coerce_float_to_double.
7768 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7770 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7772 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7773 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7774 from gdbarch_tdep rather than a constant.
7775 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7776 the default text address for all Alpha Unix ABIs.
7777 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7778 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7782 * alpha-tdep.h: New file. Includes several Alpha target constants
7784 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7785 let gdbarch deal with.
7786 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7787 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7789 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7790 Alpha target register names.
7791 * alphabsd-nat.c: Likewise.
7792 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7793 Alpha target register names. Make serveral routines static.
7794 (alpha_get_saved_register): New function.
7795 (alpha_abi_names): New.
7796 (process_note_abi_tag_sections): New function.
7797 (get_elfosabi): New function.
7798 (alpha_gdbarch_init): New function.
7799 (alpha_dump_tdep): New function.
7800 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7802 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7804 * frame.c (find_saved_register): Delete #ifdef
7805 HAVE_REGISTER_WINDOWS code.
7806 * config/sparc/tm-sparc.h: Update comments.
7807 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7809 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7811 * i960-tdep.c (i960_find_saved_register): New function.
7812 (i960_get_saved_register): New function.
7813 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7814 (i960_get_saved_register): Declare.
7815 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7817 2002-04-20 David S. Miller <davem@redhat.com>
7819 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7821 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7823 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7824 instead of NUM_PSEUDO_REGS.
7826 2002-04-20 David S. Miller <davem@redhat.com>
7828 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7829 GDB_MULTI_ARCH_PARTIAL
7830 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7831 define, let tm-sp64.h do it.
7833 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7835 * frame.c (find_saved_register): Avoid a NULL pointer
7836 dereference and actually walk the frame list.
7838 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7840 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7841 sorted in most most-recent-used order. Document.
7842 * gdbarch.h, gdbarch.c: Regenerate.
7844 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7846 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7848 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7849 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7850 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7853 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7856 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7857 (build_builtin_type_vec128): Ditto.
7858 (append_composite_type_field): Fix calculation of type length in
7861 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7863 * config/djgpp/README: Update.
7865 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7868 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7870 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7871 (alpha_setup_arbitrary_frame): ...to this.
7872 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7873 for alpha_setup_arbitrary_frame.
7875 2002-04-18 Andrew Cagney <cagney@redhat.com>
7877 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7878 * gdbarch.h, gdbarch.c: Regenerate.
7880 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7881 * target.h (memory_breakpoint_from_pc): Update declaration.
7882 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7884 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7885 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7886 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7887 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7888 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7889 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7890 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7891 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7892 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7893 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7894 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7895 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7897 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7899 * monitor.c (monitor_insert_breakpoint): Ditto.
7900 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7902 * config/mcore/tm-mcore.h: Update copyright.
7903 * mem-break.c: Ditto.
7904 * xstormy16-tdep.c: Ditto.
7906 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7908 * p-exp.y: Add precedence rule for '^' token.
7909 This removes the shift/reduce conflicts.
7910 Remove the comment concerning these shift/reduce conflicts.
7912 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7914 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7915 (registers_powerpc_nofp): New register set for processors
7916 without floating point unit.
7918 2002-04-18 David S. Miller <davem@redhat.com>
7920 * MAINTAINERS: Add myself to write-after-approval.
7922 2002-04-17 Michael Snyder <msnyder@redhat.com>
7924 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7926 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7928 * rs6000-tdep.c (frame_initial_stack_address): Use
7929 frame_register_read to read the alloca_reg.
7931 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7933 * frame.c (find_saved_register): Find saved registers in the next
7937 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7939 * gdbarch.sh (LANG): Set to ``c''.
7941 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7943 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7945 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7947 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7950 * hpread.c (hpread_get_lntt): Add declaration.
7951 Also fix PR gdb/391.
7953 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7955 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7956 * aclocal.m4, configure: Re-generate.
7959 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7961 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7962 instead of tm_print_insn.
7964 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7966 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7968 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7970 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7971 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7972 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7974 2002-04-12 Don Howard <dhoward@redhat.com>
7976 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7977 max_user_call_depth.
7978 (init_cmd_lists): Initialize the new value;
7979 * cli/cli-script.c (execute_user_command): Limit the call depth of
7980 user defined commands. This avoids a core-dump when user commands
7981 are infinitly recursive.
7983 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7985 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7986 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7987 from tdep struct instead of DEFAULT_LR_SAVE.
7988 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7989 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7990 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7992 2002-04-12 Michael Snyder <msnyder@redhat.com>
7994 * Remote.c: Spelling fix.
7995 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7996 If no symbol found for "sbrk", try "_sbrk".
7997 (make_output_phdrs): Use bfd_section_name.
7998 (gcore_copy_callback): Use bfd_section_name.
7999 * eval.c: Indentation fix-ups.
8000 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8001 in case it gets applied to an address that is already
8002 in the instruction space.
8003 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8004 * symfile.c: Fix indentation, long lines.
8005 * source.c: White space fix-up.
8007 2002-04-12 Andrew Cagney <cagney@redhat.com>
8009 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8010 * frame.c (frame_register_read): New function. Return non-zero on
8012 (read_relative_register_raw_bytes_for_frame): Delete.
8013 (read_relative_register_raw_bytes): Delete.
8014 * frame.h (frame_register_read): Declare.
8015 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8017 * infcmd.c (do_registers_info): Ditto.
8018 * hppa-tdep.c: Ditto.
8019 * rs6000-tdep.c: Ditto.
8020 * h8500-tdep.c: Ditto.
8021 * mips-tdep.c: Ditto.
8022 * h8300-tdep.c: Ditto.
8023 * z8k-tdep.c: Ditto.
8025 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8027 From Jimi X <jimix@watson.ibm.com>:
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8031 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8033 From Jimi X <jimix@watson.ibm.com>:
8034 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8037 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8039 From Jimi X <jimix@watson.ibm.com>:
8040 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8041 register sets for these processor variants.
8043 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8045 * regformats/reg-ppc.dat: Support FPSCR.
8047 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8049 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8050 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8051 Add fpscr as an invalid/unfetchable register.
8052 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8053 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8054 (fill_fpregset): Add support for register fpscr.
8055 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8056 (fill_gregset): Account for the fact that register ``mq'' might
8058 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8059 (registers_power): Add fpscr to register set at slot 71.
8060 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8061 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8063 2002-04-11 Michael Snyder <msnyder@redhat.com>
8065 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8066 * configure: Regenerate.
8067 * config.in: Regenerate.
8068 * acconfig.h: Add define for _SYSCALL32.
8069 * core-sol2.c: Remove #define _SYSCALL32.
8070 * solib-legacy.c: Remove #define _SYSCALL32.
8072 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8074 * stack.c (select_frame): Cleanup internal error message, do not
8077 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8079 * stack.c (select_frame): Check that selected_frame and the
8080 specified level are as expected.
8081 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8083 * frame.h (struct frame_info): Add field `level'. Update
8085 Work-in-progress PR gdb/464.
8087 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8089 * maint.c (maint_print_section_info): Rename print_section_info.
8090 (print_bfd_section_info, print_objfile_section_info): Update.
8091 * inferior.h (struct gdbarch): Add opaque declaration.
8092 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8093 * gdbarch.h: Regenerate.
8095 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8097 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8098 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8099 (kernel_u_size): Added.
8100 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8101 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8103 2002-04-04 Jim Ingham <jingham@apple.com>
8105 * valarith.c (find_size_for_pointer_math): New function, either returns
8106 the size for a pointer's target, returns 1 for void *, or errors for
8108 (value_add, value_sub): use find_size_for_pointer_math.
8110 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8112 * linux-low.c (linux_look_up_symbols): New hook.
8113 (linux_target_ops): Add linux_look_up_symbols.
8114 * remote-utils.c (decode_address): New function.
8115 (look_up_one_symbol): New function.
8116 * server.c (handle_query): Call target look_up_symbols hook.
8117 * server.h (look_up_one_symbol): Add prototype.
8118 * target.h (struct target_ops): Add look_up_symbols hook.
8120 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8122 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8123 override FP_REGNUM with frame->fp. Update copyright.
8124 * parse.c (num_std_regs, std_regs): Delete.
8125 (target_map_name_to_register): Do not search std_regs. Update
8126 function description.
8127 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8128 declarations. Update copyright.
8131 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8133 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8134 after the last symbol in a block.
8136 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8138 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8139 is non zero as a found symbol.
8141 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8143 * findvar.c: Include "builtin-regs.h".
8144 (value_of_register): Call value_of_builtin_reg when applicable.
8145 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8146 (target_map_name_to_register): Call
8147 builtin_reg_map_name_to_regnum.
8148 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8149 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8150 (builtin_regs_h): Define.
8151 (builtin-regs.o): New target.
8152 (findvar.o): Add $(builtin_regs_h).
8153 * builtin-regs.c, builtin-regs.h: New files.
8154 * std-regs.c: New file.
8155 Partial fix for PR gdb/251.
8157 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8159 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8160 it's no longer required.
8162 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8164 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8166 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8168 From Jimi X <jimix@watson.ibm.com>:
8169 * rs6000-tdep.c (rs6000_software_single_step): Use
8170 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8171 and size. Use target_insert_breakpoint() and
8172 target_remove_breakpoint() to insert and remove breakpoints
8173 instead of explicit memory reads and writes.
8175 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8177 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8178 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8179 ELF_OBJECT_FORMAT ifdef.
8181 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8183 From Jimi X <jimix@watson.ibm.com>:
8184 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8186 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8188 From Jimi X <jimix@watson.ibm.com>:
8189 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8190 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8192 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8194 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8195 s/asprintf/xasprintf/.
8196 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8198 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8200 I believe Jeff Law denies responsability for this one:
8201 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8202 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8203 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8204 Work-around for PR gdb/366.
8206 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8208 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8209 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8210 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8212 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8214 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8215 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8218 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8220 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8223 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8225 * README (Reporting Bugs in GDB): Document the bug web page as the
8226 prefered way of submitting bugs.
8229 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8231 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8233 * gdbarch.h, gdbarch.c: Re-generate.
8235 2002-04-07 Andreas Schwab <schwab@suse.de>
8237 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8238 buffer to regcache_collect.
8240 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8242 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8243 * gdbarch.c, gdbarch.h: Re-generate.
8245 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8247 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8248 declaration. Fix -Werror.
8250 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8252 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8253 * gdbarch.c: Regenerate.
8255 2002-04-05 Michael Snyder <msnyder@redhat.com>
8257 * breakpoint.c (clear_command): Rewrite middle section to
8258 combine two loops with identical control conditions.
8259 Add a cleanup to eliminate a memory leak.
8260 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8262 2002-04-05 H.J. Lu (hjl@gnu.org)
8264 * solib-svr4.c (bkpt_names): Add "__start".
8266 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8268 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8269 as test for 64 bit target.
8271 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8273 * h8500-tdep.c (h8500_write_fp): Delete function.
8274 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8275 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8276 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8278 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8279 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8281 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8282 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8283 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8284 (d10v_write_fp): Delete function.
8285 * inferior.h (write_fp, generic_target_write_fp): Delete
8287 * regcache.c (generic_target_write_fp): Delete function.
8288 (write_fp): Delete function.
8289 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8290 * gdbarch.h, gdbarch.c: Regenerate.
8291 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8292 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8293 (sparc64_write_fp): Delete declaration.
8294 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8295 (h8500_write_fp): Delete declaration.
8297 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8299 * sparc-tdep.c (sparc64_write_fp): Delete.
8300 (sparc_push_dummy_frame): Replace write_fp call with code to store
8302 (sparc_gdbarch_init): Do not initialize write_fp.
8304 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8306 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8309 2002-03-29 Jim Blandy <jimb@redhat.com>
8311 * stack.c (get_selected_block): Add new argument `addr_in_block',
8312 used to return the exact code address we used to select the block,
8314 * blockframe.c (get_frame_block, get_current_block): Same.
8315 * frame.h (get_frame_block, get_current_block,
8316 get_selected_block): Update declarations.
8317 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8318 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8320 2002-04-05 Michael Snyder <msnyder@redhat.com>
8322 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8325 2002-04-05 J. Brobecker <brobecker@gnat.com>
8327 * utils.c (xfullpath): New function.
8328 * defs.h (xfullpath): Add declaration.
8329 * source.c (openp): Use xfullpath in place of gdb_realpath to
8330 avoid resolving the basename part of filenames when the
8331 associated file is a symbolic link. This fixes a potential
8332 inconsistency between the filenames known to GDB and the
8333 filenames it prints in the annotations.
8334 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8335 to be able to match a filename with either the real filename, or
8336 the name of any symbolic link to this file.
8337 (lookup_partial_symtab): Ditto.
8339 2002-04-04 Michael Snyder <msnyder@redhat.com>
8341 * breakpoint.c: Add support for hardware breakpoints in overlays.
8342 (overlay_events_enabled): New state variable.
8343 (insert_breakpoints): Use overlay_events_enabled to decide
8344 whether to attempt to set a breakpoint at the overlay load addr.
8345 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8346 (remove_breakpoint): Use overlay_events_enabled to decide
8347 whether breakpoints need to be removed from overlay load addr.
8348 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8349 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8350 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8351 disable_overlay_breakpoints): Update overlay_events_enabled.
8353 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8355 * dwarf2read.c (struct function_range): New.
8356 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8357 (check_cu_functions): New.
8358 (read_file_scope): Initialize global function lists.
8359 Call dwarf_decode_line after processing children.
8360 (read_func_scope): Add to global function list.
8361 (dwarf_decode_lines): Call check_cu_functions everywhere
8362 record_line is called. Call record_line with a linenumber
8363 of 0 to mark sequence ends.
8365 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8367 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8368 change sync with glibc.
8370 2002-04-03 Jim Blandy <jimb@redhat.com>
8372 * configure.in: Call AC_C_INLINE.
8373 * configure: Regenerated.
8375 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8377 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8378 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8380 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8382 * NEWS: Mention gcore support on FreeBSD/i386.
8384 * fbsd-proc.c: New file.
8385 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8386 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8388 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8391 2002-03-29 Jim Blandy <jimb@redhat.com>
8393 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8394 unescaped newlines in string literals, but newer ones don't. So
8397 2002-03-26 Michael Snyder <msnyder@redhat.com>
8398 Andrew Cagney <cagney@redhat.com>
8400 * cli/cli-dump.c: New file. Dump memory to file,
8401 restore file to memory.
8402 * cli/cli-dump.h: New file.
8403 * Makefile.in: Add rules, dependencies for cli-dump.o.
8404 * NEWS: Mention new commands.
8406 2002-03-28 Michael Snyder <msnyder@redhat.com>
8408 * symfile.c (symbol_file_add): Move test for null symbols to later.
8410 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8412 From veksler at il.ibm.com:
8413 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8414 the xstrduped original path.
8417 2002-03-27 Michael Snyder <msnyder@redhat.com>
8419 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8420 * infcmd.c (_initialize_infcmd): Ditto.
8421 * language.c (_initialize_language): Ditto.
8422 * symfile.c (_initialize_symfile): Ditto.
8423 * top.c (_init_main): Ditto.
8424 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8426 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8428 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8429 vector registers handling.
8430 (skip_prologue): Handle new AltiVec instructions. Fill in new
8431 fields of frame data.
8432 (frame_get_saved_regs): Fill in information for AltiVec registers.
8434 2002-03-27 Jim Blandy <jimb@redhat.com>
8436 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8437 a function; leave this macro here to invoke that function.
8438 (symbol_init_mangled_name): Declaration for that function.
8439 * symtab.c (symbol_init_mangled_name): New function.
8441 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8443 * valarith.c: Replace strerror with safe_strerror.
8444 * tracepoint.c: Ditto.
8446 * go32-nat.c: Ditto.
8450 2002-03-27 Andreas Schwab <schwab@suse.de>
8452 * event-top.c (command_line_handler): Remove useless if.
8454 2002-03-27 Andreas Jaeger <aj@suse.de>
8456 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8459 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8461 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8462 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8463 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8464 (x86_64_linux_dr_get_status, supply_gregset),
8465 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8466 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8467 (x86_64_register_info_table): Add.
8468 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8469 (x86_64_register_raw_size, x86_64_register_virtual_type),
8470 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8471 general x86_64_register_info_table.
8472 (i386_gdbarch_init): gdbarch_register_bytes is now set
8473 dynamicaly during initialization.
8474 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8475 * gdbserver/linux-x86-64-low.c: Ditto.
8477 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8479 * gdbserver/server.c (main): Call target_signal_to_host_p
8480 and target_signal_to_host on signals received from the remote.
8481 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8482 target_signal_from_host on signals sent to the remote.
8483 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8484 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8486 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8488 * signals/signals.c: Include "server.h" in gdbserver build.
8489 (target_signal_from_name): Don't use STREQ.
8490 (_initialize_signals): Likewise. Don't include function in
8493 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8495 * signals.c: Moved to...
8496 * signals/signals.c: Here.
8497 * Makefile (signals.o): Update.
8499 2002-03-26 Jeff Law (law@redhat.com)
8501 * somread.c (som_symtab_read): Remove some commented out code and
8502 updated related comments. Do not set the minimal symbol table to
8503 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8504 in a dynamic executable.
8505 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8506 where we are unable to find the minimal symbol for the given
8509 2002-03-25 Jeff Law (law@redhat.com)
8511 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8513 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8515 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8517 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8519 * command.h: Update copyright.
8520 (struct cmd_list_element): Replace definition with opaque
8522 (enum cmd_types): Document that it will eventually be moved to
8524 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8525 (MALLOCED_REPLACEMENT): Delete macro.
8526 * Makefile.in (cli_decode_h): Add $(command_h).
8527 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8528 * top.c: Include "cli/cli-decode.h".
8529 * completer.c: Include "cli/cli-decode.h".
8530 * maint.c: Include "cli/cli-decode.h".
8531 * cli/cli-decode.h: Include "command.h".
8532 (enum command_class): Delete.
8533 (enum cmd_types): Comment out.
8534 (enum cmd_auto_boolean): Delete.
8535 (enum var_types): Delete.
8537 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8539 * cli/cli-decode.c: Include "gdb_assert.h".
8540 (add_set_or_show_cmd): New static function.
8541 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8542 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8543 all fields, such as func, from the set command.
8545 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8547 * MAINTAINERS (sh-elf): Change warning flag to -w.
8549 2002-03-23 Andrew Cagney <cagney@redhat.com>
8551 * defs.h (error): Add printf format attribute.
8552 * thread-db.c (thread_from_lwp): Fix error format string.
8553 * stack.c (parse_frame_specification): Ditto.
8554 * cli/cli-decode.c (undef_cmd_error): Ditto.
8555 * scm-lang.c (scm_lookup_name): Ditto.
8556 * tracepoint.c (trace_error): Ditto.
8557 * remote-utils.c (usage): Ditto.
8558 * remote.c (compare_sections_command): Ditto.
8561 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8563 * gdbtypes.c (append_composite_type_field): New function.
8564 (init_composite_type): New function.
8565 * gdbtypes.h (append_composite_type_field): Declare.
8566 (init_composite_type): Ditto.
8568 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8570 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8572 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8574 structure returning convention for SYSV ABI case, but not
8575 for GNU/Linux, FreeBSD, or NetBSD.
8577 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8579 * symtab.h (lookup_block_symbol): Add mangled_name argument
8582 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8583 with new mangled_name argument.
8584 * linespec.c (decode_line_1): Likewise.
8585 * valops (value_of_this): Likewise.
8586 * symtab.c (lookup_transparent_type): Likewise.
8587 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8588 (lookup_symbol): If we are given a mangled name, pass it down
8589 to lookup_symbol_aux.
8590 (lookup_block_symbol): If we are given a mangled name to check
8591 against, only return symbols which match it.
8593 2002-03-22 Christopher Faylor <cgf@redhat.com>
8595 * win32-nat.c (child_create_inferior): Check for proper shell to use
8596 here, in case the user changes it on the fly.
8597 (_initialize_inftarg): Remove shell path considerations.
8599 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8602 for gdbarch_max_register_raw_size and max_register_virtual_size.
8603 Adjust copyright year.
8605 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8607 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8608 in a function to cover the entire beginning of the function
8609 as well if it does not already.
8611 2002-03-21 Tom Rix <trix@redhat.com>
8613 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8614 (rs6000_ptrace64): Renamed from ptrace64.
8616 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8618 * gdbserver/remote-utils.c (remote_open): Don't call
8619 getprotobyname, we're all using TCP here so just use
8621 * gdbserver/gdbreplay.c (remote_open): Ditto.
8623 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8625 * regcache.c (_initialize_regcache): No need to call
8626 build_regcache() at this time; it gets called whenever
8627 the gdbarch changes.
8629 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8631 * sparc-nat.c: Include sys/param.h where possible.
8633 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8636 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8637 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8638 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8640 * stabsread.c (rs6000_builtin_type): Likewise.
8641 (read_sun_floating_type): Likewise.
8643 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8645 * stabsread.c (read_member_functions): Remove skip code for duplicate
8646 constructor/destructor methods. Use standard parsing for these
8647 methods and just do not chain them to the list of methods after
8650 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8652 * coffread.c: Remove redundant static declarations. Replace
8653 occurrences of `PTR' with `void *'.
8654 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8655 * top.h (quit_cover): Likewise.
8656 * defs.h (catch_errors): Likewise.
8658 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8660 * defs.h (XMALLOC): Define.
8661 * gdb-events.sh (XMALLOC): Delete macro.
8662 * gdb-events.c, gdb-events.h: Regenerate.
8663 * gdbarch.sh (XMALLOC): Delete macro.
8664 * gdbarch.c: Regenerate.
8665 * serial.c (XMALLOC): Delete macro.
8666 * ui-file.c (XMALLOC): Ditto.
8667 * ser-unix.h (XMALLOC): Ditto.
8668 * sh-tdep.c (XMALLOC): Ditto.
8669 * ui-out.c (XMALLOC): Ditto.
8670 * utils.c (XMALLOC): Ditto.
8671 * i386-tdep.c (XMALLOC): Ditto.
8672 * gdb-events.c (XMALLOC): Ditto.
8673 * d10v-tdep.c (XMALLOC): Ditto.
8674 * cli-out.c (XMALLOC): Ditto.
8676 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8677 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8678 * ui-file.c, ui-out.c: Ditto.
8680 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8682 * command.h (struct cmd_list_element): Add field context.
8683 (set_cmd_context, get_cmd_context): Declare.
8684 * cli/cli-decode.h: Ditto.
8685 * cli/cli-decode.c (get_cmd_context): New function.
8686 (set_cmd_context): New function.
8687 (add_cmd): Initialize context.
8688 Part of fixing PR gdb/145 and PR gdb/146.
8690 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8692 * cli/cli-decode.c (cmd_type): New function.
8693 * command.h (cmd_type): Declare.
8694 * infrun.c (set_schedlock_func): Call function cmd_type.
8695 * kod.c (kod_set_os): Call cmd_type.
8696 * cris-tdep.c (cris_version_update): Use function cmd_type.
8697 (cris_mode_update, cris_abi_update): Ditto.
8699 * command.h: (execute_cmd_post_hook): Declare.
8700 (execute_cmd_pre_hook): Declare.
8701 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8702 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8703 functions. Execute pre/post hook while ensuring that afterwords
8705 * top.c (execute_command): Use execute_cmd_post_hook, and
8706 execute_cmd_pre_hook to execute pre/post commands.
8707 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8709 (hook_stop_stub): Call execute_cmd_pre_hook.
8711 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8713 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8714 set'' and this leads to a core dump. Move xstrdup of
8715 operating_system to after check that it is not NULL.
8717 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8719 * kod.c (kod_set_os): Remove unnecessary check that
8720 ``command->type'' is set_cmd.
8722 * valprint.c (set_input_radix): Use input_radix.
8723 (set_output_radix): Use output_radix.
8724 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8727 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8729 * value.h (struct value): Delete field ``substring_addr''. Change
8730 aligner fields to force_doublest_align, force_longest_align,
8731 force_core_addr_align and force_pointer_aligh.
8733 * value.h (struct value): Fix typo in above change.
8735 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8737 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8738 to fix internal_error from ``maintenance print architecture''.
8740 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8742 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8743 for gcc versions after gcc-2.8.1.
8745 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8747 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8748 for method resolution. Restore adjustment of ``this'' pointer after
8749 calling value_struct_elt, which was accidentally removed during the
8752 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8754 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8756 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8758 * value.h (value_of_register): Update.
8760 2002-03-14 Richard Henderson <rth@redhat.com>
8762 * configure.in: Detect declaration for canonicalize_file_name.
8763 * utils.c (canonicalize_file_name): Declare, if needed.
8764 (gdb_realpath): Prefer realpath if available and usable.
8765 * config.in, configure: Rebuild.
8767 2002-03-14 Richard Henderson <rth@redhat.com>
8769 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8770 a constant array bound.
8772 * MAINTAINERS: Add myself to write-after-approval.
8774 2002-03-14 Michael Snyder <msnyder@redhat.com>
8776 * symfile.c (syms_from_objfile): Return immediately if no syms.
8777 (symbol_file_add): Return immediately if no syms.
8778 (find_sym_fns): Return immediately if no syms.
8780 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8782 * gdbserver/remote-util.c (remote_open): Print remote-side's
8783 IP address when remote debugging over the network.
8785 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8787 * config/sparc/fbsd.mh: Fix copyright.
8788 * config/sparc/fbsd.mt: Likewise.
8790 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8792 * MAINTAINERS: Fix typo in name of gdb warnings option.
8793 (x86-64): Fix formating so that this can be parsed by awk.
8795 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8797 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8798 * defs.h: Include "gdb/signals.h".
8799 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8801 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8803 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8804 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8807 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8808 Don Howard <dhoward@redhat.com>
8810 * mips-tdep.c (ST0_FR): Define.
8811 (mips2_fp_compat): New function, temporarily disabled.
8812 (mips_read_fp_register_single): New function.
8813 (mips_read_fp_register_double): New function.
8814 (mips_print_register): Use them.
8815 (do_fp_register_row): Likewise.
8817 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8819 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8822 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8824 * stabsread.c (read_member_functions): Fix is_stub test for
8825 static member functions, improve comment.
8827 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8829 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8830 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8831 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8832 commands that set boolean values.
8833 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8834 (arm_rdi_resume): Always initialize PC.
8835 (arm_rdi_open): Don't use rslt as a boolean.
8836 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8837 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8838 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8839 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8841 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8843 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8844 * configure: Rebuilt.
8846 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8848 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8849 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8851 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8853 * cli/cli-decode.c (set_cmd_completer): New function.
8854 * command.h (set_cmd_completer): Declare.
8855 * cli/cli-decode.h (set_cmd_completer): Ditto.
8857 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8858 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8859 * win32-nat.c (_initialize_inftarg): Ditto.
8860 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8861 * proc-api.c (_initialize_proc_api): Ditto.
8862 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8863 * source.c (_initialize_source): Ditto.
8864 * exec.c (_initialize_exec): Ditto.
8865 * solib.c (_initialize_solib): Ditto.
8866 * top.c (init_main): Ditto.
8867 * tracepoint.c (_initialize_tracepoint): Ditto.
8868 * symfile.c (_initialize_symfile): Ditto.
8869 * printcmd.c (_initialize_printcmd): Ditto.
8870 * infcmd.c (_initialize_infcmd): Ditto.
8871 * corefile.c (_initialize_core): Ditto.
8873 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8875 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8877 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8879 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8881 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8883 * NEWS: Update headings, 5.2 has branched.
8885 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8887 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8888 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8889 (register_addr, REGISTER_RAW_SIZE): Likewise.
8890 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8891 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8893 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8895 * MAINTAINERS (x86-64): Add myself.
8896 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8897 changed value_ptr -> struct value *
8899 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8901 * configure.host (sparc64-*-freebsd): Add.
8902 * configure.tgt: Likewise.
8903 * config/sparc/fbsd.mh: New file.
8904 * config/sparc/fbsd.mt: Likewise.
8905 * config/sparc/nm-fbsd.h: Likewise.
8906 * config/sparc/tm-fbsd.h: Likewise.
8908 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8910 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8911 regformats/reg-s390x.dat.
8913 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8915 * utils.c: Add FIXME explaining true/false problem.
8917 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8919 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8921 2002-02-28 Michael Chastain <mec@shout.net>
8923 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8925 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8927 * gdbserver/linux-s390-low.c: New file.
8928 * regformats/reg-s390.dat: New file.
8929 * regformats/reg-s390x.dat: New file.
8930 * gdbserver/configure.srv: Add S/390.
8931 * gdbserver/Makefile.in: Add S/390.
8932 * configure.tgt: Enable gdbserver for S/390.
8934 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8936 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8937 first line of the doc string for "info dos", except at the end of
8938 the sentence, since the short help stops at the first period.
8940 2002-02-28 Jason Merrill <jason@redhat.com>
8942 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8944 2002-02-27 Fred Fish <fnf@redhat.com>
8946 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8947 comment (dumy -> dummy).
8949 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8951 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8953 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8955 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8957 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8959 * gdbserver/acconfig.h: New file.
8960 * gdbserver/i387-fp.c: New file.
8961 * gdbserver/i387-fp.h: New file.
8962 * gdbserver/linux-x86-64.c: New file.
8963 * regformats/reg-x86-64.dat: New file.
8964 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8965 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8966 * gdbserver/configure.in: Add support for regsets.
8967 * gdbserver/config.in: Regenerate.
8968 * gdbserver/configure: Regenerate.
8969 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8970 * gdbserver/linux-low.h: New file.
8971 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8973 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8974 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8975 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8976 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8977 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8978 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8979 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8980 "i387-fp.h". Add PTRACE_GETREGS and friends.
8981 * gdbserver/regcache.c (supply_register): New function.
8982 (supply_register_by_name): New function.
8983 (collect_register): New function.
8984 (collect_register_by_name): New function.
8986 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8988 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8989 (config.status): Add configure.srv dependency.
8990 (server_h): Add config.h dependency.
8992 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8994 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8995 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8996 * gdbserver/configure.srv: Change i386-*-linux* to use
8999 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9001 * x86-64-tdep.c: Re-indent. Update copyright date.
9003 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9005 From Michal Ludvig <mludvig@suse.cz>:
9006 * x86-64-tdep.c (value.h): Delete.
9007 (gdb_assert.h): Include.
9008 (x86_64_register_convert_to_virtual,
9009 x86_64_register_convert_to_raw ): Add check which lets only
9010 floating-point values to be converted.
9011 (value_push): Delete.
9012 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9013 (i386_gdbarch_init): Number of register_bytes fixed.
9015 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9017 * MAINTAINERS: Add x86-64 target.
9019 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9021 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9022 * osfsolib.c (solib_map_sections): Ditto.
9023 * irix5-nat.c (solib_map_sections): Ditto.
9024 * corelow.c (gdb_check_format): Ditto.
9025 * symfile.c (symfile_bfd_open): Ditto.
9026 * solib.c (solib_map_sections): Ditto.
9029 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9031 * remote.c (_initialize_remote): By default, disable ``e'' and
9032 ``E'' step out-of-range packets.
9034 2002-02-26 Andreas Schwab <schwab@suse.de>
9036 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9037 m68k_linux_frame_saved_pc.
9038 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9040 (SIGCONTEXT_PC_OFFSET): Remove.
9041 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9042 m68k_linux_sigtramp_saved_pc): New functions.
9043 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9044 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9045 (UCONTEXT_PC_OFFSET): Define.
9046 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9047 non-RT and RT signal trampolines.
9049 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9051 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9052 (TARGET_NBPG, STACK_END_ADDR): Delete
9053 (VARIABLES_INSIDE_BLOCK): Delete.
9055 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9057 * utils.c (perror_with_name): Make string parameter constant.
9058 (print_sys_errmsg): Ditto.
9060 * defs.h (perror_with_name): Update.
9061 (print_sys_errmsg): Update.
9064 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9066 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9067 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9069 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9071 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9072 if it already matches the current architecture from the exec file.
9073 Include arch-utils.h for gdbarch_info_init prototype.
9074 * Makefile.in (rs6000-nat.o): Update dependencies.
9076 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9078 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9079 list of exported variables.
9081 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9083 * gdbserver/configure.srv: New file.
9084 * gdbserver/configure.in: Use configure.srv instead
9085 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9087 * gdbserver/configure: Regenerated.
9088 * gdbserver/terminal.h: New file.
9089 * gdbserver/Makefile.in: Update for configure changes. Remove
9090 more unneeded include paths.
9092 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9094 From wiz at danbala:
9095 * config/sparc/tm-sp64.h: Fix grammar and typos.
9098 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9100 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9101 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9102 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9103 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9104 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9105 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9106 * s390-tdep.c: Ditto.
9107 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9108 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9109 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9110 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9111 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9112 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9113 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9114 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9115 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9116 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9119 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9121 * lin-thread.c: Delete file.
9122 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9123 to gdb_proc_service.h.
9124 * configure: Re-generate.
9126 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9127 * serial.c (serial_open): Delete check for "ocd".
9130 * Makefile.in (linux-thread.o): Delete target.
9131 * linux-thread.c: Delete file.
9133 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9134 renamed SH files to be consistent.
9136 * symtab.c (sort_search_symbols): Use xfree.
9138 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9140 * arm-linux-tdep.c (arm_linux_init_abi): Register
9141 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9142 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9143 definition with undef, since we don't want the sysvr4 definition.
9144 (SKIP_TRAMPOLINE_CODE): Likewise.
9146 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9148 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9150 * configure.in: (AC_CHECK_FUNCS) Added test for
9151 canonicalize_file_name Regenerated.
9152 * config.in, configure: Regenerated.
9153 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9154 defined use canonicalize_file_name.
9156 2002-02-23 Michael Chastain <mec@shout.net>
9158 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9160 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9162 * README: Remove references to cygnus.com.
9163 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9164 dot com'' form. Remove references to cygnus.com and sourceware.
9166 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9168 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9169 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9170 1003.1-2001 no longer allows "head -1".
9171 * gdb/Makefile.in (version.c): Likewise.
9172 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9173 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9174 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9176 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9178 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9179 * command.h (cmd_cfunc_eq): Declare.
9180 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9182 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9183 ``struct cmd_list_element *''.
9184 * cli/cli-cmds.c (is_complete_command): Update. Use
9186 * top.c (execute_command): Pass the command to
9187 is_complete_command.
9188 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9190 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9192 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9193 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9194 architecture defines.
9195 * s390-tdep.c (s390_gdbarch_init): Likewise.
9197 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9199 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9200 (arm_linux_push_arguments): Likewise.
9201 (arm_linux_init_abi): Register them. Also register linux-specific
9203 (find_minsym_and_objfile): Use strcmp, not STREQ.
9204 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9205 (arm_linux_call_dummy_words): Delete declaration.
9206 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9207 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9209 (LOWEST_PC): Delete.
9211 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9213 * maint.c (print_section_info): Do not prepend `0x' to filepos
9214 output, it will be handled by local_hex_string_custom.
9216 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9218 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9219 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9220 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9222 2002-02-22 Jim Blandy <jimb@redhat.com>
9224 Indicate that the bcache functions don't change the strings
9226 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9227 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9229 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9231 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9233 2002-02-21 Christopher Faylor <cgf@redhat.com>
9235 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9236 find the complete path to a loaded DLL.
9238 2002-02-21 Fred Fish <fnf@redhat.com>
9240 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9241 that marks the end of the range of a function, enter a line number
9242 entry that has a line number of zero and a PC offset that matches
9243 the end of the function. This starts a range of PC's for which no
9244 line number information is known.
9245 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9246 PC's for which no line number info is found (line number is zero)
9247 then we didn't find any valid line information.
9248 * symtab.h: Document use of zero line number entry.
9250 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9252 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9253 (have_ptrace_getvrregs): Define for run time checks.
9254 (gdb_vrregset_t): New type for Altivec register handling.
9255 (fetch_register, store_register): Fetch/store altivec register
9257 (fetch_altivec_register, store_altivec_register): New functions.
9258 (supply_vrregset, fill_vrregset): New functions.
9259 (fetch_altivec_registers, store_altivec_registers): New functions.
9260 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9263 2002-02-21 Jiri Smid <smid@suse.cz>
9265 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9267 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9269 * Makefile.in (armnbsd-nat.o): Update dependencies.
9270 * armnbsd-nat.c (supply_gregset): New function. Common code to
9271 supply the integer register set.
9272 (supply_fparegset): New function. Similar for FPA registers.
9273 (fetch_regs, fetch_fp_regs): Use them.
9274 (fetch_core_registers): Likewise.
9275 (fetch_elfcore_registers): New function.
9276 (arm_netbsd_elfcore_fns): New core-file type specification.
9277 (_initialize_arm_netbsd_nat): Register it.
9279 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9281 * armnbsd-nat.c: Include gdbcore.h.
9282 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9283 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9284 'void' to declaration, to shut up ARI.
9285 (fetch_core_registers): Make static. Rewrite using supply_register.
9286 (arm_netbsd_core_fns): New core-file type specification.
9287 (_initialize_arm_netbsd_nat): New function.
9289 2002-02-21 Christopher Faylor <cgf@redhat.com>
9291 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9294 2002-02-20 Christopher Faylor <cgf@redhat.com>
9296 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9299 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9301 * jv-exp.y (parse_number): Change type of implicit longs
9302 to builtin_type_uint64.
9304 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9306 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9307 to be an integer instead of a `union wait'.
9309 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9311 * mips-linux-nat.c: Call the operating system GNU/Linux.
9312 * mips-linux-tdep.c: Likewise.
9313 * mips-tdep.c: Likewise.
9315 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9318 * jv-exp.y (parse_number): Handle 64-bit integers.
9320 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9322 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9323 AC_STDC_HEADERS to AC_HEADER_STDC.
9324 * gdbserver/configure: Regenerated.
9326 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9328 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9330 * sparc-tdep.c (get_longjmp_target): Likewise.
9332 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9334 * News: Add news about ARM and Multi-arch. Mention the new target
9337 2002-02-19 Jim Blandy <jimb@redhat.com>
9339 * stabsread.c (error_type_complaint): Improve error message.
9341 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9343 * gdbserver/README: Update documentation.
9344 * gdbserver/configure.in: Update configury to match documentation.
9345 * gdbserver/Makefile.in: Likewise.
9346 * gdbserver/configure: Regenerated.
9347 * gdbserver/aclocal.m4: New file, generated by aclocal.
9348 * gdbserver/config.in: New file, generated by autoheader.
9350 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9352 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9355 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9357 * arm-tdep.h (enum arm_float_model): New enum.
9358 (struct gdbarch_tdep): Add fp_model.
9359 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9360 up floating-point conversions until we know the floating-point model
9361 in use by the inferior. Don't complain about being unable to
9362 determine the ABI of the inferior when we don't have one.
9363 (arm_extract_return_value): Support different floating-point models.
9364 (arm_store_return_value): Likewise.
9365 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9367 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9369 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9371 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9372 of ``current_gdbarch''.
9374 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9376 * armnbsd-nat.c : ANSIfy all function declarations.
9377 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9378 (fetch_inferior_registers): Re-implement in terms of above.
9379 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9380 (store_inferior_registers): Re-implement in terms of above.
9382 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9384 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9386 * arm-linux-tdep.c: Likewise.
9387 * config/arm/tm-linux.h: Likewise.
9389 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9391 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9392 * config/arm/nbsd.mt (TM_FILE): Delete.
9393 * config/arm/tm-nbsd.h: Delete.
9395 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9397 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9398 Initialize CALL_DUMMY_LENGTH.
9400 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9402 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9404 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9405 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9406 defines one thing and that is incorrect for this port.
9407 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9409 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9411 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9413 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9415 * win32-nat.c (display_selector): New function. Displays information
9416 about the information returned by GetThreadSelectorEntry API function.
9417 (display_selectors): New function. Displays the infomation of
9418 the selector given as argument, or of CS, DS ans FS selectors
9419 if no argument is given.
9420 ( _initialize_inftarg): Add "w32" as info prefix command.
9421 Add "info w32 selector" as command calling display_selectors.
9423 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9425 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9426 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9429 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9431 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9433 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9435 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9436 (arm_fix_call_dummy): Call it.
9437 (arm_call_dummy_breakpoint_offset): Delete.
9438 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9439 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9441 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9443 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9444 Default to func_frame_chain_valid.
9445 * gdbarch.h, gdbarch.c: Re-generate.
9446 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9448 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9450 * ppc-linux-nat.c: Update copyright.
9451 (fetch_register, store_register): Add tid parameter, don't compute
9453 (fetch_ppc_registers, store_ppc_registers): Add tid
9454 parameter. Pass it along to callees.
9455 (fetch_inferior_registers, store_inferior_registers): Compute tid
9456 here, and pass it to calleed functions.
9457 (fill_gregset, supply_fpregset): Clean up formatting.
9459 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9461 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9462 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9464 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9466 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9467 * gdbarch.c gdbarch.h: Regenerate.
9468 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9470 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9471 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9472 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9474 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9475 * arm-tdep.c (arm_get_longjmp_target): New function.
9476 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9477 this to a positive value register arm_get_longjmp_target as the
9479 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9480 (arm_linux_init_abi): Set up longjmp description in tdep.
9481 * armnbsd-nat.c (get_longjmp_target): Delete.
9482 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9483 description in tdep.
9484 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9485 (get_longjmp_target): Delete declaration.
9486 (GET_LONGJMP_TARGET): Delete.
9487 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9488 (GET_LONGJMP_TARGET): Delete.
9490 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9492 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9493 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9494 of ``current_gdbarch''.
9496 2002-02-17 Tom Tromey <tromey@redhat.com>
9498 * cli/cli-cmds.c (compare_strings): New function.
9499 (complete_command): Only print each unique item once.
9500 * completer.h (complete_line): Declare.
9501 * completer.c (complete_line): New function.
9502 (line_completion_function): Use it.
9504 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9506 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9507 * gdbarch.h, gdbarch.c: Re-generate.
9509 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9511 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9513 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9515 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9516 * valops.c (value_arg_coerce): Don't take the address of a reference
9517 to convert an argument to a reference.
9519 2002-02-15 Christopher Faylor <cgf@redhat.com>
9521 * win32-nat.c (get_image_name): New function.
9522 (handle_load_dll): Use get_image_name function.
9523 (get_child_debug_event): Avoid registering debug events until possibly
9524 execed process is started.
9525 (child_create_inferior): Allow invocation via shell so that command
9526 line redirection, etc. works ok.
9527 (_initialize_inftarg): Add new command: "set shell" to control whether
9528 a shell is used to start a process.
9530 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9532 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9533 instead of find_register_by_number.
9534 (cannot_store_register): Likewise.
9536 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9538 * dwarf2read.c: Replace fprintf (stderr, ...) by
9539 fprintf_unfiltered (gdb_stderr, ...).
9541 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9543 * gdbserver/gdbserver.1: Document --attach.
9545 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9547 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9549 * arm-tdep.c (arm_default_arm_le_breakpoint)
9550 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9551 (arm_default_thumb_be_breakpoint): New. Initialize them from
9552 traditional breakpoint defines.
9553 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9554 (arm_gdbarch_init): Initialize new breakpoint variables.
9555 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9556 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9557 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9558 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9560 (arm_netbsd_init_abi_common): ... here; new function.
9561 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9562 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9563 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9564 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9566 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9568 * arm-tdep.h (enum arm_abi): New enum.
9569 (struct gdbarch_tdep): New structure.
9570 (LOWEST_PC): Provide a default.
9571 (arm_gdbarch_register_os_abi): Declare new function.
9572 * arm-tdep.c (arm_abi_names): New array.
9573 (process_note_abi_tag_sections): New function.
9574 (get_elfosabi): New function.
9575 (arm_gdbarch_register_os_abi): New function.
9576 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9577 support for that ABI has been built in, then call the appropriate
9578 configuration routine. Use gdbarch_num_regs() to get the number
9580 (arm_dump_tdep): New function.
9581 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9582 place-holder functions.
9583 (_initialize_arm_tdep): Register them.
9584 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9586 * armnbsd-tdep.c: New file.
9587 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9588 * config/arm/nbsd.mt (TDEPFILES): Add it.
9589 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9591 * armnbsd-nat.c: Include regcache.h.
9592 * Makefile.in (armnbsd-nat.o): Update dependency list.
9594 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9596 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9598 * gdbserver/Makefile.in: Fix typos in target rules.
9600 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9602 Fix part of PR gdb/267.
9603 * linespec.c (find_methods): Handle constructors specially for now.
9605 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9607 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9609 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9610 standard_coerce_float_to_double().
9612 2002-02-14 Christopher Faylor <cgf@redhat.com>
9614 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9617 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9619 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9620 find_variant_by_name, because it confuses the multiarch
9621 framework. Return NULL if there isn't an architecture with the
9622 user supplied name, instead of forcing a different one without
9623 recording the change with the multiarch machinery.
9624 (find_variant_by_name): Delete.
9626 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9628 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9629 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9631 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9633 * stack.c (print_frame_info_base): When calling
9634 print_frame_info_listing_hook, set current_source_symtab.
9636 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9638 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9639 and remove unused $(INCLUDE_DIR).
9640 Add regcache.c to OBS.
9641 Add generated register protocol files to clean target.
9642 Update dependencies for new objects, obsolete old target code.
9644 * gdbserver/linux-low.c: Remove all platform-specific code to
9645 new files. Remove various dead code. Update to use regcache
9647 * gdbserver/remote-utils.c (fromhex): Add return statement
9649 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9651 (input_interrupt): Add integer parameter to match prototype
9652 of a signal handler.
9653 (outreg): Use register_data ().
9654 (prepare_resume_reply): Use gdbserver_expedite_regs.
9655 * gdbserver/server.c (main): Dynamically allocate own_buf because
9656 PBUFSIZ is no longer constant. Use registers_to_string () and
9657 registers_from_string ().
9658 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9659 for error (), fatal (), and warning (). Update definition of
9660 PBUFSIZ to use regcache functionality. Add include guard.
9661 * gdbserver/utils.c (fatal): Add missing ``const''.
9662 (warning): New function.
9664 * regformats/regdat.sh: Include "regcache.h" in generated files.
9665 Provide init_registers () function.
9666 * regformats/regdef.h: Add prototype for set_register_cache ().
9669 * gdbserver/linux-arm-low.c: New file.
9670 * gdbserver/linux-i386-low.c: New file.
9671 * gdbserver/linux-ia64-low.c: New file.
9672 * gdbserver/linux-m68k-low.c: New file.
9673 * gdbserver/linux-mips-low.c: New file.
9674 * gdbserver/linux-ppc-low.c: New file.
9675 * gdbserver/linux-sh-low.c: New file.
9677 * gdbserver/regcache.c: New file.
9678 * gdbserver/regcache.h: New file.
9680 * gdbserver/low-linux.c: Removed obsolete file.
9682 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9684 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9685 * config/i386/linux.mt: Likewise.
9686 * config/ia64/linux.mt: Likewise.
9687 * config/m68k/linux.mh: Likewise.
9688 * config/powerpc/linux.mh: Likewise.
9689 * config/mips/linux.mt: Likewise.
9691 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9693 * config/i386/i386lynx.mh: Mark gdbserver variables
9694 as (currently) obsolete for this target.
9695 * config/i386/nbsd.mt: Likewise.
9696 * config/i386/nbsdelf.mt: Likewise.
9697 * config/m32r/m32r.mt: Likewise.
9698 * config/m68k/m68klynx.mh: Likewise.
9699 * config/m68k/nbsd.mt: Likewise.
9700 * config/m68k/sun3os4.mh: Likewise.
9701 * config/mips/vr5000.mt: Likewise.
9702 * config/ns32k/nbsd.mt: Likewise.
9703 * config/pa/hppabsd.mh: Likewise.
9704 * config/pa/hppaosf.mh: Likewise.
9705 * config/powerpc/nbsd.mt: Likewise.
9706 * config/rs6000/rs6000lynx.mh: Likewise.
9707 * config/s390/s390.mt: Likewise.
9708 * config/s390/s390x.mt: Likewise.
9709 * config/sparc/sparclynx.mh: Likewise.
9710 * config/sparc/sun4os4.mh: Likewise.
9711 * config/i386/x86-64linux.mt: Likewise.
9712 * config/sparc/linux.mh: Likewise.
9714 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9716 * configure.tgt: Configure gdbserver only for known working
9717 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9718 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9719 SUBDIRS if it is configured. Update comment for ${nativefile}.
9720 * configure: Regenerated.
9722 2002-02-13 Michael Snyder <msnyder@redhat.com>
9724 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9726 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9727 (default_gcore_mach): Just return 0, work around a problem in bfd.
9728 (default_gcore_target): OK to return NULL if exec_bfd is null.
9729 (make_mem_sec): Use a cast, avoid a warning.
9731 * procfs.c (find_memory_regions_callback): Use a cast instead of
9732 calling host_pointer_to_address (which complains if
9733 sizeof (host pointer) != sizeof (target pointer)).
9734 (procfs_make_note_section): Avoid overflow in psargs string.
9736 * procfs.c (procfs_make_note_section): Make the default
9737 implementation return an error.
9739 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9741 * procfs.c (procfs_make_note_section): Provide a default definition
9742 (for alpha-dec-osf4.0f). Fix typos.
9744 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9746 * linux-proc.c: Add include of regcache.h.
9747 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9749 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9751 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9752 * memattr.c (create_mem_region): Disallow useless empty region.
9753 Regions are half-open intervals, so allow [A..B) [B..C) as
9756 2002-02-13 Michael Chastain <mec@shout.net>
9758 * defs.h: Kill CONST_PTR.
9759 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9760 * c-lang.c (c_builtin_types): Likewise.
9761 * ch-lang.c (ch_builtin_types): Likewise.
9762 * f-lang.c (f_builtin_types): Likewise.
9763 * language.c (unknown_builtin_types): Likewise.
9764 * m2-lang.c (m2_builtin_types): Likewise.
9765 * p-lang.c (pascal_builtin_types): Likewise.
9766 * scm-lang.c (c_builtin_types): Likewise.
9768 2002-02-13 Keith Seitz <keiths@redhat.com>
9770 * arm-tdep.h (arm_get_next_pc): Add declaration.
9772 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9774 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9775 with other related struct-returning functions.
9776 (arm_extract_struct_value_address): New function.
9777 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9778 initialize float_format, double_format and long_double_format as
9779 appropriate to the endianness of the target.
9780 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9781 (arm_use_struct_convention): Delete declaration.
9782 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9784 2002-02-13 Keith Seitz <keiths@redhat.com>
9786 * defs.h (core_addr_to_string_nz): New function.
9788 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9790 Apply missing bits of 2002-01-15 patch.
9791 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9792 (fill_fpregset): Use i387_fill_fsave.
9794 2002-02-12 Keith Seitz <keiths@redhat.com>
9796 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9797 (core_addr_to_string_nz): New function.
9799 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9801 * arm-linux-nat.c: Really include arm-tdep.h.
9802 * config/arm/tm-linux.h (struct type, struct value): Declare.
9804 2002-02-11 Michael Snyder <msnyder@redhat.com>
9806 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9807 (gcore section): Ifdef for Solaris and Unixware only.
9808 (procfs_do_thread_registers): Unixware needs one lwpstatus
9809 per thread (not one prstatus or pstatus).
9810 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9811 not over all gdb threads. For unixware, call elfcore_write_pstatus
9812 once before iterating over threads.
9814 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9816 * arm-tdep.h: New file.
9817 * arm-tdep.c: Include arm-tdep.h.
9818 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9819 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9820 (arm_print_float_info, arm_register_type, convert_to_extended)
9821 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9822 (arm_extract_return_value, arm_register_name): Make static.
9823 (arm_software_single_step): Similarly. Fix types in declaration.
9824 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9825 (arm_store_return_value, arm_store_struct_return): New functions.
9826 (arm_gdbarch_init): Register the above functions. Also register
9827 call_dummy_start_offset, sizeof_call_dummy_words,
9828 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9829 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9830 max_register_virtual_size, register_size. Set up
9831 prologue_cache.saved_regs here, rather than ...
9832 (_initialize_arm_tdep): ... here.
9833 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9835 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9836 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9837 (arm_print_float_info, arm_register_type, convert_to_extended)
9838 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9839 (arm_extract_return_value, arm_register_name): Delete declarations.
9840 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9841 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9842 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9843 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9844 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9845 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9846 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9847 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9848 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9849 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9850 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9851 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9853 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9854 * remote-rdi.c remote-rdp.c: Likewise.
9855 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9856 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9857 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9860 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9861 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9862 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9863 from non-ARM_ prefixed definitions.
9864 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9866 * remote-rdi.c remote-rdp.c: Likewise.
9867 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9869 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9871 * arm-tdep.c (arm_frameless_function_invocation)
9872 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9873 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9874 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9875 (arm_pop_frame, arm_get_next_pc): Make static.
9876 (arm_gdbarch_init): Register above in gdbarch structure.
9877 (arm_read_fp): Renamed from arm_target_read_fp.
9878 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9879 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9880 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9881 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9882 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9883 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9884 (arm_pc_is_thumb_dummy): Delete declarations.
9885 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9886 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9887 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9888 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9890 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9892 * symtab.c (compare_search_syms): New function.
9893 (sort_search_symbols): New function.
9894 (search_symbols): Sort symbols after searching rather than
9897 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9899 * NEWS: Linux -> GNU/Linux.
9901 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9903 * gdbarch.sh: For for level one methods, disallow a definition
9904 when partially multi-arched. Add comments explaining rationale.
9905 * gdbarch.h: Re-generate.
9907 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9909 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9914 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9916 * gdbarch.c: Re-generate.
9918 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9920 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9921 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9924 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9926 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9928 (PUSH_ARGUMENTS): Switch to using predefault.
9929 * gdbarch.c: Regenerate.
9931 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9933 * valops.c (PUSH_ARGUMENTS): Delete definition.
9934 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9935 partial. Default to default_push_arguments.
9936 * gdbarch.h, gdbarch.c: Regenerate.
9938 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9940 * defs.h (throw_exception): Rename return_to_top_level. Update
9942 * utils.c (error_stream, internal_verror, quit): Ditto.
9943 * top.c (throw_exception, catcher): Ditto.
9944 * sparclet-rom.c (sparclet_load): Ditto.
9945 * remote.c (interrupt_query, minitelnet): Ditto.
9946 * remote-sds.c (interrupt_query): Ditto.
9947 * remote-mips.c (mips_error, mips_kill): Ditto.
9948 * ocd.c (interrupt_query): Ditto.
9949 * monitor.c (monitor_interrupt_query): Ditto.
9950 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9951 * target.h: Update comment.
9953 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9955 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9957 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9958 default_double_format.
9959 * gdbarch.h, gdbarch.c: Re-generate.
9960 * findvar.c (floatformat_unknown): Delete variable definition.
9961 * doublest.h (floatformat_unknown): Delete variable declaration.
9963 2002-02-09 Jim Blandy <jimb@redhat.com>
9965 * stabsread.c (read_type): Add code to parse Sun's syntax for
9966 prototyped function types.
9968 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9970 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9971 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9973 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9975 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9976 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9977 now _initialize_xcoffsolib gets called again and overrides the
9978 commands from solib.c in a native configuration.
9980 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9982 * doublest.c (store_typed_floating): Don't try to return a value.
9985 2002-02-08 Jim Blandy <jimb@redhat.com>
9987 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9988 is prototyped and has no arguments, print its argument list as
9991 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9993 * MAINTAINERS (write-after-approval): Add myself.
9994 (paper-trail): I've escaped!
9996 2002-02-08 Christopher Faylor <cgf@redhat.com>
9998 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10000 (_initialize_check_for_gdb_ini): Ditto.
10002 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10004 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10005 xaprintf -> xasprintf.
10007 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10009 * win32-nat.c: Remove use of printf and sprintf functions.
10011 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10013 * arm-tdep.c (arm_frame_chain_valid): Make static.
10014 (arm_push_arguments): Likewise.
10015 (arm_gdbarch_init): New function.
10016 (_initialize_arm_tdep): Call it.
10017 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10018 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10019 (FRAME_CHAIN_VALID): Delete.
10020 (arm_frame_chain_valid): Delete declaration.
10021 (PUSH_ARGUMENTS): Delete.
10022 (arm_push_arguments): Delete declaration.
10023 (CALL_DUMMY_P): Delete.
10025 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10026 Corinna Vinschen <vinschen@redhat.com>
10028 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10029 on builtin float types.
10031 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10033 * utils.c: Include <curses.h> before "bfd.h".
10034 * tui/tui-hooks.c: Likewise.
10035 * tui/tui.c: Likewise.
10036 * tui/tuiCommand.c: Likewise.
10037 * tui/tuiData.c: Likewise.
10038 * tui/tuiDataWin.c: Likewise.
10039 * tui/tuiDisassem.c: Likewise.
10040 * tui/tuiGeneralWin.c: Likewise.
10041 * tui/tuiIO.c: Likewise.
10042 * tui/tuiLayout.c: Likewise.
10043 * tui/tuiRegs.c: Likewise.
10044 * tui/tuiSource.c: Likewise.
10045 * tui/tuiSourceWin.c: Likewise.
10046 * tui/tuiStack.c: Likewise.
10047 * tui/tuiWin.c: Likewise.
10049 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10051 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10052 to include space for pseudoregs as well. Update loops accordingly.
10053 (sh_fp_frame_init_saved_regs): Ditto.
10054 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10056 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10058 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10059 Add Richard Earnshaw to Arm maintainers.
10061 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10063 * defs.h (warning_begin): Delete declaration.
10065 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10068 2002-02-07 Michael Snyder <msnyder@redhat.com>
10070 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10071 Logic bug, remove misplaced else.
10073 2002-02-07 Klee Dienes <klee@apple.com>
10075 * fork-inferior.c (fork_inferior): Add '!' to the list of
10076 characters that need to be quoted when building a string for the
10077 shell. Quote '!' specifically with a backslash, since CSH chokes
10078 when trying to evaluate "str!str".
10080 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10082 * rdi-share/host.h: Only provide a typedef for bool if it is not
10085 2002-02-04 Michael Snyder <msnyder@redhat.com>
10087 * breakpoint.h (enum bptype): Add new overlay event bp type.
10088 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10090 * breakpoint.c (create_internal_breakpoint): New function.
10091 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10092 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10093 (create_thread_event_breakpoint): Ditto.
10094 (create_solib_event_breakpoint): Ditto.
10095 (create_overlay_event_breakpoint): New function.
10096 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10097 (update_breakpoints_after_exec): Delete and re-initialize
10098 overlay event breakpoints after an exec. Add FIXME comment
10099 about longjmp breakpoint.
10100 (print_it_typical): Ignore overlay event breakpoints.
10101 (print_one_breakpoint): Ditto.
10103 (bpstat_what): Do not stop for overlay event breakpoints.
10104 (delete_breakpoint): Don't delete overlay event breakpoints.
10105 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10106 (breakpoint_re_set): Re-create overlay event breakpoint.
10108 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10109 (overlay_manual_command): Disable overlay breakpoints.
10110 (overlay_off_command): Disable overlay breakpoints.
10112 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10114 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10115 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10116 to here from config/tm-arm.h.
10117 (coff_sym_is_thumb): Make static.
10118 (arm_elf_make_msymbol_special): New function.
10119 (arm_coff_make_msymbol_special): New function.
10120 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10121 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10122 (coff_sym_is_thumb): Delete declaration.
10123 (arm_elf_make_msymbol_special): Declare.
10124 (arm_coff_make_msymbol_special): Declare.
10125 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10126 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10128 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10130 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10132 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10134 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10135 * gdbarch.c gdbarch.h: Regenerate.
10136 * arch-utils.c (default_print_float_info): New function.
10137 * arch-utils.h (default_print_float_info): Prototype it.
10138 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10139 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10140 (PRINT_FLOAT_INFO): Document it.
10142 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10143 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10144 (PRINT_FLOAT_INFO): Define.
10146 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10148 * win32-nat.c (_initialize_check_for_gdb_ini):
10149 Add typecast to sprintf argument to suppress a warning.
10151 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10153 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10154 to allow easier handling of pass state.
10155 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10156 that gives exception name and address.
10157 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10158 and set last_sig value to ourstatus->value.sig. Some missing
10160 (child_continue): Correctly report continue_status.
10161 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10162 TARGET_SIGNAL_0 (new default value).
10163 (child_resume): consider sig argument passed to decide if
10164 the exception should be passed to debuggee or not.
10166 2002-02-05 Michael Snyder <msnyder@redhat.com>
10168 * regcache.c (fetch_register): Call target_fetch_register
10169 only if we don't call FETCH_PSEUDO_REGISTER.
10170 (store_register): Call target_store_register only if we
10171 don't call STORE_PSEUDO_REGISTER.
10173 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10175 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10176 ELF_MAKE_MSYMBOL_SPECIAL.
10177 * gdbarch.c, gdbarch.h: Regenerate.
10178 * arch-utils.c (default_make_msymbol_special): New function.
10179 * arch-utils.h (default_make_msymbol_special): Export.
10180 * elfread.c (elf_symtab_read): Compile use of
10181 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10183 * coffread.c (coff_symtab_read): Ditto, for
10184 COFF_MAKE_MSYMBOL_SPECIAL.
10186 2002-02-05 Jim Blandy <jimb@redhat.com>
10188 * solib-svr4.c (svr4_truncate_ptr): New function.
10189 (svr4_relocate_section_addresses): Do the address arithmetic with
10190 the appropriate truncation for target addresses, even when
10191 CORE_ADDR is larger than a target address.
10193 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10195 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10198 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10200 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10203 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10205 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10207 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10209 * gdbserver/linux-low.c: Remove unused include files.
10211 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10213 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10214 (read_inferior_memory): Use it.
10215 (write_inferior_memory): Likewise.
10217 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10219 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10220 grubbing through sys_errlist.
10222 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10224 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10226 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10227 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10229 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10231 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10232 (do_sfunc, set_cmd_sfunc): New functions.
10234 * command.h (struct cmd_list_element): Add field func.
10235 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10236 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10237 * cli/cli-decode.h: Ditto.
10239 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10240 (help_all, help_cmd_list): Ditto.
10241 (find_cmd, complete_on_cmdlist): Ditto.
10242 * top.c (execute_command): Ditto.
10244 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10247 * infcmd.c (notice_args_read): Fix function signature.
10249 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10250 * cli/cli-decode.c (add_set_cmd): Ditto.
10251 * utils.c (initialize_utils): Ditto.
10252 * maint.c (_initialize_maint_cmds): Ditto.
10253 * infrun.c (_initialize_infrun): Ditto.
10254 * demangle.c (_initialize_demangler): Ditto.
10255 * remote.c (add_packet_config_cmd): Ditto.
10256 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10257 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10258 * proc-api.c (_initialize_proc_api): Ditto.
10259 * kod.c (_initialize_kod): Ditto.
10260 * valprint.c (_initialize_valprint): Ditto.
10261 * top.c (init_main): Ditto.
10262 * infcmd.c (_initialize_infcmd): Ditto.
10263 * corefile.c (_initialize_core): Ditto.
10264 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10265 * arch-utils.c (initialize_current_architecture): Ditto.
10266 (_initialize_gdbarch_utils): Ditto.
10267 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10269 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10270 * wince.c (_initialize_inftarg): Ditto.
10271 * symfile.c (_initialize_symfile): Ditto.
10272 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10273 * language.c (_initialize_language): Ditto.
10274 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10276 2002-02-04 Michael Snyder <msnyder@redhat.com>
10278 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10280 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10282 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10283 Add rules for building the register data files.
10285 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10287 * regformats/regdat.sh: Add braces to the definition of
10288 expedite_regs_${arch}.
10290 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10292 * regformats/regdef.h (struct reg): Add comment describing the
10293 requirements for offset and size fields.
10295 2002-02-04 Andreas Schwab <schwab@suse.de>
10297 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10298 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10300 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10302 * gdbarch.sh (copyright): Update years in generated header.
10303 (SMASH_TEXT_ADDRESS): Add rule.
10304 * gdbarch.h, gdbarch.c: Re-generate.
10305 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10306 * dbxread.c: Likewise.
10307 * dwarfread.c: Likewise.
10308 * elfread.c: Likewise.
10309 * somread.c: Likewise.
10311 * arm-tdep.c (arm_smash_text_address): New function.
10312 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10314 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10316 Add support for hardware watchpoints on win32 native.
10317 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10318 CONTEXT_DEBUG_REGISTERS.
10319 (dr variable): New variable. Static array containing a local copy
10320 of debug registers.
10321 (debug_registers_changed): New variable. Reflects when debug registers
10322 are changed and need to be written to inferior.
10323 (debug_registers_used): New variable. Reflects when any debug register
10324 was set, used when new threads are created.
10325 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10327 (thread_rec): Set dr array if id is the thread of current_event .
10328 (child_continue, child_resume): Change the debug registers for all
10329 threads if debug_registers_changed.
10330 (child_add_thread): Change the debug registers if debug_registers_used.
10331 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10332 Link nm.h to new nm-cygwin.h file.
10333 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10334 of hardware registers.
10336 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10338 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10339 Restore behavour broken by 2002-01-20 Andrew Cagney
10340 <ac131313@redhat.com> IEEE_FLOAT removal.
10342 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10344 * c-valprint.c (c_val_print): Pass a proper valaddr to
10345 cp_print_class_method.
10346 * valops.c (search_struct_method): If there is only one method
10347 and args is NULL, return that method.
10349 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10351 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10352 accessing tag_name directly.
10354 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10356 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10357 of accessing tag_name directly.
10359 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10362 * gdbtypes.c (replace_type): New function.
10363 * gdbtypes.h (replace_type): Add prototype.
10364 * stabsread.c (read_type): Use replace_type.
10366 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10368 * Makefile.in (memattr.o): Add missing dependencies rule.
10370 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10372 * breakpoint.c (break_at_finish_command): Really export.
10373 (break_at_finish_at_depth_command): Ditto.
10374 (tbreak_at_finish_command): Ditto.
10375 * hppa-tdep.c: Include completer.h.
10376 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10377 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10379 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10381 * utils.c (do_write): New function.
10382 (error_stream): Rewrite combining the code from error_begin and
10384 (verror): Rewrite using error_stream.
10385 (error_begin): Delete function.
10387 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10389 * utils.c (error_begin): Make static.
10390 * defs.h (error_begin): Delete declaration.
10392 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10393 (decode_line_1): Use cplusplus_error instead of error_begin,
10394 cplusplus_hint and return_to_top_level.
10395 * coffread.c (coff_symfile_read): Use error instead of error_begin
10396 and return_to_top_level.
10397 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10399 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10401 * language.h (type_error, range_error): Make string parameter
10403 * language.c (warning_pre_print): Delete extern declaration.
10404 * dwarfread.c (warning_pre_print): Ditto.
10405 * language.c (type_error, range_error): Rewrite to use verror and
10406 vwarning instead of warning_begin.
10408 2002-02-01 Michael Snyder <msnyder@redhat.com>
10410 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10411 (set_ignore_count): Move misplaced comment back where it belongs.
10413 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10415 * command.h (NO_FUNCTION): Delete macro.
10416 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10417 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10418 * tracepoint.c (_initialize_tracepoint): Ditto.
10419 * cli/cli-decode.c (add_set_cmd): Ditto.
10420 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10422 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10424 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10425 Update ``this'' pointer when calling virtual functions.
10427 2002-02-01 Michael Snyder <msnyder@redhat.com>
10429 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10430 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10432 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10434 * regformats/reg-arm.dat: New file.
10435 * regformats/reg-i386.dat: New file.
10436 * regformats/reg-ia64.dat: New file.
10437 * regformats/reg-m68k.dat: New file.
10438 * regformats/reg-mips.dat: New file.
10439 * regformats/reg-ppc.dat: New file.
10440 * regformats/reg-sh.dat: New file.
10441 * regformats/regdef.h: New file.
10442 * regformats/regdat.sh: New file.
10444 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10446 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10447 (arm_frame_args_address, arm_frame_locals_address): New functions.
10448 (arm_frame_num_args): New function.
10449 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10450 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10451 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10453 2002-01-31 Michael Snyder <msnyder@redhat.com>
10455 * breakpoint.c (break_at_finish_command): Export.
10456 (break_at_finish_at_depth_command): Export.
10457 (tbreak_at_finish_command): Export.
10458 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10459 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10460 "txbreak" commands, which are HPPA specific.
10462 * printcmd.c (disassemble_command): Remove an ancient
10463 artifact of an old merge.
10465 * symfile.h (enum overlay_debugging_state):
10466 Define enum constant values for overlay mode.
10467 * symfile.c (overlay_debugging): Use enums instead of literals.
10468 (overlay_is_mapped, overlay_auto_command,
10469 overlay_manual_command): Ditto.
10471 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10472 breakpoint_here_p, breakpoint_inserted_here_p,
10473 breakpoint_thread_match, bpstat_stop_status,
10474 describe_other_breakpoints, check_duplicates, clear_command):
10475 Coding standard fixes.
10477 * target.c (target_xfer_memory): Add spaces, coding standard.
10478 (do_xfer_memory): Add missing line to trust-readonly
10479 code: check bfd SEC_READONLY flag for section.
10481 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10483 * PROBLEMS: Fix typo, 5.1->5.1.1.
10485 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10487 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10488 data symbols, since we search based on textlow and texthigh.
10489 (find_pc_sect_symtab): Likewise.
10491 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10493 * defs.h (vwarning): Declare.
10494 * utils.c (vwarning): New function.
10495 (warning): Call vwarning.
10496 (warning_begin): Delete function.
10498 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10499 the warning message.
10500 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10503 2002-01-30 Michael Snyder <msnyder@redhat.com>
10505 * NEWS: Mention "set trust-readonly-sections" command.
10506 Mention generate-core-file command.
10508 2002-01-15 Michael Snyder <msnyder@redhat.com>
10510 * target.c: New command, "set trust-readonly-sections on".
10511 (do_xfer_memory): Honor the suggestion to trust readonly sections
10512 by reading them from the object file instead of from the target.
10513 (initialize_targets): Register command "set trust-readonly-sections".
10515 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10517 * parse.c (target_map_name_to_register): Simplify, search regs and
10518 pseudo-regs using a single loop.
10520 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10522 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10524 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10526 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10527 * config/i386/i386v42mp.mh: Add i387-nat.o .
10528 * i386v4-nat.c: Include i387-nat.h.
10529 (supply_fpregset): Use i387_supply_fsave.
10530 (fill_fpregset): Use i387_fill_fsave.
10532 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10534 * arm-tdep.c (arm_call_dummy_words): Define.
10535 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10536 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10537 (CALL_DUMMY_WORDS): Define.
10538 (arm_call_dummy_words): Declare.
10539 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10540 (arm_linux_call_dummy_words): Declare.
10542 2002-01-30 Andreas Schwab <schwab@suse.de>
10544 * m68klinux-nat.c: Fix last change to use regcache_collect
10545 instead of referencing registers[] directly.
10547 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10549 * parse.c (target_map_name_to_register): Delete code wrapped in
10550 #ifdef REGISTER_NAME_ALIAS_HOOK.
10552 2002-01-28 Michael Snyder <msnyder@redhat.com>
10554 * regcache.c (legacy_read_register_gen): Need to be able to
10555 read pseudo-register as well as real register.
10556 (legacy_write_register_gen): Ditto.
10558 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10560 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10561 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10562 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10563 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10564 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10565 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10566 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10567 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10568 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10569 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10570 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10571 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10572 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10573 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10574 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10575 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10576 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10577 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10578 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10579 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10581 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10583 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10584 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10585 (initialize_current_architecture): Update target_byte_order using
10586 information from BFD.
10587 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10588 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10590 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10592 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10593 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10595 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10596 #ifdef INVALID_FLOAT.
10597 * infcmd.c (do_registers_info): Ditto.
10598 * values.c (unpack_double): Ditto. Add comment.
10600 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10601 already commented out.
10603 2002-01-26 Andreas Schwab <schwab@suse.de>
10605 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10606 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10607 registers and add support for PTRACE_GETREGS.
10609 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10611 GDB 5.1.1 released from 5.1 branch.
10612 * NEWS: Add 5.1.1 news.
10613 * README: Sync with 5.1 branch.
10615 2002-01-23 Fred Fish <fnf@redhat.com>
10617 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10618 stabstring on initial malloc. Reallocing will copy it for us,
10621 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10623 * Makefile.in (hpread_h): Delete.
10624 (HFILES_NO_SRCDIR): Remove hpread.h.
10625 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10626 (hpread.o): Update dependencies.
10627 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10629 * hp-psymtab-read.c: Remove file.
10630 * hp-symtab-read.c: Remove file.
10631 * hpread.h: Remove file.
10633 * hpread.c: Merge all contents of hp-psymtab-read.c,
10634 hp-symtab-read.c and hpread.h into this file, as it was prior to
10637 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10638 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10639 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10640 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10642 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10644 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10645 fill_gregset): Call gdbarch_tdep() just once, assign result to
10646 variable and use that, instead of calling the function several
10649 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10651 * configure.host: Accept sparcv9 as alias for sparc64.
10652 * configure.tgt: Likewise.
10654 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10656 * solib-aix5.c (build_so_list_from_mapfile)
10657 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10658 arguments is not reversed.
10659 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10660 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10662 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10664 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10665 modified version of obsolete sh_fetch_pseudo_register.
10666 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10667 (sh4_register_read): New function.
10668 (sh_pseudo_register_write): New function. Renamed and modified
10669 version of obsolete sh_store_pseudo_register.
10670 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10671 (sh4_register_write): New function.
10672 (sh_gdbarch_init): Remove setting of gdbarch function
10673 fetch_pseudo_register and store_pseudo_register. Remove setting of
10674 register_convert_to_raw, register_convert_to_virtual,
10675 register_convertible.
10676 (sh_sh4_register_convertible): Delete. No longer needed. All is
10677 taken care by architecture specific functions
10678 register_read/register_write.
10679 (sh_sh4_register_convert_to_virtual): Make static.
10680 (sh_sh4_register_convert_to_raw): Ditto.
10682 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10684 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10685 (floatformat_is_nan, floatformat_mantissa): Ditto.
10687 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10688 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10689 builtin_type_ieee_double_little,
10690 builtin_type_ieee_double_littlebyte_bigword,
10691 builtin_type_m68881_ext, builtin_type_i960_ext,
10692 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10693 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10694 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10695 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10697 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10699 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10700 parameter. Set frameless flag if it exists and depended of
10701 whether the scanned function is frameless or not.
10702 (xstormy16_skip_prologue): If function is frameless, return
10703 result of xstormy16_scan_prologue().
10704 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10707 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10709 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10710 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10711 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10712 sh_sh4_register_byte, sh_sh4_register_raw_size,
10713 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10714 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10715 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10716 sh_store_pseudo_register, sh_do_pseudo_register): Call
10717 gdbarch_tdep() just once, assign result to variable and use that,
10718 instead of calling the function several times.
10720 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10722 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10723 macros instead of LAST_FPU_CTRL_REGNUM.
10724 (store_register): Likewise.
10726 2002-01-21 Jim Blandy <jimb@redhat.com>
10728 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10729 is up-to-date before running the program, not just when a program
10732 2002-01-21 Fred Fish <fnf@redhat.com>
10734 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10735 when we have found all instructions we are looking for.
10737 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10739 * arm-tdep.c (arm_register_name): New function.
10740 (arm_registers_names): Make static.
10741 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10742 (arm_register_name): Declare.
10743 (REGISTER_NAME): Use it.
10745 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10746 Kevin Buettner <kevinb@redhat.com>
10748 Convert arm targets to new FRAME interface.
10749 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10750 (arm_frame_find_save_regs): Delete.
10751 (arm_frame_init_saved_regs): New.
10752 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10753 Allocate extra_info as required. Convert all uses of fsr.regs
10754 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10756 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10757 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10758 (check_prologue_cache, save_prologue_cache): Likewise.
10759 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10760 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10761 (FRAME_FIND_SAVED_REGS): Delete.
10762 (arm_frame_find_saved_regs): Delete prototype.
10763 (arm_frame_init_saved_regs): New prototype.
10764 (FRAME_INIT_SAVED_REGS): Define.
10766 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10768 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10770 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10772 From Jeff Law <law@redhat.com>:
10773 * infttrace.c: Include <sys/pstat.h>.
10774 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10775 exec file if the ttrace equivalent fails.
10777 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10779 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10780 (closeLogFile): Ditto.
10782 2002-01-20 Michael Chastain <mec@shout.net>
10784 * top.c (print_gdb_version): Bump copyright year to 2002.
10786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10788 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10789 Zannoni and Eli Zaretskii.
10791 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10793 * buildsym.c: Update copyright years.
10794 * c-typeprint.c: Likewise.
10795 * dwarf2read.c: Likewise.
10796 * f-typeprint.c: Likewise.
10797 * gdbtypes.c: Likewise.
10798 * gdbtypes.h: Likewise.
10799 * hp-symtab-read.c: Likewise.
10800 * hpread.c: Likewise.
10801 * mdebugread.c: Likewise.
10802 * p-typeprint.c: Likewise.
10804 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10806 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10807 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10808 byte-order selectable.
10809 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10810 * arch-utils.c: Ditto.
10811 (set_endian): Ditto.
10812 (set_endian_from_file): Ditto.
10813 * gdbserver/low-sim.c (create_inferior): Ditto.
10814 * gdbarch.sh: Ditto.
10815 * gdbarch.h: Re-generate.
10816 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10817 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10818 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10819 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10820 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10821 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10822 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10823 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10825 * config/mips/tm-wince.h: Remove #undef of macro
10826 TARGET_BYTE_ORDER_SELECTABLE.
10827 * config/sh/tm-wince.h: Ditto.
10829 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10831 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10832 member function fields. Add accessor macro
10833 TYPE_FN_FIELD_ARTIFICIAL.
10834 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10835 * c-typeprint.c (c_type_print_base): Skip artificial member
10838 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10840 * f-typeprint.c: Delete unused function f_type_print_args.
10841 * p-typeprint.c: Delete unused function pascal_type_print_args.
10843 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10845 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10846 comment. Add ``artificial'' to ``union field_location''.
10848 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10850 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10851 * mdebugread.c (parse_symbol): Likewise.
10852 * stabsread.c (define_symbol): Likewise.
10853 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10854 initializing TYPE_FIELD_BITPOS to n (obsolete).
10855 (hpread_doc_function_type): Likewise.
10856 * hpread.c (hpread_function_type): Likewise.
10858 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10860 * configure.in (host_makefile_frag): Only require a host makefile
10861 fragment when a native build.
10862 * configure: Re-generate.
10864 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10866 * doublest.h (floatformat_from_type): Declare.
10867 * doublest.c (floatformat_from_type): New function.
10868 (convert_typed_floating): Use.
10870 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10871 call to function floatformat_from_type.
10873 * gdbarch.sh (IEEE_FLOAT): Delete.
10874 * gdbarch.h, gdbarch.c: Re-generate.
10875 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10876 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10877 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10878 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10879 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10880 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10881 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10882 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10883 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10884 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10885 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10886 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10888 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10889 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10890 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10891 * sh-tdep.c (sh_gdbarch_init): Ditto.
10892 * mips-tdep.c (mips_gdbarch_init): Ditto.
10893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10894 * cris-tdep.c (cris_gdbarch_init): Ditto.
10896 2002-01-20 Jiri Smid <smid@suse.cz>
10898 * configure.host, configure.tgt: Support x86-64.
10899 * NEWS: Note new target x86-64.
10901 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10902 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10903 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10904 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10905 x86-64-linux-nat.o): Fix dependencies.
10907 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10909 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10910 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10911 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10912 * config/sparc/xm-sun4os4.h: Delete file.
10913 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10915 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10917 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10918 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10919 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10920 * config/i386/i386lynx.mh (XM_FILE): Delete.
10921 * config/rs6000/xm-rs6000ly.h: Delete file.
10922 * config/sparc/xm-sparclynx.h: Delete file.
10923 * config/m68k/xm-m68klynx.h: Delete file.
10924 * config/i386/xm-i386lynx.h: Delete file.
10925 * config/xm-lynx.h: Delete file.
10926 * config/djgpp/fnchange.lst: Update.
10928 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10930 * alpha-tdep.c (alpha_register_byte): New function.
10931 (alpha_register_raw_size): Ditto.
10932 (alpha_register_virtual_size): Ditto.
10933 (alpha_skip_prologue_internal): Renamed from
10934 alpha_skip_prologue.
10935 (alpha_skip_prologue): New version that calls
10936 alpha_skip_prologue_internal.
10937 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10938 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10939 second argument from alpha_skip_prologue.
10940 (REGISTER_BYTE): Use alpha_register_byte.
10941 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10942 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10943 (FRAMELESS_FUNCTION_INVOCATION): Use
10944 generic_frameless_function_invocation_not.
10945 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10946 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10948 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10950 * config/mips/xm-news-mips.h: Delete file.
10951 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10953 * config/m88k/xm-m88k.h: Delete file.
10954 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10955 * config/m88k/xm-delta88v4.h: Ditto.
10956 * config/m88k/xm-delta88.h: Ditto.
10958 * config/alpha/xm-fbsd.h: Delete file.
10959 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10961 * config/sparc/xm-sparc.h: Delete file.
10962 * Makefile.in (xm-sun4os4.h): Delete dependency.
10963 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10964 * config/sparc/xm-sun4os4.h: Ditto.
10965 * config/sparc/xm-linux.h: Ditto.
10967 * config/i386/xm-windows.h: Delete file.
10969 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10971 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10972 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10974 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10976 * alpha-tdep.c (alpha_call_dummy_words): New.
10977 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10978 (CALL_DUMMY_P): Define.
10979 (CALL_DUMMY_WORDS): Define.
10980 (SIZEOF_CALL_DUMMY_WORDS): Define.
10982 2002-01-19 Per Bothner <per@bothner.com>
10984 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10985 isn't NULL, which can happen with some gcj-3.x-produced code.
10987 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10989 * alpha-tdep.c (alpha_register_virtual_type): New function.
10990 (alpha_init_frame_pc_first): Ditto.
10991 (alpha_fix_call_dummy): Ditto.
10992 (alpha_store_struct_return): Ditto.
10993 (alpha_extract_struct_value_address): Ditto.
10994 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10995 alpha_register_virtual_type.
10996 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10997 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10998 alpha_extract_struct_value_address.
10999 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11000 (INIT_FRAME_PC): Use init_frame_pc_noop.
11001 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11003 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11005 * i386gnu-nat.c: Include "i386-tdep.h".
11006 (fetch_fpregs): Simplify code dealing with uninitialized floating
11007 point states such that it doesn't require FP7_REGNUM.
11009 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11011 * alpha-tdep.c (frame_extra_info): New.
11012 (alpha_find_saved_regs): Make static. Use
11014 (alpha_frame_init_saved_regs): New function.
11015 (alpha_frame_saved_pc): Use frame->extra_info.
11016 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11017 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11018 (init_extra_frame_info): Rename to...
11019 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11020 (alpha_print_extra_frame_info): New function.
11021 (alpha_frame_locals_address): Ditto.
11022 (alpha_frame_args_address): Ditto.
11023 (alpha_pop_frame): Use frame->extra_info.
11024 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11025 alpha_frame_args_address.
11026 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11027 (alpha_find_saved_regs): Remove prototype.
11028 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11029 (EXTRA_FRAME_INFO): Remove.
11030 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11031 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11033 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11035 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11036 (alpha_cannot_fetch_register): Ditto.
11037 (alpha_cannot_store_register): Ditto.
11038 (alpha_register_convertible): Ditto.
11039 (alpha_use_struct_convention): Ditto.
11040 * config/alpha/tm-alpha.h: Update copyright years.
11041 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11042 (INNER_THAN): Use core_addr_lessthan.
11043 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11044 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11045 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11046 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11047 (FRAME_CHAIN): Remove unnecessary cast.
11049 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11051 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11054 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11056 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11057 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11058 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11059 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11060 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11061 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11062 * x86-64-linux-nat.c: Ditto.
11064 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11066 * alpha-tdep.c (alpha_register_name): New function.
11067 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11068 (REGISTER_NAME): Define.
11070 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11072 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11074 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11076 * alpha-tdep.c: Update copyright years.
11077 (alpha_next_pc): New function.
11078 (alpha_software_single_step): Ditto.
11079 * config/alpha/tm-alpha.h: Add prototype for
11080 alpha_software_single_step.
11082 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11084 * alphabsd-nat.c: Update copyright years.
11085 (fill_gregset): Use regcache_collect.
11086 (fill_fpregset): Likewise.
11087 (fetch_inferior_registers): Only fetch integer registers
11088 if requested to do so.
11089 (store_inferior_registers): Only store integer registers
11090 if requested to do so.
11092 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11094 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11095 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11096 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11097 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11098 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11099 * config/arm/linux.mh (XDEPFILES): Delete.
11100 * config/arm/nbsd.mh (XDEPFILES): Delete.
11101 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11102 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11103 * config/i386/i386m3.mh (XDEPFILES): Delete.
11104 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11105 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11106 * config/i386/fbsd.mh (XDEPFILES): Delete.
11107 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11108 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11109 * config/i386/i386v4.mh (XDEPFILES): Delete.
11110 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11111 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11112 * config/i386/i386aix.mh (XDEPFILES): Delete.
11113 * config/i386/go32.mh (XDEPFILES): Delete.
11114 * config/i386/cygwin.mh (XDEPFILES): Delete.
11115 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11116 * config/i386/i386mach.mh (XDEPFILES): Delete.
11117 * config/i386/i386v32.mh (XDEPFILES): Delete.
11118 * config/i386/linux.mh (XDEPFILES): Delete.
11119 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11120 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11121 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11122 * config/i386/i386sco.mh (XDEPFILES): Delete.
11123 * config/i386/i386v.mh (XDEPFILES): Delete.
11124 * config/i386/nbsd.mh (XDEPFILES): Delete.
11125 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11126 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11127 * config/i386/symmetry.mh (XDEPFILES): Delete.
11128 * config/i386/obsd.mh (XDEPFILES): Delete.
11129 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11130 * config/ia64/linux.mh (XDEPFILES): Delete.
11131 * config/ia64/aix.mh (XDEPFILES): Delete.
11132 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11133 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11134 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11135 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11136 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11137 * config/m68k/linux.mh (XDEPFILES): Delete.
11138 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11139 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11140 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11141 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11142 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11143 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11144 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11145 * config/m88k/delta88.mh (XDEPFILES): Delete.
11146 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11147 * config/m88k/m88k.mh (XDEPFILES): Delete.
11148 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11149 * config/mips/linux.mh (XDEPFILES): Delete.
11150 * config/mips/irix6.mh (XDEPFILES): Delete.
11151 * config/mips/irix5.mh (XDEPFILES): Delete.
11152 * config/mips/irix4.mh (XDEPFILES): Delete.
11153 * config/mips/irix3.mh (XDEPFILES): Delete.
11154 * config/mips/decstation.mh (XDEPFILES): Delete.
11155 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11156 (NATDEPFILES): Move core-aout.o to here.
11157 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11158 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11159 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11160 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11161 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11162 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11163 * config/pa/hpux11.mh (XDEPFILES): Delete.
11164 * config/powerpc/aix.mh (XDEPFILES): Delete.
11165 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11166 * config/powerpc/linux.mh (XDEPFILES): Delete.
11167 * config/romp/rtbsd.mh: Rename XDEPFILES.
11168 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11169 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11170 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11171 * config/s390/s390.mh (XDEPFILES): Delete.
11172 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11173 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11174 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11175 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11176 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11177 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11178 * config/sparc/linux.mh (XDEPFILES): Delete.
11179 * config/vax/vaxult.mh (XDEPFILES): Delete.
11180 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11181 * Makefile.in (DEPFILES): Remove XDEPFILES.
11183 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11185 * utils.c (internal_verror): Fix comments, default is yes not no.
11186 Update queries to match. Default to quit and dump core.
11188 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11190 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11192 * defs.h, event-top.c, gdbcmd.h: Ditto.
11193 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11194 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11195 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11196 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11197 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11198 * mi/mi-main.c:Ditto.
11200 * stack.c, symfile.c: Update copyright.
11202 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11204 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11205 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11206 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11207 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11209 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11211 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11212 * gdbserver/low-lynx.c (myattach): Likewise.
11213 * gdbserver/low-nbsd.c (myattach): Likewise.
11214 * gdbserver/low-sim.c (myattach): Likewise.
11215 * gdbserver/low-sparc.c (myattach): Likewise.
11216 * gdbserver/low-sun3.c (myattach): Likewise.
11218 * gdbserver/low-linux.c (myattach): New function.
11220 * gdbserver/server.c (attach_inferior): New function.
11221 (main): Handle "--attach".
11223 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11225 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11228 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11230 * c-typeprint.c (is_type_conversion_operator): Add additional
11231 check for non-conversion operators.
11233 2002-01-15 Michael Snyder <msnyder@redhat.com>
11235 * linux-proc.c: Add "info proc" command, a la procfs.c.
11236 (read_mapping): New function, abstract and re-use code.
11237 (linux_find_memory_regions): Use new func read_mapping.
11238 (linux_info_proc_cmd): New function, implement "info proc".
11239 (_initialize_linux_proc): Add new command "info proc".
11241 2002-01-15 Michael Snyder <msnyder@redhat.com>
11243 * symfile.c (generic_load): Use bfd_map_over_sections method
11244 instead of manipulating bfd structure members directly.
11245 (add_section_size_callback): New function, bfd sections callback
11246 used by generic_load.
11247 (load_sections_callback): New function, bfd sections callback
11248 used by generic_load.
11250 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11252 [Based on work by Jim Blandy]
11253 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11254 (builtin_type_vec128): Export.
11255 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11257 (builtin_type_vec128): New builtin type for 128 bit vector
11259 (build_gdbtypes): Initialize builtin_type_v16qi and
11260 builtin_type_v8hi. Create the vec128 register builtin type
11262 (build_builtin_type_vec128): New function.
11263 (_initialize_gdbtypes): Register builtin_type_v16qi and
11264 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11265 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11266 AltiVec register to new builtin type.
11268 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11270 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11273 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11275 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11276 CLEAN_UP_REGISTER_VALUE.
11277 * regcache.c (supply_register): Update only call.
11279 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11281 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11282 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11283 a29k-*-vxworks* targets as obsolete.
11285 2002-01-14 Michael Snyder <msnyder@redhat.com>
11287 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11288 until we can resolve portability issues.
11289 * gregset.h: Remove references to fpxregs.
11290 * gcore.c (gcore_command): Initialize note_sec to NULL.
11292 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11294 * signals.c (target_signal_to_name): Rewrite. Only use
11295 signals[].name when in bounds and non-NULL.
11297 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11299 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11300 * signals.c (target_signal_to_name): Verify that SIG is within the
11301 bounds of the signals array.
11303 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11305 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11307 2002-01-13 Keith Seitz <keiths@redhat.com>
11309 * stack.c (print_frame_info_base): Print the frame's pc
11310 only if when print_frame_info_listing_hook is not defined.
11312 2002-01-13 Keith Seitz <keiths@redhat.com>
11314 * varobj.c (varobj_set_value): Make sure that there were no
11315 errors evaluating the object before attempting to set its
11317 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11318 so this offset adjustment is no longer necessary.
11319 (create_child): Don't set the error flag if the child is
11320 a CPLUS_FAKE_CHILD.
11321 (value_of_child): If value_fetch_lazy fails, return NULL
11322 so that callers will be notified that an error occurred.
11323 (c_value_of_variable): Delay check of variable's validity
11324 until later. We actually want all structs and unions to have
11326 Do not return "???" for variables which could not be evaluated.
11327 This error condition must be returned to the caller so that it
11328 can get the error condition from gdb.
11329 (cplus_name_of_child): Adjust index for vptr before figuring
11330 out the name of the child.
11331 (cplus_value_of_child): If a child's (real) parent is not valid,
11332 don't even bother trying to give a value for it. Just return
11333 an error. Change all instances in this function.
11334 (cplus_type_of_child): If our parent is one of the "fake"
11335 parents, we need to get at the type of the real parent, and
11336 derive the child's true type using this information.
11338 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11340 From 2002-01-09 John Marshall <johnm@falch.net>:
11341 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11342 sources.redhat.com, and tweak some related URLs which had
11343 suffered from linkrot.
11345 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11348 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11349 structures passed in registers.
11351 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11353 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11354 white space which prevented compilation. Reported by DSK
11355 <dsk@student.unsw.edu.au>.
11357 2002-01-11 Michael Snyder <msnyder@redhat.com>
11359 * symfile.c (build_section_addr_info_from_section_tab):
11360 Use bfd access method instead of manipulating bfd directly.
11361 (syms_from_objfile): Ditto.
11362 (simple_overlay_update_1): Ditto.
11363 (simple_overlay_update): Ditto.
11364 (generic_load): Ditto.
11365 (overlay_unmapped_address): FIXME comment, bfd access methods.
11366 (sections_overlap): FIXME comment, bfd access methods.
11367 (pc_in_mapped_range): FIXME comment, bfd access methods.
11368 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11369 (section_is_mapped): FIXME comment, bfd access methods.
11370 (section_is_overlay): FIXME comment, bfd access methods.
11372 * symfile.c (generic_load): Whitespace and long line cleanups.
11373 Remove duplicate variable, change several local variables to
11374 more appropriate data types.
11375 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11377 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11379 From Peter Schauer:
11380 * language.c (longest_local_hex_string_custom): Use phex_nz to
11381 convert NUM to a hex string.
11383 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11385 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11387 Update Copyright year.
11389 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11391 * language.c (longest_raw_hex_string): Delete unused function.
11393 2002-01-11 Petr Sorfa <petrs@caldera.com>
11395 * MAINTAINERS (write-after-approval): Add myself.
11396 * dwarf2read.c (read_tag_string_type): Handling of
11398 (read_tag_string_type): FORTRAN fix to prevent propagation of
11400 (set_cu_language): Handling of DW_LANG_Fortran95
11402 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11404 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11405 GETPID(inferior_ptid).
11406 (store_inferior_registers): Likewise.
11408 2002-01-10 Jason Merrill <jason@redhat.com>
11410 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11413 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11415 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11416 and bfd/elf32-sh-nbsd.c.
11418 2002-01-10 Michael Snyder <msnyder@redhat.com>
11420 * NEWS: Mention --pid and corefile/proc-id behavior change.
11422 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11423 * gcore.c: Include cli/cli-decode.h instead of command.h.
11425 * main.c (captured_main): Add new command line option "--pid".
11426 If the second command line argument (following the symbol-file)
11427 begins with a digit, try to attach to it before trying to open
11429 (print_gdb_help): Document the "--pid" argument.
11431 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11433 * completer.c (command_completer): New function.
11435 * completer.h <command_completer>: Add prototype.
11437 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11438 completer for the "help" command.
11440 2002-01-09 Jason Merrill <jason@redhat.com>
11442 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11444 2002-01-09 Michael Snyder <msnyder@redhat.com>
11446 * i386-linux-nat.c (fill_fpxregset): Make global.
11447 (store_fpxregset): Ditto.
11449 * gregset.h (gdb_fpxregset_t): Define.
11450 (supply_fpxregset): Prototype.
11451 (fill_fpxregset): Prototype.
11453 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11455 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11457 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11458 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11459 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11461 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11463 * MAINTAINERS: Update target maintainer rules so that any
11464 Maintainer can approve a tested patch for a maintenance-only
11467 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11469 * MAINTAINERS (write-after-approval): Add myself.
11471 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11474 2002-01-08 Michael Snyder <msnyder@redhat.com>
11476 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11477 real name of the executable, rather than the /proc name.
11479 2002-01-03 Michael Snyder <msnyder@redhat.com>
11481 Implement a "generate-core-file" command in gdb, save target state.
11482 * gcore.c: New file. Implement new command 'generate-core-file'.
11483 Save a corefile image of the current state of the inferior.
11484 * linux-proc.c: Add linux-specific code for saving corefiles.
11485 * target.h (struct target_ops): Add new target vectors for saving
11486 corefiles; to_find_memory_regions and to_make_corefile_notes.
11487 (target_find_memory_regions): New macro.
11488 (target_make_corefile_notes): New macro.
11489 * target.c (update_current_target): Inherit new target methods.
11490 (dummy_find_memory_regions): New place-holder method.
11491 (dummy_make_corefile_notes): New place-holder method.
11492 (init_dummy_target): Initialize new dummy target vectors.
11493 * exec.c (exec_set_find_memory_regions): New function.
11494 Allow the exec_ops vector for memory regions to be taken over.
11495 (exec_make_note_section): New function, target vector method.
11496 * defs.h (exec_set_find_memory_regions): Export prototype.
11497 * procfs.c (proc_find_memory_regions): New function, corefile method.
11498 (procfs_make_note_section): New function, corefile method.
11499 (init_procfs_ops): Set new target vector pointers.
11500 (find_memory_regions_callback): New function.
11501 (procfs_do_thread_registers): New function.
11502 (procfs_corefile_thread_callback): New function.
11503 * sol-thread.c (sol_find_memory_regions): New function.
11504 (sol_make_note_section): New function.
11505 (init_sol_thread_ops): Initialize new target vectors.
11506 * inftarg.c (inftarg_set_find_memory_regions): New function.
11507 Allow to_find_memory_regions vector to be taken over.
11508 (inftarg_set_make_corefile_notes): New function.
11509 Allow to_make_corefile_notes vector to be taken over.
11510 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11511 interface layer if not target_has_execution (may be a corefile).
11512 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11513 * config/sparc/sun4sol2.mh: Ditto.
11514 * config/alpha/alpha-linux.mh: Ditto.
11515 * config/arm/linux.mh: Ditto.
11516 * config/i386/x86-64linux.mh: Ditto.
11517 * config/ia64/linux.mh: Ditto.
11518 * config/m68k/linux.mh: Ditto.
11519 * config/mips/linux.mh: Ditto.
11520 * config/powerpc/linux.mh: Ditto.
11521 * config/sparc/linux.mh: Ditto.
11523 2002-01-07 Michael Snyder <msnyder@redhat.com>
11525 * arm-linux-nat.c: Remove references to regcache.c internal data
11526 (registers[] and register_valid[]).
11528 2002-01-07 Michael Snyder <msnyder@redhat.com>
11530 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11531 so that attaching to a pid will automatically read the process's
11532 symbol file and shlibs.
11533 * Makefile.in: Add rule for linux-proc.o.
11534 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11535 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11536 * config/arm/linux.mh: Ditto.
11537 * config/i386/linux.mh: Ditto.
11538 * config/i386/x86-64linux.mh: Ditto.
11539 * config/ia64/linux.mh: Ditto.
11540 * config/m68k/linux.mh: Ditto.
11541 * config/mips/linux.mh: Ditto.
11542 * config/powerpc/linux.mh: Ditto.
11543 * config/sparc/linux.mh: Ditto.
11545 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11547 * win32-nat.c: Add i386-tdep.h dependency.
11549 2002-01-07 Michael Snyder <msnyder@redhat.com>
11551 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11552 instead of bfd_get_arch_size. Don't bail out just because
11553 there's no exec_bfd.
11555 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11556 * p-valprint.c (pascal_object_print_value): Ditto.
11557 * somread.c (som_symtab_read): Ditto.
11558 * symfile.c (simple_free_overlay_region_table): Ditto.
11559 * valops.c (value_assign): Ditto.
11561 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11562 use tilde_expand and strerror for opening save-tracepoints file.
11564 * thread-db.c (thread_db_new_objfile): Indendation fix.
11566 * infptrace.c (GDB_MAX_ALLOCA): New define.
11567 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11568 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11569 can be overridden with whatever value is appropriate to the host).
11570 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11571 alloca to allocate potentially large buffer.
11572 * rs6000-nat.c (child_xfer_memory): Ditto.
11573 * symm-nat.c (child_xfer_memory): Ditto.
11574 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11576 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11578 From Nick Clifton <nickc@redhat.com>
11579 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11581 2002-01-07 Michael Snyder <msnyder@redhat.com>
11583 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11584 Don't use exec_bfd if it's NULL.
11586 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11588 * valops.c (value_arg_coerce): Fix formatting.
11590 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11592 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11593 * gnu-nat.c: Ditto.
11595 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11597 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11598 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11599 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11600 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11601 z8k-coff have not been multi-arched. Update z8k-coff build
11604 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11606 * MAINTAINERS: Mark a29k target as obsolete.
11607 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11608 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11610 * NEWS: Note that a29k targets are obsolete.
11611 * a29k-tdep.c: Mark as obsolete.
11612 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11613 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11614 a29k-*-vxworks* targets as obsolete.
11615 * remote-adapt.c: Obsolete.
11616 * remote-eb.c: Obsolete.
11617 * remote-mm.c: Obsolete.
11618 * remote-udi.c: Obsolete.
11619 * config/a29k/a29k-udi.mt: Obsolete.
11620 * config/a29k/a29k.mt: Obsolete.
11621 * config/a29k/tm-a29k.h: Obsolete.
11622 * config/a29k/tm-vx29k.h: Obsolete.
11623 * config/a29k/vx29k.mt: Obsolete.
11625 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11627 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11628 with BFD_ENDIAN_BIG.
11630 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11632 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11633 * configure, config.in: Re-generate.
11634 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11635 * defs.h: Do not include <endian.h>.
11637 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11639 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11640 * config.in: Regenerate.
11641 * configure.in: Update copyright years.
11642 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11643 * configure: Regenerate.
11644 * i386bsd-nat.c: Update copyright years.
11645 (fill_gregset): Use regcache_collect.
11646 (fetch_inferior_registers): Only fetch integer registers
11647 if requested to do so. Add support for XMM registers
11648 using PT_GETXMMREGS.
11649 (store_inferior_registers): Only store integer registers
11650 if requested to do so. Add support for XMM registers
11651 using PT_SETXMMREGS.
11652 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11653 (store_inferior_registers): Remove.
11654 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11655 (fetch_elfcore_registers): New function.
11656 (i386nbsd_elfcore_fns): New.
11657 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11658 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11660 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11661 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11662 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11663 * config/i386/tm-nbsd.h: Update copyright years.
11664 (HAVE_SSE_REGS): Define.
11665 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11666 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11667 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11668 (SIGCONTEXT_PC_OFFSET): Remove.
11669 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11671 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11673 * configure.tgt: Remove powerpc-*-macos* target.
11674 * config/m68k/xm-mpw.h: Delete file.
11675 * config/xm-mpw.h: Delete file.
11676 * ser-mac.c: Delete file.
11677 * mpw-make.sed: Delete file.
11678 * mpw-config.in: Delete file.
11679 * mac-xdep.c: Delete file.
11680 * mac-gdb.r: Delete file.
11681 * mac-defs.h: Delete file.
11682 * mac-nat.c: Delete file.
11683 * config/powerpc/macos.mh: Delete file.
11684 * config/powerpc/macos.mt: Delete file.
11685 * config/powerpc/nm-macos.h: Delete file.
11686 * config/powerpc/tm-macos.h: Delete file.
11687 * source.c (openp, open_source_file): Remove obsolete code.
11688 * top.c (gdb_readline): Ditto.
11689 * utils.c (query): Ditto.
11690 * event-top.c (display_gdb_prompt): Ditto.
11691 * Makefile.in (ser-mac.o): Delete obsolete target.
11694 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11696 * defs.h (BIG_ENDIAN): Delete macro definition.
11697 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11698 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11699 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11700 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11701 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11702 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11703 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11704 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11705 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11706 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11707 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11708 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11709 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11710 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11711 * gdbarch.c: Re-generate.
11713 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11715 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11718 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11720 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11722 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11724 * value.h (value_ptr): Delete typedef.
11726 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11728 * i386nbsd-nat.c: Update copyright years.
11729 Include i386-tdep.h.
11731 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11733 * stabsread.c: Update copyright years.
11735 From Debashis Mahata <debashis.mahata@wipro.com>:
11736 (read_struct_fields): Deal with Sun C compiler erroneous stab
11737 output for structs and unions.
11740 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11742 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11745 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11747 * cp-abi.c: Fix whitespace.
11748 (baseclass_offset): New wrapper function.
11749 * cp-abi.h (baseclass_offset): Add prototype.
11750 (struct cp_abi_ops): Add baseclass_offset pointer.
11752 * valops.c (vb_match): Move to...
11753 * gnu-v2-abi.c (vb_match): here.
11754 * valops.c (baseclass_offset): Move to...
11755 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11757 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11759 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11760 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11761 * hpacc-abi.c (init_hpacc_ops): Likewise.
11763 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11765 * valops.c (find_overload_match): Accept obj as a
11766 reference parameter. Update it before returning.
11767 * value.h (find_overload_match): Update prototype.
11768 * eval.c (evaluate_subexp_standard): Pass object to
11769 find_overload_match by reference.
11771 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11773 * valarith.c: Replace value_ptr with struct value pointer. Remove
11774 register attribute from value declarations.
11777 * scm-lang.c (scm_lookup_name): Ditto.
11779 2002-01-03 Michael Snyder <msnyder@redhat.com>
11781 Abstract the functionality of iterating over mapped memory
11782 regions into a general purpose iterator function.
11783 * procfs.c (iterate_over_mappings): New function, general purpose
11784 iterator for memory sections.
11785 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11786 (solib_mappings_callback): New function, callback for above.
11787 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11788 (info_mappings_callback): New function, callback for above.
11790 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11792 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11794 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11795 * i386-tdep.c: Include "elf-bfd.h".
11796 (process_note_abi_tag_sections): New function.
11797 (i386_gdbarch_init): Add code to recognize various OS/ABI
11800 * maint.c (_initialize_maint_cmds): Add missing \ in
11803 For older changes see ChangeLog-2001
11809 version-control: never