1 2002-10-04 Michael Snyder <msnyder@redhat.com>
3 * m32r-stub.c (handle_exception): Make sure exception is "trap"
4 before treating it as a single-step event.
6 2002-10-03 Adam Fedor <fedor@gnu.org>
8 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
9 (objc_demangle): Remove assignment in if statements, Replace
11 (add_msglist): Likewise.
12 (end_msglist): Likewise.
13 (complare_selectors): Likewise.
14 (selectors_info): Likewise.
15 (compare_classes): Likewise.
16 (classes_info): Likewise.
17 (print_object_command): Likewise.
18 (find_objc_msgcall_submethod): Replace PTR with void *.
19 * objc-lang.h: Remove check for __STDC__.
21 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
23 * ui-out.h (ui_out_field_fmt_int): New prototype.
24 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
25 of field width and alignment.
26 * stack.c (print_frame_info_base): When printing frame level, use
27 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
30 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
32 * MAINTAINERS: Add self to Write After Approval list.
34 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
36 * infcmd.c (interrupt_target_command_wrapper): Delete.
37 (interrupt_target_command): Make non static.
38 (nofp_registers_info): Make static.
39 * stack.c (return_command_wrapper): Delete.
40 (return_command): Make non static.
42 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
44 * event-top.c (gdb_setup_readline): New function. Code moved from
45 _initialize_event_loop().
46 (_initialize_event_loop): Call gdb_setup_readline().
48 2002-10-02 Andrew Cagney <ac131313@redhat.com>
50 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
51 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
52 * gdbarch.h, gdbarch.c: Re-generate.
54 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
57 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
59 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
60 of fill_in_vptr_fieldno.
62 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
64 * inferior.h (registers_info, stepi_command, nexti_command,
65 continue_command, interrupt_target_command): Export from infcmd.c.
66 * frame.h (args_info, selected_frame_level_changed_hook,
67 return_command): Export from stack.c.
68 * v850ice.c (stepi_command, nexti_command, continue_command): use
69 prototypes from inferior.h.
70 * tracepoint.c (registers_info, args_info, locals_info): Use
71 prototypes from frame.h and inferior.h.
72 * Makefile.in (mi-main.o): Add dependency on frame.h.
74 2002-10-02 Andrew Cagney <ac131313@redhat.com>
76 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
77 value in register 3 adjusted by ppc_gp0_regnum.
79 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
81 2002-10-02 Marko Mlinar <markom@opencores.org>
83 * MAINTAINERS: Add myself to the Write After Approval list.
85 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
87 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
88 of the section for the N64 ABI, fixed.
90 * config/mips/tm-irix6.h: Include solib.h.
92 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
94 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
97 2002-10-01 Andrew Cagney <ac131313@redhat.com>
99 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
100 and that "mi0" syntax has been removed.
102 2002-09-30 David Carlton <carlton@math.stanford.edu>
104 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
105 * ppc-sysv-tdep.c: #include "gdb_string.h".
106 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
109 2002-10-01 Andrew Cagney <ac131313@redhat.com>
111 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
112 "vrsave"'s register number.
114 2002-09-30 Andrew Cagney <ac131313@redhat.com>
116 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
117 use frame_unwind_signed_register to obtain the PC.
118 (mips_frame_chain): Handle a generic dummy frame.
119 (mips_init_extra_frame_info): When a generic dummy frame, don't
120 re-compute the frame base.
121 (mips_pop_frame): Handle generic dummy frames.
122 (mips_gdbarch_init): When generic dummy frames, set
123 use_generic_dummy_frames, push_dummy_frame to
124 generic_push_dummy_frame, pc_in_call_dummy to
125 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
126 generic_save_dummy_frame_tos.
128 2002-09-30 Andrew Cagney <ac131313@redhat.com>
130 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
131 against TOP when TOP was explictly set.
132 (generic_push_dummy_frame): Set TOP to zero.
134 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
136 * event-loop.c (start_event_loop): Rename variable 'result' to
137 'gdb_result', to avoid conflicts with upcoming intepreters changes.
139 2002-09-30 Keith Seitz <keiths@redhat.com>
141 * gdb-events.sh (selected_thread_changed): New event.
142 * gdb-events.c: Regenerated.
143 * gdb-events.h: Regenerated.
145 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
147 * MAINTAINERS: Add self to Write After Approval list.
149 2002-09-30 Fernando Nasser <fnasser@redhat.com>
151 * disasm.c: New file.
152 * disasm.h: New file.
153 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
154 (compare_lines): Ditto.
156 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
158 (do_assembly_only): Ditto.
159 (do_disassembly): Renamed to gdb_disassembly and moved to
160 disasm.c. Sdded uiout argument.
161 * Makefile.in: Add new files. Reorder SFILES list. Update
162 dependencies. Include libgdb.a later in the insight executable.
164 2002-09-29 Andrew Cagney <ac131313@redhat.com>
166 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
167 bfd/elf64-alpha-fbsd.c.
169 2002-09-29 Andrew Cagney <ac131313@redhat.com>
171 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
174 2002-09-29 Andrew Cagney <ac131313@redhat.com>
176 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
178 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
180 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
181 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
182 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
183 (S_msg_sig_post_reply): Ditto.
185 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
187 * sh-tdep.c (sh_use_struct_convention): Use definition according
189 (sh_push_arguments): Store in register with correct endianess.
190 (sh_default_store_return_value): Ditto.
191 (sh_gdbarch_init): Set sizeof long double to 8.
193 2002-09-27 Mark Kettenis <kettenis@gnu.org>
195 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
196 Fix some whitespace problems.
198 2002-09-27 David Carlton <carlton@math.stanford.edu>
200 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
201 (mcore-tdep.o): Ditto.
202 (ns32k-tdep.o): Ditto.
203 (ns32knbsd-tdep.o): Ditto.
206 * cris-tdep.c: #include "gdb_string.h"
207 * mcore-tdep.c: Ditto.
208 * ns32k-tdep.c: Ditto.
209 * ns32knbsd-tdep.c: Ditto.
213 2002-09-27 David Carlton <carlton@math.stanford.edu>
215 * config/djgpp/fnchange.lst: Add entries for
216 gdb/testsuite/gdb.c++/m-static files.
218 2002-09-27 Jim Wilson <wilson@redhat.com>
220 * MAINTAINERS: Add myself to the Write After Approval list.
222 2002-09-26 Martin M. Hunt <hunt@redhat.com>
224 * mips-tdep.c (find_proc_desc): Initialize startaddr.
227 2002-09-26 Andrew Cagney <ac131313@redhat.com>
229 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
232 2002-09-26 Andrew Cagney <ac131313@redhat.com>
234 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
235 (rs6000_struct_return_address): Delete variable.
236 (rs6000_store_struct_return): Update.
237 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
238 deprecated_extract_struct_value_address.
239 (rs6000_frame_align): New function.
240 (rs6000_gdbarch_init): Set frame_align.
242 2002-09-26 Andrew Cagney <ac131313@redhat.com>
244 From Grace Sainsbury <graces@redhat.com>:
245 * Makefile.in (gdbtk-main.o): New target.
248 (main.o): Update dependencies.
249 (gdb$(EXEEXT)): Add gdb.o.
250 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
251 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
252 (SUBDIR_GDBTK_CLEAN): Set.
253 (install-gdbtk): Install the insight binary.
254 (uninstall-gdbtk): New target.
255 (all-gdbtk, clean-gdbtk): New rule.
256 * top.c (use_windows): Default to zero.
257 * main.c: Include "main.h".
259 (struct captured_main_args): Delete.
260 (gdb_main): New function.
264 2002-09-25 Andrew Cagney <cagney@redhat.com>
266 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
267 (frame_map_regnum_to_name): New function.
268 (frame_map_name_to_regnum): New function.
269 * frame.h (frame_map_name_to_regnum): Declare.
270 (frame_map_regnum_to_name): Declare.
271 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
272 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
273 * parse.c: Do not include "builtin-regs.h".
274 (target_map_name_to_register): Delete function.
275 (write_dollar_variable): Use frame_map_name_to_regnum.
276 * parser-defs.h (target_map_name_to_register): Delete declaration.
277 * expprint.c: Include "frame.h".
278 (print_subexp): Use frame_map_regnum_to_name.
279 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
280 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
282 2002-09-25 Andrew Cagney <ac131313@redhat.com>
284 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
285 wasn't saved, and the next innermost frame is a dummy, return the
286 dummy frame's link register.
288 2002-09-24 Jim Blandy <jimb@redhat.com>
291 * main.c (captured_main): Add a `break' after the case for 'b'.
293 2002-09-24 Keith Seitz <keiths@redhat.com>
295 * varobj.c (c_type_of_child): Use get_target_type instead
298 2002-09-22 Fernando Nasser <fnasser@redhat.com>
300 * source.c (get_current_or_default_source_symtab_and_line): Remove
302 (set_default_source_symtab_and_line): New function. Attempts to
303 determine a source file to list lines from if one is not currently
305 (get_current_source_symtab_and_line): Initialize sal.pc and
307 (set_current_source_symtab_and_line): Mark argument as const.
308 * source.h: Update declarations and comments.
309 * linespec.c (decode_line_1): Replace call to removed routine above.
310 * stack.c (print_frame_info_base): Ditto.
311 * cli/cli-cmds.c (edit_command): Ditto.
312 (list_command): Ditto.
314 2002-09-22 Fernando Nasser <fnasser@redhat.com>
316 * source.c (get_current_or_default_source_symtab_and_line): Initialize
317 sal.pc and sal.end fields.
318 (get_current_or_default_source_symtab_and_line): Ditto.
319 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
320 so we do not cause a new source symtab to be searched for (reverting an
321 unintentional change from the 2002-09-20 patch).
322 * scm-lang.c (scm_unpac): Ditto.
324 2002-09-21 Andrew Cagney <cagney@redhat.com>
326 * complaints.c (symfile_explanations): Remove new-line from
327 ``isolated_message''.
328 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
329 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
331 2002-09-20 Nick Clifton <nickc@redhat.com>
333 * NEWS: Announce that V850EA ISA is no longer supported.
334 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
336 2002-09-20 David Carlton <carlton@math.stanford.edu>
338 * Makefile.in (c-lang.o): Correct dependencies.
339 (utils.o): Gather dependencies.
341 * c-lang.c: #include "gdb_string.h"
343 2002-09-20 Fernando Nasser <fnasser@redhat.com>
345 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
346 * cli/cli-cmds.c (list_command): New function. Implements the new
348 (_init_cli_cmds): Add new command definition.
349 * gdb.1: Document edit command.
350 * doc/gdb.texinfo: Document edit command.
352 2002-09-20 Fernando Nasser <fnasser@redhat.com>
354 * source.c: Make global variables current_source_symtab and
355 current_source_line static.
356 (list_command): Moved to cli/cli-cmds.c.
357 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
358 (get_first_line_listed): New accessor function.
359 (get_lines_to_list): New accessor function.
360 (get_current_source_symtab_and_line): New function. Retrieves the
361 position in the source code that we consider current.
362 (get_current_or_default_source_symtab_and_line): New function.
363 Like the above but attempts to determine a default position if one
364 is not currently defined.
365 (set_current_source_symtab_and_line): New function. Sets the source
366 code position considered current and returns the previously set one.
367 (clear_current_source_symtab_and_line): Reset stored information about
368 a current source line.
369 (_initialize_source): Remove registration for the "list" command and
371 * source.h: Add declarations for the new functions above.
372 * symtab.h: Remove declarations for the global variables mentioned
374 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
375 obtain current source line.
376 * linespec.c (decode_line_1): Ditto.
377 * macroscope.c (default_macro_scope): Ditto.
378 * scm-lang.c (scm_unpac): Ditto.
379 * stack.c (print_frame_info_base): Ditto.
380 * symfile.c (clear_symtab_users): Ditto.
381 * symtab.c (decode_line_spec): Ditto.
382 * cli/cli-cmds.c (list_command): Moved here from source.c.
383 (ambiguous_line_spec): Moved here from source.c.
384 (_init_cli_cmds): Add definition for "list" and its alias.
385 * Makefile.in: Update dependencies.
387 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
389 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
390 with what gcc thinks is correct.
392 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
394 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
395 multiple register push instruction.
397 2002-09-19 Jim Blandy <jimb@redhat.com>
399 Add support for distinct host and target character sets.
400 * charset.c, charset.h: New files.
401 * c-exp.y: #include "charset.h".
402 (yylex): Convert character and string literals to the target
403 character set, before returning them as the semantic value of the
405 * c-lang.c: #include "charset.h".
406 (c_emit_char): Use charset-specific methods to recognize
407 characters with backslash escape forms, to decide which characters
408 to print literally and which to print using numeric escape
409 sequences, and to convert target characters to host characters
411 * utils.c: #include "charset.h".
412 (no_control_char_error): New function.
413 (parse_escape): Use charset-specific methods to recognize
414 backslash escapes, parse `control character' notation, and convert
415 characters from the host character set to the target character set.
416 * configure.in: Set the default host character set.
417 Check where to find iconv, and what its argument types might be.
418 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
419 * Makefile.in (SFILES): List charset.c.
420 (COMMON_OBS): List charset.o.
421 (charset.o): New rule.
422 (charset_h): New header dependency variable.
423 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
424 (LIBICONV): New variable, set by configure.
425 (CLIBS): Include $(LIBICONV) here.
426 * aclocal.m4, config.in, configure: Regenerated.
428 2002-09-19 Joel Brobecker <brobecker@gnat.com>
430 * ada-exp.y: Add missing semicolons to end rules. Fixes a
433 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
435 * gdb_mbuild.sh: New file.
437 2002-09-19 Andrew Cagney <ac131313@redhat.com>
439 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
441 2002-09-18 Andrew Cagney <ac131313@redhat.com>
443 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
444 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
445 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
446 valops.c, value.h: Revert previous change.
448 2002-09-18 Michael Snyder <msnyder@redhat.com>
450 Preliminary support for Objective-C:
451 * defs.h (language_objc): New enum value.
452 (puts_filtered_tabular): Declaration only, exported from utils.c.
453 (skip_quoted): Delete, declared in completer.h.
454 * c-exp.y: Include completer.h.
457 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
458 New operator enum values.
459 * language.h (CAST_IS_CONVERSION): Test for language_objc.
460 * language.c (binop_result_type): Handle language_objc case.
461 (integral_type, character_type, string_type, boolean_type,
462 structured_type, binop_type_check): Ditto.
463 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
464 (struct objc_specific): Add to general_symbol_info.
465 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
466 (SYMBOL_DEMANGLED_NAME): Handle objc case.
467 * parser-defs.h (struct objc_class_str): New struct type.
468 (start_msglist, end_msglist, add_msglist): Declaration only,
469 exported from objc-lang.c.
470 * value.h (value_of_local, value_nsstring,
471 call_function_by_hand_expecting_type): Exported from valops.c.
472 * valops.c (find_function_addr): Export.
473 (call_function_by_hand_expecting_type): New function.
474 (value_of_local): New function.
475 * symfile.c (init_filename_language_table): Add ".m" extension
477 * utils.c (puts_filtered_tabular): New function.
478 (fprintf_symbol_filtered): Add objc demangling support (disabled).
479 (set/show demangle): Extend help-string to refer to ObjC.
480 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
481 * stabsread.c (symbol_reference_defined): Objective-C symbols
482 may contain colons: make allowances when scanning stabs strings
484 (objc_find_colon): New function.
485 * printcmd.c (address_info): If language == objc then print
486 "self" instead of "this".
487 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
488 OP_NSSTRING, and OP_SELF.
489 (prefixify_subexp): Ditto.
490 * source.c (print_source_lines): Mention objc in comment.
491 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
494 2002-09-18 Andrew Cagney <ac131313@redhat.com>
496 * complaints.h: Update copyright.
497 (struct complaints): Declare.
498 (struct complaint): Make `message' constant.
499 (internal_complaint): Declare.
500 (complaint): Declare.
501 (complaint_root): Delete declaration.
502 (symfile_complaints): Delete declaration.
503 (struct complaints): Add opaque declaration.
504 (clear_complaints): Add a complaints parameter.
505 * complaints.c: Update copyright.
506 (enum complaint_series): Define.
507 (complaint_root): Delete.
508 (struct complaints): Define.
509 (complaint_sentinel, symfile_complaint_book): New variables.
510 (symfile_explanations, symfile_complaints): New variables.
512 (get_complaints): New function.
513 (vcomplaint): New function.
514 (complaint): New function.
515 (internal_complaint): New function.
516 (complain): Call vcomplain with symfile_complaint.
517 (clear_complaints): Rewrite.
518 (_initialize_complaints): Use add_setshow_command.
519 * Makefile.in (complaints.o): Update dependencies.
520 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
521 to call to clear_complaints.
522 (new_symfile_objfile, reread_symbols): Ditto.
523 (oldsyms_complaint): Delete.
524 (empty_symtab_complaint, unknown_option_complaint): Delete.
525 (free_named_symtabs): Use complaint instead of complain.
527 2002-09-18 Michael Snyder <msnyder@redhat.com>
529 Contributed by Apple Computer, Inc. Merged with current sources
530 by Adam Fedor <fedor@doc.com> [cagney].
532 * objc-lang.c: First clean-up round: comments, indentation.
533 * objc-lang.h: Ditto.
534 * objc-lang.y: Ditto.
536 2002-09-18 Andrew Cagney <ac131313@redhat.com>
538 * maint.c (maintenance_internal_error): Print the parameter as the
540 (maintenance_internal_warning): New function.
541 (_initialize_maint_cmds): Add command `maint internal-warning'.
543 * defs.h (internal_warning, internal_vwarning): Declare.
544 * utils.c (struct internal_problem): Define.
545 (internal_vproblem): New function.
546 (internal_warning): New function.
547 (internal_vwarning): New function.
548 (internal_warning_problem, internal_error_problem): New variables.
549 (internal_verror): Just call internal_vproblem.
551 2002-09-18 Michael Snyder <msnyder@redhat.com>
553 * objc-lang.c: New file, support for Objective-C.
554 Preliminary check-in, not yet integrated into gdb.
555 * objc-lang.h: New file.
556 * objc-exp.y: New file.
558 2002-09-18 Andrew Cagney <ac131313@redhat.com>
560 * infrun.c (signal_stop_update): Convert definition to ISO C.
561 (signal_print_update): Ditto.
562 (signal_pass_update): Ditto.
563 * inflow.c (terminal_save_ours): Ditto.
565 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
568 * config/djgpp/fnchange.lst: Handle name clashes between
569 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
572 * i386-linux-tdep.h: Fix tipo.
574 2002-09-18 Adam Fedor <fedor@gnu.org>
576 * MAINTAINERS: Add myself to the Write After Approval list.
578 2002-09-18 Jim Blandy <jimb@redhat.com>
580 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
581 texthigh and textlow to reader-specific structs caused
582 objfile_relocate to miss them. This is fixable, but the work that
583 the change was supposed to prepare GDB for never got done anyway.
585 2002-09-18 David Carlton <carlton@math.stanford.edu>
587 * MAINTAINERS: Alphabetize Write After Approval list.
589 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
592 * values.c (value_static_field): Call read_var_value.
594 2002-09-18 Andrew Cagney <ac131313@redhat.com>
596 * valops.c (hand_function_call): Align the initial stack pointer
597 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
598 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
600 * mips-tdep.c (mips_frame_align): New function.
601 (mips_gdbarch_init): Set frame_align.
602 * gdbarch.sh (FRAME_ALIGN): New method.
603 * gdbarch.h, gdbarch.c: Re-generate.
605 2002-09-18 Michal Ludvig <mludvig@suse.cz>
607 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
610 2002-09-17 Andrew Cagney <ac131313@redhat.com>
612 * NEWS: Mention that MIPS $fp behavior changed.
613 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
614 reference to FP_REGNUM.
615 (mipsnbsd_cannot_store_register): Ditto.
616 * mips-linux-nat.c: Update copyright.
617 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
618 (mips_linux_cannot_store_register): Ditto.
619 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
620 * config/mips/tm-mips.h: Update copyright.
621 (FP_REGNUM): Delete macro.
622 (MIPS_REGISTER_NAMES): Replace "fp" with "".
623 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
624 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
625 (mips_r3041_reg_names, mips_r3051_reg_names)
626 (mips_r3081_reg_names): Replace "fp" with "".
629 2002-09-17 Theodore A. Roth <troth@verinet.com>
631 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
632 generic_read_register_dummy() (PR gdb/703).
633 (avr_push_return_address): #if 0 out unused vars.
634 (avr_gdbarch_init): Enable use of avr_push_return_address().
636 2002-09-17 Michael Snyder <msnyder@redhat.com>
638 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
639 RTE will take care of it.
641 2002-09-17 Andrew Cagney <ac131313@redhat.com>
643 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
644 invalid, return SP_REGNUM.
646 2002-09-17 Michael Snyder <msnyder@redhat.com>
648 * mips-tdep.c (mips_pop_frame): Read saved values of floating
649 point registers without sign extension.
651 2002-09-17 Andrew Cagney <cagney@redhat.com>
653 * blockframe.c (deprecated_read_register_dummy): Rename
654 generic_read_register_dummy.
655 * frame.c (frame_unwind_signed_register): New function.
656 (frame_unwind_unsigned_register): New function.
657 * frame.h (frame_unwind_signed_register): Declare.
658 (frame_unwind_unsigned_register): Declare.
659 (deprecated_read_register_dummy): Rename
660 generic_read_register_dummy.
662 * h8300-tdep.c (h8300_frame_chain): Update.
663 (h8300_frame_saved_pc): Update.
664 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
665 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
666 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
667 (s390_frame_chain): Update.
668 * v850-tdep.c (v850_find_callers_reg): Update.
669 (v850_frame_saved_pc): Update.
670 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
671 (m32r_find_callers_reg): Update.
672 (m32r_frame_saved_pc): Update.
673 * sh-tdep.c (sh_find_callers_reg): Update.
674 (sh64_get_saved_pr): Update.
675 (sh_init_extra_frame_info): Update.
676 (sh_init_extra_frame_info): Update.
677 (sh64_init_extra_frame_info): Update.
678 (sh64_init_extra_frame_info): Update.
679 * mcore-tdep.c (mcore_find_callers_reg): Update.
680 (mcore_frame_saved_pc): Update.
681 (mcore_init_extra_frame_info): Update.
682 * i386-tdep.c (i386_frame_saved_pc): Update.
683 * ia64-tdep.c (ia64_frame_saved_pc): Update.
684 (ia64_init_extra_frame_info): Update.
685 (ia64_init_extra_frame_info): Update.
686 * d10v-tdep.c (d10v_frame_saved_pc): Update.
687 * cris-tdep.c (cris_init_extra_frame_info): Update.
688 * avr-tdep.c (avr_frame_chain): Update.
689 (avr_init_extra_frame_info): Update.
690 (avr_frame_saved_pc): Update.
691 * arm-tdep.c (arm_find_callers_reg): Update.
692 (arm_init_extra_frame_info): Update.
693 (arm_frame_saved_pc): Update.
695 2002-09-17 Tom Tromey <tromey@redhat.com>
697 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
700 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
702 * MAINTAINERS: Remove "non multi-arched" text from h8300.
703 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
705 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
708 2002-09-16 Joel Brobecker <brobecker@gnat.com>
710 * osfsolib.c: Remove file, replaced by solib-osf.c.
711 * Makefile.in: Remove compilation rules for osfsolib.c.
713 2002-09-16 David Carlton <carlton@math.stanford.edu>
715 * cp-valprint.c (cp_print_class_method): Correct args to
716 check_stub_method_group.
718 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
720 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
721 `set architecture'. Unify naming convention of functions.
722 (h8300_skip_prologue): Improve prologue analysis.
723 (h8300_push_arguments): Rewritten to more closely match GCC's
724 bizarre argument-passing behavior, along with the comment describing
726 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
727 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
728 sim, remote-e7000.c, remote-hms.c and remote.c
730 2002-09-15 Mark Kettenis <kettenis@gnu.org>
732 * i386-tdep.c (gdb_print_insn_i386): Removed.
733 (i386_print_insn): New function.
734 (i386_gdbarch_init): Set print_insn to i386_print_insns.
735 (_initialize_i386_tdep): Don't initialize tm_print_insn and
738 2002-09-14 Mark Kettenis <kettenis@gnu.org>
740 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
743 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
745 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
746 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
747 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
749 2002-09-13 Christopher Faylor <cgf@redhat.com>
751 * win32-nat.c (child_create_inferior): Honor 'tty' command.
753 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
755 * gdbtypes.c (check_stub_method): Make static.
756 (check_stub_method_group): New function.
757 * gdbtypes.h: Update prototypes.
758 * cp-support.c: New file.
759 * cp-support.h: New file.
761 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
762 (update_method_name_from_physname): New function.
763 (read_member_functions): Correct method names for operators
764 and v3 constructors/destructors. Separate v2 constructors and
766 * Makefile.in (stabsread.o): Update dependencies.
767 (SFILES): Add cp-support.c.
768 (COMMON_OBS): Add cp-support.o.
769 (cp_support_h, cp-support.o): Add.
771 * cp-valprint.c (cp_print_class_method): Call
772 check_stub_method_group instead of check_stub_method. Remove
774 * p-valprint.c (pascal_object_print_class_method): Likewise.
775 * valops.c (search_struct_method): Likewise.
776 (find_method_list, value_struct_elt_for_reference): Likewise.
778 2002-09-13 Andrew Cagney <cagney@redhat.com>
780 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
781 * gdbarch.h, gdbarch.c: Regenerate.
783 2002-09-13 Andrew Cagney <ac131313@redhat.com>
785 * frame.c (find_saved_register): Delete function.
786 * frame.h (find_saved_register): Delete declaration.
789 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
791 * mips-tdep.c (read_next_frame_reg): Re-hack using
792 frame_register_unwind.
794 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
796 * mips-tdep.c (mips_get_saved_register): Re-hack using
797 frame_register_unwind.
799 2002-09-12 Joel Brobecker <brobecker@gnat.com>
801 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
802 vector. Will be useful for Interix.
803 * gdbarch.h, gdbarch.c: Regenerate.
805 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
806 name of the malloc function by NAME_OF_MALLOC.
808 2002-09-12 Joel Brobecker <brobecker@gnat.com>
810 * value.h (find_function_in_inferior): Add const keyword to
811 one of the parameters. Allows us to invoke this function with
813 * valops.c (find_function_in_inferior): Likewise.
815 2002-09-12 Joel Brobecker <brobecker@gnat.com>
817 * exec.c (xfer_memory): Fix compilation warning with old versions
819 * tracepoint.c (trace_find_tracepoint_command): Likewise.
821 2002-09-12 David Carlton <carlton@math.stanford.edu>
823 * symtab.h: Run through gdb_indent.h.
824 Add 2002 to Copyright year list.
826 2002-09-12 Alan Modra <amodra@bigpond.net.au>
828 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
830 * MAINTAINERS: Add myself to write after approval list.
832 2002-09-11 J. Brobecker <brobecker@gnat.com>
834 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
836 2002-09-11 J. Brobecker <brobecker@gnat.com>
838 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
841 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
843 * procfs.c (do_detach): Clear current signal, not just fault.
844 Corrects problem with breakpoint trap signal leaking to detached
847 2002-09-10 Michael Snyder <msnyder@redhat.com>
849 * buildsym.c (finish_block): Protect against null pointer.
851 2002-09-10 Andrew Cagney <cagney@redhat.com>
853 * infcmd.c (default_print_registers_info): Send all output to
854 ``file'' instead of ``gdb_stdout''.
856 2002-09-10 Michael Snyder <msnyder@redhat.com>
858 * mips-tdep.c (mips_extract_struct_value_address): Make val a
859 LONGEST, and use signed register read (addresses are sign-
862 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
864 * event-loop.c (gdb_do_one_event): Make public.
865 * event-loop.h (gdb_do_one_event): Declare.
867 2002-09-10 Jeff Law <law@redhat.com>
869 * infttrace.c (child_resume): Simplify and rework to avoid
872 2002-09-09 Fred Fish <fnf@intrinsity.com>
874 * printcmd.c (print_scalar_formatted): "len" is the number of
875 target bytes, NOT the number of target bits.
877 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
879 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
880 * top.c (init_main): Set rl_terminal_name.
882 2002-09-08 Aidan Skinner <aidan@velvet.net>
884 * ada-lang.c (ada_array_bound, ada_type_match,
885 _initialize_ada_language): Fix K&R definitions.
886 * ada-tasks.c (get_current_task): Fix K&R definitions.
887 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
889 2002-09-07 Christopher Faylor <cgf@redhat.com>
891 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
894 2002-09-06 Mark Kettenis <kettenis@gnu.org>
896 * i386-tdep.c (i386_register_virtual_type,
897 i386_register_convertible, i386_register_convert_to_virtual,
898 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
899 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
900 (i386_gdbarch_init): Fix comment. Add comments on calls that set
901 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
902 Don't set push_arguments twice.
904 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
905 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
906 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
907 sigtramp_end to NULL.
908 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
910 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
912 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
915 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
916 * gdbarch.h, gdbarch.c: Re-generate.
917 * blockframe.c (find_pc_sect_partial_function): Convert to use
918 SIGTRAMP_START_P predicate.
920 2002-09-05 Michael Snyder <msnyder@redhat.com>
922 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
923 generic_dummy_frame method and old method. Also distinguish
924 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
925 (arm_extract_return_value): Use new regcache method.
927 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
928 adjustment that doesn't conform to the ABI.
929 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
930 saved regcache, not from current regcache.
932 2002-09-05 Andrew Cagney <ac131313@redhat.com>
934 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
937 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
939 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
940 if arm_apcs_32 is false.
942 2002-09-04 Andrew Cagney <ac131313@redhat.com>
944 GDB 5.3 branch created.
946 2002-09-03 Theodore A. Roth <troth@verinet.com>
948 * gdb/avr-tdep.c (avr_gdbarch_init): Use
949 generic_unwind_get_saved_register.
951 2002-09-03 David Carlton <carlton@math.stanford.edu>
953 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
954 argument (PR gdb/653). Update call to smash_to_method_type.
955 (read_structure_scope): Update call to dwarf2_add_member_fn.
957 2002-09-03 Michal Ludvig <mludvig@suse.cz>
959 * x86-64-linux-tdep.c: Include gdb_string.h
960 * x86-64-linux-nat.c: Ditto.
962 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
964 * ada-exp.y (yyname, yyrule): Remap global variables that appear
965 when YYDEBUG is set to 1.
968 * jv-exp.y: Likewise.
969 * m2-exp.y: Likewise.
972 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
974 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
976 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
977 solib_svr4_fetch_link_map_offsets to
978 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
979 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
980 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
981 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
982 solib-svr4.o, and solib-legacy.o.
983 * config/i386/tm-nbsd.h: Include solib.h.
985 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
987 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
988 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
989 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
990 comment noting that this needs its own target configuration.
991 * config/i386/nbsd.mt: New file.
992 * config/i386/nbsdaout.mt: Remove.
993 * config/i386/nbsdelf.mt: Ditto.
994 * config/i386/tm-nbsdaout.h: Ditto.
996 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
998 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
999 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1000 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1002 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1003 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1004 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1006 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1008 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1009 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1010 * i386-tdep.h (i386bsd_init_abi): New prototype.
1011 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1012 function declaration.
1013 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1014 for NetBSD-a.out or NetBSD-ELF.
1015 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1016 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1017 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1018 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1020 (i386nbsd_pc_in_sigtramp): New function.
1021 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1022 i386nbsd_pc_in_sigtramp.
1023 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1024 and i386nbsdelf_init_abi OS ABI handlers.
1025 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1026 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1028 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1030 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1031 registers if the target really has them.
1033 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1035 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1038 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1040 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1042 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1043 (alphanbsd_skip_sigtramp_frame): New functions.
1044 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1045 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1046 to alphanbsd_sigcontext_addr.
1048 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1050 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1052 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1053 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1054 nbsd_pc_in_sigtramp.
1055 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1056 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1057 * nbsd-tdep.c: Include gdb_string.h.
1058 (nbsd_pc_in_sigtramp): New function.
1059 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1060 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1061 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1062 ppcnbsd_pc_in_sigtramp.
1063 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1064 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1065 shnbsd_pc_in_sigtramp.
1066 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1067 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1068 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1070 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1072 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1073 watchpoints to NULL.
1074 (insert_breakpoints): set val field of watchpoints if NULL.
1077 2002-08-29 Jim Blandy <jimb@redhat.com>
1079 * symtab.c (lookup_symbol_aux): In the cases where we find a
1080 minimal symbol of an appropriate name and use its address to
1081 select a symtab to read and search, use `name' (as passed to us)
1082 as the demangled name when searching the symtab's global and
1083 static blocks, not the minsym's name.
1085 2002-08-29 Keith Seitz <keiths@redhat.com>
1087 * stack.c (print_frame_info_base): Always set current_source_symtab
1088 and current_source_line.
1090 2002-08-29 Donn Terry <donnte@microsoft.com>
1092 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1094 2002-08-28 Keith Seitz <keiths@redhat.com>
1096 * stack.c (select_frame): Add FIXME concerning selected-frame
1098 (select_frame_command): Send selected-frame-level-changed
1099 event notification, but only if the level actually changed.
1100 (up_silently_base): Add selected-frame-level-changed event
1102 (down_silently_base): Likewise.
1104 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1106 * Makefile.in: Update dependencies for all gdb/*.c files.
1108 2002-08-27 Tom Tromey <tromey@redhat.com>
1110 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1111 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1112 Update dependencies.
1113 * i387-tdep.c: Include gdb_string.h.
1114 * osabi.c: Likewise.
1115 * i386-linux-nat.c: Likewise.
1116 * lin-lwp.c: Likewise.
1117 * ax-gdb.c: Likewise.
1118 * signals/signals.c: Likewise.
1119 * jv-valprint.c: Likewise.
1120 * p-lang.c: Likewise.
1121 * c-valprint.c: Likewise.
1122 * cp-abi.c: Likewise.
1124 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1126 * cli/cli-script.h (copy_command_lines): Export.
1127 * breakpoint.c: Include cli/cli-script.h.
1128 * Makefile.in (breakpoint.o): Update dependencies.
1130 2002-08-26 Michael Snyder <msnyder@redhat.com>
1132 * breakpoint.c (insert_breakpoints): Protect all references
1133 to 'process_warning'. Shorten long lines.
1135 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1137 * cli/cli-script.c (copy_command_lines): New function.
1138 * defs.h (copy_command_lines): Export.
1139 * testsuite/gdb.base/commands.exp: New tests for commands
1140 attached to a temporary breakpoint, and for commands that
1141 delete the breakpoint they are attached to.
1143 2002-08-26 Michael Snyder <msnyder@redhat.com>
1145 * breakpoint.c (bpstat_stop_status): Instead of copying the
1146 pointer to the breakpoint commands struct, make a new copy
1147 of the struct and point to that.
1148 (bpstat_clear): Free the commands struct.
1149 (bpstat_clear_actions): Free the commands struct.
1150 (bpstat_do_actions): Free the command actions. Also execute
1151 the local cleanups, instead of deleting them.
1152 (delete_breakpoint): Leave the commands field of the bpstat
1153 chain alone -- it will be freed later.
1155 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1157 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1158 deleted in 2002-08-20 commit. This function is still used by
1161 2002-08-26 Keith Seitz <keiths@redhat.com>
1163 * gdb-events.sh: Add selected-frame-level-changed event.
1164 * gdb-events.c: Regenerated.
1165 * gdb-events.h: Regenerated.
1167 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1170 * inflow.c (terminal_save_ours): New function to save terminal
1172 * inferior.h (terminal_save_ours): Declare.
1173 * target.c (debug_to_terminal_save_ours): New function.
1174 (cleanup_target): Defaults to_terminal_save_ours.
1175 (update_current_target): Inherit to_terminal_save_ours.
1176 (setup_target_debug): Set to_terminal_save_ours.
1177 * target.h (target_terminal_save_ours): New to save terminal settings.
1178 (target_ops): New member to_terminal_save_ours.
1179 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1180 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1181 * inftarg.c (init_child_ops): Likewise.
1182 * m3-nat.c (init_m3_ops): Likewise.
1183 * procfs.c (init_procfs_ops): Likewise.
1184 * wince.c (init_child_ops): Likewise.
1185 * win32-nat.c (init_child_ops): Likewise.
1186 * sol-thread.c (init_sol_thread_ops): Likewise.
1188 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1190 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1191 use regcache_* functions.
1192 (i386_gdbarch_init): Set store_return_value instead of
1193 deprecated_store_return_value.
1195 * regcache.c (regcache_raw_write_signed,
1196 regcache_raw_write_unsigned): New functions.
1197 * regcache.h (regcache_raw_write_signed,
1198 regcache_raw_write_unsigned): New prototypes.
1200 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1202 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1203 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1204 source file dependencies. Cleanup corresponding generator rules.
1206 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1208 * regcache.h (register_offset_hack): Declare.
1209 (regcache_cooked_read_using_offset_hack): Declare.
1210 (regcache_cooked_write_using_offset_hack): Declare.
1212 * regcache.c (register_offset_hack): New function.
1213 (regcache_cooked_read_using_offset_hack): New function.
1214 (regcache_cooked_write_using_offset_hack): New function.
1215 (regcache_dump): Check that the registers, according to their
1216 offset, are packed hard against each other.
1217 (cooked_xfer_using_offset_hack): New function.
1219 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1221 * regcache.c (struct regcache_descr): Add field register_type.
1222 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1224 (init_regcache_descr): Initialize register_type. Pass the descr
1225 to init_legacy_regcache_descr. Use register_type instead of
1226 REGISTER_VIRTUAL_TYPE.
1227 (register_type): New function.
1228 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1229 * regcache.h (register_type): Declare.
1231 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1233 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1234 instead of deprecated_store_return_value. Fix fallout from
1235 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1237 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1239 * regcache.c (max_register_size): New function.
1240 (init_legacy_regcache_descr): Ensure that max_register_size is
1241 large enough for REGISTER_VIRTUAL_SIZE.
1242 * regcache.h (max_register_size): Declare.
1244 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1246 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1248 (e500_extract_return_value): Change type of valbuf pointer to
1251 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1253 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1256 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1257 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1258 long long) to prevent compiler warning on 64-bit systems.
1260 2002-08-23 Andrew Cagney <cagney@redhat.com>
1262 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1263 (DEPRECATED_STORE_RETURN_VALUE): New method.
1264 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1265 * gdbarch.h, gdbarch.c: Re-generate.
1267 * values.c (set_return_value): Pass current_regcache to
1269 * arch-utils.h (legacy_store_return_value): Declare.
1270 * arch-utils.c (legacy_store_return_value): New function.
1271 (legacy_extract_return_value): Update parameters.
1273 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1275 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1276 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1277 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1278 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1279 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1280 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1281 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1282 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1283 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1284 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1287 * i386-tdep.c (i386_extract_return_value): Update.
1288 * arch-utils.c (legacy_extract_return_value): Update.
1289 * frv-tdep.c (frv_gdbarch_init): Update.
1290 * cris-tdep.c (cris_gdbarch_init): Update.
1291 * d10v-tdep.c (d10v_gdbarch_init): Update.
1292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1293 * m68k-tdep.c (m68k_gdbarch_init): Update.
1294 * mcore-tdep.c (mcore_gdbarch_init): Update.
1295 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1296 * s390-tdep.c (s390_gdbarch_init): Update.
1297 * sparc-tdep.c (sparc_gdbarch_init): Update.
1298 * sh-tdep.c (sh_gdbarch_init): Update.
1299 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1300 * v850-tdep.c (v850_gdbarch_init): Update.
1301 * avr-tdep.c (avr_gdbarch_init): Update.
1302 * ia64-tdep.c (ia64_gdbarch_init): Update.
1303 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1304 * vax-tdep.c (vax_gdbarch_init): Update.
1305 * alpha-tdep.c (alpha_gdbarch_init): Update.
1306 * arm-tdep.c (arm_gdbarch_init): Update.
1307 * mips-tdep.c (mips_gdbarch_init): Update.
1308 * i386-tdep.c (i386_gdbarch_init): Update.
1310 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1312 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1313 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1315 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1317 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1320 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1322 * infrun.c (handle_inferior_event): Move a comment outside of a
1323 function call, in order to avoid indent reformatting this part
1324 of the code in an unreadable way.
1326 2002-08-23 Grace Sainsbury <graces@redhat.com>
1328 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1329 when breakpoints fail. Move general breakpoint error messages to
1331 * breakpoint.c (insert_breakpoints): Change warnings when
1332 breakpoints are nto inserted to specify the type. Remove call to
1333 memory_error when hardware breakpoints can't be inserted. Remove
1334 multiple calls to warning so all messages are sent to the user at
1336 (delete_breakpoints): Make insert error messsages more explicit.
1338 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1340 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1341 gdbserver/ChangeLog.
1343 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1345 * i386-tdep.c: Include "objfiles.h".
1346 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1347 skip_trampoline_code.
1348 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1349 (CPLUS_MARKER): Define to '.'.
1351 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1353 (linux_corefile_thread_callback): Increase args->num_notes.
1354 (linux_make_note_section): Initialize thread_args.num_notes, and
1355 use it to determine whether notes for any threads were created.
1357 2002-08-23 Donn Terry <donnte@microsoft.com>
1359 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1360 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1362 (write_with_trace): Conditionalize out the switch branch handling
1363 PCSHOLD if the corresponding macro is not defined. Likewise for
1364 PRSABORT and PRSTOP.
1365 This change will be needed by the Interix port.
1367 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1369 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1370 write_register wherever possible instead of manipulating the
1371 register bytes directly.
1372 Assign VALUE_CONTENTS to a variable and use that.
1373 The GPR numbers are now dependent on the architecture.
1375 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1377 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1379 (skip_prologue): Add support for BookE/e500 instructions.
1380 (e500_extract_return_value): New function.
1381 (frame_get_saved_regs): Add support for saving ev registers and
1383 (e500_store_return_value): New function.
1384 (rs6000_gdbarch_init): Move up default intializations of
1385 deprecated_extract_return_value and store_return_value. Overwrite
1386 init of store_return_value with e500 specific version.
1387 Set extract_return_value for e500.
1389 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1391 * blockframe.c (generic_call_dummy_register_unwind): Use
1392 regcache_cooked_read to catch cases in which the variable is
1393 stored in a pseudo register.
1395 2002-08-22 Andrew Cagney <cagney@redhat.com>
1397 * NEWS: Mention that the i960 has been made obsolete.
1398 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1400 (remote-nrom.o): Obsolete target.
1401 (remote-nindy.o, i960-tdep.o): Ditto.
1402 * remote-nrom.c: Make file obsolete.
1403 * remote-nindy.c, remote-vx960.c: Ditto.
1404 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1405 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1406 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1407 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1408 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1409 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1410 i960-*-vxworks* obsolete.
1411 * MAINTAINERS: Note that the i960 is obsolete.
1413 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1415 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1416 detach to allow reinitialization.
1418 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1420 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1423 2002-08-22 Jim Blandy <jimb@redhat.com>
1425 * coffread.c (coff_symfile_read): Don't try to read the line
1426 number table from disk if the image file doesn't have a symbol
1427 table; we'll never actually look at the info anyway, and Windows
1428 ships DLL's with bogus file offsets for the line number data.
1430 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1432 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1435 2002-08-21 Michael Snyder <msnyder@redhat.com>
1437 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1438 (MSYMBOL_SIZE): Replace macro with function.
1439 (DEFAULT_MIPS_TYPE): Delete unused macro.
1440 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1441 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1443 2002-08-21 Jim Blandy <jimb@redhat.com>
1445 * valops.c (value_cast): Simplify and correct logic for doing a
1446 static cast from a pointer to a base class to a pointer to a
1449 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1451 * infcmd.c (default_print_registers_info): Replace
1453 (registers_info): Use gdbarch_print_registers_info instead of
1455 * inferior.h (default_print_registers_info): Replace
1457 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1458 (DO_REGISTERS_INFO): Change to a predicate function.
1459 * gdbarch.h, gdbarch.c: Regenerate.
1461 2002-08-21 Keith Seitz <keiths@redhat.com>
1463 * gdb-events.sh: Add target-changed event.
1464 * gdb-events.c: Regenerated.
1465 * gdb-events.c: Regenerated.
1466 * valops.c (value_assign): Add target-changed event notification
1467 to inlval_register, lval_memory, and lval_reg_frame_relative.
1469 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1471 * NEWS: Add an entry regarding the improvement of the next/step
1472 operation on Alpha Tru64 multi-processor machines.
1474 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1476 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1478 * Makefile.in: Update all _h macro definitions.
1479 * Makefile.in (install-gdbtk): Move to install section.
1480 (rdi-share/libangsd.a): Move to end of file.
1482 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1484 * frame.c (frame_register_unwind): When a register, set addrp to
1485 the register's byte.
1487 2002-08-20 Michael Snyder <msnyder@redhat.com>
1489 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1490 used locally, so move them from the target machine header to here.
1491 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1492 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1494 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1496 2002-08-20 Andrew Cagney <cagney@redhat.com>
1498 * NEWS: Mention that the Apollo line was made obsolete.
1499 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1500 m68*-hp-hpux* obsolete.
1501 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1502 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1503 * buildsym.c (make_blockvector): Make static.
1504 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1505 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1506 (ALLDEPFILES): Remove dstread.c.
1507 (dstread.o): Obsolete make rule.
1508 * dstread.c: Makefile obsolete.
1510 * config/m68k/hp300hpux.mt: Ditto.
1511 * config/m68k/hp300hpux.mh: Ditto.
1512 * config/m68k/hp300bsd.mt: Ditto.
1513 * config/m68k/hp300bsd.mh: Ditto.
1514 * config/m68k/apollo68b.mt: Ditto.
1515 * config/m68k/apollo68v.mh: Ditto.
1516 * config/m68k/apollo68b.mh: Ditto.
1518 2002-08-20 Michael Snyder <msnyder@redhat.com>
1520 * mips-tdep.c (mips_in_return_stub): Make static.
1521 (mips_gdbarch_init): Set in_solib_return_trampoline.
1522 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1524 2002-08-20 Michael Snyder <msnyder@redhat.com>
1526 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1527 * gdbarch.c, gdbarch.h: Regenerate.
1528 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1530 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1532 2002-08-20 Michael Snyder <msnyder@redhat.com>
1534 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1535 (mips_gdbarch_init): Set skip_trampoline_code,
1536 in_solib_call_trampoline.
1537 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1538 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1540 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1542 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1544 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1545 vector type for ev registers.
1546 (e500_pseudo_register_read): New function.
1547 (e500_pseudo_register_write): New function.
1548 (e500_dwarf2_reg_to_regnum): New function.
1549 (PPC_UISA_NOFP_SPRS): New macro.
1550 (PPC_EV_REGS): New macro.
1551 (PPC_GPRS_PSEUDO_REGS): New macro.
1552 (registers_e500): New register set for e500.
1553 (variants): Add e500 variant.
1554 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1555 before setting architectural dependent variations. Initialize ev
1556 registers numbers. Add case for e500 architecture. Set the
1557 number of pseudo registers.
1559 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1561 * rs6000-tdep.c: Clean up comments.
1563 2002-08-20 Andrew Cagney <cagney@redhat.com>
1565 * h8300-tdep.c: Re-indent file.
1567 2002-08-20 Jim Blandy <jimb@redhat.com>
1569 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1572 2002-08-20 Keith Seitz <keiths@redhat.com>
1574 * breakpoints.c (watch_command_1): Use internal breakpoint
1575 when setting a watchpoint_scope breakpoint.
1577 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1579 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1580 (build_builtin_type_vec64i): Ditto.
1581 (build_builtin_type_vec128): Ditto.
1582 (build_builtin_type_vec128i): Ditto.
1584 2002-08-19 Michael Snyder <msnyder@redhat.com>
1586 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1587 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1588 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1589 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1590 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1591 CALL_DUMMY_ADDRESS): Delete.
1592 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1593 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1594 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1595 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1596 push_return_address.
1597 (mips_register_raw_size, mips_eabi_use_struct_convention,
1598 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1599 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1600 mips_init_extra_frame_info, mips_eabi_push_arguments,
1601 mips_n32n64_push_arguments, mips_push_return_address,
1602 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1603 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1605 2002-08-19 Michael Snyder <msnyder@redhat.com>
1607 * mips-tdep.c (mips_frame_num_args): New function.
1608 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1609 frame_saved_pc, frame_args_address, frame_locals_address,
1610 frame_num_args, and frame_args_skip.
1611 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1612 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1613 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1614 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1616 2002-08-20 Michael Snyder <msnyder@redhat.com>
1618 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1619 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1620 * mips-tdep.c (mips_store_struct_return): New function.
1621 (mips_extract_struct_value_address): New function.
1622 (mips_gdbarch_init): Set store_struct_return and
1623 extract_struct_value_address.
1625 2002-08-20 David Carlton <carlton@math.stanford.edu>
1627 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1628 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1629 (read_file_scope): Check that line_header is nonzero before
1630 decoding macro information.
1632 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1634 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1635 flag the general-purpose registers as floating-point on targets
1636 that don't support the floating-point registers.
1638 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1640 * rs6000-tdep.c (altivec_register_p): Delete.
1641 (rs6000_do_altivec_registers): Delete.
1642 (rs6000_altivec_registers_info): Delete.
1643 (rs6000_do_registers_info): Delete.
1644 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1645 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1647 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1649 * infcmd.c (do_registers_info): Print vector registers in hex
1651 (print_vector_info): Check that printing registers
1653 (print_float_info): Ditto.
1655 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1657 * mips-tdep.c (mips_gdbarch_init): Update.
1658 (mips_o32_extract_return_value): Rewrite.
1659 (mips_o32_store_return_value): Rewrite.
1660 (mips_o32_xfer_return_value): New function.
1661 (mips_xfer_register): Tweak debug print message. Allow for
1662 buf_offset when dumping the value transfered.
1664 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1666 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1667 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1668 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1669 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1670 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1672 2002-08-14 Michael Snyder <msnyder@redhat.com>
1674 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1676 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1678 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1680 (P): New macro to define a register as a pseudo register.
1681 (R, R4, R8, R16, FR32, R64, R0): Updated.
1682 (struct variant): Add new fields for number of pseudo registers
1683 and number of total registers.
1684 (tot_num_registers): New macro replacing....
1685 (num_registers): ...deleted macro.
1686 (num_registers): New function.
1687 (num_pseudo_registers): New function.
1688 (variants): Update all variants to intialize new fields correctly.
1689 Postpone initialization of number of pseudo regs and real regs.
1690 (init_variants): New function.
1691 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1694 2002-08-19 David Carlton <carlton@math.stanford.edu>
1696 * valops.c (search_struct_field): Change error message to treat
1697 return value of 0 from value_static_field as meaning that field is
1699 (value_struct_elt_for_reference): Ditto.
1700 * values.c (value_static_field): Treat an unresolved location the
1701 same as a nonexistent symbol. Fix PR gdb/635.
1702 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1703 enclosed. Fix PR gdb/574.
1704 * MAINTAINERS: Add self to Write After Approval list.
1706 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1708 * mips-tdep.c (mips_xfer_register): New function.
1709 (mips_n32n64_extract_return_value): Rewrite.
1710 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1711 instead of deprecated_extract_return_value.
1713 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1715 * rs6000-tdep.c (TDEP): Delete macro.
1716 (branch_dest): Replace use of TDEP macro with its body.
1717 (rs6000_pop_frame): Ditto.
1718 (rs6000_push_arguments): Ditto.
1719 (rs6000_skip_trampoline_code): Ditto.
1720 (rs6000_frame_saved_pc): Ditto.
1721 (rs6000_frame_chain): Ditto.
1722 (rs6000_register_name): Ditto.
1723 (rs6000_register_byte): Ditto.
1724 (rs6000_register_raw_size): Ditto.
1725 (rs6000_register_virtual_type): Ditto.
1726 (rs6000_register_convertible): Ditto.
1727 (rs6000_convert_from_func_ptr_addr): Ditto.
1729 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1731 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1733 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1734 MIPS_LINUX_JB_ELEMENT_SIZE.
1735 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1736 for MAX_REGISTER_RAW_SIZE arrays.
1737 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1738 MIPS_LINUX_JB_ELEMENT_SIZE.
1740 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1742 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1744 2002-08-19 Aidan Skinner <aidan@velvet.net>
1746 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1747 ada-valprint.c ada-tasks.c.
1748 (YYFILES): Add ada-exp.y.
1749 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1750 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1751 (ada-exp.tab.o): New target.
1753 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1755 * regcache.c (regcache_xfer_part): New function.
1756 (regcache_raw_read_part): New function.
1757 (regcache_raw_write_part): New function.
1758 (regcache_cooked_read_part): New function.
1759 (regcache_cooked_write_part): New function.
1760 * regcache.h (regcache_raw_read_part): Declare.
1761 (regcache_raw_write_part): Declare.
1762 (regcache_cooked_read_part): Declare.
1763 (regcache_cooked_write_part): Declare.
1765 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1767 * remote.c (remote_open_1): Add async_p.
1768 (remote_async_open_1): Delete.
1769 (open_remote_target): Delete.
1770 (remote_open, extended_remote_open): Update calls to remote_open_1.
1771 (remote_async_open, extended_remote_async_open): Call
1772 remote_open_1 instead of remote_async_open_1.
1774 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1776 * blockframe.c: Fix a few coding standard violations.
1778 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1780 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1782 * config/i386/tm-i386sco5.h: ... here. File removed.
1783 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1785 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1786 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1787 (TM_FILE): Set to tm-i386.h.
1788 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1789 * config/i386/tm-i386v.h: Remove file.
1790 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1791 instead of "i386/tm-i386v.h".
1792 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1793 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1795 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1796 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1799 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1801 * config/i386/nm-i386v.h: Add protection against
1803 (i386_register_u_addr): Remove prototype.
1804 (register_u_addr): New prototype.
1805 (REGISTER_U_ADDR): Redefine accordingly.
1806 * i386v-nat.c: Improve several comments.
1807 (i386_register_u_addr): Change signature and rename to
1808 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1811 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1813 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1814 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1815 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1816 deprecated_extract_return_value.
1817 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1818 rename mips_o32o64_push_arguments.
1819 (mips_gdbarch_init): Update.
1820 (mips_extract_return_value): Delete.
1821 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1822 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1823 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1824 (mips_n32n64_extract_return_value): Clone
1825 mips_extract_return_value.
1826 (mips_store_return_value): Delete.
1827 (mips_o32_store_return_value): Clone mips_store_return_value.
1828 (mips_o64_store_return_value): Clone mips_store_return_value.
1829 (mips_eabi_store_return_value): Clone mips_store_return_value.
1830 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1832 2002-08-18 Aidan Skinner <aidan@velvet.net>
1834 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1835 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1837 2002-08-18 Aidan Skinner <aidan@velvet.net>
1839 * ada-lang.c: Run through gdb_indent.sh.
1840 * ada-lang.h: Run through gdb_indent.sh.
1841 * ada-tasks.c: Run through gdb_indent.sh.
1842 * ada-typeprint.c: Run through gdb_indent.sh.
1843 * ada-valprint.c: Run through gdb_indent.sh.
1845 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1847 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1850 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1852 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1854 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1855 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1857 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1858 write_register_gen instead of write_register_bytes.
1860 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1861 i[3456]-*-osf1mk* configurations have been made obsolete.
1862 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1863 i[3456]86-*-osf1mk* hosts obsolete.
1864 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1866 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1867 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1868 config/i386/i386m3.mt, config/i386/nm-m3.h,
1869 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1870 config/i386/i386mk.mh, config/i386/i386mk.mt,
1871 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1873 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1874 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1875 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1877 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1879 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1880 (hppa_value_returned_from_stack): Declare.
1881 (hppa_extract_return_value): Declare.
1882 * config/pa/hppa.mt: New file.
1883 * configure.tgt: Recognize hppa*-*-*.
1884 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1886 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1888 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1891 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1893 * top.c (gdb_rl_operate_and_get_next): Make sure
1894 operate-and-get-next functions correctly even when the history
1895 list is completely filled.
1897 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1899 * MAINTAINERS (Target Instruction Set Architectures): Rename
1900 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1901 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1902 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1903 already listed under Host/Native.
1905 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1906 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1909 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1911 * config/ia64/ia64.mt: New file.
1912 * config/alpha/alpha.mt: New file.
1913 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1914 ia64-linux-gnu. Mention that ia64-elf is broken.
1915 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1917 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1919 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1920 generic_func_frame_valid instead of func_frame_valid.
1922 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1924 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1925 procfs appears to be broken when debugging on multi-processor
1926 machines. So enable software single stepping in order to avoid
1927 using the procfs interface to do next/step operations, using
1928 internal breakpoints instead.
1930 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1931 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1932 make this pc address equal to the value it would have if the
1933 system stepping capability was used. Also set a new flag used
1934 to ensure that we don't readjust the PC one more time later.
1936 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1937 address by DECR_PC_AFTER_BREAK when software single step is
1938 in use for this architecture, as this has already been taken
1939 care of in handle_inferior_event().
1941 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1943 * infrun.c (handle_inferior_event): Minor reformatting, to make
1944 a rather long condition expression easier to read.
1946 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1948 * Makefile.in (gdbtk.o): Move to end of file.
1949 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1950 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1951 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1952 (gdbtk-wrapper.o, gdbres.o): Ditto.
1954 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1956 * Makefile.in (copying.o): Separate out compile rule.
1957 (hpux-thread.o, procfs.o, signals.o): Ditto.
1958 (v850ice.o, z8k-tdep.o): Ditto.
1959 (tui-file.o): Move to TUI section.
1960 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1961 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1963 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1965 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1966 skip_trampoline_code, for better namespace-proofing.
1968 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1970 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1972 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1974 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1976 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1977 signal, check whether we hit a breakpoint before checking for a
1978 single step breakpoint. Otherwise, GDB fails to notice that a
1979 breakpoint has been hit when stepping onto a breakpoint.
1981 2002-08-16 Keith Seitz <keiths@redhat.com>
1983 * gdb-events.sh (clear_gdb_event_hooks): New function.
1984 * gdb-events.c: Regenerate.
1985 * gdb-events.h: Regenerate.
1987 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1989 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1990 not_a_sw_breakpoint.
1991 * breakpoint.h (bpstat_stop_status): Add parameter names.
1993 2002-08-16 Grace Sainsbury <graces@redhat.com>
1995 * remote.c (remote_insert_hw_breakpoint)
1996 (remote_remove_hw_breakpoint): Fix calculation of length field
1999 2002-08-15 Michael Snyder <msnyder@redhat.com>
2001 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2002 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2003 (supply_fpregset): Ditto.
2005 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2006 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2007 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2008 (TARGET_READ_SP): Delete.
2009 (DO_REGISTERS_INFO): Delete.
2010 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2012 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2013 from macros to functions.
2015 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2016 (mips_register_convertible, mips_register_convert_to_virtual,
2017 mips_register_convert_to_raw): Make static.
2018 (mips_read_sp): New function.
2019 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2020 (mips_do_registers_info): Make static.
2021 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2022 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2023 (mips_register_convert_from_type, mips_register_convert_to_type):
2025 (mips_gdbarch_init): Set up function_start_offset,
2026 register_virtual_size, pc_in_sigtramp.
2028 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2030 * infcmd.c (vector_info): New function.
2031 (_initialize_infcmd): Add command "info vector".
2032 (print_vector_info): New function.
2034 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2035 * gdbarch.h, gdbarch.c: Regenerate.
2037 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2039 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2040 ``print_all''. Only print vector registers when ``print_all''.
2042 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2044 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2045 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2047 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2048 Add `args' parameter.
2049 * gdbarch.h, gdbarch.c: Regenerate.
2051 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2053 * infcmd.c (float_info): Call print_float_info.
2054 (print_float_info): New function. By default, print the
2055 floating-point registers.
2057 * arch-utils.h (default_print_float_info): Delete declaration.
2058 * arch-utils.c (default_print_float_info): Delete function.
2060 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2062 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2065 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2068 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2069 * configure.host: Make i[3456]86-*-aix host obsolete.
2070 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2071 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2072 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2073 config/i386/xm-i386aix.h: Make files obsolete.
2074 * i386aix-nat.c: Make file obsolete.
2075 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2076 (i386aix-nat.o): Make target obsolete.
2078 * config/i386/nm-gnu.h: Removed.
2079 * config/i386/nm-i386gnu.h: New file.
2080 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2081 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2083 * config/i386/tm-i386gnu.h: ... here. Removed.
2084 * config/i386/xm-i386gnu.h: Removed.
2085 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2086 (NAT_FILE): Set to nm-i386gnu.h.
2087 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2088 * i386-tdep.c: New file.
2089 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2090 (i386gnu-tdep.o): Specify dependencies.
2092 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2094 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2095 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2096 Adjust a few comments to reflect reality a bit closer.
2097 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2098 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2099 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2100 target_insert_watchpoint, target_remove_watchpoint):
2102 * config/i386/nm-i386sco5.h: ... here.
2103 (kernel_u_size): Add prototype. Improve a few comments and add
2104 protection against multiple inclusion.
2106 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2109 * uw-thread.c (SP_ARG0): Define if not already defined.
2110 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2112 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2114 * config/i386/tm-i386.h: Don't include "regcache.h".
2116 * i387-tdep.h (i387_print_float_info): New prototype.
2117 * i387-tdep.c (print_i387_value, print_i387_ext,
2118 print_i387_status_word, print_i387_control_word): Add `struct
2119 ui_file *' argument and use it for output.
2120 (i387_print_float_info): Renamed from i387_float_info. Add
2121 `struct gdbarch *' and `struct ui_file *' arguments and use the
2123 * i386-tdep.c: Include "i387-tdep.h".
2124 (i386_gdbarch_init): Set print_float_info.
2125 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2126 (FLOAT_INFO): Remove define.
2128 2002-08-13 Michael Snyder <msnyder@redhat.com>
2130 * mips-tdep.c (mips_push_arguments): Rename to
2131 mips_eabi_push_arguments, and tune for EABI.
2132 (MIPS_REGS_HAVE_HOME_P): Delete.
2133 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2134 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2135 Delete references to mips_regs_have_home_p.
2137 2002-08-14 Keith Seitz <keiths@redhat.com>
2139 * Makefile.in (install-gdbtk): Create insight plugin directory.
2140 Install plugins.tcl file.
2142 2002-08-14 Keith Seitz <keiths@redhat.com>
2144 * configure.in: Move SUBDIRS to near top of the file so that
2145 --enable options may add things to it.
2146 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2147 * configure: Regenerate.
2149 2002-08-13 Michael Snyder <msnyder@redhat.com>
2151 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2152 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2153 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2155 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2157 * vax-tdep.c (vax_get_saved_register): Delete function.
2158 (vax_gdbarch_init): Update.
2159 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2160 (ns32k_gdbarch_init): Update.
2161 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2162 (alpha_gdbarch_init): Update.
2164 2002-08-13 Andrew Cagney <cagney@redhat.com>
2166 * regcache.c (init_regcache_descr): Overallocate the
2167 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2168 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2170 (set_register_cached): Add range checking assertions. Use
2173 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2175 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2176 numbers for MMX registers.
2178 2002-08-13 Andrew Cagney <cagney@redhat.com>
2180 * i386-tdep.c (i386_gdbarch_init): Use
2181 generic_unwind_get_saved_register.
2183 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2185 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2186 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2188 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2189 Delete. Add comment regarding this now-deleted target method.
2191 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2193 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2194 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2195 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2196 real PC and the page number (if it's within the memory bank window).
2197 (m68hc11_pseudo_register_write): Likewise when saving.
2198 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2199 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2200 (m68hc11_register_raw_size): And use 32-bit for it.
2201 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2202 16K memory bank is used by the prog; also use the virtual pc.
2204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2206 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2207 (m68hc11_gdbarch_init): Install it in gdbarch.
2208 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2209 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2210 (MSYMBOL_SIZE): New for documentation.
2211 (insn_return_kind): Enum to specify how a function returns.
2212 (frame_extra_info): Cleanup and record the return mode.
2213 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2214 register in address computation.
2215 (m68hc11_get_return_insn): New to obtain the return instruction used
2217 (m68hc11_frame_init_saved_regs): Take into account the return
2218 instruction used by the function for far and interrupt functions.
2219 (m68hc11_init_extra_frame_info): Take into account page register.
2220 (m68hc11_frame_args_address): Adjust according to the return mode.
2221 (show_regs): Print page register only when it's used.
2223 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2225 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2226 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2227 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2229 (m68hc11_register_raw_size): Likewise.
2231 2002-08-13 Andrew Cagney <cagney@redhat.com>
2233 * i386-tdep.c (i386_register_name): Handle mmx registers.
2234 (mmx_regnum_p): New function.
2235 (i386_mmx_names): New array.
2236 (mmx_num_regs): New variable.
2237 (i386_pseudo_register_read): New function.
2238 (i386_pseudo_register_write): New function.
2239 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2241 * regcache.c (regcache_raw_read_unsigned): New function.
2242 (regcache_raw_read_signed): New function.
2243 * regcache.h (regcache_raw_read_unsigned): Declare.
2244 (regcache_raw_read_signed): Declare.
2246 2002-08-13 Andrew Cagney <cagney@redhat.com>
2248 * regcache.c (regcache_raw_read_as_address): Delete function.
2249 (regcache_cooked_read_signed): New function.
2250 (regcache_cooked_read_unsigned): New function.
2251 * regcache.h (regcache_cooked_read_signed): Declare.
2252 (regcache_cooked_read_unsigned): Declare.
2253 (regcache_raw_read_as_address): Delete declaration.
2255 * blockframe.c (generic_read_register_dummy): Use
2256 regcache_cooked_read_unsigned.
2257 * i386-tdep.c (i386_extract_struct_value_address): Use
2258 regcache_cooked_read_unsigned.
2260 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2263 double sizes according to ELF ABI flags.
2264 (gdbarch_tdep): Record elf_flags.
2266 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2268 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2269 (m6812_prolog): They can appear in 68HC12 function prologue.
2270 (m68hc11_frame_chain): Cleanup.
2272 2002-08-12 Andrew Cagney <cagney@redhat.com>
2274 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2276 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2277 (i386_linux_register_raw_size): Delete function.
2278 (i386_linux_init_abi): Update.
2279 * i386-tdep.c (i386_register_raw_size): Delete function.
2280 (i386_register_byte): Delete function.
2281 (i386_gdbarch_init): Update.
2282 (i386_register_size): Delete array.
2283 (i386_register_offset): Delete array.
2285 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2286 (REGISTER_RAW_SIZE): Delete macro.
2287 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2288 (REGISTER_BYTE): Delete macro.
2290 2002-08-11 Aidan Skinner <aidan@velvet.net>
2292 * ada-lang.c (ada_lookup_partial_symbol)
2293 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2294 prototype names so that grep ^func works properly.
2296 * ada-lang.c (ada_array_element_type)
2297 (ada_lookup_partial_symbol): Fix typos in parameter list.
2299 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2300 Fix prototype names so that grep ^func works properly.
2302 2002-08-10 Andrew Cagney <cagney@redhat.com>
2303 Elena Zannoni <ezannoni@redhat.com>
2304 Martin M. Hunt <hunt@redhat.com>
2306 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2307 (build_builtin_type_vec128i): Set the vector bit.
2308 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2309 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2310 (build_builtin_type_vec64): New function.
2311 (build_builtin_type_vec64i): New function.
2312 (build_gdbtypes): Initialize builtin_type_vec64 and
2313 builtin_type_vec64i.
2315 2002-08-09 Andrew Cagney <cagney@redhat.com>
2317 * regcache.c (regcache_dump): Compare the register offset
2319 * arch-utils.c (generic_register_byte): New function.
2320 * arch-utils.h (generic_register_byte): Declare.
2321 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2322 * gdbarch.h, gdbarch.c: Regenerate.
2324 2002-08-09 Andrew Cagney <cagney@redhat.com>
2326 * regcache.c: Include "gdbcmd.h"
2327 (_initialize_regcache): Add commands "maintenance print
2328 registers", "maintenance print raw-registers" and "maintenance
2329 print cooked-registers".
2330 (enum regcache_dump_what): Define.
2331 (dump_endian_bytes): New function.
2332 (regcache_dump): New function.
2333 (regcache_print): New function.
2334 (maintenance_print_registers): New function.
2335 (maintenance_print_raw_registers): New function.
2336 (maintenance_print_cooked_registers): New function.
2337 * Makefile.in (regcache.o): Update dependencies.
2339 2002-08-09 Michael Snyder <msnyder@redhat.com>
2341 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2342 (mips_push_arguments): Correct some comments. Use paddr_nz
2343 for printing addresses in debug output. Replace static
2344 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2345 (mips_n32n64_push_arguments): New function, cloned from
2346 mips_push_arguments and tuned for the n32/n64 ABI.
2347 (mips_push_register): Buffer needs dynamic allocation.
2348 (mips_print_register): Ditto.
2349 (do_gp_register_row): Ditto.
2350 (mips_store_return_value): Ditto.
2351 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2353 2002-08-09 Don Howard <dhoward@redhat.com>
2355 * memattr.c (mem_info_command): Print special case of upper bound
2356 as max CORE_ADDR + 1.
2358 2002-08-08 Michael Snyder <msnyder@redhat.com>
2360 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2361 returns structs by ref if they're too big to fit in two registers.
2363 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2365 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2367 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2368 mips_find_saved_regs().
2369 (mips_pop_frame): Likewise.
2371 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2373 * blockframe.c (frame_saved_regs_register_unwind): Revise
2374 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2377 2002-08-09 Grace Sainsbury <graces@redhat.com>
2379 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2380 T-packets; the 'a' is not taken as a register number.
2381 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2382 (remote_stopped_data_address): New functions; add to target
2384 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2385 prototypes to match other implementations of this
2386 function. replace integer argument with pointer -- the length
2387 field in the Z-packet is the length of what is pointed to or 1 if
2388 pointer is null. Add to target vector.
2389 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2393 * remote.c (remote_wait): Add support to extract optional
2394 watchpoint information from T-packet. Ignore unrecognized
2395 optional info in T-packet.
2396 (remote_async_wait): Ditto.
2398 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2400 * cli/cli-dump.c: Change fopen modes to use binary open modes
2401 as defined in include/fopen-bin.h throughout.
2403 2002-08-08 Michael Snyder <msnyder@redhat.com>
2405 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2407 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2409 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2410 assertion failure by returning early after a warning.
2412 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2414 * mips-tdep.c (mips_find_saved_regs): Make static.
2415 (mips_frame_init_saved_regs): New function.
2416 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2417 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2418 (mips_find_saved_regs): Delete declaration.
2420 2002-08-08 Grace Sainsbury <graces@redhat.com>
2422 * remote.c (remote_wait, remote_async_wait): Change
2423 thread_num from int to ULONGEST.
2424 (unpack_varlen_hex): Change result parameter from
2425 int * to ULONGEST *.
2427 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2429 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2430 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2432 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2434 2002-08-08 Andrew Cagney <cagney@redhat.com>
2436 * gcore.c (override_derive_stack_segment): Delete variable.
2437 (preempt_derive_stack_segment): Delete function.
2438 (derive_stack_segment): Delete function.
2439 (default_derive_stack_segment): Renamed to derive_stack_segment.
2440 (override_derive_heap_segment): Delete variable.
2441 (preempt_derive_heap_segment): Delete function.
2442 (derive_heap_segment): Delete function.
2443 (default_derive_heap_segment): Rename to derive_heap_segment.
2445 2002-08-06 Michael Snyder <msnyder@redhat.com>
2447 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2448 * mips-tdep.c (mips_EABI_use_struct_convention,
2449 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2450 New functions. (mips_use_struct_convention): Delete.
2451 (mips_gdbarch_init): set use_gdbarch_convention.
2453 2002-08-06 Michael Snyder <msnyder@redhat.com>
2455 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2456 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2457 mips_o32_reg_struct_has_addr): New functions.
2458 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2460 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2462 * regcache.c (pseudo_register): Delete function.
2463 (fetch_register): Delete function.
2464 (store_register): Delete function.
2465 (regcache_raw_read, legacy_read_register_gen): Use
2466 target_fetch_registers instead of fetch_register.
2467 (legacy_write_register_gen, regcache_raw_write): Use
2468 target_store_register instead of store_register.
2469 (write_register_bytes): Ditto.
2471 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2472 (STORE_PSEUDO_REGISTER): Delete.
2473 * gdbarch.h, gdbarch.c: Regenerate.
2475 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2477 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2478 write dump file binary.
2480 2002-08-05 Michael Snyder <msnyder@redhat.com>
2482 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2483 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2484 (mips_gdbarch_init): Set N32 target to be mips64.
2486 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2488 * frame.c (find_saved_register): Break out of loop once saved
2489 register address is found. Don't mention sparc in loop comment
2492 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2494 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2495 mips_default_saved_regsize to 8.
2497 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2499 * gcore.c: Do not include <sys/procfs.h>.
2500 * Makefile.in (gcore.o): Update dependencies.
2502 2002-08-06 Andrew Cagney <cagney@redhat.com>
2504 * configure.tgt: Make arc-*-* obsolete.
2505 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2506 * MAINTAINERS: Make arc-elf obsolete.
2507 * arc-tdep.c: Make file obsolete.
2508 * config/arc/arc.mt: Ditto.
2509 * config/arc/tm-arc.h: Ditto.
2511 2002-08-05 Theodore A. Roth <troth@verinet.com>
2513 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2515 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2517 * mcore-tdep.c (mcore_gdbarch_init): Use
2518 generic_unwind_get_saved_register instead of
2519 generic_get_saved_register.
2520 * v850-tdep.c (v850_gdbarch_init): Ditto.
2521 * frv-tdep.c (frv_gdbarch_init): Ditto.
2522 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2523 * s390-tdep.c (s390_gdbarch_init): Ditto.
2524 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2525 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2526 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2528 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2530 * objfiles.h: Add missing #include "symfile.h"
2532 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2534 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2536 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2537 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2540 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2542 * NEWS: Cleanup and nitpick.
2544 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2546 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2548 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2550 * Makefile.in (gdbtk-bp.o): Update dependencies.
2551 (gdbtk-register.o): Ditto.
2552 (gdbtk-varobj.o): Ditto.
2554 2002-08-03 Andrew Cagney <cagney@redhat.com>
2556 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2557 m68hc11_fetch_pseudo_register.
2558 (m68hc11_pseudo_register_write): Replace
2559 m68hc11_store_pseudo_register.
2560 (m68hc11_gdbarch_init): Update.
2562 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2564 * gdbarch.sh: Include "gdb_string.h".
2565 * gdbarch.c: Regenerate.
2567 * regcache.c: Include "gdb_string.h".
2568 * ax-general.c: Ditto.
2570 * std-regs.c: Ditto.
2571 * fbsd-proc.c: Ditto.
2574 * Makefile.in (regcache.o): Update dependencies.
2575 (thread.o, gdbarch.o): Ditto.
2576 (ax-general.o, gdbarch.o): Ditto.
2577 (varobj.o, std-regs.o): Ditto.
2578 (fbsd-proc.o): Specify dependencies.
2580 2002-08-02 Andrew Cagney <cagney@redhat.com>
2582 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2584 (regcache_cooked_write): Ditto.
2586 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2588 * regcache.c (regcache_cooked_read): New function.
2589 (regcache_cooked_write): New function.
2590 (read_register_gen): Rewrite using regcache_cooked_read.
2591 (write_register_gen): Rewrite using regcache_cooked_write.
2593 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2596 2002-08-02 Andrew Cagney <cagney@redhat.com>
2598 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2599 Replace the architecture methods register_read and register_write.
2600 * gdbarch.h, gdbarch.c: Regenerate.
2601 * regcache.c (init_regcache_descr): Update.
2602 (read_register_gen): Update.
2603 (write_register_gen): Update.
2604 (supply_register): Update comment.
2606 * sh-tdep.c (sh_gdbarch_init): Update.
2607 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2608 `regcache' and `gdbarch' parameters. Make `buffer' a void
2609 pointer. Update code.
2610 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2611 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2612 void pointer. Update code.
2613 (sh64_register_write): Delete.
2614 (sh4_register_read): Delete.
2615 (sh64_register_read): Delete.
2616 (sh4_register_write): Delete.
2617 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2618 void pointer, `to' parameter a void pointer.
2619 (sh_sh64_register_convert_to_raw): Ditto.
2621 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2623 * mips-tdep.c (mips_register_virtual_type): Use architecture
2624 invariant return values.
2626 2002-08-01 Andrew Cagney <cagney@redhat.com>
2628 * linux-proc.c: Include "gdb_string.h".
2629 * Makefile.in (linux-proc.o): Update dependency list.
2631 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2633 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2636 2002-08-01 Grace Sainsbury <graces@redhat.com>
2638 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2639 to_insert_watchpoint, to_remove_watchpoint,
2640 to_stopped_by_watchpoint, to_stopped_data_address,
2641 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2642 target vecctor. Define their corresponding macros so they call
2645 * target.c: Add default and debug versions of for
2646 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2647 to_insert_watchpoint, to_remove_watchpoint,
2648 to_stopped_by_watchpoint, to_stopped_data_address,
2649 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2651 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2653 * mips-tdep.c (mips_register_virtual_type): New function.
2654 (mips_gdbarch_init): Register mips_register_virtual_type()
2655 with gdbarch machinery.
2656 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2657 this file instead of tm-bigmips.h.
2658 (MIPS_REGSIZE): Delete this macro.
2659 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2660 multiarch version in mips-tdep.c will be found.
2662 2002-08-01 Andrew Cagney <cagney@redhat.com>
2664 * NEWS: Menion that CHILL has been made obsolete.
2666 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2667 * stabsread.c (read_range_type): Ditto.
2668 * gdbtypes.h: Ditto.
2669 * language.c (binop_type_check): Ditto.
2670 (binop_result_type): Ditto.
2671 (integral_type): Ditto.
2672 (character_type): Ditto.
2673 (string_type): Ditto.
2674 (boolean_type): Ditto.
2675 (structured_type): Ditto.
2676 (lang_bool_type): Ditto.
2677 (binop_type_check): Ditto.
2678 * language.h (_LANG_chill): Ditto.
2679 * dwarfread.c (set_cu_language): Ditto.
2680 * dwarfread.c (CHILL_PRODUCER): Ditto.
2681 * dwarfread.c (handle_producer): Ditto.
2682 * expression.h (enum exp_opcode): Ditto.
2683 * eval.c: Ditto for comments.
2684 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2685 * expprint.c (print_subexp): Ditto.
2686 (print_subexp): Ditto.
2687 * valops.c (value_cast): Ditto.
2688 (search_struct_field): Ditto.
2689 * value.h (COERCE_VARYING_ARRAY): Ditto.
2690 * symfile.c (init_filename_language_table): Ditto.
2691 (add_psymbol_with_dem_name_to_list): Ditto.
2692 * valarith.c (value_binop): Ditto.
2694 * valops.c (value_slice): Ditto.
2695 * symtab.h (union language_specific): Ditto.
2696 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2697 (SYMBOL_DEMANGLED_NAME): Ditto.
2698 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2699 * defs.h (enum language): Ditto.
2700 * symtab.c (got_symtab): Ditto.
2701 * utils.c (fprintf_symbol_filtered): Ditto.
2703 * ch-typeprint.c: Make file obsolete.
2704 * ch-valprint.c: Make file obsolete.
2705 * ch-lang.h: Make file obsolete.
2706 * ch-exp.c: Make file obsolete.
2707 * ch-lang.c: Make file obsolete.
2709 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2711 (TARGET_FLAGS_TO_PASS): Ditto.
2712 (CHILLFLAGS): Obsolete.
2714 (CHILL_FOR_TARGET): Obsolete.
2715 (CHILL_LIB): Obsolete.
2716 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2718 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2719 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2721 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2724 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2726 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2727 This does not change anything at the moment, but will be helpful
2728 later when full Ada support is integrated.
2730 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2732 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2735 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2737 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2738 and save it in a local variable. Use variable in later test.
2740 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2742 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2743 test. (Thanks to Daniel Jacobowitz.)
2745 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2747 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2748 (mips_abi_strings): Add "n64".
2749 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2751 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2753 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2754 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2756 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2758 * utils.c (host_pointer_to_address, address_to_host_pointer):
2759 Use gdb_assert() instead of explicit call to internal_error().
2761 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2763 * Makefile.in (rs6000-nat.o): Update dependencies.
2765 From Nicholas Duffek:
2766 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2767 (aix-thread.o): New rule.
2768 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2769 * config/powerpc/aix432.mh: New file.
2771 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2773 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2774 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2775 (fetch_core_registers, ppc_linux_supply_gregset)
2776 (ppc_linux_supply_fpregset): New functions.
2777 (ppc_linux_regset_core_fns): New.
2778 (_initialize_ppc_linux_tdep): Call add_core_fns.
2779 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2780 and ppc_linux_supply_gregset.
2781 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2782 (supply_fpregset): Call ppc_linux_supply_fpregset.
2783 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2785 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2787 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2789 * symtab.c (lookup_symbol): Demangle before lowercasing.
2791 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2793 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2795 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2796 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2797 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2798 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2800 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2801 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2802 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2803 (avr-tdep.o, mon960-rom.o): Ditto.
2804 (aout_stabs_gnu_h): Define.
2805 (symtab_h): Remove $(gdb_obstack_h).
2807 2002-07-30 Jim Blandy <jimb@redhat.com>
2809 Patch from David Carlton <carlton@math.stanford.edu>:
2810 * gdbinit.in: Move the `dir' commands that add GDB's own source
2811 directory to the search path to the end, so that the `gdb' source
2812 directory will be searched first.
2814 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2816 * gdb_obstack.h: New file.
2817 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2818 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2819 * objfiles.h: Include "gdb_obstack.h".
2820 * Makefile.in (gdb_obstack_h): Define.
2821 (symtab_h): Add $(gdb_obstack_h).
2822 (objfiles_h): Add $(gdb_obstack_h).
2824 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2825 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2826 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2827 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2828 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2829 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2830 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2831 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2833 * Makefile.in (bcache.o): Update dependencies.
2834 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2835 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2836 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2837 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2838 (stabsread.o, symfile.o, symmisc.o): Ditto.
2839 (symtab.o, typeprint.o, macroexp.o): Ditto.
2840 (macrotab.o, mdebugread.o): Ditto.
2841 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2842 (coff_ecoff_h, aout_aout64_h): Define.
2843 (aout_stabs_gnu_h, libaout_h): Define.
2845 2002-07-29 Andrew Cagney <cagney@redhat.com>
2847 * regcache.c (struct regcache_descr): Rename nr_registers to
2848 nr_cooked_registers. Revise comments describing the structure
2850 (init_regcache_descr): Update.
2851 (init_legacy_regcache_descr): Update.
2852 (read_register_gen, write_register_gen): When a cooked register in
2853 the raw register range, directly access the value from the raw
2856 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2858 * z8k-tdep.c: Do not include "obstack.h".
2859 * h8300-tdep.c, h8500-tdep.c: Ditto.
2860 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2861 * valprint.c, v850-tdep.c: Ditto.
2862 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2863 * mn10200-tdep.c: Ditto.
2865 * Makefile.in (z8k-tdep.o): Update dependencies.
2866 (m68hc11-tdep.o, valprint.o): Ditto.
2867 (v850-tdep.o, d10v-tdep.o): Ditto.
2868 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2869 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2870 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2871 (sh_opc_h, gdb_sim_sh_h): Define.
2872 (elf_sh_h, elf_bfd_h): Define.
2873 (opcode_m68hc11_h): Define.
2874 (OPCODES_SRC, OPCODES_DIR): define.
2875 (OPCODES): Use $(OPCODES_DIR).
2876 (gdb_sim_d10v_h): Rename sim_d10v_h.
2877 (gdb_sim_arm_h): Rename sim_arm_h.
2879 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2881 * utils.c (host_pointer_to_address, address_to_host_pointer):
2882 Change internal_error() message to indicate function responsible
2885 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2887 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2888 calls to local_hex_string_custom().
2890 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2892 * irix5-nat.c: Move IRIX shared library support from here...
2893 * solib-irix.c: ...to here. Revised substantially to work with
2894 generic solib framework.
2896 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2897 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2898 * mips-irix-tdep.c: New file.
2900 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2901 (mips-irix-tdep.o, solib-irix.o): New rules.
2902 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2904 * config/mips/irix6.mt (TDEPFILES): Likewise.
2905 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2907 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2909 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2910 disabled (via ``#if 0'') includes.
2912 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2914 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2915 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2916 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2917 Add support for the fpscr register.
2918 * rs6000-nat.c (regmap, fetch_inferior_registers)
2919 (store_inferior_registers, fetch_core_registers): Likewise.
2921 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2923 * rs6000-nat.c (language.h): Include.
2924 (special_regs): Delete this array.
2925 (regmap): New function.
2926 (fetch_register, store_register): Use regmap() to map gdb
2927 register numbers to ptrace register numbers. Also, use
2928 outputs from regmap() to make decisions regarding type of
2929 ptrace() call to make. In particular, don't compare against
2930 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2931 (fetch_inferior_registers, store_inferior_registers): Where
2932 possible, obtain register numbers from tdep struct. Don't
2933 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2934 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2935 (LAST_UISA_SP_REGNUM): Delete.
2937 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2939 * rs6000-nat.c (ppc-tdep.h): Include.
2940 (fetch_registers, store_register, fetch_core_registers): Don't
2941 access registers[] directly. Instead, use supply_register() or
2942 regcache_collect() as appropriate.
2943 (find_toc_address): Format hex address with local_hex_string().
2945 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2947 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2950 2002-07-24 Tom Tromey <tromey@redhat.com>
2952 * jv-exp.y: Marked all strings with _().
2953 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2955 (MethodInvocation, CastExpression, parse_number, yyerror,
2956 java_type_from_name, push_expression_name, yylex): Typo fixes.
2958 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2960 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2961 (tee_file_flush, tee_file_write, tee_file_fputs)
2962 (tee_file_isatty): New.
2963 * ui-file.h (tee_file_new): Add prototype.
2965 2002-07-24 Aidan Skinner <aidan@velvet.net>
2967 * ada-lang.c: Change k&r style function definitions to prototyped
2969 * ada-typeprint.c: Change k&r style function definitions to prototyped
2971 * ada-valprint.c: Change k&r style function definitions to prototyped
2974 2002-07-24 Andrew Cagney <cagney@redhat.com>
2976 * README: Remove reference to remote-bug.
2977 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2979 (m88k-nat.o): Delete rule.
2980 (m88k-tdep.o): Delete rule.
2981 (remote-bug.o): Delete rule.
2982 * MAINTAINERS: Mark as obsolete.
2983 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2984 * m88k-tdep.c: Make file obsolete.
2985 * config/m88k/m88k.mh: Ditto.
2986 * config/m88k/delta88v4.mh: Ditto.
2987 * config/m88k/delta88v4.mt: Ditto.
2988 * config/m88k/delta88.mt: Ditto.
2989 * config/m88k/delta88.mh: Ditto.
2990 * remote-bug.c: Ditto.
2991 * config/m88k/tm-delta88.h: Ditto.
2992 * config/m88k/nm-delta88v4.h: Ditto.
2993 * config/m88k/xm-delta88.h: Ditto.
2994 * config/m88k/xm-dgux.h: Ditto.
2995 * config/m88k/tm-m88k.h: Ditto.
2996 * config/m88k/nm-m88k.h: Ditto.
2997 * config/m88k/tm-delta88v4.h: Ditto.
2998 * m88k-nat.c: Ditto.
2999 * cxux-nat.c: Ditto.
3000 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3001 and m88*-*-* obsolete.
3002 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3005 2002-07-24 Andrew Cagney <cagney@redhat.com>
3007 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3008 constant. Same for local pointer variables.
3009 (extract_signed_integer): Ditto.
3010 * defs.h (extract_unsigned_integer): Update.
3011 (extract_signed_integer): Update.
3013 2002-07-24 Andrew Cagney <cagney@redhat.com>
3015 * regcache.c (regcache_raw_write): Change buf parameter to a
3016 constant void pointer.
3017 (regcache_raw_read): Change buf parameter to a void pointer.
3018 (legacy_write_register_gen): Change myaddr parameter a constant
3020 (supply_register): Change val parameter to a const void pointer.
3021 * regcache.h (regcache_raw_write): Update declaration.
3022 (regcache_raw_read): Update declaration.
3023 (supply_register): Update declaration.
3025 2002-07-24 Tom Tromey <tromey@redhat.com>
3027 * defs.h (gdb_readline_wrapper): Declare.
3028 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3029 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3030 * top.c (gdb_readline_wrapper): New function.
3031 (command_line_input): Use it.
3033 2002-07-24 Andrew Cagney <cagney@redhat.com>
3035 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3036 regcache_read and regcache_write.
3037 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3038 * regcache.c: Update.
3039 * sh-tdep.c (sh64_push_arguments): Update comment.
3040 (sh_pseudo_register_read): Update.
3041 (sh_pseudo_register_write): Update.
3042 (sh4_register_read): Update.
3043 (sh4_register_write): Update.
3044 (sh64_pseudo_register_read): Update.
3045 (sh64_pseudo_register_write): Update.
3046 (sh64_register_read): Update.
3047 (sh64_register_write): Update.
3048 * i386-tdep.c (i386_extract_return_value): Update.
3049 (i386_extract_struct_value_address): Update.
3050 (i386_extract_return_value): Update.
3051 * blockframe.c (generic_read_register_dummy): Update.
3052 (generic_call_dummy_register_unwind): Update
3053 * infrun.c (write_inferior_status_register): Update.
3055 2002-07-23 Jim Blandy <jimb@redhat.com>
3057 * parser-defs.h (expression_context_pc): Make this extern.
3058 (Thanks to Michael Snyder.)
3060 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3062 GDB 5.2.1 released from 5.2 branch.
3063 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3064 * README: Update to mention 5.2.1.
3066 2002-07-23 Mark Salter <msalter@redhat.com>
3068 * remote.c (remote_read_bytes): Fix check for error.
3070 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3072 * aix-thread.c (language.h): Include.
3073 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3074 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3075 Print newlines at end of debug messages.
3076 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3077 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3079 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3081 * aix-thread.c (ppc-tdep.h): Include.
3082 (special_register_p): New function.
3083 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3084 (store_regs_user_thread): Use register number information from
3085 gdbarch_tdep struct instead of hardcoded offsets relative to
3086 FIRST_UISA_SP_REGNUM.
3087 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3088 special_register_p() instead of using FPLAST_REGNUM and
3089 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3090 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3091 will be MQ's register number.
3093 2002-07-22 Michael Snyder <msnyder@redhat.com>
3095 * aix-thread.c (ops): Rename to aix_thread_ops.
3096 (base_ops): Rename to base_target.
3097 (ops_attach): Rename to aix_thread_attach.
3098 (ops_detach): Rename to aix_thread_detach.
3099 (ops_resume): Rename to aix_thread_detach.
3100 (ops_wait): Rename to aix_thread_wait.
3101 (ops_kill): Rename to aix_thread_kill.
3102 (init_ops): Rename to init_aix_thread_ops.
3103 (ops_fetch_register): Rename to aix_thread_fetch_register.
3104 (ops_store_register): Rename to aix_thread_store_register.
3105 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3106 (ops_thread_alive): Rename to aix_thread_thread_alive.
3107 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3108 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3109 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3110 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3111 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3112 (store_regs_lib): Rename to store_regs_user_thread.
3113 (store_regs_kern): Rename to store_regs_kernel_thread.
3115 2002-07-22 Michael Snyder <msnyder@redhat.com>
3117 * aix-thread.c (ops_prepare_to_store): Eliminate.
3118 (init_ops): Don't initialize ops.prepare_to_store.
3119 (store_regs_kern): Pre-fetch register buffers from child,
3120 because some registers may not be in the cache. Copy
3121 regs from register cache only if they are cached.
3122 (store_regs_lib): Copy regs from register cache only
3124 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3125 fill_gprs64): Ditto.
3127 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3129 * aix-thread.c (gdb_assert.h): Include.
3130 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3131 register sizes (from register cache) match size of buffer holding
3133 (fill_sprs32): Change parameter types to match those in the ptrace()
3135 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3136 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3138 2002-07-22 Michael Snyder <msnyder@redhat.com>
3140 * aix-thread.c (supply_sprs64): Cosmetic change.
3141 (supply_sprs32): Cosmetic change.
3142 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3143 (fill_sprs64): Use regcache_collect instead of read_register.
3144 (store_regs_lib): Use regcache_collect instead of
3145 read_register. Use fill_sprs32 instead of fill_sprs64,
3146 if debugging a 32-bit architecture.
3147 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3148 out of the register cache, instead of passing a pointer into
3149 the register cache directly to ptrace. Use regcache_collect
3150 insteaad of read_register.
3151 (ops_prepare_to_store): Use target_read_registers instead
3152 of read_register_bytes.
3154 2002-07-20 Aidan Skinner <aidan@velvet.net>
3156 * MAINTAINERS: Add self under write after approval.
3158 2002-07-20 Aidan Skinner <aidan@velvet.net>
3160 * ada-tasks.c: Change k&r style function definitions to prototyped
3163 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3165 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3166 * x86-64-tdep.c: Include "objfiles.h".
3167 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3168 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3170 2002-07-17 Michal Ludvig <michal@suse.cz>
3172 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3173 (update_context): Initialise cfa variable.
3175 2002-07-17 Michael Snyder <msnyder@redhat.com>
3177 * aix-thread.c: Shorten some long lines.
3178 Bring comments into line with code spec.
3180 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3182 * infrun.c: Re-indent using gdb_indent.sh.
3184 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3186 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3187 Leave the indentation temporarily untouched, to minimize the diffs.
3189 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3191 * stabsread.c: Make os9k sections of the code obsolete,
3193 * stabsread.h: Make os9k sections of the code obsolete.
3195 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3197 * linux-low.c (regsets_store_inferior_registers): Add free()
3198 at the end of a loop to prevent memory leak.
3199 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3200 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3201 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3203 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3205 2002-07-17 Jim Blandy <jimb@redhat.com>
3207 * macrocmd.c (info_macro_command): Remove newline from error
3210 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3212 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3213 (sh_gdbarch_init): Use it for sh-dsp.
3215 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3217 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3218 64-bit DWARF2 format.
3220 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3222 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3223 <sys/proc.h> when not available.
3225 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3227 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3228 * stabsread.c: Make os9k sections of the code obsolete.
3229 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3230 * config/i386/i386os9k.mt: Make file obsolete.
3231 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3232 (COMMON_OBS): Remove os9kread.o
3233 (SFILES): Remove os9kread.c.
3234 (os9kread.o, remote-os9k.o): Make target obsolete.
3235 * remote-os9k.c: Make file obsolete.
3236 * os9kread.c: Make file obsolete.
3239 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3241 * NEWS: Mention that the FR30 has been made obsolete.
3242 * fr30-tdep.c: Make file obsolete.
3243 * config/fr30/tm-fr30.h: Ditto.
3244 * config/fr30/fr30.mt: Ditto.
3245 * configure.tgt: Make fr30-*-elf obsolete.
3246 * MAINTAINERS: Make fr30-elf obsolete.
3248 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3250 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3251 found is not inside a section.
3253 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3255 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3257 (pdc_realloc): Use xrealloc() instead of realloc().
3259 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3261 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3262 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3263 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3266 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3268 * aix-thread.c (ptrace_check): Eliminate goto.
3269 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3272 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3274 * aix-thread.c (gdbcmd.h): Include.
3275 (DEBUG, DBG, DBG2, dbg): Eliminate.
3276 (debug_aix_thread): New static global.
3277 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3278 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3279 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3280 invocations to DBG and DBG2 macros to test against
3281 ``debug_aix_thread'' and call fprintf_unfiltered().
3282 (_initialize_aix_thread): Add new command "set debug aix-thread".
3284 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3286 From Gerhard Tonn <TON@de.ibm.com>:
3287 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3288 instead of supply_register.
3290 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3292 * dwarf2cfi.c: Include "gdb_assert.h".
3293 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3295 (update_context): Do not use __func__. Add missing ``break''.
3296 (update_context): Do not use __func__.
3298 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3300 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3301 and its setting. Set gdbarch instruction printing functions
3302 directly. For non-rs6000 case use new function
3303 gdb_print_insn_powerpc.
3304 (gdb_print_insn_powerpc): New function.
3306 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3308 * NEWS: Mention that the d30v has been marked obsolete.
3309 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3310 * configure.tgt: Mark d30v-*-* as obsolete.
3311 * d30v-tdep.c: Mark file as obsolete.
3312 * config/d30v/d30v.mt: Ditto.
3313 * config/d30v/tm-d30v.h: Ditto.
3315 2002-07-13 Aidan Skinner <aidan@velvet.net>
3317 * ada-tasks.c (add_task_entry): replace calls to
3318 malloc() with xmalloc
3319 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3321 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3322 ada_finish_decode_line_1, all_sals_for_line
3323 ada_breakpoint_rewrite): replace calls to free() with xfree()
3325 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3327 From Nicholas Duffek (with minor changes by Martin Hunt,
3328 Louis Hamilton, and Kevin Buettner):
3329 * aix-thread.c: New file.
3331 2002-07-12 Petr Sorfa <petrs@caldera.com>
3333 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3334 complaint for invalid attribute class or form.
3335 (read_func_scope): DW_AT_frame_base
3336 better handling of DW_AT_block*.
3337 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3338 better handling of DW_AT_block*.
3339 (read_common_block): DW_AT_location
3340 better handling of DW_AT_block*.
3341 (read_partial_die): DW_AT_location better handling
3343 (new_symbol): DW_AT_external better handling of
3344 DW_AT_block*. Proper initialization of variable
3346 (attr_form_is_block): New function that returns true
3347 if the attribute's form is of DW_FORM_block*.
3349 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3351 * valops.c (find_method_list): Remove comment about
3352 removed STATIC_MEMFUNCP argument.
3353 (value_find_oload_method_list): Likewise.
3355 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3357 From Nicholas Duffek:
3358 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3359 target_new_objfile_hook.
3361 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3363 From Nicholas Duffek:
3364 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3367 2002-07-12 Andrew Cagney <cagney@redhat.com>
3369 * MAINTAINERS: Mention --enable-sim-build-warnings.
3370 (m68hc11-elf): Disable sim build warnings.
3371 (m32r-elf): Mark as broken obsolete candidate.
3372 (x86_64-linux-gnu): Mark as buildable with -Werror.
3373 (arm-elf): Change -w to ``,'' which enables warnings but not
3376 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3378 * bcache.h: Update copyright.
3379 (struct bstring, struct bcache): Move definition to "bcache.c".
3380 Replaced by opaque declaration.
3381 (bcache_xfree): Replace free_bcache.
3382 (bcache_xmalloc, bcache_memory_used): Declare.
3384 * bcache.c: Update copyright.
3385 (struct bstring, struct bcache): Moved to here from "bcache.h".
3387 (bcache_xmalloc, bcache_memory_used): New functions.
3388 (bcache_xfree): Replace function free_bcache.
3390 * Makefile.in (objfiles.o): Add $(bcache_h).
3391 (objfiles_h): Remove $(bcache_h).
3392 (symfile.o): Add $(bcache_h).
3394 * symmisc.c: Update copyright.
3395 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3396 (print_objfile_statistics): Use bcache_memory_used.
3398 * symfile.c: Include "bcache.h".
3399 (reread_symbols): Use bcache_xfree.
3400 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3401 (add_psymbol_to_list): Pass psymbol_cache by value.
3402 (add_psymbol_with_dem_name_to_list): Ditto.
3404 * objfiles.h: Update copyright.
3405 (struct bcache): Declare opaque. Do not include "bcache.h".
3406 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3408 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3410 * objfiles.c: Include "bcache.h". Update copyright.
3411 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3413 (free_objfile): Use bcache_xfree.
3415 2002-07-11 Grace Sainsbury <graces@redhat.com>
3417 * monitor.c (monitor_fetch_register): Make name a constant.
3418 (monitor_store_register): Same.
3420 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3422 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3423 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3424 (finish_block) For non-function blocks, hash the symbol table. For
3425 function blocks, mark the symbol table as unhashed.
3426 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3427 (msymbol_hash_iw): Likewise.
3428 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3430 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3431 (lookup_minimal_symbol): Likewise for both.
3432 * symtab.h (struct block): Add `hashtable' flag. Comment the
3434 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3435 (ALL_BLOCK_SYMBOLS): Update.
3436 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3437 (struct symbol): Add `hash_next' pointer.
3438 * symtab.c (lookup_block_symbol): Search using the hash table when
3440 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3441 (search_symbols, find_addr_symbol): Likewise.
3443 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3444 (read_dst_symtab): Likewise.
3445 * jv-lang.c (get_java_class_symtab): Likewise.
3446 * mdebugread.c: Include "gdb_assert.h".
3447 (shrink_block): Assert that the block being modified is not hashed.
3448 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3449 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3451 (dump_symtab): Recognize hashed blocks.
3452 * printcmd.c (print_frame_args): Assert that function blocks do not
3453 have hashed symbol tables.
3454 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3455 (fill_in_ada_prototype, debug_print_block): Likewise.
3456 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3458 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3460 * stack.c (print_frame): Use result of frame_address_in_block()
3461 instead of fi->pc when evaluating symbols.
3462 (backtrace_command_1): Ditto.
3464 2002-07-11 Andrew Cagney <cagney@redhat.com>
3466 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3469 * arm-tdep.c (arm_register_name): Make return type constant.
3471 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3473 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3475 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3476 * s390-tdep.c (s390_fp_regnum): Ditto.
3477 (s390_read_fp): Ditto.
3478 (s390_pop_frame): Ditto.
3479 (_initialize_s390_tdep): Ditto.
3480 * remote.c (get_remote_state): Ditto.
3481 * procfs.c (mappingflags): Ditto.
3482 * memattr.c (_initialize_mem): Ditto.
3483 * mcore-tdep.c (mcore_pop_frame): Ditto.
3484 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3485 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3486 * language.c (set_case_str): Ditto.
3487 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3488 * frv-tdep.c (new_variant): Ditto.
3489 (frv_stopped_data_address): Ditto.
3490 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3491 (context_alloc): Ditto.
3492 (frame_state_alloc): Ditto.
3493 (unwind_tmp_obstack_init): Ditto.
3494 (unwind_tmp_obstack_free): Ditto.
3495 (cfi_read_fp): Ditto.
3496 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3497 (cris_pop_frame): Ditto.
3498 * c-lang.c (scanning_macro_expansion): Ditto.
3499 (finished_macro_expansion): Ditto.
3500 (c_preprocess_and_parse): Ditto.
3501 * gdbarch.sh: Ditto.
3502 * gdbarch.h, gdbarch.c: Regenerate.
3503 * config/mn10200/tm-mn10200.h: Adjust indentation.
3504 * target.c: Adjust indentation.
3505 * symtab.h: Adjust indentation.
3506 * stabsread.h: Adjust indentation.
3507 * remote-es.c: Adjust indentation.
3508 * os9kread.c: Adjust indentation.
3510 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3512 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3513 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3515 2002-07-10 Grace Sainsbury <graces@redhat.com>
3517 * NEWS: Mention m68k, mcore multi-arching.
3518 * MAINTAINERS: Change status of m68k, mcore to reflect
3521 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3523 * valops.c (find_overload_match): Free oload_syms.
3525 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3527 Define HAVE_SYS_PROC_H if sys/proc.h exists
3528 * configure.in: Add check for sys/proc.h
3529 * config.in: Regenerate.
3530 * configure: Regenerate.
3532 2002-07-09 Grace Sainsbury <graces@redhat.com>
3534 * config/m68k/tm-m68k.h: Remove macros wrapped in
3535 #if !GDB_MULTI_ARCH.
3537 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3539 * config.in, configure: Regenerate.
3541 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3543 * dwarf2cfi.c: Include "gcore.h".
3544 (execute_stack_op): Fix implementation of the
3545 DW_OP_deref and DW_OP_deref_size operators by letting do their
3546 lookup in the target.
3548 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3550 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3551 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3554 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3556 Fix PR gdb/595, gdb/602
3557 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3558 Don't call value_cast, just read the vtable pointer; update comments
3561 2002-07-05 Grace Sainsbury <graces@redhat.com>
3563 * config/mcore/tm-mcore.h: Remove file.
3564 * config/mcore/mcore.mt: Remove definition of TM_FILE
3565 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3567 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3569 * i386bsd-tdep.c: Include "gdb_string.h".
3571 2002-07-04 Grace Sainsbury <graces@redhat.com>
3573 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3574 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3576 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3577 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3578 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3579 (RETVAL_REGNUM): Move macros from tm-mcore.h
3580 (mcore_reg_struct_has_addr): New function.
3581 (mcore_gdbarch_init): Added initializations for the macros removed
3584 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3586 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3587 traditonal string branding within the ELF header.
3589 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3591 * symtab.c (remove_params): New function.
3592 (make_symbol_overload_list): Use it instead of cplus_demangle.
3593 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3595 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3597 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3599 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3601 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3602 and tdep->sigtramp_end.
3603 * i386obsd-nat.c: New file.
3604 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3606 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3607 Don't call get_current_frame().
3609 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3611 * i386-nat.c (child_post_startup_inferior): New function
3612 calling i386_cleanup_dregs if
3613 I386_USE_GENERIC_WATCHPOINTS is defined.
3614 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3615 conditional to acknowledge that i386-nat.c has its
3616 own child_post_startup_inferior function.
3618 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3620 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3621 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3622 instead of MAX_REGISTER_RAW_SIZE.
3623 (i386_extract_return_value, i386_extract_struct_value_address):
3624 Convert to use regcache.
3625 (i386_gdbarch_init): Set max_register_raw_size and
3626 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3627 Set extract_return_value and extract_struct_value_address instead
3628 of their deprecated variants.
3630 Convert i386 target to generic dummy frames.
3631 * i386-tdep.c: Include "symfile.h".
3632 (i386_frameless_signal_p): Consider a function to be frameless if
3633 the pc points at the first instruction of the function.
3634 (i386_frame_chain): Handle (generic) call dummies.
3635 (i386_frame_saved_pc): Likewise.
3636 (i386_frame_init_saved_regs): Remove code dealing with call
3637 dummies on the stack.
3638 (i386_push_dummy_frame): Removed.
3639 (i386_call_dummy_words): Removed.
3640 (i386_fix_call_dummy): Removed.
3641 (i386_push_return_address): New function.
3642 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3643 parameter, and don't call get_current_frame.
3644 (i386_pop_frame): New function.
3645 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3646 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3647 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3648 call_dummy_length to 0, set call_dummy_words to NULL, set
3649 sizeof_call_dummy_words to 0, set fix_call_dummy to
3650 generic_fix_call_dummy, set pc_in_call_dummy to
3651 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3652 generic_push_dummy_frame, set push_return_address to
3653 i386_push_return_address and set frame_chain_valid to
3654 generic_file_frame_chain_valid.
3656 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3658 * gdbarch.sh (struct regcache): Add opaque declaration.
3659 (EXTRACT_RETURN_VALUE): New architecture method.
3660 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3661 * gdbarch.h, gdbarch.c: Regenerate.
3662 * arch-utils.c (legacy_extract_return_value): New function.
3663 * arch-utils.h (legacy_extract_return_value): Declare.
3664 * values.c (value_being_returned): Re-enable code handling
3665 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3666 deprecated_grub_regcache_for_registers call to block handling
3667 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3668 (EXTRACT_RETURN_VALUE): Do not define.
3670 2002-07-03 Grace Sainsbury <graces@redhat.com>
3672 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3673 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3674 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3675 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3676 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3677 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3678 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3679 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3680 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3681 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3682 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3683 argument so the function fits the prototype in the architecture
3685 (mcore_pop_frame): Remove argument so the function fits the
3686 prototype. Use get_current_frame instead of the argument.
3687 (mcore_push_arguments): Change type of struct_return so the
3688 function can be used in the architecture vector.
3689 (mcore_store_struct_return): Add.
3690 (mcore_frame_init_saved_regs): Add.
3691 (mcore_gdbarch_init): Add function calls to replace the macros
3692 removed from tm-mcore.h
3694 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3696 * infcmd.c (print_return_value): Remove compatibility code calling
3697 deprecated_grub_regcache_for_registers.
3699 * values.c: Include "regcache.h".
3700 (value_being_returned): Update. Use
3701 deprecated_grub_regcache_for_registers to extract the register
3703 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3704 ``struct regcache''.
3705 * Makefile.in (values.o): Add dependency on $(regcache_h).
3707 * inferior.h (run_stack_dummy): Change type of second parameter to
3708 a ``struct regcache''.
3709 * valops.c (hand_function_call): Change type of retbuf to ``struct
3710 regcache''. Allocate using regcache_xmalloc, clean using
3711 make_cleanup_regcache_xfree.
3712 * infcmd.c (run_stack_dummy): Update. Use
3713 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3715 * regcache.c (do_regcache_xfree): New function.
3716 (make_cleanup_regcache_xfree): New function.
3717 * regcache.h (make_cleanup_regcache_xfree): Declare.
3719 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3721 * event-top.c (command_line_handler): Don't read past
3722 beginning of buffer.
3724 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3726 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3728 (varobj_create): Store frame_id for root.
3729 (varobj_gen_name): Use xasprintf.
3730 (varobj_update): Save and restore frame using get_frame_id() and
3732 (create_child): Use xasprintf.
3733 (new_root_variable): Initialize frame_id.
3734 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3735 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3736 to prevent memory leak.
3738 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3740 * valops.c (hand_function_call): Move declaration of retbuf to
3741 start of function, allocate using malloc, add a cleanup but before
3742 the inf_status cleanup, cleanup the buffer. Rename local variable
3743 old_chain to inf_status_cleanup.
3745 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3747 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3749 * cli/cli-decode.c (cmd_func_p): New function.
3750 (cmd_func): New function.
3752 * command.h: Add cmd_func() and cmd_func_p().
3754 2002-07-03 Grace Sainsbury <graces@redhat.com>
3756 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3757 (REGISTER_SIZE): Remove.
3758 (MAX_REGISTER_RAW_SIZE): Remove.
3759 (REGISTER_VIRTUAL_TYPE): Remove.
3760 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3761 (REGISTER_NAME): Remove.
3762 (USE_GENERIC_DUMMY_FRAMES): Remove.
3763 (CALL_DUMMY): Remove.
3764 (CALL_DUMMY_START_OFFSET): Remove.
3765 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3766 (CALL_DUMMY_LOCATION): Remove.
3767 (FIX_CALL_DUMMY): Remove.
3768 (CALL_DUMMY_ADDRESS): Remove.
3769 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3770 (SAVE_DUMMY_FRAME_TOS): Remove.
3771 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3772 (mcore_register_virtual_type): New function.
3773 (mcore_register_byte): New function.
3774 (mcore_register_size): New function.
3775 (mcore_register_name): New function.
3776 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3777 macros removed from tm-mcore.h.
3778 (mcore_dump_tdep): Add.
3779 (_initialize_mcore_tdep): Add gdbarch_register call.
3781 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3783 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3784 frameless_look_for_prologue, such that we actually call this
3787 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3789 * frame.h (frame_address_in_block): New function.
3791 * blockframe.c (frame_address_in_block): New function extracted
3792 from get_frame_block().
3793 (get_frame_block): Use frame_address_in_block().
3794 (block_innermost_frame): Use frame_address_in_block() to match
3795 the frame pc address against the block boundaries rather than
3796 the frame pc directly. This prevents a failure when a frame pc
3797 is actually a return-address pointing immediately after the end
3800 2002-07-02 Grace Sainsbury <graces@redhat.com>
3802 * MAINTAINERS: Add self under write after approval.
3804 2002-07-02 Grace Sainsbury <graces@redhat.com>
3806 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3807 used in architecture vector. The default is
3808 m68k_local_breakpoint_from_pc.
3809 (m68k_local_breakpoint_from_pc): Add.
3810 (enum): Add register numbers from tm-m68k.h.
3811 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3813 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3814 GDB_MULTI_ARCH_PARTIAL.
3815 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3816 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3818 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3819 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3820 to enum in m68k-tdep.c
3822 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3824 * solib-osf.c (open_map): Compute the list of shared libraries
3825 loaded by the inferior, rather than the list of libraries loaded
3826 by GDB itself. Otherwise, GDB ends up reading the symbols from
3827 the wrong shared libraries...
3829 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3831 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3832 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3834 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3836 (FRAMELESS_SIGNAL): Remove function.
3837 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3838 i386_linux_saved_pc_after_call): Removed.
3839 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3840 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3841 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3843 * i386-tdep.c (i386_frameless_signal_p): New function.
3844 (i386_frame_chain): Deal with frameless signals.
3845 (i386_sigtramp_saved_sp): New function.
3846 (i386_frame_saved_pc): Deal with frameless signals.
3847 (i386_saved_pc_after_call): Make sure the correct value is
3848 returned just after entry into a sigtramp.
3849 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3850 i386fbsd4_sc_sp_offset): New variables.
3851 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3852 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3853 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3854 similiar to what we already did for sc_pc_offset.
3855 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3858 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3860 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3862 * config/i386/tm-x86-64linux.h: New.
3863 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3865 * config/i386/nm-x86-64.h: Rename to ...
3866 * config/i386/nm-x86-64linux.h: ... this one.
3867 * config/i386/x86-64linux.mh: Reflect the above change.
3869 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3871 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3872 with sigcontext_addr. Add sc_sp_offset.
3873 (i386bsd_sigtramp_saved_pc): Remove prototype.
3874 (i386bsd_sicontext_addr): Add prototype.
3875 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3876 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3877 (i386_svr4_sigtramp_saved_pc): Removed.
3878 (i386_svr4_sigcontext_addr): New function.
3879 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3880 Initialize tdep->sigcontext_addr instead. Initialize
3881 tdep->sc_pc_offset and tdep->sc_sp_offset.
3882 (i386_gdbarch_init): Likewise.
3883 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3885 (i386bsd_sigtramp_saved_pc): Remove function.
3886 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3887 Initialize tdep->sigcontext_addr instead. Initialize
3889 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3890 of tdep->sigtramp_saved_pc.
3891 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3892 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3895 * i386-tdep.c (i386_frameless_function_invocation,
3896 i386_frame_num_args, i386_frame_init_saved_regs,
3897 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3898 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3899 i386_extract_return_value, i386_store_return_value,
3900 i386_extract_struct_value_address, i386_register_virtual_type,
3901 i386_register_convertible, i386_register_convert_to_virtual,
3902 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3903 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3906 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3908 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3910 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3911 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3912 this macro. Include "value.h".
3914 2002-06-30 Aidan Skinner <aidan@velvet.net>
3916 * ada-exp.tab.c: remove as it's a generated file
3917 * ada-lex.c: remove as it's a generated file
3919 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3921 * config/i386/tm-i386.h (struct frame_info, struct
3922 frame_saved_regs, struct value, struct type): Remove forward
3925 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3926 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3927 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3928 (FILL_FPXREGSET): Define.
3930 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3932 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3933 i[3456]86-*-netbsd* case.
3934 * config/i386/tm-obsd.h: Removed.
3935 * config/i386/obsd.mt: Removed.
3936 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3938 (MH_CFLAGS): Add -DYYDEBUG=0.
3940 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3941 i386nbsd_sc_pc_offset on OpenBSD too.
3943 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3944 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3945 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3947 * i386bsd-tdep.c: Include "arch-utils.h".
3948 (i386bsd_aout_in_solib_call_trampoline): New function.
3949 (i386bsd_init_abi): Set in_solib_call_trampoline to
3950 i386bsd_aout_in_solib_call_trampoline.
3951 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3952 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3954 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3956 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3957 (struct obstack, struct bcache): Add opaque declarations.
3958 * Makefile.in (macrotab_h): Update
3960 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3962 * blockframe.c (generic_find_dummy_frame): Change return type to
3963 ``struct regcache''.
3964 (struct dummy_frame): Replace field ``registers'' with regcache, a
3965 struct regcache object.
3966 (generic_find_dummy_frame): Update.
3967 (generic_push_dummy_frame): Update. Use regcache_xfree,
3968 regcache_xmalloc and regcache_cpy.
3969 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3971 (deprecated_generic_find_dummy_frame): Update.
3972 (generic_read_register_dummy): Update. Use
3973 regcache_read_as_address.
3974 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3975 (generic_get_saved_register): Update. Use regcache_read.
3977 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3979 * Makefile.in (objfiles_h): Add $(bcache_h).
3980 * objfiles.h: Include "bcache.h".
3982 * Makefile.in (symtab_h): Remove $(bcache_h).
3983 * symtab.h: Do not include "bcache.h".
3985 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3987 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3988 generic_func_frame_chain_valid.
3990 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3992 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3993 * config/i386/tm-fbsd.h: Likewise.
3995 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3997 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3998 generic_unwind_get_saved_register.
4000 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4002 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4003 * regcache.c (supply_register): Add missing argument to
4004 register_buffer call.
4006 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4008 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4009 Solaris /bin/grep does not not like it. From Peter Schauer.
4011 2002-06-26 Tom Tromey <tromey@redhat.com>
4013 * command.h (add_setshow_cmd): Declare.
4014 (add_setshow_cmd_full): Declare.
4015 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4016 returns void. Use add_setshow_cmd_full.
4017 (add_setshow_cmd_full): New function.
4018 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4019 (add_setshow_boolean_cmd): Likewise.
4021 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4023 * config/vax/tm-vax.h: Protect from multiple inclusion.
4024 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4025 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4026 * config/vax/tm-vaxbsd.h: ...here. New file.
4027 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4029 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4031 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4032 (BELIEVE_PCC_PROMOTION): Remove.
4033 (AP_REGNUM): Move to...
4034 * config/vax/nm-vax.h: ...here.
4035 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4036 (vax_breakpoint_from_pc): New function.
4037 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4038 and gdbarch_believe_pcc_promotion.
4040 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4042 * Makefile.in (vax_tdep_h): Define.
4043 (vax-tdep.o): Use $(vax_tdep_h).
4044 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4045 (vax_dump_tdep): New function.
4046 (_initialize_vax_tdep): Register vax_dump_tdep.
4047 * vax-tdep.h: Include osabi.h.
4048 (struct gdbarch_tdep): New.
4050 2002-06-26 Andrew Cagney <cagney@redhat.com>
4052 * frame.h (deprecated_generic_find_dummy_frame): Rename
4053 generic_find_dummy_frame.
4054 * blockframe.c (generic_find_dummy_frame): Make static.
4055 (deprecated_generic_find_dummy_frame): New function.
4056 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4057 generic_find_dummy_frame with deprecated_find_dummy_frame.
4058 (sh64_nofp_frame_init_saved_regs): Ditto.
4059 (sh_fp_frame_init_saved_regs): Ditto.
4060 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4061 (s390_frame_chain): Ditto.
4062 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4064 2002-06-26 Grace Sainsbury <graces@redhat.com>
4066 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4067 gdbarch vector are at the top.
4069 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4070 (FRAME_ARGS_ADDRESS): Remove.
4071 (FRAME_LOCALS_ADDRESS): Remove.
4072 (FRAME_NUM_ARGS): Remove.
4073 (FRAME_ARGS_SKIP): Remove.
4074 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4075 (m68k_gdbarch_init): Add gdbarch initializations for macros
4076 undefined in tm-m68k.h
4078 2002-06-26 Grace Sainsbury <graces@redhat.com>
4080 * monitor.h: Add the function regname to monitor_ops
4081 structure. This way NUM_REGS does not have to be a constant.
4082 * monitor.c (monitor_fetch_register): Added support for regname
4083 function. The function is called if the array regnames is NULL.
4084 (monitor_store_register): Same.
4085 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4087 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4088 cpu32bug_cmds.regname to point to new function.
4089 * abug-rom.c (abug_regname): Same as above.
4090 (init_abug_cmds): Same.
4091 * dbug-rom.c (dbug_regname): Same as above.
4092 (init_dbug_cmds): Same.
4093 * remote-est.c (est_regname): Same.
4094 (init_est_cmds): Same.
4095 * rom68k-rom.c (rom68k_regname): Same.
4096 (init_rom68k_cmds): Same.
4098 2002-06-25 Tom Tromey <tromey@redhat.com>
4100 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4102 2002-06-25 Andrew Cagney <cagney@redhat.com>
4104 * infrun.c (stop_registers): Change variable's type to ``struct
4106 (xmalloc_inferior_status): Delete function.
4107 (free_inferior_status): Delete function.
4108 (normal_stop): Use regcache_cpy.
4109 (struct inferior_status): Change type of fields ``stop_registers''
4110 and ``registers'' to ``struct regcache''.
4111 (write_inferior_status_register): Use regcache_write.
4112 (save_inferior_status): Instead of calling
4113 xmalloc_inferior_status, allocate the inf_status buffer directly.
4114 Use regcache_dup_no_passthrough and regcache_dup to save the
4116 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4117 Replace the stop_registers regcache instead of overriding it. Use
4118 regcache_xfree. Instead of calling free_inferior_status, xfree
4119 the buffer directly.
4120 (discard_inferior_status): Use regcache_xfree. Instead of calling
4121 free_inferior_status, xfree the buffer directly.
4122 (build_infrun): Use regcache_xmalloc.
4123 (_initialize_infrun): Delete redundant call to build_infrun.
4125 * Makefile.in (infcmd.o): Add $(regcache_h).
4127 * infcmd.c: Include "regcache.h".
4128 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4129 obtain the address of `stop_registers' register buffer.
4130 (print_return_value): Ditto.
4132 * inferior.h (struct regcache): Add opaque declaration.
4133 (stop_registers): Change variable's declared type to ``struct
4136 2002-06-24 Tom Tromey <tromey@redhat.com>
4138 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4139 * target.c (initialize_targets): Fixed typo in
4140 trust-readonly-sections `show' documentation.
4142 * main.c: Marked all strings with _().
4144 2002-06-24 Don Howard <dhoward@redhat.com>
4146 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4147 that means max CORE_ADDR+1.
4148 (lookup_mem_region): Ditto.
4149 (mem_info_command): Ditto.
4151 2002-06-24 Grace Sainsbury <graces@redhat.com>
4153 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4154 (REGISTER_BYTES_OK): Remove.
4155 (REGISTER_BYTES): Remove.
4156 (STORE_STRUCT_RETURN): Remove.
4157 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4158 (STORE_RETURN_VALUE): Remove.
4159 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4160 (FRAME_CHAIN): Remove.
4161 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4162 (FRAME_SAVED_PC): Remove.
4163 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4164 (m68k_store_struct_return): Add.
4165 (m68k_deprecated_extract_return_value): Add.
4166 (m68k_deprecated_extract_struct_value_address): Add.
4167 (m68k_store_return_value): Add.
4168 (m68k_frame_chain): Add.
4169 (m68k_frameless_function_invocation): Add.
4170 (m68k_frame_saved_pc): Add.
4171 (m68k_gdbarch_init): added set_gdbarch calls for new
4172 functions and deleted macros.
4174 2002-06-23 Tom Tromey <tromey@redhat.com>
4176 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4177 (ALLDEPFILES): Likewise.
4178 (udiheaders): Removed.
4179 (udip2soc.o): Likewise.
4180 (udi2go32.o): Likewise.
4182 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4184 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4186 * infrun.c (_initialize_infrun): Delete unnecessary call to
4189 * regcache.h: Update comments describing the regcache_cpy family
4191 (regcache_save, regcache_restore): Delete declaration.
4192 (regcache_save_no_passthrough): Delete declaration.
4193 (regcache_restore_no_passthrough): Delete declaration.
4194 * regcache.c (regcache_save): Delete function.
4195 (regcache_save_no_passthrough): Delete function.
4196 (regcache_restore): Delete function.
4197 (regcache_restore_no_passthrough): Delete function.
4199 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4201 * config/m68k/tm-m68k.h: Fix typo.
4202 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4203 (m68k_frame_init_saved_regs): Declare.
4205 2002-06-21 Jim Blandy <jimb@redhat.com>
4207 Remove some vestiges of Harris 88k support.
4208 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4209 register numbering quirk.
4210 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4211 odd symbols occurring in Harris 88k ELF targets.
4213 2002-06-21 Tom Tromey <tromey@redhat.com>
4215 * gdb_locale.h: New file.
4216 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4217 (defs_h): Added gdb_locale.h.
4218 * configure, config.in: Rebuilt.
4219 * configure.in (PACKAGE): Define.
4220 * defs.h: Include gdb_locale.h.
4221 * main.c (captured_main): Call setlocale, bindtextdomain,
4224 2002-06-21 Dave Brolley <brolley@redhat.com>
4226 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4227 * config/frv/frv.mt: New file.
4228 * config/frv/tm-frv.h: New file.
4229 * configure.tgt: Support frv-*-*.
4230 * Makefile.in (frv-tdep.o): New target.
4231 * frv-tdep.c: New file.
4232 * NEWS: Mention frv.
4234 2002-06-21 Dave Brolley <brolley@redhat.com>
4236 * MAINTAINERS: Add self to "Write After Approval" list.
4238 2002-06-21 Grace Sainsbury <graces@redhat.com>
4240 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4241 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4242 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4243 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4244 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4246 * m68k-tdep.c: Include arch-utils.h
4247 (m68k_register_raw_size): Add.
4248 (m68k_register_virtual_size): Add.
4249 (m68k_register_virtual_type): Add.
4250 (m68k_register_name): Add.
4251 (m68k_stack_align): Add.
4252 (m68k_register_byte): Add.
4253 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4256 2002-06-21 Grace Sainsbury <graces@redhat.com>
4258 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4259 m68k_find_saved_regs.
4260 (m68k_pop_frame): Removed saved_regs structure, and replaced
4261 references to it with frame->saved_regs.
4262 (m68k_gdbarch_init): Added function calls to initialize the
4264 (m68k_fix_call_dummy): Add.
4265 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4266 (CALL_DUMMY): Remove.
4267 (CALL_DUMMY_LENGTH): Remove.
4268 (CALL_DUMMY_START_OFFSET): Remove.
4269 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4270 (FIX_CALL_DUMMY): Remove.
4271 (PUSH_DUMMY_FRAME): Remove.
4272 (POP_FRAME): Remove.
4274 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4276 * parse.c (parse_fprintf): New function used to avoid calls to
4277 fprintf in bison parser generated debug code.
4278 * parser-defs.h: Declaration of new parse_fprintf function.
4279 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4280 Set YYDEBUG to 1 by default.
4281 Set YYFPRINTF as parse_fprintf.
4283 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4285 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4287 (pointer_encoding, enum ptr_encoding): New.
4288 (execute_cfa_program): Take care about pointer encoding.
4289 (dwarf2_build_frame_info): Only call parse_frame_info for
4290 .debug_frame and .eh_frame.
4291 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4292 fixed augmentation handling, added relative addressing,
4293 ignore duplicate FDEs. Added comments.
4294 * dwarf2cfi.c: Reindented.
4296 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4298 * event-top.c (command_handler): Don't use space_at_cmd_start
4299 unless there is sbrk() on the host. Assign time and space data
4300 to union fields of the appropriate length.
4302 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4304 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4305 x86_64_register_name. Return type changed to 'const char *'.
4306 (x86_64_register_name2nr): Rename to x86_64_register_number.
4307 (x86_64_gdbarch_init): Update to reflect the change.
4308 * x86-64-tdep.h: Ditto.
4309 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4310 (supply_fpregset): Ditto.
4312 2002-06-19 Andrew Cagney <cagney@redhat.com>
4314 * regcache.h: Update copyright.
4315 (struct regcache, struct gdbarch): Add opaque declarations.
4316 (current_regcache): Declare global variable.
4317 (regcache_read, regcache_write): Add gdbarch parameter.
4318 (regcache_save, regcache_save_no_passthrough)
4319 (regcache_restore, regcache_restore_no_passthrough)
4320 (regcache_dup, regcache_dup_no_passthrough)
4321 (regcache_cpy, regcache_cpy_no_passthrough)
4322 (deprecated_grub_regcache_for_registers)
4323 (deprecated_grub_regcache_for_register_valid)
4324 (regcache_valid_p): Add function declarations.
4326 * regcache.c: Update copyright.
4327 (regcache_descr_handle): New global variable.
4328 (struct regcache_descr): Define.
4329 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4330 (regcache_descr, xfree_regcache_descr): New functions.
4331 (struct regcache): Define.
4332 (regcache_xmalloc, regcache_xfree): New functions.
4333 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4334 (regcache_dup, regcache_dup_no_passthrough): New functions.
4335 (regcache_valid_p, regcache_read_as_address): New functions.
4336 (deprecated_grub_regcache_for_registers): New function.
4337 (deprecated_grub_regcache_for_register_valid): New function.
4338 (current_regcache): New global variable.
4339 (register_buffer): Add regcache parameter. Update calls.
4340 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4341 (read_register_gen, write_register_gen): Update register_buffer
4342 call. Test for legacy_p instead of gdbarch_register_read_p or
4343 gdbarch_register_write_p.
4344 (regcache_collect): Update register_buffer call.
4345 (build_regcache): Rewrite. Use deprecated grub functions.
4346 (regcache_save, regcache_save_no_passthrough): New functions.
4347 (regcache_restore, regcache_restore_no_passthrough): New
4349 (_initialize_regcache): Create the regcache_data_handle. Swap
4350 current_regcache global variable.
4352 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4353 parameter to regcache_read and regcache_write calls.
4354 (sh4_register_read): Ditto.
4355 (sh64_pseudo_register_read): Ditto.
4356 (sh64_register_read): Ditto.
4357 (sh_pseudo_register_write): Ditto.
4358 (sh4_register_write): Ditto.
4359 (sh64_pseudo_register_write): Ditto.
4360 (sh64_register_write): Ditto.
4362 * defs.h (XCALLOC): Define.
4364 2002-06-19 Grace Sainsbury <graces@redhat.com>
4366 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4367 * m68k-tdep.c (m68k_gdbarch_init): Added.
4368 (m68k_dump_tdep): Added.
4370 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4372 * ada-lang.c (fill_in_ada_prototype): Update comment.
4374 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4376 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4378 (mips_abi_string, mips_abi_strings): New.
4379 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4380 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4381 tdep->mips_abi_string. Honor mips_abi_string. Default to
4382 O32 if no ABI is found.
4383 (mips_dump_tdep): Use mips_abi_strings.
4384 (mips_abi_update): New function.
4385 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4386 ``set mips abi'' and ``show mips abi''. Check the size of
4389 2002-06-19 Andrew Cagney <cagney@redhat.com>
4391 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4394 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4396 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4397 current frame using only the first stack size adjustment. All
4398 subsequent size adjustments are not considered to be part of
4399 the "static" part of the current frame.
4400 Compute the address of the saved registers relative to the
4401 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4402 in use in this frame.
4404 2002-06-18 Don Howard <dhoward@redhat.com>
4406 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4407 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4408 suggesting this solution.
4410 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4412 * config/romp/xm-rtbsd.h: Delete file.
4413 * config/romp/rtbsd.mh: Delete file.
4415 2002-06-18 Keith Seitz <keiths@redhat.com>
4417 * breakpoint.c (condition_command): Post breakpoint_modify
4418 when a condition is added to an existing breakpoint.
4419 (commands_command): Likewise for commands.
4420 (set_ignore_count): Likewise for ignore counts.
4421 If no tty, do not simply return, still need to send event
4423 (ignore_command): Only print a newline if the command came
4425 Don't call breakpoints_changed, since this is now properly
4426 handled by set_ignore_count.
4428 2002-06-18 Andrew Cagney <cagney@redhat.com>
4430 * MAINTAINERS: Note that cris-elf target can be compiled with
4432 * cris-tdep.c (cris_register_name): Make return type constant.
4433 (cris_breakpoint_from_pc): Ditto.
4435 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4437 * frame.h (struct frame_info): Change type of context to
4440 2002-06-17 Andrew Cagney <cagney@redhat.com>
4442 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4444 * gdbarch.h, gdbarch.c: Regenerate.
4445 * config/mips/tm-mips.h (mips_register_name): Update.
4446 * i386-tdep.h (i386_register_name): Update.
4447 * mips-tdep.c (mips_register_name): Update
4448 * alpha-tdep.c (alpha_register_name): Update.
4449 * arch-utils.c (legacy_register_name): Update.
4450 * arch-utils.h (legacy_register_name): Update.
4451 * avr-tdep.c (avr_register_name): Update.
4452 * ia64-tdep.c (ia64_register_name): Update.
4453 * i386-tdep.c (i386_register_name): Update.
4454 * sparc-tdep.c (sparc32_register_name): Update.
4455 (sparc64_register_name): Update.
4456 (sparclite_register_name): Update.
4457 (sparclet_register_name): Update.
4458 * sh-tdep.c (sh_generic_register_name): Update.
4459 (sh_sh_register_name): Update.
4460 (sh_sh3_register_name): Update.
4461 (sh_sh3e_register_name): Update.
4462 (sh_sh_dsp_register_name): Update.
4463 (sh_sh3_dsp_register_name): Update.
4464 (sh_sh4_register_name): Update.
4465 (sh_sh64_register_name): Update.
4466 * s390-tdep.c (s390_register_name): Update.
4467 * rs6000-tdep.c (rs6000_register_name): Update.
4468 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4469 (ns32k_register_name_32382): Update.
4470 * d10v-tdep.c (d10v_ts2_register_name): Update.
4471 (d10v_ts3_register_name): Update.
4472 * xstormy16-tdep.c (xstormy16_register_name): Update.
4473 * vax-tdep.c (vax_register_name): Update.
4474 * v850-tdep.c (v850_register_name): Update.
4475 * m68hc11-tdep.c (m68hc11_register_name): Update.
4476 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4477 (am33_register_name): Update.
4479 2002-06-17 Grace Sainsbury <graces@redhat.com>
4481 * m68k-tdep.c: Reindented.
4483 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4485 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4486 list of predefined types.
4488 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4490 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4491 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4492 REGISTER_CONVERT_TO_RAW): Remove defines.
4493 (i386_register_virtual_type, i386_register_convertible,
4494 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4496 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4497 macros mentioned above.
4499 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4500 (i386lynx_saved_pc_after_call): Remove prototype.
4501 * i386ly-tdep.c: Include "i386-tdep.h".
4502 (i386lynx_saved_pc_after_call): Make static. Use
4503 read_memory_nobpt instead of read_memory. Use
4504 read_memory_unsigned_integer instead of read_memory_integer.
4505 (i386lynx_init_abi): New function.
4506 (i386lynx_coff_osabi_sniffer): New function.
4507 (_initialize_i386bsd_tdep): New function.
4509 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4510 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4511 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4512 (i386_fix_call_dummy): Remove prototype.
4513 * i386-tdep.c (i386_call_dummy_words): New variable.
4514 (i386_gdbarch_init): Adjust for removal of the
4515 macros mentioned above.
4517 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4519 * command.h (add_setshow_auto_boolean_cmd): Replace
4520 add_set_auto_boolean_cmd.
4521 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4522 add_set_auto_boolean_cmd.
4523 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4524 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4525 mask-address'' command.
4526 (show_mask_address): Add cmd parameter.
4527 * remote.c (add_packet_config_cmd): Update. Change type of
4528 set_func and show_func to cmd_sfunc_ftype.
4529 (_initialize_remote): Update `set remote Z-packet'
4530 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4531 (show_remote_protocol_e_packet_cmd): Ditto.
4532 (show_remote_protocol_E_packet_cmd): Ditto.
4533 (show_remote_protocol_P_packet_cmd): Ditto.
4534 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4535 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4536 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4537 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4538 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4539 (show_remote_protocol_Z_packet_cmd): Ditto.
4540 (show_remote_protocol_binary_download_cmd): Ditto.
4541 (show_remote_cmd): Pass NULL to all of above.
4543 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4545 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4546 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4547 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4548 POP_FRAME): Remove defines.
4549 (i386_push_arguments, i386_store_struct_return,
4550 i386_extract_return_value, i386_store_return_value,
4551 i386_extract_struct_value_address, i386_push_dummy_frame,
4552 i386_pop_frame): Renove prototypes.
4553 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4554 macros mentioned above.
4556 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4558 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4559 add_set_boolean_cmd.
4560 (add_setshow_cmd): New function.
4561 * command.h (add_setshow_boolean_cmd): Replace
4562 add_set_boolean_cmd.
4563 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4564 and ``set rdiromatzero''.
4565 * maint.c (_initialize_maint_cmds): Update commented out code.
4566 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4567 * target.c (initialize_targets): Update `set
4568 trust-readonly-sections'.
4569 * remote.c (_initialize_remote): Update `set remotebreak'.
4571 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4573 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4574 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4575 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4576 fit into multi-arch framework.
4577 (i386_breakpoint_from_pc): New function.
4578 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4581 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4582 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4583 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4584 (i386_frameless_function_invocation, i386_frame_num_args,
4585 i386_frame_init_saved_regs): Remove prototypes.
4586 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4587 macros mentioned above.
4589 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4591 * cli/cli-decode.c (set_cmd_cfunc): Update.
4592 (set_cmd_sfunc): Update.
4593 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4594 (set_cmd_sfunc, set_cmd_cfunc): Update.
4595 * cli/cli-decode.h: Update.
4597 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4599 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4600 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4602 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4604 * defs.h (auto_boolean): Declare enum.
4605 * command.h (cmd_auto_boolean): Delete enum.
4606 * mips-tdep.c (mask_address_var): Update.
4607 (mips_mask_address_p): Update.
4608 (show_mask_address): Update.
4609 * remote.c (struct packet_config): Update.
4610 (update_packet_config): Update.
4611 (show_packet_config_cmd): Update.
4612 (packet_ok): Update.
4613 (add_packet_config_cmd): Update.
4614 (_initialize_remote):
4615 * command.h: Update.
4616 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4617 (do_setshow_command): Update.
4618 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4619 * cli/cli-decode.h: Update.
4621 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4623 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4624 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4625 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4626 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4627 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4628 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4630 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4631 list of DJGPP COFF targets.
4633 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4634 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4635 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4636 (FP0_REGNUM): Remove define.
4637 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4638 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4639 (i386_register_virtual_size): Remove protoype.
4640 * i386-tdep.c (i386_register_virtual_size): Removed.
4641 (i386_extract_return_value, i386_store_return_value): Use
4642 FP0_REGNUM instead of NUM_FREGS to determine whether the
4643 floating-point registers are available.
4644 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4645 Adjust for removal of macros mentioned above.
4647 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4649 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4651 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4653 (supply_gregset, fill_gregset): Remove use of register keyword and
4654 remove declaration for regmap. Use I386_NUM_GREGS instead of
4655 NUM_REGS and NUM_FREGS.
4656 (FPREGSET_FSAVE_OFFSET): Remove.
4657 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4658 NUM_FREGS to determine whether the floating-point registers are
4661 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4662 gnu_store_registers): Replace usage of NUM_GREGS with
4665 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4666 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4667 usage of NUM_GREGS with I386_NUM_GREGS.
4669 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4671 * i386bsd-nat.c: Include "i386-tdep.h".
4672 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4675 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4676 and associated comment. They no longer make any sense, since we
4677 don't use this file anymore on Linux.
4679 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4680 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4681 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4682 elements in these arrays.
4683 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4686 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4688 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4689 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4691 2002-06-14 Andrew Cagney <cagney@redhat.com>
4693 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4694 EXTRACT_RETURN_VALUE.
4695 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4696 EXTRACT_STRUCT_VALUE_ADDRESS.
4697 * gdbarch.h, gdbarch.c: Regenerate.
4699 * values.c (value_being_returned): Handle
4700 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4701 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4703 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4704 * arm-tdep.c (arm_gdbarch_init): Update.
4705 * avr-tdep.c (avr_gdbarch_init): Update.
4706 * cris-tdep.c (cris_gdbarch_init): Update.
4707 * d10v-tdep.c (d10v_gdbarch_init): Update.
4708 * ia64-tdep.c (ia64_gdbarch_init): Update.
4709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4710 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4711 * s390-tdep.c (s390_gdbarch_init): Update.
4712 * sh-tdep.c (sh_gdbarch_init): Update.
4713 * s390-tdep.c (s390_gdbarch_init): Update.
4714 * sparc-tdep.c (sparc_gdbarch_init): Update.
4715 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4716 * v850-tdep.c (v850_gdbarch_init): Update.
4717 * vax-tdep.c (vax_gdbarch_init): Update.
4718 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4721 * config/arc/tm-arc.h: Update.
4722 * config/d30v/tm-d30v.h: Update.
4723 * config/fr30/tm-fr30.h: Update.
4724 * config/h8300/tm-h8300.h: Update.
4725 * config/h8500/tm-h8500.h: Update.
4726 * config/i386/tm-i386.h: Update.
4727 * config/i386/tm-ptx.h: Update.
4728 * config/i386/tm-symmetry.h: Update.
4729 * config/i960/tm-i960.h: Update.
4730 * config/m32r/tm-m32r.h: Update.
4731 * config/m68k/tm-delta68.h: Update.
4732 * config/m68k/tm-linux.h: Update.
4733 * config/m68k/tm-m68k.h: Update.
4734 * config/m88k/tm-m88k.h: Update.
4735 * config/mcore/tm-mcore.h: Update.
4736 * config/mips/tm-mips.h: Update.
4737 * config/mn10200/tm-mn10200.h: Update.
4738 * config/pa/tm-hppa.h: Update.
4739 * config/pa/tm-hppa64.h: Update.
4740 * config/sparc/tm-sp64.h: Update.
4741 * config/sparc/tm-sparc.h: Update.
4742 * config/sparc/tm-sparclet.h: Update.
4743 * config/z8k/tm-z8k.h: Update.
4745 2002-06-14 Andrew Cagney <cagney@redhat.com>
4747 * Makefile.in (i386_linux_tdep_h): Define.
4748 (i386_tdep_h, i387_tdep_h): Define.
4749 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4750 $(i386_tdep_h) and $(i387_tdep_h).
4751 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4753 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4755 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4756 Already covered by the default.
4758 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4759 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4760 (i386_gdbarch_init): Initialize long_double_format and long_double
4763 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4764 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4766 * config/i386/i386sol2.mh: ... here.
4767 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4768 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4769 (SIGCONTEXT_PC_OFFSET): Remove define.
4770 (IN_SIGTRAMP): Remove define.
4771 * i386-sol2-tdep.c: New file.
4773 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4774 * config/i386/tm-i386nw.h: Removed.
4776 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4777 USE_STRUCT_CONVENTION): Remove defines.
4778 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4779 (get_longjmp_target): Remove prototype.
4780 (IN_SIGTRAMP): Remove define.
4781 (i386bsd_in_sigtramp): Remove prototype.
4782 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4783 function. Update comment accordingly
4784 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4785 (FRAME_SAVED_PC): Remove define.
4786 (i386bsd_frame_saved_pc): Remove prototype.
4787 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4788 GET_LONGJMP_TARGET): Remove defines.
4789 (get_longjmp_target): Remove prototype.
4790 (IN_SIGTRAMP): Remove define.
4791 (i386bsd_in_sigtramp): Remove prototype.
4792 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4793 function. Update comment accordingly
4794 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4795 (FRAME_SAVED_PC): Remove define.
4796 (i386bsd_frame_saved_pc): Remove prototype.
4797 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4799 (USE_STRUCT_CONVENTION): Remove prototype.
4800 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4802 (_initialize_i386bsd_nat): Revise logic to determine some
4803 constants at compile time when compiling a native GDB. Warn if
4804 things don't match up with what we expect.
4805 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4807 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4808 to use date stored in `struct gdbarch_tdep'.
4809 (i386bsd_sigcontext_offset): Remove varaible.
4810 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4811 stored in `struct gdbarch_tdep'.
4812 (i386bsd_frame_saved_pc): Make static.
4813 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4814 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4815 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4816 i386fbsd4_sc_pc_offset): New variables.
4817 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4818 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4820 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4822 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4823 Modify the value of i386fbsd_sigtramp_start and
4824 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4825 i386fbsd_sigtramp_end.
4826 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4829 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4830 define to i386-linux-tdep.h.
4831 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4832 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4834 (i386_linux_register_name, i386_linux_register_byte,
4835 i386_linux_register_raw_size): Remove prototypes.
4836 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4837 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4838 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4839 TARGET_WRITE_PC): Remove defines.
4840 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4841 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4842 i386_linux_write_pc): Remove prototypes.
4843 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4844 (get_longjmp_target): Remove prototype.
4845 * i386-linux-tdep.h: New file.
4846 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4847 * i386-linux-tdep.c: Include "i386-tdep.h" and
4848 "i386-linux-tdep.h".
4849 (i386_linux_register_name, i386_linux_register_byte,
4850 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4851 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4853 (i386_linux_init_abi): New function.
4854 (_initialize_i386_linux_tdep): New function.
4856 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4857 (i386_saved_pc_after_call): Remove prototype.
4858 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4859 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4860 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4861 (i386_register_name, i386_stab_reg_to_regnum,
4862 i386_dwarf_reg_to_regnum): Remove prototypes.
4863 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4864 SIZEOF_SSE_REGS): Remove defines.
4865 (REGISTER_BYTES): Remove define.
4866 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4867 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4868 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4869 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4870 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4871 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4872 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4873 (get_longjmp_target): Remove prototype.
4874 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4875 (sigtramp_saved_pc): Remove define.
4876 (i386v4_sigtramp_saved_pc): Remove prototype.
4877 * config/i386/tm-go32.h (FRAME_CHAIN,
4878 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4879 (i386go32_frame_saved_pc): Remove prototype.
4880 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4881 (get_longjmp_target): Remove prototype.
4882 * i386-tdep.h: Include "osabi.h".
4883 (enum i386_abi): Removed.
4884 (enum struct_return): New enum.
4885 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4886 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4887 sc_pc_offset members.
4888 (i386_gdbarch_register_os_abi): Remove prototype.
4889 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4890 I386_SSE_NUM_REGS): New defines.
4891 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4892 I386_SSE_SIZEOF_REGS): New defines.
4893 (i386_register_name, i386_register_byte, i386_register_raw_size):
4895 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4896 (i386bsd_sigtramp_saved_pc): New prototype.
4897 * i386-tdep.c: Don't include "elf-bfd.h".
4898 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4899 i386_frame_chain, i386_saved_pc_after_call): Make static.
4900 (i386_frame_saved_pc): Rewrite to call architecture dependent
4901 function to deal with signal handlers. Make static.
4902 (i386go32_frame_saved_pc): Removed.
4903 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4905 (i386_get_longjmp_target): New function.
4906 (default_struct_convention, pcc_struct_convention,
4907 reg_struct_convention, valid_conventions, struct_convention): New
4909 (i386_use_struct_convention): New function.
4910 (i386v4_sigtramp_saved_pc): Renamed to
4911 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4912 (i386_pc_in_sigtramp): New function.
4913 (i386_abi_names): Removed.
4914 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4915 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4917 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4918 i386_gdbarch_register_os_abi): Removed.
4919 (struct i386_abi_handler): Removed.
4920 (i386_abi_handler_list): Removed.
4921 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4923 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4924 i386_nw_init_abi): New functions.
4925 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4926 Use set_gdbarch_xxx() calls instead of relying on macros for a
4928 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4929 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4930 Register the various architecture variants defined in this file.
4932 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4934 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4935 (struct main_type): Remove arg_types member. Update comments for
4937 (TYPE_ARG_TYPES): Remove.
4938 (TYPE_FN_FIELD_ARGS): Update.
4939 (smash_to_method_type): Update prototype.
4941 * c-typeprint.c (cp_type_print_method_args): Take method type
4942 instead of argument list. Use new argument layout. Simplify.
4943 (c_type_print_args): Use new argument layout. Simplify.
4944 (c_type_print_base): Update call to cp_type_print_method_args.
4945 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4946 argument; use die->type instead. Update call to
4947 smash_to_method_type.
4948 (read_structure_scope): Update call to dwarf2_add_member_fn.
4949 * gdbtypes.c (allocate_stub_method): Update comment.
4950 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4951 Use new argument layout.
4952 (check_stub_method): Use new argument layout. Don't count
4953 void as an argument.
4954 (print_arg_types): Update comments. Use new argument layout.
4955 (recursive_dump_type): Don't print arg_types member.
4956 * hpread.c (hpread_read_struct_type): Use new argument layout.
4957 (fixup_class_method_type): Likewise.
4958 (hpread_type_lookup): Likewise.
4959 * stabsread.c (read_type): Update calls to read_args and
4960 smash_to_method_type.
4961 (read_args): Use new argument layout. Simplify.
4962 * valops.c (typecmp): Use new argument layout. Update parameters
4963 and comments. Simplify.
4964 (hand_function_call): Use new argument layout.
4965 (search_struct_method): Update call to typecmp.
4966 (find_overload_match): Use new argument layout.
4968 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4970 * NEWS: Mention multithreaded debug support for gdbserver.
4972 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4974 * MAINTAINERS: Mention NEWS.
4976 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4978 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4979 (struct mips_objfile_private, compare_pdr_entries): New.
4980 (non_heuristic_proc_desc): Read the ".pdr" section if it
4983 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4985 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4986 (arm_debug): New static variable.
4987 (_initialize_arm_tdep): Add ``set debug arm'' command.
4989 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4991 * Makefile.in (sim_arm_h): Define.
4992 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4993 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4994 (arm_register_sim_regno): New function, map an internal REGNUM
4995 onto a simulator register number.
4996 (arm_gdbarch_init): Set register_sim_regno.
4998 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5000 * MAINTAINERS: Add self.
5002 2002-06-11 Jim Blandy <jimb@redhat.com>
5004 * source.c (source_info): Mention whether the symtab has
5005 information about preprocessor macros.
5007 Call the command `info macro', not `show macro'.
5008 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5010 (_initialize_macrocmd): Register `info_macro_command' in
5011 `infolist', not `showlist'.
5013 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5015 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5016 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5017 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5018 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5019 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5021 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5022 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5023 (_initialize_mips_tdep): Remove dead code.
5024 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5025 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5026 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5027 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5028 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5029 MIPS_LAST_FP_ARG_REGNUM): Remove.
5031 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5033 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5034 (unwind_tmp_obstack_free, parse_frame_info)
5035 (update_context, cfi_read_fp, cfi_write_fp)
5036 (cfi_frame_chain, cfi_init_extra_frame_info)
5037 (cfi_virtual_frame_pointer): Use the above function.
5038 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5040 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5042 * v850-tdep.c (v850_type_is_scalar): New function.
5043 (v850_use_struct_convention): Match current gcc implementation
5044 as close as possible.
5045 (v850_push_arguments): Fix stack_offset handling. Don't write
5046 struct_addr into register. This is done by v850_store_struct_return.
5047 (v850_extract_return_value): Care for structs.
5048 (v850_store_return_value): Ditto.
5049 (v850_store_struct_return): Actually write address.
5051 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5053 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5054 without debug information too.
5056 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5058 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5059 Make multi-arch pure.
5060 * gdbarch.h, gdbarch.c: Re-generate.
5061 * arm-tdep.c (arm_print_float_info): Update.
5062 * arch-utils.h (default_print_float_info): Update.
5063 * arch-utils.c (default_print_float_info): Update.
5064 * infcmd.c (float_info): Update call.
5066 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5068 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5069 the front of the initialize list.
5071 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5073 * infrun.c (struct inferior_status): Replace fields
5074 selected_frame_address and selected_level with field
5076 (save_inferior_status): Update. Use get_frame_id.
5077 (struct restore_selected_frame_args): Delete.
5078 (restore_selected_frame): Update. Use frame_find_by_id.
5079 (restore_inferior_status): Update.
5081 * breakpoint.h (struct breakpoint): Change type of
5082 watchpoint_frame to frame_id.
5083 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5084 call to get_current_frame.
5085 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5087 (watchpoint_check): Use frame_find_by_id.
5089 * frame.h (record_selected_frame): Delete declaration.
5090 * stack.c (record_selected_frame): Delete function.
5092 * frame.h (struct frame_id): Define.
5093 (get_frame_id): Declare.
5094 (frame_find_by_id): Declare.
5095 * frame.c (frame_find_by_id): New function.
5096 (get_frame_id): New function.
5098 2002-06-10 Andrey Volkov <avolkov@transas.com>
5100 * ser-e7kpc.c: Fix duplicated define and call of
5101 _initialize_ser_e7000pc
5103 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5105 * signals/signals.c (target_signal_from_host): Fix #ifdef
5107 (do_target_signal_to_host): Likewise.
5109 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5111 * mips-tdep.c (mips_find_abi_section): New function.
5112 (mips_gdbarch_init): Call it.
5114 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5116 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5117 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5118 after Andrew's 2002-06-08 gdbarch change.
5120 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5122 * i386-linux-nat.c (suppy_gregset): Don't supply
5123 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5125 (fill_gregset): Don't fetch it under the same circumstances.
5127 2002-06-09 Andrew Cagney <cagney@redhat.com>
5129 * Makefile.in (callback_h): Define.
5130 (remote_sim_h): Update path to remote-sim.h.
5131 (remote-rdp.o): Add $(callback_h).
5132 (remote-sim.o): Use $(callback_h).
5133 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5134 * remote-rdp.c: Include "gdb/callback.h".
5136 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5138 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5139 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5141 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5143 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5144 * rdi-share/serpardr.c: Ditto.
5145 * rdi-share/unixcomm.c: Ditto.
5146 * rdi-share/serdrv.c: Ditto.
5147 * rdi-share/hostchan.h: Ditto.
5148 * rdi-share/hostchan.c: Ditto.
5149 * rdi-share/host.h: Ditto.
5150 * rdi-share/devsw.c: Ditto.
5152 * objfiles.h: Change type of obj_private to void pointer.
5153 * pa64solib.c: Update copyright. Don't include "assert.h", use
5154 strcmp instead of STREQ, use LONGEST, do not use PTR
5155 * somsolib.c: Ditto.
5157 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5158 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5159 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5161 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5163 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5164 (default_get_saved_register): Delete function.
5165 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5166 generic_unwind_get_saved_register.
5167 * gdbarch.h, gdbarch.c: Re-generate.
5169 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5171 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5172 generic_func_frame_chain_valid.
5173 * gdbarch.h, gdbarch.c: Re-generate.
5174 * blockframe.c (generic_func_frame_chain_valid): Only check
5175 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5176 passing FP to PC_IN_CALL_DUMMY.
5179 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5181 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5182 (register_gdbarch_data): Initialize init_p.
5183 (gdbarch_data): Initialize data pointer using the init function.
5184 (init_gdbarch_data): Delete function.
5185 (gdbarch_update_p): Update.
5186 (initialize_non_multiarch): Update.
5187 (struct gdbarch): Add field initialized_p.
5188 * gdbarch.h, gdbarch.c: Re-generate.
5190 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5192 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5193 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5194 better do the things actually here.
5195 * x86-64-tdep.c (x86_64_register_name2nr): New.
5196 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5197 (x86_64_gdbarch_init): Respect the above change.
5198 * x86-64-tdep.h (x86_64_register_name2nr)
5199 (x86_64_register_nr2name): Add prototypes.
5200 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5202 2002-06-06 Michael Snyder <msnyder@redhat.com>
5204 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5205 Delete extra braces and re-indent.
5206 (d10v_store_return_value): Char return values
5207 must be shifted over by one byte in R0.
5208 (d10v_extract_return_value): Delete extra braces, re-indent.
5210 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5212 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5213 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5214 (d10v_integer_to_address): Rewrite.
5215 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5216 the d10v specific functions which take care of converting to the
5219 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5221 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5222 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5224 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5226 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5228 * config/tm-linux.h: Ditto.
5229 * config/alpha/tm-alphalinux.h: Ditto.
5230 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5231 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5232 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5233 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5234 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5235 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5236 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5237 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5238 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5239 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5240 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5241 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5242 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5243 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5244 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5245 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5246 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5247 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5248 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5249 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5250 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5251 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5252 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5253 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5254 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5255 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5256 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5257 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5258 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5259 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5260 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5261 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5262 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5263 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5264 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5265 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5266 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5268 2002-05-04 Aidan Skinner <aidan@velvet.net>
5270 * ada-exp.tab.c: New file
5271 * ada-exp.y: New file
5272 * ada-lang.c: New file
5273 * ada-lang.h: New file
5274 * ada-lex.c: New file
5275 * ada-lex.l: New file
5276 * ada-tasks.c: New file
5277 * ada-typeprint.c: New file
5278 * ada-valprint.c: New file
5280 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5282 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5283 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5285 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5287 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5288 insetead of ppc-linux-tdep.o.
5289 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5290 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5292 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5294 2002-05-07 Christian Groessler <chris@groessler.org>
5295 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5296 bit register contents for little endian hosts.
5298 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5300 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5303 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5305 * gdbarch.h: Regenerate.
5307 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5309 * MAINTAINERS: Add everyone to write-after-approval list.
5311 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5313 * stack.c (frame_info): Use frame_register_unwind instead of
5314 saved_regs. Mention when the SP is on the stack or in a register.
5316 * frame.h (frame_register_unwind_ftype): Define. Document.
5317 (struct frame_info): Add field register_unwind and
5318 register_unwind_cache.
5319 (frame_register_unwind): Declare.
5320 (generic_unwind_get_saved_register): Declare.
5322 * frame.c (frame_register_unwind): New function.
5323 (generic_unwind_get_saved_register): New function.
5325 * blockframe.c (generic_call_dummy_register_unwind): New function.
5326 (frame_saved_regs_register_unwind): New function.
5327 (set_unwind_by_pc): New function.
5328 (create_new_frame): New function.
5329 (get_prev_frame): New function.
5331 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5333 * a29k-share/: Delete directory.
5334 * remote-vx29k.c: Delete file.
5336 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5338 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5339 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5341 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5343 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5344 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5347 (sparcnbsd-tdep.o): New dependency lists.
5348 * NEWS: Note new UltraSPARC NetBSD native configuration.
5349 * configure.host (sparc64-*-netbsd*): New host.
5350 * configure.tgt (sparc-*-netbsdelf*)
5351 (sparc-*-netbsd*): Set gdb_target to nbsd.
5352 (sparc64-*-netbsd*): New target.
5353 * sparc64nbsd-nat.c: New file.
5354 * sparcnbsd-nat.c: New file.
5355 * sparcnbsd-tdep.c: New file.
5356 * sparcnbsd-tdep.h: New file.
5357 * config/sparc/nbsd.mt: New file.
5358 * config/sparc/nbsd64.mh: New file.
5359 * config/sparc/nbsd64.mt: New file.
5360 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5361 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5363 * config/sparc/nbsdaout.mt: Remove.
5364 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5365 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5367 * config/sparc/nbsdelf.mt: Remove.
5368 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5369 sparc-nat.c compatiblity defines.
5370 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5371 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5372 * config/sparc/tm-nbsd64.h: New file.
5373 * config/sparc/tm-nbsdaout.h: Remove.
5374 * config/sparc/xm-nbsd.h: Remove.
5376 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5378 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5379 * sparc-tdep.c: Include osabi.h.
5380 (gdbarch_tdep): Add osabi member.
5381 (_initialize_sparc_tdep): Use gdbarch_register.
5382 (sparc_gdbarch_init): Use generic OS ABI framework.
5383 (sparc_dump_tdep): New function.
5385 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5387 * corefile.c (do_captured_read_memory_integer): Return non-zero
5389 (safe_read_memory_integer): Copy result of memory read when
5390 status is non-zero. Also, add comments.
5392 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5394 * Makefile.in (ppc_tdep_h): Define.
5397 (rs6000-tdep.o): Use $(ppc_tdep_h).
5400 (ppcnbsd-tdep.o): New dependency lists.
5401 * ppc-tdep.h: Use generic OS ABI framework.
5402 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5403 (ppc_linux_init_abi): New functions.
5404 (ppc_sysv_abi_broken_use_struct_convention)
5405 (ppc_sysv_abi_use_struct_convention)
5406 (ppc_sysv_abi_push_arguments): Move to...
5407 * ppc-sysv-tdep.c: ...here.
5408 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5409 * rs6000-tdep.c (process_note_abi_tag_sections)
5410 (get_elfosabi): Remove.
5411 (rs6000_gdbarch_init): Use generic OS ABI framework.
5412 (rs6000_dump_tdep): New function.
5413 (_initialize_rs6000_tdep): Use gdbarch_register.
5414 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5415 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5416 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5417 of ppc-linux-tdep.o.
5418 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5419 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5420 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5421 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5422 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5423 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5425 2002-05-29 Jim Blandy <jimb@redhat.com>
5427 * macroscope.c (default_macro_scope): Put `void' in empty argument
5430 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5432 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5433 * arch-utils.c: Include "sim-regno.h".
5434 * gdbarch.sh: Don't include "sim-regno.h".
5435 * gdbarch.h, gdbarch.c: Regenerate.
5436 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5438 * arch-utils.h (legacy_register_sim_regno): To here.
5439 * remote-sim.c (legacy_register_sim_regno): Move function from
5441 * arch-utils.c (legacy_register_sim_regno): To here.
5443 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5445 * sim-regno.h: New file.
5446 * Makefile.in (sim_regno_h): Define.
5447 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5448 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5449 (legacy_register_sim_regno): New function.
5450 (one2one_register_sim_regno): New function.
5451 (gdbsim_fetch_register): Rewrite.
5452 (gdbsim_store_register): Only store a register when
5453 REGISTER_SIM_REGNO is valid.
5454 * d10v-tdep.c: Include "sim-regno.h".
5455 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5456 (d10v_ts3_register_sim_regno): Ditto.
5457 * gdbarch.sh: Include "sim-regno.h".
5458 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5459 * gdbarch.h, gdbarch.c: Regenerate.
5460 * arch-utils.h (default_register_sim_regno): Delete declaration.
5461 * arch-utils.c (default_register_sim_regno): Delete function.
5463 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5465 * ppcnbsd-nat.c: Rewrite.
5466 * ppcnbsd-tdep.c: New file.
5467 * ppcnbsd-tdep.h: New file.
5468 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5469 solib.o, and solib-svr4.o.
5470 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5471 nbsd-tdep.o, and corelow.o.
5473 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5475 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5476 `tr' and `sed'. Mention that `broken' targets are not expected to
5479 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5481 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5482 Let PC point right after the prologue before looking up symbols.
5484 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5486 * i386-tdep.c (i386_register_virtual_type): Return
5487 builtin_type_vec128i for SSE registers.
5489 * gdbtypes.h (builtin_type_vec128i): Declare.
5491 * gdbtypes.c (build_builtin_type_vec128i): New function.
5492 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5493 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5494 (build_gdbtypes): Initialize new builtin vector types.
5495 (_initialize_gdbtypes): Register new vector types with gdbarch.
5497 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5499 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5500 since it has been multi-arch'd.
5501 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5502 Move Alpha and VAX multi-arch news entries to same section
5503 as other multi-arch news.
5505 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5507 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5508 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5509 static. Rename some register numbers to put them in ns32k-tdep
5511 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5512 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5514 (_initialize_ns32k_tdep): Use gdbarch_register.
5515 * ns32k-tdep.h: New file.
5516 * ns32knbsd-tdep.c: New file.
5517 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5518 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5519 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5520 REGISTER_BYTES, REGISTER_BYTE): Remove.
5521 * config/ns32k/tm-ns32k.h: New file.
5522 * config/ns32k/tm-umax.h: Remove.
5524 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5526 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5527 ns32k_store_struct_return, ns32k_extract_return_value,
5528 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5530 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5531 ns32k_saved_pc_after_call.
5532 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5533 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5534 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5535 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5536 ns32k_extract_struct_value_address.
5538 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5540 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5541 ns32k_fix_call_dummy): New.
5542 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5543 ns32k_call_dummy_words.
5544 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5545 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5546 CALL_DUMMY_NARGS): Remove.
5547 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5549 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5551 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5552 ns32k_frame_saved_pc, ns32k_frame_args_address,
5553 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5554 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5555 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5556 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5557 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5558 (BREAKPOINT): Remove..
5559 (FRAME_CHAIN): Define as ns32k_frame_chain.
5560 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5561 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5562 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5563 (FRAME_FIND_SAVED_REGS): Remove.
5564 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5565 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5566 (POP_FRAME): Define as ns32k_pop_frame.
5568 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5570 * ns32k-tdep.c (ns32k_register_byte_32082,
5571 ns32k_register_byte_32382, ns32k_register_raw_size,
5572 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5574 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5575 ns32k_register_byte_32382.
5576 * config/ns32k/tm-umax.h: Update copyright years.
5577 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5578 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5579 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5580 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5581 (ns32k_get_enter_addr): Fix prototype.
5583 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5585 * ns32k-tdep.c: Update copyright years.
5586 (ns32k_register_name_32082): New function.
5587 (ns32k_register_name_32382): Ditto.
5588 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5589 (REGISTER_NAME): Define as ns32k_register_name_32382.
5590 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5591 (REGISTER_NAME): Define as ns32k_register_name_32082.
5593 2002-05-24 Jim Blandy <jimb@redhat.com>
5595 * dwarf2read.c (free_line_header): Use xfree, not free.
5597 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5599 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5600 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5602 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5604 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5606 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5608 From Ross Alexander at NEC Europe:
5609 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5611 2002-05-23 Michael Snyder <msnyder@redhat.com>
5613 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5614 for input, rather than parse_and_eval_address.
5616 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5618 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5619 * Makefile.in (sim_d10v_h): Update definition.
5621 2002-05-24 Andrew Cagney <cagney@redhat.com>
5623 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5624 change `2002-05-22 Michael Snyder' below.
5625 (d10v_push_arguments): Ditto.
5626 (d10v_extract_return_value): Ditto.
5628 2002-05-23 Jim Blandy <jimb@redhat.com>
5630 * macrotab.c (check_for_redefinition): Don't complain if the new
5631 definition is the same as the previous one. Take more arguments
5632 to allow the comparison.
5633 (macro_define_object, macro_define_function): Pass more arguments
5634 to check_for_redefinition.
5636 2002-05-22 Michael Snyder <msnyder@redhat.com>
5638 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5639 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5640 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5641 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5642 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5643 Add a temp variable to save a call (and a memory read).
5644 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5645 if possible (so that PC_IN_CALL_DUMMY will work).
5647 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5649 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5651 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5653 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5655 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5656 (dwarf2_build_frame_info): Add offset to fde->initial_location
5657 so that frames of shared libraries are mapped correctly.
5658 (execute_stack_op): Change type of 'result' from ULONGEST to
5661 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5663 * config/alpha/tm-nbsd.h: Include solib.h.
5665 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5667 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5668 assumptions about the host's byte order.
5670 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5672 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5674 * alphanbsd-tdep.c: Include solib-svr4.h.
5675 * shnbsd-tdep.c: Ditto.
5677 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5679 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5680 nbsd-tdep.h to dependency list.
5681 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5682 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5683 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5684 nbsdaout.mh and nbsdelf.mh consistently.
5685 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5686 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5687 nbsdaout.mt and nbsdelf.mh consistently.
5688 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5689 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5690 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5691 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5692 a.out shared library stuff from here...
5693 * config/nm-nbsdaout.h: ...to here.
5694 * config/tm-nbsd.h: Remove.
5695 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5696 * config/arm/nbsd.mh: Remove.
5697 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5699 * config/arm/nbsdaout.mh: New file.
5700 * config/arm/nbsdelf.mh: New file.
5701 * config/arm/nm-nbsdaout.h: New file.
5702 * config/i386/nbsd.mh: Remove.
5703 * config/i386/nbsd.mt: Remove.
5704 * config/i386/nbsdaout.mh: New file.
5705 * config/i386/nbsdaout.mt: New file.
5706 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5707 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5708 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5709 i386_register_u_addr): Remove.
5710 * config/i386/nm-nbsdaout.h: New file.
5711 * config/i386/nm-nbsdelf.h: Remove.
5712 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5713 (USE_STRUCT_CONVENTION): Remove.
5714 * config/i386/tm-nbsdaout.h: New file.
5715 * config/i386/tm-nbsdelf.h: Remove.
5716 * config/m68k/nbsd.mh: Remove.
5717 * config/m68k/nbsd.mt: Remove.
5718 * config/m68k/nbsdaout.mh: New file.
5719 * config/m68k/nbsdaout.mt: New file.
5720 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5721 * config/m68k/nm-nbsdaout.h: New file.
5722 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5723 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5724 * config/ns32k/nbsd.mh: Remove.
5725 * config/ns32k/nbsd.mt: Remove.
5726 * config/ns32k/nbsdaout.mh: New file.
5727 * config/ns32k/nbsdaout.mt: New file.
5728 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5729 * config/ns32k/nm-nbsdaout.h: New file.
5730 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5731 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5732 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5733 (SVR4_SHARED_LIBS): Remove.
5734 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5735 * config/sparc/nbsd.mh: Remove.
5736 * config/sparc/nbsd.mt: Remove.
5737 * config/sparc/nbsdaout.mh: New file.
5738 * config/sparc/nbsdaout.mt: New file.
5739 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5740 * config/sparc/nbsdelf.mt: New file.
5741 * config/sparc/nm-nbsdaout.h: New file.
5742 * config/sparc/nm-nbsdelf.h: Remove.
5743 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5744 * config/sparc/tm-nbsdaout.h: New file.
5746 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5748 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5750 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5752 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5754 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5756 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5758 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5760 * NEWS: Note new MIPS NetBSD native configuration.
5761 * configure.host (mips*-*-netbsd*): New host.
5762 * configure.tgt (mips*-*-netbsd*): New target.
5763 * mipsnbsd-nat.c: New file.
5764 * mipsnbsd-tdep.c: New file.
5765 * mipsnbsd-tdep.h: New file.
5766 * config/mips/nbsd.mh: New file.
5767 * config/mips/nbsd.mt: New file.
5768 * config/mips/nm-nbsd.h: New file.
5769 * config/mips/tm-nbsd.h: New file.
5771 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5773 * Makefile.in (SFILES): Add osabi.c.
5774 (COMMON_OBS): Add osabi.o.
5775 (osabi.o): New dependency list.
5776 * osabi.c: New file.
5777 * osabi.h: New file.
5778 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5780 * Makefile.in (alpha_tdep_h): Define and use instead of
5782 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5783 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5785 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5786 * alpha-tdep.h: Include osabi.h.
5787 (alpha_abi): Remove.
5788 (gdbarch_tdep): Use generic OS ABI framework.
5789 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5790 gdbarch_register_osabi.
5791 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5792 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5793 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5795 * Makefile.in (sh_tdep_h): Add osabi.h.
5796 * sh-tdep.h (sh_osabi): Remove.
5797 (gdbarch_tdep): Use generic OS ABI framework.
5798 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5799 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5800 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5801 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5803 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5804 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5805 gdbarch_register_osabi.
5806 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5807 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5808 (get_elfosabi): Rename to...
5809 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5810 ABI framework support routines.
5811 (arm_gdbarch_init): Use generic OS ABI framework.
5812 (arm_dump_tdep): Likewise.
5813 (_initialize_arm_tdep): Likewise.
5814 * arm-tdep.h: Include osabi.h.
5816 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5818 (arm_gdbarch_register_os_abi): Remove prototype.
5819 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5820 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5822 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5823 * mips-tdep.c: Include osabi.h.
5824 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5827 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5829 * h8300-tdep.c: Fix formatting.
5831 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5833 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5834 printing vector registers.
5836 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5838 From Fernando Nasser:
5839 * remote.c (remote_async_open_1): Re-throw the exception when the
5841 (remote_cisco_open): Ditto.
5842 (remote_open_1): Ditto.
5844 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5846 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5847 (remote_start_remote): Add uiout parameter. Pass through to
5848 remote_start_remote_dummy.
5849 (remote_open_1): Use catch_exception instead of catch_errors.
5850 (remote_async_open_1): Ditto.
5851 (remote_cisco_open): Ditto.
5853 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5855 * remote.c (remote_start_remote): Replace PTR with void pointer.
5856 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5859 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5861 * gdb_indent.sh: Allow the script to be run in the sim directory.
5863 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5865 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5866 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5868 * corelow.c (core_open): Only call set_gdbarch_from_file if
5871 2002-05-17 Andrey Volkov <avolkov@transas.com>
5873 * h8300-tdep.c: Add support of EXR register
5874 * config/h8300/tm-h8300.h: Ditto.
5876 2002-05-17 Andrey Volkov <avolkov@transas.com>
5878 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5880 2002-05-17 Andrey Volkov <avolkov@transas.com>
5882 * h8300-tdep.c: Change literal regnums to REGNO.
5884 2002-05-17 Jim Blandy <jimb@redhat.com>
5886 * NEWS: Note addition of macro support.
5888 Expand preprocessor macros in C expressions.
5889 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5890 (scan_macro_expansion, scanning_macro_expansion,
5891 finished_macro_expansion): New function declarations.
5892 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5893 variable declarations.
5894 * parser-defs.h (expression_context_pc): New declaration.
5895 * parse.c (expression_context_pc): New variable.
5896 (parse_exp_1): Set expression_context_pc, as well as
5897 expression_context_block.
5898 * c-exp.y (yylex): If we're not already reading the result of a
5899 macro expansion, try to macro-expand the next token. When we're
5900 done scanning a macro expansion, switch back to the mainline text.
5901 Commas and `if's in a macro's expansion don't terminate the input.
5902 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5903 (macro_original_text, macro_expanded_text,
5904 expression_macro_lookup_func, expression_macro_lookup_baton): New
5906 (scan_macro_expansion, scanning_macro_expansion,
5907 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5908 c_preprocess_and_parse): New functions.
5909 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5910 c_preprocess_and_parse, instead of c_parse.
5911 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5912 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5914 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5916 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5917 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5918 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5920 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5922 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5924 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5926 * Makefile.in (sh_tdep_h): Define and use.
5927 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5928 register enum): Move to...
5929 * * sh-tdep.h: ...here.
5930 * sh-tdep.c: Include sh-tdep.h.
5931 * sh3-rom.c: Likewise.
5932 * shnbsd-tdep.c: Likewise.
5934 2002-05-16 Michael Snyder <msnyder@redhat.com>
5936 * arm-tdep.c: Spelling fix in comment.
5938 2002-05-16 Jim Blandy <jimb@redhat.com>
5940 Add commands for manually expanding macros and showing their
5942 * macrocmd.c, macroscope.c, macroscope.h: New files.
5943 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5944 (macroscope_h): New variable.
5945 (HFILES_NO_SRCDIR): Add macroscope.h.
5946 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5947 (macroscope.o, macrocmd.o): New rules.
5949 Teach the Dwarf 2 reader to read macro information.
5950 * dwarf2read.c: #include "macrotab.h".
5951 (dwarf_macinfo_buffer): New variable.
5952 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5954 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5955 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5956 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5957 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5958 dwarf2_macro_spaces_in_definition): New complaints.
5959 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5960 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5961 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5962 the partial symbol table.
5963 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5964 from what's recorded in the partial symbol table.
5965 (read_file_scope): If the compilation unit has a
5966 `DW_AT_macro_info' attribute, read its macro information.
5967 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5969 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5972 * ser-tcp.c: Don't include <netinet/udp.h>.
5974 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5976 * MAINTAINERS: Update my email address.
5978 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5980 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5981 include file of the same name.
5983 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5985 * configure.tgt: Mark v850 as multi-arched.
5986 * config/v850/tm-v850.h: Remove file.
5987 * config/v850/v850.mt: Eliminate TM_FILE.
5989 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5991 * v850-tdep.c: Full multi-arch.
5992 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5993 Define GDB_MULTI_ARCH to 2.
5995 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5997 * p-exp.y (current_type): New static variable.
5998 Carries the type of the expression at the position that is parsed.
5999 (push_current_type, pop_current_type): Two new functions. Used
6000 to store/restore current_type in expression on specific tokens.
6001 (search_field): New static variable. Set to one after parsing a point
6002 as at that point only a FIELDNAME token should be searched.
6003 (FIELDNAME): New token. After a point only a token belonging to
6004 current_type type definition is allowed.
6005 (all over token rules): reset and change current_type according
6007 (exp '[' rule): insert implicit array index field if
6008 exp is a pascal string type.
6010 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6012 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6013 frame info. Use frame_info's saved_regs instead of matching member
6014 in extra_frame_info throughout.
6015 (v850_frame_init_saved_regs): New function.
6016 (v850_init_extra_frame_info): Move most functionality into
6017 v850_frame_init_saved_regs().
6018 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6019 (v850_frame_find_saved_regs): Remove declaration.
6020 (FRAME_FIND_SAVED_REGS): Remove definition.
6021 (v850_frame_init_saved_regs): Add declaration.
6022 (FRAME_INIT_SAVED_REGS): Add definition.
6024 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6026 * v850-tdep.c: Begin multi-arch'ing v850.
6027 (v850_target_architecture_hook): Remove function.
6028 (v850_gdbarch_init): New function. Add code previously in
6029 v850_target_architecture_hook().
6030 (_initialize_v850_tdep): Don't set target_architecture_hook.
6031 Call register_gdbarch_init() instead.
6033 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6035 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6036 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6037 (fixup_class_method_type): Likewise.
6039 2002-05-15 Jim Blandy <jimb@redhat.com>
6041 Add macro structures to GDB's symbol tables. Nobody puts anything
6043 * symtab.h (struct symtab): New member: `macro_table'.
6044 * buildsym.h (pending_macros): New global variable.
6045 * buildsym.c: #include "macrotab.h".
6046 (buildsym_init): Initialize `pending_macros'.
6047 (end_symtab): If we found macro information while reading a CU's
6048 debugging info, do build a symtab structure for it. Make the
6049 symtab point to the macro information, and clear the
6050 `pending_macros' pointer which held it while we were reading the
6052 (really_free_pendings): Free any pending macro table.
6053 * objfiles.h (struct objfile): New member: `macro_cache'.
6054 * objfiles.c (allocate_objfile): Set allocate and free functions
6055 for the macro cache's objstack.
6056 (free_objfile): Empty the macro cache's obstack.
6057 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6058 set new allocate and free functions for it.
6059 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6060 free functions for the macro cache's objstack. (Why is this
6061 function building its own objfile?)
6062 * symmisc.c (print_objfile_statistics): Print statistics on the
6064 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6066 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6068 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6069 (REGISTER_U_ADDR): Delete definition.
6070 (arm_register_u_addr): Delete declaration.
6072 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6074 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6075 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6077 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6079 * regcache.c (register_valid): Revise comments refering to "Not
6080 available" and "unavailable".
6081 * frame.c (frame_register_read): Ditto.
6082 * findvar.c (value_of_register): Ditto.
6084 2002-05-15 Andrew Cagney <cagney@redhat.com>
6086 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6087 (remote-sim.o): Update dependencies.
6088 (d10v-tdep.o): Specify dependencies.
6089 (sim_d10v_h): Define.
6091 2002-05-14 Jim Blandy <jimb@redhat.com>
6093 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6094 * macrotab.c (macro_lookup_inclusion, find_definition,
6095 new_macro_table): Same.
6097 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6098 not `! strcmp ()'. This is a dubious improvement.
6099 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6101 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6102 although it's not necessary, to avoid a warning.
6104 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6106 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6107 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6108 TYPE_INSTANCE_FLAGS.
6109 (struct main_type): New.
6110 (struct type): Move most members to struct main_type. Change
6111 cv_type and as_type to new type_chain member. Add instance_flags.
6112 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6113 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6114 (finish_cv_type): Remove prototype.
6115 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6117 (alloc_type_instance): New function.
6118 (smash_type): New function.
6119 (make_pointer_type, make_reference_type, make_function_type)
6120 (smash_to_member_type, smash_to_method_type): Call smash_type.
6121 (make_qualified_type): New function.
6122 (make_type_with_address_space): Call make_qualified_type.
6123 (make_cv_type): Likewise.
6124 (finish_cv_type): Remove unnecessary function.
6125 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6126 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6127 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6128 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6129 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6130 * hpread.c (hpread_read_struct_type): Likewise.
6131 * stabsread.c (read_struct_type): Likewise.
6133 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6135 * configure.tgt: Add a catch all sh* target, for cases like
6136 sh[2,3,4]-elf and sh-hms.
6138 2002-05-14 Keith Seitz <keiths@redhat.com>
6140 * event-loop.c (create_file_handler): Don't do anything but
6141 update data when we are given a fd which we are already
6144 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6146 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6147 (update_context): Use __func__ in warnings.
6149 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6151 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6152 and tcp_close to net_open and net_close.
6153 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6154 using UDP if requested. Don't try to disable Nagle on UDP
6156 * remote.c (remote_serial_open): New function. Warn about UDP.
6157 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6159 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6161 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6163 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6165 * configure.tgt: Remove sh-hms target.
6166 * MAINTAINERS: Don't list sh-hms as a separate target.
6168 2002-05-13 Jim Blandy <jimb@redhat.com>
6170 Add first preprocessor macro-expansion files.
6171 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6172 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6173 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6174 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6175 (COMMON_OBS): Add macrotab.o, macroexp.o.
6176 (macroexp.o, macrotab.o): New rules.
6178 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6180 * config/m88k/tm-m88k.h: Update copyright.
6181 (m88k_target_write_pc): Declare
6182 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6183 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6184 (SHIFT_INST_REGS): Update definition.
6185 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6186 using old definition of TARGET_WRITE_PC.
6187 * regcache.c (generic_target_write_pc): Delete code handling
6189 * gdbarch.sh (NNPC_REGNUM): Delete.
6190 * gdbarch.h, gdbarch.c: Regenerate.
6192 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6194 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6197 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6199 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6200 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6201 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6203 * c-typeprint.c (cp_type_print_method_args): Likewise.
6204 (c_type_print_args): Likewise.
6205 * d10v-tdep.c (d10v_push_arguments): Likewise.
6206 (d10v_extract_return_value): Likewise.
6207 * expprint.c (print_subexp): Likewise.
6208 * gdbtypes.c (lookup_primitive_typename): Likewise.
6209 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6210 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6211 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6212 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6213 (TYPE_VECTOR): Likewise.
6214 * hpread.c (hpread_read_struct_type)
6215 (fix_static_member_physnames, fixup_class_method_type)
6216 (hpread_type_lookup): Likewise.
6217 * mdebugread.c (parse_symbol, parse_type): Likewise.
6218 * p-lang.c (is_pascal_string_type): Likewise.
6219 * valops.c (hand_function_call): Likewise.
6220 * x86-64-tdep.c (classify_argument): Likewise.
6222 * hpread.c (hpread_read_function_type)
6223 (hpread_read_doc_function_type): Call replace_type.
6224 * dstread.c (create_new_type): Delete.
6225 (decode_dst_structure, process_dst_function): Call alloc_type.
6226 Use type access macros.
6228 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6230 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6231 the're not supported by the current architecture.
6232 (i387_fill_fxsave): Likewise.
6234 2002-05-12 Fred Fish <fnf@redhat.com>
6236 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6237 sect_index_xxx members to index the first slot in section_offsets
6238 if all of the section_offsets are zero.
6240 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6242 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6243 checked in with last change.
6245 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6247 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6248 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6251 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6253 * Makefile.in: Update dependencies.
6255 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6257 * language.c (local_hex_string_custom): Simplify. Do not depend
6258 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6260 * memattr.c (mem_info_command): Replace calls to
6261 longest_local_hex_string and longest_local_hex_string_custom.
6262 * buildsym.c (make_blockvector): Ditto.
6263 * solib.c (info_sharedlibrary_command): Ditto.
6264 * tracepoint.c (tracepoints_info): Ditto.
6265 * symtab.c (print_msymbol_info): Ditto.
6267 * language.c (local_hex_string): Delete.
6268 (local_hex_string_custom): Delete.
6269 (longest_local_hex_string): Rename to local_hex_string.
6270 (longest_local_hex_string_custom): Rename to
6271 local_hex_string_custom.
6272 * language.h (local_hex_string): Change parameter type to LONGEST.
6273 (local_hex_string_custom): Ditto.
6274 (longest_local_hex_string): Delete declaration.
6275 (longest_local_hex_string_custom): Ditto.
6277 * solib.c: Update copyright.
6278 * memattr.c: Update copyright.
6280 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6282 * arch-utils.h (legacy_register_to_value): Declare.
6283 (legacy_value_to_register): Declare.
6284 (legacy_convert_register_p): Declare.
6285 * arch-utils.c (legacy_register_to_value): New function.
6286 (legacy_value_to_register): New function.
6287 (legacy_convert_register_p): New function.
6289 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6290 (VALUE_TO_REGISTER): Define.
6291 (CONVERT_REGISTER_P): Define.
6292 * gdbarch.h, gdbarch.c: Regenerate.
6294 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6296 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6299 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6300 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6302 * Makefile.in: Update dependencies for valops.c.
6303 * valops.c: Include "gdb_assert.h".
6304 (typecmp): Skip THIS parameter to methods.
6305 (find_method_list): Remove static_memfuncp argument,
6306 update callers. Check for stub methods.
6307 (find_value_oload_method_list): Don't set *static_memfuncp.
6308 (find_overload_match): Don't check for stub methods. Assert
6309 that methods are not stubbed. Handle static methods.
6310 (value_find_oload_method_list): Remove static_memfuncp argument.
6311 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6312 to the argument list for static stub methods.
6313 * value.h (value_find_oload_method_list): Update prototype.
6315 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6317 * arch-utils.h (generic_register_size): Declare.
6318 (generic_register_raw_size, generic_register_virtual_size): Delete
6320 * arch-utils.c (generic_register_raw_size): Delete.
6321 (generic_register_size): New function.
6322 (generic_register_virtual_size): Delete.
6324 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6325 default generic_register_size.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6328 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6329 register_virtual_size.
6330 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6333 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6335 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6336 * gdbarch.h, gdbarch.c: Regenerate.
6337 * gnu-v3-abi.c: Update copyright.
6338 (vtable_address_point_offset): Update.
6339 (gnuv3_rtti_type): Update.
6340 (gnuv3_baseclass_offset): Update.
6341 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6342 (init_fetch_link_map_offsets): Update.
6343 * remote.c (get_remote_state): Update.
6345 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6347 * TODO: Remove value_headof/value_from_vtable_info comment.
6348 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6349 * values.c (value_headof, value_from_vtable_info): Delete.
6350 * value.h (value_from_vtable_info): Delete prototype.
6352 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6354 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6355 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6357 (gdb_assert_h): Define.
6358 (gdb_wait_h): Define.
6359 (gdb_regex_h): Define.
6361 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6363 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6364 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6366 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6368 * nbsd-tdep.c: Fix comment.
6370 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6372 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6373 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6374 (nbsd-tdep.o): New dependency list.
6375 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6377 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6378 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6379 * nbsd-tdep.c: New file.
6380 * nbsd-tdep.h: New file.
6381 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6383 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6384 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6385 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6386 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6388 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6390 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6391 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6392 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6393 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6394 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6395 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6397 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6399 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6400 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6401 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6402 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6403 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6404 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6405 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6407 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6409 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6410 fetch_elfcore_registers to...
6411 * i386nbsd-tdep.c: ...here.
6412 (i386nbsd_use_struct_convention): Rename to...
6413 (i386nbsd_aout_use_struct_convention): ...this.
6414 (i386nbsd_supply_reg): New function.
6415 (i386nbsd_fill_reg): New function.
6416 (fetch_core_registers): Use i386nbsd_supply_reg.
6417 (fetch_elfcore_registers): Likewise.
6418 (_initialize_i386nbsd_tdep): New function.
6419 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6420 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6421 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6422 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6423 (i386nbsd_aout_use_struct_convention): ...this.
6425 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6427 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6428 (store_inferior_registers): Use shnbsd_fill_reg.
6429 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6430 sh_nbsd_supply_register): Collapse into...
6431 (shnbsd_supply_reg): ...this.
6432 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6433 (shnbsd_fill_reg): ...this.
6434 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6435 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6436 (fetch_core_registers): Use shnbsd_supply_reg.
6437 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6438 (sh_nbsd_core_fns): Rename to...
6439 (shnbsd_core_fns): ...this.
6440 (sh_nbsd_elfcore_fns): Rename to...
6441 (shnbsd_elfcore_fns): ...this.
6442 (sh_nbsd_init_abi): Rename to...
6443 (shnbsd_init_abi): ...this.
6444 (_initialize_sh_nbsd_tdep): Rename to...
6445 (_initialize_shnbsd_tdep): ...this.
6446 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6447 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6448 sh_nbsd_fill_register): Remove prototypes.
6449 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6451 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6453 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6454 (i387-nat.o): Delete dependency list.
6455 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6456 (x86-64-linux-nat.o): Likewise.
6457 * i387-nat.c: Delete file, moving contents to...
6458 * i387-tdep.c: ...here.
6459 * i387-nat.h: Rename...
6460 * i387-tdep.h: ...to this.
6461 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6462 * i386-linux-nat.c: Likewise.
6463 * i386bsd-nat.c: Likewise.
6464 * i386gnu-nat.c: Likewise.
6465 * i386nbsd-nat.c: Likewise.
6466 * i386v4-nat.c: Likewise.
6467 * x86-64-linux-nat.c: Likewise.
6468 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6469 * config/i386/go32.mh (NATDEPFILES): Likewise.
6470 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6471 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6472 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6473 * config/i386/linux.mh (NATDEPFILES): Likewise.
6474 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6475 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6476 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6477 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6479 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6481 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6482 (alphanbsd-nat.o): Remove dependency list.
6483 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6484 * alphanbsd-nat.c: Delete. Contents moved to...
6485 * alphanbsd-tdep.c: ...here.
6486 (_initialize_alphanbsd_tdep): Register core functions.
6487 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6489 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6491 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6492 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6493 (alphanbsd-nat.o): Likewise.
6494 (alphabsd-tdep.o): New dependency list.
6495 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6496 (fill_gregset): Use alphabsd_fill_reg.
6497 (supply_fpregset): Use alphabsd_supply_fpreg.
6498 (fill_fpregset): Use alphabsd_fill_fpreg.
6499 (fetch_inferior_registers): Use struct reg and struct fpreg
6500 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6501 and alphabsd_supply_fpreg.
6502 (store_inferior_registers): Use struct reg and struct fpreg
6503 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6504 and alphabsd_fill_fpreg.
6505 * alphabsd-tdep.c: New file.
6506 * alphabsd-tdep.h: New file.
6507 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6508 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6509 alphabsd_supply_fpreg.
6510 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6511 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6513 2002-05-11 Eric Christopher <echristo@redhat.com>
6515 * mips-tdep.c (mips_double_register_type): Fix thinko.
6516 (mips_single_register_type): Ditto.
6517 * MAINTAINERS: Add self.
6519 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6521 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6522 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6523 right thing on architectures with different endianness and/or
6526 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6528 From Christian Limpach <chris@Pin.LU>
6529 * configure.in: Change sed expression which comments out
6530 NATDEPFILES to also comment out continuation lines.
6531 * configure: Regenerate.
6533 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6535 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6538 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6540 * sh-tdep.c: Include correct file.
6542 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6544 New support for sh64-elf (sh5) target.
6546 * configure.tgt: For sh64-elf target, default to sh-elf.
6548 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6549 (struct gdbarch_tdep): Add new fields for new registers and ABI
6552 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6553 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6554 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6555 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6556 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6557 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6558 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6559 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6560 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6561 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6562 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6563 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6564 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6565 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6566 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6567 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6568 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6569 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6570 sign_extend, sh64_nofp_frame_init_saved_regs,
6571 sh64_init_extra_frame_info, sh64_get_saved_register,
6572 sh64_extract_struct_value_address, sh64_pop_frame,
6573 sh64_push_arguments, sh64_extract_return_value,
6574 sh64_store_return_value, sh64_show_media_regs,
6575 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6576 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6577 sh_sh64_register_virtual_type,
6578 sh_sh64_register_convert_to_virtual,
6579 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6580 sh64_register_read, sh64_pseudo_register_write,
6581 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6582 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6583 sh64_do_pseudo_register, sh_compact_do_registers_info,
6584 sh64_do_registers_info, sh_gdbarch_init): New functions.
6586 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6588 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6590 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6592 * linespec.c (decode_line_1): Check for a double quote after
6593 a filename correctly.
6595 2002-05-10 Jim Blandy <jimb@redhat.com>
6597 Properly track the size of the current objfile's .debug_line section.
6598 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6599 (DWARF_LINE_SIZE): New macro.
6600 (dwarf2_build_psymtabs_hard): Record the line section's size in
6601 the partial symbol table.
6602 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6605 2002-05-10 Petr Sorfa <petrs@caldera.com>
6607 * ia64-tdep.c: Handle breakpoints on L instruction type
6608 in MLX instruction bundle by moving the breakpoint to
6609 the third slot (X instruction type) as L holds only data.
6611 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6613 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6614 (process_one_symbol): Complain about discarding local symbols
6615 due to a misplaced N_LBRAC entry.
6617 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6619 From Daniel Berlin <dan@cgsoftware.com>
6620 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6621 decrease the depth we are at, in the case of templates.
6623 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6625 * mips-tdep.c (mips_float_register_type): New function.
6626 (mips_double_register_type): New function.
6627 (mips_print_register): Use them.
6628 (do_fp_register_row): Likewise.
6630 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6632 * signals/signals.c (signals): Remove conditional compilation around
6633 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6634 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6636 2002-05-09 Michael Snyder <msnyder@redhat.com>
6638 * remote-rdp.c (remote_rdp_can_run): Remove.
6640 2002-05-09 Tom Tromey <tromey@redhat.com>
6642 * jv-valprint.c (java_val_print): Handle `char' as a special case
6645 2002-05-09 Michael Snyder <msnyder@redhat.com>
6647 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6648 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6649 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6650 str r(0123),[sp,#nn].
6651 (arm_skip_prologue): Ditto. Also make disassembly
6652 order-independent by placing it in a loop.
6654 2002-05-06 Michael Snyder <msnyder@redhat.com>
6656 * stabsread.c (read_type): Add recognition for new attribute:
6657 "@V;" means that an array type is actually a vector.
6658 This is analogous to the vector flag that's been added to dwarf2.
6660 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6662 * i386-tdep.h (i386_abi): New enum.
6663 (struct gdbarch_tdep): Replace os_ident member with abi.
6664 (i386_gdbarch_register_os_abi): New prototype.
6665 * i386-tdep.c (i386_abi_names): New array.
6666 (process_note_abi_tag_sections): Removed.
6667 (process_note_sections): New function.
6668 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6669 (struct i386_abi_handler): New struct.
6670 (i386_abi_handler_list): New variable.
6671 (i386_gdbarch_register_os_abi): New function.
6672 (i386_gdbarch_init): Adapt for the changes given above.
6674 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6676 * gregset.h: Say "GNU/Linux".
6678 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6680 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6681 (build_gdbtypes): Build builtin_type_v2_float.
6682 (_initialize_gdbtypes): Register new builtin type.
6684 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6686 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6687 (clear_gdbarch_swap): New function.
6688 (initialize_non_multiarch): Call.
6689 (gdbarch_update_p): Before calling init(), swap out and clear the
6690 existing architecture.
6691 * gdbarch.c: Regenerate.
6693 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6695 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6698 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6700 * sh-nbsd-nat.c: Rename to...
6701 * shnbsd-nat.c: ...this.
6702 * sh-nbsd-tdep.c: Rename to...
6703 * shnbsd-tdep.c: ...this.
6704 * sh-nbsd-tdep.h: Rename to...
6705 * shnbsd-tdep.h: ...this.
6706 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6707 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6709 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6711 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6712 concatenation for command help messages.
6714 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6716 * NEWS: Note new sh*-*-netbsdelf* configuration.
6717 * configure.host: Set gdb_host_cpu to sh for all sh*.
6718 (sh*-*-netbsdelf*): New host.
6719 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6720 (sh*-*-netbsdelf*): New target.
6721 * sh-nbsd-nat.c: New file.
6722 * sh-nbsd-tdep.c: New file.
6723 * sh-nbsd-tdep.h: New file.
6724 * config/sh/nbsd.mh: New file.
6725 * config/sh/nbsd.mt: New file.
6726 * config/sh/nm-nbsd.h: New file.
6727 * config/sh/tm-nbsd.h: New file.
6729 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6731 * sh-tdep.c (sh_osabi_names): Declare.
6732 (process_note_abi_tag_sections): New function.
6733 (get_elfosabi): Ditto.
6734 (sh_gdbarch_register_os_abi): Ditto.
6735 (sh_dump_tdep): Ditto.
6736 _initialize_sh_tdep): Use gdbarch_register to register
6737 sh_gdbarch_init and sh_dump_tdep.
6738 * config/sh/tm-sh.h (sh_osabi): Declare.
6739 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6741 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6743 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6744 (thumb_scan_prologue): Ditto.
6745 (arm_find_callers_reg): Ditto.
6746 (arm_frame_chain): Ditto.
6747 (arm_init_extra_frame_info): Ditto.
6748 (arm_frame_saved_pc): Ditto.
6749 (arm_pop_frame): Ditto.
6750 (arm_push_return_address): New function.
6751 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6752 call_dummy_location, call_dummy_breakpoint_offset_p,
6753 call_dummy_breakpoint_offset, call_dummy_p,
6754 call_dummy_stack_adjust_p, call_dummy_words,
6755 sizeof_call_dummy_words, call_dummy_start_offset,
6756 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6757 call_dummy_address, push_return_address and push_dummy_frame for
6758 generic dummy frames.
6760 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6762 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6763 size computation for alloca.
6764 (sh_fp_frame_init_saved_regs): Likewise.
6766 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6768 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6769 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6770 * arm-tdep.c (arm_store_return_value): Use them.
6771 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6772 * remote-rdp.c (remote_rdp_fetch_register): Use
6773 ARM_MAX_REGISTER_RAW_SIZE.
6774 (remote_rdp_store_register): Likewise.
6776 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6778 * dwarf2cfi.c: Code cleanup, removed unused variables,
6779 added default labels to switch {} statements.
6780 * x86-64-tdep.c: Ditto.
6781 * x86-64-linux-nat.c: Ditto.
6783 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6785 * solib.h: Protect against multiple inclusion.
6787 2002-05-06 Jim Blandy <jimb@redhat.com>
6789 Add first preprocessor macro-expansion files.
6790 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6791 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6792 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6793 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6794 (COMMON_OBS): Add macrotab.o, macroexp.o.
6795 (macroexp.o, macrotab.o): New rules.
6797 Separate the job of reading the line number info statement program
6798 header (...expialidocious) out into its own function.
6799 * dwarf2read.c (struct line_head, struct filenames, struct
6800 directories): Replace with...
6801 (struct line_header): New structure, containing the full
6802 contents of the statement program header, including the
6803 include directory and file name tables.
6804 (read_file_scope): If we have line number info, instead of just
6805 calling dwarf_decode_lines to do all the work, call
6806 dwarf_decode_line_header first to get a `struct line_header'
6807 containing the data in the statement program header, and then
6808 pass that to dwarf_decode_lines, which will pick up where that
6809 left off. Be sure to clean up the `struct line_header' object.
6810 (dwarf_decode_line_header, free_line_header, add_include_dir,
6811 add_file_name): New functions.
6812 (dwarf_decode_lines): Move all the code to read the statement
6813 program header into dwarf_decode_line_header. Take the line
6814 header it built as the first argument, instead of the offset to
6815 the compilation unit's line number info. Use the new `struct
6816 line_header' type instead of the old structures. No need to do
6817 cleanups here now, since we don't allocate anything.
6818 (dwarf2_statement_list_fits_in_line_number_section,
6819 dwarf2_line_header_too_long): New complaints.
6821 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6823 * gdbtypes.c (init_vector_type): New function.
6824 (build_builtin_type_vec128): Simplify the representation of SIMD
6826 (build_gdbtypes): Initialize new builtin vector types.
6827 (_initialize_gdbtypes): Register new vector types with gdbarch.
6828 (builtin_type_v4_float, builtin_type_v4_int32,
6829 builtin_type_v8_int16, builtin_type_v16_int8,
6830 builtin_type_v2_int32, builtin_type_v4_int16,
6831 builtin_type_v8_int8): New (renamed) SIMD types.
6833 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6835 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6836 (i387_fill_fxsave): Likewise.
6838 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6840 * alpha-tdep.c (alpha_extract_return_value): Don't use
6841 non-constant array size in prototype.
6843 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6845 From Brian Taylor <briant at model dot com>:
6846 * ui-out.c (ui_out_field_core_addr): Use the function
6847 longest_local_hex_string_custom'to format addresses > 32 bits
6850 * ui-out.c (ui_out_field_core_addr): Update comment.
6852 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6854 * stack.c (select_and_print_frame): Make static. Delete the
6856 (func_command): Update call.
6857 (select_frame_command): Delete code computing the frame level.
6858 * frame.h (select_and_print_frame): Delete declaration.
6860 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6862 * sparc-tdep.c (sparc_get_saved_register): Comment why
6863 get_prev_frame call is safe.
6865 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6867 * frame.h (select_frame): Delete level parameter.
6868 * stack.c (select_frame): Update. Use frame_relative_level to
6869 obtain the frame's level.
6870 (select_and_print_frame): Update call.
6871 (select_frame_command): Ditto.
6872 (up_silently_base): Ditto.
6873 (down_silently_base): Ditto.
6874 * ocd.c (ocd_start_remote): Ditto.
6875 * remote-rdp.c (remote_rdp_open): Ditto.
6876 * remote-mips.c (mips_initialize): Ditto.
6877 (common_open): Ditto.
6878 * remote-e7000.c (e7000_start_remote): Ditto.
6879 * m3-nat.c (select_thread): Ditto.
6880 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6881 (child_get_current_exception_event): Ditto.
6882 * varobj.c (varobj_create): Ditto.
6883 (varobj_update): Ditto.
6884 (c_value_of_root): Ditto.
6885 * tracepoint.c (finish_tfind_command): Ditto.
6886 * corelow.c (core_open): Ditto.
6887 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6888 * thread.c (info_threads_command): Ditto.
6889 (switch_to_thread): Ditto.
6890 * infrun.c (normal_stop): Ditto.
6891 (restore_selected_frame): Ditto.
6892 (restore_inferior_status): Ditto.
6893 * breakpoint.c (insert_breakpoints): Ditto.
6894 (watchpoint_check): Ditto.
6895 (bpstat_stop_status): Ditto.
6896 (do_enable_breakpoint): Ditto.
6897 * blockframe.c (flush_cached_frames): Ditto.
6898 (reinit_frame_cache): Ditto.
6900 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6902 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6905 2002-05-04 Jim Blandy <jimb@redhat.com>
6907 * gdbtypes.c (replace_type): Doc fix.
6909 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6911 * valprint.c (strcat_longest): Delete commented out function.
6914 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6916 * MAINTAINERS: Mark a29k as deleted.
6917 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6918 Move new configurations to the top.
6919 * configure.tgt: Remove a29k.
6920 * config/a29k/tm-vx29k.h: Delete.
6921 * config/a29k/vx29k.mt: Delete.
6922 * config/a29k/tm-a29k.h: Delete.
6923 * config/a29k/a29k-udi.mt: Delete.
6924 * config/a29k/a29k.mt: Delete.
6925 * a29k-tdep.c: Delete.
6926 * remote-udi.c: Delete.
6927 * remote-mm.c: Delete.
6928 * remote-eb.c: Delete.
6929 * remote-adapt.c: Delete.
6930 * Makefile.in: Remove obsolete code.
6931 * config/s390/s390x.mt: Ditto.
6932 * config/s390/s390.mt: Ditto.
6933 * config/sparc/sparclynx.mh: Ditto.
6934 * config/sparc/linux.mh: Ditto.
6935 * config/pa/hppaosf.mh: Ditto.
6936 * config/pa/hppabsd.mh: Ditto.
6937 * config/ns32k/nbsd.mt: Ditto.
6938 * config/mips/vr5000.mt: Ditto.
6939 * config/m68k/sun3os4.mh: Ditto.
6940 * config/m68k/nbsd.mt: Ditto.
6941 * config/m68k/m68klynx.mh: Ditto.
6942 * config/m32r/m32r.mt: Ditto.
6943 * config/i386/x86-64linux.mt: Ditto.
6944 * config/i386/nbsdelf.mt: Ditto.
6945 * config/i386/nbsd.mt: Ditto.
6946 * config/i386/i386lynx.mh: Ditto.
6948 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6950 * target.c (debug_print_register): New function. Handle oversize
6952 (debug_to_fetch_registers): Call.
6953 (debug_to_store_registers): Call.
6955 2002-05-03 Jim Blandy <jimb@redhat.com>
6957 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6958 (read_type): Doc fix.
6959 * gdbtypes.c (replace_type): Doc fix.
6961 * stabsread.c (multiply_defined_struct): New complaint.
6962 (read_struct_type): If the type we were passed isn't empty, or
6963 incomplete, don't read the new struct type into it; complain,
6964 and return the original type unchanged. Take a new `type_code'
6965 argument, which is the type code for the new type.
6966 (read_type): Rather than storing the type's type code here, pass
6967 it as an argument to read_struct_type, and let that take care of
6968 storing it. That way, we don't overwrite the original type code,
6969 so read_struct_type can use it to decide whether we're overwriting
6970 something we shouldn't.
6971 (complain_about_struct_wipeout): New function.
6973 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6975 * gdbarch.sh: Assert that gdbarch is non-NULL.
6976 * gdbarch.c: Regenerate.
6978 2002-05-03 Jason Merrill <jason@redhat.com>
6980 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6983 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6985 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6986 (x86_64_dwarf2gdb_regno_map_length),
6987 (x86_64_dwarf2_reg_to_regnum): Added.
6988 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6989 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6990 (_initialize_x86_64_tdep): Synced with the change above.
6991 (x86_64_skip_prologue): Reformulated message.
6993 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6995 * f-exp.y: Also use new prev_lexptr variable
6996 to improve error reporting. Based on Michael Snyder
6997 2002-04-24 dated patch to c-exp.y.
6998 * jv-exp.y: Likewise.
6999 * m2-exp.y: Likewise.
7001 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7003 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7004 we are dealing with vectors.
7006 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7008 * config/m68k/tm-nbsd.h: Obvious fix,
7009 correct machine name.
7011 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7013 * p-typeprint.c (pascal_type_print_base): Add support
7014 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7016 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7018 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7019 for fondamental pascal 'char' type.
7021 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7023 * p-lang.h (is_pascal_string_type): Declaration changed,
7024 new sixth argument of type char ** added.
7025 * p-lang.c (is_pascal_string_type): Implementation
7026 changed. Args length_pos, length_size, string_pos, char_size
7027 can now be NULL. New argument arrayname set to the field
7028 name of the char array. Return value set to char array
7029 field index plus one.
7030 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7031 is_pascal_string_type function.
7033 2002-05-02 Andrew Cagney <cagney@redhat.com>
7035 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7036 <cagney@redhat.com> change.
7037 * gdbarch.c: Regenerate.
7039 2002-05-02 Andrew Cagney <cagney@redhat.com>
7041 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7042 before probing for a new one. Detect errorenous gdbarch_init
7044 * gdbarch.c: Regenerate.
7046 2002-05-01 Andrew Cagney <cagney@redhat.com>
7048 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7049 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7050 * config/v850/tm-v850.h: Ditto. Update copyright.
7052 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7054 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7057 2002-04-30 Michael Snyder <msnyder@redhat.com>
7059 * arm-tdep.c: Whitespace clean-ups.
7060 (arm_skip_prologue): Fix thinko; two lines
7061 should have been removed as part of 4/24 change.
7063 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7065 * rs6000-tdep.c: Added comment describing how fpscr register
7066 numbers were chosen.
7068 2002-04-30 Michael Snyder <msnyder@redhat.com>
7070 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7072 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7074 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7075 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7076 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7078 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7080 From Louis Hamilton <hamilton@redhat.com>:
7081 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7082 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7083 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7084 not bfd-private xcoff data, to determine wordsize.
7085 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7087 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7089 GDB 5.2 released from 5.2 branch.
7091 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7093 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7094 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7095 (x86_64_register_info_table): Added comments with register numbers.
7097 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7099 * rs6000-tdep.c (rs6000_extract_return_value,
7100 rs6000_store_return_value): Handle returning vectors.
7101 (rs6000_gdbarch_init): Use
7102 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7103 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7105 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7107 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7108 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7110 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7112 * hpread.c (hpread_psymtab_to_symtab_1,
7113 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7114 with fprintf_unfiltered (gdb_stderr,...).
7116 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7118 * remote-array.c (printf_monitor, write_monitor,
7119 array_insert_breakpoint, array_remove_breakpoint ):
7120 Replace fprintf (stderr,...
7121 with fprintf_unfiltered (gdb_stderr,....
7122 * remote-es.c: Likewise.
7123 * remote-os9k.c: Likewise.
7124 * remote-st.c: Likewise.
7126 2002-04-28 Andreas Schwab <schwab@suse.de>
7128 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7129 linux-proc.o and gcore.o.
7131 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7133 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7134 code without frame pointers.
7136 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7138 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7141 2002-04-26 Ben Elliston <bje@redhat.com>
7143 * target.c (do_xfer_memory): Correct reference to the new option
7144 "trust-readonly-sections".
7146 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7148 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7149 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7150 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7152 (read_array_type): Record the fact that this array type is really a
7153 vector (i.e. are passed in by value).
7155 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7157 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7158 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7159 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7160 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7161 * alpha-linux-tdep.c: Include frame.h.
7162 (alpha_linux_sigcontext_addr): New function.
7163 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7164 alpha_linux_sigcontext_addr.
7165 * alpha-osf1-tdep.c: Include gdbcore.h.
7166 (alpha_osf1_sigcontext_addr): New function.
7167 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7168 alpha_osf1_sigcontext_addr.
7169 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7170 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7172 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7174 * stack.c (selected_frame_level):
7175 (select_frame): Do not set selected_frame_level.
7176 * frame.h (selected_frame_level): Delete declaration.
7178 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7180 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7181 convert_from_func_ptr-addr when AIX / PowerOpen.
7183 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7185 * valops.c (hand_function_call): Call
7186 generic_save_call_dummy_addr.
7187 * frame.h (generic_save_call_dummy_addr): Declare.
7188 * blockframe.c (struct dummy_frame): Add fields call_lo and
7190 (generic_find_dummy_frame): Check for PC in range call_lo to
7191 call_hi instead of entry_point_address.
7192 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7193 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7194 (generic_save_call_dummy_addr): New function.
7196 2002-04-24 David S. Miller <davem@redhat.com>
7198 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7199 sparc_skip_prologue.
7200 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7201 information to find prologue when possible.
7202 (sparc_prologue_frameless_p): Call examine_prologue directly.
7203 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7204 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7206 (SKIP_PROLOGUE): Likewise.
7208 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7210 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7211 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7212 indicate that the condition it was testing is always true.
7213 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7214 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7215 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7217 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7219 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7220 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7221 tdep->jb_pc and tdep->jb_elt_size.
7222 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7223 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7224 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7225 * alpha-nat.c (get_longjmp_target): Remove.
7226 (JB_ELEMENT_SIZE): Ditto.
7228 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7229 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7230 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7231 to alpha_get_longjmp_target.
7232 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7233 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7234 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7236 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7238 * README: Update to GDB 5.2.
7240 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7242 * gdbarch.sh (LC_ALL): Set to `c'.
7244 2002-04-25 Theodore A. Roth <troth@verinet.com>
7246 * avr-tdep.c: Ran through gdb_indent.sh.
7248 2002-04-25 Theodore A. Roth <troth@verinet.com>
7250 * MAINTAINERS: Add myself as AVR maintainer.
7251 * NEWS: Note new target avr.
7253 2002-04-25 Theodore A. Roth <troth@verinet.com>
7255 * Makefile.in: Add support for AVR target.
7256 * configure.tgt: Add support for AVR target.
7257 * avr-tdep.c: New file
7258 * config/avr/avr.mt: New file.
7260 2002-04-25 Theodore A. Roth <troth@verinet.com>
7262 * MAINTAINERS: Add myself to write-after-approval.
7264 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7266 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7267 with fprintf_unfiltered (gdb_stderr,....
7269 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7272 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7274 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7276 * p-exp.y: Also use new prev_lexptr variable
7277 to improve error reporting. Based on Michael Snyder
7278 2002-04-24 dated patch to c-exp.y.
7280 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7282 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7283 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7284 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7286 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7288 (FUNCTION_START_OFFSET): Remove.
7289 (BREAKPOINT): Ditto.
7291 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7293 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7296 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7298 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7299 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7300 alpha_linux_pc_in_sigtramp.
7301 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7302 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7303 alpha_osf1_pc_in_sigtramp.
7304 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7305 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7306 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7307 alphafbsd_pc_in_sigtramp.
7308 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7309 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7310 alphanbsd_pc_in_sigtramp.
7311 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7312 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7314 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7316 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7318 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7320 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7322 (alphanbsd-nat.o): New dependency list.
7323 (alphanbsd-tdep.o): Ditto.
7324 * NEWS: Note new native NetBSD/alpha configuration.
7325 * alphanbsd-nat.c: New file.
7326 * alphanbsd-tdep.c: Ditto.
7327 * configure.host (alpha*-*-netbsd*): New host.
7328 * configure.tgt (alpha*-*-netbsd*): New target.
7329 * config/alpha/nbsd.mh: New file.
7330 * config/alpha/nbsd.mt: Ditto.
7331 * config/alpha/nm-nbsd.h: Ditto.
7332 * config/alpha/tm-nbsd.h: Ditto.
7334 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7336 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7337 (alpha-osf1-tdep.o): New dependency list.
7338 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7339 and skip_sigtramp_frame members.
7340 * alpha-linux-tdep.c: Include gdbcore.h.
7341 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7342 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7343 * alpha-osf1-tdep.c: New file.
7344 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7346 (alpha_frame_past_sigtramp_frame): New function.
7347 (alpha_dynamic_sigtramp_offset): Ditto.
7348 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7349 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7350 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7351 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7352 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7353 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7354 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7355 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7356 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7357 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7358 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7359 to find_solib_trampoline_target.
7360 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7361 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7362 (SKIP_TRAMPOLINE_CODE): Remove.
7363 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7364 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7365 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7366 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7367 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7368 (PROC_SIGTRAMP_MAGIC): Ditto.
7369 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7370 (SET_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.
7375 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7377 * NEWS: Note that Alpha targets are now multi-arch.
7379 2002-04-24 Michael Snyder <msnyder@redhat.com>
7381 * parser-defs.h (prev_lexptr): New external variable.
7382 * parse.c (parse_exp_1): Set prev_lexptr to null before
7383 calling the language-specific parser.
7384 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7385 (yyerror): Use prev_lexptr in error reporting.
7387 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7389 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7390 * gregset.h: If FILL_FPXREGSET is defined, provide
7391 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7392 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7393 is defined, call fill_fpxregset.
7395 2002-04-24 Roland McGrath <roland@frob.com>
7397 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7398 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7399 (supply_gregset, supply_fpregset): New functions.
7401 * gnu-nat.c (gnu_find_memory_regions): New function.
7402 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7403 (gnu_xfer_memory): Add a cast.
7405 2002-04-24 Michael Snyder <msnyder@redhat.com>
7407 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7408 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7409 of argument regs ("str r(0123), [r11, #-nn"]).
7410 (arm_skip_prologue): Better handling for frameless functions.
7411 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7412 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7414 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7416 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7417 NUM_PSEUDO_REGS can be used.
7419 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7421 * arch-utils.h: Update copyright.
7423 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7424 * gdbarch.h, gdbarch.c: Re-generate.
7426 * inferior.h (IN_SIGTRAMP): Delete definition.
7427 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7428 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7430 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7431 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7432 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7433 (find_proc_framesize): Ditto.
7434 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7435 (alpha_init_extra_frame_info): Ditto.
7436 * infrun.c (handle_inferior_event): Ditto.
7437 (handle_inferior_event): Ditto.
7438 (check_sigtramp2): Ditto.
7439 * blockframe.c (create_new_frame): Ditto.
7440 (get_prev_frame): Ditto.
7441 * ppc-linux-tdep.c: Update comments.
7442 * i386-linux-tdep.c: Update comments.
7443 * breakpoint.c (bpstat_what): Update comment.
7445 2002-04-24 David S. Miller <davem@redhat.com>
7447 * i960-tdep.c (register_in_window_p): New function.
7448 (i960_find_saved_register): Use it instead of
7449 REGISTER_IN_WINDOW_P.
7450 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7452 * symtab.h (find_stab_function_addr): Kill extern.
7453 * minsyms.c (find_stab_function_addr): Remove from here...
7454 * dbxread.c: ... to here, and mark it static.
7456 2002-04-20 David S. Miller <davem@redhat.com>
7458 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7459 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7461 2002-04-21 David S. Miller <davem@redhat.com>
7463 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7464 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7465 (vx_write_register): Likewise.
7467 2002-04-23 J. Brobecker <brobecker@gnat.com>
7469 * source.c (is_regular_file): New function.
7470 (openp): Check wether file to open is a regular file
7471 to avoid opening directories.
7473 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7475 * findvar.c (extract_signed_integer): Cast printf argument
7476 to suppress format warning.
7477 (extract_unsigned_integer): Likewise.
7478 * infcmd.c (registers_info): Likewise.
7479 * top.c (get_prompt_1): Likewise.
7480 * valops.c (value_assign): Likewise.
7481 * valprint.c (print_decimal): Likewise.
7483 2002-04-22 H.J. Lu (hjl@gnu.org)
7485 * c-exp.y (typebase): Support
7487 [long|long long|short] [signed|unsigned] [int|]
7491 signed [long|long long|short] int
7493 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7495 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7497 * vax-tdep.h: New file.
7498 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7499 Make several routines static.
7500 (vax_get_saved_register): New function.
7501 (vax_gdbarch_init): New function.
7502 (_initialize_vax_tdep): Register vax_gdbarch_init.
7503 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7504 Remove macros now under the control of gdbarch.
7506 2002-04-22 Michael Snyder <msnyder@redhat.com>
7508 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7509 Some whitespace and coding standards tweaks.
7511 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7513 * vax-tdep.c: Include regcache.h.
7514 (vax_call_dummy_words): New.
7515 (sizeof_vax_call_dummy_words): New.
7516 (vax_fix_call_dummy): New function.
7517 (vax_saved_pc_after_call): Ditto.
7518 * config/vax/tm-vax.h: Don't include regcache.h.
7519 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7520 (CALL_DUMMY): Remove.
7521 (CALL_DUMMY_WORDS): Define.
7522 (SIZEOF_CALL_DUMMY_WORDS): Define.
7523 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7525 2002-04-18 Michael Snyder <msnyder@redhat.com>
7527 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7529 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7531 * vax-tdep.c (vax_frame_chain): New function.
7532 (vax_push_dummy_frame): Ditto.
7533 (vax_pop_frame): Ditto.
7534 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7535 (FRAMELESS_FUNCTION_INVOCATION): Use
7536 generic_frameless_function_invocation_not.
7537 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7538 (POP_FRAME): Use vax_pop_frame.
7540 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7542 * vax-tdep.c (vax_store_struct_return): New function.
7543 (vax_extract_return_value): Ditto.
7544 (vax_store_return_value): Ditto.
7545 (vax_extract_struct_value_address): Ditto.
7546 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7547 vax_store_struct_return.
7548 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7549 (STORE_RETURN_VALUE): Use vax_store_return_value.
7550 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7552 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7554 * vax-tdep.c (vax_frame_saved_pc): New function.
7555 (vax_frame_args_address_correct): Ditto.
7556 (vax_frame_args_address): Ditto.
7557 (vax_frame_locals_address): Ditto.
7558 (vax_frame_num_args): Move code to be in proximity to
7559 other frame-related functions.
7560 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7561 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7562 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7563 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7564 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7566 2002-04-22 H.J. Lu (hjl@gnu.org)
7568 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7571 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7573 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7574 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7575 (FRAME_INIT_SAVED_REGS): New macro.
7577 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7579 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7581 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7583 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7585 (fetch_osf_core_registers): Likewise.
7586 (supply_gregset): Likewise.
7588 2002-04-22 J. Brobecker <brobecker@gnat.com>
7590 * symfile.h (get_section_index): Define.
7591 * symfile.c (get_section_index): New function.
7592 * mdebugread.c (SC_IS_SBSS): New macro.
7593 (SC_IS_BSS): Return true for the scBss storage class only, as
7594 the scSBss storage class refers to the .sbss section.
7595 (parse_partial_symbols): Discard the symbols which associated
7596 section does not exist.
7597 Make sure to use the .sbss section index for symbols which
7598 storage class is scBss, rather than using the .bss section index.
7600 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7602 * vax-tdep.c: Update copyright years.
7603 (vax_register_name): New function.
7604 (vax_register_byte): Ditto.
7605 (vax_register_raw_size): Ditto.
7606 (vax_register_virtual_size): Ditto.
7607 (vax_register_virtual_type): Ditto.
7608 * config/vax/tm-vax.h: Update copyright years.
7609 (REGISTER_NAMES): Remove.
7610 (REGISTER_NAME): Define.
7611 (REGISTER_BYTE): Use vax_register_byte.
7612 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7613 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7614 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7616 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7618 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7620 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7622 2002-04-21 David S. Miller <davem@redhat.com>
7624 * arch-utils.c (generic_prologue_frameless_p): Kill
7625 SKIP_PROLOGUE_FRAMELESS_P code.
7626 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7628 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7629 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7630 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7632 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7633 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7634 (sparc_gdbarch_init): Pass it to
7635 set_gdbarch_prologue_frameless_p.
7637 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7639 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7640 (alphabsd-nat.o): New dependency list.
7642 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7644 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7646 (alpha-linux-tdep.o): New dependency list.
7647 (alphafbsd-tdep.o): Likewise.
7649 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7651 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7653 * alpha-tdep.c: ...from here.
7654 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7656 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7658 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7659 prototype from here...
7660 * alpha-tdep.h: ...to here.
7662 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7664 * frame.h (selected_frame_level): Document as deprecated.
7665 (frame_relative_level): Declare.
7666 * stack.c (frame_relative_level): New function.
7667 (selected_frame_level): Document as deprecated.
7668 (select_frame): Do not set the selected_frame_level.
7670 * stack.c (frame_info, record_selected_frame): Update.
7671 (frame_command, current_frame_command): Update.
7672 (up_silently_base, up_command, down_silently_base): Update.
7673 (down_command): Update.
7674 * inflow.c (kill_command): Update.
7675 * tracepoint.c (finish_tfind_command): Update.
7676 * corelow.c (core_open): Update.
7677 * thread.c (info_threads_command): Update.
7678 (do_captured_thread_select): Update.
7679 * infcmd.c (finish_command): Update.
7680 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7682 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7684 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7686 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7688 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7691 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7693 * alphafbsd-tdep.c: Update copyright years. Include
7695 (alphafbsd_use_struct_convention): Make static.
7696 (alphafbsd_init_abi): New function.
7697 (_initialize_alphafbsd_tdep): New function.
7698 * config/alpha/tm-fbsd.h: Update copyright years.
7699 (USE_STRUCT_CONVENTION): Remove.
7701 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7703 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7704 an Alpha ABI variant.
7705 (alpha_abi_handler_list): Declare.
7706 (alpha_gdbarch_register_os_abi): New function.
7707 (alpha_gdbarch_init): Give registered ABI variant handlers a
7708 chance to tweak the gdbarch once we have set up defaults.
7709 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7711 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7713 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7714 to standard_coerce_float_to_double.
7715 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7717 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7719 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7720 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7721 from gdbarch_tdep rather than a constant.
7722 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7723 the default text address for all Alpha Unix ABIs.
7724 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7725 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7727 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7729 * alpha-tdep.h: New file. Includes several Alpha target constants
7731 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7732 let gdbarch deal with.
7733 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7734 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7736 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7737 Alpha target register names.
7738 * alphabsd-nat.c: Likewise.
7739 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7740 Alpha target register names. Make serveral routines static.
7741 (alpha_get_saved_register): New function.
7742 (alpha_abi_names): New.
7743 (process_note_abi_tag_sections): New function.
7744 (get_elfosabi): New function.
7745 (alpha_gdbarch_init): New function.
7746 (alpha_dump_tdep): New function.
7747 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7749 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7751 * frame.c (find_saved_register): Delete #ifdef
7752 HAVE_REGISTER_WINDOWS code.
7753 * config/sparc/tm-sparc.h: Update comments.
7754 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7756 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7758 * i960-tdep.c (i960_find_saved_register): New function.
7759 (i960_get_saved_register): New function.
7760 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7761 (i960_get_saved_register): Declare.
7762 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7764 2002-04-20 David S. Miller <davem@redhat.com>
7766 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7768 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7770 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7771 instead of NUM_PSEUDO_REGS.
7773 2002-04-20 David S. Miller <davem@redhat.com>
7775 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7776 GDB_MULTI_ARCH_PARTIAL
7777 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7778 define, let tm-sp64.h do it.
7780 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7782 * frame.c (find_saved_register): Avoid a NULL pointer
7783 dereference and actually walk the frame list.
7785 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7787 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7788 sorted in most most-recent-used order. Document.
7789 * gdbarch.h, gdbarch.c: Regenerate.
7791 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7793 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7795 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7796 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7797 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7800 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7803 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7804 (build_builtin_type_vec128): Ditto.
7805 (append_composite_type_field): Fix calculation of type length in
7808 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7810 * config/djgpp/README: Update.
7812 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7815 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7817 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7818 (alpha_setup_arbitrary_frame): ...to this.
7819 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7820 for alpha_setup_arbitrary_frame.
7822 2002-04-18 Andrew Cagney <cagney@redhat.com>
7824 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7825 * gdbarch.h, gdbarch.c: Regenerate.
7827 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7828 * target.h (memory_breakpoint_from_pc): Update declaration.
7829 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7831 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7832 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7833 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7834 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7835 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7836 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7837 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7838 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7839 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7840 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7841 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7842 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7844 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7846 * monitor.c (monitor_insert_breakpoint): Ditto.
7847 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7849 * config/mcore/tm-mcore.h: Update copyright.
7850 * mem-break.c: Ditto.
7851 * xstormy16-tdep.c: Ditto.
7853 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7855 * p-exp.y: Add precedence rule for '^' token.
7856 This removes the shift/reduce conflicts.
7857 Remove the comment concerning these shift/reduce conflicts.
7859 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7861 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7862 (registers_powerpc_nofp): New register set for processors
7863 without floating point unit.
7865 2002-04-18 David S. Miller <davem@redhat.com>
7867 * MAINTAINERS: Add myself to write-after-approval.
7869 2002-04-17 Michael Snyder <msnyder@redhat.com>
7871 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7873 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7875 * rs6000-tdep.c (frame_initial_stack_address): Use
7876 frame_register_read to read the alloca_reg.
7878 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7880 * frame.c (find_saved_register): Find saved registers in the next
7884 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7886 * gdbarch.sh (LANG): Set to ``c''.
7888 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7890 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7892 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7894 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7897 * hpread.c (hpread_get_lntt): Add declaration.
7898 Also fix PR gdb/391.
7900 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7902 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7903 * aclocal.m4, configure: Re-generate.
7906 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7908 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7909 instead of tm_print_insn.
7911 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7913 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7915 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7917 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7918 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7919 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7921 2002-04-12 Don Howard <dhoward@redhat.com>
7923 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7924 max_user_call_depth.
7925 (init_cmd_lists): Initialize the new value;
7926 * cli/cli-script.c (execute_user_command): Limit the call depth of
7927 user defined commands. This avoids a core-dump when user commands
7928 are infinitly recursive.
7930 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7932 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7933 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7934 from tdep struct instead of DEFAULT_LR_SAVE.
7935 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7936 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7937 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7939 2002-04-12 Michael Snyder <msnyder@redhat.com>
7941 * Remote.c: Spelling fix.
7942 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7943 If no symbol found for "sbrk", try "_sbrk".
7944 (make_output_phdrs): Use bfd_section_name.
7945 (gcore_copy_callback): Use bfd_section_name.
7946 * eval.c: Indentation fix-ups.
7947 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7948 in case it gets applied to an address that is already
7949 in the instruction space.
7950 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7951 * symfile.c: Fix indentation, long lines.
7952 * source.c: White space fix-up.
7954 2002-04-12 Andrew Cagney <cagney@redhat.com>
7956 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7957 * frame.c (frame_register_read): New function. Return non-zero on
7959 (read_relative_register_raw_bytes_for_frame): Delete.
7960 (read_relative_register_raw_bytes): Delete.
7961 * frame.h (frame_register_read): Declare.
7962 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7964 * infcmd.c (do_registers_info): Ditto.
7965 * hppa-tdep.c: Ditto.
7966 * rs6000-tdep.c: Ditto.
7967 * h8500-tdep.c: Ditto.
7968 * mips-tdep.c: Ditto.
7969 * h8300-tdep.c: Ditto.
7970 * z8k-tdep.c: Ditto.
7972 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7974 From Jimi X <jimix@watson.ibm.com>:
7975 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7978 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7980 From Jimi X <jimix@watson.ibm.com>:
7981 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7984 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7986 From Jimi X <jimix@watson.ibm.com>:
7987 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7988 register sets for these processor variants.
7990 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7992 * regformats/reg-ppc.dat: Support FPSCR.
7994 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7996 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7997 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7998 Add fpscr as an invalid/unfetchable register.
7999 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8000 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8001 (fill_fpregset): Add support for register fpscr.
8002 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8003 (fill_gregset): Account for the fact that register ``mq'' might
8005 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8006 (registers_power): Add fpscr to register set at slot 71.
8007 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8008 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8010 2002-04-11 Michael Snyder <msnyder@redhat.com>
8012 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8013 * configure: Regenerate.
8014 * config.in: Regenerate.
8015 * acconfig.h: Add define for _SYSCALL32.
8016 * core-sol2.c: Remove #define _SYSCALL32.
8017 * solib-legacy.c: Remove #define _SYSCALL32.
8019 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8021 * stack.c (select_frame): Cleanup internal error message, do not
8024 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8026 * stack.c (select_frame): Check that selected_frame and the
8027 specified level are as expected.
8028 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8030 * frame.h (struct frame_info): Add field `level'. Update
8032 Work-in-progress PR gdb/464.
8034 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8036 * maint.c (maint_print_section_info): Rename print_section_info.
8037 (print_bfd_section_info, print_objfile_section_info): Update.
8038 * inferior.h (struct gdbarch): Add opaque declaration.
8039 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8040 * gdbarch.h: Regenerate.
8042 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8044 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8045 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8046 (kernel_u_size): Added.
8047 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8048 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8050 2002-04-04 Jim Ingham <jingham@apple.com>
8052 * valarith.c (find_size_for_pointer_math): New function, either returns
8053 the size for a pointer's target, returns 1 for void *, or errors for
8055 (value_add, value_sub): use find_size_for_pointer_math.
8057 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8059 * linux-low.c (linux_look_up_symbols): New hook.
8060 (linux_target_ops): Add linux_look_up_symbols.
8061 * remote-utils.c (decode_address): New function.
8062 (look_up_one_symbol): New function.
8063 * server.c (handle_query): Call target look_up_symbols hook.
8064 * server.h (look_up_one_symbol): Add prototype.
8065 * target.h (struct target_ops): Add look_up_symbols hook.
8067 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8069 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8070 override FP_REGNUM with frame->fp. Update copyright.
8071 * parse.c (num_std_regs, std_regs): Delete.
8072 (target_map_name_to_register): Do not search std_regs. Update
8073 function description.
8074 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8075 declarations. Update copyright.
8078 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8080 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8081 after the last symbol in a block.
8083 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8085 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8086 is non zero as a found symbol.
8088 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8090 * findvar.c: Include "builtin-regs.h".
8091 (value_of_register): Call value_of_builtin_reg when applicable.
8092 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8093 (target_map_name_to_register): Call
8094 builtin_reg_map_name_to_regnum.
8095 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8096 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8097 (builtin_regs_h): Define.
8098 (builtin-regs.o): New target.
8099 (findvar.o): Add $(builtin_regs_h).
8100 * builtin-regs.c, builtin-regs.h: New files.
8101 * std-regs.c: New file.
8102 Partial fix for PR gdb/251.
8104 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8107 it's no longer required.
8109 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8111 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8113 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8115 From Jimi X <jimix@watson.ibm.com>:
8116 * rs6000-tdep.c (rs6000_software_single_step): Use
8117 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8118 and size. Use target_insert_breakpoint() and
8119 target_remove_breakpoint() to insert and remove breakpoints
8120 instead of explicit memory reads and writes.
8122 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8124 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8125 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8126 ELF_OBJECT_FORMAT ifdef.
8128 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8130 From Jimi X <jimix@watson.ibm.com>:
8131 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8133 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8135 From Jimi X <jimix@watson.ibm.com>:
8136 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8137 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8139 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8141 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8142 s/asprintf/xasprintf/.
8143 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8145 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8147 I believe Jeff Law denies responsability for this one:
8148 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8149 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8150 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8151 Work-around for PR gdb/366.
8153 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8155 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8156 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8157 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8159 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8161 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8162 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8165 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8167 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8170 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8172 * README (Reporting Bugs in GDB): Document the bug web page as the
8173 prefered way of submitting bugs.
8176 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8178 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8180 * gdbarch.h, gdbarch.c: Re-generate.
8182 2002-04-07 Andreas Schwab <schwab@suse.de>
8184 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8185 buffer to regcache_collect.
8187 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8189 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8190 * gdbarch.c, gdbarch.h: Re-generate.
8192 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8194 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8195 declaration. Fix -Werror.
8197 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8199 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8200 * gdbarch.c: Regenerate.
8202 2002-04-05 Michael Snyder <msnyder@redhat.com>
8204 * breakpoint.c (clear_command): Rewrite middle section to
8205 combine two loops with identical control conditions.
8206 Add a cleanup to eliminate a memory leak.
8207 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8209 2002-04-05 H.J. Lu (hjl@gnu.org)
8211 * solib-svr4.c (bkpt_names): Add "__start".
8213 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8215 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8216 as test for 64 bit target.
8218 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8220 * h8500-tdep.c (h8500_write_fp): Delete function.
8221 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8222 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8223 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8225 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8226 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8228 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8229 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8230 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8231 (d10v_write_fp): Delete function.
8232 * inferior.h (write_fp, generic_target_write_fp): Delete
8234 * regcache.c (generic_target_write_fp): Delete function.
8235 (write_fp): Delete function.
8236 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8237 * gdbarch.h, gdbarch.c: Regenerate.
8238 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8239 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8240 (sparc64_write_fp): Delete declaration.
8241 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8242 (h8500_write_fp): Delete declaration.
8244 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8246 * sparc-tdep.c (sparc64_write_fp): Delete.
8247 (sparc_push_dummy_frame): Replace write_fp call with code to store
8249 (sparc_gdbarch_init): Do not initialize write_fp.
8251 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8253 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8256 2002-03-29 Jim Blandy <jimb@redhat.com>
8258 * stack.c (get_selected_block): Add new argument `addr_in_block',
8259 used to return the exact code address we used to select the block,
8261 * blockframe.c (get_frame_block, get_current_block): Same.
8262 * frame.h (get_frame_block, get_current_block,
8263 get_selected_block): Update declarations.
8264 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8265 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8267 2002-04-05 Michael Snyder <msnyder@redhat.com>
8269 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8272 2002-04-05 J. Brobecker <brobecker@gnat.com>
8274 * utils.c (xfullpath): New function.
8275 * defs.h (xfullpath): Add declaration.
8276 * source.c (openp): Use xfullpath in place of gdb_realpath to
8277 avoid resolving the basename part of filenames when the
8278 associated file is a symbolic link. This fixes a potential
8279 inconsistency between the filenames known to GDB and the
8280 filenames it prints in the annotations.
8281 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8282 to be able to match a filename with either the real filename, or
8283 the name of any symbolic link to this file.
8284 (lookup_partial_symtab): Ditto.
8286 2002-04-04 Michael Snyder <msnyder@redhat.com>
8288 * breakpoint.c: Add support for hardware breakpoints in overlays.
8289 (overlay_events_enabled): New state variable.
8290 (insert_breakpoints): Use overlay_events_enabled to decide
8291 whether to attempt to set a breakpoint at the overlay load addr.
8292 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8293 (remove_breakpoint): Use overlay_events_enabled to decide
8294 whether breakpoints need to be removed from overlay load addr.
8295 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8296 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8297 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8298 disable_overlay_breakpoints): Update overlay_events_enabled.
8300 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8302 * dwarf2read.c (struct function_range): New.
8303 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8304 (check_cu_functions): New.
8305 (read_file_scope): Initialize global function lists.
8306 Call dwarf_decode_line after processing children.
8307 (read_func_scope): Add to global function list.
8308 (dwarf_decode_lines): Call check_cu_functions everywhere
8309 record_line is called. Call record_line with a linenumber
8310 of 0 to mark sequence ends.
8312 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8314 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8315 change sync with glibc.
8317 2002-04-03 Jim Blandy <jimb@redhat.com>
8319 * configure.in: Call AC_C_INLINE.
8320 * configure: Regenerated.
8322 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8324 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8325 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8327 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8329 * NEWS: Mention gcore support on FreeBSD/i386.
8331 * fbsd-proc.c: New file.
8332 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8333 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8335 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8338 2002-03-29 Jim Blandy <jimb@redhat.com>
8340 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8341 unescaped newlines in string literals, but newer ones don't. So
8344 2002-03-26 Michael Snyder <msnyder@redhat.com>
8345 Andrew Cagney <cagney@redhat.com>
8347 * cli/cli-dump.c: New file. Dump memory to file,
8348 restore file to memory.
8349 * cli/cli-dump.h: New file.
8350 * Makefile.in: Add rules, dependencies for cli-dump.o.
8351 * NEWS: Mention new commands.
8353 2002-03-28 Michael Snyder <msnyder@redhat.com>
8355 * symfile.c (symbol_file_add): Move test for null symbols to later.
8357 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8359 From veksler at il.ibm.com:
8360 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8361 the xstrduped original path.
8364 2002-03-27 Michael Snyder <msnyder@redhat.com>
8366 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8367 * infcmd.c (_initialize_infcmd): Ditto.
8368 * language.c (_initialize_language): Ditto.
8369 * symfile.c (_initialize_symfile): Ditto.
8370 * top.c (_init_main): Ditto.
8371 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8373 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8375 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8376 vector registers handling.
8377 (skip_prologue): Handle new AltiVec instructions. Fill in new
8378 fields of frame data.
8379 (frame_get_saved_regs): Fill in information for AltiVec registers.
8381 2002-03-27 Jim Blandy <jimb@redhat.com>
8383 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8384 a function; leave this macro here to invoke that function.
8385 (symbol_init_mangled_name): Declaration for that function.
8386 * symtab.c (symbol_init_mangled_name): New function.
8388 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8390 * valarith.c: Replace strerror with safe_strerror.
8391 * tracepoint.c: Ditto.
8393 * go32-nat.c: Ditto.
8397 2002-03-27 Andreas Schwab <schwab@suse.de>
8399 * event-top.c (command_line_handler): Remove useless if.
8401 2002-03-27 Andreas Jaeger <aj@suse.de>
8403 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8406 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8408 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8409 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8410 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8411 (x86_64_linux_dr_get_status, supply_gregset),
8412 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8413 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8414 (x86_64_register_info_table): Add.
8415 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8416 (x86_64_register_raw_size, x86_64_register_virtual_type),
8417 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8418 general x86_64_register_info_table.
8419 (i386_gdbarch_init): gdbarch_register_bytes is now set
8420 dynamicaly during initialization.
8421 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8422 * gdbserver/linux-x86-64-low.c: Ditto.
8424 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8426 * gdbserver/server.c (main): Call target_signal_to_host_p
8427 and target_signal_to_host on signals received from the remote.
8428 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8429 target_signal_from_host on signals sent to the remote.
8430 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8431 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8433 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8435 * signals/signals.c: Include "server.h" in gdbserver build.
8436 (target_signal_from_name): Don't use STREQ.
8437 (_initialize_signals): Likewise. Don't include function in
8440 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8442 * signals.c: Moved to...
8443 * signals/signals.c: Here.
8444 * Makefile (signals.o): Update.
8446 2002-03-26 Jeff Law (law@redhat.com)
8448 * somread.c (som_symtab_read): Remove some commented out code and
8449 updated related comments. Do not set the minimal symbol table to
8450 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8451 in a dynamic executable.
8452 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8453 where we are unable to find the minimal symbol for the given
8456 2002-03-25 Jeff Law (law@redhat.com)
8458 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8460 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8462 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8464 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8466 * command.h: Update copyright.
8467 (struct cmd_list_element): Replace definition with opaque
8469 (enum cmd_types): Document that it will eventually be moved to
8471 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8472 (MALLOCED_REPLACEMENT): Delete macro.
8473 * Makefile.in (cli_decode_h): Add $(command_h).
8474 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8475 * top.c: Include "cli/cli-decode.h".
8476 * completer.c: Include "cli/cli-decode.h".
8477 * maint.c: Include "cli/cli-decode.h".
8478 * cli/cli-decode.h: Include "command.h".
8479 (enum command_class): Delete.
8480 (enum cmd_types): Comment out.
8481 (enum cmd_auto_boolean): Delete.
8482 (enum var_types): Delete.
8484 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8486 * cli/cli-decode.c: Include "gdb_assert.h".
8487 (add_set_or_show_cmd): New static function.
8488 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8489 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8490 all fields, such as func, from the set command.
8492 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8494 * MAINTAINERS (sh-elf): Change warning flag to -w.
8496 2002-03-23 Andrew Cagney <cagney@redhat.com>
8498 * defs.h (error): Add printf format attribute.
8499 * thread-db.c (thread_from_lwp): Fix error format string.
8500 * stack.c (parse_frame_specification): Ditto.
8501 * cli/cli-decode.c (undef_cmd_error): Ditto.
8502 * scm-lang.c (scm_lookup_name): Ditto.
8503 * tracepoint.c (trace_error): Ditto.
8504 * remote-utils.c (usage): Ditto.
8505 * remote.c (compare_sections_command): Ditto.
8508 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8510 * gdbtypes.c (append_composite_type_field): New function.
8511 (init_composite_type): New function.
8512 * gdbtypes.h (append_composite_type_field): Declare.
8513 (init_composite_type): Ditto.
8515 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8517 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8519 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8520 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8521 structure returning convention for SYSV ABI case, but not
8522 for GNU/Linux, FreeBSD, or NetBSD.
8524 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8526 * symtab.h (lookup_block_symbol): Add mangled_name argument
8529 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8530 with new mangled_name argument.
8531 * linespec.c (decode_line_1): Likewise.
8532 * valops (value_of_this): Likewise.
8533 * symtab.c (lookup_transparent_type): Likewise.
8534 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8535 (lookup_symbol): If we are given a mangled name, pass it down
8536 to lookup_symbol_aux.
8537 (lookup_block_symbol): If we are given a mangled name to check
8538 against, only return symbols which match it.
8540 2002-03-22 Christopher Faylor <cgf@redhat.com>
8542 * win32-nat.c (child_create_inferior): Check for proper shell to use
8543 here, in case the user changes it on the fly.
8544 (_initialize_inftarg): Remove shell path considerations.
8546 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8548 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8549 for gdbarch_max_register_raw_size and max_register_virtual_size.
8550 Adjust copyright year.
8552 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8554 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8555 in a function to cover the entire beginning of the function
8556 as well if it does not already.
8558 2002-03-21 Tom Rix <trix@redhat.com>
8560 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8561 (rs6000_ptrace64): Renamed from ptrace64.
8563 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8565 * gdbserver/remote-utils.c (remote_open): Don't call
8566 getprotobyname, we're all using TCP here so just use
8568 * gdbserver/gdbreplay.c (remote_open): Ditto.
8570 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8572 * regcache.c (_initialize_regcache): No need to call
8573 build_regcache() at this time; it gets called whenever
8574 the gdbarch changes.
8576 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8578 * sparc-nat.c: Include sys/param.h where possible.
8580 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8583 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8584 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8585 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8587 * stabsread.c (rs6000_builtin_type): Likewise.
8588 (read_sun_floating_type): Likewise.
8590 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8592 * stabsread.c (read_member_functions): Remove skip code for duplicate
8593 constructor/destructor methods. Use standard parsing for these
8594 methods and just do not chain them to the list of methods after
8597 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8599 * coffread.c: Remove redundant static declarations. Replace
8600 occurrences of `PTR' with `void *'.
8601 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8602 * top.h (quit_cover): Likewise.
8603 * defs.h (catch_errors): Likewise.
8605 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8607 * defs.h (XMALLOC): Define.
8608 * gdb-events.sh (XMALLOC): Delete macro.
8609 * gdb-events.c, gdb-events.h: Regenerate.
8610 * gdbarch.sh (XMALLOC): Delete macro.
8611 * gdbarch.c: Regenerate.
8612 * serial.c (XMALLOC): Delete macro.
8613 * ui-file.c (XMALLOC): Ditto.
8614 * ser-unix.h (XMALLOC): Ditto.
8615 * sh-tdep.c (XMALLOC): Ditto.
8616 * ui-out.c (XMALLOC): Ditto.
8617 * utils.c (XMALLOC): Ditto.
8618 * i386-tdep.c (XMALLOC): Ditto.
8619 * gdb-events.c (XMALLOC): Ditto.
8620 * d10v-tdep.c (XMALLOC): Ditto.
8621 * cli-out.c (XMALLOC): Ditto.
8623 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8624 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8625 * ui-file.c, ui-out.c: Ditto.
8627 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8629 * command.h (struct cmd_list_element): Add field context.
8630 (set_cmd_context, get_cmd_context): Declare.
8631 * cli/cli-decode.h: Ditto.
8632 * cli/cli-decode.c (get_cmd_context): New function.
8633 (set_cmd_context): New function.
8634 (add_cmd): Initialize context.
8635 Part of fixing PR gdb/145 and PR gdb/146.
8637 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8639 * cli/cli-decode.c (cmd_type): New function.
8640 * command.h (cmd_type): Declare.
8641 * infrun.c (set_schedlock_func): Call function cmd_type.
8642 * kod.c (kod_set_os): Call cmd_type.
8643 * cris-tdep.c (cris_version_update): Use function cmd_type.
8644 (cris_mode_update, cris_abi_update): Ditto.
8646 * command.h: (execute_cmd_post_hook): Declare.
8647 (execute_cmd_pre_hook): Declare.
8648 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8649 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8650 functions. Execute pre/post hook while ensuring that afterwords
8652 * top.c (execute_command): Use execute_cmd_post_hook, and
8653 execute_cmd_pre_hook to execute pre/post commands.
8654 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8656 (hook_stop_stub): Call execute_cmd_pre_hook.
8658 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8660 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8661 set'' and this leads to a core dump. Move xstrdup of
8662 operating_system to after check that it is not NULL.
8664 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8666 * kod.c (kod_set_os): Remove unnecessary check that
8667 ``command->type'' is set_cmd.
8669 * valprint.c (set_input_radix): Use input_radix.
8670 (set_output_radix): Use output_radix.
8671 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8674 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8676 * value.h (struct value): Delete field ``substring_addr''. Change
8677 aligner fields to force_doublest_align, force_longest_align,
8678 force_core_addr_align and force_pointer_aligh.
8680 * value.h (struct value): Fix typo in above change.
8682 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8684 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8685 to fix internal_error from ``maintenance print architecture''.
8687 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8689 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8690 for gcc versions after gcc-2.8.1.
8692 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8694 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8695 for method resolution. Restore adjustment of ``this'' pointer after
8696 calling value_struct_elt, which was accidentally removed during the
8699 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8701 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8703 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8705 * value.h (value_of_register): Update.
8707 2002-03-14 Richard Henderson <rth@redhat.com>
8709 * configure.in: Detect declaration for canonicalize_file_name.
8710 * utils.c (canonicalize_file_name): Declare, if needed.
8711 (gdb_realpath): Prefer realpath if available and usable.
8712 * config.in, configure: Rebuild.
8714 2002-03-14 Richard Henderson <rth@redhat.com>
8716 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8717 a constant array bound.
8719 * MAINTAINERS: Add myself to write-after-approval.
8721 2002-03-14 Michael Snyder <msnyder@redhat.com>
8723 * symfile.c (syms_from_objfile): Return immediately if no syms.
8724 (symbol_file_add): Return immediately if no syms.
8725 (find_sym_fns): Return immediately if no syms.
8727 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8729 * gdbserver/remote-util.c (remote_open): Print remote-side's
8730 IP address when remote debugging over the network.
8732 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8734 * config/sparc/fbsd.mh: Fix copyright.
8735 * config/sparc/fbsd.mt: Likewise.
8737 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8739 * MAINTAINERS: Fix typo in name of gdb warnings option.
8740 (x86-64): Fix formating so that this can be parsed by awk.
8742 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8744 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8745 * defs.h: Include "gdb/signals.h".
8746 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8748 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8750 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8751 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8754 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8755 Don Howard <dhoward@redhat.com>
8757 * mips-tdep.c (ST0_FR): Define.
8758 (mips2_fp_compat): New function, temporarily disabled.
8759 (mips_read_fp_register_single): New function.
8760 (mips_read_fp_register_double): New function.
8761 (mips_print_register): Use them.
8762 (do_fp_register_row): Likewise.
8764 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8766 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8769 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8771 * stabsread.c (read_member_functions): Fix is_stub test for
8772 static member functions, improve comment.
8774 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8776 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8777 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8778 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8779 commands that set boolean values.
8780 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8781 (arm_rdi_resume): Always initialize PC.
8782 (arm_rdi_open): Don't use rslt as a boolean.
8783 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8784 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8785 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8786 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8788 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8790 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8791 * configure: Rebuilt.
8793 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8795 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8796 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8798 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8800 * cli/cli-decode.c (set_cmd_completer): New function.
8801 * command.h (set_cmd_completer): Declare.
8802 * cli/cli-decode.h (set_cmd_completer): Ditto.
8804 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8805 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8806 * win32-nat.c (_initialize_inftarg): Ditto.
8807 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8808 * proc-api.c (_initialize_proc_api): Ditto.
8809 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8810 * source.c (_initialize_source): Ditto.
8811 * exec.c (_initialize_exec): Ditto.
8812 * solib.c (_initialize_solib): Ditto.
8813 * top.c (init_main): Ditto.
8814 * tracepoint.c (_initialize_tracepoint): Ditto.
8815 * symfile.c (_initialize_symfile): Ditto.
8816 * printcmd.c (_initialize_printcmd): Ditto.
8817 * infcmd.c (_initialize_infcmd): Ditto.
8818 * corefile.c (_initialize_core): Ditto.
8820 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8822 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8824 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8826 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8828 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8830 * NEWS: Update headings, 5.2 has branched.
8832 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8834 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8835 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8836 (register_addr, REGISTER_RAW_SIZE): Likewise.
8837 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8838 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8840 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8842 * MAINTAINERS (x86-64): Add myself.
8843 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8844 changed value_ptr -> struct value *
8846 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8848 * configure.host (sparc64-*-freebsd): Add.
8849 * configure.tgt: Likewise.
8850 * config/sparc/fbsd.mh: New file.
8851 * config/sparc/fbsd.mt: Likewise.
8852 * config/sparc/nm-fbsd.h: Likewise.
8853 * config/sparc/tm-fbsd.h: Likewise.
8855 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8857 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8858 regformats/reg-s390x.dat.
8860 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8862 * utils.c: Add FIXME explaining true/false problem.
8864 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8866 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8868 2002-02-28 Michael Chastain <mec@shout.net>
8870 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8872 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8874 * gdbserver/linux-s390-low.c: New file.
8875 * regformats/reg-s390.dat: New file.
8876 * regformats/reg-s390x.dat: New file.
8877 * gdbserver/configure.srv: Add S/390.
8878 * gdbserver/Makefile.in: Add S/390.
8879 * configure.tgt: Enable gdbserver for S/390.
8881 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8883 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8884 first line of the doc string for "info dos", except at the end of
8885 the sentence, since the short help stops at the first period.
8887 2002-02-28 Jason Merrill <jason@redhat.com>
8889 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8891 2002-02-27 Fred Fish <fnf@redhat.com>
8893 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8894 comment (dumy -> dummy).
8896 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8898 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8900 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8902 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8904 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8906 * gdbserver/acconfig.h: New file.
8907 * gdbserver/i387-fp.c: New file.
8908 * gdbserver/i387-fp.h: New file.
8909 * gdbserver/linux-x86-64.c: New file.
8910 * regformats/reg-x86-64.dat: New file.
8911 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8912 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8913 * gdbserver/configure.in: Add support for regsets.
8914 * gdbserver/config.in: Regenerate.
8915 * gdbserver/configure: Regenerate.
8916 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8917 * gdbserver/linux-low.h: New file.
8918 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8920 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8921 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8922 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8923 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8924 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8925 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8926 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8927 "i387-fp.h". Add PTRACE_GETREGS and friends.
8928 * gdbserver/regcache.c (supply_register): New function.
8929 (supply_register_by_name): New function.
8930 (collect_register): New function.
8931 (collect_register_by_name): New function.
8933 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8935 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8936 (config.status): Add configure.srv dependency.
8937 (server_h): Add config.h dependency.
8939 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8941 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8942 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8943 * gdbserver/configure.srv: Change i386-*-linux* to use
8946 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8948 * x86-64-tdep.c: Re-indent. Update copyright date.
8950 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8952 From Michal Ludvig <mludvig@suse.cz>:
8953 * x86-64-tdep.c (value.h): Delete.
8954 (gdb_assert.h): Include.
8955 (x86_64_register_convert_to_virtual,
8956 x86_64_register_convert_to_raw ): Add check which lets only
8957 floating-point values to be converted.
8958 (value_push): Delete.
8959 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8960 (i386_gdbarch_init): Number of register_bytes fixed.
8962 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8964 * MAINTAINERS: Add x86-64 target.
8966 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8968 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8969 * osfsolib.c (solib_map_sections): Ditto.
8970 * irix5-nat.c (solib_map_sections): Ditto.
8971 * corelow.c (gdb_check_format): Ditto.
8972 * symfile.c (symfile_bfd_open): Ditto.
8973 * solib.c (solib_map_sections): Ditto.
8976 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8978 * remote.c (_initialize_remote): By default, disable ``e'' and
8979 ``E'' step out-of-range packets.
8981 2002-02-26 Andreas Schwab <schwab@suse.de>
8983 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8984 m68k_linux_frame_saved_pc.
8985 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8987 (SIGCONTEXT_PC_OFFSET): Remove.
8988 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8989 m68k_linux_sigtramp_saved_pc): New functions.
8990 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8991 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8992 (UCONTEXT_PC_OFFSET): Define.
8993 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8994 non-RT and RT signal trampolines.
8996 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8998 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8999 (TARGET_NBPG, STACK_END_ADDR): Delete
9000 (VARIABLES_INSIDE_BLOCK): Delete.
9002 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9004 * utils.c (perror_with_name): Make string parameter constant.
9005 (print_sys_errmsg): Ditto.
9007 * defs.h (perror_with_name): Update.
9008 (print_sys_errmsg): Update.
9011 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9013 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9014 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9016 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9018 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9019 if it already matches the current architecture from the exec file.
9020 Include arch-utils.h for gdbarch_info_init prototype.
9021 * Makefile.in (rs6000-nat.o): Update dependencies.
9023 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9025 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9026 list of exported variables.
9028 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9030 * gdbserver/configure.srv: New file.
9031 * gdbserver/configure.in: Use configure.srv instead
9032 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9034 * gdbserver/configure: Regenerated.
9035 * gdbserver/terminal.h: New file.
9036 * gdbserver/Makefile.in: Update for configure changes. Remove
9037 more unneeded include paths.
9039 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9041 From wiz at danbala:
9042 * config/sparc/tm-sp64.h: Fix grammar and typos.
9045 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9047 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9048 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9049 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9050 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9051 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9052 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9053 * s390-tdep.c: Ditto.
9054 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9055 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9056 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9057 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9058 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9059 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9060 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9061 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9062 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9063 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9066 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9068 * lin-thread.c: Delete file.
9069 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9070 to gdb_proc_service.h.
9071 * configure: Re-generate.
9073 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9074 * serial.c (serial_open): Delete check for "ocd".
9077 * Makefile.in (linux-thread.o): Delete target.
9078 * linux-thread.c: Delete file.
9080 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9081 renamed SH files to be consistent.
9083 * symtab.c (sort_search_symbols): Use xfree.
9085 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9087 * arm-linux-tdep.c (arm_linux_init_abi): Register
9088 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9089 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9090 definition with undef, since we don't want the sysvr4 definition.
9091 (SKIP_TRAMPOLINE_CODE): Likewise.
9093 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9095 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9097 * configure.in: (AC_CHECK_FUNCS) Added test for
9098 canonicalize_file_name Regenerated.
9099 * config.in, configure: Regenerated.
9100 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9101 defined use canonicalize_file_name.
9103 2002-02-23 Michael Chastain <mec@shout.net>
9105 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9107 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9109 * README: Remove references to cygnus.com.
9110 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9111 dot com'' form. Remove references to cygnus.com and sourceware.
9113 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9115 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9116 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9117 1003.1-2001 no longer allows "head -1".
9118 * gdb/Makefile.in (version.c): Likewise.
9119 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9120 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9121 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9123 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9125 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9126 * command.h (cmd_cfunc_eq): Declare.
9127 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9129 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9130 ``struct cmd_list_element *''.
9131 * cli/cli-cmds.c (is_complete_command): Update. Use
9133 * top.c (execute_command): Pass the command to
9134 is_complete_command.
9135 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9137 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9139 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9140 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9141 architecture defines.
9142 * s390-tdep.c (s390_gdbarch_init): Likewise.
9144 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9146 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9147 (arm_linux_push_arguments): Likewise.
9148 (arm_linux_init_abi): Register them. Also register linux-specific
9150 (find_minsym_and_objfile): Use strcmp, not STREQ.
9151 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9152 (arm_linux_call_dummy_words): Delete declaration.
9153 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9154 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9156 (LOWEST_PC): Delete.
9158 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9160 * maint.c (print_section_info): Do not prepend `0x' to filepos
9161 output, it will be handled by local_hex_string_custom.
9163 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9165 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9166 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9167 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9169 2002-02-22 Jim Blandy <jimb@redhat.com>
9171 Indicate that the bcache functions don't change the strings
9173 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9174 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9176 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9178 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9180 2002-02-21 Christopher Faylor <cgf@redhat.com>
9182 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9183 find the complete path to a loaded DLL.
9185 2002-02-21 Fred Fish <fnf@redhat.com>
9187 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9188 that marks the end of the range of a function, enter a line number
9189 entry that has a line number of zero and a PC offset that matches
9190 the end of the function. This starts a range of PC's for which no
9191 line number information is known.
9192 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9193 PC's for which no line number info is found (line number is zero)
9194 then we didn't find any valid line information.
9195 * symtab.h: Document use of zero line number entry.
9197 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9199 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9200 (have_ptrace_getvrregs): Define for run time checks.
9201 (gdb_vrregset_t): New type for Altivec register handling.
9202 (fetch_register, store_register): Fetch/store altivec register
9204 (fetch_altivec_register, store_altivec_register): New functions.
9205 (supply_vrregset, fill_vrregset): New functions.
9206 (fetch_altivec_registers, store_altivec_registers): New functions.
9207 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9210 2002-02-21 Jiri Smid <smid@suse.cz>
9212 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9214 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9216 * Makefile.in (armnbsd-nat.o): Update dependencies.
9217 * armnbsd-nat.c (supply_gregset): New function. Common code to
9218 supply the integer register set.
9219 (supply_fparegset): New function. Similar for FPA registers.
9220 (fetch_regs, fetch_fp_regs): Use them.
9221 (fetch_core_registers): Likewise.
9222 (fetch_elfcore_registers): New function.
9223 (arm_netbsd_elfcore_fns): New core-file type specification.
9224 (_initialize_arm_netbsd_nat): Register it.
9226 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9228 * armnbsd-nat.c: Include gdbcore.h.
9229 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9230 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9231 'void' to declaration, to shut up ARI.
9232 (fetch_core_registers): Make static. Rewrite using supply_register.
9233 (arm_netbsd_core_fns): New core-file type specification.
9234 (_initialize_arm_netbsd_nat): New function.
9236 2002-02-21 Christopher Faylor <cgf@redhat.com>
9238 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9241 2002-02-20 Christopher Faylor <cgf@redhat.com>
9243 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9246 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9248 * jv-exp.y (parse_number): Change type of implicit longs
9249 to builtin_type_uint64.
9251 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9253 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9254 to be an integer instead of a `union wait'.
9256 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9258 * mips-linux-nat.c: Call the operating system GNU/Linux.
9259 * mips-linux-tdep.c: Likewise.
9260 * mips-tdep.c: Likewise.
9262 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9265 * jv-exp.y (parse_number): Handle 64-bit integers.
9267 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9269 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9270 AC_STDC_HEADERS to AC_HEADER_STDC.
9271 * gdbserver/configure: Regenerated.
9273 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9275 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9277 * sparc-tdep.c (get_longjmp_target): Likewise.
9279 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9281 * News: Add news about ARM and Multi-arch. Mention the new target
9284 2002-02-19 Jim Blandy <jimb@redhat.com>
9286 * stabsread.c (error_type_complaint): Improve error message.
9288 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9290 * gdbserver/README: Update documentation.
9291 * gdbserver/configure.in: Update configury to match documentation.
9292 * gdbserver/Makefile.in: Likewise.
9293 * gdbserver/configure: Regenerated.
9294 * gdbserver/aclocal.m4: New file, generated by aclocal.
9295 * gdbserver/config.in: New file, generated by autoheader.
9297 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9299 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9302 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9304 * arm-tdep.h (enum arm_float_model): New enum.
9305 (struct gdbarch_tdep): Add fp_model.
9306 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9307 up floating-point conversions until we know the floating-point model
9308 in use by the inferior. Don't complain about being unable to
9309 determine the ABI of the inferior when we don't have one.
9310 (arm_extract_return_value): Support different floating-point models.
9311 (arm_store_return_value): Likewise.
9312 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9314 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9316 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9318 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9319 of ``current_gdbarch''.
9321 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9323 * armnbsd-nat.c : ANSIfy all function declarations.
9324 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9325 (fetch_inferior_registers): Re-implement in terms of above.
9326 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9327 (store_inferior_registers): Re-implement in terms of above.
9329 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9331 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9333 * arm-linux-tdep.c: Likewise.
9334 * config/arm/tm-linux.h: Likewise.
9336 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9338 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9339 * config/arm/nbsd.mt (TM_FILE): Delete.
9340 * config/arm/tm-nbsd.h: Delete.
9342 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9344 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9345 Initialize CALL_DUMMY_LENGTH.
9347 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9349 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9351 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9352 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9353 defines one thing and that is incorrect for this port.
9354 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9356 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9358 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9360 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9362 * win32-nat.c (display_selector): New function. Displays information
9363 about the information returned by GetThreadSelectorEntry API function.
9364 (display_selectors): New function. Displays the infomation of
9365 the selector given as argument, or of CS, DS ans FS selectors
9366 if no argument is given.
9367 ( _initialize_inftarg): Add "w32" as info prefix command.
9368 Add "info w32 selector" as command calling display_selectors.
9370 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9372 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9373 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9376 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9378 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9380 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9382 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9383 (arm_fix_call_dummy): Call it.
9384 (arm_call_dummy_breakpoint_offset): Delete.
9385 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9386 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9388 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9390 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9391 Default to func_frame_chain_valid.
9392 * gdbarch.h, gdbarch.c: Re-generate.
9393 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9395 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9397 * ppc-linux-nat.c: Update copyright.
9398 (fetch_register, store_register): Add tid parameter, don't compute
9400 (fetch_ppc_registers, store_ppc_registers): Add tid
9401 parameter. Pass it along to callees.
9402 (fetch_inferior_registers, store_inferior_registers): Compute tid
9403 here, and pass it to calleed functions.
9404 (fill_gregset, supply_fpregset): Clean up formatting.
9406 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9408 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9409 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9411 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9413 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9414 * gdbarch.c gdbarch.h: Regenerate.
9415 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9417 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9418 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9419 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9421 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9422 * arm-tdep.c (arm_get_longjmp_target): New function.
9423 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9424 this to a positive value register arm_get_longjmp_target as the
9426 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9427 (arm_linux_init_abi): Set up longjmp description in tdep.
9428 * armnbsd-nat.c (get_longjmp_target): Delete.
9429 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9430 description in tdep.
9431 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9432 (get_longjmp_target): Delete declaration.
9433 (GET_LONGJMP_TARGET): Delete.
9434 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9435 (GET_LONGJMP_TARGET): Delete.
9437 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9439 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9440 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9441 of ``current_gdbarch''.
9443 2002-02-17 Tom Tromey <tromey@redhat.com>
9445 * cli/cli-cmds.c (compare_strings): New function.
9446 (complete_command): Only print each unique item once.
9447 * completer.h (complete_line): Declare.
9448 * completer.c (complete_line): New function.
9449 (line_completion_function): Use it.
9451 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9453 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9454 * gdbarch.h, gdbarch.c: Re-generate.
9456 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9458 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9460 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9462 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9463 * valops.c (value_arg_coerce): Don't take the address of a reference
9464 to convert an argument to a reference.
9466 2002-02-15 Christopher Faylor <cgf@redhat.com>
9468 * win32-nat.c (get_image_name): New function.
9469 (handle_load_dll): Use get_image_name function.
9470 (get_child_debug_event): Avoid registering debug events until possibly
9471 execed process is started.
9472 (child_create_inferior): Allow invocation via shell so that command
9473 line redirection, etc. works ok.
9474 (_initialize_inftarg): Add new command: "set shell" to control whether
9475 a shell is used to start a process.
9477 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9479 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9480 instead of find_register_by_number.
9481 (cannot_store_register): Likewise.
9483 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9485 * dwarf2read.c: Replace fprintf (stderr, ...) by
9486 fprintf_unfiltered (gdb_stderr, ...).
9488 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9490 * gdbserver/gdbserver.1: Document --attach.
9492 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9494 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9496 * arm-tdep.c (arm_default_arm_le_breakpoint)
9497 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9498 (arm_default_thumb_be_breakpoint): New. Initialize them from
9499 traditional breakpoint defines.
9500 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9501 (arm_gdbarch_init): Initialize new breakpoint variables.
9502 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9503 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9504 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9505 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9507 (arm_netbsd_init_abi_common): ... here; new function.
9508 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9509 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9510 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9511 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9513 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9515 * arm-tdep.h (enum arm_abi): New enum.
9516 (struct gdbarch_tdep): New structure.
9517 (LOWEST_PC): Provide a default.
9518 (arm_gdbarch_register_os_abi): Declare new function.
9519 * arm-tdep.c (arm_abi_names): New array.
9520 (process_note_abi_tag_sections): New function.
9521 (get_elfosabi): New function.
9522 (arm_gdbarch_register_os_abi): New function.
9523 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9524 support for that ABI has been built in, then call the appropriate
9525 configuration routine. Use gdbarch_num_regs() to get the number
9527 (arm_dump_tdep): New function.
9528 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9529 place-holder functions.
9530 (_initialize_arm_tdep): Register them.
9531 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9533 * armnbsd-tdep.c: New file.
9534 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9535 * config/arm/nbsd.mt (TDEPFILES): Add it.
9536 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9538 * armnbsd-nat.c: Include regcache.h.
9539 * Makefile.in (armnbsd-nat.o): Update dependency list.
9541 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9543 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9545 * gdbserver/Makefile.in: Fix typos in target rules.
9547 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9549 Fix part of PR gdb/267.
9550 * linespec.c (find_methods): Handle constructors specially for now.
9552 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9554 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9556 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9557 standard_coerce_float_to_double().
9559 2002-02-14 Christopher Faylor <cgf@redhat.com>
9561 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9564 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9566 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9567 find_variant_by_name, because it confuses the multiarch
9568 framework. Return NULL if there isn't an architecture with the
9569 user supplied name, instead of forcing a different one without
9570 recording the change with the multiarch machinery.
9571 (find_variant_by_name): Delete.
9573 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9575 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9576 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9578 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9580 * stack.c (print_frame_info_base): When calling
9581 print_frame_info_listing_hook, set current_source_symtab.
9583 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9585 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9586 and remove unused $(INCLUDE_DIR).
9587 Add regcache.c to OBS.
9588 Add generated register protocol files to clean target.
9589 Update dependencies for new objects, obsolete old target code.
9591 * gdbserver/linux-low.c: Remove all platform-specific code to
9592 new files. Remove various dead code. Update to use regcache
9594 * gdbserver/remote-utils.c (fromhex): Add return statement
9596 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9598 (input_interrupt): Add integer parameter to match prototype
9599 of a signal handler.
9600 (outreg): Use register_data ().
9601 (prepare_resume_reply): Use gdbserver_expedite_regs.
9602 * gdbserver/server.c (main): Dynamically allocate own_buf because
9603 PBUFSIZ is no longer constant. Use registers_to_string () and
9604 registers_from_string ().
9605 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9606 for error (), fatal (), and warning (). Update definition of
9607 PBUFSIZ to use regcache functionality. Add include guard.
9608 * gdbserver/utils.c (fatal): Add missing ``const''.
9609 (warning): New function.
9611 * regformats/regdat.sh: Include "regcache.h" in generated files.
9612 Provide init_registers () function.
9613 * regformats/regdef.h: Add prototype for set_register_cache ().
9616 * gdbserver/linux-arm-low.c: New file.
9617 * gdbserver/linux-i386-low.c: New file.
9618 * gdbserver/linux-ia64-low.c: New file.
9619 * gdbserver/linux-m68k-low.c: New file.
9620 * gdbserver/linux-mips-low.c: New file.
9621 * gdbserver/linux-ppc-low.c: New file.
9622 * gdbserver/linux-sh-low.c: New file.
9624 * gdbserver/regcache.c: New file.
9625 * gdbserver/regcache.h: New file.
9627 * gdbserver/low-linux.c: Removed obsolete file.
9629 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9631 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9632 * config/i386/linux.mt: Likewise.
9633 * config/ia64/linux.mt: Likewise.
9634 * config/m68k/linux.mh: Likewise.
9635 * config/powerpc/linux.mh: Likewise.
9636 * config/mips/linux.mt: Likewise.
9638 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9640 * config/i386/i386lynx.mh: Mark gdbserver variables
9641 as (currently) obsolete for this target.
9642 * config/i386/nbsd.mt: Likewise.
9643 * config/i386/nbsdelf.mt: Likewise.
9644 * config/m32r/m32r.mt: Likewise.
9645 * config/m68k/m68klynx.mh: Likewise.
9646 * config/m68k/nbsd.mt: Likewise.
9647 * config/m68k/sun3os4.mh: Likewise.
9648 * config/mips/vr5000.mt: Likewise.
9649 * config/ns32k/nbsd.mt: Likewise.
9650 * config/pa/hppabsd.mh: Likewise.
9651 * config/pa/hppaosf.mh: Likewise.
9652 * config/powerpc/nbsd.mt: Likewise.
9653 * config/rs6000/rs6000lynx.mh: Likewise.
9654 * config/s390/s390.mt: Likewise.
9655 * config/s390/s390x.mt: Likewise.
9656 * config/sparc/sparclynx.mh: Likewise.
9657 * config/sparc/sun4os4.mh: Likewise.
9658 * config/i386/x86-64linux.mt: Likewise.
9659 * config/sparc/linux.mh: Likewise.
9661 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9663 * configure.tgt: Configure gdbserver only for known working
9664 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9665 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9666 SUBDIRS if it is configured. Update comment for ${nativefile}.
9667 * configure: Regenerated.
9669 2002-02-13 Michael Snyder <msnyder@redhat.com>
9671 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9673 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9674 (default_gcore_mach): Just return 0, work around a problem in bfd.
9675 (default_gcore_target): OK to return NULL if exec_bfd is null.
9676 (make_mem_sec): Use a cast, avoid a warning.
9678 * procfs.c (find_memory_regions_callback): Use a cast instead of
9679 calling host_pointer_to_address (which complains if
9680 sizeof (host pointer) != sizeof (target pointer)).
9681 (procfs_make_note_section): Avoid overflow in psargs string.
9683 * procfs.c (procfs_make_note_section): Make the default
9684 implementation return an error.
9686 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9688 * procfs.c (procfs_make_note_section): Provide a default definition
9689 (for alpha-dec-osf4.0f). Fix typos.
9691 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9693 * linux-proc.c: Add include of regcache.h.
9694 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9696 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9698 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9699 * memattr.c (create_mem_region): Disallow useless empty region.
9700 Regions are half-open intervals, so allow [A..B) [B..C) as
9703 2002-02-13 Michael Chastain <mec@shout.net>
9705 * defs.h: Kill CONST_PTR.
9706 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9707 * c-lang.c (c_builtin_types): Likewise.
9708 * ch-lang.c (ch_builtin_types): Likewise.
9709 * f-lang.c (f_builtin_types): Likewise.
9710 * language.c (unknown_builtin_types): Likewise.
9711 * m2-lang.c (m2_builtin_types): Likewise.
9712 * p-lang.c (pascal_builtin_types): Likewise.
9713 * scm-lang.c (c_builtin_types): Likewise.
9715 2002-02-13 Keith Seitz <keiths@redhat.com>
9717 * arm-tdep.h (arm_get_next_pc): Add declaration.
9719 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9721 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9722 with other related struct-returning functions.
9723 (arm_extract_struct_value_address): New function.
9724 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9725 initialize float_format, double_format and long_double_format as
9726 appropriate to the endianness of the target.
9727 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9728 (arm_use_struct_convention): Delete declaration.
9729 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9731 2002-02-13 Keith Seitz <keiths@redhat.com>
9733 * defs.h (core_addr_to_string_nz): New function.
9735 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9737 Apply missing bits of 2002-01-15 patch.
9738 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9739 (fill_fpregset): Use i387_fill_fsave.
9741 2002-02-12 Keith Seitz <keiths@redhat.com>
9743 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9744 (core_addr_to_string_nz): New function.
9746 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9748 * arm-linux-nat.c: Really include arm-tdep.h.
9749 * config/arm/tm-linux.h (struct type, struct value): Declare.
9751 2002-02-11 Michael Snyder <msnyder@redhat.com>
9753 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9754 (gcore section): Ifdef for Solaris and Unixware only.
9755 (procfs_do_thread_registers): Unixware needs one lwpstatus
9756 per thread (not one prstatus or pstatus).
9757 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9758 not over all gdb threads. For unixware, call elfcore_write_pstatus
9759 once before iterating over threads.
9761 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9763 * arm-tdep.h: New file.
9764 * arm-tdep.c: Include arm-tdep.h.
9765 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9766 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9767 (arm_print_float_info, arm_register_type, convert_to_extended)
9768 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9769 (arm_extract_return_value, arm_register_name): Make static.
9770 (arm_software_single_step): Similarly. Fix types in declaration.
9771 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9772 (arm_store_return_value, arm_store_struct_return): New functions.
9773 (arm_gdbarch_init): Register the above functions. Also register
9774 call_dummy_start_offset, sizeof_call_dummy_words,
9775 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9776 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9777 max_register_virtual_size, register_size. Set up
9778 prologue_cache.saved_regs here, rather than ...
9779 (_initialize_arm_tdep): ... here.
9780 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9782 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9783 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9784 (arm_print_float_info, arm_register_type, convert_to_extended)
9785 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9786 (arm_extract_return_value, arm_register_name): Delete declarations.
9787 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9788 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9789 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9790 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9791 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9792 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9793 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9794 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9795 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9796 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9797 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9798 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9800 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9801 * remote-rdi.c remote-rdp.c: Likewise.
9802 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9803 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9804 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9807 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9808 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9809 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9810 from non-ARM_ prefixed definitions.
9811 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9813 * remote-rdi.c remote-rdp.c: Likewise.
9814 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9816 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9818 * arm-tdep.c (arm_frameless_function_invocation)
9819 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9820 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9821 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9822 (arm_pop_frame, arm_get_next_pc): Make static.
9823 (arm_gdbarch_init): Register above in gdbarch structure.
9824 (arm_read_fp): Renamed from arm_target_read_fp.
9825 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9826 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9827 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9828 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9829 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9830 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9831 (arm_pc_is_thumb_dummy): Delete declarations.
9832 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9833 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9834 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9835 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9837 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9839 * symtab.c (compare_search_syms): New function.
9840 (sort_search_symbols): New function.
9841 (search_symbols): Sort symbols after searching rather than
9844 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9846 * NEWS: Linux -> GNU/Linux.
9848 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9850 * gdbarch.sh: For for level one methods, disallow a definition
9851 when partially multi-arched. Add comments explaining rationale.
9852 * gdbarch.h: Re-generate.
9854 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9856 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9859 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9861 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9863 * gdbarch.c: Re-generate.
9865 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9867 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9868 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9871 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9873 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9875 (PUSH_ARGUMENTS): Switch to using predefault.
9876 * gdbarch.c: Regenerate.
9878 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9880 * valops.c (PUSH_ARGUMENTS): Delete definition.
9881 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9882 partial. Default to default_push_arguments.
9883 * gdbarch.h, gdbarch.c: Regenerate.
9885 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9887 * defs.h (throw_exception): Rename return_to_top_level. Update
9889 * utils.c (error_stream, internal_verror, quit): Ditto.
9890 * top.c (throw_exception, catcher): Ditto.
9891 * sparclet-rom.c (sparclet_load): Ditto.
9892 * remote.c (interrupt_query, minitelnet): Ditto.
9893 * remote-sds.c (interrupt_query): Ditto.
9894 * remote-mips.c (mips_error, mips_kill): Ditto.
9895 * ocd.c (interrupt_query): Ditto.
9896 * monitor.c (monitor_interrupt_query): Ditto.
9897 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9898 * target.h: Update comment.
9900 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9902 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9904 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9905 default_double_format.
9906 * gdbarch.h, gdbarch.c: Re-generate.
9907 * findvar.c (floatformat_unknown): Delete variable definition.
9908 * doublest.h (floatformat_unknown): Delete variable declaration.
9910 2002-02-09 Jim Blandy <jimb@redhat.com>
9912 * stabsread.c (read_type): Add code to parse Sun's syntax for
9913 prototyped function types.
9915 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9917 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9918 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9920 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9922 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9923 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9924 now _initialize_xcoffsolib gets called again and overrides the
9925 commands from solib.c in a native configuration.
9927 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9929 * doublest.c (store_typed_floating): Don't try to return a value.
9932 2002-02-08 Jim Blandy <jimb@redhat.com>
9934 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9935 is prototyped and has no arguments, print its argument list as
9938 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9940 * MAINTAINERS (write-after-approval): Add myself.
9941 (paper-trail): I've escaped!
9943 2002-02-08 Christopher Faylor <cgf@redhat.com>
9945 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9947 (_initialize_check_for_gdb_ini): Ditto.
9949 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9951 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9952 xaprintf -> xasprintf.
9954 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9956 * win32-nat.c: Remove use of printf and sprintf functions.
9958 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9960 * arm-tdep.c (arm_frame_chain_valid): Make static.
9961 (arm_push_arguments): Likewise.
9962 (arm_gdbarch_init): New function.
9963 (_initialize_arm_tdep): Call it.
9964 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9965 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9966 (FRAME_CHAIN_VALID): Delete.
9967 (arm_frame_chain_valid): Delete declaration.
9968 (PUSH_ARGUMENTS): Delete.
9969 (arm_push_arguments): Delete declaration.
9970 (CALL_DUMMY_P): Delete.
9972 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9973 Corinna Vinschen <vinschen@redhat.com>
9975 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9976 on builtin float types.
9978 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9980 * utils.c: Include <curses.h> before "bfd.h".
9981 * tui/tui-hooks.c: Likewise.
9982 * tui/tui.c: Likewise.
9983 * tui/tuiCommand.c: Likewise.
9984 * tui/tuiData.c: Likewise.
9985 * tui/tuiDataWin.c: Likewise.
9986 * tui/tuiDisassem.c: Likewise.
9987 * tui/tuiGeneralWin.c: Likewise.
9988 * tui/tuiIO.c: Likewise.
9989 * tui/tuiLayout.c: Likewise.
9990 * tui/tuiRegs.c: Likewise.
9991 * tui/tuiSource.c: Likewise.
9992 * tui/tuiSourceWin.c: Likewise.
9993 * tui/tuiStack.c: Likewise.
9994 * tui/tuiWin.c: Likewise.
9996 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9998 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9999 to include space for pseudoregs as well. Update loops accordingly.
10000 (sh_fp_frame_init_saved_regs): Ditto.
10001 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10003 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10005 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10006 Add Richard Earnshaw to Arm maintainers.
10008 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10010 * defs.h (warning_begin): Delete declaration.
10012 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10015 2002-02-07 Michael Snyder <msnyder@redhat.com>
10017 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10018 Logic bug, remove misplaced else.
10020 2002-02-07 Klee Dienes <klee@apple.com>
10022 * fork-inferior.c (fork_inferior): Add '!' to the list of
10023 characters that need to be quoted when building a string for the
10024 shell. Quote '!' specifically with a backslash, since CSH chokes
10025 when trying to evaluate "str!str".
10027 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10029 * rdi-share/host.h: Only provide a typedef for bool if it is not
10032 2002-02-04 Michael Snyder <msnyder@redhat.com>
10034 * breakpoint.h (enum bptype): Add new overlay event bp type.
10035 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10037 * breakpoint.c (create_internal_breakpoint): New function.
10038 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10039 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10040 (create_thread_event_breakpoint): Ditto.
10041 (create_solib_event_breakpoint): Ditto.
10042 (create_overlay_event_breakpoint): New function.
10043 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10044 (update_breakpoints_after_exec): Delete and re-initialize
10045 overlay event breakpoints after an exec. Add FIXME comment
10046 about longjmp breakpoint.
10047 (print_it_typical): Ignore overlay event breakpoints.
10048 (print_one_breakpoint): Ditto.
10050 (bpstat_what): Do not stop for overlay event breakpoints.
10051 (delete_breakpoint): Don't delete overlay event breakpoints.
10052 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10053 (breakpoint_re_set): Re-create overlay event breakpoint.
10055 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10056 (overlay_manual_command): Disable overlay breakpoints.
10057 (overlay_off_command): Disable overlay breakpoints.
10059 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10061 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10062 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10063 to here from config/tm-arm.h.
10064 (coff_sym_is_thumb): Make static.
10065 (arm_elf_make_msymbol_special): New function.
10066 (arm_coff_make_msymbol_special): New function.
10067 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10068 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10069 (coff_sym_is_thumb): Delete declaration.
10070 (arm_elf_make_msymbol_special): Declare.
10071 (arm_coff_make_msymbol_special): Declare.
10072 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10073 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10075 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10077 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10079 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10081 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10082 * gdbarch.c gdbarch.h: Regenerate.
10083 * arch-utils.c (default_print_float_info): New function.
10084 * arch-utils.h (default_print_float_info): Prototype it.
10085 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10086 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10087 (PRINT_FLOAT_INFO): Document it.
10089 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10090 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10091 (PRINT_FLOAT_INFO): Define.
10093 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10095 * win32-nat.c (_initialize_check_for_gdb_ini):
10096 Add typecast to sprintf argument to suppress a warning.
10098 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10100 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10101 to allow easier handling of pass state.
10102 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10103 that gives exception name and address.
10104 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10105 and set last_sig value to ourstatus->value.sig. Some missing
10107 (child_continue): Correctly report continue_status.
10108 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10109 TARGET_SIGNAL_0 (new default value).
10110 (child_resume): consider sig argument passed to decide if
10111 the exception should be passed to debuggee or not.
10113 2002-02-05 Michael Snyder <msnyder@redhat.com>
10115 * regcache.c (fetch_register): Call target_fetch_register
10116 only if we don't call FETCH_PSEUDO_REGISTER.
10117 (store_register): Call target_store_register only if we
10118 don't call STORE_PSEUDO_REGISTER.
10120 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10122 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10123 ELF_MAKE_MSYMBOL_SPECIAL.
10124 * gdbarch.c, gdbarch.h: Regenerate.
10125 * arch-utils.c (default_make_msymbol_special): New function.
10126 * arch-utils.h (default_make_msymbol_special): Export.
10127 * elfread.c (elf_symtab_read): Compile use of
10128 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10130 * coffread.c (coff_symtab_read): Ditto, for
10131 COFF_MAKE_MSYMBOL_SPECIAL.
10133 2002-02-05 Jim Blandy <jimb@redhat.com>
10135 * solib-svr4.c (svr4_truncate_ptr): New function.
10136 (svr4_relocate_section_addresses): Do the address arithmetic with
10137 the appropriate truncation for target addresses, even when
10138 CORE_ADDR is larger than a target address.
10140 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10142 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10145 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10147 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10150 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10152 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10154 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10156 * gdbserver/linux-low.c: Remove unused include files.
10158 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10160 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10161 (read_inferior_memory): Use it.
10162 (write_inferior_memory): Likewise.
10164 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10166 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10167 grubbing through sys_errlist.
10169 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10171 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10173 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10174 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10176 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10178 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10179 (do_sfunc, set_cmd_sfunc): New functions.
10181 * command.h (struct cmd_list_element): Add field func.
10182 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10183 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10184 * cli/cli-decode.h: Ditto.
10186 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10187 (help_all, help_cmd_list): Ditto.
10188 (find_cmd, complete_on_cmdlist): Ditto.
10189 * top.c (execute_command): Ditto.
10191 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10194 * infcmd.c (notice_args_read): Fix function signature.
10196 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10197 * cli/cli-decode.c (add_set_cmd): Ditto.
10198 * utils.c (initialize_utils): Ditto.
10199 * maint.c (_initialize_maint_cmds): Ditto.
10200 * infrun.c (_initialize_infrun): Ditto.
10201 * demangle.c (_initialize_demangler): Ditto.
10202 * remote.c (add_packet_config_cmd): Ditto.
10203 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10204 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10205 * proc-api.c (_initialize_proc_api): Ditto.
10206 * kod.c (_initialize_kod): Ditto.
10207 * valprint.c (_initialize_valprint): Ditto.
10208 * top.c (init_main): Ditto.
10209 * infcmd.c (_initialize_infcmd): Ditto.
10210 * corefile.c (_initialize_core): Ditto.
10211 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10212 * arch-utils.c (initialize_current_architecture): Ditto.
10213 (_initialize_gdbarch_utils): Ditto.
10214 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10216 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10217 * wince.c (_initialize_inftarg): Ditto.
10218 * symfile.c (_initialize_symfile): Ditto.
10219 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10220 * language.c (_initialize_language): Ditto.
10221 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10223 2002-02-04 Michael Snyder <msnyder@redhat.com>
10225 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10227 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10229 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10230 Add rules for building the register data files.
10232 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10234 * regformats/regdat.sh: Add braces to the definition of
10235 expedite_regs_${arch}.
10237 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10239 * regformats/regdef.h (struct reg): Add comment describing the
10240 requirements for offset and size fields.
10242 2002-02-04 Andreas Schwab <schwab@suse.de>
10244 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10245 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10247 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10249 * gdbarch.sh (copyright): Update years in generated header.
10250 (SMASH_TEXT_ADDRESS): Add rule.
10251 * gdbarch.h, gdbarch.c: Re-generate.
10252 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10253 * dbxread.c: Likewise.
10254 * dwarfread.c: Likewise.
10255 * elfread.c: Likewise.
10256 * somread.c: Likewise.
10258 * arm-tdep.c (arm_smash_text_address): New function.
10259 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10261 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10263 Add support for hardware watchpoints on win32 native.
10264 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10265 CONTEXT_DEBUG_REGISTERS.
10266 (dr variable): New variable. Static array containing a local copy
10267 of debug registers.
10268 (debug_registers_changed): New variable. Reflects when debug registers
10269 are changed and need to be written to inferior.
10270 (debug_registers_used): New variable. Reflects when any debug register
10271 was set, used when new threads are created.
10272 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10274 (thread_rec): Set dr array if id is the thread of current_event .
10275 (child_continue, child_resume): Change the debug registers for all
10276 threads if debug_registers_changed.
10277 (child_add_thread): Change the debug registers if debug_registers_used.
10278 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10279 Link nm.h to new nm-cygwin.h file.
10280 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10281 of hardware registers.
10283 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10285 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10286 Restore behavour broken by 2002-01-20 Andrew Cagney
10287 <ac131313@redhat.com> IEEE_FLOAT removal.
10289 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10291 * c-valprint.c (c_val_print): Pass a proper valaddr to
10292 cp_print_class_method.
10293 * valops.c (search_struct_method): If there is only one method
10294 and args is NULL, return that method.
10296 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10298 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10299 accessing tag_name directly.
10301 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10303 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10304 of accessing tag_name directly.
10306 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10309 * gdbtypes.c (replace_type): New function.
10310 * gdbtypes.h (replace_type): Add prototype.
10311 * stabsread.c (read_type): Use replace_type.
10313 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10315 * Makefile.in (memattr.o): Add missing dependencies rule.
10317 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10319 * breakpoint.c (break_at_finish_command): Really export.
10320 (break_at_finish_at_depth_command): Ditto.
10321 (tbreak_at_finish_command): Ditto.
10322 * hppa-tdep.c: Include completer.h.
10323 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10324 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10326 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10328 * utils.c (do_write): New function.
10329 (error_stream): Rewrite combining the code from error_begin and
10331 (verror): Rewrite using error_stream.
10332 (error_begin): Delete function.
10334 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10336 * utils.c (error_begin): Make static.
10337 * defs.h (error_begin): Delete declaration.
10339 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10340 (decode_line_1): Use cplusplus_error instead of error_begin,
10341 cplusplus_hint and return_to_top_level.
10342 * coffread.c (coff_symfile_read): Use error instead of error_begin
10343 and return_to_top_level.
10344 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10346 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10348 * language.h (type_error, range_error): Make string parameter
10350 * language.c (warning_pre_print): Delete extern declaration.
10351 * dwarfread.c (warning_pre_print): Ditto.
10352 * language.c (type_error, range_error): Rewrite to use verror and
10353 vwarning instead of warning_begin.
10355 2002-02-01 Michael Snyder <msnyder@redhat.com>
10357 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10358 (set_ignore_count): Move misplaced comment back where it belongs.
10360 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10362 * command.h (NO_FUNCTION): Delete macro.
10363 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10364 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10365 * tracepoint.c (_initialize_tracepoint): Ditto.
10366 * cli/cli-decode.c (add_set_cmd): Ditto.
10367 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10369 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10371 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10372 Update ``this'' pointer when calling virtual functions.
10374 2002-02-01 Michael Snyder <msnyder@redhat.com>
10376 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10377 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10379 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10381 * regformats/reg-arm.dat: New file.
10382 * regformats/reg-i386.dat: New file.
10383 * regformats/reg-ia64.dat: New file.
10384 * regformats/reg-m68k.dat: New file.
10385 * regformats/reg-mips.dat: New file.
10386 * regformats/reg-ppc.dat: New file.
10387 * regformats/reg-sh.dat: New file.
10388 * regformats/regdef.h: New file.
10389 * regformats/regdat.sh: New file.
10391 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10393 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10394 (arm_frame_args_address, arm_frame_locals_address): New functions.
10395 (arm_frame_num_args): New function.
10396 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10397 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10398 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10400 2002-01-31 Michael Snyder <msnyder@redhat.com>
10402 * breakpoint.c (break_at_finish_command): Export.
10403 (break_at_finish_at_depth_command): Export.
10404 (tbreak_at_finish_command): Export.
10405 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10406 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10407 "txbreak" commands, which are HPPA specific.
10409 * printcmd.c (disassemble_command): Remove an ancient
10410 artifact of an old merge.
10412 * symfile.h (enum overlay_debugging_state):
10413 Define enum constant values for overlay mode.
10414 * symfile.c (overlay_debugging): Use enums instead of literals.
10415 (overlay_is_mapped, overlay_auto_command,
10416 overlay_manual_command): Ditto.
10418 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10419 breakpoint_here_p, breakpoint_inserted_here_p,
10420 breakpoint_thread_match, bpstat_stop_status,
10421 describe_other_breakpoints, check_duplicates, clear_command):
10422 Coding standard fixes.
10424 * target.c (target_xfer_memory): Add spaces, coding standard.
10425 (do_xfer_memory): Add missing line to trust-readonly
10426 code: check bfd SEC_READONLY flag for section.
10428 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10430 * PROBLEMS: Fix typo, 5.1->5.1.1.
10432 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10434 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10435 data symbols, since we search based on textlow and texthigh.
10436 (find_pc_sect_symtab): Likewise.
10438 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10440 * defs.h (vwarning): Declare.
10441 * utils.c (vwarning): New function.
10442 (warning): Call vwarning.
10443 (warning_begin): Delete function.
10445 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10446 the warning message.
10447 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10450 2002-01-30 Michael Snyder <msnyder@redhat.com>
10452 * NEWS: Mention "set trust-readonly-sections" command.
10453 Mention generate-core-file command.
10455 2002-01-15 Michael Snyder <msnyder@redhat.com>
10457 * target.c: New command, "set trust-readonly-sections on".
10458 (do_xfer_memory): Honor the suggestion to trust readonly sections
10459 by reading them from the object file instead of from the target.
10460 (initialize_targets): Register command "set trust-readonly-sections".
10462 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10464 * parse.c (target_map_name_to_register): Simplify, search regs and
10465 pseudo-regs using a single loop.
10467 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10469 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10471 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10473 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10474 * config/i386/i386v42mp.mh: Add i387-nat.o .
10475 * i386v4-nat.c: Include i387-nat.h.
10476 (supply_fpregset): Use i387_supply_fsave.
10477 (fill_fpregset): Use i387_fill_fsave.
10479 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10481 * arm-tdep.c (arm_call_dummy_words): Define.
10482 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10483 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10484 (CALL_DUMMY_WORDS): Define.
10485 (arm_call_dummy_words): Declare.
10486 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10487 (arm_linux_call_dummy_words): Declare.
10489 2002-01-30 Andreas Schwab <schwab@suse.de>
10491 * m68klinux-nat.c: Fix last change to use regcache_collect
10492 instead of referencing registers[] directly.
10494 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10496 * parse.c (target_map_name_to_register): Delete code wrapped in
10497 #ifdef REGISTER_NAME_ALIAS_HOOK.
10499 2002-01-28 Michael Snyder <msnyder@redhat.com>
10501 * regcache.c (legacy_read_register_gen): Need to be able to
10502 read pseudo-register as well as real register.
10503 (legacy_write_register_gen): Ditto.
10505 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10507 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10508 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10509 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10510 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10511 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10512 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10513 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10514 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10515 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10516 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10517 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10518 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10519 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10520 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10521 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10522 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10523 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10524 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10525 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10526 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10528 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10530 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10531 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10532 (initialize_current_architecture): Update target_byte_order using
10533 information from BFD.
10534 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10535 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10537 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10539 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10540 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10542 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10543 #ifdef INVALID_FLOAT.
10544 * infcmd.c (do_registers_info): Ditto.
10545 * values.c (unpack_double): Ditto. Add comment.
10547 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10548 already commented out.
10550 2002-01-26 Andreas Schwab <schwab@suse.de>
10552 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10553 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10554 registers and add support for PTRACE_GETREGS.
10556 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10558 GDB 5.1.1 released from 5.1 branch.
10559 * NEWS: Add 5.1.1 news.
10560 * README: Sync with 5.1 branch.
10562 2002-01-23 Fred Fish <fnf@redhat.com>
10564 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10565 stabstring on initial malloc. Reallocing will copy it for us,
10568 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10570 * Makefile.in (hpread_h): Delete.
10571 (HFILES_NO_SRCDIR): Remove hpread.h.
10572 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10573 (hpread.o): Update dependencies.
10574 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10576 * hp-psymtab-read.c: Remove file.
10577 * hp-symtab-read.c: Remove file.
10578 * hpread.h: Remove file.
10580 * hpread.c: Merge all contents of hp-psymtab-read.c,
10581 hp-symtab-read.c and hpread.h into this file, as it was prior to
10584 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10585 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10586 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10587 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10589 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10591 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10592 fill_gregset): Call gdbarch_tdep() just once, assign result to
10593 variable and use that, instead of calling the function several
10596 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10598 * configure.host: Accept sparcv9 as alias for sparc64.
10599 * configure.tgt: Likewise.
10601 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10603 * solib-aix5.c (build_so_list_from_mapfile)
10604 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10605 arguments is not reversed.
10606 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10607 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10609 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10611 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10612 modified version of obsolete sh_fetch_pseudo_register.
10613 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10614 (sh4_register_read): New function.
10615 (sh_pseudo_register_write): New function. Renamed and modified
10616 version of obsolete sh_store_pseudo_register.
10617 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10618 (sh4_register_write): New function.
10619 (sh_gdbarch_init): Remove setting of gdbarch function
10620 fetch_pseudo_register and store_pseudo_register. Remove setting of
10621 register_convert_to_raw, register_convert_to_virtual,
10622 register_convertible.
10623 (sh_sh4_register_convertible): Delete. No longer needed. All is
10624 taken care by architecture specific functions
10625 register_read/register_write.
10626 (sh_sh4_register_convert_to_virtual): Make static.
10627 (sh_sh4_register_convert_to_raw): Ditto.
10629 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10631 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10632 (floatformat_is_nan, floatformat_mantissa): Ditto.
10634 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10635 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10636 builtin_type_ieee_double_little,
10637 builtin_type_ieee_double_littlebyte_bigword,
10638 builtin_type_m68881_ext, builtin_type_i960_ext,
10639 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10640 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10641 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10642 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10644 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10646 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10647 parameter. Set frameless flag if it exists and depended of
10648 whether the scanned function is frameless or not.
10649 (xstormy16_skip_prologue): If function is frameless, return
10650 result of xstormy16_scan_prologue().
10651 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10654 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10656 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10657 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10658 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10659 sh_sh4_register_byte, sh_sh4_register_raw_size,
10660 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10661 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10662 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10663 sh_store_pseudo_register, sh_do_pseudo_register): Call
10664 gdbarch_tdep() just once, assign result to variable and use that,
10665 instead of calling the function several times.
10667 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10669 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10670 macros instead of LAST_FPU_CTRL_REGNUM.
10671 (store_register): Likewise.
10673 2002-01-21 Jim Blandy <jimb@redhat.com>
10675 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10676 is up-to-date before running the program, not just when a program
10679 2002-01-21 Fred Fish <fnf@redhat.com>
10681 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10682 when we have found all instructions we are looking for.
10684 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10686 * arm-tdep.c (arm_register_name): New function.
10687 (arm_registers_names): Make static.
10688 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10689 (arm_register_name): Declare.
10690 (REGISTER_NAME): Use it.
10692 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10693 Kevin Buettner <kevinb@redhat.com>
10695 Convert arm targets to new FRAME interface.
10696 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10697 (arm_frame_find_save_regs): Delete.
10698 (arm_frame_init_saved_regs): New.
10699 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10700 Allocate extra_info as required. Convert all uses of fsr.regs
10701 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10703 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10704 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10705 (check_prologue_cache, save_prologue_cache): Likewise.
10706 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10707 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10708 (FRAME_FIND_SAVED_REGS): Delete.
10709 (arm_frame_find_saved_regs): Delete prototype.
10710 (arm_frame_init_saved_regs): New prototype.
10711 (FRAME_INIT_SAVED_REGS): Define.
10713 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10715 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10717 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10719 From Jeff Law <law@redhat.com>:
10720 * infttrace.c: Include <sys/pstat.h>.
10721 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10722 exec file if the ttrace equivalent fails.
10724 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10726 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10727 (closeLogFile): Ditto.
10729 2002-01-20 Michael Chastain <mec@shout.net>
10731 * top.c (print_gdb_version): Bump copyright year to 2002.
10733 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10735 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10736 Zannoni and Eli Zaretskii.
10738 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10740 * buildsym.c: Update copyright years.
10741 * c-typeprint.c: Likewise.
10742 * dwarf2read.c: Likewise.
10743 * f-typeprint.c: Likewise.
10744 * gdbtypes.c: Likewise.
10745 * gdbtypes.h: Likewise.
10746 * hp-symtab-read.c: Likewise.
10747 * hpread.c: Likewise.
10748 * mdebugread.c: Likewise.
10749 * p-typeprint.c: Likewise.
10751 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10753 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10754 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10755 byte-order selectable.
10756 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10757 * arch-utils.c: Ditto.
10758 (set_endian): Ditto.
10759 (set_endian_from_file): Ditto.
10760 * gdbserver/low-sim.c (create_inferior): Ditto.
10761 * gdbarch.sh: Ditto.
10762 * gdbarch.h: Re-generate.
10763 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10764 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10765 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10766 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10767 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10768 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10769 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10770 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10772 * config/mips/tm-wince.h: Remove #undef of macro
10773 TARGET_BYTE_ORDER_SELECTABLE.
10774 * config/sh/tm-wince.h: Ditto.
10776 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10778 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10779 member function fields. Add accessor macro
10780 TYPE_FN_FIELD_ARTIFICIAL.
10781 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10782 * c-typeprint.c (c_type_print_base): Skip artificial member
10785 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10787 * f-typeprint.c: Delete unused function f_type_print_args.
10788 * p-typeprint.c: Delete unused function pascal_type_print_args.
10790 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10792 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10793 comment. Add ``artificial'' to ``union field_location''.
10795 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10797 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10798 * mdebugread.c (parse_symbol): Likewise.
10799 * stabsread.c (define_symbol): Likewise.
10800 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10801 initializing TYPE_FIELD_BITPOS to n (obsolete).
10802 (hpread_doc_function_type): Likewise.
10803 * hpread.c (hpread_function_type): Likewise.
10805 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10807 * configure.in (host_makefile_frag): Only require a host makefile
10808 fragment when a native build.
10809 * configure: Re-generate.
10811 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10813 * doublest.h (floatformat_from_type): Declare.
10814 * doublest.c (floatformat_from_type): New function.
10815 (convert_typed_floating): Use.
10817 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10818 call to function floatformat_from_type.
10820 * gdbarch.sh (IEEE_FLOAT): Delete.
10821 * gdbarch.h, gdbarch.c: Re-generate.
10822 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10823 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10824 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10825 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10826 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10827 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10828 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10829 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10830 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10831 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10832 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10833 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10835 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10836 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10837 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10838 * sh-tdep.c (sh_gdbarch_init): Ditto.
10839 * mips-tdep.c (mips_gdbarch_init): Ditto.
10840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10841 * cris-tdep.c (cris_gdbarch_init): Ditto.
10843 2002-01-20 Jiri Smid <smid@suse.cz>
10845 * configure.host, configure.tgt: Support x86-64.
10846 * NEWS: Note new target x86-64.
10848 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10849 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10850 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10851 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10852 x86-64-linux-nat.o): Fix dependencies.
10854 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10856 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10857 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10858 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10859 * config/sparc/xm-sun4os4.h: Delete file.
10860 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10862 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10864 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10865 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10866 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10867 * config/i386/i386lynx.mh (XM_FILE): Delete.
10868 * config/rs6000/xm-rs6000ly.h: Delete file.
10869 * config/sparc/xm-sparclynx.h: Delete file.
10870 * config/m68k/xm-m68klynx.h: Delete file.
10871 * config/i386/xm-i386lynx.h: Delete file.
10872 * config/xm-lynx.h: Delete file.
10873 * config/djgpp/fnchange.lst: Update.
10875 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10877 * alpha-tdep.c (alpha_register_byte): New function.
10878 (alpha_register_raw_size): Ditto.
10879 (alpha_register_virtual_size): Ditto.
10880 (alpha_skip_prologue_internal): Renamed from
10881 alpha_skip_prologue.
10882 (alpha_skip_prologue): New version that calls
10883 alpha_skip_prologue_internal.
10884 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10885 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10886 second argument from alpha_skip_prologue.
10887 (REGISTER_BYTE): Use alpha_register_byte.
10888 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10889 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10890 (FRAMELESS_FUNCTION_INVOCATION): Use
10891 generic_frameless_function_invocation_not.
10892 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10893 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10895 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10897 * config/mips/xm-news-mips.h: Delete file.
10898 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10900 * config/m88k/xm-m88k.h: Delete file.
10901 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10902 * config/m88k/xm-delta88v4.h: Ditto.
10903 * config/m88k/xm-delta88.h: Ditto.
10905 * config/alpha/xm-fbsd.h: Delete file.
10906 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10908 * config/sparc/xm-sparc.h: Delete file.
10909 * Makefile.in (xm-sun4os4.h): Delete dependency.
10910 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10911 * config/sparc/xm-sun4os4.h: Ditto.
10912 * config/sparc/xm-linux.h: Ditto.
10914 * config/i386/xm-windows.h: Delete file.
10916 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10918 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10919 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10921 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10923 * alpha-tdep.c (alpha_call_dummy_words): New.
10924 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10925 (CALL_DUMMY_P): Define.
10926 (CALL_DUMMY_WORDS): Define.
10927 (SIZEOF_CALL_DUMMY_WORDS): Define.
10929 2002-01-19 Per Bothner <per@bothner.com>
10931 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10932 isn't NULL, which can happen with some gcj-3.x-produced code.
10934 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10936 * alpha-tdep.c (alpha_register_virtual_type): New function.
10937 (alpha_init_frame_pc_first): Ditto.
10938 (alpha_fix_call_dummy): Ditto.
10939 (alpha_store_struct_return): Ditto.
10940 (alpha_extract_struct_value_address): Ditto.
10941 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10942 alpha_register_virtual_type.
10943 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10944 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10945 alpha_extract_struct_value_address.
10946 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10947 (INIT_FRAME_PC): Use init_frame_pc_noop.
10948 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10950 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10952 * i386gnu-nat.c: Include "i386-tdep.h".
10953 (fetch_fpregs): Simplify code dealing with uninitialized floating
10954 point states such that it doesn't require FP7_REGNUM.
10956 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10958 * alpha-tdep.c (frame_extra_info): New.
10959 (alpha_find_saved_regs): Make static. Use
10961 (alpha_frame_init_saved_regs): New function.
10962 (alpha_frame_saved_pc): Use frame->extra_info.
10963 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10964 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10965 (init_extra_frame_info): Rename to...
10966 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10967 (alpha_print_extra_frame_info): New function.
10968 (alpha_frame_locals_address): Ditto.
10969 (alpha_frame_args_address): Ditto.
10970 (alpha_pop_frame): Use frame->extra_info.
10971 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10972 alpha_frame_args_address.
10973 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10974 (alpha_find_saved_regs): Remove prototype.
10975 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10976 (EXTRA_FRAME_INFO): Remove.
10977 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10978 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10980 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10982 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10983 (alpha_cannot_fetch_register): Ditto.
10984 (alpha_cannot_store_register): Ditto.
10985 (alpha_register_convertible): Ditto.
10986 (alpha_use_struct_convention): Ditto.
10987 * config/alpha/tm-alpha.h: Update copyright years.
10988 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10989 (INNER_THAN): Use core_addr_lessthan.
10990 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10991 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10992 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10993 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10994 (FRAME_CHAIN): Remove unnecessary cast.
10996 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10998 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11001 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11003 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11004 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11005 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11006 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11007 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11008 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11009 * x86-64-linux-nat.c: Ditto.
11011 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11013 * alpha-tdep.c (alpha_register_name): New function.
11014 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11015 (REGISTER_NAME): Define.
11017 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11019 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11021 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11023 * alpha-tdep.c: Update copyright years.
11024 (alpha_next_pc): New function.
11025 (alpha_software_single_step): Ditto.
11026 * config/alpha/tm-alpha.h: Add prototype for
11027 alpha_software_single_step.
11029 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11031 * alphabsd-nat.c: Update copyright years.
11032 (fill_gregset): Use regcache_collect.
11033 (fill_fpregset): Likewise.
11034 (fetch_inferior_registers): Only fetch integer registers
11035 if requested to do so.
11036 (store_inferior_registers): Only store integer registers
11037 if requested to do so.
11039 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11041 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11042 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11043 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11044 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11045 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11046 * config/arm/linux.mh (XDEPFILES): Delete.
11047 * config/arm/nbsd.mh (XDEPFILES): Delete.
11048 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11049 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11050 * config/i386/i386m3.mh (XDEPFILES): Delete.
11051 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11052 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11053 * config/i386/fbsd.mh (XDEPFILES): Delete.
11054 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11055 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11056 * config/i386/i386v4.mh (XDEPFILES): Delete.
11057 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11058 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11059 * config/i386/i386aix.mh (XDEPFILES): Delete.
11060 * config/i386/go32.mh (XDEPFILES): Delete.
11061 * config/i386/cygwin.mh (XDEPFILES): Delete.
11062 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11063 * config/i386/i386mach.mh (XDEPFILES): Delete.
11064 * config/i386/i386v32.mh (XDEPFILES): Delete.
11065 * config/i386/linux.mh (XDEPFILES): Delete.
11066 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11067 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11068 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11069 * config/i386/i386sco.mh (XDEPFILES): Delete.
11070 * config/i386/i386v.mh (XDEPFILES): Delete.
11071 * config/i386/nbsd.mh (XDEPFILES): Delete.
11072 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11073 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11074 * config/i386/symmetry.mh (XDEPFILES): Delete.
11075 * config/i386/obsd.mh (XDEPFILES): Delete.
11076 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11077 * config/ia64/linux.mh (XDEPFILES): Delete.
11078 * config/ia64/aix.mh (XDEPFILES): Delete.
11079 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11080 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11081 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11082 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11083 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11084 * config/m68k/linux.mh (XDEPFILES): Delete.
11085 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11086 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11087 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11088 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11089 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11090 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11091 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11092 * config/m88k/delta88.mh (XDEPFILES): Delete.
11093 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11094 * config/m88k/m88k.mh (XDEPFILES): Delete.
11095 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11096 * config/mips/linux.mh (XDEPFILES): Delete.
11097 * config/mips/irix6.mh (XDEPFILES): Delete.
11098 * config/mips/irix5.mh (XDEPFILES): Delete.
11099 * config/mips/irix4.mh (XDEPFILES): Delete.
11100 * config/mips/irix3.mh (XDEPFILES): Delete.
11101 * config/mips/decstation.mh (XDEPFILES): Delete.
11102 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11103 (NATDEPFILES): Move core-aout.o to here.
11104 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11105 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11106 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11107 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11108 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11109 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11110 * config/pa/hpux11.mh (XDEPFILES): Delete.
11111 * config/powerpc/aix.mh (XDEPFILES): Delete.
11112 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11113 * config/powerpc/linux.mh (XDEPFILES): Delete.
11114 * config/romp/rtbsd.mh: Rename XDEPFILES.
11115 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11116 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11117 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11118 * config/s390/s390.mh (XDEPFILES): Delete.
11119 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11120 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11121 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11122 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11123 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11124 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11125 * config/sparc/linux.mh (XDEPFILES): Delete.
11126 * config/vax/vaxult.mh (XDEPFILES): Delete.
11127 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11128 * Makefile.in (DEPFILES): Remove XDEPFILES.
11130 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11132 * utils.c (internal_verror): Fix comments, default is yes not no.
11133 Update queries to match. Default to quit and dump core.
11135 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11137 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11139 * defs.h, event-top.c, gdbcmd.h: Ditto.
11140 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11141 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11142 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11143 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11144 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11145 * mi/mi-main.c:Ditto.
11147 * stack.c, symfile.c: Update copyright.
11149 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11151 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11152 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11153 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11154 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11156 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11158 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11159 * gdbserver/low-lynx.c (myattach): Likewise.
11160 * gdbserver/low-nbsd.c (myattach): Likewise.
11161 * gdbserver/low-sim.c (myattach): Likewise.
11162 * gdbserver/low-sparc.c (myattach): Likewise.
11163 * gdbserver/low-sun3.c (myattach): Likewise.
11165 * gdbserver/low-linux.c (myattach): New function.
11167 * gdbserver/server.c (attach_inferior): New function.
11168 (main): Handle "--attach".
11170 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11172 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11175 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11177 * c-typeprint.c (is_type_conversion_operator): Add additional
11178 check for non-conversion operators.
11180 2002-01-15 Michael Snyder <msnyder@redhat.com>
11182 * linux-proc.c: Add "info proc" command, a la procfs.c.
11183 (read_mapping): New function, abstract and re-use code.
11184 (linux_find_memory_regions): Use new func read_mapping.
11185 (linux_info_proc_cmd): New function, implement "info proc".
11186 (_initialize_linux_proc): Add new command "info proc".
11188 2002-01-15 Michael Snyder <msnyder@redhat.com>
11190 * symfile.c (generic_load): Use bfd_map_over_sections method
11191 instead of manipulating bfd structure members directly.
11192 (add_section_size_callback): New function, bfd sections callback
11193 used by generic_load.
11194 (load_sections_callback): New function, bfd sections callback
11195 used by generic_load.
11197 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11199 [Based on work by Jim Blandy]
11200 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11201 (builtin_type_vec128): Export.
11202 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11204 (builtin_type_vec128): New builtin type for 128 bit vector
11206 (build_gdbtypes): Initialize builtin_type_v16qi and
11207 builtin_type_v8hi. Create the vec128 register builtin type
11209 (build_builtin_type_vec128): New function.
11210 (_initialize_gdbtypes): Register builtin_type_v16qi and
11211 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11212 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11213 AltiVec register to new builtin type.
11215 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11217 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11220 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11222 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11223 CLEAN_UP_REGISTER_VALUE.
11224 * regcache.c (supply_register): Update only call.
11226 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11228 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11229 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11230 a29k-*-vxworks* targets as obsolete.
11232 2002-01-14 Michael Snyder <msnyder@redhat.com>
11234 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11235 until we can resolve portability issues.
11236 * gregset.h: Remove references to fpxregs.
11237 * gcore.c (gcore_command): Initialize note_sec to NULL.
11239 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11241 * signals.c (target_signal_to_name): Rewrite. Only use
11242 signals[].name when in bounds and non-NULL.
11244 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11246 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11247 * signals.c (target_signal_to_name): Verify that SIG is within the
11248 bounds of the signals array.
11250 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11252 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11254 2002-01-13 Keith Seitz <keiths@redhat.com>
11256 * stack.c (print_frame_info_base): Print the frame's pc
11257 only if when print_frame_info_listing_hook is not defined.
11259 2002-01-13 Keith Seitz <keiths@redhat.com>
11261 * varobj.c (varobj_set_value): Make sure that there were no
11262 errors evaluating the object before attempting to set its
11264 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11265 so this offset adjustment is no longer necessary.
11266 (create_child): Don't set the error flag if the child is
11267 a CPLUS_FAKE_CHILD.
11268 (value_of_child): If value_fetch_lazy fails, return NULL
11269 so that callers will be notified that an error occurred.
11270 (c_value_of_variable): Delay check of variable's validity
11271 until later. We actually want all structs and unions to have
11273 Do not return "???" for variables which could not be evaluated.
11274 This error condition must be returned to the caller so that it
11275 can get the error condition from gdb.
11276 (cplus_name_of_child): Adjust index for vptr before figuring
11277 out the name of the child.
11278 (cplus_value_of_child): If a child's (real) parent is not valid,
11279 don't even bother trying to give a value for it. Just return
11280 an error. Change all instances in this function.
11281 (cplus_type_of_child): If our parent is one of the "fake"
11282 parents, we need to get at the type of the real parent, and
11283 derive the child's true type using this information.
11285 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11287 From 2002-01-09 John Marshall <johnm@falch.net>:
11288 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11289 sources.redhat.com, and tweak some related URLs which had
11290 suffered from linkrot.
11292 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11295 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11296 structures passed in registers.
11298 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11300 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11301 white space which prevented compilation. Reported by DSK
11302 <dsk@student.unsw.edu.au>.
11304 2002-01-11 Michael Snyder <msnyder@redhat.com>
11306 * symfile.c (build_section_addr_info_from_section_tab):
11307 Use bfd access method instead of manipulating bfd directly.
11308 (syms_from_objfile): Ditto.
11309 (simple_overlay_update_1): Ditto.
11310 (simple_overlay_update): Ditto.
11311 (generic_load): Ditto.
11312 (overlay_unmapped_address): FIXME comment, bfd access methods.
11313 (sections_overlap): FIXME comment, bfd access methods.
11314 (pc_in_mapped_range): FIXME comment, bfd access methods.
11315 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11316 (section_is_mapped): FIXME comment, bfd access methods.
11317 (section_is_overlay): FIXME comment, bfd access methods.
11319 * symfile.c (generic_load): Whitespace and long line cleanups.
11320 Remove duplicate variable, change several local variables to
11321 more appropriate data types.
11322 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11324 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11326 From Peter Schauer:
11327 * language.c (longest_local_hex_string_custom): Use phex_nz to
11328 convert NUM to a hex string.
11330 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11332 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11334 Update Copyright year.
11336 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11338 * language.c (longest_raw_hex_string): Delete unused function.
11340 2002-01-11 Petr Sorfa <petrs@caldera.com>
11342 * MAINTAINERS (write-after-approval): Add myself.
11343 * dwarf2read.c (read_tag_string_type): Handling of
11345 (read_tag_string_type): FORTRAN fix to prevent propagation of
11347 (set_cu_language): Handling of DW_LANG_Fortran95
11349 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11351 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11352 GETPID(inferior_ptid).
11353 (store_inferior_registers): Likewise.
11355 2002-01-10 Jason Merrill <jason@redhat.com>
11357 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11360 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11362 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11363 and bfd/elf32-sh-nbsd.c.
11365 2002-01-10 Michael Snyder <msnyder@redhat.com>
11367 * NEWS: Mention --pid and corefile/proc-id behavior change.
11369 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11370 * gcore.c: Include cli/cli-decode.h instead of command.h.
11372 * main.c (captured_main): Add new command line option "--pid".
11373 If the second command line argument (following the symbol-file)
11374 begins with a digit, try to attach to it before trying to open
11376 (print_gdb_help): Document the "--pid" argument.
11378 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11380 * completer.c (command_completer): New function.
11382 * completer.h <command_completer>: Add prototype.
11384 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11385 completer for the "help" command.
11387 2002-01-09 Jason Merrill <jason@redhat.com>
11389 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11391 2002-01-09 Michael Snyder <msnyder@redhat.com>
11393 * i386-linux-nat.c (fill_fpxregset): Make global.
11394 (store_fpxregset): Ditto.
11396 * gregset.h (gdb_fpxregset_t): Define.
11397 (supply_fpxregset): Prototype.
11398 (fill_fpxregset): Prototype.
11400 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11402 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11404 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11405 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11406 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11408 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11410 * MAINTAINERS: Update target maintainer rules so that any
11411 Maintainer can approve a tested patch for a maintenance-only
11414 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11416 * MAINTAINERS (write-after-approval): Add myself.
11418 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11421 2002-01-08 Michael Snyder <msnyder@redhat.com>
11423 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11424 real name of the executable, rather than the /proc name.
11426 2002-01-03 Michael Snyder <msnyder@redhat.com>
11428 Implement a "generate-core-file" command in gdb, save target state.
11429 * gcore.c: New file. Implement new command 'generate-core-file'.
11430 Save a corefile image of the current state of the inferior.
11431 * linux-proc.c: Add linux-specific code for saving corefiles.
11432 * target.h (struct target_ops): Add new target vectors for saving
11433 corefiles; to_find_memory_regions and to_make_corefile_notes.
11434 (target_find_memory_regions): New macro.
11435 (target_make_corefile_notes): New macro.
11436 * target.c (update_current_target): Inherit new target methods.
11437 (dummy_find_memory_regions): New place-holder method.
11438 (dummy_make_corefile_notes): New place-holder method.
11439 (init_dummy_target): Initialize new dummy target vectors.
11440 * exec.c (exec_set_find_memory_regions): New function.
11441 Allow the exec_ops vector for memory regions to be taken over.
11442 (exec_make_note_section): New function, target vector method.
11443 * defs.h (exec_set_find_memory_regions): Export prototype.
11444 * procfs.c (proc_find_memory_regions): New function, corefile method.
11445 (procfs_make_note_section): New function, corefile method.
11446 (init_procfs_ops): Set new target vector pointers.
11447 (find_memory_regions_callback): New function.
11448 (procfs_do_thread_registers): New function.
11449 (procfs_corefile_thread_callback): New function.
11450 * sol-thread.c (sol_find_memory_regions): New function.
11451 (sol_make_note_section): New function.
11452 (init_sol_thread_ops): Initialize new target vectors.
11453 * inftarg.c (inftarg_set_find_memory_regions): New function.
11454 Allow to_find_memory_regions vector to be taken over.
11455 (inftarg_set_make_corefile_notes): New function.
11456 Allow to_make_corefile_notes vector to be taken over.
11457 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11458 interface layer if not target_has_execution (may be a corefile).
11459 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11460 * config/sparc/sun4sol2.mh: Ditto.
11461 * config/alpha/alpha-linux.mh: Ditto.
11462 * config/arm/linux.mh: Ditto.
11463 * config/i386/x86-64linux.mh: Ditto.
11464 * config/ia64/linux.mh: Ditto.
11465 * config/m68k/linux.mh: Ditto.
11466 * config/mips/linux.mh: Ditto.
11467 * config/powerpc/linux.mh: Ditto.
11468 * config/sparc/linux.mh: Ditto.
11470 2002-01-07 Michael Snyder <msnyder@redhat.com>
11472 * arm-linux-nat.c: Remove references to regcache.c internal data
11473 (registers[] and register_valid[]).
11475 2002-01-07 Michael Snyder <msnyder@redhat.com>
11477 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11478 so that attaching to a pid will automatically read the process's
11479 symbol file and shlibs.
11480 * Makefile.in: Add rule for linux-proc.o.
11481 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11482 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11483 * config/arm/linux.mh: Ditto.
11484 * config/i386/linux.mh: Ditto.
11485 * config/i386/x86-64linux.mh: Ditto.
11486 * config/ia64/linux.mh: Ditto.
11487 * config/m68k/linux.mh: Ditto.
11488 * config/mips/linux.mh: Ditto.
11489 * config/powerpc/linux.mh: Ditto.
11490 * config/sparc/linux.mh: Ditto.
11492 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11494 * win32-nat.c: Add i386-tdep.h dependency.
11496 2002-01-07 Michael Snyder <msnyder@redhat.com>
11498 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11499 instead of bfd_get_arch_size. Don't bail out just because
11500 there's no exec_bfd.
11502 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11503 * p-valprint.c (pascal_object_print_value): Ditto.
11504 * somread.c (som_symtab_read): Ditto.
11505 * symfile.c (simple_free_overlay_region_table): Ditto.
11506 * valops.c (value_assign): Ditto.
11508 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11509 use tilde_expand and strerror for opening save-tracepoints file.
11511 * thread-db.c (thread_db_new_objfile): Indendation fix.
11513 * infptrace.c (GDB_MAX_ALLOCA): New define.
11514 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11515 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11516 can be overridden with whatever value is appropriate to the host).
11517 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11518 alloca to allocate potentially large buffer.
11519 * rs6000-nat.c (child_xfer_memory): Ditto.
11520 * symm-nat.c (child_xfer_memory): Ditto.
11521 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11523 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11525 From Nick Clifton <nickc@redhat.com>
11526 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11528 2002-01-07 Michael Snyder <msnyder@redhat.com>
11530 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11531 Don't use exec_bfd if it's NULL.
11533 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11535 * valops.c (value_arg_coerce): Fix formatting.
11537 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11539 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11540 * gnu-nat.c: Ditto.
11542 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11544 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11545 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11546 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11547 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11548 z8k-coff have not been multi-arched. Update z8k-coff build
11551 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11553 * MAINTAINERS: Mark a29k target as obsolete.
11554 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11555 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11557 * NEWS: Note that a29k targets are obsolete.
11558 * a29k-tdep.c: Mark as obsolete.
11559 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11560 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11561 a29k-*-vxworks* targets as obsolete.
11562 * remote-adapt.c: Obsolete.
11563 * remote-eb.c: Obsolete.
11564 * remote-mm.c: Obsolete.
11565 * remote-udi.c: Obsolete.
11566 * config/a29k/a29k-udi.mt: Obsolete.
11567 * config/a29k/a29k.mt: Obsolete.
11568 * config/a29k/tm-a29k.h: Obsolete.
11569 * config/a29k/tm-vx29k.h: Obsolete.
11570 * config/a29k/vx29k.mt: Obsolete.
11572 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11574 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11575 with BFD_ENDIAN_BIG.
11577 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11579 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11580 * configure, config.in: Re-generate.
11581 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11582 * defs.h: Do not include <endian.h>.
11584 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11586 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11587 * config.in: Regenerate.
11588 * configure.in: Update copyright years.
11589 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11590 * configure: Regenerate.
11591 * i386bsd-nat.c: Update copyright years.
11592 (fill_gregset): Use regcache_collect.
11593 (fetch_inferior_registers): Only fetch integer registers
11594 if requested to do so. Add support for XMM registers
11595 using PT_GETXMMREGS.
11596 (store_inferior_registers): Only store integer registers
11597 if requested to do so. Add support for XMM registers
11598 using PT_SETXMMREGS.
11599 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11600 (store_inferior_registers): Remove.
11601 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11602 (fetch_elfcore_registers): New function.
11603 (i386nbsd_elfcore_fns): New.
11604 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11605 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11607 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11608 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11609 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11610 * config/i386/tm-nbsd.h: Update copyright years.
11611 (HAVE_SSE_REGS): Define.
11612 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11613 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11614 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11615 (SIGCONTEXT_PC_OFFSET): Remove.
11616 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11618 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11620 * configure.tgt: Remove powerpc-*-macos* target.
11621 * config/m68k/xm-mpw.h: Delete file.
11622 * config/xm-mpw.h: Delete file.
11623 * ser-mac.c: Delete file.
11624 * mpw-make.sed: Delete file.
11625 * mpw-config.in: Delete file.
11626 * mac-xdep.c: Delete file.
11627 * mac-gdb.r: Delete file.
11628 * mac-defs.h: Delete file.
11629 * mac-nat.c: Delete file.
11630 * config/powerpc/macos.mh: Delete file.
11631 * config/powerpc/macos.mt: Delete file.
11632 * config/powerpc/nm-macos.h: Delete file.
11633 * config/powerpc/tm-macos.h: Delete file.
11634 * source.c (openp, open_source_file): Remove obsolete code.
11635 * top.c (gdb_readline): Ditto.
11636 * utils.c (query): Ditto.
11637 * event-top.c (display_gdb_prompt): Ditto.
11638 * Makefile.in (ser-mac.o): Delete obsolete target.
11641 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11643 * defs.h (BIG_ENDIAN): Delete macro definition.
11644 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11645 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11646 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11647 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11648 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11649 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11650 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11651 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11652 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11653 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11654 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11655 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11656 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11657 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11658 * gdbarch.c: Re-generate.
11660 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11662 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11665 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11667 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11669 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11671 * value.h (value_ptr): Delete typedef.
11673 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11675 * i386nbsd-nat.c: Update copyright years.
11676 Include i386-tdep.h.
11678 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11680 * stabsread.c: Update copyright years.
11682 From Debashis Mahata <debashis.mahata@wipro.com>:
11683 (read_struct_fields): Deal with Sun C compiler erroneous stab
11684 output for structs and unions.
11687 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11689 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11692 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11694 * cp-abi.c: Fix whitespace.
11695 (baseclass_offset): New wrapper function.
11696 * cp-abi.h (baseclass_offset): Add prototype.
11697 (struct cp_abi_ops): Add baseclass_offset pointer.
11699 * valops.c (vb_match): Move to...
11700 * gnu-v2-abi.c (vb_match): here.
11701 * valops.c (baseclass_offset): Move to...
11702 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11704 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11706 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11707 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11708 * hpacc-abi.c (init_hpacc_ops): Likewise.
11710 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11712 * valops.c (find_overload_match): Accept obj as a
11713 reference parameter. Update it before returning.
11714 * value.h (find_overload_match): Update prototype.
11715 * eval.c (evaluate_subexp_standard): Pass object to
11716 find_overload_match by reference.
11718 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11720 * valarith.c: Replace value_ptr with struct value pointer. Remove
11721 register attribute from value declarations.
11724 * scm-lang.c (scm_lookup_name): Ditto.
11726 2002-01-03 Michael Snyder <msnyder@redhat.com>
11728 Abstract the functionality of iterating over mapped memory
11729 regions into a general purpose iterator function.
11730 * procfs.c (iterate_over_mappings): New function, general purpose
11731 iterator for memory sections.
11732 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11733 (solib_mappings_callback): New function, callback for above.
11734 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11735 (info_mappings_callback): New function, callback for above.
11737 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11739 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11741 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11742 * i386-tdep.c: Include "elf-bfd.h".
11743 (process_note_abi_tag_sections): New function.
11744 (i386_gdbarch_init): Add code to recognize various OS/ABI
11747 * maint.c (_initialize_maint_cmds): Add missing \ in
11750 For older changes see ChangeLog-2001
11756 version-control: never