1 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3 * config/i386/nm-i386sco.h: Add protection against
4 multiple-inclusion. Include "i386/nm-i386v.h".
5 (REGISTER_U_ADDR): Remove define.
6 (i386_register_u_addr): Remove prototype.
8 2002-10-04 Michael Snyder <msnyder@redhat.com>
10 * m32r-stub.c (handle_exception): Make sure exception is "trap"
11 before treating it as a single-step event.
13 2002-10-03 Adam Fedor <fedor@gnu.org>
15 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
16 (objc_demangle): Remove assignment in if statements, Replace
18 (add_msglist): Likewise.
19 (end_msglist): Likewise.
20 (complare_selectors): Likewise.
21 (selectors_info): Likewise.
22 (compare_classes): Likewise.
23 (classes_info): Likewise.
24 (print_object_command): Likewise.
25 (find_objc_msgcall_submethod): Replace PTR with void *.
26 * objc-lang.h: Remove check for __STDC__.
28 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
30 * ui-out.h (ui_out_field_fmt_int): New prototype.
31 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
32 of field width and alignment.
33 * stack.c (print_frame_info_base): When printing frame level, use
34 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
37 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
39 * MAINTAINERS: Add self to Write After Approval list.
41 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
43 * infcmd.c (interrupt_target_command_wrapper): Delete.
44 (interrupt_target_command): Make non static.
45 (nofp_registers_info): Make static.
46 * stack.c (return_command_wrapper): Delete.
47 (return_command): Make non static.
49 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
51 * event-top.c (gdb_setup_readline): New function. Code moved from
52 _initialize_event_loop().
53 (_initialize_event_loop): Call gdb_setup_readline().
55 2002-10-02 Andrew Cagney <ac131313@redhat.com>
57 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
58 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
59 * gdbarch.h, gdbarch.c: Re-generate.
61 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
64 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
66 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
67 of fill_in_vptr_fieldno.
69 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
71 * inferior.h (registers_info, stepi_command, nexti_command,
72 continue_command, interrupt_target_command): Export from infcmd.c.
73 * frame.h (args_info, selected_frame_level_changed_hook,
74 return_command): Export from stack.c.
75 * v850ice.c (stepi_command, nexti_command, continue_command): use
76 prototypes from inferior.h.
77 * tracepoint.c (registers_info, args_info, locals_info): Use
78 prototypes from frame.h and inferior.h.
79 * Makefile.in (mi-main.o): Add dependency on frame.h.
81 2002-10-02 Andrew Cagney <ac131313@redhat.com>
83 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
84 value in register 3 adjusted by ppc_gp0_regnum.
86 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
88 2002-10-02 Marko Mlinar <markom@opencores.org>
90 * MAINTAINERS: Add myself to the Write After Approval list.
92 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
94 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
95 of the section for the N64 ABI, fixed.
97 * config/mips/tm-irix6.h: Include solib.h.
99 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
101 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
104 2002-10-01 Andrew Cagney <ac131313@redhat.com>
106 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
107 and that "mi0" syntax has been removed.
109 2002-09-30 David Carlton <carlton@math.stanford.edu>
111 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
112 * ppc-sysv-tdep.c: #include "gdb_string.h".
113 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
116 2002-10-01 Andrew Cagney <ac131313@redhat.com>
118 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
119 "vrsave"'s register number.
121 2002-09-30 Andrew Cagney <ac131313@redhat.com>
123 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
124 use frame_unwind_signed_register to obtain the PC.
125 (mips_frame_chain): Handle a generic dummy frame.
126 (mips_init_extra_frame_info): When a generic dummy frame, don't
127 re-compute the frame base.
128 (mips_pop_frame): Handle generic dummy frames.
129 (mips_gdbarch_init): When generic dummy frames, set
130 use_generic_dummy_frames, push_dummy_frame to
131 generic_push_dummy_frame, pc_in_call_dummy to
132 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
133 generic_save_dummy_frame_tos.
135 2002-09-30 Andrew Cagney <ac131313@redhat.com>
137 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
138 against TOP when TOP was explictly set.
139 (generic_push_dummy_frame): Set TOP to zero.
141 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
143 * event-loop.c (start_event_loop): Rename variable 'result' to
144 'gdb_result', to avoid conflicts with upcoming intepreters changes.
146 2002-09-30 Keith Seitz <keiths@redhat.com>
148 * gdb-events.sh (selected_thread_changed): New event.
149 * gdb-events.c: Regenerated.
150 * gdb-events.h: Regenerated.
152 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
154 * MAINTAINERS: Add self to Write After Approval list.
156 2002-09-30 Fernando Nasser <fnasser@redhat.com>
158 * disasm.c: New file.
159 * disasm.h: New file.
160 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
161 (compare_lines): Ditto.
163 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
165 (do_assembly_only): Ditto.
166 (do_disassembly): Renamed to gdb_disassembly and moved to
167 disasm.c. Sdded uiout argument.
168 * Makefile.in: Add new files. Reorder SFILES list. Update
169 dependencies. Include libgdb.a later in the insight executable.
171 2002-09-29 Andrew Cagney <ac131313@redhat.com>
173 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
174 bfd/elf64-alpha-fbsd.c.
176 2002-09-29 Andrew Cagney <ac131313@redhat.com>
178 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
181 2002-09-29 Andrew Cagney <ac131313@redhat.com>
183 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
185 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
187 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
188 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
189 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
190 (S_msg_sig_post_reply): Ditto.
192 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
194 * sh-tdep.c (sh_use_struct_convention): Use definition according
196 (sh_push_arguments): Store in register with correct endianess.
197 (sh_default_store_return_value): Ditto.
198 (sh_gdbarch_init): Set sizeof long double to 8.
200 2002-09-27 Mark Kettenis <kettenis@gnu.org>
202 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
203 Fix some whitespace problems.
205 2002-09-27 David Carlton <carlton@math.stanford.edu>
207 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
208 (mcore-tdep.o): Ditto.
209 (ns32k-tdep.o): Ditto.
210 (ns32knbsd-tdep.o): Ditto.
213 * cris-tdep.c: #include "gdb_string.h"
214 * mcore-tdep.c: Ditto.
215 * ns32k-tdep.c: Ditto.
216 * ns32knbsd-tdep.c: Ditto.
220 2002-09-27 David Carlton <carlton@math.stanford.edu>
222 * config/djgpp/fnchange.lst: Add entries for
223 gdb/testsuite/gdb.c++/m-static files.
225 2002-09-27 Jim Wilson <wilson@redhat.com>
227 * MAINTAINERS: Add myself to the Write After Approval list.
229 2002-09-26 Martin M. Hunt <hunt@redhat.com>
231 * mips-tdep.c (find_proc_desc): Initialize startaddr.
234 2002-09-26 Andrew Cagney <ac131313@redhat.com>
236 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
239 2002-09-26 Andrew Cagney <ac131313@redhat.com>
241 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
242 (rs6000_struct_return_address): Delete variable.
243 (rs6000_store_struct_return): Update.
244 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
245 deprecated_extract_struct_value_address.
246 (rs6000_frame_align): New function.
247 (rs6000_gdbarch_init): Set frame_align.
249 2002-09-26 Andrew Cagney <ac131313@redhat.com>
251 From Grace Sainsbury <graces@redhat.com>:
252 * Makefile.in (gdbtk-main.o): New target.
255 (main.o): Update dependencies.
256 (gdb$(EXEEXT)): Add gdb.o.
257 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
258 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
259 (SUBDIR_GDBTK_CLEAN): Set.
260 (install-gdbtk): Install the insight binary.
261 (uninstall-gdbtk): New target.
262 (all-gdbtk, clean-gdbtk): New rule.
263 * top.c (use_windows): Default to zero.
264 * main.c: Include "main.h".
266 (struct captured_main_args): Delete.
267 (gdb_main): New function.
271 2002-09-25 Andrew Cagney <cagney@redhat.com>
273 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
274 (frame_map_regnum_to_name): New function.
275 (frame_map_name_to_regnum): New function.
276 * frame.h (frame_map_name_to_regnum): Declare.
277 (frame_map_regnum_to_name): Declare.
278 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
279 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
280 * parse.c: Do not include "builtin-regs.h".
281 (target_map_name_to_register): Delete function.
282 (write_dollar_variable): Use frame_map_name_to_regnum.
283 * parser-defs.h (target_map_name_to_register): Delete declaration.
284 * expprint.c: Include "frame.h".
285 (print_subexp): Use frame_map_regnum_to_name.
286 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
287 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
289 2002-09-25 Andrew Cagney <ac131313@redhat.com>
291 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
292 wasn't saved, and the next innermost frame is a dummy, return the
293 dummy frame's link register.
295 2002-09-24 Jim Blandy <jimb@redhat.com>
298 * main.c (captured_main): Add a `break' after the case for 'b'.
300 2002-09-24 Keith Seitz <keiths@redhat.com>
302 * varobj.c (c_type_of_child): Use get_target_type instead
305 2002-09-22 Fernando Nasser <fnasser@redhat.com>
307 * source.c (get_current_or_default_source_symtab_and_line): Remove
309 (set_default_source_symtab_and_line): New function. Attempts to
310 determine a source file to list lines from if one is not currently
312 (get_current_source_symtab_and_line): Initialize sal.pc and
314 (set_current_source_symtab_and_line): Mark argument as const.
315 * source.h: Update declarations and comments.
316 * linespec.c (decode_line_1): Replace call to removed routine above.
317 * stack.c (print_frame_info_base): Ditto.
318 * cli/cli-cmds.c (edit_command): Ditto.
319 (list_command): Ditto.
321 2002-09-22 Fernando Nasser <fnasser@redhat.com>
323 * source.c (get_current_or_default_source_symtab_and_line): Initialize
324 sal.pc and sal.end fields.
325 (get_current_or_default_source_symtab_and_line): Ditto.
326 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
327 so we do not cause a new source symtab to be searched for (reverting an
328 unintentional change from the 2002-09-20 patch).
329 * scm-lang.c (scm_unpac): Ditto.
331 2002-09-21 Andrew Cagney <cagney@redhat.com>
333 * complaints.c (symfile_explanations): Remove new-line from
334 ``isolated_message''.
335 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
336 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
338 2002-09-20 Nick Clifton <nickc@redhat.com>
340 * NEWS: Announce that V850EA ISA is no longer supported.
341 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
343 2002-09-20 David Carlton <carlton@math.stanford.edu>
345 * Makefile.in (c-lang.o): Correct dependencies.
346 (utils.o): Gather dependencies.
348 * c-lang.c: #include "gdb_string.h"
350 2002-09-20 Fernando Nasser <fnasser@redhat.com>
352 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
353 * cli/cli-cmds.c (list_command): New function. Implements the new
355 (_init_cli_cmds): Add new command definition.
356 * gdb.1: Document edit command.
357 * doc/gdb.texinfo: Document edit command.
359 2002-09-20 Fernando Nasser <fnasser@redhat.com>
361 * source.c: Make global variables current_source_symtab and
362 current_source_line static.
363 (list_command): Moved to cli/cli-cmds.c.
364 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
365 (get_first_line_listed): New accessor function.
366 (get_lines_to_list): New accessor function.
367 (get_current_source_symtab_and_line): New function. Retrieves the
368 position in the source code that we consider current.
369 (get_current_or_default_source_symtab_and_line): New function.
370 Like the above but attempts to determine a default position if one
371 is not currently defined.
372 (set_current_source_symtab_and_line): New function. Sets the source
373 code position considered current and returns the previously set one.
374 (clear_current_source_symtab_and_line): Reset stored information about
375 a current source line.
376 (_initialize_source): Remove registration for the "list" command and
378 * source.h: Add declarations for the new functions above.
379 * symtab.h: Remove declarations for the global variables mentioned
381 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
382 obtain current source line.
383 * linespec.c (decode_line_1): Ditto.
384 * macroscope.c (default_macro_scope): Ditto.
385 * scm-lang.c (scm_unpac): Ditto.
386 * stack.c (print_frame_info_base): Ditto.
387 * symfile.c (clear_symtab_users): Ditto.
388 * symtab.c (decode_line_spec): Ditto.
389 * cli/cli-cmds.c (list_command): Moved here from source.c.
390 (ambiguous_line_spec): Moved here from source.c.
391 (_init_cli_cmds): Add definition for "list" and its alias.
392 * Makefile.in: Update dependencies.
394 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
396 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
397 with what gcc thinks is correct.
399 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
401 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
402 multiple register push instruction.
404 2002-09-19 Jim Blandy <jimb@redhat.com>
406 Add support for distinct host and target character sets.
407 * charset.c, charset.h: New files.
408 * c-exp.y: #include "charset.h".
409 (yylex): Convert character and string literals to the target
410 character set, before returning them as the semantic value of the
412 * c-lang.c: #include "charset.h".
413 (c_emit_char): Use charset-specific methods to recognize
414 characters with backslash escape forms, to decide which characters
415 to print literally and which to print using numeric escape
416 sequences, and to convert target characters to host characters
418 * utils.c: #include "charset.h".
419 (no_control_char_error): New function.
420 (parse_escape): Use charset-specific methods to recognize
421 backslash escapes, parse `control character' notation, and convert
422 characters from the host character set to the target character set.
423 * configure.in: Set the default host character set.
424 Check where to find iconv, and what its argument types might be.
425 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
426 * Makefile.in (SFILES): List charset.c.
427 (COMMON_OBS): List charset.o.
428 (charset.o): New rule.
429 (charset_h): New header dependency variable.
430 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
431 (LIBICONV): New variable, set by configure.
432 (CLIBS): Include $(LIBICONV) here.
433 * aclocal.m4, config.in, configure: Regenerated.
435 2002-09-19 Joel Brobecker <brobecker@gnat.com>
437 * ada-exp.y: Add missing semicolons to end rules. Fixes a
440 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
442 * gdb_mbuild.sh: New file.
444 2002-09-19 Andrew Cagney <ac131313@redhat.com>
446 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
448 2002-09-18 Andrew Cagney <ac131313@redhat.com>
450 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
451 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
452 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
453 valops.c, value.h: Revert previous change.
455 2002-09-18 Michael Snyder <msnyder@redhat.com>
457 Preliminary support for Objective-C:
458 * defs.h (language_objc): New enum value.
459 (puts_filtered_tabular): Declaration only, exported from utils.c.
460 (skip_quoted): Delete, declared in completer.h.
461 * c-exp.y: Include completer.h.
464 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
465 New operator enum values.
466 * language.h (CAST_IS_CONVERSION): Test for language_objc.
467 * language.c (binop_result_type): Handle language_objc case.
468 (integral_type, character_type, string_type, boolean_type,
469 structured_type, binop_type_check): Ditto.
470 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
471 (struct objc_specific): Add to general_symbol_info.
472 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
473 (SYMBOL_DEMANGLED_NAME): Handle objc case.
474 * parser-defs.h (struct objc_class_str): New struct type.
475 (start_msglist, end_msglist, add_msglist): Declaration only,
476 exported from objc-lang.c.
477 * value.h (value_of_local, value_nsstring,
478 call_function_by_hand_expecting_type): Exported from valops.c.
479 * valops.c (find_function_addr): Export.
480 (call_function_by_hand_expecting_type): New function.
481 (value_of_local): New function.
482 * symfile.c (init_filename_language_table): Add ".m" extension
484 * utils.c (puts_filtered_tabular): New function.
485 (fprintf_symbol_filtered): Add objc demangling support (disabled).
486 (set/show demangle): Extend help-string to refer to ObjC.
487 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
488 * stabsread.c (symbol_reference_defined): Objective-C symbols
489 may contain colons: make allowances when scanning stabs strings
491 (objc_find_colon): New function.
492 * printcmd.c (address_info): If language == objc then print
493 "self" instead of "this".
494 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
495 OP_NSSTRING, and OP_SELF.
496 (prefixify_subexp): Ditto.
497 * source.c (print_source_lines): Mention objc in comment.
498 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
501 2002-09-18 Andrew Cagney <ac131313@redhat.com>
503 * complaints.h: Update copyright.
504 (struct complaints): Declare.
505 (struct complaint): Make `message' constant.
506 (internal_complaint): Declare.
507 (complaint): Declare.
508 (complaint_root): Delete declaration.
509 (symfile_complaints): Delete declaration.
510 (struct complaints): Add opaque declaration.
511 (clear_complaints): Add a complaints parameter.
512 * complaints.c: Update copyright.
513 (enum complaint_series): Define.
514 (complaint_root): Delete.
515 (struct complaints): Define.
516 (complaint_sentinel, symfile_complaint_book): New variables.
517 (symfile_explanations, symfile_complaints): New variables.
519 (get_complaints): New function.
520 (vcomplaint): New function.
521 (complaint): New function.
522 (internal_complaint): New function.
523 (complain): Call vcomplain with symfile_complaint.
524 (clear_complaints): Rewrite.
525 (_initialize_complaints): Use add_setshow_command.
526 * Makefile.in (complaints.o): Update dependencies.
527 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
528 to call to clear_complaints.
529 (new_symfile_objfile, reread_symbols): Ditto.
530 (oldsyms_complaint): Delete.
531 (empty_symtab_complaint, unknown_option_complaint): Delete.
532 (free_named_symtabs): Use complaint instead of complain.
534 2002-09-18 Michael Snyder <msnyder@redhat.com>
536 Contributed by Apple Computer, Inc. Merged with current sources
537 by Adam Fedor <fedor@doc.com> [cagney].
539 * objc-lang.c: First clean-up round: comments, indentation.
540 * objc-lang.h: Ditto.
541 * objc-lang.y: Ditto.
543 2002-09-18 Andrew Cagney <ac131313@redhat.com>
545 * maint.c (maintenance_internal_error): Print the parameter as the
547 (maintenance_internal_warning): New function.
548 (_initialize_maint_cmds): Add command `maint internal-warning'.
550 * defs.h (internal_warning, internal_vwarning): Declare.
551 * utils.c (struct internal_problem): Define.
552 (internal_vproblem): New function.
553 (internal_warning): New function.
554 (internal_vwarning): New function.
555 (internal_warning_problem, internal_error_problem): New variables.
556 (internal_verror): Just call internal_vproblem.
558 2002-09-18 Michael Snyder <msnyder@redhat.com>
560 * objc-lang.c: New file, support for Objective-C.
561 Preliminary check-in, not yet integrated into gdb.
562 * objc-lang.h: New file.
563 * objc-exp.y: New file.
565 2002-09-18 Andrew Cagney <ac131313@redhat.com>
567 * infrun.c (signal_stop_update): Convert definition to ISO C.
568 (signal_print_update): Ditto.
569 (signal_pass_update): Ditto.
570 * inflow.c (terminal_save_ours): Ditto.
572 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
575 * config/djgpp/fnchange.lst: Handle name clashes between
576 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
579 * i386-linux-tdep.h: Fix tipo.
581 2002-09-18 Adam Fedor <fedor@gnu.org>
583 * MAINTAINERS: Add myself to the Write After Approval list.
585 2002-09-18 Jim Blandy <jimb@redhat.com>
587 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
588 texthigh and textlow to reader-specific structs caused
589 objfile_relocate to miss them. This is fixable, but the work that
590 the change was supposed to prepare GDB for never got done anyway.
592 2002-09-18 David Carlton <carlton@math.stanford.edu>
594 * MAINTAINERS: Alphabetize Write After Approval list.
596 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
599 * values.c (value_static_field): Call read_var_value.
601 2002-09-18 Andrew Cagney <ac131313@redhat.com>
603 * valops.c (hand_function_call): Align the initial stack pointer
604 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
605 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
607 * mips-tdep.c (mips_frame_align): New function.
608 (mips_gdbarch_init): Set frame_align.
609 * gdbarch.sh (FRAME_ALIGN): New method.
610 * gdbarch.h, gdbarch.c: Re-generate.
612 2002-09-18 Michal Ludvig <mludvig@suse.cz>
614 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
617 2002-09-17 Andrew Cagney <ac131313@redhat.com>
619 * NEWS: Mention that MIPS $fp behavior changed.
620 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
621 reference to FP_REGNUM.
622 (mipsnbsd_cannot_store_register): Ditto.
623 * mips-linux-nat.c: Update copyright.
624 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
625 (mips_linux_cannot_store_register): Ditto.
626 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
627 * config/mips/tm-mips.h: Update copyright.
628 (FP_REGNUM): Delete macro.
629 (MIPS_REGISTER_NAMES): Replace "fp" with "".
630 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
631 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
632 (mips_r3041_reg_names, mips_r3051_reg_names)
633 (mips_r3081_reg_names): Replace "fp" with "".
636 2002-09-17 Theodore A. Roth <troth@verinet.com>
638 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
639 generic_read_register_dummy() (PR gdb/703).
640 (avr_push_return_address): #if 0 out unused vars.
641 (avr_gdbarch_init): Enable use of avr_push_return_address().
643 2002-09-17 Michael Snyder <msnyder@redhat.com>
645 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
646 RTE will take care of it.
648 2002-09-17 Andrew Cagney <ac131313@redhat.com>
650 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
651 invalid, return SP_REGNUM.
653 2002-09-17 Michael Snyder <msnyder@redhat.com>
655 * mips-tdep.c (mips_pop_frame): Read saved values of floating
656 point registers without sign extension.
658 2002-09-17 Andrew Cagney <cagney@redhat.com>
660 * blockframe.c (deprecated_read_register_dummy): Rename
661 generic_read_register_dummy.
662 * frame.c (frame_unwind_signed_register): New function.
663 (frame_unwind_unsigned_register): New function.
664 * frame.h (frame_unwind_signed_register): Declare.
665 (frame_unwind_unsigned_register): Declare.
666 (deprecated_read_register_dummy): Rename
667 generic_read_register_dummy.
669 * h8300-tdep.c (h8300_frame_chain): Update.
670 (h8300_frame_saved_pc): Update.
671 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
672 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
673 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
674 (s390_frame_chain): Update.
675 * v850-tdep.c (v850_find_callers_reg): Update.
676 (v850_frame_saved_pc): Update.
677 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
678 (m32r_find_callers_reg): Update.
679 (m32r_frame_saved_pc): Update.
680 * sh-tdep.c (sh_find_callers_reg): Update.
681 (sh64_get_saved_pr): Update.
682 (sh_init_extra_frame_info): Update.
683 (sh_init_extra_frame_info): Update.
684 (sh64_init_extra_frame_info): Update.
685 (sh64_init_extra_frame_info): Update.
686 * mcore-tdep.c (mcore_find_callers_reg): Update.
687 (mcore_frame_saved_pc): Update.
688 (mcore_init_extra_frame_info): Update.
689 * i386-tdep.c (i386_frame_saved_pc): Update.
690 * ia64-tdep.c (ia64_frame_saved_pc): Update.
691 (ia64_init_extra_frame_info): Update.
692 (ia64_init_extra_frame_info): Update.
693 * d10v-tdep.c (d10v_frame_saved_pc): Update.
694 * cris-tdep.c (cris_init_extra_frame_info): Update.
695 * avr-tdep.c (avr_frame_chain): Update.
696 (avr_init_extra_frame_info): Update.
697 (avr_frame_saved_pc): Update.
698 * arm-tdep.c (arm_find_callers_reg): Update.
699 (arm_init_extra_frame_info): Update.
700 (arm_frame_saved_pc): Update.
702 2002-09-17 Tom Tromey <tromey@redhat.com>
704 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
707 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
709 * MAINTAINERS: Remove "non multi-arched" text from h8300.
710 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
712 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
715 2002-09-16 Joel Brobecker <brobecker@gnat.com>
717 * osfsolib.c: Remove file, replaced by solib-osf.c.
718 * Makefile.in: Remove compilation rules for osfsolib.c.
720 2002-09-16 David Carlton <carlton@math.stanford.edu>
722 * cp-valprint.c (cp_print_class_method): Correct args to
723 check_stub_method_group.
725 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
727 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
728 `set architecture'. Unify naming convention of functions.
729 (h8300_skip_prologue): Improve prologue analysis.
730 (h8300_push_arguments): Rewritten to more closely match GCC's
731 bizarre argument-passing behavior, along with the comment describing
733 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
734 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
735 sim, remote-e7000.c, remote-hms.c and remote.c
737 2002-09-15 Mark Kettenis <kettenis@gnu.org>
739 * i386-tdep.c (gdb_print_insn_i386): Removed.
740 (i386_print_insn): New function.
741 (i386_gdbarch_init): Set print_insn to i386_print_insns.
742 (_initialize_i386_tdep): Don't initialize tm_print_insn and
745 2002-09-14 Mark Kettenis <kettenis@gnu.org>
747 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
750 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
752 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
753 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
754 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
756 2002-09-13 Christopher Faylor <cgf@redhat.com>
758 * win32-nat.c (child_create_inferior): Honor 'tty' command.
760 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
762 * gdbtypes.c (check_stub_method): Make static.
763 (check_stub_method_group): New function.
764 * gdbtypes.h: Update prototypes.
765 * cp-support.c: New file.
766 * cp-support.h: New file.
768 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
769 (update_method_name_from_physname): New function.
770 (read_member_functions): Correct method names for operators
771 and v3 constructors/destructors. Separate v2 constructors and
773 * Makefile.in (stabsread.o): Update dependencies.
774 (SFILES): Add cp-support.c.
775 (COMMON_OBS): Add cp-support.o.
776 (cp_support_h, cp-support.o): Add.
778 * cp-valprint.c (cp_print_class_method): Call
779 check_stub_method_group instead of check_stub_method. Remove
781 * p-valprint.c (pascal_object_print_class_method): Likewise.
782 * valops.c (search_struct_method): Likewise.
783 (find_method_list, value_struct_elt_for_reference): Likewise.
785 2002-09-13 Andrew Cagney <cagney@redhat.com>
787 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
788 * gdbarch.h, gdbarch.c: Regenerate.
790 2002-09-13 Andrew Cagney <ac131313@redhat.com>
792 * frame.c (find_saved_register): Delete function.
793 * frame.h (find_saved_register): Delete declaration.
796 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
798 * mips-tdep.c (read_next_frame_reg): Re-hack using
799 frame_register_unwind.
801 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
803 * mips-tdep.c (mips_get_saved_register): Re-hack using
804 frame_register_unwind.
806 2002-09-12 Joel Brobecker <brobecker@gnat.com>
808 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
809 vector. Will be useful for Interix.
810 * gdbarch.h, gdbarch.c: Regenerate.
812 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
813 name of the malloc function by NAME_OF_MALLOC.
815 2002-09-12 Joel Brobecker <brobecker@gnat.com>
817 * value.h (find_function_in_inferior): Add const keyword to
818 one of the parameters. Allows us to invoke this function with
820 * valops.c (find_function_in_inferior): Likewise.
822 2002-09-12 Joel Brobecker <brobecker@gnat.com>
824 * exec.c (xfer_memory): Fix compilation warning with old versions
826 * tracepoint.c (trace_find_tracepoint_command): Likewise.
828 2002-09-12 David Carlton <carlton@math.stanford.edu>
830 * symtab.h: Run through gdb_indent.h.
831 Add 2002 to Copyright year list.
833 2002-09-12 Alan Modra <amodra@bigpond.net.au>
835 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
837 * MAINTAINERS: Add myself to write after approval list.
839 2002-09-11 J. Brobecker <brobecker@gnat.com>
841 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
843 2002-09-11 J. Brobecker <brobecker@gnat.com>
845 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
848 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
850 * procfs.c (do_detach): Clear current signal, not just fault.
851 Corrects problem with breakpoint trap signal leaking to detached
854 2002-09-10 Michael Snyder <msnyder@redhat.com>
856 * buildsym.c (finish_block): Protect against null pointer.
858 2002-09-10 Andrew Cagney <cagney@redhat.com>
860 * infcmd.c (default_print_registers_info): Send all output to
861 ``file'' instead of ``gdb_stdout''.
863 2002-09-10 Michael Snyder <msnyder@redhat.com>
865 * mips-tdep.c (mips_extract_struct_value_address): Make val a
866 LONGEST, and use signed register read (addresses are sign-
869 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
871 * event-loop.c (gdb_do_one_event): Make public.
872 * event-loop.h (gdb_do_one_event): Declare.
874 2002-09-10 Jeff Law <law@redhat.com>
876 * infttrace.c (child_resume): Simplify and rework to avoid
879 2002-09-09 Fred Fish <fnf@intrinsity.com>
881 * printcmd.c (print_scalar_formatted): "len" is the number of
882 target bytes, NOT the number of target bits.
884 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
886 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
887 * top.c (init_main): Set rl_terminal_name.
889 2002-09-08 Aidan Skinner <aidan@velvet.net>
891 * ada-lang.c (ada_array_bound, ada_type_match,
892 _initialize_ada_language): Fix K&R definitions.
893 * ada-tasks.c (get_current_task): Fix K&R definitions.
894 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
896 2002-09-07 Christopher Faylor <cgf@redhat.com>
898 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
901 2002-09-06 Mark Kettenis <kettenis@gnu.org>
903 * i386-tdep.c (i386_register_virtual_type,
904 i386_register_convertible, i386_register_convert_to_virtual,
905 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
906 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
907 (i386_gdbarch_init): Fix comment. Add comments on calls that set
908 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
909 Don't set push_arguments twice.
911 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
912 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
913 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
914 sigtramp_end to NULL.
915 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
917 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
919 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
922 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
923 * gdbarch.h, gdbarch.c: Re-generate.
924 * blockframe.c (find_pc_sect_partial_function): Convert to use
925 SIGTRAMP_START_P predicate.
927 2002-09-05 Michael Snyder <msnyder@redhat.com>
929 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
930 generic_dummy_frame method and old method. Also distinguish
931 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
932 (arm_extract_return_value): Use new regcache method.
934 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
935 adjustment that doesn't conform to the ABI.
936 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
937 saved regcache, not from current regcache.
939 2002-09-05 Andrew Cagney <ac131313@redhat.com>
941 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
944 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
946 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
947 if arm_apcs_32 is false.
949 2002-09-04 Andrew Cagney <ac131313@redhat.com>
951 GDB 5.3 branch created.
953 2002-09-03 Theodore A. Roth <troth@verinet.com>
955 * gdb/avr-tdep.c (avr_gdbarch_init): Use
956 generic_unwind_get_saved_register.
958 2002-09-03 David Carlton <carlton@math.stanford.edu>
960 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
961 argument (PR gdb/653). Update call to smash_to_method_type.
962 (read_structure_scope): Update call to dwarf2_add_member_fn.
964 2002-09-03 Michal Ludvig <mludvig@suse.cz>
966 * x86-64-linux-tdep.c: Include gdb_string.h
967 * x86-64-linux-nat.c: Ditto.
969 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
971 * ada-exp.y (yyname, yyrule): Remap global variables that appear
972 when YYDEBUG is set to 1.
975 * jv-exp.y: Likewise.
976 * m2-exp.y: Likewise.
979 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
981 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
983 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
984 solib_svr4_fetch_link_map_offsets to
985 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
986 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
987 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
988 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
989 solib-svr4.o, and solib-legacy.o.
990 * config/i386/tm-nbsd.h: Include solib.h.
992 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
994 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
995 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
996 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
997 comment noting that this needs its own target configuration.
998 * config/i386/nbsd.mt: New file.
999 * config/i386/nbsdaout.mt: Remove.
1000 * config/i386/nbsdelf.mt: Ditto.
1001 * config/i386/tm-nbsdaout.h: Ditto.
1003 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1005 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1006 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1007 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1009 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1010 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1011 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1013 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1015 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1016 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1017 * i386-tdep.h (i386bsd_init_abi): New prototype.
1018 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1019 function declaration.
1020 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1021 for NetBSD-a.out or NetBSD-ELF.
1022 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1023 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1024 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1025 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1027 (i386nbsd_pc_in_sigtramp): New function.
1028 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1029 i386nbsd_pc_in_sigtramp.
1030 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1031 and i386nbsdelf_init_abi OS ABI handlers.
1032 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1033 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1035 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1037 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1038 registers if the target really has them.
1040 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1042 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1045 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1047 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1049 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1050 (alphanbsd_skip_sigtramp_frame): New functions.
1051 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1052 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1053 to alphanbsd_sigcontext_addr.
1055 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1057 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1059 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1060 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1061 nbsd_pc_in_sigtramp.
1062 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1063 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1064 * nbsd-tdep.c: Include gdb_string.h.
1065 (nbsd_pc_in_sigtramp): New function.
1066 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1067 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1068 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1069 ppcnbsd_pc_in_sigtramp.
1070 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1071 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1072 shnbsd_pc_in_sigtramp.
1073 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1074 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1075 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1077 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1079 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1080 watchpoints to NULL.
1081 (insert_breakpoints): set val field of watchpoints if NULL.
1084 2002-08-29 Jim Blandy <jimb@redhat.com>
1086 * symtab.c (lookup_symbol_aux): In the cases where we find a
1087 minimal symbol of an appropriate name and use its address to
1088 select a symtab to read and search, use `name' (as passed to us)
1089 as the demangled name when searching the symtab's global and
1090 static blocks, not the minsym's name.
1092 2002-08-29 Keith Seitz <keiths@redhat.com>
1094 * stack.c (print_frame_info_base): Always set current_source_symtab
1095 and current_source_line.
1097 2002-08-29 Donn Terry <donnte@microsoft.com>
1099 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1101 2002-08-28 Keith Seitz <keiths@redhat.com>
1103 * stack.c (select_frame): Add FIXME concerning selected-frame
1105 (select_frame_command): Send selected-frame-level-changed
1106 event notification, but only if the level actually changed.
1107 (up_silently_base): Add selected-frame-level-changed event
1109 (down_silently_base): Likewise.
1111 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1113 * Makefile.in: Update dependencies for all gdb/*.c files.
1115 2002-08-27 Tom Tromey <tromey@redhat.com>
1117 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1118 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1119 Update dependencies.
1120 * i387-tdep.c: Include gdb_string.h.
1121 * osabi.c: Likewise.
1122 * i386-linux-nat.c: Likewise.
1123 * lin-lwp.c: Likewise.
1124 * ax-gdb.c: Likewise.
1125 * signals/signals.c: Likewise.
1126 * jv-valprint.c: Likewise.
1127 * p-lang.c: Likewise.
1128 * c-valprint.c: Likewise.
1129 * cp-abi.c: Likewise.
1131 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1133 * cli/cli-script.h (copy_command_lines): Export.
1134 * breakpoint.c: Include cli/cli-script.h.
1135 * Makefile.in (breakpoint.o): Update dependencies.
1137 2002-08-26 Michael Snyder <msnyder@redhat.com>
1139 * breakpoint.c (insert_breakpoints): Protect all references
1140 to 'process_warning'. Shorten long lines.
1142 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1144 * cli/cli-script.c (copy_command_lines): New function.
1145 * defs.h (copy_command_lines): Export.
1146 * testsuite/gdb.base/commands.exp: New tests for commands
1147 attached to a temporary breakpoint, and for commands that
1148 delete the breakpoint they are attached to.
1150 2002-08-26 Michael Snyder <msnyder@redhat.com>
1152 * breakpoint.c (bpstat_stop_status): Instead of copying the
1153 pointer to the breakpoint commands struct, make a new copy
1154 of the struct and point to that.
1155 (bpstat_clear): Free the commands struct.
1156 (bpstat_clear_actions): Free the commands struct.
1157 (bpstat_do_actions): Free the command actions. Also execute
1158 the local cleanups, instead of deleting them.
1159 (delete_breakpoint): Leave the commands field of the bpstat
1160 chain alone -- it will be freed later.
1162 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1164 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1165 deleted in 2002-08-20 commit. This function is still used by
1168 2002-08-26 Keith Seitz <keiths@redhat.com>
1170 * gdb-events.sh: Add selected-frame-level-changed event.
1171 * gdb-events.c: Regenerated.
1172 * gdb-events.h: Regenerated.
1174 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1177 * inflow.c (terminal_save_ours): New function to save terminal
1179 * inferior.h (terminal_save_ours): Declare.
1180 * target.c (debug_to_terminal_save_ours): New function.
1181 (cleanup_target): Defaults to_terminal_save_ours.
1182 (update_current_target): Inherit to_terminal_save_ours.
1183 (setup_target_debug): Set to_terminal_save_ours.
1184 * target.h (target_terminal_save_ours): New to save terminal settings.
1185 (target_ops): New member to_terminal_save_ours.
1186 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1187 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1188 * inftarg.c (init_child_ops): Likewise.
1189 * m3-nat.c (init_m3_ops): Likewise.
1190 * procfs.c (init_procfs_ops): Likewise.
1191 * wince.c (init_child_ops): Likewise.
1192 * win32-nat.c (init_child_ops): Likewise.
1193 * sol-thread.c (init_sol_thread_ops): Likewise.
1195 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1197 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1198 use regcache_* functions.
1199 (i386_gdbarch_init): Set store_return_value instead of
1200 deprecated_store_return_value.
1202 * regcache.c (regcache_raw_write_signed,
1203 regcache_raw_write_unsigned): New functions.
1204 * regcache.h (regcache_raw_write_signed,
1205 regcache_raw_write_unsigned): New prototypes.
1207 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1209 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1210 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1211 source file dependencies. Cleanup corresponding generator rules.
1213 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1215 * regcache.h (register_offset_hack): Declare.
1216 (regcache_cooked_read_using_offset_hack): Declare.
1217 (regcache_cooked_write_using_offset_hack): Declare.
1219 * regcache.c (register_offset_hack): New function.
1220 (regcache_cooked_read_using_offset_hack): New function.
1221 (regcache_cooked_write_using_offset_hack): New function.
1222 (regcache_dump): Check that the registers, according to their
1223 offset, are packed hard against each other.
1224 (cooked_xfer_using_offset_hack): New function.
1226 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1228 * regcache.c (struct regcache_descr): Add field register_type.
1229 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1231 (init_regcache_descr): Initialize register_type. Pass the descr
1232 to init_legacy_regcache_descr. Use register_type instead of
1233 REGISTER_VIRTUAL_TYPE.
1234 (register_type): New function.
1235 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1236 * regcache.h (register_type): Declare.
1238 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1240 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1241 instead of deprecated_store_return_value. Fix fallout from
1242 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1244 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1246 * regcache.c (max_register_size): New function.
1247 (init_legacy_regcache_descr): Ensure that max_register_size is
1248 large enough for REGISTER_VIRTUAL_SIZE.
1249 * regcache.h (max_register_size): Declare.
1251 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1253 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1255 (e500_extract_return_value): Change type of valbuf pointer to
1258 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1260 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1263 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1264 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1265 long long) to prevent compiler warning on 64-bit systems.
1267 2002-08-23 Andrew Cagney <cagney@redhat.com>
1269 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1270 (DEPRECATED_STORE_RETURN_VALUE): New method.
1271 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1272 * gdbarch.h, gdbarch.c: Re-generate.
1274 * values.c (set_return_value): Pass current_regcache to
1276 * arch-utils.h (legacy_store_return_value): Declare.
1277 * arch-utils.c (legacy_store_return_value): New function.
1278 (legacy_extract_return_value): Update parameters.
1280 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1282 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1283 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1284 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1285 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1286 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1287 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1288 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1289 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1290 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1291 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1294 * i386-tdep.c (i386_extract_return_value): Update.
1295 * arch-utils.c (legacy_extract_return_value): Update.
1296 * frv-tdep.c (frv_gdbarch_init): Update.
1297 * cris-tdep.c (cris_gdbarch_init): Update.
1298 * d10v-tdep.c (d10v_gdbarch_init): Update.
1299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1300 * m68k-tdep.c (m68k_gdbarch_init): Update.
1301 * mcore-tdep.c (mcore_gdbarch_init): Update.
1302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1303 * s390-tdep.c (s390_gdbarch_init): Update.
1304 * sparc-tdep.c (sparc_gdbarch_init): Update.
1305 * sh-tdep.c (sh_gdbarch_init): Update.
1306 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1307 * v850-tdep.c (v850_gdbarch_init): Update.
1308 * avr-tdep.c (avr_gdbarch_init): Update.
1309 * ia64-tdep.c (ia64_gdbarch_init): Update.
1310 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1311 * vax-tdep.c (vax_gdbarch_init): Update.
1312 * alpha-tdep.c (alpha_gdbarch_init): Update.
1313 * arm-tdep.c (arm_gdbarch_init): Update.
1314 * mips-tdep.c (mips_gdbarch_init): Update.
1315 * i386-tdep.c (i386_gdbarch_init): Update.
1317 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1319 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1320 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1322 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1324 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1327 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1329 * infrun.c (handle_inferior_event): Move a comment outside of a
1330 function call, in order to avoid indent reformatting this part
1331 of the code in an unreadable way.
1333 2002-08-23 Grace Sainsbury <graces@redhat.com>
1335 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1336 when breakpoints fail. Move general breakpoint error messages to
1338 * breakpoint.c (insert_breakpoints): Change warnings when
1339 breakpoints are nto inserted to specify the type. Remove call to
1340 memory_error when hardware breakpoints can't be inserted. Remove
1341 multiple calls to warning so all messages are sent to the user at
1343 (delete_breakpoints): Make insert error messsages more explicit.
1345 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1347 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1348 gdbserver/ChangeLog.
1350 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1352 * i386-tdep.c: Include "objfiles.h".
1353 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1354 skip_trampoline_code.
1355 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1356 (CPLUS_MARKER): Define to '.'.
1358 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1360 (linux_corefile_thread_callback): Increase args->num_notes.
1361 (linux_make_note_section): Initialize thread_args.num_notes, and
1362 use it to determine whether notes for any threads were created.
1364 2002-08-23 Donn Terry <donnte@microsoft.com>
1366 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1367 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1369 (write_with_trace): Conditionalize out the switch branch handling
1370 PCSHOLD if the corresponding macro is not defined. Likewise for
1371 PRSABORT and PRSTOP.
1372 This change will be needed by the Interix port.
1374 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1376 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1377 write_register wherever possible instead of manipulating the
1378 register bytes directly.
1379 Assign VALUE_CONTENTS to a variable and use that.
1380 The GPR numbers are now dependent on the architecture.
1382 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1384 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1386 (skip_prologue): Add support for BookE/e500 instructions.
1387 (e500_extract_return_value): New function.
1388 (frame_get_saved_regs): Add support for saving ev registers and
1390 (e500_store_return_value): New function.
1391 (rs6000_gdbarch_init): Move up default intializations of
1392 deprecated_extract_return_value and store_return_value. Overwrite
1393 init of store_return_value with e500 specific version.
1394 Set extract_return_value for e500.
1396 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1398 * blockframe.c (generic_call_dummy_register_unwind): Use
1399 regcache_cooked_read to catch cases in which the variable is
1400 stored in a pseudo register.
1402 2002-08-22 Andrew Cagney <cagney@redhat.com>
1404 * NEWS: Mention that the i960 has been made obsolete.
1405 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1407 (remote-nrom.o): Obsolete target.
1408 (remote-nindy.o, i960-tdep.o): Ditto.
1409 * remote-nrom.c: Make file obsolete.
1410 * remote-nindy.c, remote-vx960.c: Ditto.
1411 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1412 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1413 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1414 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1415 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1416 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1417 i960-*-vxworks* obsolete.
1418 * MAINTAINERS: Note that the i960 is obsolete.
1420 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1422 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1423 detach to allow reinitialization.
1425 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1427 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1430 2002-08-22 Jim Blandy <jimb@redhat.com>
1432 * coffread.c (coff_symfile_read): Don't try to read the line
1433 number table from disk if the image file doesn't have a symbol
1434 table; we'll never actually look at the info anyway, and Windows
1435 ships DLL's with bogus file offsets for the line number data.
1437 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1439 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1442 2002-08-21 Michael Snyder <msnyder@redhat.com>
1444 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1445 (MSYMBOL_SIZE): Replace macro with function.
1446 (DEFAULT_MIPS_TYPE): Delete unused macro.
1447 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1448 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1450 2002-08-21 Jim Blandy <jimb@redhat.com>
1452 * valops.c (value_cast): Simplify and correct logic for doing a
1453 static cast from a pointer to a base class to a pointer to a
1456 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1458 * infcmd.c (default_print_registers_info): Replace
1460 (registers_info): Use gdbarch_print_registers_info instead of
1462 * inferior.h (default_print_registers_info): Replace
1464 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1465 (DO_REGISTERS_INFO): Change to a predicate function.
1466 * gdbarch.h, gdbarch.c: Regenerate.
1468 2002-08-21 Keith Seitz <keiths@redhat.com>
1470 * gdb-events.sh: Add target-changed event.
1471 * gdb-events.c: Regenerated.
1472 * gdb-events.c: Regenerated.
1473 * valops.c (value_assign): Add target-changed event notification
1474 to inlval_register, lval_memory, and lval_reg_frame_relative.
1476 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1478 * NEWS: Add an entry regarding the improvement of the next/step
1479 operation on Alpha Tru64 multi-processor machines.
1481 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1483 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1485 * Makefile.in: Update all _h macro definitions.
1486 * Makefile.in (install-gdbtk): Move to install section.
1487 (rdi-share/libangsd.a): Move to end of file.
1489 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1491 * frame.c (frame_register_unwind): When a register, set addrp to
1492 the register's byte.
1494 2002-08-20 Michael Snyder <msnyder@redhat.com>
1496 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1497 used locally, so move them from the target machine header to here.
1498 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1499 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1501 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1503 2002-08-20 Andrew Cagney <cagney@redhat.com>
1505 * NEWS: Mention that the Apollo line was made obsolete.
1506 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1507 m68*-hp-hpux* obsolete.
1508 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1509 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1510 * buildsym.c (make_blockvector): Make static.
1511 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1512 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1513 (ALLDEPFILES): Remove dstread.c.
1514 (dstread.o): Obsolete make rule.
1515 * dstread.c: Makefile obsolete.
1517 * config/m68k/hp300hpux.mt: Ditto.
1518 * config/m68k/hp300hpux.mh: Ditto.
1519 * config/m68k/hp300bsd.mt: Ditto.
1520 * config/m68k/hp300bsd.mh: Ditto.
1521 * config/m68k/apollo68b.mt: Ditto.
1522 * config/m68k/apollo68v.mh: Ditto.
1523 * config/m68k/apollo68b.mh: Ditto.
1525 2002-08-20 Michael Snyder <msnyder@redhat.com>
1527 * mips-tdep.c (mips_in_return_stub): Make static.
1528 (mips_gdbarch_init): Set in_solib_return_trampoline.
1529 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1531 2002-08-20 Michael Snyder <msnyder@redhat.com>
1533 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1534 * gdbarch.c, gdbarch.h: Regenerate.
1535 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1537 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1539 2002-08-20 Michael Snyder <msnyder@redhat.com>
1541 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1542 (mips_gdbarch_init): Set skip_trampoline_code,
1543 in_solib_call_trampoline.
1544 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1545 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1547 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1549 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1551 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1552 vector type for ev registers.
1553 (e500_pseudo_register_read): New function.
1554 (e500_pseudo_register_write): New function.
1555 (e500_dwarf2_reg_to_regnum): New function.
1556 (PPC_UISA_NOFP_SPRS): New macro.
1557 (PPC_EV_REGS): New macro.
1558 (PPC_GPRS_PSEUDO_REGS): New macro.
1559 (registers_e500): New register set for e500.
1560 (variants): Add e500 variant.
1561 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1562 before setting architectural dependent variations. Initialize ev
1563 registers numbers. Add case for e500 architecture. Set the
1564 number of pseudo registers.
1566 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1568 * rs6000-tdep.c: Clean up comments.
1570 2002-08-20 Andrew Cagney <cagney@redhat.com>
1572 * h8300-tdep.c: Re-indent file.
1574 2002-08-20 Jim Blandy <jimb@redhat.com>
1576 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1579 2002-08-20 Keith Seitz <keiths@redhat.com>
1581 * breakpoints.c (watch_command_1): Use internal breakpoint
1582 when setting a watchpoint_scope breakpoint.
1584 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1586 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1587 (build_builtin_type_vec64i): Ditto.
1588 (build_builtin_type_vec128): Ditto.
1589 (build_builtin_type_vec128i): Ditto.
1591 2002-08-19 Michael Snyder <msnyder@redhat.com>
1593 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1594 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1595 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1596 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1597 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1598 CALL_DUMMY_ADDRESS): Delete.
1599 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1600 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1601 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1602 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1603 push_return_address.
1604 (mips_register_raw_size, mips_eabi_use_struct_convention,
1605 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1606 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1607 mips_init_extra_frame_info, mips_eabi_push_arguments,
1608 mips_n32n64_push_arguments, mips_push_return_address,
1609 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1610 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1612 2002-08-19 Michael Snyder <msnyder@redhat.com>
1614 * mips-tdep.c (mips_frame_num_args): New function.
1615 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1616 frame_saved_pc, frame_args_address, frame_locals_address,
1617 frame_num_args, and frame_args_skip.
1618 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1619 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1620 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1621 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1623 2002-08-20 Michael Snyder <msnyder@redhat.com>
1625 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1626 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1627 * mips-tdep.c (mips_store_struct_return): New function.
1628 (mips_extract_struct_value_address): New function.
1629 (mips_gdbarch_init): Set store_struct_return and
1630 extract_struct_value_address.
1632 2002-08-20 David Carlton <carlton@math.stanford.edu>
1634 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1635 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1636 (read_file_scope): Check that line_header is nonzero before
1637 decoding macro information.
1639 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1641 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1642 flag the general-purpose registers as floating-point on targets
1643 that don't support the floating-point registers.
1645 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1647 * rs6000-tdep.c (altivec_register_p): Delete.
1648 (rs6000_do_altivec_registers): Delete.
1649 (rs6000_altivec_registers_info): Delete.
1650 (rs6000_do_registers_info): Delete.
1651 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1652 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1654 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1656 * infcmd.c (do_registers_info): Print vector registers in hex
1658 (print_vector_info): Check that printing registers
1660 (print_float_info): Ditto.
1662 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1664 * mips-tdep.c (mips_gdbarch_init): Update.
1665 (mips_o32_extract_return_value): Rewrite.
1666 (mips_o32_store_return_value): Rewrite.
1667 (mips_o32_xfer_return_value): New function.
1668 (mips_xfer_register): Tweak debug print message. Allow for
1669 buf_offset when dumping the value transfered.
1671 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1673 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1674 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1675 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1676 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1677 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1679 2002-08-14 Michael Snyder <msnyder@redhat.com>
1681 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1683 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1685 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1687 (P): New macro to define a register as a pseudo register.
1688 (R, R4, R8, R16, FR32, R64, R0): Updated.
1689 (struct variant): Add new fields for number of pseudo registers
1690 and number of total registers.
1691 (tot_num_registers): New macro replacing....
1692 (num_registers): ...deleted macro.
1693 (num_registers): New function.
1694 (num_pseudo_registers): New function.
1695 (variants): Update all variants to intialize new fields correctly.
1696 Postpone initialization of number of pseudo regs and real regs.
1697 (init_variants): New function.
1698 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1701 2002-08-19 David Carlton <carlton@math.stanford.edu>
1703 * valops.c (search_struct_field): Change error message to treat
1704 return value of 0 from value_static_field as meaning that field is
1706 (value_struct_elt_for_reference): Ditto.
1707 * values.c (value_static_field): Treat an unresolved location the
1708 same as a nonexistent symbol. Fix PR gdb/635.
1709 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1710 enclosed. Fix PR gdb/574.
1711 * MAINTAINERS: Add self to Write After Approval list.
1713 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1715 * mips-tdep.c (mips_xfer_register): New function.
1716 (mips_n32n64_extract_return_value): Rewrite.
1717 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1718 instead of deprecated_extract_return_value.
1720 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1722 * rs6000-tdep.c (TDEP): Delete macro.
1723 (branch_dest): Replace use of TDEP macro with its body.
1724 (rs6000_pop_frame): Ditto.
1725 (rs6000_push_arguments): Ditto.
1726 (rs6000_skip_trampoline_code): Ditto.
1727 (rs6000_frame_saved_pc): Ditto.
1728 (rs6000_frame_chain): Ditto.
1729 (rs6000_register_name): Ditto.
1730 (rs6000_register_byte): Ditto.
1731 (rs6000_register_raw_size): Ditto.
1732 (rs6000_register_virtual_type): Ditto.
1733 (rs6000_register_convertible): Ditto.
1734 (rs6000_convert_from_func_ptr_addr): Ditto.
1736 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1738 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1740 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1741 MIPS_LINUX_JB_ELEMENT_SIZE.
1742 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1743 for MAX_REGISTER_RAW_SIZE arrays.
1744 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1745 MIPS_LINUX_JB_ELEMENT_SIZE.
1747 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1749 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1751 2002-08-19 Aidan Skinner <aidan@velvet.net>
1753 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1754 ada-valprint.c ada-tasks.c.
1755 (YYFILES): Add ada-exp.y.
1756 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1757 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1758 (ada-exp.tab.o): New target.
1760 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1762 * regcache.c (regcache_xfer_part): New function.
1763 (regcache_raw_read_part): New function.
1764 (regcache_raw_write_part): New function.
1765 (regcache_cooked_read_part): New function.
1766 (regcache_cooked_write_part): New function.
1767 * regcache.h (regcache_raw_read_part): Declare.
1768 (regcache_raw_write_part): Declare.
1769 (regcache_cooked_read_part): Declare.
1770 (regcache_cooked_write_part): Declare.
1772 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1774 * remote.c (remote_open_1): Add async_p.
1775 (remote_async_open_1): Delete.
1776 (open_remote_target): Delete.
1777 (remote_open, extended_remote_open): Update calls to remote_open_1.
1778 (remote_async_open, extended_remote_async_open): Call
1779 remote_open_1 instead of remote_async_open_1.
1781 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1783 * blockframe.c: Fix a few coding standard violations.
1785 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1787 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1789 * config/i386/tm-i386sco5.h: ... here. File removed.
1790 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1792 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1793 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1794 (TM_FILE): Set to tm-i386.h.
1795 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1796 * config/i386/tm-i386v.h: Remove file.
1797 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1798 instead of "i386/tm-i386v.h".
1799 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1800 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1802 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1803 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1806 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1808 * config/i386/nm-i386v.h: Add protection against
1810 (i386_register_u_addr): Remove prototype.
1811 (register_u_addr): New prototype.
1812 (REGISTER_U_ADDR): Redefine accordingly.
1813 * i386v-nat.c: Improve several comments.
1814 (i386_register_u_addr): Change signature and rename to
1815 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1818 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1820 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1821 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1822 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1823 deprecated_extract_return_value.
1824 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1825 rename mips_o32o64_push_arguments.
1826 (mips_gdbarch_init): Update.
1827 (mips_extract_return_value): Delete.
1828 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1829 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1830 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1831 (mips_n32n64_extract_return_value): Clone
1832 mips_extract_return_value.
1833 (mips_store_return_value): Delete.
1834 (mips_o32_store_return_value): Clone mips_store_return_value.
1835 (mips_o64_store_return_value): Clone mips_store_return_value.
1836 (mips_eabi_store_return_value): Clone mips_store_return_value.
1837 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1839 2002-08-18 Aidan Skinner <aidan@velvet.net>
1841 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1842 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1844 2002-08-18 Aidan Skinner <aidan@velvet.net>
1846 * ada-lang.c: Run through gdb_indent.sh.
1847 * ada-lang.h: Run through gdb_indent.sh.
1848 * ada-tasks.c: Run through gdb_indent.sh.
1849 * ada-typeprint.c: Run through gdb_indent.sh.
1850 * ada-valprint.c: Run through gdb_indent.sh.
1852 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1854 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1857 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1859 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1861 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1862 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1864 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1865 write_register_gen instead of write_register_bytes.
1867 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1868 i[3456]-*-osf1mk* configurations have been made obsolete.
1869 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1870 i[3456]86-*-osf1mk* hosts obsolete.
1871 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1873 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1874 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1875 config/i386/i386m3.mt, config/i386/nm-m3.h,
1876 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1877 config/i386/i386mk.mh, config/i386/i386mk.mt,
1878 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1880 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1881 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1882 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1884 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1886 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1887 (hppa_value_returned_from_stack): Declare.
1888 (hppa_extract_return_value): Declare.
1889 * config/pa/hppa.mt: New file.
1890 * configure.tgt: Recognize hppa*-*-*.
1891 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1893 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1895 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1898 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1900 * top.c (gdb_rl_operate_and_get_next): Make sure
1901 operate-and-get-next functions correctly even when the history
1902 list is completely filled.
1904 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1906 * MAINTAINERS (Target Instruction Set Architectures): Rename
1907 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1908 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1909 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1910 already listed under Host/Native.
1912 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1913 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1916 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1918 * config/ia64/ia64.mt: New file.
1919 * config/alpha/alpha.mt: New file.
1920 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1921 ia64-linux-gnu. Mention that ia64-elf is broken.
1922 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1924 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1926 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1927 generic_func_frame_valid instead of func_frame_valid.
1929 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1931 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1932 procfs appears to be broken when debugging on multi-processor
1933 machines. So enable software single stepping in order to avoid
1934 using the procfs interface to do next/step operations, using
1935 internal breakpoints instead.
1937 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1938 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1939 make this pc address equal to the value it would have if the
1940 system stepping capability was used. Also set a new flag used
1941 to ensure that we don't readjust the PC one more time later.
1943 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1944 address by DECR_PC_AFTER_BREAK when software single step is
1945 in use for this architecture, as this has already been taken
1946 care of in handle_inferior_event().
1948 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1950 * infrun.c (handle_inferior_event): Minor reformatting, to make
1951 a rather long condition expression easier to read.
1953 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1955 * Makefile.in (gdbtk.o): Move to end of file.
1956 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1957 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1958 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1959 (gdbtk-wrapper.o, gdbres.o): Ditto.
1961 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1963 * Makefile.in (copying.o): Separate out compile rule.
1964 (hpux-thread.o, procfs.o, signals.o): Ditto.
1965 (v850ice.o, z8k-tdep.o): Ditto.
1966 (tui-file.o): Move to TUI section.
1967 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1968 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1970 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1972 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1973 skip_trampoline_code, for better namespace-proofing.
1975 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1977 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1979 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1981 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1983 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1984 signal, check whether we hit a breakpoint before checking for a
1985 single step breakpoint. Otherwise, GDB fails to notice that a
1986 breakpoint has been hit when stepping onto a breakpoint.
1988 2002-08-16 Keith Seitz <keiths@redhat.com>
1990 * gdb-events.sh (clear_gdb_event_hooks): New function.
1991 * gdb-events.c: Regenerate.
1992 * gdb-events.h: Regenerate.
1994 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1996 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1997 not_a_sw_breakpoint.
1998 * breakpoint.h (bpstat_stop_status): Add parameter names.
2000 2002-08-16 Grace Sainsbury <graces@redhat.com>
2002 * remote.c (remote_insert_hw_breakpoint)
2003 (remote_remove_hw_breakpoint): Fix calculation of length field
2006 2002-08-15 Michael Snyder <msnyder@redhat.com>
2008 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2009 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2010 (supply_fpregset): Ditto.
2012 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2013 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2014 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2015 (TARGET_READ_SP): Delete.
2016 (DO_REGISTERS_INFO): Delete.
2017 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2019 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2020 from macros to functions.
2022 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2023 (mips_register_convertible, mips_register_convert_to_virtual,
2024 mips_register_convert_to_raw): Make static.
2025 (mips_read_sp): New function.
2026 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2027 (mips_do_registers_info): Make static.
2028 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2029 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2030 (mips_register_convert_from_type, mips_register_convert_to_type):
2032 (mips_gdbarch_init): Set up function_start_offset,
2033 register_virtual_size, pc_in_sigtramp.
2035 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2037 * infcmd.c (vector_info): New function.
2038 (_initialize_infcmd): Add command "info vector".
2039 (print_vector_info): New function.
2041 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2042 * gdbarch.h, gdbarch.c: Regenerate.
2044 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2046 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2047 ``print_all''. Only print vector registers when ``print_all''.
2049 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2051 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2052 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2054 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2055 Add `args' parameter.
2056 * gdbarch.h, gdbarch.c: Regenerate.
2058 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2060 * infcmd.c (float_info): Call print_float_info.
2061 (print_float_info): New function. By default, print the
2062 floating-point registers.
2064 * arch-utils.h (default_print_float_info): Delete declaration.
2065 * arch-utils.c (default_print_float_info): Delete function.
2067 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2069 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2072 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2075 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2076 * configure.host: Make i[3456]86-*-aix host obsolete.
2077 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2078 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2079 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2080 config/i386/xm-i386aix.h: Make files obsolete.
2081 * i386aix-nat.c: Make file obsolete.
2082 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2083 (i386aix-nat.o): Make target obsolete.
2085 * config/i386/nm-gnu.h: Removed.
2086 * config/i386/nm-i386gnu.h: New file.
2087 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2088 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2090 * config/i386/tm-i386gnu.h: ... here. Removed.
2091 * config/i386/xm-i386gnu.h: Removed.
2092 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2093 (NAT_FILE): Set to nm-i386gnu.h.
2094 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2095 * i386-tdep.c: New file.
2096 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2097 (i386gnu-tdep.o): Specify dependencies.
2099 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2101 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2102 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2103 Adjust a few comments to reflect reality a bit closer.
2104 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2105 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2106 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2107 target_insert_watchpoint, target_remove_watchpoint):
2109 * config/i386/nm-i386sco5.h: ... here.
2110 (kernel_u_size): Add prototype. Improve a few comments and add
2111 protection against multiple inclusion.
2113 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2116 * uw-thread.c (SP_ARG0): Define if not already defined.
2117 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2119 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2121 * config/i386/tm-i386.h: Don't include "regcache.h".
2123 * i387-tdep.h (i387_print_float_info): New prototype.
2124 * i387-tdep.c (print_i387_value, print_i387_ext,
2125 print_i387_status_word, print_i387_control_word): Add `struct
2126 ui_file *' argument and use it for output.
2127 (i387_print_float_info): Renamed from i387_float_info. Add
2128 `struct gdbarch *' and `struct ui_file *' arguments and use the
2130 * i386-tdep.c: Include "i387-tdep.h".
2131 (i386_gdbarch_init): Set print_float_info.
2132 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2133 (FLOAT_INFO): Remove define.
2135 2002-08-13 Michael Snyder <msnyder@redhat.com>
2137 * mips-tdep.c (mips_push_arguments): Rename to
2138 mips_eabi_push_arguments, and tune for EABI.
2139 (MIPS_REGS_HAVE_HOME_P): Delete.
2140 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2141 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2142 Delete references to mips_regs_have_home_p.
2144 2002-08-14 Keith Seitz <keiths@redhat.com>
2146 * Makefile.in (install-gdbtk): Create insight plugin directory.
2147 Install plugins.tcl file.
2149 2002-08-14 Keith Seitz <keiths@redhat.com>
2151 * configure.in: Move SUBDIRS to near top of the file so that
2152 --enable options may add things to it.
2153 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2154 * configure: Regenerate.
2156 2002-08-13 Michael Snyder <msnyder@redhat.com>
2158 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2159 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2160 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2162 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2164 * vax-tdep.c (vax_get_saved_register): Delete function.
2165 (vax_gdbarch_init): Update.
2166 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2167 (ns32k_gdbarch_init): Update.
2168 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2169 (alpha_gdbarch_init): Update.
2171 2002-08-13 Andrew Cagney <cagney@redhat.com>
2173 * regcache.c (init_regcache_descr): Overallocate the
2174 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2175 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2177 (set_register_cached): Add range checking assertions. Use
2180 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2182 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2183 numbers for MMX registers.
2185 2002-08-13 Andrew Cagney <cagney@redhat.com>
2187 * i386-tdep.c (i386_gdbarch_init): Use
2188 generic_unwind_get_saved_register.
2190 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2192 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2193 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2195 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2196 Delete. Add comment regarding this now-deleted target method.
2198 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2200 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2201 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2202 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2203 real PC and the page number (if it's within the memory bank window).
2204 (m68hc11_pseudo_register_write): Likewise when saving.
2205 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2206 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2207 (m68hc11_register_raw_size): And use 32-bit for it.
2208 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2209 16K memory bank is used by the prog; also use the virtual pc.
2211 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2213 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2214 (m68hc11_gdbarch_init): Install it in gdbarch.
2215 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2216 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2217 (MSYMBOL_SIZE): New for documentation.
2218 (insn_return_kind): Enum to specify how a function returns.
2219 (frame_extra_info): Cleanup and record the return mode.
2220 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2221 register in address computation.
2222 (m68hc11_get_return_insn): New to obtain the return instruction used
2224 (m68hc11_frame_init_saved_regs): Take into account the return
2225 instruction used by the function for far and interrupt functions.
2226 (m68hc11_init_extra_frame_info): Take into account page register.
2227 (m68hc11_frame_args_address): Adjust according to the return mode.
2228 (show_regs): Print page register only when it's used.
2230 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2232 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2233 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2234 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2236 (m68hc11_register_raw_size): Likewise.
2238 2002-08-13 Andrew Cagney <cagney@redhat.com>
2240 * i386-tdep.c (i386_register_name): Handle mmx registers.
2241 (mmx_regnum_p): New function.
2242 (i386_mmx_names): New array.
2243 (mmx_num_regs): New variable.
2244 (i386_pseudo_register_read): New function.
2245 (i386_pseudo_register_write): New function.
2246 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2248 * regcache.c (regcache_raw_read_unsigned): New function.
2249 (regcache_raw_read_signed): New function.
2250 * regcache.h (regcache_raw_read_unsigned): Declare.
2251 (regcache_raw_read_signed): Declare.
2253 2002-08-13 Andrew Cagney <cagney@redhat.com>
2255 * regcache.c (regcache_raw_read_as_address): Delete function.
2256 (regcache_cooked_read_signed): New function.
2257 (regcache_cooked_read_unsigned): New function.
2258 * regcache.h (regcache_cooked_read_signed): Declare.
2259 (regcache_cooked_read_unsigned): Declare.
2260 (regcache_raw_read_as_address): Delete declaration.
2262 * blockframe.c (generic_read_register_dummy): Use
2263 regcache_cooked_read_unsigned.
2264 * i386-tdep.c (i386_extract_struct_value_address): Use
2265 regcache_cooked_read_unsigned.
2267 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2270 double sizes according to ELF ABI flags.
2271 (gdbarch_tdep): Record elf_flags.
2273 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2275 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2276 (m6812_prolog): They can appear in 68HC12 function prologue.
2277 (m68hc11_frame_chain): Cleanup.
2279 2002-08-12 Andrew Cagney <cagney@redhat.com>
2281 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2283 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2284 (i386_linux_register_raw_size): Delete function.
2285 (i386_linux_init_abi): Update.
2286 * i386-tdep.c (i386_register_raw_size): Delete function.
2287 (i386_register_byte): Delete function.
2288 (i386_gdbarch_init): Update.
2289 (i386_register_size): Delete array.
2290 (i386_register_offset): Delete array.
2292 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2293 (REGISTER_RAW_SIZE): Delete macro.
2294 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2295 (REGISTER_BYTE): Delete macro.
2297 2002-08-11 Aidan Skinner <aidan@velvet.net>
2299 * ada-lang.c (ada_lookup_partial_symbol)
2300 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2301 prototype names so that grep ^func works properly.
2303 * ada-lang.c (ada_array_element_type)
2304 (ada_lookup_partial_symbol): Fix typos in parameter list.
2306 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2307 Fix prototype names so that grep ^func works properly.
2309 2002-08-10 Andrew Cagney <cagney@redhat.com>
2310 Elena Zannoni <ezannoni@redhat.com>
2311 Martin M. Hunt <hunt@redhat.com>
2313 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2314 (build_builtin_type_vec128i): Set the vector bit.
2315 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2316 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2317 (build_builtin_type_vec64): New function.
2318 (build_builtin_type_vec64i): New function.
2319 (build_gdbtypes): Initialize builtin_type_vec64 and
2320 builtin_type_vec64i.
2322 2002-08-09 Andrew Cagney <cagney@redhat.com>
2324 * regcache.c (regcache_dump): Compare the register offset
2326 * arch-utils.c (generic_register_byte): New function.
2327 * arch-utils.h (generic_register_byte): Declare.
2328 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2329 * gdbarch.h, gdbarch.c: Regenerate.
2331 2002-08-09 Andrew Cagney <cagney@redhat.com>
2333 * regcache.c: Include "gdbcmd.h"
2334 (_initialize_regcache): Add commands "maintenance print
2335 registers", "maintenance print raw-registers" and "maintenance
2336 print cooked-registers".
2337 (enum regcache_dump_what): Define.
2338 (dump_endian_bytes): New function.
2339 (regcache_dump): New function.
2340 (regcache_print): New function.
2341 (maintenance_print_registers): New function.
2342 (maintenance_print_raw_registers): New function.
2343 (maintenance_print_cooked_registers): New function.
2344 * Makefile.in (regcache.o): Update dependencies.
2346 2002-08-09 Michael Snyder <msnyder@redhat.com>
2348 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2349 (mips_push_arguments): Correct some comments. Use paddr_nz
2350 for printing addresses in debug output. Replace static
2351 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2352 (mips_n32n64_push_arguments): New function, cloned from
2353 mips_push_arguments and tuned for the n32/n64 ABI.
2354 (mips_push_register): Buffer needs dynamic allocation.
2355 (mips_print_register): Ditto.
2356 (do_gp_register_row): Ditto.
2357 (mips_store_return_value): Ditto.
2358 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2360 2002-08-09 Don Howard <dhoward@redhat.com>
2362 * memattr.c (mem_info_command): Print special case of upper bound
2363 as max CORE_ADDR + 1.
2365 2002-08-08 Michael Snyder <msnyder@redhat.com>
2367 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2368 returns structs by ref if they're too big to fit in two registers.
2370 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2372 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2374 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2375 mips_find_saved_regs().
2376 (mips_pop_frame): Likewise.
2378 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2380 * blockframe.c (frame_saved_regs_register_unwind): Revise
2381 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2384 2002-08-09 Grace Sainsbury <graces@redhat.com>
2386 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2387 T-packets; the 'a' is not taken as a register number.
2388 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2389 (remote_stopped_data_address): New functions; add to target
2391 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2392 prototypes to match other implementations of this
2393 function. replace integer argument with pointer -- the length
2394 field in the Z-packet is the length of what is pointed to or 1 if
2395 pointer is null. Add to target vector.
2396 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2400 * remote.c (remote_wait): Add support to extract optional
2401 watchpoint information from T-packet. Ignore unrecognized
2402 optional info in T-packet.
2403 (remote_async_wait): Ditto.
2405 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2407 * cli/cli-dump.c: Change fopen modes to use binary open modes
2408 as defined in include/fopen-bin.h throughout.
2410 2002-08-08 Michael Snyder <msnyder@redhat.com>
2412 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2414 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2416 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2417 assertion failure by returning early after a warning.
2419 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2421 * mips-tdep.c (mips_find_saved_regs): Make static.
2422 (mips_frame_init_saved_regs): New function.
2423 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2424 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2425 (mips_find_saved_regs): Delete declaration.
2427 2002-08-08 Grace Sainsbury <graces@redhat.com>
2429 * remote.c (remote_wait, remote_async_wait): Change
2430 thread_num from int to ULONGEST.
2431 (unpack_varlen_hex): Change result parameter from
2432 int * to ULONGEST *.
2434 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2436 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2437 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2439 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2441 2002-08-08 Andrew Cagney <cagney@redhat.com>
2443 * gcore.c (override_derive_stack_segment): Delete variable.
2444 (preempt_derive_stack_segment): Delete function.
2445 (derive_stack_segment): Delete function.
2446 (default_derive_stack_segment): Renamed to derive_stack_segment.
2447 (override_derive_heap_segment): Delete variable.
2448 (preempt_derive_heap_segment): Delete function.
2449 (derive_heap_segment): Delete function.
2450 (default_derive_heap_segment): Rename to derive_heap_segment.
2452 2002-08-06 Michael Snyder <msnyder@redhat.com>
2454 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2455 * mips-tdep.c (mips_EABI_use_struct_convention,
2456 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2457 New functions. (mips_use_struct_convention): Delete.
2458 (mips_gdbarch_init): set use_gdbarch_convention.
2460 2002-08-06 Michael Snyder <msnyder@redhat.com>
2462 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2463 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2464 mips_o32_reg_struct_has_addr): New functions.
2465 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2467 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2469 * regcache.c (pseudo_register): Delete function.
2470 (fetch_register): Delete function.
2471 (store_register): Delete function.
2472 (regcache_raw_read, legacy_read_register_gen): Use
2473 target_fetch_registers instead of fetch_register.
2474 (legacy_write_register_gen, regcache_raw_write): Use
2475 target_store_register instead of store_register.
2476 (write_register_bytes): Ditto.
2478 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2479 (STORE_PSEUDO_REGISTER): Delete.
2480 * gdbarch.h, gdbarch.c: Regenerate.
2482 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2484 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2485 write dump file binary.
2487 2002-08-05 Michael Snyder <msnyder@redhat.com>
2489 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2490 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2491 (mips_gdbarch_init): Set N32 target to be mips64.
2493 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2495 * frame.c (find_saved_register): Break out of loop once saved
2496 register address is found. Don't mention sparc in loop comment
2499 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2501 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2502 mips_default_saved_regsize to 8.
2504 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2506 * gcore.c: Do not include <sys/procfs.h>.
2507 * Makefile.in (gcore.o): Update dependencies.
2509 2002-08-06 Andrew Cagney <cagney@redhat.com>
2511 * configure.tgt: Make arc-*-* obsolete.
2512 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2513 * MAINTAINERS: Make arc-elf obsolete.
2514 * arc-tdep.c: Make file obsolete.
2515 * config/arc/arc.mt: Ditto.
2516 * config/arc/tm-arc.h: Ditto.
2518 2002-08-05 Theodore A. Roth <troth@verinet.com>
2520 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2522 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2524 * mcore-tdep.c (mcore_gdbarch_init): Use
2525 generic_unwind_get_saved_register instead of
2526 generic_get_saved_register.
2527 * v850-tdep.c (v850_gdbarch_init): Ditto.
2528 * frv-tdep.c (frv_gdbarch_init): Ditto.
2529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2530 * s390-tdep.c (s390_gdbarch_init): Ditto.
2531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2532 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2533 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2535 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2537 * objfiles.h: Add missing #include "symfile.h"
2539 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2541 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2543 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2544 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2547 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2549 * NEWS: Cleanup and nitpick.
2551 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2553 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2555 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2557 * Makefile.in (gdbtk-bp.o): Update dependencies.
2558 (gdbtk-register.o): Ditto.
2559 (gdbtk-varobj.o): Ditto.
2561 2002-08-03 Andrew Cagney <cagney@redhat.com>
2563 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2564 m68hc11_fetch_pseudo_register.
2565 (m68hc11_pseudo_register_write): Replace
2566 m68hc11_store_pseudo_register.
2567 (m68hc11_gdbarch_init): Update.
2569 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2571 * gdbarch.sh: Include "gdb_string.h".
2572 * gdbarch.c: Regenerate.
2574 * regcache.c: Include "gdb_string.h".
2575 * ax-general.c: Ditto.
2577 * std-regs.c: Ditto.
2578 * fbsd-proc.c: Ditto.
2581 * Makefile.in (regcache.o): Update dependencies.
2582 (thread.o, gdbarch.o): Ditto.
2583 (ax-general.o, gdbarch.o): Ditto.
2584 (varobj.o, std-regs.o): Ditto.
2585 (fbsd-proc.o): Specify dependencies.
2587 2002-08-02 Andrew Cagney <cagney@redhat.com>
2589 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2591 (regcache_cooked_write): Ditto.
2593 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2595 * regcache.c (regcache_cooked_read): New function.
2596 (regcache_cooked_write): New function.
2597 (read_register_gen): Rewrite using regcache_cooked_read.
2598 (write_register_gen): Rewrite using regcache_cooked_write.
2600 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2603 2002-08-02 Andrew Cagney <cagney@redhat.com>
2605 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2606 Replace the architecture methods register_read and register_write.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608 * regcache.c (init_regcache_descr): Update.
2609 (read_register_gen): Update.
2610 (write_register_gen): Update.
2611 (supply_register): Update comment.
2613 * sh-tdep.c (sh_gdbarch_init): Update.
2614 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2615 `regcache' and `gdbarch' parameters. Make `buffer' a void
2616 pointer. Update code.
2617 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2618 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2619 void pointer. Update code.
2620 (sh64_register_write): Delete.
2621 (sh4_register_read): Delete.
2622 (sh64_register_read): Delete.
2623 (sh4_register_write): Delete.
2624 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2625 void pointer, `to' parameter a void pointer.
2626 (sh_sh64_register_convert_to_raw): Ditto.
2628 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2630 * mips-tdep.c (mips_register_virtual_type): Use architecture
2631 invariant return values.
2633 2002-08-01 Andrew Cagney <cagney@redhat.com>
2635 * linux-proc.c: Include "gdb_string.h".
2636 * Makefile.in (linux-proc.o): Update dependency list.
2638 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2640 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2643 2002-08-01 Grace Sainsbury <graces@redhat.com>
2645 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2646 to_insert_watchpoint, to_remove_watchpoint,
2647 to_stopped_by_watchpoint, to_stopped_data_address,
2648 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2649 target vecctor. Define their corresponding macros so they call
2652 * target.c: Add default and debug versions of for
2653 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2654 to_insert_watchpoint, to_remove_watchpoint,
2655 to_stopped_by_watchpoint, to_stopped_data_address,
2656 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2658 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2660 * mips-tdep.c (mips_register_virtual_type): New function.
2661 (mips_gdbarch_init): Register mips_register_virtual_type()
2662 with gdbarch machinery.
2663 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2664 this file instead of tm-bigmips.h.
2665 (MIPS_REGSIZE): Delete this macro.
2666 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2667 multiarch version in mips-tdep.c will be found.
2669 2002-08-01 Andrew Cagney <cagney@redhat.com>
2671 * NEWS: Menion that CHILL has been made obsolete.
2673 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2674 * stabsread.c (read_range_type): Ditto.
2675 * gdbtypes.h: Ditto.
2676 * language.c (binop_type_check): Ditto.
2677 (binop_result_type): Ditto.
2678 (integral_type): Ditto.
2679 (character_type): Ditto.
2680 (string_type): Ditto.
2681 (boolean_type): Ditto.
2682 (structured_type): Ditto.
2683 (lang_bool_type): Ditto.
2684 (binop_type_check): Ditto.
2685 * language.h (_LANG_chill): Ditto.
2686 * dwarfread.c (set_cu_language): Ditto.
2687 * dwarfread.c (CHILL_PRODUCER): Ditto.
2688 * dwarfread.c (handle_producer): Ditto.
2689 * expression.h (enum exp_opcode): Ditto.
2690 * eval.c: Ditto for comments.
2691 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2692 * expprint.c (print_subexp): Ditto.
2693 (print_subexp): Ditto.
2694 * valops.c (value_cast): Ditto.
2695 (search_struct_field): Ditto.
2696 * value.h (COERCE_VARYING_ARRAY): Ditto.
2697 * symfile.c (init_filename_language_table): Ditto.
2698 (add_psymbol_with_dem_name_to_list): Ditto.
2699 * valarith.c (value_binop): Ditto.
2701 * valops.c (value_slice): Ditto.
2702 * symtab.h (union language_specific): Ditto.
2703 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2704 (SYMBOL_DEMANGLED_NAME): Ditto.
2705 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2706 * defs.h (enum language): Ditto.
2707 * symtab.c (got_symtab): Ditto.
2708 * utils.c (fprintf_symbol_filtered): Ditto.
2710 * ch-typeprint.c: Make file obsolete.
2711 * ch-valprint.c: Make file obsolete.
2712 * ch-lang.h: Make file obsolete.
2713 * ch-exp.c: Make file obsolete.
2714 * ch-lang.c: Make file obsolete.
2716 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2718 (TARGET_FLAGS_TO_PASS): Ditto.
2719 (CHILLFLAGS): Obsolete.
2721 (CHILL_FOR_TARGET): Obsolete.
2722 (CHILL_LIB): Obsolete.
2723 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2725 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2726 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2728 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2731 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2733 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2734 This does not change anything at the moment, but will be helpful
2735 later when full Ada support is integrated.
2737 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2739 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2742 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2744 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2745 and save it in a local variable. Use variable in later test.
2747 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2749 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2750 test. (Thanks to Daniel Jacobowitz.)
2752 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2754 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2755 (mips_abi_strings): Add "n64".
2756 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2758 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2760 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2761 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2763 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2765 * utils.c (host_pointer_to_address, address_to_host_pointer):
2766 Use gdb_assert() instead of explicit call to internal_error().
2768 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2770 * Makefile.in (rs6000-nat.o): Update dependencies.
2772 From Nicholas Duffek:
2773 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2774 (aix-thread.o): New rule.
2775 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2776 * config/powerpc/aix432.mh: New file.
2778 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2780 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2781 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2782 (fetch_core_registers, ppc_linux_supply_gregset)
2783 (ppc_linux_supply_fpregset): New functions.
2784 (ppc_linux_regset_core_fns): New.
2785 (_initialize_ppc_linux_tdep): Call add_core_fns.
2786 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2787 and ppc_linux_supply_gregset.
2788 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2789 (supply_fpregset): Call ppc_linux_supply_fpregset.
2790 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2792 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2794 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2796 * symtab.c (lookup_symbol): Demangle before lowercasing.
2798 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2800 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2802 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2803 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2804 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2805 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2807 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2808 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2809 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2810 (avr-tdep.o, mon960-rom.o): Ditto.
2811 (aout_stabs_gnu_h): Define.
2812 (symtab_h): Remove $(gdb_obstack_h).
2814 2002-07-30 Jim Blandy <jimb@redhat.com>
2816 Patch from David Carlton <carlton@math.stanford.edu>:
2817 * gdbinit.in: Move the `dir' commands that add GDB's own source
2818 directory to the search path to the end, so that the `gdb' source
2819 directory will be searched first.
2821 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2823 * gdb_obstack.h: New file.
2824 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2825 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2826 * objfiles.h: Include "gdb_obstack.h".
2827 * Makefile.in (gdb_obstack_h): Define.
2828 (symtab_h): Add $(gdb_obstack_h).
2829 (objfiles_h): Add $(gdb_obstack_h).
2831 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2832 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2833 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2834 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2835 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2836 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2837 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2838 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2840 * Makefile.in (bcache.o): Update dependencies.
2841 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2842 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2843 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2844 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2845 (stabsread.o, symfile.o, symmisc.o): Ditto.
2846 (symtab.o, typeprint.o, macroexp.o): Ditto.
2847 (macrotab.o, mdebugread.o): Ditto.
2848 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2849 (coff_ecoff_h, aout_aout64_h): Define.
2850 (aout_stabs_gnu_h, libaout_h): Define.
2852 2002-07-29 Andrew Cagney <cagney@redhat.com>
2854 * regcache.c (struct regcache_descr): Rename nr_registers to
2855 nr_cooked_registers. Revise comments describing the structure
2857 (init_regcache_descr): Update.
2858 (init_legacy_regcache_descr): Update.
2859 (read_register_gen, write_register_gen): When a cooked register in
2860 the raw register range, directly access the value from the raw
2863 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2865 * z8k-tdep.c: Do not include "obstack.h".
2866 * h8300-tdep.c, h8500-tdep.c: Ditto.
2867 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2868 * valprint.c, v850-tdep.c: Ditto.
2869 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2870 * mn10200-tdep.c: Ditto.
2872 * Makefile.in (z8k-tdep.o): Update dependencies.
2873 (m68hc11-tdep.o, valprint.o): Ditto.
2874 (v850-tdep.o, d10v-tdep.o): Ditto.
2875 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2876 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2877 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2878 (sh_opc_h, gdb_sim_sh_h): Define.
2879 (elf_sh_h, elf_bfd_h): Define.
2880 (opcode_m68hc11_h): Define.
2881 (OPCODES_SRC, OPCODES_DIR): define.
2882 (OPCODES): Use $(OPCODES_DIR).
2883 (gdb_sim_d10v_h): Rename sim_d10v_h.
2884 (gdb_sim_arm_h): Rename sim_arm_h.
2886 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2888 * utils.c (host_pointer_to_address, address_to_host_pointer):
2889 Change internal_error() message to indicate function responsible
2892 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2894 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2895 calls to local_hex_string_custom().
2897 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2899 * irix5-nat.c: Move IRIX shared library support from here...
2900 * solib-irix.c: ...to here. Revised substantially to work with
2901 generic solib framework.
2903 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2904 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2905 * mips-irix-tdep.c: New file.
2907 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2908 (mips-irix-tdep.o, solib-irix.o): New rules.
2909 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2911 * config/mips/irix6.mt (TDEPFILES): Likewise.
2912 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2914 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2916 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2917 disabled (via ``#if 0'') includes.
2919 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2921 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2922 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2923 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2924 Add support for the fpscr register.
2925 * rs6000-nat.c (regmap, fetch_inferior_registers)
2926 (store_inferior_registers, fetch_core_registers): Likewise.
2928 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2930 * rs6000-nat.c (language.h): Include.
2931 (special_regs): Delete this array.
2932 (regmap): New function.
2933 (fetch_register, store_register): Use regmap() to map gdb
2934 register numbers to ptrace register numbers. Also, use
2935 outputs from regmap() to make decisions regarding type of
2936 ptrace() call to make. In particular, don't compare against
2937 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2938 (fetch_inferior_registers, store_inferior_registers): Where
2939 possible, obtain register numbers from tdep struct. Don't
2940 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2941 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2942 (LAST_UISA_SP_REGNUM): Delete.
2944 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2946 * rs6000-nat.c (ppc-tdep.h): Include.
2947 (fetch_registers, store_register, fetch_core_registers): Don't
2948 access registers[] directly. Instead, use supply_register() or
2949 regcache_collect() as appropriate.
2950 (find_toc_address): Format hex address with local_hex_string().
2952 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2954 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2957 2002-07-24 Tom Tromey <tromey@redhat.com>
2959 * jv-exp.y: Marked all strings with _().
2960 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2962 (MethodInvocation, CastExpression, parse_number, yyerror,
2963 java_type_from_name, push_expression_name, yylex): Typo fixes.
2965 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2967 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2968 (tee_file_flush, tee_file_write, tee_file_fputs)
2969 (tee_file_isatty): New.
2970 * ui-file.h (tee_file_new): Add prototype.
2972 2002-07-24 Aidan Skinner <aidan@velvet.net>
2974 * ada-lang.c: Change k&r style function definitions to prototyped
2976 * ada-typeprint.c: Change k&r style function definitions to prototyped
2978 * ada-valprint.c: Change k&r style function definitions to prototyped
2981 2002-07-24 Andrew Cagney <cagney@redhat.com>
2983 * README: Remove reference to remote-bug.
2984 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2986 (m88k-nat.o): Delete rule.
2987 (m88k-tdep.o): Delete rule.
2988 (remote-bug.o): Delete rule.
2989 * MAINTAINERS: Mark as obsolete.
2990 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2991 * m88k-tdep.c: Make file obsolete.
2992 * config/m88k/m88k.mh: Ditto.
2993 * config/m88k/delta88v4.mh: Ditto.
2994 * config/m88k/delta88v4.mt: Ditto.
2995 * config/m88k/delta88.mt: Ditto.
2996 * config/m88k/delta88.mh: Ditto.
2997 * remote-bug.c: Ditto.
2998 * config/m88k/tm-delta88.h: Ditto.
2999 * config/m88k/nm-delta88v4.h: Ditto.
3000 * config/m88k/xm-delta88.h: Ditto.
3001 * config/m88k/xm-dgux.h: Ditto.
3002 * config/m88k/tm-m88k.h: Ditto.
3003 * config/m88k/nm-m88k.h: Ditto.
3004 * config/m88k/tm-delta88v4.h: Ditto.
3005 * m88k-nat.c: Ditto.
3006 * cxux-nat.c: Ditto.
3007 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3008 and m88*-*-* obsolete.
3009 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3012 2002-07-24 Andrew Cagney <cagney@redhat.com>
3014 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3015 constant. Same for local pointer variables.
3016 (extract_signed_integer): Ditto.
3017 * defs.h (extract_unsigned_integer): Update.
3018 (extract_signed_integer): Update.
3020 2002-07-24 Andrew Cagney <cagney@redhat.com>
3022 * regcache.c (regcache_raw_write): Change buf parameter to a
3023 constant void pointer.
3024 (regcache_raw_read): Change buf parameter to a void pointer.
3025 (legacy_write_register_gen): Change myaddr parameter a constant
3027 (supply_register): Change val parameter to a const void pointer.
3028 * regcache.h (regcache_raw_write): Update declaration.
3029 (regcache_raw_read): Update declaration.
3030 (supply_register): Update declaration.
3032 2002-07-24 Tom Tromey <tromey@redhat.com>
3034 * defs.h (gdb_readline_wrapper): Declare.
3035 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3036 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3037 * top.c (gdb_readline_wrapper): New function.
3038 (command_line_input): Use it.
3040 2002-07-24 Andrew Cagney <cagney@redhat.com>
3042 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3043 regcache_read and regcache_write.
3044 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3045 * regcache.c: Update.
3046 * sh-tdep.c (sh64_push_arguments): Update comment.
3047 (sh_pseudo_register_read): Update.
3048 (sh_pseudo_register_write): Update.
3049 (sh4_register_read): Update.
3050 (sh4_register_write): Update.
3051 (sh64_pseudo_register_read): Update.
3052 (sh64_pseudo_register_write): Update.
3053 (sh64_register_read): Update.
3054 (sh64_register_write): Update.
3055 * i386-tdep.c (i386_extract_return_value): Update.
3056 (i386_extract_struct_value_address): Update.
3057 (i386_extract_return_value): Update.
3058 * blockframe.c (generic_read_register_dummy): Update.
3059 (generic_call_dummy_register_unwind): Update
3060 * infrun.c (write_inferior_status_register): Update.
3062 2002-07-23 Jim Blandy <jimb@redhat.com>
3064 * parser-defs.h (expression_context_pc): Make this extern.
3065 (Thanks to Michael Snyder.)
3067 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3069 GDB 5.2.1 released from 5.2 branch.
3070 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3071 * README: Update to mention 5.2.1.
3073 2002-07-23 Mark Salter <msalter@redhat.com>
3075 * remote.c (remote_read_bytes): Fix check for error.
3077 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3079 * aix-thread.c (language.h): Include.
3080 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3081 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3082 Print newlines at end of debug messages.
3083 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3084 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3086 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3088 * aix-thread.c (ppc-tdep.h): Include.
3089 (special_register_p): New function.
3090 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3091 (store_regs_user_thread): Use register number information from
3092 gdbarch_tdep struct instead of hardcoded offsets relative to
3093 FIRST_UISA_SP_REGNUM.
3094 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3095 special_register_p() instead of using FPLAST_REGNUM and
3096 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3097 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3098 will be MQ's register number.
3100 2002-07-22 Michael Snyder <msnyder@redhat.com>
3102 * aix-thread.c (ops): Rename to aix_thread_ops.
3103 (base_ops): Rename to base_target.
3104 (ops_attach): Rename to aix_thread_attach.
3105 (ops_detach): Rename to aix_thread_detach.
3106 (ops_resume): Rename to aix_thread_detach.
3107 (ops_wait): Rename to aix_thread_wait.
3108 (ops_kill): Rename to aix_thread_kill.
3109 (init_ops): Rename to init_aix_thread_ops.
3110 (ops_fetch_register): Rename to aix_thread_fetch_register.
3111 (ops_store_register): Rename to aix_thread_store_register.
3112 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3113 (ops_thread_alive): Rename to aix_thread_thread_alive.
3114 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3115 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3116 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3117 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3118 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3119 (store_regs_lib): Rename to store_regs_user_thread.
3120 (store_regs_kern): Rename to store_regs_kernel_thread.
3122 2002-07-22 Michael Snyder <msnyder@redhat.com>
3124 * aix-thread.c (ops_prepare_to_store): Eliminate.
3125 (init_ops): Don't initialize ops.prepare_to_store.
3126 (store_regs_kern): Pre-fetch register buffers from child,
3127 because some registers may not be in the cache. Copy
3128 regs from register cache only if they are cached.
3129 (store_regs_lib): Copy regs from register cache only
3131 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3132 fill_gprs64): Ditto.
3134 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3136 * aix-thread.c (gdb_assert.h): Include.
3137 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3138 register sizes (from register cache) match size of buffer holding
3140 (fill_sprs32): Change parameter types to match those in the ptrace()
3142 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3143 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3145 2002-07-22 Michael Snyder <msnyder@redhat.com>
3147 * aix-thread.c (supply_sprs64): Cosmetic change.
3148 (supply_sprs32): Cosmetic change.
3149 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3150 (fill_sprs64): Use regcache_collect instead of read_register.
3151 (store_regs_lib): Use regcache_collect instead of
3152 read_register. Use fill_sprs32 instead of fill_sprs64,
3153 if debugging a 32-bit architecture.
3154 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3155 out of the register cache, instead of passing a pointer into
3156 the register cache directly to ptrace. Use regcache_collect
3157 insteaad of read_register.
3158 (ops_prepare_to_store): Use target_read_registers instead
3159 of read_register_bytes.
3161 2002-07-20 Aidan Skinner <aidan@velvet.net>
3163 * MAINTAINERS: Add self under write after approval.
3165 2002-07-20 Aidan Skinner <aidan@velvet.net>
3167 * ada-tasks.c: Change k&r style function definitions to prototyped
3170 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3172 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3173 * x86-64-tdep.c: Include "objfiles.h".
3174 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3175 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3177 2002-07-17 Michal Ludvig <michal@suse.cz>
3179 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3180 (update_context): Initialise cfa variable.
3182 2002-07-17 Michael Snyder <msnyder@redhat.com>
3184 * aix-thread.c: Shorten some long lines.
3185 Bring comments into line with code spec.
3187 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3189 * infrun.c: Re-indent using gdb_indent.sh.
3191 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3193 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3194 Leave the indentation temporarily untouched, to minimize the diffs.
3196 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3198 * stabsread.c: Make os9k sections of the code obsolete,
3200 * stabsread.h: Make os9k sections of the code obsolete.
3202 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3204 * linux-low.c (regsets_store_inferior_registers): Add free()
3205 at the end of a loop to prevent memory leak.
3206 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3207 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3208 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3210 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3212 2002-07-17 Jim Blandy <jimb@redhat.com>
3214 * macrocmd.c (info_macro_command): Remove newline from error
3217 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3219 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3220 (sh_gdbarch_init): Use it for sh-dsp.
3222 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3224 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3225 64-bit DWARF2 format.
3227 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3229 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3230 <sys/proc.h> when not available.
3232 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3234 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3235 * stabsread.c: Make os9k sections of the code obsolete.
3236 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3237 * config/i386/i386os9k.mt: Make file obsolete.
3238 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3239 (COMMON_OBS): Remove os9kread.o
3240 (SFILES): Remove os9kread.c.
3241 (os9kread.o, remote-os9k.o): Make target obsolete.
3242 * remote-os9k.c: Make file obsolete.
3243 * os9kread.c: Make file obsolete.
3246 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3248 * NEWS: Mention that the FR30 has been made obsolete.
3249 * fr30-tdep.c: Make file obsolete.
3250 * config/fr30/tm-fr30.h: Ditto.
3251 * config/fr30/fr30.mt: Ditto.
3252 * configure.tgt: Make fr30-*-elf obsolete.
3253 * MAINTAINERS: Make fr30-elf obsolete.
3255 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3257 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3258 found is not inside a section.
3260 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3262 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3264 (pdc_realloc): Use xrealloc() instead of realloc().
3266 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3268 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3269 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3270 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3273 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3275 * aix-thread.c (ptrace_check): Eliminate goto.
3276 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3279 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3281 * aix-thread.c (gdbcmd.h): Include.
3282 (DEBUG, DBG, DBG2, dbg): Eliminate.
3283 (debug_aix_thread): New static global.
3284 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3285 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3286 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3287 invocations to DBG and DBG2 macros to test against
3288 ``debug_aix_thread'' and call fprintf_unfiltered().
3289 (_initialize_aix_thread): Add new command "set debug aix-thread".
3291 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3293 From Gerhard Tonn <TON@de.ibm.com>:
3294 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3295 instead of supply_register.
3297 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3299 * dwarf2cfi.c: Include "gdb_assert.h".
3300 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3302 (update_context): Do not use __func__. Add missing ``break''.
3303 (update_context): Do not use __func__.
3305 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3307 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3308 and its setting. Set gdbarch instruction printing functions
3309 directly. For non-rs6000 case use new function
3310 gdb_print_insn_powerpc.
3311 (gdb_print_insn_powerpc): New function.
3313 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3315 * NEWS: Mention that the d30v has been marked obsolete.
3316 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3317 * configure.tgt: Mark d30v-*-* as obsolete.
3318 * d30v-tdep.c: Mark file as obsolete.
3319 * config/d30v/d30v.mt: Ditto.
3320 * config/d30v/tm-d30v.h: Ditto.
3322 2002-07-13 Aidan Skinner <aidan@velvet.net>
3324 * ada-tasks.c (add_task_entry): replace calls to
3325 malloc() with xmalloc
3326 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3328 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3329 ada_finish_decode_line_1, all_sals_for_line
3330 ada_breakpoint_rewrite): replace calls to free() with xfree()
3332 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3334 From Nicholas Duffek (with minor changes by Martin Hunt,
3335 Louis Hamilton, and Kevin Buettner):
3336 * aix-thread.c: New file.
3338 2002-07-12 Petr Sorfa <petrs@caldera.com>
3340 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3341 complaint for invalid attribute class or form.
3342 (read_func_scope): DW_AT_frame_base
3343 better handling of DW_AT_block*.
3344 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3345 better handling of DW_AT_block*.
3346 (read_common_block): DW_AT_location
3347 better handling of DW_AT_block*.
3348 (read_partial_die): DW_AT_location better handling
3350 (new_symbol): DW_AT_external better handling of
3351 DW_AT_block*. Proper initialization of variable
3353 (attr_form_is_block): New function that returns true
3354 if the attribute's form is of DW_FORM_block*.
3356 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3358 * valops.c (find_method_list): Remove comment about
3359 removed STATIC_MEMFUNCP argument.
3360 (value_find_oload_method_list): Likewise.
3362 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3364 From Nicholas Duffek:
3365 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3366 target_new_objfile_hook.
3368 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3370 From Nicholas Duffek:
3371 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3374 2002-07-12 Andrew Cagney <cagney@redhat.com>
3376 * MAINTAINERS: Mention --enable-sim-build-warnings.
3377 (m68hc11-elf): Disable sim build warnings.
3378 (m32r-elf): Mark as broken obsolete candidate.
3379 (x86_64-linux-gnu): Mark as buildable with -Werror.
3380 (arm-elf): Change -w to ``,'' which enables warnings but not
3383 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3385 * bcache.h: Update copyright.
3386 (struct bstring, struct bcache): Move definition to "bcache.c".
3387 Replaced by opaque declaration.
3388 (bcache_xfree): Replace free_bcache.
3389 (bcache_xmalloc, bcache_memory_used): Declare.
3391 * bcache.c: Update copyright.
3392 (struct bstring, struct bcache): Moved to here from "bcache.h".
3394 (bcache_xmalloc, bcache_memory_used): New functions.
3395 (bcache_xfree): Replace function free_bcache.
3397 * Makefile.in (objfiles.o): Add $(bcache_h).
3398 (objfiles_h): Remove $(bcache_h).
3399 (symfile.o): Add $(bcache_h).
3401 * symmisc.c: Update copyright.
3402 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3403 (print_objfile_statistics): Use bcache_memory_used.
3405 * symfile.c: Include "bcache.h".
3406 (reread_symbols): Use bcache_xfree.
3407 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3408 (add_psymbol_to_list): Pass psymbol_cache by value.
3409 (add_psymbol_with_dem_name_to_list): Ditto.
3411 * objfiles.h: Update copyright.
3412 (struct bcache): Declare opaque. Do not include "bcache.h".
3413 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3415 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3417 * objfiles.c: Include "bcache.h". Update copyright.
3418 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3420 (free_objfile): Use bcache_xfree.
3422 2002-07-11 Grace Sainsbury <graces@redhat.com>
3424 * monitor.c (monitor_fetch_register): Make name a constant.
3425 (monitor_store_register): Same.
3427 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3429 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3430 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3431 (finish_block) For non-function blocks, hash the symbol table. For
3432 function blocks, mark the symbol table as unhashed.
3433 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3434 (msymbol_hash_iw): Likewise.
3435 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3437 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3438 (lookup_minimal_symbol): Likewise for both.
3439 * symtab.h (struct block): Add `hashtable' flag. Comment the
3441 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3442 (ALL_BLOCK_SYMBOLS): Update.
3443 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3444 (struct symbol): Add `hash_next' pointer.
3445 * symtab.c (lookup_block_symbol): Search using the hash table when
3447 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3448 (search_symbols, find_addr_symbol): Likewise.
3450 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3451 (read_dst_symtab): Likewise.
3452 * jv-lang.c (get_java_class_symtab): Likewise.
3453 * mdebugread.c: Include "gdb_assert.h".
3454 (shrink_block): Assert that the block being modified is not hashed.
3455 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3456 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3458 (dump_symtab): Recognize hashed blocks.
3459 * printcmd.c (print_frame_args): Assert that function blocks do not
3460 have hashed symbol tables.
3461 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3462 (fill_in_ada_prototype, debug_print_block): Likewise.
3463 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3465 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3467 * stack.c (print_frame): Use result of frame_address_in_block()
3468 instead of fi->pc when evaluating symbols.
3469 (backtrace_command_1): Ditto.
3471 2002-07-11 Andrew Cagney <cagney@redhat.com>
3473 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3476 * arm-tdep.c (arm_register_name): Make return type constant.
3478 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3480 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3482 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3483 * s390-tdep.c (s390_fp_regnum): Ditto.
3484 (s390_read_fp): Ditto.
3485 (s390_pop_frame): Ditto.
3486 (_initialize_s390_tdep): Ditto.
3487 * remote.c (get_remote_state): Ditto.
3488 * procfs.c (mappingflags): Ditto.
3489 * memattr.c (_initialize_mem): Ditto.
3490 * mcore-tdep.c (mcore_pop_frame): Ditto.
3491 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3492 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3493 * language.c (set_case_str): Ditto.
3494 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3495 * frv-tdep.c (new_variant): Ditto.
3496 (frv_stopped_data_address): Ditto.
3497 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3498 (context_alloc): Ditto.
3499 (frame_state_alloc): Ditto.
3500 (unwind_tmp_obstack_init): Ditto.
3501 (unwind_tmp_obstack_free): Ditto.
3502 (cfi_read_fp): Ditto.
3503 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3504 (cris_pop_frame): Ditto.
3505 * c-lang.c (scanning_macro_expansion): Ditto.
3506 (finished_macro_expansion): Ditto.
3507 (c_preprocess_and_parse): Ditto.
3508 * gdbarch.sh: Ditto.
3509 * gdbarch.h, gdbarch.c: Regenerate.
3510 * config/mn10200/tm-mn10200.h: Adjust indentation.
3511 * target.c: Adjust indentation.
3512 * symtab.h: Adjust indentation.
3513 * stabsread.h: Adjust indentation.
3514 * remote-es.c: Adjust indentation.
3515 * os9kread.c: Adjust indentation.
3517 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3519 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3520 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3522 2002-07-10 Grace Sainsbury <graces@redhat.com>
3524 * NEWS: Mention m68k, mcore multi-arching.
3525 * MAINTAINERS: Change status of m68k, mcore to reflect
3528 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3530 * valops.c (find_overload_match): Free oload_syms.
3532 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3534 Define HAVE_SYS_PROC_H if sys/proc.h exists
3535 * configure.in: Add check for sys/proc.h
3536 * config.in: Regenerate.
3537 * configure: Regenerate.
3539 2002-07-09 Grace Sainsbury <graces@redhat.com>
3541 * config/m68k/tm-m68k.h: Remove macros wrapped in
3542 #if !GDB_MULTI_ARCH.
3544 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3546 * config.in, configure: Regenerate.
3548 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3550 * dwarf2cfi.c: Include "gcore.h".
3551 (execute_stack_op): Fix implementation of the
3552 DW_OP_deref and DW_OP_deref_size operators by letting do their
3553 lookup in the target.
3555 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3557 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3558 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3561 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3563 Fix PR gdb/595, gdb/602
3564 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3565 Don't call value_cast, just read the vtable pointer; update comments
3568 2002-07-05 Grace Sainsbury <graces@redhat.com>
3570 * config/mcore/tm-mcore.h: Remove file.
3571 * config/mcore/mcore.mt: Remove definition of TM_FILE
3572 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3574 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3576 * i386bsd-tdep.c: Include "gdb_string.h".
3578 2002-07-04 Grace Sainsbury <graces@redhat.com>
3580 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3581 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3583 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3584 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3585 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3586 (RETVAL_REGNUM): Move macros from tm-mcore.h
3587 (mcore_reg_struct_has_addr): New function.
3588 (mcore_gdbarch_init): Added initializations for the macros removed
3591 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3593 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3594 traditonal string branding within the ELF header.
3596 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3598 * symtab.c (remove_params): New function.
3599 (make_symbol_overload_list): Use it instead of cplus_demangle.
3600 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3602 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3604 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3606 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3608 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3609 and tdep->sigtramp_end.
3610 * i386obsd-nat.c: New file.
3611 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3613 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3614 Don't call get_current_frame().
3616 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3618 * i386-nat.c (child_post_startup_inferior): New function
3619 calling i386_cleanup_dregs if
3620 I386_USE_GENERIC_WATCHPOINTS is defined.
3621 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3622 conditional to acknowledge that i386-nat.c has its
3623 own child_post_startup_inferior function.
3625 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3627 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3628 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3629 instead of MAX_REGISTER_RAW_SIZE.
3630 (i386_extract_return_value, i386_extract_struct_value_address):
3631 Convert to use regcache.
3632 (i386_gdbarch_init): Set max_register_raw_size and
3633 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3634 Set extract_return_value and extract_struct_value_address instead
3635 of their deprecated variants.
3637 Convert i386 target to generic dummy frames.
3638 * i386-tdep.c: Include "symfile.h".
3639 (i386_frameless_signal_p): Consider a function to be frameless if
3640 the pc points at the first instruction of the function.
3641 (i386_frame_chain): Handle (generic) call dummies.
3642 (i386_frame_saved_pc): Likewise.
3643 (i386_frame_init_saved_regs): Remove code dealing with call
3644 dummies on the stack.
3645 (i386_push_dummy_frame): Removed.
3646 (i386_call_dummy_words): Removed.
3647 (i386_fix_call_dummy): Removed.
3648 (i386_push_return_address): New function.
3649 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3650 parameter, and don't call get_current_frame.
3651 (i386_pop_frame): New function.
3652 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3653 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3654 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3655 call_dummy_length to 0, set call_dummy_words to NULL, set
3656 sizeof_call_dummy_words to 0, set fix_call_dummy to
3657 generic_fix_call_dummy, set pc_in_call_dummy to
3658 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3659 generic_push_dummy_frame, set push_return_address to
3660 i386_push_return_address and set frame_chain_valid to
3661 generic_file_frame_chain_valid.
3663 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3665 * gdbarch.sh (struct regcache): Add opaque declaration.
3666 (EXTRACT_RETURN_VALUE): New architecture method.
3667 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3668 * gdbarch.h, gdbarch.c: Regenerate.
3669 * arch-utils.c (legacy_extract_return_value): New function.
3670 * arch-utils.h (legacy_extract_return_value): Declare.
3671 * values.c (value_being_returned): Re-enable code handling
3672 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3673 deprecated_grub_regcache_for_registers call to block handling
3674 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3675 (EXTRACT_RETURN_VALUE): Do not define.
3677 2002-07-03 Grace Sainsbury <graces@redhat.com>
3679 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3680 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3681 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3682 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3683 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3684 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3685 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3686 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3687 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3688 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3689 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3690 argument so the function fits the prototype in the architecture
3692 (mcore_pop_frame): Remove argument so the function fits the
3693 prototype. Use get_current_frame instead of the argument.
3694 (mcore_push_arguments): Change type of struct_return so the
3695 function can be used in the architecture vector.
3696 (mcore_store_struct_return): Add.
3697 (mcore_frame_init_saved_regs): Add.
3698 (mcore_gdbarch_init): Add function calls to replace the macros
3699 removed from tm-mcore.h
3701 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3703 * infcmd.c (print_return_value): Remove compatibility code calling
3704 deprecated_grub_regcache_for_registers.
3706 * values.c: Include "regcache.h".
3707 (value_being_returned): Update. Use
3708 deprecated_grub_regcache_for_registers to extract the register
3710 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3711 ``struct regcache''.
3712 * Makefile.in (values.o): Add dependency on $(regcache_h).
3714 * inferior.h (run_stack_dummy): Change type of second parameter to
3715 a ``struct regcache''.
3716 * valops.c (hand_function_call): Change type of retbuf to ``struct
3717 regcache''. Allocate using regcache_xmalloc, clean using
3718 make_cleanup_regcache_xfree.
3719 * infcmd.c (run_stack_dummy): Update. Use
3720 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3722 * regcache.c (do_regcache_xfree): New function.
3723 (make_cleanup_regcache_xfree): New function.
3724 * regcache.h (make_cleanup_regcache_xfree): Declare.
3726 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3728 * event-top.c (command_line_handler): Don't read past
3729 beginning of buffer.
3731 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3733 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3735 (varobj_create): Store frame_id for root.
3736 (varobj_gen_name): Use xasprintf.
3737 (varobj_update): Save and restore frame using get_frame_id() and
3739 (create_child): Use xasprintf.
3740 (new_root_variable): Initialize frame_id.
3741 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3742 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3743 to prevent memory leak.
3745 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3747 * valops.c (hand_function_call): Move declaration of retbuf to
3748 start of function, allocate using malloc, add a cleanup but before
3749 the inf_status cleanup, cleanup the buffer. Rename local variable
3750 old_chain to inf_status_cleanup.
3752 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3754 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3756 * cli/cli-decode.c (cmd_func_p): New function.
3757 (cmd_func): New function.
3759 * command.h: Add cmd_func() and cmd_func_p().
3761 2002-07-03 Grace Sainsbury <graces@redhat.com>
3763 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3764 (REGISTER_SIZE): Remove.
3765 (MAX_REGISTER_RAW_SIZE): Remove.
3766 (REGISTER_VIRTUAL_TYPE): Remove.
3767 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3768 (REGISTER_NAME): Remove.
3769 (USE_GENERIC_DUMMY_FRAMES): Remove.
3770 (CALL_DUMMY): Remove.
3771 (CALL_DUMMY_START_OFFSET): Remove.
3772 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3773 (CALL_DUMMY_LOCATION): Remove.
3774 (FIX_CALL_DUMMY): Remove.
3775 (CALL_DUMMY_ADDRESS): Remove.
3776 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3777 (SAVE_DUMMY_FRAME_TOS): Remove.
3778 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3779 (mcore_register_virtual_type): New function.
3780 (mcore_register_byte): New function.
3781 (mcore_register_size): New function.
3782 (mcore_register_name): New function.
3783 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3784 macros removed from tm-mcore.h.
3785 (mcore_dump_tdep): Add.
3786 (_initialize_mcore_tdep): Add gdbarch_register call.
3788 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3790 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3791 frameless_look_for_prologue, such that we actually call this
3794 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3796 * frame.h (frame_address_in_block): New function.
3798 * blockframe.c (frame_address_in_block): New function extracted
3799 from get_frame_block().
3800 (get_frame_block): Use frame_address_in_block().
3801 (block_innermost_frame): Use frame_address_in_block() to match
3802 the frame pc address against the block boundaries rather than
3803 the frame pc directly. This prevents a failure when a frame pc
3804 is actually a return-address pointing immediately after the end
3807 2002-07-02 Grace Sainsbury <graces@redhat.com>
3809 * MAINTAINERS: Add self under write after approval.
3811 2002-07-02 Grace Sainsbury <graces@redhat.com>
3813 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3814 used in architecture vector. The default is
3815 m68k_local_breakpoint_from_pc.
3816 (m68k_local_breakpoint_from_pc): Add.
3817 (enum): Add register numbers from tm-m68k.h.
3818 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3820 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3821 GDB_MULTI_ARCH_PARTIAL.
3822 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3823 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3825 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3826 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3827 to enum in m68k-tdep.c
3829 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3831 * solib-osf.c (open_map): Compute the list of shared libraries
3832 loaded by the inferior, rather than the list of libraries loaded
3833 by GDB itself. Otherwise, GDB ends up reading the symbols from
3834 the wrong shared libraries...
3836 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3838 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3839 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3841 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3843 (FRAMELESS_SIGNAL): Remove function.
3844 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3845 i386_linux_saved_pc_after_call): Removed.
3846 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3847 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3848 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3850 * i386-tdep.c (i386_frameless_signal_p): New function.
3851 (i386_frame_chain): Deal with frameless signals.
3852 (i386_sigtramp_saved_sp): New function.
3853 (i386_frame_saved_pc): Deal with frameless signals.
3854 (i386_saved_pc_after_call): Make sure the correct value is
3855 returned just after entry into a sigtramp.
3856 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3857 i386fbsd4_sc_sp_offset): New variables.
3858 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3859 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3860 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3861 similiar to what we already did for sc_pc_offset.
3862 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3865 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3867 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3869 * config/i386/tm-x86-64linux.h: New.
3870 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3872 * config/i386/nm-x86-64.h: Rename to ...
3873 * config/i386/nm-x86-64linux.h: ... this one.
3874 * config/i386/x86-64linux.mh: Reflect the above change.
3876 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3878 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3879 with sigcontext_addr. Add sc_sp_offset.
3880 (i386bsd_sigtramp_saved_pc): Remove prototype.
3881 (i386bsd_sicontext_addr): Add prototype.
3882 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3883 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3884 (i386_svr4_sigtramp_saved_pc): Removed.
3885 (i386_svr4_sigcontext_addr): New function.
3886 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3887 Initialize tdep->sigcontext_addr instead. Initialize
3888 tdep->sc_pc_offset and tdep->sc_sp_offset.
3889 (i386_gdbarch_init): Likewise.
3890 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3892 (i386bsd_sigtramp_saved_pc): Remove function.
3893 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3894 Initialize tdep->sigcontext_addr instead. Initialize
3896 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3897 of tdep->sigtramp_saved_pc.
3898 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3899 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3902 * i386-tdep.c (i386_frameless_function_invocation,
3903 i386_frame_num_args, i386_frame_init_saved_regs,
3904 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3905 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3906 i386_extract_return_value, i386_store_return_value,
3907 i386_extract_struct_value_address, i386_register_virtual_type,
3908 i386_register_convertible, i386_register_convert_to_virtual,
3909 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3910 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3913 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3915 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3917 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3918 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3919 this macro. Include "value.h".
3921 2002-06-30 Aidan Skinner <aidan@velvet.net>
3923 * ada-exp.tab.c: remove as it's a generated file
3924 * ada-lex.c: remove as it's a generated file
3926 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3928 * config/i386/tm-i386.h (struct frame_info, struct
3929 frame_saved_regs, struct value, struct type): Remove forward
3932 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3933 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3934 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3935 (FILL_FPXREGSET): Define.
3937 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3939 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3940 i[3456]86-*-netbsd* case.
3941 * config/i386/tm-obsd.h: Removed.
3942 * config/i386/obsd.mt: Removed.
3943 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3945 (MH_CFLAGS): Add -DYYDEBUG=0.
3947 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3948 i386nbsd_sc_pc_offset on OpenBSD too.
3950 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3951 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3952 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3954 * i386bsd-tdep.c: Include "arch-utils.h".
3955 (i386bsd_aout_in_solib_call_trampoline): New function.
3956 (i386bsd_init_abi): Set in_solib_call_trampoline to
3957 i386bsd_aout_in_solib_call_trampoline.
3958 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3959 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3961 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3963 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3964 (struct obstack, struct bcache): Add opaque declarations.
3965 * Makefile.in (macrotab_h): Update
3967 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3969 * blockframe.c (generic_find_dummy_frame): Change return type to
3970 ``struct regcache''.
3971 (struct dummy_frame): Replace field ``registers'' with regcache, a
3972 struct regcache object.
3973 (generic_find_dummy_frame): Update.
3974 (generic_push_dummy_frame): Update. Use regcache_xfree,
3975 regcache_xmalloc and regcache_cpy.
3976 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3978 (deprecated_generic_find_dummy_frame): Update.
3979 (generic_read_register_dummy): Update. Use
3980 regcache_read_as_address.
3981 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3982 (generic_get_saved_register): Update. Use regcache_read.
3984 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3986 * Makefile.in (objfiles_h): Add $(bcache_h).
3987 * objfiles.h: Include "bcache.h".
3989 * Makefile.in (symtab_h): Remove $(bcache_h).
3990 * symtab.h: Do not include "bcache.h".
3992 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3994 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3995 generic_func_frame_chain_valid.
3997 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3999 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4000 * config/i386/tm-fbsd.h: Likewise.
4002 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4004 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4005 generic_unwind_get_saved_register.
4007 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4009 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4010 * regcache.c (supply_register): Add missing argument to
4011 register_buffer call.
4013 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4015 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4016 Solaris /bin/grep does not not like it. From Peter Schauer.
4018 2002-06-26 Tom Tromey <tromey@redhat.com>
4020 * command.h (add_setshow_cmd): Declare.
4021 (add_setshow_cmd_full): Declare.
4022 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4023 returns void. Use add_setshow_cmd_full.
4024 (add_setshow_cmd_full): New function.
4025 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4026 (add_setshow_boolean_cmd): Likewise.
4028 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4030 * config/vax/tm-vax.h: Protect from multiple inclusion.
4031 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4032 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4033 * config/vax/tm-vaxbsd.h: ...here. New file.
4034 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4036 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4038 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4039 (BELIEVE_PCC_PROMOTION): Remove.
4040 (AP_REGNUM): Move to...
4041 * config/vax/nm-vax.h: ...here.
4042 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4043 (vax_breakpoint_from_pc): New function.
4044 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4045 and gdbarch_believe_pcc_promotion.
4047 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4049 * Makefile.in (vax_tdep_h): Define.
4050 (vax-tdep.o): Use $(vax_tdep_h).
4051 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4052 (vax_dump_tdep): New function.
4053 (_initialize_vax_tdep): Register vax_dump_tdep.
4054 * vax-tdep.h: Include osabi.h.
4055 (struct gdbarch_tdep): New.
4057 2002-06-26 Andrew Cagney <cagney@redhat.com>
4059 * frame.h (deprecated_generic_find_dummy_frame): Rename
4060 generic_find_dummy_frame.
4061 * blockframe.c (generic_find_dummy_frame): Make static.
4062 (deprecated_generic_find_dummy_frame): New function.
4063 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4064 generic_find_dummy_frame with deprecated_find_dummy_frame.
4065 (sh64_nofp_frame_init_saved_regs): Ditto.
4066 (sh_fp_frame_init_saved_regs): Ditto.
4067 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4068 (s390_frame_chain): Ditto.
4069 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4071 2002-06-26 Grace Sainsbury <graces@redhat.com>
4073 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4074 gdbarch vector are at the top.
4076 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4077 (FRAME_ARGS_ADDRESS): Remove.
4078 (FRAME_LOCALS_ADDRESS): Remove.
4079 (FRAME_NUM_ARGS): Remove.
4080 (FRAME_ARGS_SKIP): Remove.
4081 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4082 (m68k_gdbarch_init): Add gdbarch initializations for macros
4083 undefined in tm-m68k.h
4085 2002-06-26 Grace Sainsbury <graces@redhat.com>
4087 * monitor.h: Add the function regname to monitor_ops
4088 structure. This way NUM_REGS does not have to be a constant.
4089 * monitor.c (monitor_fetch_register): Added support for regname
4090 function. The function is called if the array regnames is NULL.
4091 (monitor_store_register): Same.
4092 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4094 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4095 cpu32bug_cmds.regname to point to new function.
4096 * abug-rom.c (abug_regname): Same as above.
4097 (init_abug_cmds): Same.
4098 * dbug-rom.c (dbug_regname): Same as above.
4099 (init_dbug_cmds): Same.
4100 * remote-est.c (est_regname): Same.
4101 (init_est_cmds): Same.
4102 * rom68k-rom.c (rom68k_regname): Same.
4103 (init_rom68k_cmds): Same.
4105 2002-06-25 Tom Tromey <tromey@redhat.com>
4107 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4109 2002-06-25 Andrew Cagney <cagney@redhat.com>
4111 * infrun.c (stop_registers): Change variable's type to ``struct
4113 (xmalloc_inferior_status): Delete function.
4114 (free_inferior_status): Delete function.
4115 (normal_stop): Use regcache_cpy.
4116 (struct inferior_status): Change type of fields ``stop_registers''
4117 and ``registers'' to ``struct regcache''.
4118 (write_inferior_status_register): Use regcache_write.
4119 (save_inferior_status): Instead of calling
4120 xmalloc_inferior_status, allocate the inf_status buffer directly.
4121 Use regcache_dup_no_passthrough and regcache_dup to save the
4123 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4124 Replace the stop_registers regcache instead of overriding it. Use
4125 regcache_xfree. Instead of calling free_inferior_status, xfree
4126 the buffer directly.
4127 (discard_inferior_status): Use regcache_xfree. Instead of calling
4128 free_inferior_status, xfree the buffer directly.
4129 (build_infrun): Use regcache_xmalloc.
4130 (_initialize_infrun): Delete redundant call to build_infrun.
4132 * Makefile.in (infcmd.o): Add $(regcache_h).
4134 * infcmd.c: Include "regcache.h".
4135 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4136 obtain the address of `stop_registers' register buffer.
4137 (print_return_value): Ditto.
4139 * inferior.h (struct regcache): Add opaque declaration.
4140 (stop_registers): Change variable's declared type to ``struct
4143 2002-06-24 Tom Tromey <tromey@redhat.com>
4145 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4146 * target.c (initialize_targets): Fixed typo in
4147 trust-readonly-sections `show' documentation.
4149 * main.c: Marked all strings with _().
4151 2002-06-24 Don Howard <dhoward@redhat.com>
4153 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4154 that means max CORE_ADDR+1.
4155 (lookup_mem_region): Ditto.
4156 (mem_info_command): Ditto.
4158 2002-06-24 Grace Sainsbury <graces@redhat.com>
4160 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4161 (REGISTER_BYTES_OK): Remove.
4162 (REGISTER_BYTES): Remove.
4163 (STORE_STRUCT_RETURN): Remove.
4164 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4165 (STORE_RETURN_VALUE): Remove.
4166 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4167 (FRAME_CHAIN): Remove.
4168 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4169 (FRAME_SAVED_PC): Remove.
4170 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4171 (m68k_store_struct_return): Add.
4172 (m68k_deprecated_extract_return_value): Add.
4173 (m68k_deprecated_extract_struct_value_address): Add.
4174 (m68k_store_return_value): Add.
4175 (m68k_frame_chain): Add.
4176 (m68k_frameless_function_invocation): Add.
4177 (m68k_frame_saved_pc): Add.
4178 (m68k_gdbarch_init): added set_gdbarch calls for new
4179 functions and deleted macros.
4181 2002-06-23 Tom Tromey <tromey@redhat.com>
4183 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4184 (ALLDEPFILES): Likewise.
4185 (udiheaders): Removed.
4186 (udip2soc.o): Likewise.
4187 (udi2go32.o): Likewise.
4189 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4191 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4193 * infrun.c (_initialize_infrun): Delete unnecessary call to
4196 * regcache.h: Update comments describing the regcache_cpy family
4198 (regcache_save, regcache_restore): Delete declaration.
4199 (regcache_save_no_passthrough): Delete declaration.
4200 (regcache_restore_no_passthrough): Delete declaration.
4201 * regcache.c (regcache_save): Delete function.
4202 (regcache_save_no_passthrough): Delete function.
4203 (regcache_restore): Delete function.
4204 (regcache_restore_no_passthrough): Delete function.
4206 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4208 * config/m68k/tm-m68k.h: Fix typo.
4209 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4210 (m68k_frame_init_saved_regs): Declare.
4212 2002-06-21 Jim Blandy <jimb@redhat.com>
4214 Remove some vestiges of Harris 88k support.
4215 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4216 register numbering quirk.
4217 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4218 odd symbols occurring in Harris 88k ELF targets.
4220 2002-06-21 Tom Tromey <tromey@redhat.com>
4222 * gdb_locale.h: New file.
4223 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4224 (defs_h): Added gdb_locale.h.
4225 * configure, config.in: Rebuilt.
4226 * configure.in (PACKAGE): Define.
4227 * defs.h: Include gdb_locale.h.
4228 * main.c (captured_main): Call setlocale, bindtextdomain,
4231 2002-06-21 Dave Brolley <brolley@redhat.com>
4233 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4234 * config/frv/frv.mt: New file.
4235 * config/frv/tm-frv.h: New file.
4236 * configure.tgt: Support frv-*-*.
4237 * Makefile.in (frv-tdep.o): New target.
4238 * frv-tdep.c: New file.
4239 * NEWS: Mention frv.
4241 2002-06-21 Dave Brolley <brolley@redhat.com>
4243 * MAINTAINERS: Add self to "Write After Approval" list.
4245 2002-06-21 Grace Sainsbury <graces@redhat.com>
4247 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4248 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4249 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4250 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4251 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4253 * m68k-tdep.c: Include arch-utils.h
4254 (m68k_register_raw_size): Add.
4255 (m68k_register_virtual_size): Add.
4256 (m68k_register_virtual_type): Add.
4257 (m68k_register_name): Add.
4258 (m68k_stack_align): Add.
4259 (m68k_register_byte): Add.
4260 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4263 2002-06-21 Grace Sainsbury <graces@redhat.com>
4265 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4266 m68k_find_saved_regs.
4267 (m68k_pop_frame): Removed saved_regs structure, and replaced
4268 references to it with frame->saved_regs.
4269 (m68k_gdbarch_init): Added function calls to initialize the
4271 (m68k_fix_call_dummy): Add.
4272 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4273 (CALL_DUMMY): Remove.
4274 (CALL_DUMMY_LENGTH): Remove.
4275 (CALL_DUMMY_START_OFFSET): Remove.
4276 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4277 (FIX_CALL_DUMMY): Remove.
4278 (PUSH_DUMMY_FRAME): Remove.
4279 (POP_FRAME): Remove.
4281 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4283 * parse.c (parse_fprintf): New function used to avoid calls to
4284 fprintf in bison parser generated debug code.
4285 * parser-defs.h: Declaration of new parse_fprintf function.
4286 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4287 Set YYDEBUG to 1 by default.
4288 Set YYFPRINTF as parse_fprintf.
4290 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4292 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4294 (pointer_encoding, enum ptr_encoding): New.
4295 (execute_cfa_program): Take care about pointer encoding.
4296 (dwarf2_build_frame_info): Only call parse_frame_info for
4297 .debug_frame and .eh_frame.
4298 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4299 fixed augmentation handling, added relative addressing,
4300 ignore duplicate FDEs. Added comments.
4301 * dwarf2cfi.c: Reindented.
4303 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4305 * event-top.c (command_handler): Don't use space_at_cmd_start
4306 unless there is sbrk() on the host. Assign time and space data
4307 to union fields of the appropriate length.
4309 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4311 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4312 x86_64_register_name. Return type changed to 'const char *'.
4313 (x86_64_register_name2nr): Rename to x86_64_register_number.
4314 (x86_64_gdbarch_init): Update to reflect the change.
4315 * x86-64-tdep.h: Ditto.
4316 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4317 (supply_fpregset): Ditto.
4319 2002-06-19 Andrew Cagney <cagney@redhat.com>
4321 * regcache.h: Update copyright.
4322 (struct regcache, struct gdbarch): Add opaque declarations.
4323 (current_regcache): Declare global variable.
4324 (regcache_read, regcache_write): Add gdbarch parameter.
4325 (regcache_save, regcache_save_no_passthrough)
4326 (regcache_restore, regcache_restore_no_passthrough)
4327 (regcache_dup, regcache_dup_no_passthrough)
4328 (regcache_cpy, regcache_cpy_no_passthrough)
4329 (deprecated_grub_regcache_for_registers)
4330 (deprecated_grub_regcache_for_register_valid)
4331 (regcache_valid_p): Add function declarations.
4333 * regcache.c: Update copyright.
4334 (regcache_descr_handle): New global variable.
4335 (struct regcache_descr): Define.
4336 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4337 (regcache_descr, xfree_regcache_descr): New functions.
4338 (struct regcache): Define.
4339 (regcache_xmalloc, regcache_xfree): New functions.
4340 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4341 (regcache_dup, regcache_dup_no_passthrough): New functions.
4342 (regcache_valid_p, regcache_read_as_address): New functions.
4343 (deprecated_grub_regcache_for_registers): New function.
4344 (deprecated_grub_regcache_for_register_valid): New function.
4345 (current_regcache): New global variable.
4346 (register_buffer): Add regcache parameter. Update calls.
4347 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4348 (read_register_gen, write_register_gen): Update register_buffer
4349 call. Test for legacy_p instead of gdbarch_register_read_p or
4350 gdbarch_register_write_p.
4351 (regcache_collect): Update register_buffer call.
4352 (build_regcache): Rewrite. Use deprecated grub functions.
4353 (regcache_save, regcache_save_no_passthrough): New functions.
4354 (regcache_restore, regcache_restore_no_passthrough): New
4356 (_initialize_regcache): Create the regcache_data_handle. Swap
4357 current_regcache global variable.
4359 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4360 parameter to regcache_read and regcache_write calls.
4361 (sh4_register_read): Ditto.
4362 (sh64_pseudo_register_read): Ditto.
4363 (sh64_register_read): Ditto.
4364 (sh_pseudo_register_write): Ditto.
4365 (sh4_register_write): Ditto.
4366 (sh64_pseudo_register_write): Ditto.
4367 (sh64_register_write): Ditto.
4369 * defs.h (XCALLOC): Define.
4371 2002-06-19 Grace Sainsbury <graces@redhat.com>
4373 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4374 * m68k-tdep.c (m68k_gdbarch_init): Added.
4375 (m68k_dump_tdep): Added.
4377 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4379 * ada-lang.c (fill_in_ada_prototype): Update comment.
4381 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4383 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4385 (mips_abi_string, mips_abi_strings): New.
4386 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4387 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4388 tdep->mips_abi_string. Honor mips_abi_string. Default to
4389 O32 if no ABI is found.
4390 (mips_dump_tdep): Use mips_abi_strings.
4391 (mips_abi_update): New function.
4392 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4393 ``set mips abi'' and ``show mips abi''. Check the size of
4396 2002-06-19 Andrew Cagney <cagney@redhat.com>
4398 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4401 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4403 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4404 current frame using only the first stack size adjustment. All
4405 subsequent size adjustments are not considered to be part of
4406 the "static" part of the current frame.
4407 Compute the address of the saved registers relative to the
4408 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4409 in use in this frame.
4411 2002-06-18 Don Howard <dhoward@redhat.com>
4413 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4414 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4415 suggesting this solution.
4417 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4419 * config/romp/xm-rtbsd.h: Delete file.
4420 * config/romp/rtbsd.mh: Delete file.
4422 2002-06-18 Keith Seitz <keiths@redhat.com>
4424 * breakpoint.c (condition_command): Post breakpoint_modify
4425 when a condition is added to an existing breakpoint.
4426 (commands_command): Likewise for commands.
4427 (set_ignore_count): Likewise for ignore counts.
4428 If no tty, do not simply return, still need to send event
4430 (ignore_command): Only print a newline if the command came
4432 Don't call breakpoints_changed, since this is now properly
4433 handled by set_ignore_count.
4435 2002-06-18 Andrew Cagney <cagney@redhat.com>
4437 * MAINTAINERS: Note that cris-elf target can be compiled with
4439 * cris-tdep.c (cris_register_name): Make return type constant.
4440 (cris_breakpoint_from_pc): Ditto.
4442 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4444 * frame.h (struct frame_info): Change type of context to
4447 2002-06-17 Andrew Cagney <cagney@redhat.com>
4449 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4451 * gdbarch.h, gdbarch.c: Regenerate.
4452 * config/mips/tm-mips.h (mips_register_name): Update.
4453 * i386-tdep.h (i386_register_name): Update.
4454 * mips-tdep.c (mips_register_name): Update
4455 * alpha-tdep.c (alpha_register_name): Update.
4456 * arch-utils.c (legacy_register_name): Update.
4457 * arch-utils.h (legacy_register_name): Update.
4458 * avr-tdep.c (avr_register_name): Update.
4459 * ia64-tdep.c (ia64_register_name): Update.
4460 * i386-tdep.c (i386_register_name): Update.
4461 * sparc-tdep.c (sparc32_register_name): Update.
4462 (sparc64_register_name): Update.
4463 (sparclite_register_name): Update.
4464 (sparclet_register_name): Update.
4465 * sh-tdep.c (sh_generic_register_name): Update.
4466 (sh_sh_register_name): Update.
4467 (sh_sh3_register_name): Update.
4468 (sh_sh3e_register_name): Update.
4469 (sh_sh_dsp_register_name): Update.
4470 (sh_sh3_dsp_register_name): Update.
4471 (sh_sh4_register_name): Update.
4472 (sh_sh64_register_name): Update.
4473 * s390-tdep.c (s390_register_name): Update.
4474 * rs6000-tdep.c (rs6000_register_name): Update.
4475 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4476 (ns32k_register_name_32382): Update.
4477 * d10v-tdep.c (d10v_ts2_register_name): Update.
4478 (d10v_ts3_register_name): Update.
4479 * xstormy16-tdep.c (xstormy16_register_name): Update.
4480 * vax-tdep.c (vax_register_name): Update.
4481 * v850-tdep.c (v850_register_name): Update.
4482 * m68hc11-tdep.c (m68hc11_register_name): Update.
4483 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4484 (am33_register_name): Update.
4486 2002-06-17 Grace Sainsbury <graces@redhat.com>
4488 * m68k-tdep.c: Reindented.
4490 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4492 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4493 list of predefined types.
4495 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4497 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4498 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4499 REGISTER_CONVERT_TO_RAW): Remove defines.
4500 (i386_register_virtual_type, i386_register_convertible,
4501 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4503 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4504 macros mentioned above.
4506 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4507 (i386lynx_saved_pc_after_call): Remove prototype.
4508 * i386ly-tdep.c: Include "i386-tdep.h".
4509 (i386lynx_saved_pc_after_call): Make static. Use
4510 read_memory_nobpt instead of read_memory. Use
4511 read_memory_unsigned_integer instead of read_memory_integer.
4512 (i386lynx_init_abi): New function.
4513 (i386lynx_coff_osabi_sniffer): New function.
4514 (_initialize_i386bsd_tdep): New function.
4516 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4517 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4518 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4519 (i386_fix_call_dummy): Remove prototype.
4520 * i386-tdep.c (i386_call_dummy_words): New variable.
4521 (i386_gdbarch_init): Adjust for removal of the
4522 macros mentioned above.
4524 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4526 * command.h (add_setshow_auto_boolean_cmd): Replace
4527 add_set_auto_boolean_cmd.
4528 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4529 add_set_auto_boolean_cmd.
4530 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4531 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4532 mask-address'' command.
4533 (show_mask_address): Add cmd parameter.
4534 * remote.c (add_packet_config_cmd): Update. Change type of
4535 set_func and show_func to cmd_sfunc_ftype.
4536 (_initialize_remote): Update `set remote Z-packet'
4537 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4538 (show_remote_protocol_e_packet_cmd): Ditto.
4539 (show_remote_protocol_E_packet_cmd): Ditto.
4540 (show_remote_protocol_P_packet_cmd): Ditto.
4541 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4542 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4543 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4544 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4545 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4546 (show_remote_protocol_Z_packet_cmd): Ditto.
4547 (show_remote_protocol_binary_download_cmd): Ditto.
4548 (show_remote_cmd): Pass NULL to all of above.
4550 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4552 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4553 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4554 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4555 POP_FRAME): Remove defines.
4556 (i386_push_arguments, i386_store_struct_return,
4557 i386_extract_return_value, i386_store_return_value,
4558 i386_extract_struct_value_address, i386_push_dummy_frame,
4559 i386_pop_frame): Renove prototypes.
4560 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4561 macros mentioned above.
4563 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4565 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4566 add_set_boolean_cmd.
4567 (add_setshow_cmd): New function.
4568 * command.h (add_setshow_boolean_cmd): Replace
4569 add_set_boolean_cmd.
4570 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4571 and ``set rdiromatzero''.
4572 * maint.c (_initialize_maint_cmds): Update commented out code.
4573 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4574 * target.c (initialize_targets): Update `set
4575 trust-readonly-sections'.
4576 * remote.c (_initialize_remote): Update `set remotebreak'.
4578 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4580 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4581 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4582 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4583 fit into multi-arch framework.
4584 (i386_breakpoint_from_pc): New function.
4585 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4588 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4589 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4590 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4591 (i386_frameless_function_invocation, i386_frame_num_args,
4592 i386_frame_init_saved_regs): Remove prototypes.
4593 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4594 macros mentioned above.
4596 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4598 * cli/cli-decode.c (set_cmd_cfunc): Update.
4599 (set_cmd_sfunc): Update.
4600 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4601 (set_cmd_sfunc, set_cmd_cfunc): Update.
4602 * cli/cli-decode.h: Update.
4604 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4606 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4607 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4609 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4611 * defs.h (auto_boolean): Declare enum.
4612 * command.h (cmd_auto_boolean): Delete enum.
4613 * mips-tdep.c (mask_address_var): Update.
4614 (mips_mask_address_p): Update.
4615 (show_mask_address): Update.
4616 * remote.c (struct packet_config): Update.
4617 (update_packet_config): Update.
4618 (show_packet_config_cmd): Update.
4619 (packet_ok): Update.
4620 (add_packet_config_cmd): Update.
4621 (_initialize_remote):
4622 * command.h: Update.
4623 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4624 (do_setshow_command): Update.
4625 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4626 * cli/cli-decode.h: Update.
4628 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4630 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4631 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4632 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4633 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4634 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4635 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4637 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4638 list of DJGPP COFF targets.
4640 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4641 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4642 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4643 (FP0_REGNUM): Remove define.
4644 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4645 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4646 (i386_register_virtual_size): Remove protoype.
4647 * i386-tdep.c (i386_register_virtual_size): Removed.
4648 (i386_extract_return_value, i386_store_return_value): Use
4649 FP0_REGNUM instead of NUM_FREGS to determine whether the
4650 floating-point registers are available.
4651 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4652 Adjust for removal of macros mentioned above.
4654 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4656 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4658 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4660 (supply_gregset, fill_gregset): Remove use of register keyword and
4661 remove declaration for regmap. Use I386_NUM_GREGS instead of
4662 NUM_REGS and NUM_FREGS.
4663 (FPREGSET_FSAVE_OFFSET): Remove.
4664 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4665 NUM_FREGS to determine whether the floating-point registers are
4668 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4669 gnu_store_registers): Replace usage of NUM_GREGS with
4672 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4673 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4674 usage of NUM_GREGS with I386_NUM_GREGS.
4676 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4678 * i386bsd-nat.c: Include "i386-tdep.h".
4679 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4682 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4683 and associated comment. They no longer make any sense, since we
4684 don't use this file anymore on Linux.
4686 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4687 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4688 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4689 elements in these arrays.
4690 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4693 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4695 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4696 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4698 2002-06-14 Andrew Cagney <cagney@redhat.com>
4700 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4701 EXTRACT_RETURN_VALUE.
4702 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4703 EXTRACT_STRUCT_VALUE_ADDRESS.
4704 * gdbarch.h, gdbarch.c: Regenerate.
4706 * values.c (value_being_returned): Handle
4707 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4708 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4710 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4711 * arm-tdep.c (arm_gdbarch_init): Update.
4712 * avr-tdep.c (avr_gdbarch_init): Update.
4713 * cris-tdep.c (cris_gdbarch_init): Update.
4714 * d10v-tdep.c (d10v_gdbarch_init): Update.
4715 * ia64-tdep.c (ia64_gdbarch_init): Update.
4716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4718 * s390-tdep.c (s390_gdbarch_init): Update.
4719 * sh-tdep.c (sh_gdbarch_init): Update.
4720 * s390-tdep.c (s390_gdbarch_init): Update.
4721 * sparc-tdep.c (sparc_gdbarch_init): Update.
4722 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4723 * v850-tdep.c (v850_gdbarch_init): Update.
4724 * vax-tdep.c (vax_gdbarch_init): Update.
4725 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4728 * config/arc/tm-arc.h: Update.
4729 * config/d30v/tm-d30v.h: Update.
4730 * config/fr30/tm-fr30.h: Update.
4731 * config/h8300/tm-h8300.h: Update.
4732 * config/h8500/tm-h8500.h: Update.
4733 * config/i386/tm-i386.h: Update.
4734 * config/i386/tm-ptx.h: Update.
4735 * config/i386/tm-symmetry.h: Update.
4736 * config/i960/tm-i960.h: Update.
4737 * config/m32r/tm-m32r.h: Update.
4738 * config/m68k/tm-delta68.h: Update.
4739 * config/m68k/tm-linux.h: Update.
4740 * config/m68k/tm-m68k.h: Update.
4741 * config/m88k/tm-m88k.h: Update.
4742 * config/mcore/tm-mcore.h: Update.
4743 * config/mips/tm-mips.h: Update.
4744 * config/mn10200/tm-mn10200.h: Update.
4745 * config/pa/tm-hppa.h: Update.
4746 * config/pa/tm-hppa64.h: Update.
4747 * config/sparc/tm-sp64.h: Update.
4748 * config/sparc/tm-sparc.h: Update.
4749 * config/sparc/tm-sparclet.h: Update.
4750 * config/z8k/tm-z8k.h: Update.
4752 2002-06-14 Andrew Cagney <cagney@redhat.com>
4754 * Makefile.in (i386_linux_tdep_h): Define.
4755 (i386_tdep_h, i387_tdep_h): Define.
4756 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4757 $(i386_tdep_h) and $(i387_tdep_h).
4758 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4760 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4762 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4763 Already covered by the default.
4765 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4766 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4767 (i386_gdbarch_init): Initialize long_double_format and long_double
4770 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4771 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4773 * config/i386/i386sol2.mh: ... here.
4774 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4775 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4776 (SIGCONTEXT_PC_OFFSET): Remove define.
4777 (IN_SIGTRAMP): Remove define.
4778 * i386-sol2-tdep.c: New file.
4780 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4781 * config/i386/tm-i386nw.h: Removed.
4783 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4784 USE_STRUCT_CONVENTION): Remove defines.
4785 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4786 (get_longjmp_target): Remove prototype.
4787 (IN_SIGTRAMP): Remove define.
4788 (i386bsd_in_sigtramp): Remove prototype.
4789 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4790 function. Update comment accordingly
4791 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4792 (FRAME_SAVED_PC): Remove define.
4793 (i386bsd_frame_saved_pc): Remove prototype.
4794 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4795 GET_LONGJMP_TARGET): Remove defines.
4796 (get_longjmp_target): Remove prototype.
4797 (IN_SIGTRAMP): Remove define.
4798 (i386bsd_in_sigtramp): Remove prototype.
4799 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4800 function. Update comment accordingly
4801 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4802 (FRAME_SAVED_PC): Remove define.
4803 (i386bsd_frame_saved_pc): Remove prototype.
4804 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4806 (USE_STRUCT_CONVENTION): Remove prototype.
4807 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4809 (_initialize_i386bsd_nat): Revise logic to determine some
4810 constants at compile time when compiling a native GDB. Warn if
4811 things don't match up with what we expect.
4812 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4814 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4815 to use date stored in `struct gdbarch_tdep'.
4816 (i386bsd_sigcontext_offset): Remove varaible.
4817 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4818 stored in `struct gdbarch_tdep'.
4819 (i386bsd_frame_saved_pc): Make static.
4820 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4821 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4822 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4823 i386fbsd4_sc_pc_offset): New variables.
4824 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4825 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4827 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4829 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4830 Modify the value of i386fbsd_sigtramp_start and
4831 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4832 i386fbsd_sigtramp_end.
4833 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4836 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4837 define to i386-linux-tdep.h.
4838 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4839 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4841 (i386_linux_register_name, i386_linux_register_byte,
4842 i386_linux_register_raw_size): Remove prototypes.
4843 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4844 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4845 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4846 TARGET_WRITE_PC): Remove defines.
4847 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4848 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4849 i386_linux_write_pc): Remove prototypes.
4850 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4851 (get_longjmp_target): Remove prototype.
4852 * i386-linux-tdep.h: New file.
4853 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4854 * i386-linux-tdep.c: Include "i386-tdep.h" and
4855 "i386-linux-tdep.h".
4856 (i386_linux_register_name, i386_linux_register_byte,
4857 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4858 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4860 (i386_linux_init_abi): New function.
4861 (_initialize_i386_linux_tdep): New function.
4863 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4864 (i386_saved_pc_after_call): Remove prototype.
4865 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4866 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4867 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4868 (i386_register_name, i386_stab_reg_to_regnum,
4869 i386_dwarf_reg_to_regnum): Remove prototypes.
4870 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4871 SIZEOF_SSE_REGS): Remove defines.
4872 (REGISTER_BYTES): Remove define.
4873 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4874 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4875 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4876 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4877 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4878 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4879 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4880 (get_longjmp_target): Remove prototype.
4881 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4882 (sigtramp_saved_pc): Remove define.
4883 (i386v4_sigtramp_saved_pc): Remove prototype.
4884 * config/i386/tm-go32.h (FRAME_CHAIN,
4885 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4886 (i386go32_frame_saved_pc): Remove prototype.
4887 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4888 (get_longjmp_target): Remove prototype.
4889 * i386-tdep.h: Include "osabi.h".
4890 (enum i386_abi): Removed.
4891 (enum struct_return): New enum.
4892 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4893 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4894 sc_pc_offset members.
4895 (i386_gdbarch_register_os_abi): Remove prototype.
4896 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4897 I386_SSE_NUM_REGS): New defines.
4898 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4899 I386_SSE_SIZEOF_REGS): New defines.
4900 (i386_register_name, i386_register_byte, i386_register_raw_size):
4902 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4903 (i386bsd_sigtramp_saved_pc): New prototype.
4904 * i386-tdep.c: Don't include "elf-bfd.h".
4905 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4906 i386_frame_chain, i386_saved_pc_after_call): Make static.
4907 (i386_frame_saved_pc): Rewrite to call architecture dependent
4908 function to deal with signal handlers. Make static.
4909 (i386go32_frame_saved_pc): Removed.
4910 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4912 (i386_get_longjmp_target): New function.
4913 (default_struct_convention, pcc_struct_convention,
4914 reg_struct_convention, valid_conventions, struct_convention): New
4916 (i386_use_struct_convention): New function.
4917 (i386v4_sigtramp_saved_pc): Renamed to
4918 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4919 (i386_pc_in_sigtramp): New function.
4920 (i386_abi_names): Removed.
4921 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4922 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4924 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4925 i386_gdbarch_register_os_abi): Removed.
4926 (struct i386_abi_handler): Removed.
4927 (i386_abi_handler_list): Removed.
4928 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4930 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4931 i386_nw_init_abi): New functions.
4932 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4933 Use set_gdbarch_xxx() calls instead of relying on macros for a
4935 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4936 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4937 Register the various architecture variants defined in this file.
4939 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4941 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4942 (struct main_type): Remove arg_types member. Update comments for
4944 (TYPE_ARG_TYPES): Remove.
4945 (TYPE_FN_FIELD_ARGS): Update.
4946 (smash_to_method_type): Update prototype.
4948 * c-typeprint.c (cp_type_print_method_args): Take method type
4949 instead of argument list. Use new argument layout. Simplify.
4950 (c_type_print_args): Use new argument layout. Simplify.
4951 (c_type_print_base): Update call to cp_type_print_method_args.
4952 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4953 argument; use die->type instead. Update call to
4954 smash_to_method_type.
4955 (read_structure_scope): Update call to dwarf2_add_member_fn.
4956 * gdbtypes.c (allocate_stub_method): Update comment.
4957 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4958 Use new argument layout.
4959 (check_stub_method): Use new argument layout. Don't count
4960 void as an argument.
4961 (print_arg_types): Update comments. Use new argument layout.
4962 (recursive_dump_type): Don't print arg_types member.
4963 * hpread.c (hpread_read_struct_type): Use new argument layout.
4964 (fixup_class_method_type): Likewise.
4965 (hpread_type_lookup): Likewise.
4966 * stabsread.c (read_type): Update calls to read_args and
4967 smash_to_method_type.
4968 (read_args): Use new argument layout. Simplify.
4969 * valops.c (typecmp): Use new argument layout. Update parameters
4970 and comments. Simplify.
4971 (hand_function_call): Use new argument layout.
4972 (search_struct_method): Update call to typecmp.
4973 (find_overload_match): Use new argument layout.
4975 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4977 * NEWS: Mention multithreaded debug support for gdbserver.
4979 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4981 * MAINTAINERS: Mention NEWS.
4983 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4985 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4986 (struct mips_objfile_private, compare_pdr_entries): New.
4987 (non_heuristic_proc_desc): Read the ".pdr" section if it
4990 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4992 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4993 (arm_debug): New static variable.
4994 (_initialize_arm_tdep): Add ``set debug arm'' command.
4996 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4998 * Makefile.in (sim_arm_h): Define.
4999 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5000 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5001 (arm_register_sim_regno): New function, map an internal REGNUM
5002 onto a simulator register number.
5003 (arm_gdbarch_init): Set register_sim_regno.
5005 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5007 * MAINTAINERS: Add self.
5009 2002-06-11 Jim Blandy <jimb@redhat.com>
5011 * source.c (source_info): Mention whether the symtab has
5012 information about preprocessor macros.
5014 Call the command `info macro', not `show macro'.
5015 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5017 (_initialize_macrocmd): Register `info_macro_command' in
5018 `infolist', not `showlist'.
5020 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5022 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5023 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5024 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5025 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5026 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5028 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5029 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5030 (_initialize_mips_tdep): Remove dead code.
5031 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5032 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5033 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5034 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5035 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5036 MIPS_LAST_FP_ARG_REGNUM): Remove.
5038 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5040 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5041 (unwind_tmp_obstack_free, parse_frame_info)
5042 (update_context, cfi_read_fp, cfi_write_fp)
5043 (cfi_frame_chain, cfi_init_extra_frame_info)
5044 (cfi_virtual_frame_pointer): Use the above function.
5045 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5047 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5049 * v850-tdep.c (v850_type_is_scalar): New function.
5050 (v850_use_struct_convention): Match current gcc implementation
5051 as close as possible.
5052 (v850_push_arguments): Fix stack_offset handling. Don't write
5053 struct_addr into register. This is done by v850_store_struct_return.
5054 (v850_extract_return_value): Care for structs.
5055 (v850_store_return_value): Ditto.
5056 (v850_store_struct_return): Actually write address.
5058 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5060 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5061 without debug information too.
5063 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5065 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5066 Make multi-arch pure.
5067 * gdbarch.h, gdbarch.c: Re-generate.
5068 * arm-tdep.c (arm_print_float_info): Update.
5069 * arch-utils.h (default_print_float_info): Update.
5070 * arch-utils.c (default_print_float_info): Update.
5071 * infcmd.c (float_info): Update call.
5073 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5075 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5076 the front of the initialize list.
5078 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5080 * infrun.c (struct inferior_status): Replace fields
5081 selected_frame_address and selected_level with field
5083 (save_inferior_status): Update. Use get_frame_id.
5084 (struct restore_selected_frame_args): Delete.
5085 (restore_selected_frame): Update. Use frame_find_by_id.
5086 (restore_inferior_status): Update.
5088 * breakpoint.h (struct breakpoint): Change type of
5089 watchpoint_frame to frame_id.
5090 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5091 call to get_current_frame.
5092 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5094 (watchpoint_check): Use frame_find_by_id.
5096 * frame.h (record_selected_frame): Delete declaration.
5097 * stack.c (record_selected_frame): Delete function.
5099 * frame.h (struct frame_id): Define.
5100 (get_frame_id): Declare.
5101 (frame_find_by_id): Declare.
5102 * frame.c (frame_find_by_id): New function.
5103 (get_frame_id): New function.
5105 2002-06-10 Andrey Volkov <avolkov@transas.com>
5107 * ser-e7kpc.c: Fix duplicated define and call of
5108 _initialize_ser_e7000pc
5110 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5112 * signals/signals.c (target_signal_from_host): Fix #ifdef
5114 (do_target_signal_to_host): Likewise.
5116 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5118 * mips-tdep.c (mips_find_abi_section): New function.
5119 (mips_gdbarch_init): Call it.
5121 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5123 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5124 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5125 after Andrew's 2002-06-08 gdbarch change.
5127 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5129 * i386-linux-nat.c (suppy_gregset): Don't supply
5130 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5132 (fill_gregset): Don't fetch it under the same circumstances.
5134 2002-06-09 Andrew Cagney <cagney@redhat.com>
5136 * Makefile.in (callback_h): Define.
5137 (remote_sim_h): Update path to remote-sim.h.
5138 (remote-rdp.o): Add $(callback_h).
5139 (remote-sim.o): Use $(callback_h).
5140 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5141 * remote-rdp.c: Include "gdb/callback.h".
5143 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5145 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5146 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5148 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5150 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5151 * rdi-share/serpardr.c: Ditto.
5152 * rdi-share/unixcomm.c: Ditto.
5153 * rdi-share/serdrv.c: Ditto.
5154 * rdi-share/hostchan.h: Ditto.
5155 * rdi-share/hostchan.c: Ditto.
5156 * rdi-share/host.h: Ditto.
5157 * rdi-share/devsw.c: Ditto.
5159 * objfiles.h: Change type of obj_private to void pointer.
5160 * pa64solib.c: Update copyright. Don't include "assert.h", use
5161 strcmp instead of STREQ, use LONGEST, do not use PTR
5162 * somsolib.c: Ditto.
5164 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5165 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5166 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5168 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5170 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5171 (default_get_saved_register): Delete function.
5172 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5173 generic_unwind_get_saved_register.
5174 * gdbarch.h, gdbarch.c: Re-generate.
5176 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5178 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5179 generic_func_frame_chain_valid.
5180 * gdbarch.h, gdbarch.c: Re-generate.
5181 * blockframe.c (generic_func_frame_chain_valid): Only check
5182 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5183 passing FP to PC_IN_CALL_DUMMY.
5186 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5188 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5189 (register_gdbarch_data): Initialize init_p.
5190 (gdbarch_data): Initialize data pointer using the init function.
5191 (init_gdbarch_data): Delete function.
5192 (gdbarch_update_p): Update.
5193 (initialize_non_multiarch): Update.
5194 (struct gdbarch): Add field initialized_p.
5195 * gdbarch.h, gdbarch.c: Re-generate.
5197 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5199 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5200 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5201 better do the things actually here.
5202 * x86-64-tdep.c (x86_64_register_name2nr): New.
5203 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5204 (x86_64_gdbarch_init): Respect the above change.
5205 * x86-64-tdep.h (x86_64_register_name2nr)
5206 (x86_64_register_nr2name): Add prototypes.
5207 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5209 2002-06-06 Michael Snyder <msnyder@redhat.com>
5211 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5212 Delete extra braces and re-indent.
5213 (d10v_store_return_value): Char return values
5214 must be shifted over by one byte in R0.
5215 (d10v_extract_return_value): Delete extra braces, re-indent.
5217 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5219 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5220 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5221 (d10v_integer_to_address): Rewrite.
5222 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5223 the d10v specific functions which take care of converting to the
5226 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5228 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5229 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5231 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5233 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5235 * config/tm-linux.h: Ditto.
5236 * config/alpha/tm-alphalinux.h: Ditto.
5237 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5238 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5239 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5240 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5241 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5242 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5243 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5244 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5245 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5246 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5247 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5248 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5249 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5250 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5251 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5252 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5253 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5254 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5255 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5256 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5257 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5258 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5259 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5260 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5261 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5262 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5263 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5264 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5265 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5266 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5267 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5268 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5269 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5270 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5271 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5272 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5273 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5275 2002-05-04 Aidan Skinner <aidan@velvet.net>
5277 * ada-exp.tab.c: New file
5278 * ada-exp.y: New file
5279 * ada-lang.c: New file
5280 * ada-lang.h: New file
5281 * ada-lex.c: New file
5282 * ada-lex.l: New file
5283 * ada-tasks.c: New file
5284 * ada-typeprint.c: New file
5285 * ada-valprint.c: New file
5287 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5289 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5290 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5292 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5294 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5295 insetead of ppc-linux-tdep.o.
5296 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5297 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5299 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5301 2002-05-07 Christian Groessler <chris@groessler.org>
5302 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5303 bit register contents for little endian hosts.
5305 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5307 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5310 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5312 * gdbarch.h: Regenerate.
5314 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5316 * MAINTAINERS: Add everyone to write-after-approval list.
5318 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5320 * stack.c (frame_info): Use frame_register_unwind instead of
5321 saved_regs. Mention when the SP is on the stack or in a register.
5323 * frame.h (frame_register_unwind_ftype): Define. Document.
5324 (struct frame_info): Add field register_unwind and
5325 register_unwind_cache.
5326 (frame_register_unwind): Declare.
5327 (generic_unwind_get_saved_register): Declare.
5329 * frame.c (frame_register_unwind): New function.
5330 (generic_unwind_get_saved_register): New function.
5332 * blockframe.c (generic_call_dummy_register_unwind): New function.
5333 (frame_saved_regs_register_unwind): New function.
5334 (set_unwind_by_pc): New function.
5335 (create_new_frame): New function.
5336 (get_prev_frame): New function.
5338 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5340 * a29k-share/: Delete directory.
5341 * remote-vx29k.c: Delete file.
5343 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5345 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5346 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5348 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5350 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5351 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5354 (sparcnbsd-tdep.o): New dependency lists.
5355 * NEWS: Note new UltraSPARC NetBSD native configuration.
5356 * configure.host (sparc64-*-netbsd*): New host.
5357 * configure.tgt (sparc-*-netbsdelf*)
5358 (sparc-*-netbsd*): Set gdb_target to nbsd.
5359 (sparc64-*-netbsd*): New target.
5360 * sparc64nbsd-nat.c: New file.
5361 * sparcnbsd-nat.c: New file.
5362 * sparcnbsd-tdep.c: New file.
5363 * sparcnbsd-tdep.h: New file.
5364 * config/sparc/nbsd.mt: New file.
5365 * config/sparc/nbsd64.mh: New file.
5366 * config/sparc/nbsd64.mt: New file.
5367 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5368 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5370 * config/sparc/nbsdaout.mt: Remove.
5371 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5372 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5374 * config/sparc/nbsdelf.mt: Remove.
5375 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5376 sparc-nat.c compatiblity defines.
5377 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5378 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5379 * config/sparc/tm-nbsd64.h: New file.
5380 * config/sparc/tm-nbsdaout.h: Remove.
5381 * config/sparc/xm-nbsd.h: Remove.
5383 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5385 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5386 * sparc-tdep.c: Include osabi.h.
5387 (gdbarch_tdep): Add osabi member.
5388 (_initialize_sparc_tdep): Use gdbarch_register.
5389 (sparc_gdbarch_init): Use generic OS ABI framework.
5390 (sparc_dump_tdep): New function.
5392 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5394 * corefile.c (do_captured_read_memory_integer): Return non-zero
5396 (safe_read_memory_integer): Copy result of memory read when
5397 status is non-zero. Also, add comments.
5399 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5401 * Makefile.in (ppc_tdep_h): Define.
5404 (rs6000-tdep.o): Use $(ppc_tdep_h).
5407 (ppcnbsd-tdep.o): New dependency lists.
5408 * ppc-tdep.h: Use generic OS ABI framework.
5409 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5410 (ppc_linux_init_abi): New functions.
5411 (ppc_sysv_abi_broken_use_struct_convention)
5412 (ppc_sysv_abi_use_struct_convention)
5413 (ppc_sysv_abi_push_arguments): Move to...
5414 * ppc-sysv-tdep.c: ...here.
5415 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5416 * rs6000-tdep.c (process_note_abi_tag_sections)
5417 (get_elfosabi): Remove.
5418 (rs6000_gdbarch_init): Use generic OS ABI framework.
5419 (rs6000_dump_tdep): New function.
5420 (_initialize_rs6000_tdep): Use gdbarch_register.
5421 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5422 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5423 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5424 of ppc-linux-tdep.o.
5425 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5426 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5427 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5428 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5429 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5430 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5432 2002-05-29 Jim Blandy <jimb@redhat.com>
5434 * macroscope.c (default_macro_scope): Put `void' in empty argument
5437 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5439 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5440 * arch-utils.c: Include "sim-regno.h".
5441 * gdbarch.sh: Don't include "sim-regno.h".
5442 * gdbarch.h, gdbarch.c: Regenerate.
5443 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5445 * arch-utils.h (legacy_register_sim_regno): To here.
5446 * remote-sim.c (legacy_register_sim_regno): Move function from
5448 * arch-utils.c (legacy_register_sim_regno): To here.
5450 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5452 * sim-regno.h: New file.
5453 * Makefile.in (sim_regno_h): Define.
5454 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5455 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5456 (legacy_register_sim_regno): New function.
5457 (one2one_register_sim_regno): New function.
5458 (gdbsim_fetch_register): Rewrite.
5459 (gdbsim_store_register): Only store a register when
5460 REGISTER_SIM_REGNO is valid.
5461 * d10v-tdep.c: Include "sim-regno.h".
5462 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5463 (d10v_ts3_register_sim_regno): Ditto.
5464 * gdbarch.sh: Include "sim-regno.h".
5465 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5466 * gdbarch.h, gdbarch.c: Regenerate.
5467 * arch-utils.h (default_register_sim_regno): Delete declaration.
5468 * arch-utils.c (default_register_sim_regno): Delete function.
5470 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5472 * ppcnbsd-nat.c: Rewrite.
5473 * ppcnbsd-tdep.c: New file.
5474 * ppcnbsd-tdep.h: New file.
5475 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5476 solib.o, and solib-svr4.o.
5477 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5478 nbsd-tdep.o, and corelow.o.
5480 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5482 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5483 `tr' and `sed'. Mention that `broken' targets are not expected to
5486 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5488 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5489 Let PC point right after the prologue before looking up symbols.
5491 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5493 * i386-tdep.c (i386_register_virtual_type): Return
5494 builtin_type_vec128i for SSE registers.
5496 * gdbtypes.h (builtin_type_vec128i): Declare.
5498 * gdbtypes.c (build_builtin_type_vec128i): New function.
5499 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5500 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5501 (build_gdbtypes): Initialize new builtin vector types.
5502 (_initialize_gdbtypes): Register new vector types with gdbarch.
5504 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5506 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5507 since it has been multi-arch'd.
5508 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5509 Move Alpha and VAX multi-arch news entries to same section
5510 as other multi-arch news.
5512 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5514 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5515 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5516 static. Rename some register numbers to put them in ns32k-tdep
5518 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5519 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5521 (_initialize_ns32k_tdep): Use gdbarch_register.
5522 * ns32k-tdep.h: New file.
5523 * ns32knbsd-tdep.c: New file.
5524 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5525 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5526 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5527 REGISTER_BYTES, REGISTER_BYTE): Remove.
5528 * config/ns32k/tm-ns32k.h: New file.
5529 * config/ns32k/tm-umax.h: Remove.
5531 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5533 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5534 ns32k_store_struct_return, ns32k_extract_return_value,
5535 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5537 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5538 ns32k_saved_pc_after_call.
5539 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5540 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5541 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5542 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5543 ns32k_extract_struct_value_address.
5545 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5547 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5548 ns32k_fix_call_dummy): New.
5549 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5550 ns32k_call_dummy_words.
5551 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5552 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5553 CALL_DUMMY_NARGS): Remove.
5554 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5556 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5558 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5559 ns32k_frame_saved_pc, ns32k_frame_args_address,
5560 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5561 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5562 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5563 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5564 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5565 (BREAKPOINT): Remove..
5566 (FRAME_CHAIN): Define as ns32k_frame_chain.
5567 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5568 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5569 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5570 (FRAME_FIND_SAVED_REGS): Remove.
5571 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5572 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5573 (POP_FRAME): Define as ns32k_pop_frame.
5575 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5577 * ns32k-tdep.c (ns32k_register_byte_32082,
5578 ns32k_register_byte_32382, ns32k_register_raw_size,
5579 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5581 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5582 ns32k_register_byte_32382.
5583 * config/ns32k/tm-umax.h: Update copyright years.
5584 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5585 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5586 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5587 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5588 (ns32k_get_enter_addr): Fix prototype.
5590 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5592 * ns32k-tdep.c: Update copyright years.
5593 (ns32k_register_name_32082): New function.
5594 (ns32k_register_name_32382): Ditto.
5595 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5596 (REGISTER_NAME): Define as ns32k_register_name_32382.
5597 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5598 (REGISTER_NAME): Define as ns32k_register_name_32082.
5600 2002-05-24 Jim Blandy <jimb@redhat.com>
5602 * dwarf2read.c (free_line_header): Use xfree, not free.
5604 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5606 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5607 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5609 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5611 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5613 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5615 From Ross Alexander at NEC Europe:
5616 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5618 2002-05-23 Michael Snyder <msnyder@redhat.com>
5620 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5621 for input, rather than parse_and_eval_address.
5623 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5625 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5626 * Makefile.in (sim_d10v_h): Update definition.
5628 2002-05-24 Andrew Cagney <cagney@redhat.com>
5630 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5631 change `2002-05-22 Michael Snyder' below.
5632 (d10v_push_arguments): Ditto.
5633 (d10v_extract_return_value): Ditto.
5635 2002-05-23 Jim Blandy <jimb@redhat.com>
5637 * macrotab.c (check_for_redefinition): Don't complain if the new
5638 definition is the same as the previous one. Take more arguments
5639 to allow the comparison.
5640 (macro_define_object, macro_define_function): Pass more arguments
5641 to check_for_redefinition.
5643 2002-05-22 Michael Snyder <msnyder@redhat.com>
5645 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5646 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5647 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5648 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5649 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5650 Add a temp variable to save a call (and a memory read).
5651 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5652 if possible (so that PC_IN_CALL_DUMMY will work).
5654 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5656 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5658 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5660 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5662 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5663 (dwarf2_build_frame_info): Add offset to fde->initial_location
5664 so that frames of shared libraries are mapped correctly.
5665 (execute_stack_op): Change type of 'result' from ULONGEST to
5668 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5670 * config/alpha/tm-nbsd.h: Include solib.h.
5672 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5674 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5675 assumptions about the host's byte order.
5677 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5679 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5681 * alphanbsd-tdep.c: Include solib-svr4.h.
5682 * shnbsd-tdep.c: Ditto.
5684 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5686 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5687 nbsd-tdep.h to dependency list.
5688 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5689 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5690 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5691 nbsdaout.mh and nbsdelf.mh consistently.
5692 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5693 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5694 nbsdaout.mt and nbsdelf.mh consistently.
5695 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5696 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5697 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5698 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5699 a.out shared library stuff from here...
5700 * config/nm-nbsdaout.h: ...to here.
5701 * config/tm-nbsd.h: Remove.
5702 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5703 * config/arm/nbsd.mh: Remove.
5704 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5706 * config/arm/nbsdaout.mh: New file.
5707 * config/arm/nbsdelf.mh: New file.
5708 * config/arm/nm-nbsdaout.h: New file.
5709 * config/i386/nbsd.mh: Remove.
5710 * config/i386/nbsd.mt: Remove.
5711 * config/i386/nbsdaout.mh: New file.
5712 * config/i386/nbsdaout.mt: New file.
5713 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5714 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5715 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5716 i386_register_u_addr): Remove.
5717 * config/i386/nm-nbsdaout.h: New file.
5718 * config/i386/nm-nbsdelf.h: Remove.
5719 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5720 (USE_STRUCT_CONVENTION): Remove.
5721 * config/i386/tm-nbsdaout.h: New file.
5722 * config/i386/tm-nbsdelf.h: Remove.
5723 * config/m68k/nbsd.mh: Remove.
5724 * config/m68k/nbsd.mt: Remove.
5725 * config/m68k/nbsdaout.mh: New file.
5726 * config/m68k/nbsdaout.mt: New file.
5727 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5728 * config/m68k/nm-nbsdaout.h: New file.
5729 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5730 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5731 * config/ns32k/nbsd.mh: Remove.
5732 * config/ns32k/nbsd.mt: Remove.
5733 * config/ns32k/nbsdaout.mh: New file.
5734 * config/ns32k/nbsdaout.mt: New file.
5735 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5736 * config/ns32k/nm-nbsdaout.h: New file.
5737 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5738 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5739 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5740 (SVR4_SHARED_LIBS): Remove.
5741 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5742 * config/sparc/nbsd.mh: Remove.
5743 * config/sparc/nbsd.mt: Remove.
5744 * config/sparc/nbsdaout.mh: New file.
5745 * config/sparc/nbsdaout.mt: New file.
5746 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5747 * config/sparc/nbsdelf.mt: New file.
5748 * config/sparc/nm-nbsdaout.h: New file.
5749 * config/sparc/nm-nbsdelf.h: Remove.
5750 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5751 * config/sparc/tm-nbsdaout.h: New file.
5753 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5755 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5757 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5759 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5761 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5763 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5765 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5767 * NEWS: Note new MIPS NetBSD native configuration.
5768 * configure.host (mips*-*-netbsd*): New host.
5769 * configure.tgt (mips*-*-netbsd*): New target.
5770 * mipsnbsd-nat.c: New file.
5771 * mipsnbsd-tdep.c: New file.
5772 * mipsnbsd-tdep.h: New file.
5773 * config/mips/nbsd.mh: New file.
5774 * config/mips/nbsd.mt: New file.
5775 * config/mips/nm-nbsd.h: New file.
5776 * config/mips/tm-nbsd.h: New file.
5778 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5780 * Makefile.in (SFILES): Add osabi.c.
5781 (COMMON_OBS): Add osabi.o.
5782 (osabi.o): New dependency list.
5783 * osabi.c: New file.
5784 * osabi.h: New file.
5785 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5787 * Makefile.in (alpha_tdep_h): Define and use instead of
5789 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5790 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5792 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5793 * alpha-tdep.h: Include osabi.h.
5794 (alpha_abi): Remove.
5795 (gdbarch_tdep): Use generic OS ABI framework.
5796 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5797 gdbarch_register_osabi.
5798 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5799 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5800 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5802 * Makefile.in (sh_tdep_h): Add osabi.h.
5803 * sh-tdep.h (sh_osabi): Remove.
5804 (gdbarch_tdep): Use generic OS ABI framework.
5805 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5806 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5807 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5808 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5810 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5811 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5812 gdbarch_register_osabi.
5813 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5814 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5815 (get_elfosabi): Rename to...
5816 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5817 ABI framework support routines.
5818 (arm_gdbarch_init): Use generic OS ABI framework.
5819 (arm_dump_tdep): Likewise.
5820 (_initialize_arm_tdep): Likewise.
5821 * arm-tdep.h: Include osabi.h.
5823 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5825 (arm_gdbarch_register_os_abi): Remove prototype.
5826 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5827 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5829 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5830 * mips-tdep.c: Include osabi.h.
5831 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5834 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5836 * h8300-tdep.c: Fix formatting.
5838 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5840 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5841 printing vector registers.
5843 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5845 From Fernando Nasser:
5846 * remote.c (remote_async_open_1): Re-throw the exception when the
5848 (remote_cisco_open): Ditto.
5849 (remote_open_1): Ditto.
5851 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5853 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5854 (remote_start_remote): Add uiout parameter. Pass through to
5855 remote_start_remote_dummy.
5856 (remote_open_1): Use catch_exception instead of catch_errors.
5857 (remote_async_open_1): Ditto.
5858 (remote_cisco_open): Ditto.
5860 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5862 * remote.c (remote_start_remote): Replace PTR with void pointer.
5863 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5866 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5868 * gdb_indent.sh: Allow the script to be run in the sim directory.
5870 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5872 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5873 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5875 * corelow.c (core_open): Only call set_gdbarch_from_file if
5878 2002-05-17 Andrey Volkov <avolkov@transas.com>
5880 * h8300-tdep.c: Add support of EXR register
5881 * config/h8300/tm-h8300.h: Ditto.
5883 2002-05-17 Andrey Volkov <avolkov@transas.com>
5885 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5887 2002-05-17 Andrey Volkov <avolkov@transas.com>
5889 * h8300-tdep.c: Change literal regnums to REGNO.
5891 2002-05-17 Jim Blandy <jimb@redhat.com>
5893 * NEWS: Note addition of macro support.
5895 Expand preprocessor macros in C expressions.
5896 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5897 (scan_macro_expansion, scanning_macro_expansion,
5898 finished_macro_expansion): New function declarations.
5899 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5900 variable declarations.
5901 * parser-defs.h (expression_context_pc): New declaration.
5902 * parse.c (expression_context_pc): New variable.
5903 (parse_exp_1): Set expression_context_pc, as well as
5904 expression_context_block.
5905 * c-exp.y (yylex): If we're not already reading the result of a
5906 macro expansion, try to macro-expand the next token. When we're
5907 done scanning a macro expansion, switch back to the mainline text.
5908 Commas and `if's in a macro's expansion don't terminate the input.
5909 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5910 (macro_original_text, macro_expanded_text,
5911 expression_macro_lookup_func, expression_macro_lookup_baton): New
5913 (scan_macro_expansion, scanning_macro_expansion,
5914 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5915 c_preprocess_and_parse): New functions.
5916 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5917 c_preprocess_and_parse, instead of c_parse.
5918 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5919 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5921 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5923 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5924 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5925 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5927 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5929 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5931 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5933 * Makefile.in (sh_tdep_h): Define and use.
5934 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5935 register enum): Move to...
5936 * * sh-tdep.h: ...here.
5937 * sh-tdep.c: Include sh-tdep.h.
5938 * sh3-rom.c: Likewise.
5939 * shnbsd-tdep.c: Likewise.
5941 2002-05-16 Michael Snyder <msnyder@redhat.com>
5943 * arm-tdep.c: Spelling fix in comment.
5945 2002-05-16 Jim Blandy <jimb@redhat.com>
5947 Add commands for manually expanding macros and showing their
5949 * macrocmd.c, macroscope.c, macroscope.h: New files.
5950 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5951 (macroscope_h): New variable.
5952 (HFILES_NO_SRCDIR): Add macroscope.h.
5953 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5954 (macroscope.o, macrocmd.o): New rules.
5956 Teach the Dwarf 2 reader to read macro information.
5957 * dwarf2read.c: #include "macrotab.h".
5958 (dwarf_macinfo_buffer): New variable.
5959 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5961 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5962 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5963 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5964 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5965 dwarf2_macro_spaces_in_definition): New complaints.
5966 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5967 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5968 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5969 the partial symbol table.
5970 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5971 from what's recorded in the partial symbol table.
5972 (read_file_scope): If the compilation unit has a
5973 `DW_AT_macro_info' attribute, read its macro information.
5974 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5976 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5979 * ser-tcp.c: Don't include <netinet/udp.h>.
5981 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5983 * MAINTAINERS: Update my email address.
5985 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5987 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5988 include file of the same name.
5990 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5992 * configure.tgt: Mark v850 as multi-arched.
5993 * config/v850/tm-v850.h: Remove file.
5994 * config/v850/v850.mt: Eliminate TM_FILE.
5996 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5998 * v850-tdep.c: Full multi-arch.
5999 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6000 Define GDB_MULTI_ARCH to 2.
6002 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6004 * p-exp.y (current_type): New static variable.
6005 Carries the type of the expression at the position that is parsed.
6006 (push_current_type, pop_current_type): Two new functions. Used
6007 to store/restore current_type in expression on specific tokens.
6008 (search_field): New static variable. Set to one after parsing a point
6009 as at that point only a FIELDNAME token should be searched.
6010 (FIELDNAME): New token. After a point only a token belonging to
6011 current_type type definition is allowed.
6012 (all over token rules): reset and change current_type according
6014 (exp '[' rule): insert implicit array index field if
6015 exp is a pascal string type.
6017 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6019 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6020 frame info. Use frame_info's saved_regs instead of matching member
6021 in extra_frame_info throughout.
6022 (v850_frame_init_saved_regs): New function.
6023 (v850_init_extra_frame_info): Move most functionality into
6024 v850_frame_init_saved_regs().
6025 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6026 (v850_frame_find_saved_regs): Remove declaration.
6027 (FRAME_FIND_SAVED_REGS): Remove definition.
6028 (v850_frame_init_saved_regs): Add declaration.
6029 (FRAME_INIT_SAVED_REGS): Add definition.
6031 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6033 * v850-tdep.c: Begin multi-arch'ing v850.
6034 (v850_target_architecture_hook): Remove function.
6035 (v850_gdbarch_init): New function. Add code previously in
6036 v850_target_architecture_hook().
6037 (_initialize_v850_tdep): Don't set target_architecture_hook.
6038 Call register_gdbarch_init() instead.
6040 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6042 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6043 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6044 (fixup_class_method_type): Likewise.
6046 2002-05-15 Jim Blandy <jimb@redhat.com>
6048 Add macro structures to GDB's symbol tables. Nobody puts anything
6050 * symtab.h (struct symtab): New member: `macro_table'.
6051 * buildsym.h (pending_macros): New global variable.
6052 * buildsym.c: #include "macrotab.h".
6053 (buildsym_init): Initialize `pending_macros'.
6054 (end_symtab): If we found macro information while reading a CU's
6055 debugging info, do build a symtab structure for it. Make the
6056 symtab point to the macro information, and clear the
6057 `pending_macros' pointer which held it while we were reading the
6059 (really_free_pendings): Free any pending macro table.
6060 * objfiles.h (struct objfile): New member: `macro_cache'.
6061 * objfiles.c (allocate_objfile): Set allocate and free functions
6062 for the macro cache's objstack.
6063 (free_objfile): Empty the macro cache's obstack.
6064 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6065 set new allocate and free functions for it.
6066 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6067 free functions for the macro cache's objstack. (Why is this
6068 function building its own objfile?)
6069 * symmisc.c (print_objfile_statistics): Print statistics on the
6071 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6073 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6075 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6076 (REGISTER_U_ADDR): Delete definition.
6077 (arm_register_u_addr): Delete declaration.
6079 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6081 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6082 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6084 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6086 * regcache.c (register_valid): Revise comments refering to "Not
6087 available" and "unavailable".
6088 * frame.c (frame_register_read): Ditto.
6089 * findvar.c (value_of_register): Ditto.
6091 2002-05-15 Andrew Cagney <cagney@redhat.com>
6093 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6094 (remote-sim.o): Update dependencies.
6095 (d10v-tdep.o): Specify dependencies.
6096 (sim_d10v_h): Define.
6098 2002-05-14 Jim Blandy <jimb@redhat.com>
6100 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6101 * macrotab.c (macro_lookup_inclusion, find_definition,
6102 new_macro_table): Same.
6104 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6105 not `! strcmp ()'. This is a dubious improvement.
6106 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6108 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6109 although it's not necessary, to avoid a warning.
6111 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6113 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6114 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6115 TYPE_INSTANCE_FLAGS.
6116 (struct main_type): New.
6117 (struct type): Move most members to struct main_type. Change
6118 cv_type and as_type to new type_chain member. Add instance_flags.
6119 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6120 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6121 (finish_cv_type): Remove prototype.
6122 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6124 (alloc_type_instance): New function.
6125 (smash_type): New function.
6126 (make_pointer_type, make_reference_type, make_function_type)
6127 (smash_to_member_type, smash_to_method_type): Call smash_type.
6128 (make_qualified_type): New function.
6129 (make_type_with_address_space): Call make_qualified_type.
6130 (make_cv_type): Likewise.
6131 (finish_cv_type): Remove unnecessary function.
6132 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6133 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6134 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6135 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6136 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6137 * hpread.c (hpread_read_struct_type): Likewise.
6138 * stabsread.c (read_struct_type): Likewise.
6140 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6142 * configure.tgt: Add a catch all sh* target, for cases like
6143 sh[2,3,4]-elf and sh-hms.
6145 2002-05-14 Keith Seitz <keiths@redhat.com>
6147 * event-loop.c (create_file_handler): Don't do anything but
6148 update data when we are given a fd which we are already
6151 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6153 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6154 (update_context): Use __func__ in warnings.
6156 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6158 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6159 and tcp_close to net_open and net_close.
6160 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6161 using UDP if requested. Don't try to disable Nagle on UDP
6163 * remote.c (remote_serial_open): New function. Warn about UDP.
6164 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6166 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6168 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6170 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6172 * configure.tgt: Remove sh-hms target.
6173 * MAINTAINERS: Don't list sh-hms as a separate target.
6175 2002-05-13 Jim Blandy <jimb@redhat.com>
6177 Add first preprocessor macro-expansion files.
6178 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6179 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6180 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6181 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6182 (COMMON_OBS): Add macrotab.o, macroexp.o.
6183 (macroexp.o, macrotab.o): New rules.
6185 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6187 * config/m88k/tm-m88k.h: Update copyright.
6188 (m88k_target_write_pc): Declare
6189 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6190 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6191 (SHIFT_INST_REGS): Update definition.
6192 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6193 using old definition of TARGET_WRITE_PC.
6194 * regcache.c (generic_target_write_pc): Delete code handling
6196 * gdbarch.sh (NNPC_REGNUM): Delete.
6197 * gdbarch.h, gdbarch.c: Regenerate.
6199 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6201 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6204 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6206 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6207 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6208 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6210 * c-typeprint.c (cp_type_print_method_args): Likewise.
6211 (c_type_print_args): Likewise.
6212 * d10v-tdep.c (d10v_push_arguments): Likewise.
6213 (d10v_extract_return_value): Likewise.
6214 * expprint.c (print_subexp): Likewise.
6215 * gdbtypes.c (lookup_primitive_typename): Likewise.
6216 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6217 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6218 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6219 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6220 (TYPE_VECTOR): Likewise.
6221 * hpread.c (hpread_read_struct_type)
6222 (fix_static_member_physnames, fixup_class_method_type)
6223 (hpread_type_lookup): Likewise.
6224 * mdebugread.c (parse_symbol, parse_type): Likewise.
6225 * p-lang.c (is_pascal_string_type): Likewise.
6226 * valops.c (hand_function_call): Likewise.
6227 * x86-64-tdep.c (classify_argument): Likewise.
6229 * hpread.c (hpread_read_function_type)
6230 (hpread_read_doc_function_type): Call replace_type.
6231 * dstread.c (create_new_type): Delete.
6232 (decode_dst_structure, process_dst_function): Call alloc_type.
6233 Use type access macros.
6235 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6237 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6238 the're not supported by the current architecture.
6239 (i387_fill_fxsave): Likewise.
6241 2002-05-12 Fred Fish <fnf@redhat.com>
6243 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6244 sect_index_xxx members to index the first slot in section_offsets
6245 if all of the section_offsets are zero.
6247 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6249 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6250 checked in with last change.
6252 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6254 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6255 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6258 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6260 * Makefile.in: Update dependencies.
6262 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6264 * language.c (local_hex_string_custom): Simplify. Do not depend
6265 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6267 * memattr.c (mem_info_command): Replace calls to
6268 longest_local_hex_string and longest_local_hex_string_custom.
6269 * buildsym.c (make_blockvector): Ditto.
6270 * solib.c (info_sharedlibrary_command): Ditto.
6271 * tracepoint.c (tracepoints_info): Ditto.
6272 * symtab.c (print_msymbol_info): Ditto.
6274 * language.c (local_hex_string): Delete.
6275 (local_hex_string_custom): Delete.
6276 (longest_local_hex_string): Rename to local_hex_string.
6277 (longest_local_hex_string_custom): Rename to
6278 local_hex_string_custom.
6279 * language.h (local_hex_string): Change parameter type to LONGEST.
6280 (local_hex_string_custom): Ditto.
6281 (longest_local_hex_string): Delete declaration.
6282 (longest_local_hex_string_custom): Ditto.
6284 * solib.c: Update copyright.
6285 * memattr.c: Update copyright.
6287 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6289 * arch-utils.h (legacy_register_to_value): Declare.
6290 (legacy_value_to_register): Declare.
6291 (legacy_convert_register_p): Declare.
6292 * arch-utils.c (legacy_register_to_value): New function.
6293 (legacy_value_to_register): New function.
6294 (legacy_convert_register_p): New function.
6296 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6297 (VALUE_TO_REGISTER): Define.
6298 (CONVERT_REGISTER_P): Define.
6299 * gdbarch.h, gdbarch.c: Regenerate.
6301 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6303 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6306 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6307 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6309 * Makefile.in: Update dependencies for valops.c.
6310 * valops.c: Include "gdb_assert.h".
6311 (typecmp): Skip THIS parameter to methods.
6312 (find_method_list): Remove static_memfuncp argument,
6313 update callers. Check for stub methods.
6314 (find_value_oload_method_list): Don't set *static_memfuncp.
6315 (find_overload_match): Don't check for stub methods. Assert
6316 that methods are not stubbed. Handle static methods.
6317 (value_find_oload_method_list): Remove static_memfuncp argument.
6318 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6319 to the argument list for static stub methods.
6320 * value.h (value_find_oload_method_list): Update prototype.
6322 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6324 * arch-utils.h (generic_register_size): Declare.
6325 (generic_register_raw_size, generic_register_virtual_size): Delete
6327 * arch-utils.c (generic_register_raw_size): Delete.
6328 (generic_register_size): New function.
6329 (generic_register_virtual_size): Delete.
6331 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6332 default generic_register_size.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6335 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6336 register_virtual_size.
6337 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6340 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6342 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6343 * gdbarch.h, gdbarch.c: Regenerate.
6344 * gnu-v3-abi.c: Update copyright.
6345 (vtable_address_point_offset): Update.
6346 (gnuv3_rtti_type): Update.
6347 (gnuv3_baseclass_offset): Update.
6348 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6349 (init_fetch_link_map_offsets): Update.
6350 * remote.c (get_remote_state): Update.
6352 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6354 * TODO: Remove value_headof/value_from_vtable_info comment.
6355 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6356 * values.c (value_headof, value_from_vtable_info): Delete.
6357 * value.h (value_from_vtable_info): Delete prototype.
6359 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6361 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6362 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6364 (gdb_assert_h): Define.
6365 (gdb_wait_h): Define.
6366 (gdb_regex_h): Define.
6368 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6370 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6371 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6373 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6375 * nbsd-tdep.c: Fix comment.
6377 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6379 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6380 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6381 (nbsd-tdep.o): New dependency list.
6382 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6384 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6385 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6386 * nbsd-tdep.c: New file.
6387 * nbsd-tdep.h: New file.
6388 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6390 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6391 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6392 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6393 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6395 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6397 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6398 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6399 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6400 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6401 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6402 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6404 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6406 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6407 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6408 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6409 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6410 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6411 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6412 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6414 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6416 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6417 fetch_elfcore_registers to...
6418 * i386nbsd-tdep.c: ...here.
6419 (i386nbsd_use_struct_convention): Rename to...
6420 (i386nbsd_aout_use_struct_convention): ...this.
6421 (i386nbsd_supply_reg): New function.
6422 (i386nbsd_fill_reg): New function.
6423 (fetch_core_registers): Use i386nbsd_supply_reg.
6424 (fetch_elfcore_registers): Likewise.
6425 (_initialize_i386nbsd_tdep): New function.
6426 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6427 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6428 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6429 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6430 (i386nbsd_aout_use_struct_convention): ...this.
6432 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6434 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6435 (store_inferior_registers): Use shnbsd_fill_reg.
6436 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6437 sh_nbsd_supply_register): Collapse into...
6438 (shnbsd_supply_reg): ...this.
6439 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6440 (shnbsd_fill_reg): ...this.
6441 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6442 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6443 (fetch_core_registers): Use shnbsd_supply_reg.
6444 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6445 (sh_nbsd_core_fns): Rename to...
6446 (shnbsd_core_fns): ...this.
6447 (sh_nbsd_elfcore_fns): Rename to...
6448 (shnbsd_elfcore_fns): ...this.
6449 (sh_nbsd_init_abi): Rename to...
6450 (shnbsd_init_abi): ...this.
6451 (_initialize_sh_nbsd_tdep): Rename to...
6452 (_initialize_shnbsd_tdep): ...this.
6453 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6454 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6455 sh_nbsd_fill_register): Remove prototypes.
6456 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6458 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6460 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6461 (i387-nat.o): Delete dependency list.
6462 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6463 (x86-64-linux-nat.o): Likewise.
6464 * i387-nat.c: Delete file, moving contents to...
6465 * i387-tdep.c: ...here.
6466 * i387-nat.h: Rename...
6467 * i387-tdep.h: ...to this.
6468 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6469 * i386-linux-nat.c: Likewise.
6470 * i386bsd-nat.c: Likewise.
6471 * i386gnu-nat.c: Likewise.
6472 * i386nbsd-nat.c: Likewise.
6473 * i386v4-nat.c: Likewise.
6474 * x86-64-linux-nat.c: Likewise.
6475 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6476 * config/i386/go32.mh (NATDEPFILES): Likewise.
6477 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6478 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6479 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6480 * config/i386/linux.mh (NATDEPFILES): Likewise.
6481 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6482 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6483 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6484 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6486 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6488 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6489 (alphanbsd-nat.o): Remove dependency list.
6490 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6491 * alphanbsd-nat.c: Delete. Contents moved to...
6492 * alphanbsd-tdep.c: ...here.
6493 (_initialize_alphanbsd_tdep): Register core functions.
6494 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6496 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6498 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6499 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6500 (alphanbsd-nat.o): Likewise.
6501 (alphabsd-tdep.o): New dependency list.
6502 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6503 (fill_gregset): Use alphabsd_fill_reg.
6504 (supply_fpregset): Use alphabsd_supply_fpreg.
6505 (fill_fpregset): Use alphabsd_fill_fpreg.
6506 (fetch_inferior_registers): Use struct reg and struct fpreg
6507 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6508 and alphabsd_supply_fpreg.
6509 (store_inferior_registers): Use struct reg and struct fpreg
6510 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6511 and alphabsd_fill_fpreg.
6512 * alphabsd-tdep.c: New file.
6513 * alphabsd-tdep.h: New file.
6514 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6515 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6516 alphabsd_supply_fpreg.
6517 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6518 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6520 2002-05-11 Eric Christopher <echristo@redhat.com>
6522 * mips-tdep.c (mips_double_register_type): Fix thinko.
6523 (mips_single_register_type): Ditto.
6524 * MAINTAINERS: Add self.
6526 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6528 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6529 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6530 right thing on architectures with different endianness and/or
6533 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6535 From Christian Limpach <chris@Pin.LU>
6536 * configure.in: Change sed expression which comments out
6537 NATDEPFILES to also comment out continuation lines.
6538 * configure: Regenerate.
6540 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6542 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6545 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6547 * sh-tdep.c: Include correct file.
6549 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6551 New support for sh64-elf (sh5) target.
6553 * configure.tgt: For sh64-elf target, default to sh-elf.
6555 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6556 (struct gdbarch_tdep): Add new fields for new registers and ABI
6559 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6560 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6561 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6562 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6563 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6564 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6565 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6566 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6567 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6568 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6569 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6570 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6571 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6572 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6573 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6574 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6575 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6576 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6577 sign_extend, sh64_nofp_frame_init_saved_regs,
6578 sh64_init_extra_frame_info, sh64_get_saved_register,
6579 sh64_extract_struct_value_address, sh64_pop_frame,
6580 sh64_push_arguments, sh64_extract_return_value,
6581 sh64_store_return_value, sh64_show_media_regs,
6582 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6583 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6584 sh_sh64_register_virtual_type,
6585 sh_sh64_register_convert_to_virtual,
6586 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6587 sh64_register_read, sh64_pseudo_register_write,
6588 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6589 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6590 sh64_do_pseudo_register, sh_compact_do_registers_info,
6591 sh64_do_registers_info, sh_gdbarch_init): New functions.
6593 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6595 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6597 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6599 * linespec.c (decode_line_1): Check for a double quote after
6600 a filename correctly.
6602 2002-05-10 Jim Blandy <jimb@redhat.com>
6604 Properly track the size of the current objfile's .debug_line section.
6605 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6606 (DWARF_LINE_SIZE): New macro.
6607 (dwarf2_build_psymtabs_hard): Record the line section's size in
6608 the partial symbol table.
6609 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6612 2002-05-10 Petr Sorfa <petrs@caldera.com>
6614 * ia64-tdep.c: Handle breakpoints on L instruction type
6615 in MLX instruction bundle by moving the breakpoint to
6616 the third slot (X instruction type) as L holds only data.
6618 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6620 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6621 (process_one_symbol): Complain about discarding local symbols
6622 due to a misplaced N_LBRAC entry.
6624 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6626 From Daniel Berlin <dan@cgsoftware.com>
6627 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6628 decrease the depth we are at, in the case of templates.
6630 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6632 * mips-tdep.c (mips_float_register_type): New function.
6633 (mips_double_register_type): New function.
6634 (mips_print_register): Use them.
6635 (do_fp_register_row): Likewise.
6637 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6639 * signals/signals.c (signals): Remove conditional compilation around
6640 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6641 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6643 2002-05-09 Michael Snyder <msnyder@redhat.com>
6645 * remote-rdp.c (remote_rdp_can_run): Remove.
6647 2002-05-09 Tom Tromey <tromey@redhat.com>
6649 * jv-valprint.c (java_val_print): Handle `char' as a special case
6652 2002-05-09 Michael Snyder <msnyder@redhat.com>
6654 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6655 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6656 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6657 str r(0123),[sp,#nn].
6658 (arm_skip_prologue): Ditto. Also make disassembly
6659 order-independent by placing it in a loop.
6661 2002-05-06 Michael Snyder <msnyder@redhat.com>
6663 * stabsread.c (read_type): Add recognition for new attribute:
6664 "@V;" means that an array type is actually a vector.
6665 This is analogous to the vector flag that's been added to dwarf2.
6667 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6669 * i386-tdep.h (i386_abi): New enum.
6670 (struct gdbarch_tdep): Replace os_ident member with abi.
6671 (i386_gdbarch_register_os_abi): New prototype.
6672 * i386-tdep.c (i386_abi_names): New array.
6673 (process_note_abi_tag_sections): Removed.
6674 (process_note_sections): New function.
6675 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6676 (struct i386_abi_handler): New struct.
6677 (i386_abi_handler_list): New variable.
6678 (i386_gdbarch_register_os_abi): New function.
6679 (i386_gdbarch_init): Adapt for the changes given above.
6681 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6683 * gregset.h: Say "GNU/Linux".
6685 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6687 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6688 (build_gdbtypes): Build builtin_type_v2_float.
6689 (_initialize_gdbtypes): Register new builtin type.
6691 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6693 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6694 (clear_gdbarch_swap): New function.
6695 (initialize_non_multiarch): Call.
6696 (gdbarch_update_p): Before calling init(), swap out and clear the
6697 existing architecture.
6698 * gdbarch.c: Regenerate.
6700 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6702 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6705 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6707 * sh-nbsd-nat.c: Rename to...
6708 * shnbsd-nat.c: ...this.
6709 * sh-nbsd-tdep.c: Rename to...
6710 * shnbsd-tdep.c: ...this.
6711 * sh-nbsd-tdep.h: Rename to...
6712 * shnbsd-tdep.h: ...this.
6713 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6714 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6716 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6718 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6719 concatenation for command help messages.
6721 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6723 * NEWS: Note new sh*-*-netbsdelf* configuration.
6724 * configure.host: Set gdb_host_cpu to sh for all sh*.
6725 (sh*-*-netbsdelf*): New host.
6726 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6727 (sh*-*-netbsdelf*): New target.
6728 * sh-nbsd-nat.c: New file.
6729 * sh-nbsd-tdep.c: New file.
6730 * sh-nbsd-tdep.h: New file.
6731 * config/sh/nbsd.mh: New file.
6732 * config/sh/nbsd.mt: New file.
6733 * config/sh/nm-nbsd.h: New file.
6734 * config/sh/tm-nbsd.h: New file.
6736 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6738 * sh-tdep.c (sh_osabi_names): Declare.
6739 (process_note_abi_tag_sections): New function.
6740 (get_elfosabi): Ditto.
6741 (sh_gdbarch_register_os_abi): Ditto.
6742 (sh_dump_tdep): Ditto.
6743 _initialize_sh_tdep): Use gdbarch_register to register
6744 sh_gdbarch_init and sh_dump_tdep.
6745 * config/sh/tm-sh.h (sh_osabi): Declare.
6746 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6748 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6750 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6751 (thumb_scan_prologue): Ditto.
6752 (arm_find_callers_reg): Ditto.
6753 (arm_frame_chain): Ditto.
6754 (arm_init_extra_frame_info): Ditto.
6755 (arm_frame_saved_pc): Ditto.
6756 (arm_pop_frame): Ditto.
6757 (arm_push_return_address): New function.
6758 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6759 call_dummy_location, call_dummy_breakpoint_offset_p,
6760 call_dummy_breakpoint_offset, call_dummy_p,
6761 call_dummy_stack_adjust_p, call_dummy_words,
6762 sizeof_call_dummy_words, call_dummy_start_offset,
6763 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6764 call_dummy_address, push_return_address and push_dummy_frame for
6765 generic dummy frames.
6767 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6769 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6770 size computation for alloca.
6771 (sh_fp_frame_init_saved_regs): Likewise.
6773 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6775 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6776 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6777 * arm-tdep.c (arm_store_return_value): Use them.
6778 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6779 * remote-rdp.c (remote_rdp_fetch_register): Use
6780 ARM_MAX_REGISTER_RAW_SIZE.
6781 (remote_rdp_store_register): Likewise.
6783 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6785 * dwarf2cfi.c: Code cleanup, removed unused variables,
6786 added default labels to switch {} statements.
6787 * x86-64-tdep.c: Ditto.
6788 * x86-64-linux-nat.c: Ditto.
6790 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6792 * solib.h: Protect against multiple inclusion.
6794 2002-05-06 Jim Blandy <jimb@redhat.com>
6796 Add first preprocessor macro-expansion files.
6797 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6798 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6799 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6800 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6801 (COMMON_OBS): Add macrotab.o, macroexp.o.
6802 (macroexp.o, macrotab.o): New rules.
6804 Separate the job of reading the line number info statement program
6805 header (...expialidocious) out into its own function.
6806 * dwarf2read.c (struct line_head, struct filenames, struct
6807 directories): Replace with...
6808 (struct line_header): New structure, containing the full
6809 contents of the statement program header, including the
6810 include directory and file name tables.
6811 (read_file_scope): If we have line number info, instead of just
6812 calling dwarf_decode_lines to do all the work, call
6813 dwarf_decode_line_header first to get a `struct line_header'
6814 containing the data in the statement program header, and then
6815 pass that to dwarf_decode_lines, which will pick up where that
6816 left off. Be sure to clean up the `struct line_header' object.
6817 (dwarf_decode_line_header, free_line_header, add_include_dir,
6818 add_file_name): New functions.
6819 (dwarf_decode_lines): Move all the code to read the statement
6820 program header into dwarf_decode_line_header. Take the line
6821 header it built as the first argument, instead of the offset to
6822 the compilation unit's line number info. Use the new `struct
6823 line_header' type instead of the old structures. No need to do
6824 cleanups here now, since we don't allocate anything.
6825 (dwarf2_statement_list_fits_in_line_number_section,
6826 dwarf2_line_header_too_long): New complaints.
6828 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6830 * gdbtypes.c (init_vector_type): New function.
6831 (build_builtin_type_vec128): Simplify the representation of SIMD
6833 (build_gdbtypes): Initialize new builtin vector types.
6834 (_initialize_gdbtypes): Register new vector types with gdbarch.
6835 (builtin_type_v4_float, builtin_type_v4_int32,
6836 builtin_type_v8_int16, builtin_type_v16_int8,
6837 builtin_type_v2_int32, builtin_type_v4_int16,
6838 builtin_type_v8_int8): New (renamed) SIMD types.
6840 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6842 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6843 (i387_fill_fxsave): Likewise.
6845 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6847 * alpha-tdep.c (alpha_extract_return_value): Don't use
6848 non-constant array size in prototype.
6850 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6852 From Brian Taylor <briant at model dot com>:
6853 * ui-out.c (ui_out_field_core_addr): Use the function
6854 longest_local_hex_string_custom'to format addresses > 32 bits
6857 * ui-out.c (ui_out_field_core_addr): Update comment.
6859 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6861 * stack.c (select_and_print_frame): Make static. Delete the
6863 (func_command): Update call.
6864 (select_frame_command): Delete code computing the frame level.
6865 * frame.h (select_and_print_frame): Delete declaration.
6867 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6869 * sparc-tdep.c (sparc_get_saved_register): Comment why
6870 get_prev_frame call is safe.
6872 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6874 * frame.h (select_frame): Delete level parameter.
6875 * stack.c (select_frame): Update. Use frame_relative_level to
6876 obtain the frame's level.
6877 (select_and_print_frame): Update call.
6878 (select_frame_command): Ditto.
6879 (up_silently_base): Ditto.
6880 (down_silently_base): Ditto.
6881 * ocd.c (ocd_start_remote): Ditto.
6882 * remote-rdp.c (remote_rdp_open): Ditto.
6883 * remote-mips.c (mips_initialize): Ditto.
6884 (common_open): Ditto.
6885 * remote-e7000.c (e7000_start_remote): Ditto.
6886 * m3-nat.c (select_thread): Ditto.
6887 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6888 (child_get_current_exception_event): Ditto.
6889 * varobj.c (varobj_create): Ditto.
6890 (varobj_update): Ditto.
6891 (c_value_of_root): Ditto.
6892 * tracepoint.c (finish_tfind_command): Ditto.
6893 * corelow.c (core_open): Ditto.
6894 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6895 * thread.c (info_threads_command): Ditto.
6896 (switch_to_thread): Ditto.
6897 * infrun.c (normal_stop): Ditto.
6898 (restore_selected_frame): Ditto.
6899 (restore_inferior_status): Ditto.
6900 * breakpoint.c (insert_breakpoints): Ditto.
6901 (watchpoint_check): Ditto.
6902 (bpstat_stop_status): Ditto.
6903 (do_enable_breakpoint): Ditto.
6904 * blockframe.c (flush_cached_frames): Ditto.
6905 (reinit_frame_cache): Ditto.
6907 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6909 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6912 2002-05-04 Jim Blandy <jimb@redhat.com>
6914 * gdbtypes.c (replace_type): Doc fix.
6916 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6918 * valprint.c (strcat_longest): Delete commented out function.
6921 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6923 * MAINTAINERS: Mark a29k as deleted.
6924 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6925 Move new configurations to the top.
6926 * configure.tgt: Remove a29k.
6927 * config/a29k/tm-vx29k.h: Delete.
6928 * config/a29k/vx29k.mt: Delete.
6929 * config/a29k/tm-a29k.h: Delete.
6930 * config/a29k/a29k-udi.mt: Delete.
6931 * config/a29k/a29k.mt: Delete.
6932 * a29k-tdep.c: Delete.
6933 * remote-udi.c: Delete.
6934 * remote-mm.c: Delete.
6935 * remote-eb.c: Delete.
6936 * remote-adapt.c: Delete.
6937 * Makefile.in: Remove obsolete code.
6938 * config/s390/s390x.mt: Ditto.
6939 * config/s390/s390.mt: Ditto.
6940 * config/sparc/sparclynx.mh: Ditto.
6941 * config/sparc/linux.mh: Ditto.
6942 * config/pa/hppaosf.mh: Ditto.
6943 * config/pa/hppabsd.mh: Ditto.
6944 * config/ns32k/nbsd.mt: Ditto.
6945 * config/mips/vr5000.mt: Ditto.
6946 * config/m68k/sun3os4.mh: Ditto.
6947 * config/m68k/nbsd.mt: Ditto.
6948 * config/m68k/m68klynx.mh: Ditto.
6949 * config/m32r/m32r.mt: Ditto.
6950 * config/i386/x86-64linux.mt: Ditto.
6951 * config/i386/nbsdelf.mt: Ditto.
6952 * config/i386/nbsd.mt: Ditto.
6953 * config/i386/i386lynx.mh: Ditto.
6955 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6957 * target.c (debug_print_register): New function. Handle oversize
6959 (debug_to_fetch_registers): Call.
6960 (debug_to_store_registers): Call.
6962 2002-05-03 Jim Blandy <jimb@redhat.com>
6964 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6965 (read_type): Doc fix.
6966 * gdbtypes.c (replace_type): Doc fix.
6968 * stabsread.c (multiply_defined_struct): New complaint.
6969 (read_struct_type): If the type we were passed isn't empty, or
6970 incomplete, don't read the new struct type into it; complain,
6971 and return the original type unchanged. Take a new `type_code'
6972 argument, which is the type code for the new type.
6973 (read_type): Rather than storing the type's type code here, pass
6974 it as an argument to read_struct_type, and let that take care of
6975 storing it. That way, we don't overwrite the original type code,
6976 so read_struct_type can use it to decide whether we're overwriting
6977 something we shouldn't.
6978 (complain_about_struct_wipeout): New function.
6980 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6982 * gdbarch.sh: Assert that gdbarch is non-NULL.
6983 * gdbarch.c: Regenerate.
6985 2002-05-03 Jason Merrill <jason@redhat.com>
6987 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6990 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6992 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6993 (x86_64_dwarf2gdb_regno_map_length),
6994 (x86_64_dwarf2_reg_to_regnum): Added.
6995 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6996 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6997 (_initialize_x86_64_tdep): Synced with the change above.
6998 (x86_64_skip_prologue): Reformulated message.
7000 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7002 * f-exp.y: Also use new prev_lexptr variable
7003 to improve error reporting. Based on Michael Snyder
7004 2002-04-24 dated patch to c-exp.y.
7005 * jv-exp.y: Likewise.
7006 * m2-exp.y: Likewise.
7008 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7010 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7011 we are dealing with vectors.
7013 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7015 * config/m68k/tm-nbsd.h: Obvious fix,
7016 correct machine name.
7018 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7020 * p-typeprint.c (pascal_type_print_base): Add support
7021 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7023 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7025 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7026 for fondamental pascal 'char' type.
7028 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7030 * p-lang.h (is_pascal_string_type): Declaration changed,
7031 new sixth argument of type char ** added.
7032 * p-lang.c (is_pascal_string_type): Implementation
7033 changed. Args length_pos, length_size, string_pos, char_size
7034 can now be NULL. New argument arrayname set to the field
7035 name of the char array. Return value set to char array
7036 field index plus one.
7037 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7038 is_pascal_string_type function.
7040 2002-05-02 Andrew Cagney <cagney@redhat.com>
7042 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7043 <cagney@redhat.com> change.
7044 * gdbarch.c: Regenerate.
7046 2002-05-02 Andrew Cagney <cagney@redhat.com>
7048 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7049 before probing for a new one. Detect errorenous gdbarch_init
7051 * gdbarch.c: Regenerate.
7053 2002-05-01 Andrew Cagney <cagney@redhat.com>
7055 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7056 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7057 * config/v850/tm-v850.h: Ditto. Update copyright.
7059 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7061 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7064 2002-04-30 Michael Snyder <msnyder@redhat.com>
7066 * arm-tdep.c: Whitespace clean-ups.
7067 (arm_skip_prologue): Fix thinko; two lines
7068 should have been removed as part of 4/24 change.
7070 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7072 * rs6000-tdep.c: Added comment describing how fpscr register
7073 numbers were chosen.
7075 2002-04-30 Michael Snyder <msnyder@redhat.com>
7077 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7079 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7081 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7082 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7083 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7085 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7087 From Louis Hamilton <hamilton@redhat.com>:
7088 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7089 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7090 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7091 not bfd-private xcoff data, to determine wordsize.
7092 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7094 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7096 GDB 5.2 released from 5.2 branch.
7098 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7100 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7101 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7102 (x86_64_register_info_table): Added comments with register numbers.
7104 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7106 * rs6000-tdep.c (rs6000_extract_return_value,
7107 rs6000_store_return_value): Handle returning vectors.
7108 (rs6000_gdbarch_init): Use
7109 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7110 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7112 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7114 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7115 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7117 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7119 * hpread.c (hpread_psymtab_to_symtab_1,
7120 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7121 with fprintf_unfiltered (gdb_stderr,...).
7123 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7125 * remote-array.c (printf_monitor, write_monitor,
7126 array_insert_breakpoint, array_remove_breakpoint ):
7127 Replace fprintf (stderr,...
7128 with fprintf_unfiltered (gdb_stderr,....
7129 * remote-es.c: Likewise.
7130 * remote-os9k.c: Likewise.
7131 * remote-st.c: Likewise.
7133 2002-04-28 Andreas Schwab <schwab@suse.de>
7135 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7136 linux-proc.o and gcore.o.
7138 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7140 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7141 code without frame pointers.
7143 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7145 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7148 2002-04-26 Ben Elliston <bje@redhat.com>
7150 * target.c (do_xfer_memory): Correct reference to the new option
7151 "trust-readonly-sections".
7153 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7155 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7156 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7157 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7159 (read_array_type): Record the fact that this array type is really a
7160 vector (i.e. are passed in by value).
7162 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7164 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7165 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7166 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7167 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7168 * alpha-linux-tdep.c: Include frame.h.
7169 (alpha_linux_sigcontext_addr): New function.
7170 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7171 alpha_linux_sigcontext_addr.
7172 * alpha-osf1-tdep.c: Include gdbcore.h.
7173 (alpha_osf1_sigcontext_addr): New function.
7174 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7175 alpha_osf1_sigcontext_addr.
7176 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7177 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7179 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7181 * stack.c (selected_frame_level):
7182 (select_frame): Do not set selected_frame_level.
7183 * frame.h (selected_frame_level): Delete declaration.
7185 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7187 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7188 convert_from_func_ptr-addr when AIX / PowerOpen.
7190 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7192 * valops.c (hand_function_call): Call
7193 generic_save_call_dummy_addr.
7194 * frame.h (generic_save_call_dummy_addr): Declare.
7195 * blockframe.c (struct dummy_frame): Add fields call_lo and
7197 (generic_find_dummy_frame): Check for PC in range call_lo to
7198 call_hi instead of entry_point_address.
7199 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7200 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7201 (generic_save_call_dummy_addr): New function.
7203 2002-04-24 David S. Miller <davem@redhat.com>
7205 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7206 sparc_skip_prologue.
7207 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7208 information to find prologue when possible.
7209 (sparc_prologue_frameless_p): Call examine_prologue directly.
7210 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7211 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7213 (SKIP_PROLOGUE): Likewise.
7215 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7217 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7218 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7219 indicate that the condition it was testing is always true.
7220 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7221 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7222 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7224 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7226 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7227 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7228 tdep->jb_pc and tdep->jb_elt_size.
7229 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7230 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7231 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7232 * alpha-nat.c (get_longjmp_target): Remove.
7233 (JB_ELEMENT_SIZE): Ditto.
7235 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7236 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7237 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7238 to alpha_get_longjmp_target.
7239 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7240 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7241 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7243 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7245 * README: Update to GDB 5.2.
7247 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7249 * gdbarch.sh (LC_ALL): Set to `c'.
7251 2002-04-25 Theodore A. Roth <troth@verinet.com>
7253 * avr-tdep.c: Ran through gdb_indent.sh.
7255 2002-04-25 Theodore A. Roth <troth@verinet.com>
7257 * MAINTAINERS: Add myself as AVR maintainer.
7258 * NEWS: Note new target avr.
7260 2002-04-25 Theodore A. Roth <troth@verinet.com>
7262 * Makefile.in: Add support for AVR target.
7263 * configure.tgt: Add support for AVR target.
7264 * avr-tdep.c: New file
7265 * config/avr/avr.mt: New file.
7267 2002-04-25 Theodore A. Roth <troth@verinet.com>
7269 * MAINTAINERS: Add myself to write-after-approval.
7271 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7273 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7274 with fprintf_unfiltered (gdb_stderr,....
7276 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7279 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7281 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7283 * p-exp.y: Also use new prev_lexptr variable
7284 to improve error reporting. Based on Michael Snyder
7285 2002-04-24 dated patch to c-exp.y.
7287 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7289 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7290 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7291 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7293 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7295 (FUNCTION_START_OFFSET): Remove.
7296 (BREAKPOINT): Ditto.
7298 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7300 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7303 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7305 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7306 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7307 alpha_linux_pc_in_sigtramp.
7308 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7309 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7310 alpha_osf1_pc_in_sigtramp.
7311 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7312 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7313 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7314 alphafbsd_pc_in_sigtramp.
7315 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7316 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7317 alphanbsd_pc_in_sigtramp.
7318 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7319 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7321 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7323 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7325 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7327 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7329 (alphanbsd-nat.o): New dependency list.
7330 (alphanbsd-tdep.o): Ditto.
7331 * NEWS: Note new native NetBSD/alpha configuration.
7332 * alphanbsd-nat.c: New file.
7333 * alphanbsd-tdep.c: Ditto.
7334 * configure.host (alpha*-*-netbsd*): New host.
7335 * configure.tgt (alpha*-*-netbsd*): New target.
7336 * config/alpha/nbsd.mh: New file.
7337 * config/alpha/nbsd.mt: Ditto.
7338 * config/alpha/nm-nbsd.h: Ditto.
7339 * config/alpha/tm-nbsd.h: Ditto.
7341 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7343 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7344 (alpha-osf1-tdep.o): New dependency list.
7345 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7346 and skip_sigtramp_frame members.
7347 * alpha-linux-tdep.c: Include gdbcore.h.
7348 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7349 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7350 * alpha-osf1-tdep.c: New file.
7351 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7353 (alpha_frame_past_sigtramp_frame): New function.
7354 (alpha_dynamic_sigtramp_offset): Ditto.
7355 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7356 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7357 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7358 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7359 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7360 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7361 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7362 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7363 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7364 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7365 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7366 to find_solib_trampoline_target.
7367 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7368 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7369 (SKIP_TRAMPOLINE_CODE): Remove.
7370 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7371 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7372 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7373 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7374 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7375 (PROC_SIGTRAMP_MAGIC): Ditto.
7376 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7377 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7378 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7379 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7380 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7382 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7384 * NEWS: Note that Alpha targets are now multi-arch.
7386 2002-04-24 Michael Snyder <msnyder@redhat.com>
7388 * parser-defs.h (prev_lexptr): New external variable.
7389 * parse.c (parse_exp_1): Set prev_lexptr to null before
7390 calling the language-specific parser.
7391 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7392 (yyerror): Use prev_lexptr in error reporting.
7394 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7396 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7397 * gregset.h: If FILL_FPXREGSET is defined, provide
7398 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7399 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7400 is defined, call fill_fpxregset.
7402 2002-04-24 Roland McGrath <roland@frob.com>
7404 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7405 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7406 (supply_gregset, supply_fpregset): New functions.
7408 * gnu-nat.c (gnu_find_memory_regions): New function.
7409 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7410 (gnu_xfer_memory): Add a cast.
7412 2002-04-24 Michael Snyder <msnyder@redhat.com>
7414 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7415 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7416 of argument regs ("str r(0123), [r11, #-nn"]).
7417 (arm_skip_prologue): Better handling for frameless functions.
7418 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7419 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7421 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7423 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7424 NUM_PSEUDO_REGS can be used.
7426 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7428 * arch-utils.h: Update copyright.
7430 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7431 * gdbarch.h, gdbarch.c: Re-generate.
7433 * inferior.h (IN_SIGTRAMP): Delete definition.
7434 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7435 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7437 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7438 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7439 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7440 (find_proc_framesize): Ditto.
7441 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7442 (alpha_init_extra_frame_info): Ditto.
7443 * infrun.c (handle_inferior_event): Ditto.
7444 (handle_inferior_event): Ditto.
7445 (check_sigtramp2): Ditto.
7446 * blockframe.c (create_new_frame): Ditto.
7447 (get_prev_frame): Ditto.
7448 * ppc-linux-tdep.c: Update comments.
7449 * i386-linux-tdep.c: Update comments.
7450 * breakpoint.c (bpstat_what): Update comment.
7452 2002-04-24 David S. Miller <davem@redhat.com>
7454 * i960-tdep.c (register_in_window_p): New function.
7455 (i960_find_saved_register): Use it instead of
7456 REGISTER_IN_WINDOW_P.
7457 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7459 * symtab.h (find_stab_function_addr): Kill extern.
7460 * minsyms.c (find_stab_function_addr): Remove from here...
7461 * dbxread.c: ... to here, and mark it static.
7463 2002-04-20 David S. Miller <davem@redhat.com>
7465 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7466 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7468 2002-04-21 David S. Miller <davem@redhat.com>
7470 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7471 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7472 (vx_write_register): Likewise.
7474 2002-04-23 J. Brobecker <brobecker@gnat.com>
7476 * source.c (is_regular_file): New function.
7477 (openp): Check wether file to open is a regular file
7478 to avoid opening directories.
7480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7482 * findvar.c (extract_signed_integer): Cast printf argument
7483 to suppress format warning.
7484 (extract_unsigned_integer): Likewise.
7485 * infcmd.c (registers_info): Likewise.
7486 * top.c (get_prompt_1): Likewise.
7487 * valops.c (value_assign): Likewise.
7488 * valprint.c (print_decimal): Likewise.
7490 2002-04-22 H.J. Lu (hjl@gnu.org)
7492 * c-exp.y (typebase): Support
7494 [long|long long|short] [signed|unsigned] [int|]
7498 signed [long|long long|short] int
7500 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7502 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7504 * vax-tdep.h: New file.
7505 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7506 Make several routines static.
7507 (vax_get_saved_register): New function.
7508 (vax_gdbarch_init): New function.
7509 (_initialize_vax_tdep): Register vax_gdbarch_init.
7510 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7511 Remove macros now under the control of gdbarch.
7513 2002-04-22 Michael Snyder <msnyder@redhat.com>
7515 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7516 Some whitespace and coding standards tweaks.
7518 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7520 * vax-tdep.c: Include regcache.h.
7521 (vax_call_dummy_words): New.
7522 (sizeof_vax_call_dummy_words): New.
7523 (vax_fix_call_dummy): New function.
7524 (vax_saved_pc_after_call): Ditto.
7525 * config/vax/tm-vax.h: Don't include regcache.h.
7526 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7527 (CALL_DUMMY): Remove.
7528 (CALL_DUMMY_WORDS): Define.
7529 (SIZEOF_CALL_DUMMY_WORDS): Define.
7530 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7532 2002-04-18 Michael Snyder <msnyder@redhat.com>
7534 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7536 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7538 * vax-tdep.c (vax_frame_chain): New function.
7539 (vax_push_dummy_frame): Ditto.
7540 (vax_pop_frame): Ditto.
7541 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7542 (FRAMELESS_FUNCTION_INVOCATION): Use
7543 generic_frameless_function_invocation_not.
7544 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7545 (POP_FRAME): Use vax_pop_frame.
7547 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7549 * vax-tdep.c (vax_store_struct_return): New function.
7550 (vax_extract_return_value): Ditto.
7551 (vax_store_return_value): Ditto.
7552 (vax_extract_struct_value_address): Ditto.
7553 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7554 vax_store_struct_return.
7555 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7556 (STORE_RETURN_VALUE): Use vax_store_return_value.
7557 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7559 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7561 * vax-tdep.c (vax_frame_saved_pc): New function.
7562 (vax_frame_args_address_correct): Ditto.
7563 (vax_frame_args_address): Ditto.
7564 (vax_frame_locals_address): Ditto.
7565 (vax_frame_num_args): Move code to be in proximity to
7566 other frame-related functions.
7567 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7568 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7569 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7570 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7571 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7573 2002-04-22 H.J. Lu (hjl@gnu.org)
7575 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7578 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7580 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7581 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7582 (FRAME_INIT_SAVED_REGS): New macro.
7584 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7586 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7588 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7590 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7592 (fetch_osf_core_registers): Likewise.
7593 (supply_gregset): Likewise.
7595 2002-04-22 J. Brobecker <brobecker@gnat.com>
7597 * symfile.h (get_section_index): Define.
7598 * symfile.c (get_section_index): New function.
7599 * mdebugread.c (SC_IS_SBSS): New macro.
7600 (SC_IS_BSS): Return true for the scBss storage class only, as
7601 the scSBss storage class refers to the .sbss section.
7602 (parse_partial_symbols): Discard the symbols which associated
7603 section does not exist.
7604 Make sure to use the .sbss section index for symbols which
7605 storage class is scBss, rather than using the .bss section index.
7607 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7609 * vax-tdep.c: Update copyright years.
7610 (vax_register_name): New function.
7611 (vax_register_byte): Ditto.
7612 (vax_register_raw_size): Ditto.
7613 (vax_register_virtual_size): Ditto.
7614 (vax_register_virtual_type): Ditto.
7615 * config/vax/tm-vax.h: Update copyright years.
7616 (REGISTER_NAMES): Remove.
7617 (REGISTER_NAME): Define.
7618 (REGISTER_BYTE): Use vax_register_byte.
7619 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7620 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7621 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7623 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7625 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7627 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7629 2002-04-21 David S. Miller <davem@redhat.com>
7631 * arch-utils.c (generic_prologue_frameless_p): Kill
7632 SKIP_PROLOGUE_FRAMELESS_P code.
7633 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7635 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7636 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7637 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7639 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7640 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7641 (sparc_gdbarch_init): Pass it to
7642 set_gdbarch_prologue_frameless_p.
7644 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7646 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7647 (alphabsd-nat.o): New dependency list.
7649 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7651 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7653 (alpha-linux-tdep.o): New dependency list.
7654 (alphafbsd-tdep.o): Likewise.
7656 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7658 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7660 * alpha-tdep.c: ...from here.
7661 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7663 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7665 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7666 prototype from here...
7667 * alpha-tdep.h: ...to here.
7669 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7671 * frame.h (selected_frame_level): Document as deprecated.
7672 (frame_relative_level): Declare.
7673 * stack.c (frame_relative_level): New function.
7674 (selected_frame_level): Document as deprecated.
7675 (select_frame): Do not set the selected_frame_level.
7677 * stack.c (frame_info, record_selected_frame): Update.
7678 (frame_command, current_frame_command): Update.
7679 (up_silently_base, up_command, down_silently_base): Update.
7680 (down_command): Update.
7681 * inflow.c (kill_command): Update.
7682 * tracepoint.c (finish_tfind_command): Update.
7683 * corelow.c (core_open): Update.
7684 * thread.c (info_threads_command): Update.
7685 (do_captured_thread_select): Update.
7686 * infcmd.c (finish_command): Update.
7687 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7689 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7691 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7693 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7695 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7698 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7700 * alphafbsd-tdep.c: Update copyright years. Include
7702 (alphafbsd_use_struct_convention): Make static.
7703 (alphafbsd_init_abi): New function.
7704 (_initialize_alphafbsd_tdep): New function.
7705 * config/alpha/tm-fbsd.h: Update copyright years.
7706 (USE_STRUCT_CONVENTION): Remove.
7708 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7710 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7711 an Alpha ABI variant.
7712 (alpha_abi_handler_list): Declare.
7713 (alpha_gdbarch_register_os_abi): New function.
7714 (alpha_gdbarch_init): Give registered ABI variant handlers a
7715 chance to tweak the gdbarch once we have set up defaults.
7716 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7718 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7720 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7721 to standard_coerce_float_to_double.
7722 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7724 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7726 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7727 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7728 from gdbarch_tdep rather than a constant.
7729 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7730 the default text address for all Alpha Unix ABIs.
7731 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7732 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7734 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7736 * alpha-tdep.h: New file. Includes several Alpha target constants
7738 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7739 let gdbarch deal with.
7740 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7741 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7743 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7744 Alpha target register names.
7745 * alphabsd-nat.c: Likewise.
7746 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7747 Alpha target register names. Make serveral routines static.
7748 (alpha_get_saved_register): New function.
7749 (alpha_abi_names): New.
7750 (process_note_abi_tag_sections): New function.
7751 (get_elfosabi): New function.
7752 (alpha_gdbarch_init): New function.
7753 (alpha_dump_tdep): New function.
7754 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7756 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7758 * frame.c (find_saved_register): Delete #ifdef
7759 HAVE_REGISTER_WINDOWS code.
7760 * config/sparc/tm-sparc.h: Update comments.
7761 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7763 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7765 * i960-tdep.c (i960_find_saved_register): New function.
7766 (i960_get_saved_register): New function.
7767 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7768 (i960_get_saved_register): Declare.
7769 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7771 2002-04-20 David S. Miller <davem@redhat.com>
7773 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7775 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7777 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7778 instead of NUM_PSEUDO_REGS.
7780 2002-04-20 David S. Miller <davem@redhat.com>
7782 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7783 GDB_MULTI_ARCH_PARTIAL
7784 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7785 define, let tm-sp64.h do it.
7787 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7789 * frame.c (find_saved_register): Avoid a NULL pointer
7790 dereference and actually walk the frame list.
7792 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7794 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7795 sorted in most most-recent-used order. Document.
7796 * gdbarch.h, gdbarch.c: Regenerate.
7798 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7800 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7802 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7803 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7804 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7807 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7810 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7811 (build_builtin_type_vec128): Ditto.
7812 (append_composite_type_field): Fix calculation of type length in
7815 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7817 * config/djgpp/README: Update.
7819 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7822 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7824 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7825 (alpha_setup_arbitrary_frame): ...to this.
7826 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7827 for alpha_setup_arbitrary_frame.
7829 2002-04-18 Andrew Cagney <cagney@redhat.com>
7831 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7832 * gdbarch.h, gdbarch.c: Regenerate.
7834 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7835 * target.h (memory_breakpoint_from_pc): Update declaration.
7836 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7838 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7839 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7840 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7841 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7842 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7843 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7844 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7845 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7846 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7847 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7848 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7849 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7851 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7853 * monitor.c (monitor_insert_breakpoint): Ditto.
7854 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7856 * config/mcore/tm-mcore.h: Update copyright.
7857 * mem-break.c: Ditto.
7858 * xstormy16-tdep.c: Ditto.
7860 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7862 * p-exp.y: Add precedence rule for '^' token.
7863 This removes the shift/reduce conflicts.
7864 Remove the comment concerning these shift/reduce conflicts.
7866 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7868 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7869 (registers_powerpc_nofp): New register set for processors
7870 without floating point unit.
7872 2002-04-18 David S. Miller <davem@redhat.com>
7874 * MAINTAINERS: Add myself to write-after-approval.
7876 2002-04-17 Michael Snyder <msnyder@redhat.com>
7878 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7880 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7882 * rs6000-tdep.c (frame_initial_stack_address): Use
7883 frame_register_read to read the alloca_reg.
7885 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7887 * frame.c (find_saved_register): Find saved registers in the next
7891 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7893 * gdbarch.sh (LANG): Set to ``c''.
7895 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7897 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7899 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7901 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7904 * hpread.c (hpread_get_lntt): Add declaration.
7905 Also fix PR gdb/391.
7907 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7909 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7910 * aclocal.m4, configure: Re-generate.
7913 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7915 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7916 instead of tm_print_insn.
7918 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7920 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7922 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7924 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7925 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7926 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7928 2002-04-12 Don Howard <dhoward@redhat.com>
7930 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7931 max_user_call_depth.
7932 (init_cmd_lists): Initialize the new value;
7933 * cli/cli-script.c (execute_user_command): Limit the call depth of
7934 user defined commands. This avoids a core-dump when user commands
7935 are infinitly recursive.
7937 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7939 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7940 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7941 from tdep struct instead of DEFAULT_LR_SAVE.
7942 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7943 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7944 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7946 2002-04-12 Michael Snyder <msnyder@redhat.com>
7948 * Remote.c: Spelling fix.
7949 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7950 If no symbol found for "sbrk", try "_sbrk".
7951 (make_output_phdrs): Use bfd_section_name.
7952 (gcore_copy_callback): Use bfd_section_name.
7953 * eval.c: Indentation fix-ups.
7954 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7955 in case it gets applied to an address that is already
7956 in the instruction space.
7957 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7958 * symfile.c: Fix indentation, long lines.
7959 * source.c: White space fix-up.
7961 2002-04-12 Andrew Cagney <cagney@redhat.com>
7963 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7964 * frame.c (frame_register_read): New function. Return non-zero on
7966 (read_relative_register_raw_bytes_for_frame): Delete.
7967 (read_relative_register_raw_bytes): Delete.
7968 * frame.h (frame_register_read): Declare.
7969 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7971 * infcmd.c (do_registers_info): Ditto.
7972 * hppa-tdep.c: Ditto.
7973 * rs6000-tdep.c: Ditto.
7974 * h8500-tdep.c: Ditto.
7975 * mips-tdep.c: Ditto.
7976 * h8300-tdep.c: Ditto.
7977 * z8k-tdep.c: Ditto.
7979 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7981 From Jimi X <jimix@watson.ibm.com>:
7982 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7985 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7987 From Jimi X <jimix@watson.ibm.com>:
7988 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7991 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7993 From Jimi X <jimix@watson.ibm.com>:
7994 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7995 register sets for these processor variants.
7997 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7999 * regformats/reg-ppc.dat: Support FPSCR.
8001 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8003 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8004 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8005 Add fpscr as an invalid/unfetchable register.
8006 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8007 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8008 (fill_fpregset): Add support for register fpscr.
8009 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8010 (fill_gregset): Account for the fact that register ``mq'' might
8012 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8013 (registers_power): Add fpscr to register set at slot 71.
8014 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8015 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8017 2002-04-11 Michael Snyder <msnyder@redhat.com>
8019 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8020 * configure: Regenerate.
8021 * config.in: Regenerate.
8022 * acconfig.h: Add define for _SYSCALL32.
8023 * core-sol2.c: Remove #define _SYSCALL32.
8024 * solib-legacy.c: Remove #define _SYSCALL32.
8026 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8028 * stack.c (select_frame): Cleanup internal error message, do not
8031 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8033 * stack.c (select_frame): Check that selected_frame and the
8034 specified level are as expected.
8035 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8037 * frame.h (struct frame_info): Add field `level'. Update
8039 Work-in-progress PR gdb/464.
8041 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8043 * maint.c (maint_print_section_info): Rename print_section_info.
8044 (print_bfd_section_info, print_objfile_section_info): Update.
8045 * inferior.h (struct gdbarch): Add opaque declaration.
8046 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8047 * gdbarch.h: Regenerate.
8049 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8051 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8052 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8053 (kernel_u_size): Added.
8054 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8055 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8057 2002-04-04 Jim Ingham <jingham@apple.com>
8059 * valarith.c (find_size_for_pointer_math): New function, either returns
8060 the size for a pointer's target, returns 1 for void *, or errors for
8062 (value_add, value_sub): use find_size_for_pointer_math.
8064 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8066 * linux-low.c (linux_look_up_symbols): New hook.
8067 (linux_target_ops): Add linux_look_up_symbols.
8068 * remote-utils.c (decode_address): New function.
8069 (look_up_one_symbol): New function.
8070 * server.c (handle_query): Call target look_up_symbols hook.
8071 * server.h (look_up_one_symbol): Add prototype.
8072 * target.h (struct target_ops): Add look_up_symbols hook.
8074 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8076 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8077 override FP_REGNUM with frame->fp. Update copyright.
8078 * parse.c (num_std_regs, std_regs): Delete.
8079 (target_map_name_to_register): Do not search std_regs. Update
8080 function description.
8081 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8082 declarations. Update copyright.
8085 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8087 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8088 after the last symbol in a block.
8090 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8092 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8093 is non zero as a found symbol.
8095 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8097 * findvar.c: Include "builtin-regs.h".
8098 (value_of_register): Call value_of_builtin_reg when applicable.
8099 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8100 (target_map_name_to_register): Call
8101 builtin_reg_map_name_to_regnum.
8102 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8103 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8104 (builtin_regs_h): Define.
8105 (builtin-regs.o): New target.
8106 (findvar.o): Add $(builtin_regs_h).
8107 * builtin-regs.c, builtin-regs.h: New files.
8108 * std-regs.c: New file.
8109 Partial fix for PR gdb/251.
8111 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8113 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8114 it's no longer required.
8116 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8118 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8120 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8122 From Jimi X <jimix@watson.ibm.com>:
8123 * rs6000-tdep.c (rs6000_software_single_step): Use
8124 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8125 and size. Use target_insert_breakpoint() and
8126 target_remove_breakpoint() to insert and remove breakpoints
8127 instead of explicit memory reads and writes.
8129 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8131 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8132 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8133 ELF_OBJECT_FORMAT ifdef.
8135 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8137 From Jimi X <jimix@watson.ibm.com>:
8138 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8140 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8142 From Jimi X <jimix@watson.ibm.com>:
8143 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8144 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8146 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8148 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8149 s/asprintf/xasprintf/.
8150 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8152 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8154 I believe Jeff Law denies responsability for this one:
8155 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8156 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8157 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8158 Work-around for PR gdb/366.
8160 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8162 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8163 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8164 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8166 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8168 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8169 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8172 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8174 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8177 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8179 * README (Reporting Bugs in GDB): Document the bug web page as the
8180 prefered way of submitting bugs.
8183 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8185 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8187 * gdbarch.h, gdbarch.c: Re-generate.
8189 2002-04-07 Andreas Schwab <schwab@suse.de>
8191 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8192 buffer to regcache_collect.
8194 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8196 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8197 * gdbarch.c, gdbarch.h: Re-generate.
8199 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8201 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8202 declaration. Fix -Werror.
8204 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8206 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8207 * gdbarch.c: Regenerate.
8209 2002-04-05 Michael Snyder <msnyder@redhat.com>
8211 * breakpoint.c (clear_command): Rewrite middle section to
8212 combine two loops with identical control conditions.
8213 Add a cleanup to eliminate a memory leak.
8214 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8216 2002-04-05 H.J. Lu (hjl@gnu.org)
8218 * solib-svr4.c (bkpt_names): Add "__start".
8220 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8222 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8223 as test for 64 bit target.
8225 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8227 * h8500-tdep.c (h8500_write_fp): Delete function.
8228 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8229 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8230 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8232 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8233 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8235 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8236 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8237 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8238 (d10v_write_fp): Delete function.
8239 * inferior.h (write_fp, generic_target_write_fp): Delete
8241 * regcache.c (generic_target_write_fp): Delete function.
8242 (write_fp): Delete function.
8243 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8244 * gdbarch.h, gdbarch.c: Regenerate.
8245 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8246 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8247 (sparc64_write_fp): Delete declaration.
8248 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8249 (h8500_write_fp): Delete declaration.
8251 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8253 * sparc-tdep.c (sparc64_write_fp): Delete.
8254 (sparc_push_dummy_frame): Replace write_fp call with code to store
8256 (sparc_gdbarch_init): Do not initialize write_fp.
8258 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8260 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8263 2002-03-29 Jim Blandy <jimb@redhat.com>
8265 * stack.c (get_selected_block): Add new argument `addr_in_block',
8266 used to return the exact code address we used to select the block,
8268 * blockframe.c (get_frame_block, get_current_block): Same.
8269 * frame.h (get_frame_block, get_current_block,
8270 get_selected_block): Update declarations.
8271 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8272 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8274 2002-04-05 Michael Snyder <msnyder@redhat.com>
8276 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8279 2002-04-05 J. Brobecker <brobecker@gnat.com>
8281 * utils.c (xfullpath): New function.
8282 * defs.h (xfullpath): Add declaration.
8283 * source.c (openp): Use xfullpath in place of gdb_realpath to
8284 avoid resolving the basename part of filenames when the
8285 associated file is a symbolic link. This fixes a potential
8286 inconsistency between the filenames known to GDB and the
8287 filenames it prints in the annotations.
8288 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8289 to be able to match a filename with either the real filename, or
8290 the name of any symbolic link to this file.
8291 (lookup_partial_symtab): Ditto.
8293 2002-04-04 Michael Snyder <msnyder@redhat.com>
8295 * breakpoint.c: Add support for hardware breakpoints in overlays.
8296 (overlay_events_enabled): New state variable.
8297 (insert_breakpoints): Use overlay_events_enabled to decide
8298 whether to attempt to set a breakpoint at the overlay load addr.
8299 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8300 (remove_breakpoint): Use overlay_events_enabled to decide
8301 whether breakpoints need to be removed from overlay load addr.
8302 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8303 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8304 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8305 disable_overlay_breakpoints): Update overlay_events_enabled.
8307 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8309 * dwarf2read.c (struct function_range): New.
8310 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8311 (check_cu_functions): New.
8312 (read_file_scope): Initialize global function lists.
8313 Call dwarf_decode_line after processing children.
8314 (read_func_scope): Add to global function list.
8315 (dwarf_decode_lines): Call check_cu_functions everywhere
8316 record_line is called. Call record_line with a linenumber
8317 of 0 to mark sequence ends.
8319 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8321 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8322 change sync with glibc.
8324 2002-04-03 Jim Blandy <jimb@redhat.com>
8326 * configure.in: Call AC_C_INLINE.
8327 * configure: Regenerated.
8329 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8331 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8332 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8334 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8336 * NEWS: Mention gcore support on FreeBSD/i386.
8338 * fbsd-proc.c: New file.
8339 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8340 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8342 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8345 2002-03-29 Jim Blandy <jimb@redhat.com>
8347 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8348 unescaped newlines in string literals, but newer ones don't. So
8351 2002-03-26 Michael Snyder <msnyder@redhat.com>
8352 Andrew Cagney <cagney@redhat.com>
8354 * cli/cli-dump.c: New file. Dump memory to file,
8355 restore file to memory.
8356 * cli/cli-dump.h: New file.
8357 * Makefile.in: Add rules, dependencies for cli-dump.o.
8358 * NEWS: Mention new commands.
8360 2002-03-28 Michael Snyder <msnyder@redhat.com>
8362 * symfile.c (symbol_file_add): Move test for null symbols to later.
8364 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8366 From veksler at il.ibm.com:
8367 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8368 the xstrduped original path.
8371 2002-03-27 Michael Snyder <msnyder@redhat.com>
8373 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8374 * infcmd.c (_initialize_infcmd): Ditto.
8375 * language.c (_initialize_language): Ditto.
8376 * symfile.c (_initialize_symfile): Ditto.
8377 * top.c (_init_main): Ditto.
8378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8380 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8382 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8383 vector registers handling.
8384 (skip_prologue): Handle new AltiVec instructions. Fill in new
8385 fields of frame data.
8386 (frame_get_saved_regs): Fill in information for AltiVec registers.
8388 2002-03-27 Jim Blandy <jimb@redhat.com>
8390 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8391 a function; leave this macro here to invoke that function.
8392 (symbol_init_mangled_name): Declaration for that function.
8393 * symtab.c (symbol_init_mangled_name): New function.
8395 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8397 * valarith.c: Replace strerror with safe_strerror.
8398 * tracepoint.c: Ditto.
8400 * go32-nat.c: Ditto.
8404 2002-03-27 Andreas Schwab <schwab@suse.de>
8406 * event-top.c (command_line_handler): Remove useless if.
8408 2002-03-27 Andreas Jaeger <aj@suse.de>
8410 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8413 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8415 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8416 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8417 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8418 (x86_64_linux_dr_get_status, supply_gregset),
8419 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8420 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8421 (x86_64_register_info_table): Add.
8422 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8423 (x86_64_register_raw_size, x86_64_register_virtual_type),
8424 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8425 general x86_64_register_info_table.
8426 (i386_gdbarch_init): gdbarch_register_bytes is now set
8427 dynamicaly during initialization.
8428 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8429 * gdbserver/linux-x86-64-low.c: Ditto.
8431 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8433 * gdbserver/server.c (main): Call target_signal_to_host_p
8434 and target_signal_to_host on signals received from the remote.
8435 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8436 target_signal_from_host on signals sent to the remote.
8437 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8438 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8440 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8442 * signals/signals.c: Include "server.h" in gdbserver build.
8443 (target_signal_from_name): Don't use STREQ.
8444 (_initialize_signals): Likewise. Don't include function in
8447 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8449 * signals.c: Moved to...
8450 * signals/signals.c: Here.
8451 * Makefile (signals.o): Update.
8453 2002-03-26 Jeff Law (law@redhat.com)
8455 * somread.c (som_symtab_read): Remove some commented out code and
8456 updated related comments. Do not set the minimal symbol table to
8457 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8458 in a dynamic executable.
8459 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8460 where we are unable to find the minimal symbol for the given
8463 2002-03-25 Jeff Law (law@redhat.com)
8465 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8467 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8469 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8471 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8473 * command.h: Update copyright.
8474 (struct cmd_list_element): Replace definition with opaque
8476 (enum cmd_types): Document that it will eventually be moved to
8478 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8479 (MALLOCED_REPLACEMENT): Delete macro.
8480 * Makefile.in (cli_decode_h): Add $(command_h).
8481 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8482 * top.c: Include "cli/cli-decode.h".
8483 * completer.c: Include "cli/cli-decode.h".
8484 * maint.c: Include "cli/cli-decode.h".
8485 * cli/cli-decode.h: Include "command.h".
8486 (enum command_class): Delete.
8487 (enum cmd_types): Comment out.
8488 (enum cmd_auto_boolean): Delete.
8489 (enum var_types): Delete.
8491 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8493 * cli/cli-decode.c: Include "gdb_assert.h".
8494 (add_set_or_show_cmd): New static function.
8495 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8496 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8497 all fields, such as func, from the set command.
8499 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8501 * MAINTAINERS (sh-elf): Change warning flag to -w.
8503 2002-03-23 Andrew Cagney <cagney@redhat.com>
8505 * defs.h (error): Add printf format attribute.
8506 * thread-db.c (thread_from_lwp): Fix error format string.
8507 * stack.c (parse_frame_specification): Ditto.
8508 * cli/cli-decode.c (undef_cmd_error): Ditto.
8509 * scm-lang.c (scm_lookup_name): Ditto.
8510 * tracepoint.c (trace_error): Ditto.
8511 * remote-utils.c (usage): Ditto.
8512 * remote.c (compare_sections_command): Ditto.
8515 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8517 * gdbtypes.c (append_composite_type_field): New function.
8518 (init_composite_type): New function.
8519 * gdbtypes.h (append_composite_type_field): Declare.
8520 (init_composite_type): Ditto.
8522 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8524 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8526 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8527 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8528 structure returning convention for SYSV ABI case, but not
8529 for GNU/Linux, FreeBSD, or NetBSD.
8531 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8533 * symtab.h (lookup_block_symbol): Add mangled_name argument
8536 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8537 with new mangled_name argument.
8538 * linespec.c (decode_line_1): Likewise.
8539 * valops (value_of_this): Likewise.
8540 * symtab.c (lookup_transparent_type): Likewise.
8541 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8542 (lookup_symbol): If we are given a mangled name, pass it down
8543 to lookup_symbol_aux.
8544 (lookup_block_symbol): If we are given a mangled name to check
8545 against, only return symbols which match it.
8547 2002-03-22 Christopher Faylor <cgf@redhat.com>
8549 * win32-nat.c (child_create_inferior): Check for proper shell to use
8550 here, in case the user changes it on the fly.
8551 (_initialize_inftarg): Remove shell path considerations.
8553 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8555 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8556 for gdbarch_max_register_raw_size and max_register_virtual_size.
8557 Adjust copyright year.
8559 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8561 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8562 in a function to cover the entire beginning of the function
8563 as well if it does not already.
8565 2002-03-21 Tom Rix <trix@redhat.com>
8567 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8568 (rs6000_ptrace64): Renamed from ptrace64.
8570 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8572 * gdbserver/remote-utils.c (remote_open): Don't call
8573 getprotobyname, we're all using TCP here so just use
8575 * gdbserver/gdbreplay.c (remote_open): Ditto.
8577 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8579 * regcache.c (_initialize_regcache): No need to call
8580 build_regcache() at this time; it gets called whenever
8581 the gdbarch changes.
8583 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8585 * sparc-nat.c: Include sys/param.h where possible.
8587 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8590 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8591 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8592 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8594 * stabsread.c (rs6000_builtin_type): Likewise.
8595 (read_sun_floating_type): Likewise.
8597 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8599 * stabsread.c (read_member_functions): Remove skip code for duplicate
8600 constructor/destructor methods. Use standard parsing for these
8601 methods and just do not chain them to the list of methods after
8604 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8606 * coffread.c: Remove redundant static declarations. Replace
8607 occurrences of `PTR' with `void *'.
8608 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8609 * top.h (quit_cover): Likewise.
8610 * defs.h (catch_errors): Likewise.
8612 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8614 * defs.h (XMALLOC): Define.
8615 * gdb-events.sh (XMALLOC): Delete macro.
8616 * gdb-events.c, gdb-events.h: Regenerate.
8617 * gdbarch.sh (XMALLOC): Delete macro.
8618 * gdbarch.c: Regenerate.
8619 * serial.c (XMALLOC): Delete macro.
8620 * ui-file.c (XMALLOC): Ditto.
8621 * ser-unix.h (XMALLOC): Ditto.
8622 * sh-tdep.c (XMALLOC): Ditto.
8623 * ui-out.c (XMALLOC): Ditto.
8624 * utils.c (XMALLOC): Ditto.
8625 * i386-tdep.c (XMALLOC): Ditto.
8626 * gdb-events.c (XMALLOC): Ditto.
8627 * d10v-tdep.c (XMALLOC): Ditto.
8628 * cli-out.c (XMALLOC): Ditto.
8630 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8631 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8632 * ui-file.c, ui-out.c: Ditto.
8634 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8636 * command.h (struct cmd_list_element): Add field context.
8637 (set_cmd_context, get_cmd_context): Declare.
8638 * cli/cli-decode.h: Ditto.
8639 * cli/cli-decode.c (get_cmd_context): New function.
8640 (set_cmd_context): New function.
8641 (add_cmd): Initialize context.
8642 Part of fixing PR gdb/145 and PR gdb/146.
8644 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8646 * cli/cli-decode.c (cmd_type): New function.
8647 * command.h (cmd_type): Declare.
8648 * infrun.c (set_schedlock_func): Call function cmd_type.
8649 * kod.c (kod_set_os): Call cmd_type.
8650 * cris-tdep.c (cris_version_update): Use function cmd_type.
8651 (cris_mode_update, cris_abi_update): Ditto.
8653 * command.h: (execute_cmd_post_hook): Declare.
8654 (execute_cmd_pre_hook): Declare.
8655 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8656 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8657 functions. Execute pre/post hook while ensuring that afterwords
8659 * top.c (execute_command): Use execute_cmd_post_hook, and
8660 execute_cmd_pre_hook to execute pre/post commands.
8661 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8663 (hook_stop_stub): Call execute_cmd_pre_hook.
8665 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8667 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8668 set'' and this leads to a core dump. Move xstrdup of
8669 operating_system to after check that it is not NULL.
8671 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8673 * kod.c (kod_set_os): Remove unnecessary check that
8674 ``command->type'' is set_cmd.
8676 * valprint.c (set_input_radix): Use input_radix.
8677 (set_output_radix): Use output_radix.
8678 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8681 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8683 * value.h (struct value): Delete field ``substring_addr''. Change
8684 aligner fields to force_doublest_align, force_longest_align,
8685 force_core_addr_align and force_pointer_aligh.
8687 * value.h (struct value): Fix typo in above change.
8689 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8691 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8692 to fix internal_error from ``maintenance print architecture''.
8694 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8696 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8697 for gcc versions after gcc-2.8.1.
8699 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8701 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8702 for method resolution. Restore adjustment of ``this'' pointer after
8703 calling value_struct_elt, which was accidentally removed during the
8706 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8708 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8710 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8712 * value.h (value_of_register): Update.
8714 2002-03-14 Richard Henderson <rth@redhat.com>
8716 * configure.in: Detect declaration for canonicalize_file_name.
8717 * utils.c (canonicalize_file_name): Declare, if needed.
8718 (gdb_realpath): Prefer realpath if available and usable.
8719 * config.in, configure: Rebuild.
8721 2002-03-14 Richard Henderson <rth@redhat.com>
8723 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8724 a constant array bound.
8726 * MAINTAINERS: Add myself to write-after-approval.
8728 2002-03-14 Michael Snyder <msnyder@redhat.com>
8730 * symfile.c (syms_from_objfile): Return immediately if no syms.
8731 (symbol_file_add): Return immediately if no syms.
8732 (find_sym_fns): Return immediately if no syms.
8734 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8736 * gdbserver/remote-util.c (remote_open): Print remote-side's
8737 IP address when remote debugging over the network.
8739 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8741 * config/sparc/fbsd.mh: Fix copyright.
8742 * config/sparc/fbsd.mt: Likewise.
8744 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8746 * MAINTAINERS: Fix typo in name of gdb warnings option.
8747 (x86-64): Fix formating so that this can be parsed by awk.
8749 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8751 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8752 * defs.h: Include "gdb/signals.h".
8753 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8755 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8757 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8758 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8761 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8762 Don Howard <dhoward@redhat.com>
8764 * mips-tdep.c (ST0_FR): Define.
8765 (mips2_fp_compat): New function, temporarily disabled.
8766 (mips_read_fp_register_single): New function.
8767 (mips_read_fp_register_double): New function.
8768 (mips_print_register): Use them.
8769 (do_fp_register_row): Likewise.
8771 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8773 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8776 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8778 * stabsread.c (read_member_functions): Fix is_stub test for
8779 static member functions, improve comment.
8781 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8783 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8784 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8785 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8786 commands that set boolean values.
8787 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8788 (arm_rdi_resume): Always initialize PC.
8789 (arm_rdi_open): Don't use rslt as a boolean.
8790 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8791 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8792 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8793 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8795 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8797 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8798 * configure: Rebuilt.
8800 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8802 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8803 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8805 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8807 * cli/cli-decode.c (set_cmd_completer): New function.
8808 * command.h (set_cmd_completer): Declare.
8809 * cli/cli-decode.h (set_cmd_completer): Ditto.
8811 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8812 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8813 * win32-nat.c (_initialize_inftarg): Ditto.
8814 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8815 * proc-api.c (_initialize_proc_api): Ditto.
8816 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8817 * source.c (_initialize_source): Ditto.
8818 * exec.c (_initialize_exec): Ditto.
8819 * solib.c (_initialize_solib): Ditto.
8820 * top.c (init_main): Ditto.
8821 * tracepoint.c (_initialize_tracepoint): Ditto.
8822 * symfile.c (_initialize_symfile): Ditto.
8823 * printcmd.c (_initialize_printcmd): Ditto.
8824 * infcmd.c (_initialize_infcmd): Ditto.
8825 * corefile.c (_initialize_core): Ditto.
8827 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8829 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8831 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8833 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8835 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8837 * NEWS: Update headings, 5.2 has branched.
8839 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8841 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8842 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8843 (register_addr, REGISTER_RAW_SIZE): Likewise.
8844 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8845 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8847 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8849 * MAINTAINERS (x86-64): Add myself.
8850 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8851 changed value_ptr -> struct value *
8853 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8855 * configure.host (sparc64-*-freebsd): Add.
8856 * configure.tgt: Likewise.
8857 * config/sparc/fbsd.mh: New file.
8858 * config/sparc/fbsd.mt: Likewise.
8859 * config/sparc/nm-fbsd.h: Likewise.
8860 * config/sparc/tm-fbsd.h: Likewise.
8862 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8864 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8865 regformats/reg-s390x.dat.
8867 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8869 * utils.c: Add FIXME explaining true/false problem.
8871 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8873 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8875 2002-02-28 Michael Chastain <mec@shout.net>
8877 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8879 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8881 * gdbserver/linux-s390-low.c: New file.
8882 * regformats/reg-s390.dat: New file.
8883 * regformats/reg-s390x.dat: New file.
8884 * gdbserver/configure.srv: Add S/390.
8885 * gdbserver/Makefile.in: Add S/390.
8886 * configure.tgt: Enable gdbserver for S/390.
8888 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8890 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8891 first line of the doc string for "info dos", except at the end of
8892 the sentence, since the short help stops at the first period.
8894 2002-02-28 Jason Merrill <jason@redhat.com>
8896 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8898 2002-02-27 Fred Fish <fnf@redhat.com>
8900 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8901 comment (dumy -> dummy).
8903 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8905 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8907 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8909 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8911 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8913 * gdbserver/acconfig.h: New file.
8914 * gdbserver/i387-fp.c: New file.
8915 * gdbserver/i387-fp.h: New file.
8916 * gdbserver/linux-x86-64.c: New file.
8917 * regformats/reg-x86-64.dat: New file.
8918 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8919 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8920 * gdbserver/configure.in: Add support for regsets.
8921 * gdbserver/config.in: Regenerate.
8922 * gdbserver/configure: Regenerate.
8923 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8924 * gdbserver/linux-low.h: New file.
8925 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8927 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8928 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8929 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8930 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8931 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8932 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8933 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8934 "i387-fp.h". Add PTRACE_GETREGS and friends.
8935 * gdbserver/regcache.c (supply_register): New function.
8936 (supply_register_by_name): New function.
8937 (collect_register): New function.
8938 (collect_register_by_name): New function.
8940 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8942 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8943 (config.status): Add configure.srv dependency.
8944 (server_h): Add config.h dependency.
8946 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8948 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8949 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8950 * gdbserver/configure.srv: Change i386-*-linux* to use
8953 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8955 * x86-64-tdep.c: Re-indent. Update copyright date.
8957 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8959 From Michal Ludvig <mludvig@suse.cz>:
8960 * x86-64-tdep.c (value.h): Delete.
8961 (gdb_assert.h): Include.
8962 (x86_64_register_convert_to_virtual,
8963 x86_64_register_convert_to_raw ): Add check which lets only
8964 floating-point values to be converted.
8965 (value_push): Delete.
8966 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8967 (i386_gdbarch_init): Number of register_bytes fixed.
8969 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8971 * MAINTAINERS: Add x86-64 target.
8973 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8975 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8976 * osfsolib.c (solib_map_sections): Ditto.
8977 * irix5-nat.c (solib_map_sections): Ditto.
8978 * corelow.c (gdb_check_format): Ditto.
8979 * symfile.c (symfile_bfd_open): Ditto.
8980 * solib.c (solib_map_sections): Ditto.
8983 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8985 * remote.c (_initialize_remote): By default, disable ``e'' and
8986 ``E'' step out-of-range packets.
8988 2002-02-26 Andreas Schwab <schwab@suse.de>
8990 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8991 m68k_linux_frame_saved_pc.
8992 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8994 (SIGCONTEXT_PC_OFFSET): Remove.
8995 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8996 m68k_linux_sigtramp_saved_pc): New functions.
8997 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8998 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8999 (UCONTEXT_PC_OFFSET): Define.
9000 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9001 non-RT and RT signal trampolines.
9003 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9005 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9006 (TARGET_NBPG, STACK_END_ADDR): Delete
9007 (VARIABLES_INSIDE_BLOCK): Delete.
9009 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9011 * utils.c (perror_with_name): Make string parameter constant.
9012 (print_sys_errmsg): Ditto.
9014 * defs.h (perror_with_name): Update.
9015 (print_sys_errmsg): Update.
9018 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9020 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9021 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9023 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9025 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9026 if it already matches the current architecture from the exec file.
9027 Include arch-utils.h for gdbarch_info_init prototype.
9028 * Makefile.in (rs6000-nat.o): Update dependencies.
9030 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9032 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9033 list of exported variables.
9035 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9037 * gdbserver/configure.srv: New file.
9038 * gdbserver/configure.in: Use configure.srv instead
9039 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9041 * gdbserver/configure: Regenerated.
9042 * gdbserver/terminal.h: New file.
9043 * gdbserver/Makefile.in: Update for configure changes. Remove
9044 more unneeded include paths.
9046 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9048 From wiz at danbala:
9049 * config/sparc/tm-sp64.h: Fix grammar and typos.
9052 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9054 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9055 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9056 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9057 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9058 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9059 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9060 * s390-tdep.c: Ditto.
9061 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9062 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9063 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9064 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9065 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9066 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9067 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9068 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9069 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9070 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9073 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9075 * lin-thread.c: Delete file.
9076 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9077 to gdb_proc_service.h.
9078 * configure: Re-generate.
9080 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9081 * serial.c (serial_open): Delete check for "ocd".
9084 * Makefile.in (linux-thread.o): Delete target.
9085 * linux-thread.c: Delete file.
9087 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9088 renamed SH files to be consistent.
9090 * symtab.c (sort_search_symbols): Use xfree.
9092 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9094 * arm-linux-tdep.c (arm_linux_init_abi): Register
9095 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9096 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9097 definition with undef, since we don't want the sysvr4 definition.
9098 (SKIP_TRAMPOLINE_CODE): Likewise.
9100 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9102 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9104 * configure.in: (AC_CHECK_FUNCS) Added test for
9105 canonicalize_file_name Regenerated.
9106 * config.in, configure: Regenerated.
9107 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9108 defined use canonicalize_file_name.
9110 2002-02-23 Michael Chastain <mec@shout.net>
9112 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9114 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9116 * README: Remove references to cygnus.com.
9117 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9118 dot com'' form. Remove references to cygnus.com and sourceware.
9120 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9122 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9123 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9124 1003.1-2001 no longer allows "head -1".
9125 * gdb/Makefile.in (version.c): Likewise.
9126 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9127 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9128 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9130 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9132 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9133 * command.h (cmd_cfunc_eq): Declare.
9134 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9136 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9137 ``struct cmd_list_element *''.
9138 * cli/cli-cmds.c (is_complete_command): Update. Use
9140 * top.c (execute_command): Pass the command to
9141 is_complete_command.
9142 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9144 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9146 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9147 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9148 architecture defines.
9149 * s390-tdep.c (s390_gdbarch_init): Likewise.
9151 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9153 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9154 (arm_linux_push_arguments): Likewise.
9155 (arm_linux_init_abi): Register them. Also register linux-specific
9157 (find_minsym_and_objfile): Use strcmp, not STREQ.
9158 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9159 (arm_linux_call_dummy_words): Delete declaration.
9160 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9161 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9163 (LOWEST_PC): Delete.
9165 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9167 * maint.c (print_section_info): Do not prepend `0x' to filepos
9168 output, it will be handled by local_hex_string_custom.
9170 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9172 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9173 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9174 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9176 2002-02-22 Jim Blandy <jimb@redhat.com>
9178 Indicate that the bcache functions don't change the strings
9180 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9181 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9183 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9185 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9187 2002-02-21 Christopher Faylor <cgf@redhat.com>
9189 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9190 find the complete path to a loaded DLL.
9192 2002-02-21 Fred Fish <fnf@redhat.com>
9194 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9195 that marks the end of the range of a function, enter a line number
9196 entry that has a line number of zero and a PC offset that matches
9197 the end of the function. This starts a range of PC's for which no
9198 line number information is known.
9199 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9200 PC's for which no line number info is found (line number is zero)
9201 then we didn't find any valid line information.
9202 * symtab.h: Document use of zero line number entry.
9204 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9206 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9207 (have_ptrace_getvrregs): Define for run time checks.
9208 (gdb_vrregset_t): New type for Altivec register handling.
9209 (fetch_register, store_register): Fetch/store altivec register
9211 (fetch_altivec_register, store_altivec_register): New functions.
9212 (supply_vrregset, fill_vrregset): New functions.
9213 (fetch_altivec_registers, store_altivec_registers): New functions.
9214 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9217 2002-02-21 Jiri Smid <smid@suse.cz>
9219 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9221 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9223 * Makefile.in (armnbsd-nat.o): Update dependencies.
9224 * armnbsd-nat.c (supply_gregset): New function. Common code to
9225 supply the integer register set.
9226 (supply_fparegset): New function. Similar for FPA registers.
9227 (fetch_regs, fetch_fp_regs): Use them.
9228 (fetch_core_registers): Likewise.
9229 (fetch_elfcore_registers): New function.
9230 (arm_netbsd_elfcore_fns): New core-file type specification.
9231 (_initialize_arm_netbsd_nat): Register it.
9233 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9235 * armnbsd-nat.c: Include gdbcore.h.
9236 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9237 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9238 'void' to declaration, to shut up ARI.
9239 (fetch_core_registers): Make static. Rewrite using supply_register.
9240 (arm_netbsd_core_fns): New core-file type specification.
9241 (_initialize_arm_netbsd_nat): New function.
9243 2002-02-21 Christopher Faylor <cgf@redhat.com>
9245 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9248 2002-02-20 Christopher Faylor <cgf@redhat.com>
9250 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9253 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9255 * jv-exp.y (parse_number): Change type of implicit longs
9256 to builtin_type_uint64.
9258 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9260 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9261 to be an integer instead of a `union wait'.
9263 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9265 * mips-linux-nat.c: Call the operating system GNU/Linux.
9266 * mips-linux-tdep.c: Likewise.
9267 * mips-tdep.c: Likewise.
9269 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9272 * jv-exp.y (parse_number): Handle 64-bit integers.
9274 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9276 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9277 AC_STDC_HEADERS to AC_HEADER_STDC.
9278 * gdbserver/configure: Regenerated.
9280 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9282 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9284 * sparc-tdep.c (get_longjmp_target): Likewise.
9286 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9288 * News: Add news about ARM and Multi-arch. Mention the new target
9291 2002-02-19 Jim Blandy <jimb@redhat.com>
9293 * stabsread.c (error_type_complaint): Improve error message.
9295 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9297 * gdbserver/README: Update documentation.
9298 * gdbserver/configure.in: Update configury to match documentation.
9299 * gdbserver/Makefile.in: Likewise.
9300 * gdbserver/configure: Regenerated.
9301 * gdbserver/aclocal.m4: New file, generated by aclocal.
9302 * gdbserver/config.in: New file, generated by autoheader.
9304 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9306 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9309 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9311 * arm-tdep.h (enum arm_float_model): New enum.
9312 (struct gdbarch_tdep): Add fp_model.
9313 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9314 up floating-point conversions until we know the floating-point model
9315 in use by the inferior. Don't complain about being unable to
9316 determine the ABI of the inferior when we don't have one.
9317 (arm_extract_return_value): Support different floating-point models.
9318 (arm_store_return_value): Likewise.
9319 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9321 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9323 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9325 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9326 of ``current_gdbarch''.
9328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9330 * armnbsd-nat.c : ANSIfy all function declarations.
9331 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9332 (fetch_inferior_registers): Re-implement in terms of above.
9333 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9334 (store_inferior_registers): Re-implement in terms of above.
9336 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9338 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9340 * arm-linux-tdep.c: Likewise.
9341 * config/arm/tm-linux.h: Likewise.
9343 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9345 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9346 * config/arm/nbsd.mt (TM_FILE): Delete.
9347 * config/arm/tm-nbsd.h: Delete.
9349 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9351 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9352 Initialize CALL_DUMMY_LENGTH.
9354 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9356 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9358 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9359 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9360 defines one thing and that is incorrect for this port.
9361 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9363 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9365 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9367 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9369 * win32-nat.c (display_selector): New function. Displays information
9370 about the information returned by GetThreadSelectorEntry API function.
9371 (display_selectors): New function. Displays the infomation of
9372 the selector given as argument, or of CS, DS ans FS selectors
9373 if no argument is given.
9374 ( _initialize_inftarg): Add "w32" as info prefix command.
9375 Add "info w32 selector" as command calling display_selectors.
9377 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9379 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9380 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9383 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9385 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9387 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9389 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9390 (arm_fix_call_dummy): Call it.
9391 (arm_call_dummy_breakpoint_offset): Delete.
9392 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9393 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9395 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9397 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9398 Default to func_frame_chain_valid.
9399 * gdbarch.h, gdbarch.c: Re-generate.
9400 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9402 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9404 * ppc-linux-nat.c: Update copyright.
9405 (fetch_register, store_register): Add tid parameter, don't compute
9407 (fetch_ppc_registers, store_ppc_registers): Add tid
9408 parameter. Pass it along to callees.
9409 (fetch_inferior_registers, store_inferior_registers): Compute tid
9410 here, and pass it to calleed functions.
9411 (fill_gregset, supply_fpregset): Clean up formatting.
9413 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9415 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9416 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9418 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9420 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9421 * gdbarch.c gdbarch.h: Regenerate.
9422 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9424 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9425 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9426 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9428 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9429 * arm-tdep.c (arm_get_longjmp_target): New function.
9430 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9431 this to a positive value register arm_get_longjmp_target as the
9433 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9434 (arm_linux_init_abi): Set up longjmp description in tdep.
9435 * armnbsd-nat.c (get_longjmp_target): Delete.
9436 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9437 description in tdep.
9438 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9439 (get_longjmp_target): Delete declaration.
9440 (GET_LONGJMP_TARGET): Delete.
9441 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9442 (GET_LONGJMP_TARGET): Delete.
9444 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9446 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9447 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9448 of ``current_gdbarch''.
9450 2002-02-17 Tom Tromey <tromey@redhat.com>
9452 * cli/cli-cmds.c (compare_strings): New function.
9453 (complete_command): Only print each unique item once.
9454 * completer.h (complete_line): Declare.
9455 * completer.c (complete_line): New function.
9456 (line_completion_function): Use it.
9458 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9460 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9461 * gdbarch.h, gdbarch.c: Re-generate.
9463 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9465 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9467 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9469 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9470 * valops.c (value_arg_coerce): Don't take the address of a reference
9471 to convert an argument to a reference.
9473 2002-02-15 Christopher Faylor <cgf@redhat.com>
9475 * win32-nat.c (get_image_name): New function.
9476 (handle_load_dll): Use get_image_name function.
9477 (get_child_debug_event): Avoid registering debug events until possibly
9478 execed process is started.
9479 (child_create_inferior): Allow invocation via shell so that command
9480 line redirection, etc. works ok.
9481 (_initialize_inftarg): Add new command: "set shell" to control whether
9482 a shell is used to start a process.
9484 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9486 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9487 instead of find_register_by_number.
9488 (cannot_store_register): Likewise.
9490 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9492 * dwarf2read.c: Replace fprintf (stderr, ...) by
9493 fprintf_unfiltered (gdb_stderr, ...).
9495 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9497 * gdbserver/gdbserver.1: Document --attach.
9499 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9501 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9503 * arm-tdep.c (arm_default_arm_le_breakpoint)
9504 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9505 (arm_default_thumb_be_breakpoint): New. Initialize them from
9506 traditional breakpoint defines.
9507 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9508 (arm_gdbarch_init): Initialize new breakpoint variables.
9509 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9510 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9511 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9512 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9514 (arm_netbsd_init_abi_common): ... here; new function.
9515 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9516 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9517 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9518 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9520 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9522 * arm-tdep.h (enum arm_abi): New enum.
9523 (struct gdbarch_tdep): New structure.
9524 (LOWEST_PC): Provide a default.
9525 (arm_gdbarch_register_os_abi): Declare new function.
9526 * arm-tdep.c (arm_abi_names): New array.
9527 (process_note_abi_tag_sections): New function.
9528 (get_elfosabi): New function.
9529 (arm_gdbarch_register_os_abi): New function.
9530 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9531 support for that ABI has been built in, then call the appropriate
9532 configuration routine. Use gdbarch_num_regs() to get the number
9534 (arm_dump_tdep): New function.
9535 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9536 place-holder functions.
9537 (_initialize_arm_tdep): Register them.
9538 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9540 * armnbsd-tdep.c: New file.
9541 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9542 * config/arm/nbsd.mt (TDEPFILES): Add it.
9543 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9545 * armnbsd-nat.c: Include regcache.h.
9546 * Makefile.in (armnbsd-nat.o): Update dependency list.
9548 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9550 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9552 * gdbserver/Makefile.in: Fix typos in target rules.
9554 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9556 Fix part of PR gdb/267.
9557 * linespec.c (find_methods): Handle constructors specially for now.
9559 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9561 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9563 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9564 standard_coerce_float_to_double().
9566 2002-02-14 Christopher Faylor <cgf@redhat.com>
9568 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9571 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9573 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9574 find_variant_by_name, because it confuses the multiarch
9575 framework. Return NULL if there isn't an architecture with the
9576 user supplied name, instead of forcing a different one without
9577 recording the change with the multiarch machinery.
9578 (find_variant_by_name): Delete.
9580 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9582 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9583 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9585 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9587 * stack.c (print_frame_info_base): When calling
9588 print_frame_info_listing_hook, set current_source_symtab.
9590 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9592 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9593 and remove unused $(INCLUDE_DIR).
9594 Add regcache.c to OBS.
9595 Add generated register protocol files to clean target.
9596 Update dependencies for new objects, obsolete old target code.
9598 * gdbserver/linux-low.c: Remove all platform-specific code to
9599 new files. Remove various dead code. Update to use regcache
9601 * gdbserver/remote-utils.c (fromhex): Add return statement
9603 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9605 (input_interrupt): Add integer parameter to match prototype
9606 of a signal handler.
9607 (outreg): Use register_data ().
9608 (prepare_resume_reply): Use gdbserver_expedite_regs.
9609 * gdbserver/server.c (main): Dynamically allocate own_buf because
9610 PBUFSIZ is no longer constant. Use registers_to_string () and
9611 registers_from_string ().
9612 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9613 for error (), fatal (), and warning (). Update definition of
9614 PBUFSIZ to use regcache functionality. Add include guard.
9615 * gdbserver/utils.c (fatal): Add missing ``const''.
9616 (warning): New function.
9618 * regformats/regdat.sh: Include "regcache.h" in generated files.
9619 Provide init_registers () function.
9620 * regformats/regdef.h: Add prototype for set_register_cache ().
9623 * gdbserver/linux-arm-low.c: New file.
9624 * gdbserver/linux-i386-low.c: New file.
9625 * gdbserver/linux-ia64-low.c: New file.
9626 * gdbserver/linux-m68k-low.c: New file.
9627 * gdbserver/linux-mips-low.c: New file.
9628 * gdbserver/linux-ppc-low.c: New file.
9629 * gdbserver/linux-sh-low.c: New file.
9631 * gdbserver/regcache.c: New file.
9632 * gdbserver/regcache.h: New file.
9634 * gdbserver/low-linux.c: Removed obsolete file.
9636 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9638 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9639 * config/i386/linux.mt: Likewise.
9640 * config/ia64/linux.mt: Likewise.
9641 * config/m68k/linux.mh: Likewise.
9642 * config/powerpc/linux.mh: Likewise.
9643 * config/mips/linux.mt: Likewise.
9645 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9647 * config/i386/i386lynx.mh: Mark gdbserver variables
9648 as (currently) obsolete for this target.
9649 * config/i386/nbsd.mt: Likewise.
9650 * config/i386/nbsdelf.mt: Likewise.
9651 * config/m32r/m32r.mt: Likewise.
9652 * config/m68k/m68klynx.mh: Likewise.
9653 * config/m68k/nbsd.mt: Likewise.
9654 * config/m68k/sun3os4.mh: Likewise.
9655 * config/mips/vr5000.mt: Likewise.
9656 * config/ns32k/nbsd.mt: Likewise.
9657 * config/pa/hppabsd.mh: Likewise.
9658 * config/pa/hppaosf.mh: Likewise.
9659 * config/powerpc/nbsd.mt: Likewise.
9660 * config/rs6000/rs6000lynx.mh: Likewise.
9661 * config/s390/s390.mt: Likewise.
9662 * config/s390/s390x.mt: Likewise.
9663 * config/sparc/sparclynx.mh: Likewise.
9664 * config/sparc/sun4os4.mh: Likewise.
9665 * config/i386/x86-64linux.mt: Likewise.
9666 * config/sparc/linux.mh: Likewise.
9668 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9670 * configure.tgt: Configure gdbserver only for known working
9671 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9672 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9673 SUBDIRS if it is configured. Update comment for ${nativefile}.
9674 * configure: Regenerated.
9676 2002-02-13 Michael Snyder <msnyder@redhat.com>
9678 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9680 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9681 (default_gcore_mach): Just return 0, work around a problem in bfd.
9682 (default_gcore_target): OK to return NULL if exec_bfd is null.
9683 (make_mem_sec): Use a cast, avoid a warning.
9685 * procfs.c (find_memory_regions_callback): Use a cast instead of
9686 calling host_pointer_to_address (which complains if
9687 sizeof (host pointer) != sizeof (target pointer)).
9688 (procfs_make_note_section): Avoid overflow in psargs string.
9690 * procfs.c (procfs_make_note_section): Make the default
9691 implementation return an error.
9693 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9695 * procfs.c (procfs_make_note_section): Provide a default definition
9696 (for alpha-dec-osf4.0f). Fix typos.
9698 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9700 * linux-proc.c: Add include of regcache.h.
9701 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9703 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9705 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9706 * memattr.c (create_mem_region): Disallow useless empty region.
9707 Regions are half-open intervals, so allow [A..B) [B..C) as
9710 2002-02-13 Michael Chastain <mec@shout.net>
9712 * defs.h: Kill CONST_PTR.
9713 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9714 * c-lang.c (c_builtin_types): Likewise.
9715 * ch-lang.c (ch_builtin_types): Likewise.
9716 * f-lang.c (f_builtin_types): Likewise.
9717 * language.c (unknown_builtin_types): Likewise.
9718 * m2-lang.c (m2_builtin_types): Likewise.
9719 * p-lang.c (pascal_builtin_types): Likewise.
9720 * scm-lang.c (c_builtin_types): Likewise.
9722 2002-02-13 Keith Seitz <keiths@redhat.com>
9724 * arm-tdep.h (arm_get_next_pc): Add declaration.
9726 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9728 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9729 with other related struct-returning functions.
9730 (arm_extract_struct_value_address): New function.
9731 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9732 initialize float_format, double_format and long_double_format as
9733 appropriate to the endianness of the target.
9734 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9735 (arm_use_struct_convention): Delete declaration.
9736 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9738 2002-02-13 Keith Seitz <keiths@redhat.com>
9740 * defs.h (core_addr_to_string_nz): New function.
9742 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9744 Apply missing bits of 2002-01-15 patch.
9745 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9746 (fill_fpregset): Use i387_fill_fsave.
9748 2002-02-12 Keith Seitz <keiths@redhat.com>
9750 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9751 (core_addr_to_string_nz): New function.
9753 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9755 * arm-linux-nat.c: Really include arm-tdep.h.
9756 * config/arm/tm-linux.h (struct type, struct value): Declare.
9758 2002-02-11 Michael Snyder <msnyder@redhat.com>
9760 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9761 (gcore section): Ifdef for Solaris and Unixware only.
9762 (procfs_do_thread_registers): Unixware needs one lwpstatus
9763 per thread (not one prstatus or pstatus).
9764 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9765 not over all gdb threads. For unixware, call elfcore_write_pstatus
9766 once before iterating over threads.
9768 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9770 * arm-tdep.h: New file.
9771 * arm-tdep.c: Include arm-tdep.h.
9772 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9773 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9774 (arm_print_float_info, arm_register_type, convert_to_extended)
9775 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9776 (arm_extract_return_value, arm_register_name): Make static.
9777 (arm_software_single_step): Similarly. Fix types in declaration.
9778 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9779 (arm_store_return_value, arm_store_struct_return): New functions.
9780 (arm_gdbarch_init): Register the above functions. Also register
9781 call_dummy_start_offset, sizeof_call_dummy_words,
9782 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9783 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9784 max_register_virtual_size, register_size. Set up
9785 prologue_cache.saved_regs here, rather than ...
9786 (_initialize_arm_tdep): ... here.
9787 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9789 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9790 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9791 (arm_print_float_info, arm_register_type, convert_to_extended)
9792 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9793 (arm_extract_return_value, arm_register_name): Delete declarations.
9794 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9795 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9796 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9797 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9798 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9799 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9800 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9801 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9802 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9803 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9804 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9805 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9807 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9808 * remote-rdi.c remote-rdp.c: Likewise.
9809 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9810 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9811 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9814 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9815 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9816 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9817 from non-ARM_ prefixed definitions.
9818 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9820 * remote-rdi.c remote-rdp.c: Likewise.
9821 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9823 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9825 * arm-tdep.c (arm_frameless_function_invocation)
9826 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9827 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9828 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9829 (arm_pop_frame, arm_get_next_pc): Make static.
9830 (arm_gdbarch_init): Register above in gdbarch structure.
9831 (arm_read_fp): Renamed from arm_target_read_fp.
9832 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9833 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9834 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9835 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9836 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9837 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9838 (arm_pc_is_thumb_dummy): Delete declarations.
9839 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9840 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9841 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9842 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9844 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9846 * symtab.c (compare_search_syms): New function.
9847 (sort_search_symbols): New function.
9848 (search_symbols): Sort symbols after searching rather than
9851 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9853 * NEWS: Linux -> GNU/Linux.
9855 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9857 * gdbarch.sh: For for level one methods, disallow a definition
9858 when partially multi-arched. Add comments explaining rationale.
9859 * gdbarch.h: Re-generate.
9861 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9863 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9866 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9868 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9870 * gdbarch.c: Re-generate.
9872 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9874 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9875 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9878 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9880 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9882 (PUSH_ARGUMENTS): Switch to using predefault.
9883 * gdbarch.c: Regenerate.
9885 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9887 * valops.c (PUSH_ARGUMENTS): Delete definition.
9888 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9889 partial. Default to default_push_arguments.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9892 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9894 * defs.h (throw_exception): Rename return_to_top_level. Update
9896 * utils.c (error_stream, internal_verror, quit): Ditto.
9897 * top.c (throw_exception, catcher): Ditto.
9898 * sparclet-rom.c (sparclet_load): Ditto.
9899 * remote.c (interrupt_query, minitelnet): Ditto.
9900 * remote-sds.c (interrupt_query): Ditto.
9901 * remote-mips.c (mips_error, mips_kill): Ditto.
9902 * ocd.c (interrupt_query): Ditto.
9903 * monitor.c (monitor_interrupt_query): Ditto.
9904 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9905 * target.h: Update comment.
9907 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9909 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9911 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9912 default_double_format.
9913 * gdbarch.h, gdbarch.c: Re-generate.
9914 * findvar.c (floatformat_unknown): Delete variable definition.
9915 * doublest.h (floatformat_unknown): Delete variable declaration.
9917 2002-02-09 Jim Blandy <jimb@redhat.com>
9919 * stabsread.c (read_type): Add code to parse Sun's syntax for
9920 prototyped function types.
9922 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9924 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9925 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9927 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9929 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9930 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9931 now _initialize_xcoffsolib gets called again and overrides the
9932 commands from solib.c in a native configuration.
9934 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9936 * doublest.c (store_typed_floating): Don't try to return a value.
9939 2002-02-08 Jim Blandy <jimb@redhat.com>
9941 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9942 is prototyped and has no arguments, print its argument list as
9945 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9947 * MAINTAINERS (write-after-approval): Add myself.
9948 (paper-trail): I've escaped!
9950 2002-02-08 Christopher Faylor <cgf@redhat.com>
9952 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9954 (_initialize_check_for_gdb_ini): Ditto.
9956 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9958 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9959 xaprintf -> xasprintf.
9961 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9963 * win32-nat.c: Remove use of printf and sprintf functions.
9965 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9967 * arm-tdep.c (arm_frame_chain_valid): Make static.
9968 (arm_push_arguments): Likewise.
9969 (arm_gdbarch_init): New function.
9970 (_initialize_arm_tdep): Call it.
9971 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9972 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9973 (FRAME_CHAIN_VALID): Delete.
9974 (arm_frame_chain_valid): Delete declaration.
9975 (PUSH_ARGUMENTS): Delete.
9976 (arm_push_arguments): Delete declaration.
9977 (CALL_DUMMY_P): Delete.
9979 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9980 Corinna Vinschen <vinschen@redhat.com>
9982 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9983 on builtin float types.
9985 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9987 * utils.c: Include <curses.h> before "bfd.h".
9988 * tui/tui-hooks.c: Likewise.
9989 * tui/tui.c: Likewise.
9990 * tui/tuiCommand.c: Likewise.
9991 * tui/tuiData.c: Likewise.
9992 * tui/tuiDataWin.c: Likewise.
9993 * tui/tuiDisassem.c: Likewise.
9994 * tui/tuiGeneralWin.c: Likewise.
9995 * tui/tuiIO.c: Likewise.
9996 * tui/tuiLayout.c: Likewise.
9997 * tui/tuiRegs.c: Likewise.
9998 * tui/tuiSource.c: Likewise.
9999 * tui/tuiSourceWin.c: Likewise.
10000 * tui/tuiStack.c: Likewise.
10001 * tui/tuiWin.c: Likewise.
10003 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10005 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10006 to include space for pseudoregs as well. Update loops accordingly.
10007 (sh_fp_frame_init_saved_regs): Ditto.
10008 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10010 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10012 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10013 Add Richard Earnshaw to Arm maintainers.
10015 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10017 * defs.h (warning_begin): Delete declaration.
10019 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10022 2002-02-07 Michael Snyder <msnyder@redhat.com>
10024 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10025 Logic bug, remove misplaced else.
10027 2002-02-07 Klee Dienes <klee@apple.com>
10029 * fork-inferior.c (fork_inferior): Add '!' to the list of
10030 characters that need to be quoted when building a string for the
10031 shell. Quote '!' specifically with a backslash, since CSH chokes
10032 when trying to evaluate "str!str".
10034 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10036 * rdi-share/host.h: Only provide a typedef for bool if it is not
10039 2002-02-04 Michael Snyder <msnyder@redhat.com>
10041 * breakpoint.h (enum bptype): Add new overlay event bp type.
10042 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10044 * breakpoint.c (create_internal_breakpoint): New function.
10045 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10046 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10047 (create_thread_event_breakpoint): Ditto.
10048 (create_solib_event_breakpoint): Ditto.
10049 (create_overlay_event_breakpoint): New function.
10050 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10051 (update_breakpoints_after_exec): Delete and re-initialize
10052 overlay event breakpoints after an exec. Add FIXME comment
10053 about longjmp breakpoint.
10054 (print_it_typical): Ignore overlay event breakpoints.
10055 (print_one_breakpoint): Ditto.
10057 (bpstat_what): Do not stop for overlay event breakpoints.
10058 (delete_breakpoint): Don't delete overlay event breakpoints.
10059 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10060 (breakpoint_re_set): Re-create overlay event breakpoint.
10062 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10063 (overlay_manual_command): Disable overlay breakpoints.
10064 (overlay_off_command): Disable overlay breakpoints.
10066 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10068 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10069 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10070 to here from config/tm-arm.h.
10071 (coff_sym_is_thumb): Make static.
10072 (arm_elf_make_msymbol_special): New function.
10073 (arm_coff_make_msymbol_special): New function.
10074 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10075 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10076 (coff_sym_is_thumb): Delete declaration.
10077 (arm_elf_make_msymbol_special): Declare.
10078 (arm_coff_make_msymbol_special): Declare.
10079 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10080 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10082 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10084 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10086 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10088 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10089 * gdbarch.c gdbarch.h: Regenerate.
10090 * arch-utils.c (default_print_float_info): New function.
10091 * arch-utils.h (default_print_float_info): Prototype it.
10092 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10093 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10094 (PRINT_FLOAT_INFO): Document it.
10096 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10097 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10098 (PRINT_FLOAT_INFO): Define.
10100 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10102 * win32-nat.c (_initialize_check_for_gdb_ini):
10103 Add typecast to sprintf argument to suppress a warning.
10105 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10107 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10108 to allow easier handling of pass state.
10109 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10110 that gives exception name and address.
10111 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10112 and set last_sig value to ourstatus->value.sig. Some missing
10114 (child_continue): Correctly report continue_status.
10115 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10116 TARGET_SIGNAL_0 (new default value).
10117 (child_resume): consider sig argument passed to decide if
10118 the exception should be passed to debuggee or not.
10120 2002-02-05 Michael Snyder <msnyder@redhat.com>
10122 * regcache.c (fetch_register): Call target_fetch_register
10123 only if we don't call FETCH_PSEUDO_REGISTER.
10124 (store_register): Call target_store_register only if we
10125 don't call STORE_PSEUDO_REGISTER.
10127 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10129 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10130 ELF_MAKE_MSYMBOL_SPECIAL.
10131 * gdbarch.c, gdbarch.h: Regenerate.
10132 * arch-utils.c (default_make_msymbol_special): New function.
10133 * arch-utils.h (default_make_msymbol_special): Export.
10134 * elfread.c (elf_symtab_read): Compile use of
10135 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10137 * coffread.c (coff_symtab_read): Ditto, for
10138 COFF_MAKE_MSYMBOL_SPECIAL.
10140 2002-02-05 Jim Blandy <jimb@redhat.com>
10142 * solib-svr4.c (svr4_truncate_ptr): New function.
10143 (svr4_relocate_section_addresses): Do the address arithmetic with
10144 the appropriate truncation for target addresses, even when
10145 CORE_ADDR is larger than a target address.
10147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10149 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10152 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10154 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10159 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10161 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10163 * gdbserver/linux-low.c: Remove unused include files.
10165 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10167 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10168 (read_inferior_memory): Use it.
10169 (write_inferior_memory): Likewise.
10171 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10173 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10174 grubbing through sys_errlist.
10176 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10178 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10180 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10181 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10183 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10185 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10186 (do_sfunc, set_cmd_sfunc): New functions.
10188 * command.h (struct cmd_list_element): Add field func.
10189 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10190 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10191 * cli/cli-decode.h: Ditto.
10193 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10194 (help_all, help_cmd_list): Ditto.
10195 (find_cmd, complete_on_cmdlist): Ditto.
10196 * top.c (execute_command): Ditto.
10198 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10201 * infcmd.c (notice_args_read): Fix function signature.
10203 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10204 * cli/cli-decode.c (add_set_cmd): Ditto.
10205 * utils.c (initialize_utils): Ditto.
10206 * maint.c (_initialize_maint_cmds): Ditto.
10207 * infrun.c (_initialize_infrun): Ditto.
10208 * demangle.c (_initialize_demangler): Ditto.
10209 * remote.c (add_packet_config_cmd): Ditto.
10210 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10211 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10212 * proc-api.c (_initialize_proc_api): Ditto.
10213 * kod.c (_initialize_kod): Ditto.
10214 * valprint.c (_initialize_valprint): Ditto.
10215 * top.c (init_main): Ditto.
10216 * infcmd.c (_initialize_infcmd): Ditto.
10217 * corefile.c (_initialize_core): Ditto.
10218 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10219 * arch-utils.c (initialize_current_architecture): Ditto.
10220 (_initialize_gdbarch_utils): Ditto.
10221 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10223 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10224 * wince.c (_initialize_inftarg): Ditto.
10225 * symfile.c (_initialize_symfile): Ditto.
10226 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10227 * language.c (_initialize_language): Ditto.
10228 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10230 2002-02-04 Michael Snyder <msnyder@redhat.com>
10232 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10234 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10236 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10237 Add rules for building the register data files.
10239 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10241 * regformats/regdat.sh: Add braces to the definition of
10242 expedite_regs_${arch}.
10244 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10246 * regformats/regdef.h (struct reg): Add comment describing the
10247 requirements for offset and size fields.
10249 2002-02-04 Andreas Schwab <schwab@suse.de>
10251 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10252 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10254 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10256 * gdbarch.sh (copyright): Update years in generated header.
10257 (SMASH_TEXT_ADDRESS): Add rule.
10258 * gdbarch.h, gdbarch.c: Re-generate.
10259 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10260 * dbxread.c: Likewise.
10261 * dwarfread.c: Likewise.
10262 * elfread.c: Likewise.
10263 * somread.c: Likewise.
10265 * arm-tdep.c (arm_smash_text_address): New function.
10266 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10268 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10270 Add support for hardware watchpoints on win32 native.
10271 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10272 CONTEXT_DEBUG_REGISTERS.
10273 (dr variable): New variable. Static array containing a local copy
10274 of debug registers.
10275 (debug_registers_changed): New variable. Reflects when debug registers
10276 are changed and need to be written to inferior.
10277 (debug_registers_used): New variable. Reflects when any debug register
10278 was set, used when new threads are created.
10279 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10281 (thread_rec): Set dr array if id is the thread of current_event .
10282 (child_continue, child_resume): Change the debug registers for all
10283 threads if debug_registers_changed.
10284 (child_add_thread): Change the debug registers if debug_registers_used.
10285 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10286 Link nm.h to new nm-cygwin.h file.
10287 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10288 of hardware registers.
10290 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10292 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10293 Restore behavour broken by 2002-01-20 Andrew Cagney
10294 <ac131313@redhat.com> IEEE_FLOAT removal.
10296 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10298 * c-valprint.c (c_val_print): Pass a proper valaddr to
10299 cp_print_class_method.
10300 * valops.c (search_struct_method): If there is only one method
10301 and args is NULL, return that method.
10303 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10305 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10306 accessing tag_name directly.
10308 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10310 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10311 of accessing tag_name directly.
10313 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10316 * gdbtypes.c (replace_type): New function.
10317 * gdbtypes.h (replace_type): Add prototype.
10318 * stabsread.c (read_type): Use replace_type.
10320 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10322 * Makefile.in (memattr.o): Add missing dependencies rule.
10324 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10326 * breakpoint.c (break_at_finish_command): Really export.
10327 (break_at_finish_at_depth_command): Ditto.
10328 (tbreak_at_finish_command): Ditto.
10329 * hppa-tdep.c: Include completer.h.
10330 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10331 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10333 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10335 * utils.c (do_write): New function.
10336 (error_stream): Rewrite combining the code from error_begin and
10338 (verror): Rewrite using error_stream.
10339 (error_begin): Delete function.
10341 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10343 * utils.c (error_begin): Make static.
10344 * defs.h (error_begin): Delete declaration.
10346 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10347 (decode_line_1): Use cplusplus_error instead of error_begin,
10348 cplusplus_hint and return_to_top_level.
10349 * coffread.c (coff_symfile_read): Use error instead of error_begin
10350 and return_to_top_level.
10351 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10353 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10355 * language.h (type_error, range_error): Make string parameter
10357 * language.c (warning_pre_print): Delete extern declaration.
10358 * dwarfread.c (warning_pre_print): Ditto.
10359 * language.c (type_error, range_error): Rewrite to use verror and
10360 vwarning instead of warning_begin.
10362 2002-02-01 Michael Snyder <msnyder@redhat.com>
10364 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10365 (set_ignore_count): Move misplaced comment back where it belongs.
10367 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10369 * command.h (NO_FUNCTION): Delete macro.
10370 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10371 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10372 * tracepoint.c (_initialize_tracepoint): Ditto.
10373 * cli/cli-decode.c (add_set_cmd): Ditto.
10374 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10376 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10378 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10379 Update ``this'' pointer when calling virtual functions.
10381 2002-02-01 Michael Snyder <msnyder@redhat.com>
10383 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10384 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10386 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10388 * regformats/reg-arm.dat: New file.
10389 * regformats/reg-i386.dat: New file.
10390 * regformats/reg-ia64.dat: New file.
10391 * regformats/reg-m68k.dat: New file.
10392 * regformats/reg-mips.dat: New file.
10393 * regformats/reg-ppc.dat: New file.
10394 * regformats/reg-sh.dat: New file.
10395 * regformats/regdef.h: New file.
10396 * regformats/regdat.sh: New file.
10398 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10400 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10401 (arm_frame_args_address, arm_frame_locals_address): New functions.
10402 (arm_frame_num_args): New function.
10403 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10404 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10405 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10407 2002-01-31 Michael Snyder <msnyder@redhat.com>
10409 * breakpoint.c (break_at_finish_command): Export.
10410 (break_at_finish_at_depth_command): Export.
10411 (tbreak_at_finish_command): Export.
10412 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10413 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10414 "txbreak" commands, which are HPPA specific.
10416 * printcmd.c (disassemble_command): Remove an ancient
10417 artifact of an old merge.
10419 * symfile.h (enum overlay_debugging_state):
10420 Define enum constant values for overlay mode.
10421 * symfile.c (overlay_debugging): Use enums instead of literals.
10422 (overlay_is_mapped, overlay_auto_command,
10423 overlay_manual_command): Ditto.
10425 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10426 breakpoint_here_p, breakpoint_inserted_here_p,
10427 breakpoint_thread_match, bpstat_stop_status,
10428 describe_other_breakpoints, check_duplicates, clear_command):
10429 Coding standard fixes.
10431 * target.c (target_xfer_memory): Add spaces, coding standard.
10432 (do_xfer_memory): Add missing line to trust-readonly
10433 code: check bfd SEC_READONLY flag for section.
10435 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10437 * PROBLEMS: Fix typo, 5.1->5.1.1.
10439 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10441 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10442 data symbols, since we search based on textlow and texthigh.
10443 (find_pc_sect_symtab): Likewise.
10445 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10447 * defs.h (vwarning): Declare.
10448 * utils.c (vwarning): New function.
10449 (warning): Call vwarning.
10450 (warning_begin): Delete function.
10452 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10453 the warning message.
10454 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10457 2002-01-30 Michael Snyder <msnyder@redhat.com>
10459 * NEWS: Mention "set trust-readonly-sections" command.
10460 Mention generate-core-file command.
10462 2002-01-15 Michael Snyder <msnyder@redhat.com>
10464 * target.c: New command, "set trust-readonly-sections on".
10465 (do_xfer_memory): Honor the suggestion to trust readonly sections
10466 by reading them from the object file instead of from the target.
10467 (initialize_targets): Register command "set trust-readonly-sections".
10469 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10471 * parse.c (target_map_name_to_register): Simplify, search regs and
10472 pseudo-regs using a single loop.
10474 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10476 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10478 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10480 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10481 * config/i386/i386v42mp.mh: Add i387-nat.o .
10482 * i386v4-nat.c: Include i387-nat.h.
10483 (supply_fpregset): Use i387_supply_fsave.
10484 (fill_fpregset): Use i387_fill_fsave.
10486 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10488 * arm-tdep.c (arm_call_dummy_words): Define.
10489 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10490 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10491 (CALL_DUMMY_WORDS): Define.
10492 (arm_call_dummy_words): Declare.
10493 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10494 (arm_linux_call_dummy_words): Declare.
10496 2002-01-30 Andreas Schwab <schwab@suse.de>
10498 * m68klinux-nat.c: Fix last change to use regcache_collect
10499 instead of referencing registers[] directly.
10501 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10503 * parse.c (target_map_name_to_register): Delete code wrapped in
10504 #ifdef REGISTER_NAME_ALIAS_HOOK.
10506 2002-01-28 Michael Snyder <msnyder@redhat.com>
10508 * regcache.c (legacy_read_register_gen): Need to be able to
10509 read pseudo-register as well as real register.
10510 (legacy_write_register_gen): Ditto.
10512 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10514 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10515 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10516 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10517 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10518 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10519 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10520 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10521 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10522 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10523 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10524 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10525 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10526 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10527 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10528 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10529 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10530 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10531 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10532 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10533 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10535 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10537 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10538 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10539 (initialize_current_architecture): Update target_byte_order using
10540 information from BFD.
10541 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10542 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10544 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10546 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10547 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10549 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10550 #ifdef INVALID_FLOAT.
10551 * infcmd.c (do_registers_info): Ditto.
10552 * values.c (unpack_double): Ditto. Add comment.
10554 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10555 already commented out.
10557 2002-01-26 Andreas Schwab <schwab@suse.de>
10559 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10560 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10561 registers and add support for PTRACE_GETREGS.
10563 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10565 GDB 5.1.1 released from 5.1 branch.
10566 * NEWS: Add 5.1.1 news.
10567 * README: Sync with 5.1 branch.
10569 2002-01-23 Fred Fish <fnf@redhat.com>
10571 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10572 stabstring on initial malloc. Reallocing will copy it for us,
10575 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10577 * Makefile.in (hpread_h): Delete.
10578 (HFILES_NO_SRCDIR): Remove hpread.h.
10579 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10580 (hpread.o): Update dependencies.
10581 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10583 * hp-psymtab-read.c: Remove file.
10584 * hp-symtab-read.c: Remove file.
10585 * hpread.h: Remove file.
10587 * hpread.c: Merge all contents of hp-psymtab-read.c,
10588 hp-symtab-read.c and hpread.h into this file, as it was prior to
10591 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10592 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10593 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10594 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10596 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10598 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10599 fill_gregset): Call gdbarch_tdep() just once, assign result to
10600 variable and use that, instead of calling the function several
10603 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10605 * configure.host: Accept sparcv9 as alias for sparc64.
10606 * configure.tgt: Likewise.
10608 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10610 * solib-aix5.c (build_so_list_from_mapfile)
10611 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10612 arguments is not reversed.
10613 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10614 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10616 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10618 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10619 modified version of obsolete sh_fetch_pseudo_register.
10620 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10621 (sh4_register_read): New function.
10622 (sh_pseudo_register_write): New function. Renamed and modified
10623 version of obsolete sh_store_pseudo_register.
10624 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10625 (sh4_register_write): New function.
10626 (sh_gdbarch_init): Remove setting of gdbarch function
10627 fetch_pseudo_register and store_pseudo_register. Remove setting of
10628 register_convert_to_raw, register_convert_to_virtual,
10629 register_convertible.
10630 (sh_sh4_register_convertible): Delete. No longer needed. All is
10631 taken care by architecture specific functions
10632 register_read/register_write.
10633 (sh_sh4_register_convert_to_virtual): Make static.
10634 (sh_sh4_register_convert_to_raw): Ditto.
10636 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10638 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10639 (floatformat_is_nan, floatformat_mantissa): Ditto.
10641 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10642 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10643 builtin_type_ieee_double_little,
10644 builtin_type_ieee_double_littlebyte_bigword,
10645 builtin_type_m68881_ext, builtin_type_i960_ext,
10646 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10647 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10648 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10649 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10651 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10653 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10654 parameter. Set frameless flag if it exists and depended of
10655 whether the scanned function is frameless or not.
10656 (xstormy16_skip_prologue): If function is frameless, return
10657 result of xstormy16_scan_prologue().
10658 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10661 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10663 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10664 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10665 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10666 sh_sh4_register_byte, sh_sh4_register_raw_size,
10667 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10668 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10669 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10670 sh_store_pseudo_register, sh_do_pseudo_register): Call
10671 gdbarch_tdep() just once, assign result to variable and use that,
10672 instead of calling the function several times.
10674 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10676 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10677 macros instead of LAST_FPU_CTRL_REGNUM.
10678 (store_register): Likewise.
10680 2002-01-21 Jim Blandy <jimb@redhat.com>
10682 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10683 is up-to-date before running the program, not just when a program
10686 2002-01-21 Fred Fish <fnf@redhat.com>
10688 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10689 when we have found all instructions we are looking for.
10691 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10693 * arm-tdep.c (arm_register_name): New function.
10694 (arm_registers_names): Make static.
10695 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10696 (arm_register_name): Declare.
10697 (REGISTER_NAME): Use it.
10699 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10700 Kevin Buettner <kevinb@redhat.com>
10702 Convert arm targets to new FRAME interface.
10703 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10704 (arm_frame_find_save_regs): Delete.
10705 (arm_frame_init_saved_regs): New.
10706 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10707 Allocate extra_info as required. Convert all uses of fsr.regs
10708 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10710 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10711 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10712 (check_prologue_cache, save_prologue_cache): Likewise.
10713 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10714 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10715 (FRAME_FIND_SAVED_REGS): Delete.
10716 (arm_frame_find_saved_regs): Delete prototype.
10717 (arm_frame_init_saved_regs): New prototype.
10718 (FRAME_INIT_SAVED_REGS): Define.
10720 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10722 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10724 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10726 From Jeff Law <law@redhat.com>:
10727 * infttrace.c: Include <sys/pstat.h>.
10728 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10729 exec file if the ttrace equivalent fails.
10731 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10733 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10734 (closeLogFile): Ditto.
10736 2002-01-20 Michael Chastain <mec@shout.net>
10738 * top.c (print_gdb_version): Bump copyright year to 2002.
10740 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10742 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10743 Zannoni and Eli Zaretskii.
10745 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10747 * buildsym.c: Update copyright years.
10748 * c-typeprint.c: Likewise.
10749 * dwarf2read.c: Likewise.
10750 * f-typeprint.c: Likewise.
10751 * gdbtypes.c: Likewise.
10752 * gdbtypes.h: Likewise.
10753 * hp-symtab-read.c: Likewise.
10754 * hpread.c: Likewise.
10755 * mdebugread.c: Likewise.
10756 * p-typeprint.c: Likewise.
10758 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10760 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10761 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10762 byte-order selectable.
10763 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10764 * arch-utils.c: Ditto.
10765 (set_endian): Ditto.
10766 (set_endian_from_file): Ditto.
10767 * gdbserver/low-sim.c (create_inferior): Ditto.
10768 * gdbarch.sh: Ditto.
10769 * gdbarch.h: Re-generate.
10770 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10771 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10772 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10773 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10774 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10775 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10776 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10777 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10779 * config/mips/tm-wince.h: Remove #undef of macro
10780 TARGET_BYTE_ORDER_SELECTABLE.
10781 * config/sh/tm-wince.h: Ditto.
10783 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10785 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10786 member function fields. Add accessor macro
10787 TYPE_FN_FIELD_ARTIFICIAL.
10788 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10789 * c-typeprint.c (c_type_print_base): Skip artificial member
10792 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10794 * f-typeprint.c: Delete unused function f_type_print_args.
10795 * p-typeprint.c: Delete unused function pascal_type_print_args.
10797 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10799 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10800 comment. Add ``artificial'' to ``union field_location''.
10802 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10804 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10805 * mdebugread.c (parse_symbol): Likewise.
10806 * stabsread.c (define_symbol): Likewise.
10807 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10808 initializing TYPE_FIELD_BITPOS to n (obsolete).
10809 (hpread_doc_function_type): Likewise.
10810 * hpread.c (hpread_function_type): Likewise.
10812 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10814 * configure.in (host_makefile_frag): Only require a host makefile
10815 fragment when a native build.
10816 * configure: Re-generate.
10818 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10820 * doublest.h (floatformat_from_type): Declare.
10821 * doublest.c (floatformat_from_type): New function.
10822 (convert_typed_floating): Use.
10824 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10825 call to function floatformat_from_type.
10827 * gdbarch.sh (IEEE_FLOAT): Delete.
10828 * gdbarch.h, gdbarch.c: Re-generate.
10829 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10830 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10831 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10832 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10833 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10834 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10835 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10836 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10837 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10838 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10839 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10840 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10842 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10843 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10844 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10845 * sh-tdep.c (sh_gdbarch_init): Ditto.
10846 * mips-tdep.c (mips_gdbarch_init): Ditto.
10847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10848 * cris-tdep.c (cris_gdbarch_init): Ditto.
10850 2002-01-20 Jiri Smid <smid@suse.cz>
10852 * configure.host, configure.tgt: Support x86-64.
10853 * NEWS: Note new target x86-64.
10855 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10856 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10857 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10858 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10859 x86-64-linux-nat.o): Fix dependencies.
10861 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10863 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10864 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10865 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10866 * config/sparc/xm-sun4os4.h: Delete file.
10867 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10869 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10871 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10872 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10873 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10874 * config/i386/i386lynx.mh (XM_FILE): Delete.
10875 * config/rs6000/xm-rs6000ly.h: Delete file.
10876 * config/sparc/xm-sparclynx.h: Delete file.
10877 * config/m68k/xm-m68klynx.h: Delete file.
10878 * config/i386/xm-i386lynx.h: Delete file.
10879 * config/xm-lynx.h: Delete file.
10880 * config/djgpp/fnchange.lst: Update.
10882 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10884 * alpha-tdep.c (alpha_register_byte): New function.
10885 (alpha_register_raw_size): Ditto.
10886 (alpha_register_virtual_size): Ditto.
10887 (alpha_skip_prologue_internal): Renamed from
10888 alpha_skip_prologue.
10889 (alpha_skip_prologue): New version that calls
10890 alpha_skip_prologue_internal.
10891 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10892 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10893 second argument from alpha_skip_prologue.
10894 (REGISTER_BYTE): Use alpha_register_byte.
10895 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10896 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10897 (FRAMELESS_FUNCTION_INVOCATION): Use
10898 generic_frameless_function_invocation_not.
10899 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10900 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10902 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10904 * config/mips/xm-news-mips.h: Delete file.
10905 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10907 * config/m88k/xm-m88k.h: Delete file.
10908 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10909 * config/m88k/xm-delta88v4.h: Ditto.
10910 * config/m88k/xm-delta88.h: Ditto.
10912 * config/alpha/xm-fbsd.h: Delete file.
10913 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10915 * config/sparc/xm-sparc.h: Delete file.
10916 * Makefile.in (xm-sun4os4.h): Delete dependency.
10917 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10918 * config/sparc/xm-sun4os4.h: Ditto.
10919 * config/sparc/xm-linux.h: Ditto.
10921 * config/i386/xm-windows.h: Delete file.
10923 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10925 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10926 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10928 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10930 * alpha-tdep.c (alpha_call_dummy_words): New.
10931 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10932 (CALL_DUMMY_P): Define.
10933 (CALL_DUMMY_WORDS): Define.
10934 (SIZEOF_CALL_DUMMY_WORDS): Define.
10936 2002-01-19 Per Bothner <per@bothner.com>
10938 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10939 isn't NULL, which can happen with some gcj-3.x-produced code.
10941 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10943 * alpha-tdep.c (alpha_register_virtual_type): New function.
10944 (alpha_init_frame_pc_first): Ditto.
10945 (alpha_fix_call_dummy): Ditto.
10946 (alpha_store_struct_return): Ditto.
10947 (alpha_extract_struct_value_address): Ditto.
10948 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10949 alpha_register_virtual_type.
10950 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10951 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10952 alpha_extract_struct_value_address.
10953 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10954 (INIT_FRAME_PC): Use init_frame_pc_noop.
10955 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10957 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10959 * i386gnu-nat.c: Include "i386-tdep.h".
10960 (fetch_fpregs): Simplify code dealing with uninitialized floating
10961 point states such that it doesn't require FP7_REGNUM.
10963 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10965 * alpha-tdep.c (frame_extra_info): New.
10966 (alpha_find_saved_regs): Make static. Use
10968 (alpha_frame_init_saved_regs): New function.
10969 (alpha_frame_saved_pc): Use frame->extra_info.
10970 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10971 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10972 (init_extra_frame_info): Rename to...
10973 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10974 (alpha_print_extra_frame_info): New function.
10975 (alpha_frame_locals_address): Ditto.
10976 (alpha_frame_args_address): Ditto.
10977 (alpha_pop_frame): Use frame->extra_info.
10978 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10979 alpha_frame_args_address.
10980 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10981 (alpha_find_saved_regs): Remove prototype.
10982 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10983 (EXTRA_FRAME_INFO): Remove.
10984 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10985 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10987 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10989 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10990 (alpha_cannot_fetch_register): Ditto.
10991 (alpha_cannot_store_register): Ditto.
10992 (alpha_register_convertible): Ditto.
10993 (alpha_use_struct_convention): Ditto.
10994 * config/alpha/tm-alpha.h: Update copyright years.
10995 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10996 (INNER_THAN): Use core_addr_lessthan.
10997 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10998 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10999 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11000 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11001 (FRAME_CHAIN): Remove unnecessary cast.
11003 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11005 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11008 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11010 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11011 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11012 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11013 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11014 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11015 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11016 * x86-64-linux-nat.c: Ditto.
11018 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11020 * alpha-tdep.c (alpha_register_name): New function.
11021 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11022 (REGISTER_NAME): Define.
11024 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11026 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11028 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11030 * alpha-tdep.c: Update copyright years.
11031 (alpha_next_pc): New function.
11032 (alpha_software_single_step): Ditto.
11033 * config/alpha/tm-alpha.h: Add prototype for
11034 alpha_software_single_step.
11036 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11038 * alphabsd-nat.c: Update copyright years.
11039 (fill_gregset): Use regcache_collect.
11040 (fill_fpregset): Likewise.
11041 (fetch_inferior_registers): Only fetch integer registers
11042 if requested to do so.
11043 (store_inferior_registers): Only store integer registers
11044 if requested to do so.
11046 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11048 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11049 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11050 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11051 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11052 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11053 * config/arm/linux.mh (XDEPFILES): Delete.
11054 * config/arm/nbsd.mh (XDEPFILES): Delete.
11055 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11056 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11057 * config/i386/i386m3.mh (XDEPFILES): Delete.
11058 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11059 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11060 * config/i386/fbsd.mh (XDEPFILES): Delete.
11061 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11062 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11063 * config/i386/i386v4.mh (XDEPFILES): Delete.
11064 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11065 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11066 * config/i386/i386aix.mh (XDEPFILES): Delete.
11067 * config/i386/go32.mh (XDEPFILES): Delete.
11068 * config/i386/cygwin.mh (XDEPFILES): Delete.
11069 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11070 * config/i386/i386mach.mh (XDEPFILES): Delete.
11071 * config/i386/i386v32.mh (XDEPFILES): Delete.
11072 * config/i386/linux.mh (XDEPFILES): Delete.
11073 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11074 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11075 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11076 * config/i386/i386sco.mh (XDEPFILES): Delete.
11077 * config/i386/i386v.mh (XDEPFILES): Delete.
11078 * config/i386/nbsd.mh (XDEPFILES): Delete.
11079 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11080 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11081 * config/i386/symmetry.mh (XDEPFILES): Delete.
11082 * config/i386/obsd.mh (XDEPFILES): Delete.
11083 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11084 * config/ia64/linux.mh (XDEPFILES): Delete.
11085 * config/ia64/aix.mh (XDEPFILES): Delete.
11086 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11087 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11088 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11089 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11090 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11091 * config/m68k/linux.mh (XDEPFILES): Delete.
11092 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11093 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11094 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11095 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11096 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11097 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11098 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11099 * config/m88k/delta88.mh (XDEPFILES): Delete.
11100 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11101 * config/m88k/m88k.mh (XDEPFILES): Delete.
11102 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11103 * config/mips/linux.mh (XDEPFILES): Delete.
11104 * config/mips/irix6.mh (XDEPFILES): Delete.
11105 * config/mips/irix5.mh (XDEPFILES): Delete.
11106 * config/mips/irix4.mh (XDEPFILES): Delete.
11107 * config/mips/irix3.mh (XDEPFILES): Delete.
11108 * config/mips/decstation.mh (XDEPFILES): Delete.
11109 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11110 (NATDEPFILES): Move core-aout.o to here.
11111 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11112 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11113 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11114 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11115 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11116 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11117 * config/pa/hpux11.mh (XDEPFILES): Delete.
11118 * config/powerpc/aix.mh (XDEPFILES): Delete.
11119 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11120 * config/powerpc/linux.mh (XDEPFILES): Delete.
11121 * config/romp/rtbsd.mh: Rename XDEPFILES.
11122 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11123 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11124 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11125 * config/s390/s390.mh (XDEPFILES): Delete.
11126 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11127 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11128 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11129 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11130 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11131 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11132 * config/sparc/linux.mh (XDEPFILES): Delete.
11133 * config/vax/vaxult.mh (XDEPFILES): Delete.
11134 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11135 * Makefile.in (DEPFILES): Remove XDEPFILES.
11137 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11139 * utils.c (internal_verror): Fix comments, default is yes not no.
11140 Update queries to match. Default to quit and dump core.
11142 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11144 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11146 * defs.h, event-top.c, gdbcmd.h: Ditto.
11147 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11148 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11149 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11150 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11151 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11152 * mi/mi-main.c:Ditto.
11154 * stack.c, symfile.c: Update copyright.
11156 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11158 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11159 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11160 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11161 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11163 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11165 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11166 * gdbserver/low-lynx.c (myattach): Likewise.
11167 * gdbserver/low-nbsd.c (myattach): Likewise.
11168 * gdbserver/low-sim.c (myattach): Likewise.
11169 * gdbserver/low-sparc.c (myattach): Likewise.
11170 * gdbserver/low-sun3.c (myattach): Likewise.
11172 * gdbserver/low-linux.c (myattach): New function.
11174 * gdbserver/server.c (attach_inferior): New function.
11175 (main): Handle "--attach".
11177 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11179 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11182 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11184 * c-typeprint.c (is_type_conversion_operator): Add additional
11185 check for non-conversion operators.
11187 2002-01-15 Michael Snyder <msnyder@redhat.com>
11189 * linux-proc.c: Add "info proc" command, a la procfs.c.
11190 (read_mapping): New function, abstract and re-use code.
11191 (linux_find_memory_regions): Use new func read_mapping.
11192 (linux_info_proc_cmd): New function, implement "info proc".
11193 (_initialize_linux_proc): Add new command "info proc".
11195 2002-01-15 Michael Snyder <msnyder@redhat.com>
11197 * symfile.c (generic_load): Use bfd_map_over_sections method
11198 instead of manipulating bfd structure members directly.
11199 (add_section_size_callback): New function, bfd sections callback
11200 used by generic_load.
11201 (load_sections_callback): New function, bfd sections callback
11202 used by generic_load.
11204 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11206 [Based on work by Jim Blandy]
11207 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11208 (builtin_type_vec128): Export.
11209 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11211 (builtin_type_vec128): New builtin type for 128 bit vector
11213 (build_gdbtypes): Initialize builtin_type_v16qi and
11214 builtin_type_v8hi. Create the vec128 register builtin type
11216 (build_builtin_type_vec128): New function.
11217 (_initialize_gdbtypes): Register builtin_type_v16qi and
11218 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11219 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11220 AltiVec register to new builtin type.
11222 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11224 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11227 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11229 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11230 CLEAN_UP_REGISTER_VALUE.
11231 * regcache.c (supply_register): Update only call.
11233 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11235 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11236 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11237 a29k-*-vxworks* targets as obsolete.
11239 2002-01-14 Michael Snyder <msnyder@redhat.com>
11241 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11242 until we can resolve portability issues.
11243 * gregset.h: Remove references to fpxregs.
11244 * gcore.c (gcore_command): Initialize note_sec to NULL.
11246 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11248 * signals.c (target_signal_to_name): Rewrite. Only use
11249 signals[].name when in bounds and non-NULL.
11251 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11253 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11254 * signals.c (target_signal_to_name): Verify that SIG is within the
11255 bounds of the signals array.
11257 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11259 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11261 2002-01-13 Keith Seitz <keiths@redhat.com>
11263 * stack.c (print_frame_info_base): Print the frame's pc
11264 only if when print_frame_info_listing_hook is not defined.
11266 2002-01-13 Keith Seitz <keiths@redhat.com>
11268 * varobj.c (varobj_set_value): Make sure that there were no
11269 errors evaluating the object before attempting to set its
11271 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11272 so this offset adjustment is no longer necessary.
11273 (create_child): Don't set the error flag if the child is
11274 a CPLUS_FAKE_CHILD.
11275 (value_of_child): If value_fetch_lazy fails, return NULL
11276 so that callers will be notified that an error occurred.
11277 (c_value_of_variable): Delay check of variable's validity
11278 until later. We actually want all structs and unions to have
11280 Do not return "???" for variables which could not be evaluated.
11281 This error condition must be returned to the caller so that it
11282 can get the error condition from gdb.
11283 (cplus_name_of_child): Adjust index for vptr before figuring
11284 out the name of the child.
11285 (cplus_value_of_child): If a child's (real) parent is not valid,
11286 don't even bother trying to give a value for it. Just return
11287 an error. Change all instances in this function.
11288 (cplus_type_of_child): If our parent is one of the "fake"
11289 parents, we need to get at the type of the real parent, and
11290 derive the child's true type using this information.
11292 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11294 From 2002-01-09 John Marshall <johnm@falch.net>:
11295 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11296 sources.redhat.com, and tweak some related URLs which had
11297 suffered from linkrot.
11299 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11302 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11303 structures passed in registers.
11305 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11307 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11308 white space which prevented compilation. Reported by DSK
11309 <dsk@student.unsw.edu.au>.
11311 2002-01-11 Michael Snyder <msnyder@redhat.com>
11313 * symfile.c (build_section_addr_info_from_section_tab):
11314 Use bfd access method instead of manipulating bfd directly.
11315 (syms_from_objfile): Ditto.
11316 (simple_overlay_update_1): Ditto.
11317 (simple_overlay_update): Ditto.
11318 (generic_load): Ditto.
11319 (overlay_unmapped_address): FIXME comment, bfd access methods.
11320 (sections_overlap): FIXME comment, bfd access methods.
11321 (pc_in_mapped_range): FIXME comment, bfd access methods.
11322 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11323 (section_is_mapped): FIXME comment, bfd access methods.
11324 (section_is_overlay): FIXME comment, bfd access methods.
11326 * symfile.c (generic_load): Whitespace and long line cleanups.
11327 Remove duplicate variable, change several local variables to
11328 more appropriate data types.
11329 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11331 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11333 From Peter Schauer:
11334 * language.c (longest_local_hex_string_custom): Use phex_nz to
11335 convert NUM to a hex string.
11337 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11339 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11341 Update Copyright year.
11343 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11345 * language.c (longest_raw_hex_string): Delete unused function.
11347 2002-01-11 Petr Sorfa <petrs@caldera.com>
11349 * MAINTAINERS (write-after-approval): Add myself.
11350 * dwarf2read.c (read_tag_string_type): Handling of
11352 (read_tag_string_type): FORTRAN fix to prevent propagation of
11354 (set_cu_language): Handling of DW_LANG_Fortran95
11356 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11358 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11359 GETPID(inferior_ptid).
11360 (store_inferior_registers): Likewise.
11362 2002-01-10 Jason Merrill <jason@redhat.com>
11364 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11367 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11369 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11370 and bfd/elf32-sh-nbsd.c.
11372 2002-01-10 Michael Snyder <msnyder@redhat.com>
11374 * NEWS: Mention --pid and corefile/proc-id behavior change.
11376 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11377 * gcore.c: Include cli/cli-decode.h instead of command.h.
11379 * main.c (captured_main): Add new command line option "--pid".
11380 If the second command line argument (following the symbol-file)
11381 begins with a digit, try to attach to it before trying to open
11383 (print_gdb_help): Document the "--pid" argument.
11385 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11387 * completer.c (command_completer): New function.
11389 * completer.h <command_completer>: Add prototype.
11391 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11392 completer for the "help" command.
11394 2002-01-09 Jason Merrill <jason@redhat.com>
11396 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11398 2002-01-09 Michael Snyder <msnyder@redhat.com>
11400 * i386-linux-nat.c (fill_fpxregset): Make global.
11401 (store_fpxregset): Ditto.
11403 * gregset.h (gdb_fpxregset_t): Define.
11404 (supply_fpxregset): Prototype.
11405 (fill_fpxregset): Prototype.
11407 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11409 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11411 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11412 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11413 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11415 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11417 * MAINTAINERS: Update target maintainer rules so that any
11418 Maintainer can approve a tested patch for a maintenance-only
11421 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11423 * MAINTAINERS (write-after-approval): Add myself.
11425 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11428 2002-01-08 Michael Snyder <msnyder@redhat.com>
11430 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11431 real name of the executable, rather than the /proc name.
11433 2002-01-03 Michael Snyder <msnyder@redhat.com>
11435 Implement a "generate-core-file" command in gdb, save target state.
11436 * gcore.c: New file. Implement new command 'generate-core-file'.
11437 Save a corefile image of the current state of the inferior.
11438 * linux-proc.c: Add linux-specific code for saving corefiles.
11439 * target.h (struct target_ops): Add new target vectors for saving
11440 corefiles; to_find_memory_regions and to_make_corefile_notes.
11441 (target_find_memory_regions): New macro.
11442 (target_make_corefile_notes): New macro.
11443 * target.c (update_current_target): Inherit new target methods.
11444 (dummy_find_memory_regions): New place-holder method.
11445 (dummy_make_corefile_notes): New place-holder method.
11446 (init_dummy_target): Initialize new dummy target vectors.
11447 * exec.c (exec_set_find_memory_regions): New function.
11448 Allow the exec_ops vector for memory regions to be taken over.
11449 (exec_make_note_section): New function, target vector method.
11450 * defs.h (exec_set_find_memory_regions): Export prototype.
11451 * procfs.c (proc_find_memory_regions): New function, corefile method.
11452 (procfs_make_note_section): New function, corefile method.
11453 (init_procfs_ops): Set new target vector pointers.
11454 (find_memory_regions_callback): New function.
11455 (procfs_do_thread_registers): New function.
11456 (procfs_corefile_thread_callback): New function.
11457 * sol-thread.c (sol_find_memory_regions): New function.
11458 (sol_make_note_section): New function.
11459 (init_sol_thread_ops): Initialize new target vectors.
11460 * inftarg.c (inftarg_set_find_memory_regions): New function.
11461 Allow to_find_memory_regions vector to be taken over.
11462 (inftarg_set_make_corefile_notes): New function.
11463 Allow to_make_corefile_notes vector to be taken over.
11464 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11465 interface layer if not target_has_execution (may be a corefile).
11466 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11467 * config/sparc/sun4sol2.mh: Ditto.
11468 * config/alpha/alpha-linux.mh: Ditto.
11469 * config/arm/linux.mh: Ditto.
11470 * config/i386/x86-64linux.mh: Ditto.
11471 * config/ia64/linux.mh: Ditto.
11472 * config/m68k/linux.mh: Ditto.
11473 * config/mips/linux.mh: Ditto.
11474 * config/powerpc/linux.mh: Ditto.
11475 * config/sparc/linux.mh: Ditto.
11477 2002-01-07 Michael Snyder <msnyder@redhat.com>
11479 * arm-linux-nat.c: Remove references to regcache.c internal data
11480 (registers[] and register_valid[]).
11482 2002-01-07 Michael Snyder <msnyder@redhat.com>
11484 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11485 so that attaching to a pid will automatically read the process's
11486 symbol file and shlibs.
11487 * Makefile.in: Add rule for linux-proc.o.
11488 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11489 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11490 * config/arm/linux.mh: Ditto.
11491 * config/i386/linux.mh: Ditto.
11492 * config/i386/x86-64linux.mh: Ditto.
11493 * config/ia64/linux.mh: Ditto.
11494 * config/m68k/linux.mh: Ditto.
11495 * config/mips/linux.mh: Ditto.
11496 * config/powerpc/linux.mh: Ditto.
11497 * config/sparc/linux.mh: Ditto.
11499 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11501 * win32-nat.c: Add i386-tdep.h dependency.
11503 2002-01-07 Michael Snyder <msnyder@redhat.com>
11505 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11506 instead of bfd_get_arch_size. Don't bail out just because
11507 there's no exec_bfd.
11509 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11510 * p-valprint.c (pascal_object_print_value): Ditto.
11511 * somread.c (som_symtab_read): Ditto.
11512 * symfile.c (simple_free_overlay_region_table): Ditto.
11513 * valops.c (value_assign): Ditto.
11515 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11516 use tilde_expand and strerror for opening save-tracepoints file.
11518 * thread-db.c (thread_db_new_objfile): Indendation fix.
11520 * infptrace.c (GDB_MAX_ALLOCA): New define.
11521 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11522 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11523 can be overridden with whatever value is appropriate to the host).
11524 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11525 alloca to allocate potentially large buffer.
11526 * rs6000-nat.c (child_xfer_memory): Ditto.
11527 * symm-nat.c (child_xfer_memory): Ditto.
11528 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11530 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11532 From Nick Clifton <nickc@redhat.com>
11533 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11535 2002-01-07 Michael Snyder <msnyder@redhat.com>
11537 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11538 Don't use exec_bfd if it's NULL.
11540 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11542 * valops.c (value_arg_coerce): Fix formatting.
11544 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11546 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11547 * gnu-nat.c: Ditto.
11549 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11551 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11552 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11553 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11554 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11555 z8k-coff have not been multi-arched. Update z8k-coff build
11558 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11560 * MAINTAINERS: Mark a29k target as obsolete.
11561 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11562 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11564 * NEWS: Note that a29k targets are obsolete.
11565 * a29k-tdep.c: Mark as obsolete.
11566 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11567 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11568 a29k-*-vxworks* targets as obsolete.
11569 * remote-adapt.c: Obsolete.
11570 * remote-eb.c: Obsolete.
11571 * remote-mm.c: Obsolete.
11572 * remote-udi.c: Obsolete.
11573 * config/a29k/a29k-udi.mt: Obsolete.
11574 * config/a29k/a29k.mt: Obsolete.
11575 * config/a29k/tm-a29k.h: Obsolete.
11576 * config/a29k/tm-vx29k.h: Obsolete.
11577 * config/a29k/vx29k.mt: Obsolete.
11579 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11581 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11582 with BFD_ENDIAN_BIG.
11584 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11586 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11587 * configure, config.in: Re-generate.
11588 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11589 * defs.h: Do not include <endian.h>.
11591 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11593 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11594 * config.in: Regenerate.
11595 * configure.in: Update copyright years.
11596 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11597 * configure: Regenerate.
11598 * i386bsd-nat.c: Update copyright years.
11599 (fill_gregset): Use regcache_collect.
11600 (fetch_inferior_registers): Only fetch integer registers
11601 if requested to do so. Add support for XMM registers
11602 using PT_GETXMMREGS.
11603 (store_inferior_registers): Only store integer registers
11604 if requested to do so. Add support for XMM registers
11605 using PT_SETXMMREGS.
11606 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11607 (store_inferior_registers): Remove.
11608 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11609 (fetch_elfcore_registers): New function.
11610 (i386nbsd_elfcore_fns): New.
11611 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11612 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11614 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11615 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11616 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11617 * config/i386/tm-nbsd.h: Update copyright years.
11618 (HAVE_SSE_REGS): Define.
11619 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11620 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11621 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11622 (SIGCONTEXT_PC_OFFSET): Remove.
11623 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11625 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11627 * configure.tgt: Remove powerpc-*-macos* target.
11628 * config/m68k/xm-mpw.h: Delete file.
11629 * config/xm-mpw.h: Delete file.
11630 * ser-mac.c: Delete file.
11631 * mpw-make.sed: Delete file.
11632 * mpw-config.in: Delete file.
11633 * mac-xdep.c: Delete file.
11634 * mac-gdb.r: Delete file.
11635 * mac-defs.h: Delete file.
11636 * mac-nat.c: Delete file.
11637 * config/powerpc/macos.mh: Delete file.
11638 * config/powerpc/macos.mt: Delete file.
11639 * config/powerpc/nm-macos.h: Delete file.
11640 * config/powerpc/tm-macos.h: Delete file.
11641 * source.c (openp, open_source_file): Remove obsolete code.
11642 * top.c (gdb_readline): Ditto.
11643 * utils.c (query): Ditto.
11644 * event-top.c (display_gdb_prompt): Ditto.
11645 * Makefile.in (ser-mac.o): Delete obsolete target.
11648 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11650 * defs.h (BIG_ENDIAN): Delete macro definition.
11651 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11652 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11653 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11654 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11655 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11656 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11657 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11658 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11659 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11660 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11661 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11662 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11663 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11664 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11665 * gdbarch.c: Re-generate.
11667 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11669 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11672 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11674 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11676 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11678 * value.h (value_ptr): Delete typedef.
11680 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11682 * i386nbsd-nat.c: Update copyright years.
11683 Include i386-tdep.h.
11685 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11687 * stabsread.c: Update copyright years.
11689 From Debashis Mahata <debashis.mahata@wipro.com>:
11690 (read_struct_fields): Deal with Sun C compiler erroneous stab
11691 output for structs and unions.
11694 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11696 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11699 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11701 * cp-abi.c: Fix whitespace.
11702 (baseclass_offset): New wrapper function.
11703 * cp-abi.h (baseclass_offset): Add prototype.
11704 (struct cp_abi_ops): Add baseclass_offset pointer.
11706 * valops.c (vb_match): Move to...
11707 * gnu-v2-abi.c (vb_match): here.
11708 * valops.c (baseclass_offset): Move to...
11709 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11711 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11713 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11714 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11715 * hpacc-abi.c (init_hpacc_ops): Likewise.
11717 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11719 * valops.c (find_overload_match): Accept obj as a
11720 reference parameter. Update it before returning.
11721 * value.h (find_overload_match): Update prototype.
11722 * eval.c (evaluate_subexp_standard): Pass object to
11723 find_overload_match by reference.
11725 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11727 * valarith.c: Replace value_ptr with struct value pointer. Remove
11728 register attribute from value declarations.
11731 * scm-lang.c (scm_lookup_name): Ditto.
11733 2002-01-03 Michael Snyder <msnyder@redhat.com>
11735 Abstract the functionality of iterating over mapped memory
11736 regions into a general purpose iterator function.
11737 * procfs.c (iterate_over_mappings): New function, general purpose
11738 iterator for memory sections.
11739 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11740 (solib_mappings_callback): New function, callback for above.
11741 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11742 (info_mappings_callback): New function, callback for above.
11744 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11746 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11748 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11749 * i386-tdep.c: Include "elf-bfd.h".
11750 (process_note_abi_tag_sections): New function.
11751 (i386_gdbarch_init): Add code to recognize various OS/ABI
11754 * maint.c (_initialize_maint_cmds): Add missing \ in
11757 For older changes see ChangeLog-2001
11763 version-control: never