1 2002-10-11 Adam Fedor <fedor@gnu.org>
3 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
6 2002-10-11 Adam Fedor <fedor@gnu.org>
8 * language.h (CAST_IS_CONVERSION): Add language_objc.
10 2002-10-11 Adam Fedor <fedor@gnu.org>
12 * defs.h (enum language): Add language_objc.
14 2002-10-11 Klee Dienes <kdienes@apple.com>
16 * findvar.c (read_memory_typed_address): New function.
17 * gdbcore.h (read_memory_typed_address): Add prototype.
18 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
19 to read a value destined for a CORE_ADDR, not read_memory_integer.
20 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
21 (f77_get_dynamic_lowerbound): Ditto.
23 2002-10-11 Martin M. Hunt <hunt@redhat.com>
25 * utils.c (string_to_core_addr): After turning string into
26 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
27 which will do necessary sign-extension, etc.
29 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
31 * c-exp.y (THIS): Delete token and grammar rule.
32 (yylex): Don't return THIS.
33 * cp-valprint.c (vtbl_ptr_name_old): Delete.
34 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
35 * demangle.c (cplus_markers): Update comment. Put '$'
36 first. Remove CPLUS_MARKER.
37 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
38 * jv-exp.y (THIS): Delete token and grammar rule.
39 (yylex): Don't return THIS.
40 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
41 * objc-exp.y (THIS): Delete token and grammar rule.
42 (yylex): Don't return THIS.
43 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
44 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
45 (read_member_functions): Likewise for opname.
46 (read_tilde_fields): Use is_cplus_marker.
48 * defs.h (CPLUS_MARKER): Don't define.
49 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
50 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
51 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
52 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
53 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
55 * config/i386/tm-i386v4.h: Delete file.
56 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
57 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
58 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
59 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
60 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
61 * config/i386/i386sco5.mt (TM_FILE): Likewise.
62 * config/i386/i386v4.mt (TM_FILE): Likewise.
63 * config/i386/ncr3000.mt (TM_FILE): Likewise.
65 2002-10-10 Marko Mlinar <markom@opencores.org>
67 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
68 accidentially not commited 2002-10-09
69 * gdbarch.h, gdbarch.c: Re-generate.
71 2002-10-09 Marko Mlinar <markom@opencores.org>
73 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
74 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
75 * gdbarch.h, gdbarch.c: Re-generate.
77 2002-10-08 Petr Sorfa <petrs@caldera.com>
79 Revised and re-submitted by John Wolfe <jlw@caldera.com>
81 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
82 so we can work on more than one compilation unit at a time. This
83 helps prepare GDB to handle inter-CU die references.
84 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
85 the code to be defined before struct comp_unit_head.
86 (comp_unit_head): Added new members - offset, cu_head,
87 begin_die, next and dwarf2_abbrevs.
88 (dwarf2_abbrevs): Removed single static var; now member of
89 struct comp_unit_head.
90 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
92 (psymtab_to_symtab_1): Changed to work with the new
93 struct comp_unit_head.
94 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
95 constructs the dwarf2_abbrevs[] inside the cu_header.
96 (dwarf2_empty_abbrev_table): Now expects a ptr to a
97 dwarf2_abbrev table to clean up.
98 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
99 handling of dwarf2_abbrevs inside the cu_header.
100 (read_partial_die): Now supports the call to the new
101 dwarf2_lookup_abbrev.
102 (read_full_die): Now supports the call to the new
103 dwarf2_lookup_abbrev.
105 2002-10-06 Christopher Faylor <cgf@redhat.com>
107 * Makefile.in (install-gdbtk): Add missing continuation backslash to
108 insure that shell variables, such as "transformed_name" are propagated
109 to later shell statements in rule.
111 2002-10-06 Mark Kettenis <kettenis@gnu.org>
113 * config/i386/nm-i386sco.h: Add protection against
114 multiple-inclusion. Include "i386/nm-i386v.h".
115 (REGISTER_U_ADDR): Remove define.
116 (i386_register_u_addr): Remove prototype.
118 2002-10-04 Michael Snyder <msnyder@redhat.com>
120 * m32r-stub.c (handle_exception): Make sure exception is "trap"
121 before treating it as a single-step event.
123 2002-10-03 Adam Fedor <fedor@gnu.org>
125 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
126 (objc_demangle): Remove assignment in if statements, Replace
128 (add_msglist): Likewise.
129 (end_msglist): Likewise.
130 (complare_selectors): Likewise.
131 (selectors_info): Likewise.
132 (compare_classes): Likewise.
133 (classes_info): Likewise.
134 (print_object_command): Likewise.
135 (find_objc_msgcall_submethod): Replace PTR with void *.
136 * objc-lang.h: Remove check for __STDC__.
138 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
140 * ui-out.h (ui_out_field_fmt_int): New prototype.
141 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
142 of field width and alignment.
143 * stack.c (print_frame_info_base): When printing frame level, use
144 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
147 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
149 * MAINTAINERS: Add self to Write After Approval list.
151 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
153 * infcmd.c (interrupt_target_command_wrapper): Delete.
154 (interrupt_target_command): Make non static.
155 (nofp_registers_info): Make static.
156 * stack.c (return_command_wrapper): Delete.
157 (return_command): Make non static.
159 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
161 * event-top.c (gdb_setup_readline): New function. Code moved from
162 _initialize_event_loop().
163 (_initialize_event_loop): Call gdb_setup_readline().
165 2002-10-02 Andrew Cagney <ac131313@redhat.com>
167 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
168 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
169 * gdbarch.h, gdbarch.c: Re-generate.
171 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
174 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
176 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
177 of fill_in_vptr_fieldno.
179 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
181 * inferior.h (registers_info, stepi_command, nexti_command,
182 continue_command, interrupt_target_command): Export from infcmd.c.
183 * frame.h (args_info, selected_frame_level_changed_hook,
184 return_command): Export from stack.c.
185 * v850ice.c (stepi_command, nexti_command, continue_command): use
186 prototypes from inferior.h.
187 * tracepoint.c (registers_info, args_info, locals_info): Use
188 prototypes from frame.h and inferior.h.
189 * Makefile.in (mi-main.o): Add dependency on frame.h.
191 2002-10-02 Andrew Cagney <ac131313@redhat.com>
193 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
194 value in register 3 adjusted by ppc_gp0_regnum.
196 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
198 2002-10-02 Marko Mlinar <markom@opencores.org>
200 * MAINTAINERS: Add myself to the Write After Approval list.
202 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
204 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
205 of the section for the N64 ABI, fixed.
207 * config/mips/tm-irix6.h: Include solib.h.
209 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
211 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
214 2002-10-01 Andrew Cagney <ac131313@redhat.com>
216 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
217 and that "mi0" syntax has been removed.
219 2002-09-30 David Carlton <carlton@math.stanford.edu>
221 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
222 * ppc-sysv-tdep.c: #include "gdb_string.h".
223 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
226 2002-10-01 Andrew Cagney <ac131313@redhat.com>
228 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
229 "vrsave"'s register number.
231 2002-09-30 Andrew Cagney <ac131313@redhat.com>
233 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
234 use frame_unwind_signed_register to obtain the PC.
235 (mips_frame_chain): Handle a generic dummy frame.
236 (mips_init_extra_frame_info): When a generic dummy frame, don't
237 re-compute the frame base.
238 (mips_pop_frame): Handle generic dummy frames.
239 (mips_gdbarch_init): When generic dummy frames, set
240 use_generic_dummy_frames, push_dummy_frame to
241 generic_push_dummy_frame, pc_in_call_dummy to
242 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
243 generic_save_dummy_frame_tos.
245 2002-09-30 Andrew Cagney <ac131313@redhat.com>
247 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
248 against TOP when TOP was explictly set.
249 (generic_push_dummy_frame): Set TOP to zero.
251 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
253 * event-loop.c (start_event_loop): Rename variable 'result' to
254 'gdb_result', to avoid conflicts with upcoming intepreters changes.
256 2002-09-30 Keith Seitz <keiths@redhat.com>
258 * gdb-events.sh (selected_thread_changed): New event.
259 * gdb-events.c: Regenerated.
260 * gdb-events.h: Regenerated.
262 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
264 * MAINTAINERS: Add self to Write After Approval list.
266 2002-09-30 Fernando Nasser <fnasser@redhat.com>
268 * disasm.c: New file.
269 * disasm.h: New file.
270 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
271 (compare_lines): Ditto.
273 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
275 (do_assembly_only): Ditto.
276 (do_disassembly): Renamed to gdb_disassembly and moved to
277 disasm.c. Sdded uiout argument.
278 * Makefile.in: Add new files. Reorder SFILES list. Update
279 dependencies. Include libgdb.a later in the insight executable.
281 2002-09-29 Andrew Cagney <ac131313@redhat.com>
283 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
284 bfd/elf64-alpha-fbsd.c.
286 2002-09-29 Andrew Cagney <ac131313@redhat.com>
288 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
291 2002-09-29 Andrew Cagney <ac131313@redhat.com>
293 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
295 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
297 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
298 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
299 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
300 (S_msg_sig_post_reply): Ditto.
302 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
304 * sh-tdep.c (sh_use_struct_convention): Use definition according
306 (sh_push_arguments): Store in register with correct endianess.
307 (sh_default_store_return_value): Ditto.
308 (sh_gdbarch_init): Set sizeof long double to 8.
310 2002-09-27 Mark Kettenis <kettenis@gnu.org>
312 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
313 Fix some whitespace problems.
315 2002-09-27 David Carlton <carlton@math.stanford.edu>
317 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
318 (mcore-tdep.o): Ditto.
319 (ns32k-tdep.o): Ditto.
320 (ns32knbsd-tdep.o): Ditto.
323 * cris-tdep.c: #include "gdb_string.h"
324 * mcore-tdep.c: Ditto.
325 * ns32k-tdep.c: Ditto.
326 * ns32knbsd-tdep.c: Ditto.
330 2002-09-27 David Carlton <carlton@math.stanford.edu>
332 * config/djgpp/fnchange.lst: Add entries for
333 gdb/testsuite/gdb.c++/m-static files.
335 2002-09-27 Jim Wilson <wilson@redhat.com>
337 * MAINTAINERS: Add myself to the Write After Approval list.
339 2002-09-26 Martin M. Hunt <hunt@redhat.com>
341 * mips-tdep.c (find_proc_desc): Initialize startaddr.
344 2002-09-26 Andrew Cagney <ac131313@redhat.com>
346 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
349 2002-09-26 Andrew Cagney <ac131313@redhat.com>
351 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
352 (rs6000_struct_return_address): Delete variable.
353 (rs6000_store_struct_return): Update.
354 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
355 deprecated_extract_struct_value_address.
356 (rs6000_frame_align): New function.
357 (rs6000_gdbarch_init): Set frame_align.
359 2002-09-26 Andrew Cagney <ac131313@redhat.com>
361 From Grace Sainsbury <graces@redhat.com>:
362 * Makefile.in (gdbtk-main.o): New target.
365 (main.o): Update dependencies.
366 (gdb$(EXEEXT)): Add gdb.o.
367 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
368 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
369 (SUBDIR_GDBTK_CLEAN): Set.
370 (install-gdbtk): Install the insight binary.
371 (uninstall-gdbtk): New target.
372 (all-gdbtk, clean-gdbtk): New rule.
373 * top.c (use_windows): Default to zero.
374 * main.c: Include "main.h".
376 (struct captured_main_args): Delete.
377 (gdb_main): New function.
381 2002-09-25 Andrew Cagney <cagney@redhat.com>
383 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
384 (frame_map_regnum_to_name): New function.
385 (frame_map_name_to_regnum): New function.
386 * frame.h (frame_map_name_to_regnum): Declare.
387 (frame_map_regnum_to_name): Declare.
388 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
389 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
390 * parse.c: Do not include "builtin-regs.h".
391 (target_map_name_to_register): Delete function.
392 (write_dollar_variable): Use frame_map_name_to_regnum.
393 * parser-defs.h (target_map_name_to_register): Delete declaration.
394 * expprint.c: Include "frame.h".
395 (print_subexp): Use frame_map_regnum_to_name.
396 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
397 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
399 2002-09-25 Andrew Cagney <ac131313@redhat.com>
401 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
402 wasn't saved, and the next innermost frame is a dummy, return the
403 dummy frame's link register.
405 2002-09-24 Jim Blandy <jimb@redhat.com>
408 * main.c (captured_main): Add a `break' after the case for 'b'.
410 2002-09-24 Keith Seitz <keiths@redhat.com>
412 * varobj.c (c_type_of_child): Use get_target_type instead
415 2002-09-22 Fernando Nasser <fnasser@redhat.com>
417 * source.c (get_current_or_default_source_symtab_and_line): Remove
419 (set_default_source_symtab_and_line): New function. Attempts to
420 determine a source file to list lines from if one is not currently
422 (get_current_source_symtab_and_line): Initialize sal.pc and
424 (set_current_source_symtab_and_line): Mark argument as const.
425 * source.h: Update declarations and comments.
426 * linespec.c (decode_line_1): Replace call to removed routine above.
427 * stack.c (print_frame_info_base): Ditto.
428 * cli/cli-cmds.c (edit_command): Ditto.
429 (list_command): Ditto.
431 2002-09-22 Fernando Nasser <fnasser@redhat.com>
433 * source.c (get_current_or_default_source_symtab_and_line): Initialize
434 sal.pc and sal.end fields.
435 (get_current_or_default_source_symtab_and_line): Ditto.
436 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
437 so we do not cause a new source symtab to be searched for (reverting an
438 unintentional change from the 2002-09-20 patch).
439 * scm-lang.c (scm_unpac): Ditto.
441 2002-09-21 Andrew Cagney <cagney@redhat.com>
443 * complaints.c (symfile_explanations): Remove new-line from
444 ``isolated_message''.
445 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
446 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
448 2002-09-20 Nick Clifton <nickc@redhat.com>
450 * NEWS: Announce that V850EA ISA is no longer supported.
451 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
453 2002-09-20 David Carlton <carlton@math.stanford.edu>
455 * Makefile.in (c-lang.o): Correct dependencies.
456 (utils.o): Gather dependencies.
458 * c-lang.c: #include "gdb_string.h"
460 2002-09-20 Fernando Nasser <fnasser@redhat.com>
462 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
463 * cli/cli-cmds.c (list_command): New function. Implements the new
465 (_init_cli_cmds): Add new command definition.
466 * gdb.1: Document edit command.
467 * doc/gdb.texinfo: Document edit command.
469 2002-09-20 Fernando Nasser <fnasser@redhat.com>
471 * source.c: Make global variables current_source_symtab and
472 current_source_line static.
473 (list_command): Moved to cli/cli-cmds.c.
474 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
475 (get_first_line_listed): New accessor function.
476 (get_lines_to_list): New accessor function.
477 (get_current_source_symtab_and_line): New function. Retrieves the
478 position in the source code that we consider current.
479 (get_current_or_default_source_symtab_and_line): New function.
480 Like the above but attempts to determine a default position if one
481 is not currently defined.
482 (set_current_source_symtab_and_line): New function. Sets the source
483 code position considered current and returns the previously set one.
484 (clear_current_source_symtab_and_line): Reset stored information about
485 a current source line.
486 (_initialize_source): Remove registration for the "list" command and
488 * source.h: Add declarations for the new functions above.
489 * symtab.h: Remove declarations for the global variables mentioned
491 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
492 obtain current source line.
493 * linespec.c (decode_line_1): Ditto.
494 * macroscope.c (default_macro_scope): Ditto.
495 * scm-lang.c (scm_unpac): Ditto.
496 * stack.c (print_frame_info_base): Ditto.
497 * symfile.c (clear_symtab_users): Ditto.
498 * symtab.c (decode_line_spec): Ditto.
499 * cli/cli-cmds.c (list_command): Moved here from source.c.
500 (ambiguous_line_spec): Moved here from source.c.
501 (_init_cli_cmds): Add definition for "list" and its alias.
502 * Makefile.in: Update dependencies.
504 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
506 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
507 with what gcc thinks is correct.
509 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
511 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
512 multiple register push instruction.
514 2002-09-19 Jim Blandy <jimb@redhat.com>
516 Add support for distinct host and target character sets.
517 * charset.c, charset.h: New files.
518 * c-exp.y: #include "charset.h".
519 (yylex): Convert character and string literals to the target
520 character set, before returning them as the semantic value of the
522 * c-lang.c: #include "charset.h".
523 (c_emit_char): Use charset-specific methods to recognize
524 characters with backslash escape forms, to decide which characters
525 to print literally and which to print using numeric escape
526 sequences, and to convert target characters to host characters
528 * utils.c: #include "charset.h".
529 (no_control_char_error): New function.
530 (parse_escape): Use charset-specific methods to recognize
531 backslash escapes, parse `control character' notation, and convert
532 characters from the host character set to the target character set.
533 * configure.in: Set the default host character set.
534 Check where to find iconv, and what its argument types might be.
535 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
536 * Makefile.in (SFILES): List charset.c.
537 (COMMON_OBS): List charset.o.
538 (charset.o): New rule.
539 (charset_h): New header dependency variable.
540 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
541 (LIBICONV): New variable, set by configure.
542 (CLIBS): Include $(LIBICONV) here.
543 * aclocal.m4, config.in, configure: Regenerated.
545 2002-09-19 Joel Brobecker <brobecker@gnat.com>
547 * ada-exp.y: Add missing semicolons to end rules. Fixes a
550 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
552 * gdb_mbuild.sh: New file.
554 2002-09-19 Andrew Cagney <ac131313@redhat.com>
556 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
558 2002-09-18 Andrew Cagney <ac131313@redhat.com>
560 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
561 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
562 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
563 valops.c, value.h: Revert previous change.
565 2002-09-18 Michael Snyder <msnyder@redhat.com>
567 Preliminary support for Objective-C:
568 * defs.h (language_objc): New enum value.
569 (puts_filtered_tabular): Declaration only, exported from utils.c.
570 (skip_quoted): Delete, declared in completer.h.
571 * c-exp.y: Include completer.h.
574 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
575 New operator enum values.
576 * language.h (CAST_IS_CONVERSION): Test for language_objc.
577 * language.c (binop_result_type): Handle language_objc case.
578 (integral_type, character_type, string_type, boolean_type,
579 structured_type, binop_type_check): Ditto.
580 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
581 (struct objc_specific): Add to general_symbol_info.
582 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
583 (SYMBOL_DEMANGLED_NAME): Handle objc case.
584 * parser-defs.h (struct objc_class_str): New struct type.
585 (start_msglist, end_msglist, add_msglist): Declaration only,
586 exported from objc-lang.c.
587 * value.h (value_of_local, value_nsstring,
588 call_function_by_hand_expecting_type): Exported from valops.c.
589 * valops.c (find_function_addr): Export.
590 (call_function_by_hand_expecting_type): New function.
591 (value_of_local): New function.
592 * symfile.c (init_filename_language_table): Add ".m" extension
594 * utils.c (puts_filtered_tabular): New function.
595 (fprintf_symbol_filtered): Add objc demangling support (disabled).
596 (set/show demangle): Extend help-string to refer to ObjC.
597 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
598 * stabsread.c (symbol_reference_defined): Objective-C symbols
599 may contain colons: make allowances when scanning stabs strings
601 (objc_find_colon): New function.
602 * printcmd.c (address_info): If language == objc then print
603 "self" instead of "this".
604 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
605 OP_NSSTRING, and OP_SELF.
606 (prefixify_subexp): Ditto.
607 * source.c (print_source_lines): Mention objc in comment.
608 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
611 2002-09-18 Andrew Cagney <ac131313@redhat.com>
613 * complaints.h: Update copyright.
614 (struct complaints): Declare.
615 (struct complaint): Make `message' constant.
616 (internal_complaint): Declare.
617 (complaint): Declare.
618 (complaint_root): Delete declaration.
619 (symfile_complaints): Delete declaration.
620 (struct complaints): Add opaque declaration.
621 (clear_complaints): Add a complaints parameter.
622 * complaints.c: Update copyright.
623 (enum complaint_series): Define.
624 (complaint_root): Delete.
625 (struct complaints): Define.
626 (complaint_sentinel, symfile_complaint_book): New variables.
627 (symfile_explanations, symfile_complaints): New variables.
629 (get_complaints): New function.
630 (vcomplaint): New function.
631 (complaint): New function.
632 (internal_complaint): New function.
633 (complain): Call vcomplain with symfile_complaint.
634 (clear_complaints): Rewrite.
635 (_initialize_complaints): Use add_setshow_command.
636 * Makefile.in (complaints.o): Update dependencies.
637 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
638 to call to clear_complaints.
639 (new_symfile_objfile, reread_symbols): Ditto.
640 (oldsyms_complaint): Delete.
641 (empty_symtab_complaint, unknown_option_complaint): Delete.
642 (free_named_symtabs): Use complaint instead of complain.
644 2002-09-18 Michael Snyder <msnyder@redhat.com>
646 Contributed by Apple Computer, Inc. Merged with current sources
647 by Adam Fedor <fedor@doc.com> [cagney].
649 * objc-lang.c: First clean-up round: comments, indentation.
650 * objc-lang.h: Ditto.
651 * objc-lang.y: Ditto.
653 2002-09-18 Andrew Cagney <ac131313@redhat.com>
655 * maint.c (maintenance_internal_error): Print the parameter as the
657 (maintenance_internal_warning): New function.
658 (_initialize_maint_cmds): Add command `maint internal-warning'.
660 * defs.h (internal_warning, internal_vwarning): Declare.
661 * utils.c (struct internal_problem): Define.
662 (internal_vproblem): New function.
663 (internal_warning): New function.
664 (internal_vwarning): New function.
665 (internal_warning_problem, internal_error_problem): New variables.
666 (internal_verror): Just call internal_vproblem.
668 2002-09-18 Michael Snyder <msnyder@redhat.com>
670 * objc-lang.c: New file, support for Objective-C.
671 Preliminary check-in, not yet integrated into gdb.
672 * objc-lang.h: New file.
673 * objc-exp.y: New file.
675 2002-09-18 Andrew Cagney <ac131313@redhat.com>
677 * infrun.c (signal_stop_update): Convert definition to ISO C.
678 (signal_print_update): Ditto.
679 (signal_pass_update): Ditto.
680 * inflow.c (terminal_save_ours): Ditto.
682 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
685 * config/djgpp/fnchange.lst: Handle name clashes between
686 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
689 * i386-linux-tdep.h: Fix tipo.
691 2002-09-18 Adam Fedor <fedor@gnu.org>
693 * MAINTAINERS: Add myself to the Write After Approval list.
695 2002-09-18 Jim Blandy <jimb@redhat.com>
697 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
698 texthigh and textlow to reader-specific structs caused
699 objfile_relocate to miss them. This is fixable, but the work that
700 the change was supposed to prepare GDB for never got done anyway.
702 2002-09-18 David Carlton <carlton@math.stanford.edu>
704 * MAINTAINERS: Alphabetize Write After Approval list.
706 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
709 * values.c (value_static_field): Call read_var_value.
711 2002-09-18 Andrew Cagney <ac131313@redhat.com>
713 * valops.c (hand_function_call): Align the initial stack pointer
714 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
715 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
717 * mips-tdep.c (mips_frame_align): New function.
718 (mips_gdbarch_init): Set frame_align.
719 * gdbarch.sh (FRAME_ALIGN): New method.
720 * gdbarch.h, gdbarch.c: Re-generate.
722 2002-09-18 Michal Ludvig <mludvig@suse.cz>
724 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
727 2002-09-17 Andrew Cagney <ac131313@redhat.com>
729 * NEWS: Mention that MIPS $fp behavior changed.
730 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
731 reference to FP_REGNUM.
732 (mipsnbsd_cannot_store_register): Ditto.
733 * mips-linux-nat.c: Update copyright.
734 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
735 (mips_linux_cannot_store_register): Ditto.
736 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
737 * config/mips/tm-mips.h: Update copyright.
738 (FP_REGNUM): Delete macro.
739 (MIPS_REGISTER_NAMES): Replace "fp" with "".
740 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
741 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
742 (mips_r3041_reg_names, mips_r3051_reg_names)
743 (mips_r3081_reg_names): Replace "fp" with "".
746 2002-09-17 Theodore A. Roth <troth@verinet.com>
748 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
749 generic_read_register_dummy() (PR gdb/703).
750 (avr_push_return_address): #if 0 out unused vars.
751 (avr_gdbarch_init): Enable use of avr_push_return_address().
753 2002-09-17 Michael Snyder <msnyder@redhat.com>
755 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
756 RTE will take care of it.
758 2002-09-17 Andrew Cagney <ac131313@redhat.com>
760 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
761 invalid, return SP_REGNUM.
763 2002-09-17 Michael Snyder <msnyder@redhat.com>
765 * mips-tdep.c (mips_pop_frame): Read saved values of floating
766 point registers without sign extension.
768 2002-09-17 Andrew Cagney <cagney@redhat.com>
770 * blockframe.c (deprecated_read_register_dummy): Rename
771 generic_read_register_dummy.
772 * frame.c (frame_unwind_signed_register): New function.
773 (frame_unwind_unsigned_register): New function.
774 * frame.h (frame_unwind_signed_register): Declare.
775 (frame_unwind_unsigned_register): Declare.
776 (deprecated_read_register_dummy): Rename
777 generic_read_register_dummy.
779 * h8300-tdep.c (h8300_frame_chain): Update.
780 (h8300_frame_saved_pc): Update.
781 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
782 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
783 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
784 (s390_frame_chain): Update.
785 * v850-tdep.c (v850_find_callers_reg): Update.
786 (v850_frame_saved_pc): Update.
787 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
788 (m32r_find_callers_reg): Update.
789 (m32r_frame_saved_pc): Update.
790 * sh-tdep.c (sh_find_callers_reg): Update.
791 (sh64_get_saved_pr): Update.
792 (sh_init_extra_frame_info): Update.
793 (sh_init_extra_frame_info): Update.
794 (sh64_init_extra_frame_info): Update.
795 (sh64_init_extra_frame_info): Update.
796 * mcore-tdep.c (mcore_find_callers_reg): Update.
797 (mcore_frame_saved_pc): Update.
798 (mcore_init_extra_frame_info): Update.
799 * i386-tdep.c (i386_frame_saved_pc): Update.
800 * ia64-tdep.c (ia64_frame_saved_pc): Update.
801 (ia64_init_extra_frame_info): Update.
802 (ia64_init_extra_frame_info): Update.
803 * d10v-tdep.c (d10v_frame_saved_pc): Update.
804 * cris-tdep.c (cris_init_extra_frame_info): Update.
805 * avr-tdep.c (avr_frame_chain): Update.
806 (avr_init_extra_frame_info): Update.
807 (avr_frame_saved_pc): Update.
808 * arm-tdep.c (arm_find_callers_reg): Update.
809 (arm_init_extra_frame_info): Update.
810 (arm_frame_saved_pc): Update.
812 2002-09-17 Tom Tromey <tromey@redhat.com>
814 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
817 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
819 * MAINTAINERS: Remove "non multi-arched" text from h8300.
820 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
822 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
825 2002-09-16 Joel Brobecker <brobecker@gnat.com>
827 * osfsolib.c: Remove file, replaced by solib-osf.c.
828 * Makefile.in: Remove compilation rules for osfsolib.c.
830 2002-09-16 David Carlton <carlton@math.stanford.edu>
832 * cp-valprint.c (cp_print_class_method): Correct args to
833 check_stub_method_group.
835 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
837 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
838 `set architecture'. Unify naming convention of functions.
839 (h8300_skip_prologue): Improve prologue analysis.
840 (h8300_push_arguments): Rewritten to more closely match GCC's
841 bizarre argument-passing behavior, along with the comment describing
843 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
844 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
845 sim, remote-e7000.c, remote-hms.c and remote.c
847 2002-09-15 Mark Kettenis <kettenis@gnu.org>
849 * i386-tdep.c (gdb_print_insn_i386): Removed.
850 (i386_print_insn): New function.
851 (i386_gdbarch_init): Set print_insn to i386_print_insns.
852 (_initialize_i386_tdep): Don't initialize tm_print_insn and
855 2002-09-14 Mark Kettenis <kettenis@gnu.org>
857 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
860 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
862 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
863 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
864 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
866 2002-09-13 Christopher Faylor <cgf@redhat.com>
868 * win32-nat.c (child_create_inferior): Honor 'tty' command.
870 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
872 * gdbtypes.c (check_stub_method): Make static.
873 (check_stub_method_group): New function.
874 * gdbtypes.h: Update prototypes.
875 * cp-support.c: New file.
876 * cp-support.h: New file.
878 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
879 (update_method_name_from_physname): New function.
880 (read_member_functions): Correct method names for operators
881 and v3 constructors/destructors. Separate v2 constructors and
883 * Makefile.in (stabsread.o): Update dependencies.
884 (SFILES): Add cp-support.c.
885 (COMMON_OBS): Add cp-support.o.
886 (cp_support_h, cp-support.o): Add.
888 * cp-valprint.c (cp_print_class_method): Call
889 check_stub_method_group instead of check_stub_method. Remove
891 * p-valprint.c (pascal_object_print_class_method): Likewise.
892 * valops.c (search_struct_method): Likewise.
893 (find_method_list, value_struct_elt_for_reference): Likewise.
895 2002-09-13 Andrew Cagney <cagney@redhat.com>
897 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
898 * gdbarch.h, gdbarch.c: Regenerate.
900 2002-09-13 Andrew Cagney <ac131313@redhat.com>
902 * frame.c (find_saved_register): Delete function.
903 * frame.h (find_saved_register): Delete declaration.
906 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
908 * mips-tdep.c (read_next_frame_reg): Re-hack using
909 frame_register_unwind.
911 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
913 * mips-tdep.c (mips_get_saved_register): Re-hack using
914 frame_register_unwind.
916 2002-09-12 Joel Brobecker <brobecker@gnat.com>
918 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
919 vector. Will be useful for Interix.
920 * gdbarch.h, gdbarch.c: Regenerate.
922 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
923 name of the malloc function by NAME_OF_MALLOC.
925 2002-09-12 Joel Brobecker <brobecker@gnat.com>
927 * value.h (find_function_in_inferior): Add const keyword to
928 one of the parameters. Allows us to invoke this function with
930 * valops.c (find_function_in_inferior): Likewise.
932 2002-09-12 Joel Brobecker <brobecker@gnat.com>
934 * exec.c (xfer_memory): Fix compilation warning with old versions
936 * tracepoint.c (trace_find_tracepoint_command): Likewise.
938 2002-09-12 David Carlton <carlton@math.stanford.edu>
940 * symtab.h: Run through gdb_indent.h.
941 Add 2002 to Copyright year list.
943 2002-09-12 Alan Modra <amodra@bigpond.net.au>
945 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
947 * MAINTAINERS: Add myself to write after approval list.
949 2002-09-11 J. Brobecker <brobecker@gnat.com>
951 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
953 2002-09-11 J. Brobecker <brobecker@gnat.com>
955 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
958 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
960 * procfs.c (do_detach): Clear current signal, not just fault.
961 Corrects problem with breakpoint trap signal leaking to detached
964 2002-09-10 Michael Snyder <msnyder@redhat.com>
966 * buildsym.c (finish_block): Protect against null pointer.
968 2002-09-10 Andrew Cagney <cagney@redhat.com>
970 * infcmd.c (default_print_registers_info): Send all output to
971 ``file'' instead of ``gdb_stdout''.
973 2002-09-10 Michael Snyder <msnyder@redhat.com>
975 * mips-tdep.c (mips_extract_struct_value_address): Make val a
976 LONGEST, and use signed register read (addresses are sign-
979 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
981 * event-loop.c (gdb_do_one_event): Make public.
982 * event-loop.h (gdb_do_one_event): Declare.
984 2002-09-10 Jeff Law <law@redhat.com>
986 * infttrace.c (child_resume): Simplify and rework to avoid
989 2002-09-09 Fred Fish <fnf@intrinsity.com>
991 * printcmd.c (print_scalar_formatted): "len" is the number of
992 target bytes, NOT the number of target bits.
994 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
996 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
997 * top.c (init_main): Set rl_terminal_name.
999 2002-09-08 Aidan Skinner <aidan@velvet.net>
1001 * ada-lang.c (ada_array_bound, ada_type_match,
1002 _initialize_ada_language): Fix K&R definitions.
1003 * ada-tasks.c (get_current_task): Fix K&R definitions.
1004 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1006 2002-09-07 Christopher Faylor <cgf@redhat.com>
1008 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1011 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1013 * i386-tdep.c (i386_register_virtual_type,
1014 i386_register_convertible, i386_register_convert_to_virtual,
1015 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1016 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1017 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1018 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1019 Don't set push_arguments twice.
1021 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1022 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1023 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1024 sigtramp_end to NULL.
1025 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1027 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1029 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1032 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1033 * gdbarch.h, gdbarch.c: Re-generate.
1034 * blockframe.c (find_pc_sect_partial_function): Convert to use
1035 SIGTRAMP_START_P predicate.
1037 2002-09-05 Michael Snyder <msnyder@redhat.com>
1039 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1040 generic_dummy_frame method and old method. Also distinguish
1041 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1042 (arm_extract_return_value): Use new regcache method.
1044 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1045 adjustment that doesn't conform to the ABI.
1046 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1047 saved regcache, not from current regcache.
1049 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1051 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1054 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1056 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1057 if arm_apcs_32 is false.
1059 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1061 GDB 5.3 branch created.
1063 2002-09-03 Theodore A. Roth <troth@verinet.com>
1065 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1066 generic_unwind_get_saved_register.
1068 2002-09-03 David Carlton <carlton@math.stanford.edu>
1070 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1071 argument (PR gdb/653). Update call to smash_to_method_type.
1072 (read_structure_scope): Update call to dwarf2_add_member_fn.
1074 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1076 * x86-64-linux-tdep.c: Include gdb_string.h
1077 * x86-64-linux-nat.c: Ditto.
1079 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1081 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1082 when YYDEBUG is set to 1.
1083 * c-exp.y: Likewise.
1084 * f-exp.y: Likewise.
1085 * jv-exp.y: Likewise.
1086 * m2-exp.y: Likewise.
1087 * p-exp.y: Likewise.
1089 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1091 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1093 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1094 solib_svr4_fetch_link_map_offsets to
1095 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1096 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1097 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1098 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1099 solib-svr4.o, and solib-legacy.o.
1100 * config/i386/tm-nbsd.h: Include solib.h.
1102 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1104 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1105 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1106 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1107 comment noting that this needs its own target configuration.
1108 * config/i386/nbsd.mt: New file.
1109 * config/i386/nbsdaout.mt: Remove.
1110 * config/i386/nbsdelf.mt: Ditto.
1111 * config/i386/tm-nbsdaout.h: Ditto.
1113 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1115 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1116 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1117 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1119 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1120 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1121 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1123 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1125 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1126 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1127 * i386-tdep.h (i386bsd_init_abi): New prototype.
1128 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1129 function declaration.
1130 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1131 for NetBSD-a.out or NetBSD-ELF.
1132 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1133 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1134 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1135 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1137 (i386nbsd_pc_in_sigtramp): New function.
1138 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1139 i386nbsd_pc_in_sigtramp.
1140 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1141 and i386nbsdelf_init_abi OS ABI handlers.
1142 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1143 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1145 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1147 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1148 registers if the target really has them.
1150 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1152 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1155 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1157 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1159 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1160 (alphanbsd_skip_sigtramp_frame): New functions.
1161 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1162 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1163 to alphanbsd_sigcontext_addr.
1165 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1167 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1169 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1170 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1171 nbsd_pc_in_sigtramp.
1172 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1173 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1174 * nbsd-tdep.c: Include gdb_string.h.
1175 (nbsd_pc_in_sigtramp): New function.
1176 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1177 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1178 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1179 ppcnbsd_pc_in_sigtramp.
1180 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1181 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1182 shnbsd_pc_in_sigtramp.
1183 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1184 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1185 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1187 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1189 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1190 watchpoints to NULL.
1191 (insert_breakpoints): set val field of watchpoints if NULL.
1194 2002-08-29 Jim Blandy <jimb@redhat.com>
1196 * symtab.c (lookup_symbol_aux): In the cases where we find a
1197 minimal symbol of an appropriate name and use its address to
1198 select a symtab to read and search, use `name' (as passed to us)
1199 as the demangled name when searching the symtab's global and
1200 static blocks, not the minsym's name.
1202 2002-08-29 Keith Seitz <keiths@redhat.com>
1204 * stack.c (print_frame_info_base): Always set current_source_symtab
1205 and current_source_line.
1207 2002-08-29 Donn Terry <donnte@microsoft.com>
1209 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1211 2002-08-28 Keith Seitz <keiths@redhat.com>
1213 * stack.c (select_frame): Add FIXME concerning selected-frame
1215 (select_frame_command): Send selected-frame-level-changed
1216 event notification, but only if the level actually changed.
1217 (up_silently_base): Add selected-frame-level-changed event
1219 (down_silently_base): Likewise.
1221 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1223 * Makefile.in: Update dependencies for all gdb/*.c files.
1225 2002-08-27 Tom Tromey <tromey@redhat.com>
1227 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1228 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1229 Update dependencies.
1230 * i387-tdep.c: Include gdb_string.h.
1231 * osabi.c: Likewise.
1232 * i386-linux-nat.c: Likewise.
1233 * lin-lwp.c: Likewise.
1234 * ax-gdb.c: Likewise.
1235 * signals/signals.c: Likewise.
1236 * jv-valprint.c: Likewise.
1237 * p-lang.c: Likewise.
1238 * c-valprint.c: Likewise.
1239 * cp-abi.c: Likewise.
1241 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1243 * cli/cli-script.h (copy_command_lines): Export.
1244 * breakpoint.c: Include cli/cli-script.h.
1245 * Makefile.in (breakpoint.o): Update dependencies.
1247 2002-08-26 Michael Snyder <msnyder@redhat.com>
1249 * breakpoint.c (insert_breakpoints): Protect all references
1250 to 'process_warning'. Shorten long lines.
1252 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1254 * cli/cli-script.c (copy_command_lines): New function.
1255 * defs.h (copy_command_lines): Export.
1256 * testsuite/gdb.base/commands.exp: New tests for commands
1257 attached to a temporary breakpoint, and for commands that
1258 delete the breakpoint they are attached to.
1260 2002-08-26 Michael Snyder <msnyder@redhat.com>
1262 * breakpoint.c (bpstat_stop_status): Instead of copying the
1263 pointer to the breakpoint commands struct, make a new copy
1264 of the struct and point to that.
1265 (bpstat_clear): Free the commands struct.
1266 (bpstat_clear_actions): Free the commands struct.
1267 (bpstat_do_actions): Free the command actions. Also execute
1268 the local cleanups, instead of deleting them.
1269 (delete_breakpoint): Leave the commands field of the bpstat
1270 chain alone -- it will be freed later.
1272 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1274 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1275 deleted in 2002-08-20 commit. This function is still used by
1278 2002-08-26 Keith Seitz <keiths@redhat.com>
1280 * gdb-events.sh: Add selected-frame-level-changed event.
1281 * gdb-events.c: Regenerated.
1282 * gdb-events.h: Regenerated.
1284 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1287 * inflow.c (terminal_save_ours): New function to save terminal
1289 * inferior.h (terminal_save_ours): Declare.
1290 * target.c (debug_to_terminal_save_ours): New function.
1291 (cleanup_target): Defaults to_terminal_save_ours.
1292 (update_current_target): Inherit to_terminal_save_ours.
1293 (setup_target_debug): Set to_terminal_save_ours.
1294 * target.h (target_terminal_save_ours): New to save terminal settings.
1295 (target_ops): New member to_terminal_save_ours.
1296 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1297 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1298 * inftarg.c (init_child_ops): Likewise.
1299 * m3-nat.c (init_m3_ops): Likewise.
1300 * procfs.c (init_procfs_ops): Likewise.
1301 * wince.c (init_child_ops): Likewise.
1302 * win32-nat.c (init_child_ops): Likewise.
1303 * sol-thread.c (init_sol_thread_ops): Likewise.
1305 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1307 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1308 use regcache_* functions.
1309 (i386_gdbarch_init): Set store_return_value instead of
1310 deprecated_store_return_value.
1312 * regcache.c (regcache_raw_write_signed,
1313 regcache_raw_write_unsigned): New functions.
1314 * regcache.h (regcache_raw_write_signed,
1315 regcache_raw_write_unsigned): New prototypes.
1317 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1319 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1320 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1321 source file dependencies. Cleanup corresponding generator rules.
1323 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1325 * regcache.h (register_offset_hack): Declare.
1326 (regcache_cooked_read_using_offset_hack): Declare.
1327 (regcache_cooked_write_using_offset_hack): Declare.
1329 * regcache.c (register_offset_hack): New function.
1330 (regcache_cooked_read_using_offset_hack): New function.
1331 (regcache_cooked_write_using_offset_hack): New function.
1332 (regcache_dump): Check that the registers, according to their
1333 offset, are packed hard against each other.
1334 (cooked_xfer_using_offset_hack): New function.
1336 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1338 * regcache.c (struct regcache_descr): Add field register_type.
1339 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1341 (init_regcache_descr): Initialize register_type. Pass the descr
1342 to init_legacy_regcache_descr. Use register_type instead of
1343 REGISTER_VIRTUAL_TYPE.
1344 (register_type): New function.
1345 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1346 * regcache.h (register_type): Declare.
1348 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1350 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1351 instead of deprecated_store_return_value. Fix fallout from
1352 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1354 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1356 * regcache.c (max_register_size): New function.
1357 (init_legacy_regcache_descr): Ensure that max_register_size is
1358 large enough for REGISTER_VIRTUAL_SIZE.
1359 * regcache.h (max_register_size): Declare.
1361 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1363 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1365 (e500_extract_return_value): Change type of valbuf pointer to
1368 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1370 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1373 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1374 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1375 long long) to prevent compiler warning on 64-bit systems.
1377 2002-08-23 Andrew Cagney <cagney@redhat.com>
1379 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1380 (DEPRECATED_STORE_RETURN_VALUE): New method.
1381 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1382 * gdbarch.h, gdbarch.c: Re-generate.
1384 * values.c (set_return_value): Pass current_regcache to
1386 * arch-utils.h (legacy_store_return_value): Declare.
1387 * arch-utils.c (legacy_store_return_value): New function.
1388 (legacy_extract_return_value): Update parameters.
1390 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1392 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1393 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1394 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1395 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1396 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1397 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1398 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1399 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1400 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1401 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1404 * i386-tdep.c (i386_extract_return_value): Update.
1405 * arch-utils.c (legacy_extract_return_value): Update.
1406 * frv-tdep.c (frv_gdbarch_init): Update.
1407 * cris-tdep.c (cris_gdbarch_init): Update.
1408 * d10v-tdep.c (d10v_gdbarch_init): Update.
1409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1410 * m68k-tdep.c (m68k_gdbarch_init): Update.
1411 * mcore-tdep.c (mcore_gdbarch_init): Update.
1412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1413 * s390-tdep.c (s390_gdbarch_init): Update.
1414 * sparc-tdep.c (sparc_gdbarch_init): Update.
1415 * sh-tdep.c (sh_gdbarch_init): Update.
1416 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1417 * v850-tdep.c (v850_gdbarch_init): Update.
1418 * avr-tdep.c (avr_gdbarch_init): Update.
1419 * ia64-tdep.c (ia64_gdbarch_init): Update.
1420 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1421 * vax-tdep.c (vax_gdbarch_init): Update.
1422 * alpha-tdep.c (alpha_gdbarch_init): Update.
1423 * arm-tdep.c (arm_gdbarch_init): Update.
1424 * mips-tdep.c (mips_gdbarch_init): Update.
1425 * i386-tdep.c (i386_gdbarch_init): Update.
1427 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1429 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1430 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1432 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1434 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1437 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1439 * infrun.c (handle_inferior_event): Move a comment outside of a
1440 function call, in order to avoid indent reformatting this part
1441 of the code in an unreadable way.
1443 2002-08-23 Grace Sainsbury <graces@redhat.com>
1445 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1446 when breakpoints fail. Move general breakpoint error messages to
1448 * breakpoint.c (insert_breakpoints): Change warnings when
1449 breakpoints are nto inserted to specify the type. Remove call to
1450 memory_error when hardware breakpoints can't be inserted. Remove
1451 multiple calls to warning so all messages are sent to the user at
1453 (delete_breakpoints): Make insert error messsages more explicit.
1455 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1457 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1458 gdbserver/ChangeLog.
1460 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1462 * i386-tdep.c: Include "objfiles.h".
1463 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1464 skip_trampoline_code.
1465 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1466 (CPLUS_MARKER): Define to '.'.
1468 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1470 (linux_corefile_thread_callback): Increase args->num_notes.
1471 (linux_make_note_section): Initialize thread_args.num_notes, and
1472 use it to determine whether notes for any threads were created.
1474 2002-08-23 Donn Terry <donnte@microsoft.com>
1476 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1477 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1479 (write_with_trace): Conditionalize out the switch branch handling
1480 PCSHOLD if the corresponding macro is not defined. Likewise for
1481 PRSABORT and PRSTOP.
1482 This change will be needed by the Interix port.
1484 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1486 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1487 write_register wherever possible instead of manipulating the
1488 register bytes directly.
1489 Assign VALUE_CONTENTS to a variable and use that.
1490 The GPR numbers are now dependent on the architecture.
1492 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1494 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1496 (skip_prologue): Add support for BookE/e500 instructions.
1497 (e500_extract_return_value): New function.
1498 (frame_get_saved_regs): Add support for saving ev registers and
1500 (e500_store_return_value): New function.
1501 (rs6000_gdbarch_init): Move up default intializations of
1502 deprecated_extract_return_value and store_return_value. Overwrite
1503 init of store_return_value with e500 specific version.
1504 Set extract_return_value for e500.
1506 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1508 * blockframe.c (generic_call_dummy_register_unwind): Use
1509 regcache_cooked_read to catch cases in which the variable is
1510 stored in a pseudo register.
1512 2002-08-22 Andrew Cagney <cagney@redhat.com>
1514 * NEWS: Mention that the i960 has been made obsolete.
1515 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1517 (remote-nrom.o): Obsolete target.
1518 (remote-nindy.o, i960-tdep.o): Ditto.
1519 * remote-nrom.c: Make file obsolete.
1520 * remote-nindy.c, remote-vx960.c: Ditto.
1521 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1522 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1523 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1524 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1525 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1526 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1527 i960-*-vxworks* obsolete.
1528 * MAINTAINERS: Note that the i960 is obsolete.
1530 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1532 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1533 detach to allow reinitialization.
1535 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1537 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1540 2002-08-22 Jim Blandy <jimb@redhat.com>
1542 * coffread.c (coff_symfile_read): Don't try to read the line
1543 number table from disk if the image file doesn't have a symbol
1544 table; we'll never actually look at the info anyway, and Windows
1545 ships DLL's with bogus file offsets for the line number data.
1547 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1549 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1552 2002-08-21 Michael Snyder <msnyder@redhat.com>
1554 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1555 (MSYMBOL_SIZE): Replace macro with function.
1556 (DEFAULT_MIPS_TYPE): Delete unused macro.
1557 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1558 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1560 2002-08-21 Jim Blandy <jimb@redhat.com>
1562 * valops.c (value_cast): Simplify and correct logic for doing a
1563 static cast from a pointer to a base class to a pointer to a
1566 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1568 * infcmd.c (default_print_registers_info): Replace
1570 (registers_info): Use gdbarch_print_registers_info instead of
1572 * inferior.h (default_print_registers_info): Replace
1574 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1575 (DO_REGISTERS_INFO): Change to a predicate function.
1576 * gdbarch.h, gdbarch.c: Regenerate.
1578 2002-08-21 Keith Seitz <keiths@redhat.com>
1580 * gdb-events.sh: Add target-changed event.
1581 * gdb-events.c: Regenerated.
1582 * gdb-events.c: Regenerated.
1583 * valops.c (value_assign): Add target-changed event notification
1584 to inlval_register, lval_memory, and lval_reg_frame_relative.
1586 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1588 * NEWS: Add an entry regarding the improvement of the next/step
1589 operation on Alpha Tru64 multi-processor machines.
1591 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1593 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1595 * Makefile.in: Update all _h macro definitions.
1596 * Makefile.in (install-gdbtk): Move to install section.
1597 (rdi-share/libangsd.a): Move to end of file.
1599 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1601 * frame.c (frame_register_unwind): When a register, set addrp to
1602 the register's byte.
1604 2002-08-20 Michael Snyder <msnyder@redhat.com>
1606 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1607 used locally, so move them from the target machine header to here.
1608 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1609 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1611 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1613 2002-08-20 Andrew Cagney <cagney@redhat.com>
1615 * NEWS: Mention that the Apollo line was made obsolete.
1616 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1617 m68*-hp-hpux* obsolete.
1618 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1619 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1620 * buildsym.c (make_blockvector): Make static.
1621 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1622 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1623 (ALLDEPFILES): Remove dstread.c.
1624 (dstread.o): Obsolete make rule.
1625 * dstread.c: Makefile obsolete.
1627 * config/m68k/hp300hpux.mt: Ditto.
1628 * config/m68k/hp300hpux.mh: Ditto.
1629 * config/m68k/hp300bsd.mt: Ditto.
1630 * config/m68k/hp300bsd.mh: Ditto.
1631 * config/m68k/apollo68b.mt: Ditto.
1632 * config/m68k/apollo68v.mh: Ditto.
1633 * config/m68k/apollo68b.mh: Ditto.
1635 2002-08-20 Michael Snyder <msnyder@redhat.com>
1637 * mips-tdep.c (mips_in_return_stub): Make static.
1638 (mips_gdbarch_init): Set in_solib_return_trampoline.
1639 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1641 2002-08-20 Michael Snyder <msnyder@redhat.com>
1643 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1644 * gdbarch.c, gdbarch.h: Regenerate.
1645 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1647 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1649 2002-08-20 Michael Snyder <msnyder@redhat.com>
1651 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1652 (mips_gdbarch_init): Set skip_trampoline_code,
1653 in_solib_call_trampoline.
1654 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1655 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1657 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1659 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1661 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1662 vector type for ev registers.
1663 (e500_pseudo_register_read): New function.
1664 (e500_pseudo_register_write): New function.
1665 (e500_dwarf2_reg_to_regnum): New function.
1666 (PPC_UISA_NOFP_SPRS): New macro.
1667 (PPC_EV_REGS): New macro.
1668 (PPC_GPRS_PSEUDO_REGS): New macro.
1669 (registers_e500): New register set for e500.
1670 (variants): Add e500 variant.
1671 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1672 before setting architectural dependent variations. Initialize ev
1673 registers numbers. Add case for e500 architecture. Set the
1674 number of pseudo registers.
1676 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1678 * rs6000-tdep.c: Clean up comments.
1680 2002-08-20 Andrew Cagney <cagney@redhat.com>
1682 * h8300-tdep.c: Re-indent file.
1684 2002-08-20 Jim Blandy <jimb@redhat.com>
1686 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1689 2002-08-20 Keith Seitz <keiths@redhat.com>
1691 * breakpoints.c (watch_command_1): Use internal breakpoint
1692 when setting a watchpoint_scope breakpoint.
1694 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1696 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1697 (build_builtin_type_vec64i): Ditto.
1698 (build_builtin_type_vec128): Ditto.
1699 (build_builtin_type_vec128i): Ditto.
1701 2002-08-19 Michael Snyder <msnyder@redhat.com>
1703 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1704 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1705 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1706 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1707 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1708 CALL_DUMMY_ADDRESS): Delete.
1709 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1710 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1711 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1712 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1713 push_return_address.
1714 (mips_register_raw_size, mips_eabi_use_struct_convention,
1715 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1716 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1717 mips_init_extra_frame_info, mips_eabi_push_arguments,
1718 mips_n32n64_push_arguments, mips_push_return_address,
1719 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1720 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1722 2002-08-19 Michael Snyder <msnyder@redhat.com>
1724 * mips-tdep.c (mips_frame_num_args): New function.
1725 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1726 frame_saved_pc, frame_args_address, frame_locals_address,
1727 frame_num_args, and frame_args_skip.
1728 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1729 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1730 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1731 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1733 2002-08-20 Michael Snyder <msnyder@redhat.com>
1735 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1736 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1737 * mips-tdep.c (mips_store_struct_return): New function.
1738 (mips_extract_struct_value_address): New function.
1739 (mips_gdbarch_init): Set store_struct_return and
1740 extract_struct_value_address.
1742 2002-08-20 David Carlton <carlton@math.stanford.edu>
1744 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1745 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1746 (read_file_scope): Check that line_header is nonzero before
1747 decoding macro information.
1749 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1751 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1752 flag the general-purpose registers as floating-point on targets
1753 that don't support the floating-point registers.
1755 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1757 * rs6000-tdep.c (altivec_register_p): Delete.
1758 (rs6000_do_altivec_registers): Delete.
1759 (rs6000_altivec_registers_info): Delete.
1760 (rs6000_do_registers_info): Delete.
1761 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1762 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1764 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1766 * infcmd.c (do_registers_info): Print vector registers in hex
1768 (print_vector_info): Check that printing registers
1770 (print_float_info): Ditto.
1772 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1774 * mips-tdep.c (mips_gdbarch_init): Update.
1775 (mips_o32_extract_return_value): Rewrite.
1776 (mips_o32_store_return_value): Rewrite.
1777 (mips_o32_xfer_return_value): New function.
1778 (mips_xfer_register): Tweak debug print message. Allow for
1779 buf_offset when dumping the value transfered.
1781 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1783 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1784 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1785 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1786 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1787 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1789 2002-08-14 Michael Snyder <msnyder@redhat.com>
1791 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1793 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1795 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1797 (P): New macro to define a register as a pseudo register.
1798 (R, R4, R8, R16, FR32, R64, R0): Updated.
1799 (struct variant): Add new fields for number of pseudo registers
1800 and number of total registers.
1801 (tot_num_registers): New macro replacing....
1802 (num_registers): ...deleted macro.
1803 (num_registers): New function.
1804 (num_pseudo_registers): New function.
1805 (variants): Update all variants to intialize new fields correctly.
1806 Postpone initialization of number of pseudo regs and real regs.
1807 (init_variants): New function.
1808 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1811 2002-08-19 David Carlton <carlton@math.stanford.edu>
1813 * valops.c (search_struct_field): Change error message to treat
1814 return value of 0 from value_static_field as meaning that field is
1816 (value_struct_elt_for_reference): Ditto.
1817 * values.c (value_static_field): Treat an unresolved location the
1818 same as a nonexistent symbol. Fix PR gdb/635.
1819 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1820 enclosed. Fix PR gdb/574.
1821 * MAINTAINERS: Add self to Write After Approval list.
1823 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1825 * mips-tdep.c (mips_xfer_register): New function.
1826 (mips_n32n64_extract_return_value): Rewrite.
1827 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1828 instead of deprecated_extract_return_value.
1830 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1832 * rs6000-tdep.c (TDEP): Delete macro.
1833 (branch_dest): Replace use of TDEP macro with its body.
1834 (rs6000_pop_frame): Ditto.
1835 (rs6000_push_arguments): Ditto.
1836 (rs6000_skip_trampoline_code): Ditto.
1837 (rs6000_frame_saved_pc): Ditto.
1838 (rs6000_frame_chain): Ditto.
1839 (rs6000_register_name): Ditto.
1840 (rs6000_register_byte): Ditto.
1841 (rs6000_register_raw_size): Ditto.
1842 (rs6000_register_virtual_type): Ditto.
1843 (rs6000_register_convertible): Ditto.
1844 (rs6000_convert_from_func_ptr_addr): Ditto.
1846 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1848 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1850 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1851 MIPS_LINUX_JB_ELEMENT_SIZE.
1852 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1853 for MAX_REGISTER_RAW_SIZE arrays.
1854 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1855 MIPS_LINUX_JB_ELEMENT_SIZE.
1857 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1859 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1861 2002-08-19 Aidan Skinner <aidan@velvet.net>
1863 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1864 ada-valprint.c ada-tasks.c.
1865 (YYFILES): Add ada-exp.y.
1866 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1867 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1868 (ada-exp.tab.o): New target.
1870 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1872 * regcache.c (regcache_xfer_part): New function.
1873 (regcache_raw_read_part): New function.
1874 (regcache_raw_write_part): New function.
1875 (regcache_cooked_read_part): New function.
1876 (regcache_cooked_write_part): New function.
1877 * regcache.h (regcache_raw_read_part): Declare.
1878 (regcache_raw_write_part): Declare.
1879 (regcache_cooked_read_part): Declare.
1880 (regcache_cooked_write_part): Declare.
1882 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1884 * remote.c (remote_open_1): Add async_p.
1885 (remote_async_open_1): Delete.
1886 (open_remote_target): Delete.
1887 (remote_open, extended_remote_open): Update calls to remote_open_1.
1888 (remote_async_open, extended_remote_async_open): Call
1889 remote_open_1 instead of remote_async_open_1.
1891 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1893 * blockframe.c: Fix a few coding standard violations.
1895 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1897 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1899 * config/i386/tm-i386sco5.h: ... here. File removed.
1900 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1902 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1903 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1904 (TM_FILE): Set to tm-i386.h.
1905 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1906 * config/i386/tm-i386v.h: Remove file.
1907 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1908 instead of "i386/tm-i386v.h".
1909 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1910 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1912 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1913 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1916 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1918 * config/i386/nm-i386v.h: Add protection against
1920 (i386_register_u_addr): Remove prototype.
1921 (register_u_addr): New prototype.
1922 (REGISTER_U_ADDR): Redefine accordingly.
1923 * i386v-nat.c: Improve several comments.
1924 (i386_register_u_addr): Change signature and rename to
1925 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1928 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1930 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1931 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1932 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1933 deprecated_extract_return_value.
1934 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1935 rename mips_o32o64_push_arguments.
1936 (mips_gdbarch_init): Update.
1937 (mips_extract_return_value): Delete.
1938 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1939 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1940 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1941 (mips_n32n64_extract_return_value): Clone
1942 mips_extract_return_value.
1943 (mips_store_return_value): Delete.
1944 (mips_o32_store_return_value): Clone mips_store_return_value.
1945 (mips_o64_store_return_value): Clone mips_store_return_value.
1946 (mips_eabi_store_return_value): Clone mips_store_return_value.
1947 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1949 2002-08-18 Aidan Skinner <aidan@velvet.net>
1951 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1952 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1954 2002-08-18 Aidan Skinner <aidan@velvet.net>
1956 * ada-lang.c: Run through gdb_indent.sh.
1957 * ada-lang.h: Run through gdb_indent.sh.
1958 * ada-tasks.c: Run through gdb_indent.sh.
1959 * ada-typeprint.c: Run through gdb_indent.sh.
1960 * ada-valprint.c: Run through gdb_indent.sh.
1962 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1964 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1967 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1969 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1971 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1972 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1974 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1975 write_register_gen instead of write_register_bytes.
1977 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1978 i[3456]-*-osf1mk* configurations have been made obsolete.
1979 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1980 i[3456]86-*-osf1mk* hosts obsolete.
1981 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1983 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1984 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1985 config/i386/i386m3.mt, config/i386/nm-m3.h,
1986 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1987 config/i386/i386mk.mh, config/i386/i386mk.mt,
1988 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1990 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1991 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1992 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1994 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1996 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1997 (hppa_value_returned_from_stack): Declare.
1998 (hppa_extract_return_value): Declare.
1999 * config/pa/hppa.mt: New file.
2000 * configure.tgt: Recognize hppa*-*-*.
2001 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2003 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2005 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2008 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2010 * top.c (gdb_rl_operate_and_get_next): Make sure
2011 operate-and-get-next functions correctly even when the history
2012 list is completely filled.
2014 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2016 * MAINTAINERS (Target Instruction Set Architectures): Rename
2017 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2018 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2019 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2020 already listed under Host/Native.
2022 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2023 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2026 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2028 * config/ia64/ia64.mt: New file.
2029 * config/alpha/alpha.mt: New file.
2030 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2031 ia64-linux-gnu. Mention that ia64-elf is broken.
2032 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2034 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2036 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2037 generic_func_frame_valid instead of func_frame_valid.
2039 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2041 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2042 procfs appears to be broken when debugging on multi-processor
2043 machines. So enable software single stepping in order to avoid
2044 using the procfs interface to do next/step operations, using
2045 internal breakpoints instead.
2047 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2048 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2049 make this pc address equal to the value it would have if the
2050 system stepping capability was used. Also set a new flag used
2051 to ensure that we don't readjust the PC one more time later.
2053 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2054 address by DECR_PC_AFTER_BREAK when software single step is
2055 in use for this architecture, as this has already been taken
2056 care of in handle_inferior_event().
2058 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2060 * infrun.c (handle_inferior_event): Minor reformatting, to make
2061 a rather long condition expression easier to read.
2063 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2065 * Makefile.in (gdbtk.o): Move to end of file.
2066 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2067 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2068 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2069 (gdbtk-wrapper.o, gdbres.o): Ditto.
2071 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2073 * Makefile.in (copying.o): Separate out compile rule.
2074 (hpux-thread.o, procfs.o, signals.o): Ditto.
2075 (v850ice.o, z8k-tdep.o): Ditto.
2076 (tui-file.o): Move to TUI section.
2077 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2078 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2080 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2082 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2083 skip_trampoline_code, for better namespace-proofing.
2085 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2087 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2089 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2091 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2093 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2094 signal, check whether we hit a breakpoint before checking for a
2095 single step breakpoint. Otherwise, GDB fails to notice that a
2096 breakpoint has been hit when stepping onto a breakpoint.
2098 2002-08-16 Keith Seitz <keiths@redhat.com>
2100 * gdb-events.sh (clear_gdb_event_hooks): New function.
2101 * gdb-events.c: Regenerate.
2102 * gdb-events.h: Regenerate.
2104 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2106 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2107 not_a_sw_breakpoint.
2108 * breakpoint.h (bpstat_stop_status): Add parameter names.
2110 2002-08-16 Grace Sainsbury <graces@redhat.com>
2112 * remote.c (remote_insert_hw_breakpoint)
2113 (remote_remove_hw_breakpoint): Fix calculation of length field
2116 2002-08-15 Michael Snyder <msnyder@redhat.com>
2118 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2119 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2120 (supply_fpregset): Ditto.
2122 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2123 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2124 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2125 (TARGET_READ_SP): Delete.
2126 (DO_REGISTERS_INFO): Delete.
2127 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2129 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2130 from macros to functions.
2132 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2133 (mips_register_convertible, mips_register_convert_to_virtual,
2134 mips_register_convert_to_raw): Make static.
2135 (mips_read_sp): New function.
2136 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2137 (mips_do_registers_info): Make static.
2138 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2139 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2140 (mips_register_convert_from_type, mips_register_convert_to_type):
2142 (mips_gdbarch_init): Set up function_start_offset,
2143 register_virtual_size, pc_in_sigtramp.
2145 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2147 * infcmd.c (vector_info): New function.
2148 (_initialize_infcmd): Add command "info vector".
2149 (print_vector_info): New function.
2151 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2152 * gdbarch.h, gdbarch.c: Regenerate.
2154 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2156 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2157 ``print_all''. Only print vector registers when ``print_all''.
2159 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2161 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2162 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2164 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2165 Add `args' parameter.
2166 * gdbarch.h, gdbarch.c: Regenerate.
2168 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2170 * infcmd.c (float_info): Call print_float_info.
2171 (print_float_info): New function. By default, print the
2172 floating-point registers.
2174 * arch-utils.h (default_print_float_info): Delete declaration.
2175 * arch-utils.c (default_print_float_info): Delete function.
2177 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2179 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2182 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2185 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2186 * configure.host: Make i[3456]86-*-aix host obsolete.
2187 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2188 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2189 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2190 config/i386/xm-i386aix.h: Make files obsolete.
2191 * i386aix-nat.c: Make file obsolete.
2192 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2193 (i386aix-nat.o): Make target obsolete.
2195 * config/i386/nm-gnu.h: Removed.
2196 * config/i386/nm-i386gnu.h: New file.
2197 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2198 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2200 * config/i386/tm-i386gnu.h: ... here. Removed.
2201 * config/i386/xm-i386gnu.h: Removed.
2202 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2203 (NAT_FILE): Set to nm-i386gnu.h.
2204 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2205 * i386-tdep.c: New file.
2206 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2207 (i386gnu-tdep.o): Specify dependencies.
2209 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2211 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2212 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2213 Adjust a few comments to reflect reality a bit closer.
2214 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2215 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2216 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2217 target_insert_watchpoint, target_remove_watchpoint):
2219 * config/i386/nm-i386sco5.h: ... here.
2220 (kernel_u_size): Add prototype. Improve a few comments and add
2221 protection against multiple inclusion.
2223 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2226 * uw-thread.c (SP_ARG0): Define if not already defined.
2227 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2229 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2231 * config/i386/tm-i386.h: Don't include "regcache.h".
2233 * i387-tdep.h (i387_print_float_info): New prototype.
2234 * i387-tdep.c (print_i387_value, print_i387_ext,
2235 print_i387_status_word, print_i387_control_word): Add `struct
2236 ui_file *' argument and use it for output.
2237 (i387_print_float_info): Renamed from i387_float_info. Add
2238 `struct gdbarch *' and `struct ui_file *' arguments and use the
2240 * i386-tdep.c: Include "i387-tdep.h".
2241 (i386_gdbarch_init): Set print_float_info.
2242 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2243 (FLOAT_INFO): Remove define.
2245 2002-08-13 Michael Snyder <msnyder@redhat.com>
2247 * mips-tdep.c (mips_push_arguments): Rename to
2248 mips_eabi_push_arguments, and tune for EABI.
2249 (MIPS_REGS_HAVE_HOME_P): Delete.
2250 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2251 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2252 Delete references to mips_regs_have_home_p.
2254 2002-08-14 Keith Seitz <keiths@redhat.com>
2256 * Makefile.in (install-gdbtk): Create insight plugin directory.
2257 Install plugins.tcl file.
2259 2002-08-14 Keith Seitz <keiths@redhat.com>
2261 * configure.in: Move SUBDIRS to near top of the file so that
2262 --enable options may add things to it.
2263 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2264 * configure: Regenerate.
2266 2002-08-13 Michael Snyder <msnyder@redhat.com>
2268 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2269 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2270 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2272 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2274 * vax-tdep.c (vax_get_saved_register): Delete function.
2275 (vax_gdbarch_init): Update.
2276 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2277 (ns32k_gdbarch_init): Update.
2278 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2279 (alpha_gdbarch_init): Update.
2281 2002-08-13 Andrew Cagney <cagney@redhat.com>
2283 * regcache.c (init_regcache_descr): Overallocate the
2284 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2285 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2287 (set_register_cached): Add range checking assertions. Use
2290 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2292 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2293 numbers for MMX registers.
2295 2002-08-13 Andrew Cagney <cagney@redhat.com>
2297 * i386-tdep.c (i386_gdbarch_init): Use
2298 generic_unwind_get_saved_register.
2300 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2302 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2303 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2305 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2306 Delete. Add comment regarding this now-deleted target method.
2308 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2310 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2311 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2312 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2313 real PC and the page number (if it's within the memory bank window).
2314 (m68hc11_pseudo_register_write): Likewise when saving.
2315 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2316 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2317 (m68hc11_register_raw_size): And use 32-bit for it.
2318 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2319 16K memory bank is used by the prog; also use the virtual pc.
2321 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2323 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2324 (m68hc11_gdbarch_init): Install it in gdbarch.
2325 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2326 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2327 (MSYMBOL_SIZE): New for documentation.
2328 (insn_return_kind): Enum to specify how a function returns.
2329 (frame_extra_info): Cleanup and record the return mode.
2330 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2331 register in address computation.
2332 (m68hc11_get_return_insn): New to obtain the return instruction used
2334 (m68hc11_frame_init_saved_regs): Take into account the return
2335 instruction used by the function for far and interrupt functions.
2336 (m68hc11_init_extra_frame_info): Take into account page register.
2337 (m68hc11_frame_args_address): Adjust according to the return mode.
2338 (show_regs): Print page register only when it's used.
2340 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2342 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2343 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2344 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2346 (m68hc11_register_raw_size): Likewise.
2348 2002-08-13 Andrew Cagney <cagney@redhat.com>
2350 * i386-tdep.c (i386_register_name): Handle mmx registers.
2351 (mmx_regnum_p): New function.
2352 (i386_mmx_names): New array.
2353 (mmx_num_regs): New variable.
2354 (i386_pseudo_register_read): New function.
2355 (i386_pseudo_register_write): New function.
2356 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2358 * regcache.c (regcache_raw_read_unsigned): New function.
2359 (regcache_raw_read_signed): New function.
2360 * regcache.h (regcache_raw_read_unsigned): Declare.
2361 (regcache_raw_read_signed): Declare.
2363 2002-08-13 Andrew Cagney <cagney@redhat.com>
2365 * regcache.c (regcache_raw_read_as_address): Delete function.
2366 (regcache_cooked_read_signed): New function.
2367 (regcache_cooked_read_unsigned): New function.
2368 * regcache.h (regcache_cooked_read_signed): Declare.
2369 (regcache_cooked_read_unsigned): Declare.
2370 (regcache_raw_read_as_address): Delete declaration.
2372 * blockframe.c (generic_read_register_dummy): Use
2373 regcache_cooked_read_unsigned.
2374 * i386-tdep.c (i386_extract_struct_value_address): Use
2375 regcache_cooked_read_unsigned.
2377 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2380 double sizes according to ELF ABI flags.
2381 (gdbarch_tdep): Record elf_flags.
2383 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2385 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2386 (m6812_prolog): They can appear in 68HC12 function prologue.
2387 (m68hc11_frame_chain): Cleanup.
2389 2002-08-12 Andrew Cagney <cagney@redhat.com>
2391 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2393 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2394 (i386_linux_register_raw_size): Delete function.
2395 (i386_linux_init_abi): Update.
2396 * i386-tdep.c (i386_register_raw_size): Delete function.
2397 (i386_register_byte): Delete function.
2398 (i386_gdbarch_init): Update.
2399 (i386_register_size): Delete array.
2400 (i386_register_offset): Delete array.
2402 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2403 (REGISTER_RAW_SIZE): Delete macro.
2404 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2405 (REGISTER_BYTE): Delete macro.
2407 2002-08-11 Aidan Skinner <aidan@velvet.net>
2409 * ada-lang.c (ada_lookup_partial_symbol)
2410 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2411 prototype names so that grep ^func works properly.
2413 * ada-lang.c (ada_array_element_type)
2414 (ada_lookup_partial_symbol): Fix typos in parameter list.
2416 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2417 Fix prototype names so that grep ^func works properly.
2419 2002-08-10 Andrew Cagney <cagney@redhat.com>
2420 Elena Zannoni <ezannoni@redhat.com>
2421 Martin M. Hunt <hunt@redhat.com>
2423 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2424 (build_builtin_type_vec128i): Set the vector bit.
2425 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2426 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2427 (build_builtin_type_vec64): New function.
2428 (build_builtin_type_vec64i): New function.
2429 (build_gdbtypes): Initialize builtin_type_vec64 and
2430 builtin_type_vec64i.
2432 2002-08-09 Andrew Cagney <cagney@redhat.com>
2434 * regcache.c (regcache_dump): Compare the register offset
2436 * arch-utils.c (generic_register_byte): New function.
2437 * arch-utils.h (generic_register_byte): Declare.
2438 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2439 * gdbarch.h, gdbarch.c: Regenerate.
2441 2002-08-09 Andrew Cagney <cagney@redhat.com>
2443 * regcache.c: Include "gdbcmd.h"
2444 (_initialize_regcache): Add commands "maintenance print
2445 registers", "maintenance print raw-registers" and "maintenance
2446 print cooked-registers".
2447 (enum regcache_dump_what): Define.
2448 (dump_endian_bytes): New function.
2449 (regcache_dump): New function.
2450 (regcache_print): New function.
2451 (maintenance_print_registers): New function.
2452 (maintenance_print_raw_registers): New function.
2453 (maintenance_print_cooked_registers): New function.
2454 * Makefile.in (regcache.o): Update dependencies.
2456 2002-08-09 Michael Snyder <msnyder@redhat.com>
2458 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2459 (mips_push_arguments): Correct some comments. Use paddr_nz
2460 for printing addresses in debug output. Replace static
2461 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2462 (mips_n32n64_push_arguments): New function, cloned from
2463 mips_push_arguments and tuned for the n32/n64 ABI.
2464 (mips_push_register): Buffer needs dynamic allocation.
2465 (mips_print_register): Ditto.
2466 (do_gp_register_row): Ditto.
2467 (mips_store_return_value): Ditto.
2468 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2470 2002-08-09 Don Howard <dhoward@redhat.com>
2472 * memattr.c (mem_info_command): Print special case of upper bound
2473 as max CORE_ADDR + 1.
2475 2002-08-08 Michael Snyder <msnyder@redhat.com>
2477 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2478 returns structs by ref if they're too big to fit in two registers.
2480 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2482 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2484 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2485 mips_find_saved_regs().
2486 (mips_pop_frame): Likewise.
2488 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2490 * blockframe.c (frame_saved_regs_register_unwind): Revise
2491 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2494 2002-08-09 Grace Sainsbury <graces@redhat.com>
2496 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2497 T-packets; the 'a' is not taken as a register number.
2498 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2499 (remote_stopped_data_address): New functions; add to target
2501 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2502 prototypes to match other implementations of this
2503 function. replace integer argument with pointer -- the length
2504 field in the Z-packet is the length of what is pointed to or 1 if
2505 pointer is null. Add to target vector.
2506 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2510 * remote.c (remote_wait): Add support to extract optional
2511 watchpoint information from T-packet. Ignore unrecognized
2512 optional info in T-packet.
2513 (remote_async_wait): Ditto.
2515 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2517 * cli/cli-dump.c: Change fopen modes to use binary open modes
2518 as defined in include/fopen-bin.h throughout.
2520 2002-08-08 Michael Snyder <msnyder@redhat.com>
2522 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2524 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2526 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2527 assertion failure by returning early after a warning.
2529 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2531 * mips-tdep.c (mips_find_saved_regs): Make static.
2532 (mips_frame_init_saved_regs): New function.
2533 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2534 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2535 (mips_find_saved_regs): Delete declaration.
2537 2002-08-08 Grace Sainsbury <graces@redhat.com>
2539 * remote.c (remote_wait, remote_async_wait): Change
2540 thread_num from int to ULONGEST.
2541 (unpack_varlen_hex): Change result parameter from
2542 int * to ULONGEST *.
2544 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2546 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2547 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2549 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2551 2002-08-08 Andrew Cagney <cagney@redhat.com>
2553 * gcore.c (override_derive_stack_segment): Delete variable.
2554 (preempt_derive_stack_segment): Delete function.
2555 (derive_stack_segment): Delete function.
2556 (default_derive_stack_segment): Renamed to derive_stack_segment.
2557 (override_derive_heap_segment): Delete variable.
2558 (preempt_derive_heap_segment): Delete function.
2559 (derive_heap_segment): Delete function.
2560 (default_derive_heap_segment): Rename to derive_heap_segment.
2562 2002-08-06 Michael Snyder <msnyder@redhat.com>
2564 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2565 * mips-tdep.c (mips_EABI_use_struct_convention,
2566 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2567 New functions. (mips_use_struct_convention): Delete.
2568 (mips_gdbarch_init): set use_gdbarch_convention.
2570 2002-08-06 Michael Snyder <msnyder@redhat.com>
2572 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2573 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2574 mips_o32_reg_struct_has_addr): New functions.
2575 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2577 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2579 * regcache.c (pseudo_register): Delete function.
2580 (fetch_register): Delete function.
2581 (store_register): Delete function.
2582 (regcache_raw_read, legacy_read_register_gen): Use
2583 target_fetch_registers instead of fetch_register.
2584 (legacy_write_register_gen, regcache_raw_write): Use
2585 target_store_register instead of store_register.
2586 (write_register_bytes): Ditto.
2588 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2589 (STORE_PSEUDO_REGISTER): Delete.
2590 * gdbarch.h, gdbarch.c: Regenerate.
2592 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2594 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2595 write dump file binary.
2597 2002-08-05 Michael Snyder <msnyder@redhat.com>
2599 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2600 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2601 (mips_gdbarch_init): Set N32 target to be mips64.
2603 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2605 * frame.c (find_saved_register): Break out of loop once saved
2606 register address is found. Don't mention sparc in loop comment
2609 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2611 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2612 mips_default_saved_regsize to 8.
2614 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2616 * gcore.c: Do not include <sys/procfs.h>.
2617 * Makefile.in (gcore.o): Update dependencies.
2619 2002-08-06 Andrew Cagney <cagney@redhat.com>
2621 * configure.tgt: Make arc-*-* obsolete.
2622 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2623 * MAINTAINERS: Make arc-elf obsolete.
2624 * arc-tdep.c: Make file obsolete.
2625 * config/arc/arc.mt: Ditto.
2626 * config/arc/tm-arc.h: Ditto.
2628 2002-08-05 Theodore A. Roth <troth@verinet.com>
2630 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2632 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2634 * mcore-tdep.c (mcore_gdbarch_init): Use
2635 generic_unwind_get_saved_register instead of
2636 generic_get_saved_register.
2637 * v850-tdep.c (v850_gdbarch_init): Ditto.
2638 * frv-tdep.c (frv_gdbarch_init): Ditto.
2639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2640 * s390-tdep.c (s390_gdbarch_init): Ditto.
2641 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2642 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2643 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2645 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2647 * objfiles.h: Add missing #include "symfile.h"
2649 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2651 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2653 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2654 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2657 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2659 * NEWS: Cleanup and nitpick.
2661 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2663 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2665 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2667 * Makefile.in (gdbtk-bp.o): Update dependencies.
2668 (gdbtk-register.o): Ditto.
2669 (gdbtk-varobj.o): Ditto.
2671 2002-08-03 Andrew Cagney <cagney@redhat.com>
2673 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2674 m68hc11_fetch_pseudo_register.
2675 (m68hc11_pseudo_register_write): Replace
2676 m68hc11_store_pseudo_register.
2677 (m68hc11_gdbarch_init): Update.
2679 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2681 * gdbarch.sh: Include "gdb_string.h".
2682 * gdbarch.c: Regenerate.
2684 * regcache.c: Include "gdb_string.h".
2685 * ax-general.c: Ditto.
2687 * std-regs.c: Ditto.
2688 * fbsd-proc.c: Ditto.
2691 * Makefile.in (regcache.o): Update dependencies.
2692 (thread.o, gdbarch.o): Ditto.
2693 (ax-general.o, gdbarch.o): Ditto.
2694 (varobj.o, std-regs.o): Ditto.
2695 (fbsd-proc.o): Specify dependencies.
2697 2002-08-02 Andrew Cagney <cagney@redhat.com>
2699 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2701 (regcache_cooked_write): Ditto.
2703 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2705 * regcache.c (regcache_cooked_read): New function.
2706 (regcache_cooked_write): New function.
2707 (read_register_gen): Rewrite using regcache_cooked_read.
2708 (write_register_gen): Rewrite using regcache_cooked_write.
2710 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2713 2002-08-02 Andrew Cagney <cagney@redhat.com>
2715 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2716 Replace the architecture methods register_read and register_write.
2717 * gdbarch.h, gdbarch.c: Regenerate.
2718 * regcache.c (init_regcache_descr): Update.
2719 (read_register_gen): Update.
2720 (write_register_gen): Update.
2721 (supply_register): Update comment.
2723 * sh-tdep.c (sh_gdbarch_init): Update.
2724 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2725 `regcache' and `gdbarch' parameters. Make `buffer' a void
2726 pointer. Update code.
2727 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2728 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2729 void pointer. Update code.
2730 (sh64_register_write): Delete.
2731 (sh4_register_read): Delete.
2732 (sh64_register_read): Delete.
2733 (sh4_register_write): Delete.
2734 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2735 void pointer, `to' parameter a void pointer.
2736 (sh_sh64_register_convert_to_raw): Ditto.
2738 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2740 * mips-tdep.c (mips_register_virtual_type): Use architecture
2741 invariant return values.
2743 2002-08-01 Andrew Cagney <cagney@redhat.com>
2745 * linux-proc.c: Include "gdb_string.h".
2746 * Makefile.in (linux-proc.o): Update dependency list.
2748 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2750 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2753 2002-08-01 Grace Sainsbury <graces@redhat.com>
2755 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2756 to_insert_watchpoint, to_remove_watchpoint,
2757 to_stopped_by_watchpoint, to_stopped_data_address,
2758 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2759 target vecctor. Define their corresponding macros so they call
2762 * target.c: Add default and debug versions of for
2763 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2764 to_insert_watchpoint, to_remove_watchpoint,
2765 to_stopped_by_watchpoint, to_stopped_data_address,
2766 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2768 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2770 * mips-tdep.c (mips_register_virtual_type): New function.
2771 (mips_gdbarch_init): Register mips_register_virtual_type()
2772 with gdbarch machinery.
2773 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2774 this file instead of tm-bigmips.h.
2775 (MIPS_REGSIZE): Delete this macro.
2776 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2777 multiarch version in mips-tdep.c will be found.
2779 2002-08-01 Andrew Cagney <cagney@redhat.com>
2781 * NEWS: Menion that CHILL has been made obsolete.
2783 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2784 * stabsread.c (read_range_type): Ditto.
2785 * gdbtypes.h: Ditto.
2786 * language.c (binop_type_check): Ditto.
2787 (binop_result_type): Ditto.
2788 (integral_type): Ditto.
2789 (character_type): Ditto.
2790 (string_type): Ditto.
2791 (boolean_type): Ditto.
2792 (structured_type): Ditto.
2793 (lang_bool_type): Ditto.
2794 (binop_type_check): Ditto.
2795 * language.h (_LANG_chill): Ditto.
2796 * dwarfread.c (set_cu_language): Ditto.
2797 * dwarfread.c (CHILL_PRODUCER): Ditto.
2798 * dwarfread.c (handle_producer): Ditto.
2799 * expression.h (enum exp_opcode): Ditto.
2800 * eval.c: Ditto for comments.
2801 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2802 * expprint.c (print_subexp): Ditto.
2803 (print_subexp): Ditto.
2804 * valops.c (value_cast): Ditto.
2805 (search_struct_field): Ditto.
2806 * value.h (COERCE_VARYING_ARRAY): Ditto.
2807 * symfile.c (init_filename_language_table): Ditto.
2808 (add_psymbol_with_dem_name_to_list): Ditto.
2809 * valarith.c (value_binop): Ditto.
2811 * valops.c (value_slice): Ditto.
2812 * symtab.h (union language_specific): Ditto.
2813 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2814 (SYMBOL_DEMANGLED_NAME): Ditto.
2815 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2816 * defs.h (enum language): Ditto.
2817 * symtab.c (got_symtab): Ditto.
2818 * utils.c (fprintf_symbol_filtered): Ditto.
2820 * ch-typeprint.c: Make file obsolete.
2821 * ch-valprint.c: Make file obsolete.
2822 * ch-lang.h: Make file obsolete.
2823 * ch-exp.c: Make file obsolete.
2824 * ch-lang.c: Make file obsolete.
2826 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2828 (TARGET_FLAGS_TO_PASS): Ditto.
2829 (CHILLFLAGS): Obsolete.
2831 (CHILL_FOR_TARGET): Obsolete.
2832 (CHILL_LIB): Obsolete.
2833 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2835 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2836 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2838 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2841 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2843 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2844 This does not change anything at the moment, but will be helpful
2845 later when full Ada support is integrated.
2847 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2849 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2852 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2854 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2855 and save it in a local variable. Use variable in later test.
2857 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2859 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2860 test. (Thanks to Daniel Jacobowitz.)
2862 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2864 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2865 (mips_abi_strings): Add "n64".
2866 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2868 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2870 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2871 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2873 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2875 * utils.c (host_pointer_to_address, address_to_host_pointer):
2876 Use gdb_assert() instead of explicit call to internal_error().
2878 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2880 * Makefile.in (rs6000-nat.o): Update dependencies.
2882 From Nicholas Duffek:
2883 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2884 (aix-thread.o): New rule.
2885 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2886 * config/powerpc/aix432.mh: New file.
2888 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2890 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2891 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2892 (fetch_core_registers, ppc_linux_supply_gregset)
2893 (ppc_linux_supply_fpregset): New functions.
2894 (ppc_linux_regset_core_fns): New.
2895 (_initialize_ppc_linux_tdep): Call add_core_fns.
2896 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2897 and ppc_linux_supply_gregset.
2898 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2899 (supply_fpregset): Call ppc_linux_supply_fpregset.
2900 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2902 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2904 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2906 * symtab.c (lookup_symbol): Demangle before lowercasing.
2908 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2910 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2912 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2913 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2914 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2915 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2917 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2918 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2919 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2920 (avr-tdep.o, mon960-rom.o): Ditto.
2921 (aout_stabs_gnu_h): Define.
2922 (symtab_h): Remove $(gdb_obstack_h).
2924 2002-07-30 Jim Blandy <jimb@redhat.com>
2926 Patch from David Carlton <carlton@math.stanford.edu>:
2927 * gdbinit.in: Move the `dir' commands that add GDB's own source
2928 directory to the search path to the end, so that the `gdb' source
2929 directory will be searched first.
2931 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2933 * gdb_obstack.h: New file.
2934 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2935 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2936 * objfiles.h: Include "gdb_obstack.h".
2937 * Makefile.in (gdb_obstack_h): Define.
2938 (symtab_h): Add $(gdb_obstack_h).
2939 (objfiles_h): Add $(gdb_obstack_h).
2941 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2942 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2943 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2944 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2945 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2946 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2947 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2948 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2950 * Makefile.in (bcache.o): Update dependencies.
2951 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2952 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2953 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2954 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2955 (stabsread.o, symfile.o, symmisc.o): Ditto.
2956 (symtab.o, typeprint.o, macroexp.o): Ditto.
2957 (macrotab.o, mdebugread.o): Ditto.
2958 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2959 (coff_ecoff_h, aout_aout64_h): Define.
2960 (aout_stabs_gnu_h, libaout_h): Define.
2962 2002-07-29 Andrew Cagney <cagney@redhat.com>
2964 * regcache.c (struct regcache_descr): Rename nr_registers to
2965 nr_cooked_registers. Revise comments describing the structure
2967 (init_regcache_descr): Update.
2968 (init_legacy_regcache_descr): Update.
2969 (read_register_gen, write_register_gen): When a cooked register in
2970 the raw register range, directly access the value from the raw
2973 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2975 * z8k-tdep.c: Do not include "obstack.h".
2976 * h8300-tdep.c, h8500-tdep.c: Ditto.
2977 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2978 * valprint.c, v850-tdep.c: Ditto.
2979 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2980 * mn10200-tdep.c: Ditto.
2982 * Makefile.in (z8k-tdep.o): Update dependencies.
2983 (m68hc11-tdep.o, valprint.o): Ditto.
2984 (v850-tdep.o, d10v-tdep.o): Ditto.
2985 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2986 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2987 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2988 (sh_opc_h, gdb_sim_sh_h): Define.
2989 (elf_sh_h, elf_bfd_h): Define.
2990 (opcode_m68hc11_h): Define.
2991 (OPCODES_SRC, OPCODES_DIR): define.
2992 (OPCODES): Use $(OPCODES_DIR).
2993 (gdb_sim_d10v_h): Rename sim_d10v_h.
2994 (gdb_sim_arm_h): Rename sim_arm_h.
2996 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2998 * utils.c (host_pointer_to_address, address_to_host_pointer):
2999 Change internal_error() message to indicate function responsible
3002 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3004 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3005 calls to local_hex_string_custom().
3007 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3009 * irix5-nat.c: Move IRIX shared library support from here...
3010 * solib-irix.c: ...to here. Revised substantially to work with
3011 generic solib framework.
3013 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3014 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3015 * mips-irix-tdep.c: New file.
3017 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3018 (mips-irix-tdep.o, solib-irix.o): New rules.
3019 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3021 * config/mips/irix6.mt (TDEPFILES): Likewise.
3022 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3024 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3026 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3027 disabled (via ``#if 0'') includes.
3029 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3031 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3032 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3033 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3034 Add support for the fpscr register.
3035 * rs6000-nat.c (regmap, fetch_inferior_registers)
3036 (store_inferior_registers, fetch_core_registers): Likewise.
3038 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3040 * rs6000-nat.c (language.h): Include.
3041 (special_regs): Delete this array.
3042 (regmap): New function.
3043 (fetch_register, store_register): Use regmap() to map gdb
3044 register numbers to ptrace register numbers. Also, use
3045 outputs from regmap() to make decisions regarding type of
3046 ptrace() call to make. In particular, don't compare against
3047 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3048 (fetch_inferior_registers, store_inferior_registers): Where
3049 possible, obtain register numbers from tdep struct. Don't
3050 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3051 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3052 (LAST_UISA_SP_REGNUM): Delete.
3054 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3056 * rs6000-nat.c (ppc-tdep.h): Include.
3057 (fetch_registers, store_register, fetch_core_registers): Don't
3058 access registers[] directly. Instead, use supply_register() or
3059 regcache_collect() as appropriate.
3060 (find_toc_address): Format hex address with local_hex_string().
3062 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3064 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3067 2002-07-24 Tom Tromey <tromey@redhat.com>
3069 * jv-exp.y: Marked all strings with _().
3070 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3072 (MethodInvocation, CastExpression, parse_number, yyerror,
3073 java_type_from_name, push_expression_name, yylex): Typo fixes.
3075 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3077 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3078 (tee_file_flush, tee_file_write, tee_file_fputs)
3079 (tee_file_isatty): New.
3080 * ui-file.h (tee_file_new): Add prototype.
3082 2002-07-24 Aidan Skinner <aidan@velvet.net>
3084 * ada-lang.c: Change k&r style function definitions to prototyped
3086 * ada-typeprint.c: Change k&r style function definitions to prototyped
3088 * ada-valprint.c: Change k&r style function definitions to prototyped
3091 2002-07-24 Andrew Cagney <cagney@redhat.com>
3093 * README: Remove reference to remote-bug.
3094 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3096 (m88k-nat.o): Delete rule.
3097 (m88k-tdep.o): Delete rule.
3098 (remote-bug.o): Delete rule.
3099 * MAINTAINERS: Mark as obsolete.
3100 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3101 * m88k-tdep.c: Make file obsolete.
3102 * config/m88k/m88k.mh: Ditto.
3103 * config/m88k/delta88v4.mh: Ditto.
3104 * config/m88k/delta88v4.mt: Ditto.
3105 * config/m88k/delta88.mt: Ditto.
3106 * config/m88k/delta88.mh: Ditto.
3107 * remote-bug.c: Ditto.
3108 * config/m88k/tm-delta88.h: Ditto.
3109 * config/m88k/nm-delta88v4.h: Ditto.
3110 * config/m88k/xm-delta88.h: Ditto.
3111 * config/m88k/xm-dgux.h: Ditto.
3112 * config/m88k/tm-m88k.h: Ditto.
3113 * config/m88k/nm-m88k.h: Ditto.
3114 * config/m88k/tm-delta88v4.h: Ditto.
3115 * m88k-nat.c: Ditto.
3116 * cxux-nat.c: Ditto.
3117 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3118 and m88*-*-* obsolete.
3119 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3122 2002-07-24 Andrew Cagney <cagney@redhat.com>
3124 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3125 constant. Same for local pointer variables.
3126 (extract_signed_integer): Ditto.
3127 * defs.h (extract_unsigned_integer): Update.
3128 (extract_signed_integer): Update.
3130 2002-07-24 Andrew Cagney <cagney@redhat.com>
3132 * regcache.c (regcache_raw_write): Change buf parameter to a
3133 constant void pointer.
3134 (regcache_raw_read): Change buf parameter to a void pointer.
3135 (legacy_write_register_gen): Change myaddr parameter a constant
3137 (supply_register): Change val parameter to a const void pointer.
3138 * regcache.h (regcache_raw_write): Update declaration.
3139 (regcache_raw_read): Update declaration.
3140 (supply_register): Update declaration.
3142 2002-07-24 Tom Tromey <tromey@redhat.com>
3144 * defs.h (gdb_readline_wrapper): Declare.
3145 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3146 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3147 * top.c (gdb_readline_wrapper): New function.
3148 (command_line_input): Use it.
3150 2002-07-24 Andrew Cagney <cagney@redhat.com>
3152 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3153 regcache_read and regcache_write.
3154 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3155 * regcache.c: Update.
3156 * sh-tdep.c (sh64_push_arguments): Update comment.
3157 (sh_pseudo_register_read): Update.
3158 (sh_pseudo_register_write): Update.
3159 (sh4_register_read): Update.
3160 (sh4_register_write): Update.
3161 (sh64_pseudo_register_read): Update.
3162 (sh64_pseudo_register_write): Update.
3163 (sh64_register_read): Update.
3164 (sh64_register_write): Update.
3165 * i386-tdep.c (i386_extract_return_value): Update.
3166 (i386_extract_struct_value_address): Update.
3167 (i386_extract_return_value): Update.
3168 * blockframe.c (generic_read_register_dummy): Update.
3169 (generic_call_dummy_register_unwind): Update
3170 * infrun.c (write_inferior_status_register): Update.
3172 2002-07-23 Jim Blandy <jimb@redhat.com>
3174 * parser-defs.h (expression_context_pc): Make this extern.
3175 (Thanks to Michael Snyder.)
3177 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3179 GDB 5.2.1 released from 5.2 branch.
3180 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3181 * README: Update to mention 5.2.1.
3183 2002-07-23 Mark Salter <msalter@redhat.com>
3185 * remote.c (remote_read_bytes): Fix check for error.
3187 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3189 * aix-thread.c (language.h): Include.
3190 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3191 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3192 Print newlines at end of debug messages.
3193 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3194 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3196 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3198 * aix-thread.c (ppc-tdep.h): Include.
3199 (special_register_p): New function.
3200 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3201 (store_regs_user_thread): Use register number information from
3202 gdbarch_tdep struct instead of hardcoded offsets relative to
3203 FIRST_UISA_SP_REGNUM.
3204 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3205 special_register_p() instead of using FPLAST_REGNUM and
3206 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3207 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3208 will be MQ's register number.
3210 2002-07-22 Michael Snyder <msnyder@redhat.com>
3212 * aix-thread.c (ops): Rename to aix_thread_ops.
3213 (base_ops): Rename to base_target.
3214 (ops_attach): Rename to aix_thread_attach.
3215 (ops_detach): Rename to aix_thread_detach.
3216 (ops_resume): Rename to aix_thread_detach.
3217 (ops_wait): Rename to aix_thread_wait.
3218 (ops_kill): Rename to aix_thread_kill.
3219 (init_ops): Rename to init_aix_thread_ops.
3220 (ops_fetch_register): Rename to aix_thread_fetch_register.
3221 (ops_store_register): Rename to aix_thread_store_register.
3222 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3223 (ops_thread_alive): Rename to aix_thread_thread_alive.
3224 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3225 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3226 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3227 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3228 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3229 (store_regs_lib): Rename to store_regs_user_thread.
3230 (store_regs_kern): Rename to store_regs_kernel_thread.
3232 2002-07-22 Michael Snyder <msnyder@redhat.com>
3234 * aix-thread.c (ops_prepare_to_store): Eliminate.
3235 (init_ops): Don't initialize ops.prepare_to_store.
3236 (store_regs_kern): Pre-fetch register buffers from child,
3237 because some registers may not be in the cache. Copy
3238 regs from register cache only if they are cached.
3239 (store_regs_lib): Copy regs from register cache only
3241 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3242 fill_gprs64): Ditto.
3244 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3246 * aix-thread.c (gdb_assert.h): Include.
3247 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3248 register sizes (from register cache) match size of buffer holding
3250 (fill_sprs32): Change parameter types to match those in the ptrace()
3252 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3253 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3255 2002-07-22 Michael Snyder <msnyder@redhat.com>
3257 * aix-thread.c (supply_sprs64): Cosmetic change.
3258 (supply_sprs32): Cosmetic change.
3259 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3260 (fill_sprs64): Use regcache_collect instead of read_register.
3261 (store_regs_lib): Use regcache_collect instead of
3262 read_register. Use fill_sprs32 instead of fill_sprs64,
3263 if debugging a 32-bit architecture.
3264 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3265 out of the register cache, instead of passing a pointer into
3266 the register cache directly to ptrace. Use regcache_collect
3267 insteaad of read_register.
3268 (ops_prepare_to_store): Use target_read_registers instead
3269 of read_register_bytes.
3271 2002-07-20 Aidan Skinner <aidan@velvet.net>
3273 * MAINTAINERS: Add self under write after approval.
3275 2002-07-20 Aidan Skinner <aidan@velvet.net>
3277 * ada-tasks.c: Change k&r style function definitions to prototyped
3280 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3282 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3283 * x86-64-tdep.c: Include "objfiles.h".
3284 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3285 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3287 2002-07-17 Michal Ludvig <michal@suse.cz>
3289 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3290 (update_context): Initialise cfa variable.
3292 2002-07-17 Michael Snyder <msnyder@redhat.com>
3294 * aix-thread.c: Shorten some long lines.
3295 Bring comments into line with code spec.
3297 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3299 * infrun.c: Re-indent using gdb_indent.sh.
3301 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3303 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3304 Leave the indentation temporarily untouched, to minimize the diffs.
3306 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3308 * stabsread.c: Make os9k sections of the code obsolete,
3310 * stabsread.h: Make os9k sections of the code obsolete.
3312 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3314 * linux-low.c (regsets_store_inferior_registers): Add free()
3315 at the end of a loop to prevent memory leak.
3316 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3317 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3318 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3320 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3322 2002-07-17 Jim Blandy <jimb@redhat.com>
3324 * macrocmd.c (info_macro_command): Remove newline from error
3327 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3329 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3330 (sh_gdbarch_init): Use it for sh-dsp.
3332 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3334 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3335 64-bit DWARF2 format.
3337 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3339 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3340 <sys/proc.h> when not available.
3342 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3344 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3345 * stabsread.c: Make os9k sections of the code obsolete.
3346 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3347 * config/i386/i386os9k.mt: Make file obsolete.
3348 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3349 (COMMON_OBS): Remove os9kread.o
3350 (SFILES): Remove os9kread.c.
3351 (os9kread.o, remote-os9k.o): Make target obsolete.
3352 * remote-os9k.c: Make file obsolete.
3353 * os9kread.c: Make file obsolete.
3356 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3358 * NEWS: Mention that the FR30 has been made obsolete.
3359 * fr30-tdep.c: Make file obsolete.
3360 * config/fr30/tm-fr30.h: Ditto.
3361 * config/fr30/fr30.mt: Ditto.
3362 * configure.tgt: Make fr30-*-elf obsolete.
3363 * MAINTAINERS: Make fr30-elf obsolete.
3365 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3367 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3368 found is not inside a section.
3370 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3372 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3374 (pdc_realloc): Use xrealloc() instead of realloc().
3376 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3378 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3379 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3380 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3383 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3385 * aix-thread.c (ptrace_check): Eliminate goto.
3386 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3389 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3391 * aix-thread.c (gdbcmd.h): Include.
3392 (DEBUG, DBG, DBG2, dbg): Eliminate.
3393 (debug_aix_thread): New static global.
3394 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3395 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3396 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3397 invocations to DBG and DBG2 macros to test against
3398 ``debug_aix_thread'' and call fprintf_unfiltered().
3399 (_initialize_aix_thread): Add new command "set debug aix-thread".
3401 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3403 From Gerhard Tonn <TON@de.ibm.com>:
3404 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3405 instead of supply_register.
3407 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3409 * dwarf2cfi.c: Include "gdb_assert.h".
3410 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3412 (update_context): Do not use __func__. Add missing ``break''.
3413 (update_context): Do not use __func__.
3415 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3417 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3418 and its setting. Set gdbarch instruction printing functions
3419 directly. For non-rs6000 case use new function
3420 gdb_print_insn_powerpc.
3421 (gdb_print_insn_powerpc): New function.
3423 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3425 * NEWS: Mention that the d30v has been marked obsolete.
3426 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3427 * configure.tgt: Mark d30v-*-* as obsolete.
3428 * d30v-tdep.c: Mark file as obsolete.
3429 * config/d30v/d30v.mt: Ditto.
3430 * config/d30v/tm-d30v.h: Ditto.
3432 2002-07-13 Aidan Skinner <aidan@velvet.net>
3434 * ada-tasks.c (add_task_entry): replace calls to
3435 malloc() with xmalloc
3436 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3438 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3439 ada_finish_decode_line_1, all_sals_for_line
3440 ada_breakpoint_rewrite): replace calls to free() with xfree()
3442 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3444 From Nicholas Duffek (with minor changes by Martin Hunt,
3445 Louis Hamilton, and Kevin Buettner):
3446 * aix-thread.c: New file.
3448 2002-07-12 Petr Sorfa <petrs@caldera.com>
3450 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3451 complaint for invalid attribute class or form.
3452 (read_func_scope): DW_AT_frame_base
3453 better handling of DW_AT_block*.
3454 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3455 better handling of DW_AT_block*.
3456 (read_common_block): DW_AT_location
3457 better handling of DW_AT_block*.
3458 (read_partial_die): DW_AT_location better handling
3460 (new_symbol): DW_AT_external better handling of
3461 DW_AT_block*. Proper initialization of variable
3463 (attr_form_is_block): New function that returns true
3464 if the attribute's form is of DW_FORM_block*.
3466 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3468 * valops.c (find_method_list): Remove comment about
3469 removed STATIC_MEMFUNCP argument.
3470 (value_find_oload_method_list): Likewise.
3472 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3474 From Nicholas Duffek:
3475 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3476 target_new_objfile_hook.
3478 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3480 From Nicholas Duffek:
3481 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3484 2002-07-12 Andrew Cagney <cagney@redhat.com>
3486 * MAINTAINERS: Mention --enable-sim-build-warnings.
3487 (m68hc11-elf): Disable sim build warnings.
3488 (m32r-elf): Mark as broken obsolete candidate.
3489 (x86_64-linux-gnu): Mark as buildable with -Werror.
3490 (arm-elf): Change -w to ``,'' which enables warnings but not
3493 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3495 * bcache.h: Update copyright.
3496 (struct bstring, struct bcache): Move definition to "bcache.c".
3497 Replaced by opaque declaration.
3498 (bcache_xfree): Replace free_bcache.
3499 (bcache_xmalloc, bcache_memory_used): Declare.
3501 * bcache.c: Update copyright.
3502 (struct bstring, struct bcache): Moved to here from "bcache.h".
3504 (bcache_xmalloc, bcache_memory_used): New functions.
3505 (bcache_xfree): Replace function free_bcache.
3507 * Makefile.in (objfiles.o): Add $(bcache_h).
3508 (objfiles_h): Remove $(bcache_h).
3509 (symfile.o): Add $(bcache_h).
3511 * symmisc.c: Update copyright.
3512 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3513 (print_objfile_statistics): Use bcache_memory_used.
3515 * symfile.c: Include "bcache.h".
3516 (reread_symbols): Use bcache_xfree.
3517 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3518 (add_psymbol_to_list): Pass psymbol_cache by value.
3519 (add_psymbol_with_dem_name_to_list): Ditto.
3521 * objfiles.h: Update copyright.
3522 (struct bcache): Declare opaque. Do not include "bcache.h".
3523 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3525 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3527 * objfiles.c: Include "bcache.h". Update copyright.
3528 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3530 (free_objfile): Use bcache_xfree.
3532 2002-07-11 Grace Sainsbury <graces@redhat.com>
3534 * monitor.c (monitor_fetch_register): Make name a constant.
3535 (monitor_store_register): Same.
3537 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3539 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3540 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3541 (finish_block) For non-function blocks, hash the symbol table. For
3542 function blocks, mark the symbol table as unhashed.
3543 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3544 (msymbol_hash_iw): Likewise.
3545 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3547 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3548 (lookup_minimal_symbol): Likewise for both.
3549 * symtab.h (struct block): Add `hashtable' flag. Comment the
3551 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3552 (ALL_BLOCK_SYMBOLS): Update.
3553 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3554 (struct symbol): Add `hash_next' pointer.
3555 * symtab.c (lookup_block_symbol): Search using the hash table when
3557 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3558 (search_symbols, find_addr_symbol): Likewise.
3560 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3561 (read_dst_symtab): Likewise.
3562 * jv-lang.c (get_java_class_symtab): Likewise.
3563 * mdebugread.c: Include "gdb_assert.h".
3564 (shrink_block): Assert that the block being modified is not hashed.
3565 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3566 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3568 (dump_symtab): Recognize hashed blocks.
3569 * printcmd.c (print_frame_args): Assert that function blocks do not
3570 have hashed symbol tables.
3571 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3572 (fill_in_ada_prototype, debug_print_block): Likewise.
3573 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3575 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3577 * stack.c (print_frame): Use result of frame_address_in_block()
3578 instead of fi->pc when evaluating symbols.
3579 (backtrace_command_1): Ditto.
3581 2002-07-11 Andrew Cagney <cagney@redhat.com>
3583 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3586 * arm-tdep.c (arm_register_name): Make return type constant.
3588 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3590 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3592 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3593 * s390-tdep.c (s390_fp_regnum): Ditto.
3594 (s390_read_fp): Ditto.
3595 (s390_pop_frame): Ditto.
3596 (_initialize_s390_tdep): Ditto.
3597 * remote.c (get_remote_state): Ditto.
3598 * procfs.c (mappingflags): Ditto.
3599 * memattr.c (_initialize_mem): Ditto.
3600 * mcore-tdep.c (mcore_pop_frame): Ditto.
3601 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3602 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3603 * language.c (set_case_str): Ditto.
3604 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3605 * frv-tdep.c (new_variant): Ditto.
3606 (frv_stopped_data_address): Ditto.
3607 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3608 (context_alloc): Ditto.
3609 (frame_state_alloc): Ditto.
3610 (unwind_tmp_obstack_init): Ditto.
3611 (unwind_tmp_obstack_free): Ditto.
3612 (cfi_read_fp): Ditto.
3613 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3614 (cris_pop_frame): Ditto.
3615 * c-lang.c (scanning_macro_expansion): Ditto.
3616 (finished_macro_expansion): Ditto.
3617 (c_preprocess_and_parse): Ditto.
3618 * gdbarch.sh: Ditto.
3619 * gdbarch.h, gdbarch.c: Regenerate.
3620 * config/mn10200/tm-mn10200.h: Adjust indentation.
3621 * target.c: Adjust indentation.
3622 * symtab.h: Adjust indentation.
3623 * stabsread.h: Adjust indentation.
3624 * remote-es.c: Adjust indentation.
3625 * os9kread.c: Adjust indentation.
3627 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3629 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3630 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3632 2002-07-10 Grace Sainsbury <graces@redhat.com>
3634 * NEWS: Mention m68k, mcore multi-arching.
3635 * MAINTAINERS: Change status of m68k, mcore to reflect
3638 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3640 * valops.c (find_overload_match): Free oload_syms.
3642 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3644 Define HAVE_SYS_PROC_H if sys/proc.h exists
3645 * configure.in: Add check for sys/proc.h
3646 * config.in: Regenerate.
3647 * configure: Regenerate.
3649 2002-07-09 Grace Sainsbury <graces@redhat.com>
3651 * config/m68k/tm-m68k.h: Remove macros wrapped in
3652 #if !GDB_MULTI_ARCH.
3654 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3656 * config.in, configure: Regenerate.
3658 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3660 * dwarf2cfi.c: Include "gcore.h".
3661 (execute_stack_op): Fix implementation of the
3662 DW_OP_deref and DW_OP_deref_size operators by letting do their
3663 lookup in the target.
3665 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3667 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3668 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3671 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3673 Fix PR gdb/595, gdb/602
3674 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3675 Don't call value_cast, just read the vtable pointer; update comments
3678 2002-07-05 Grace Sainsbury <graces@redhat.com>
3680 * config/mcore/tm-mcore.h: Remove file.
3681 * config/mcore/mcore.mt: Remove definition of TM_FILE
3682 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3684 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3686 * i386bsd-tdep.c: Include "gdb_string.h".
3688 2002-07-04 Grace Sainsbury <graces@redhat.com>
3690 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3691 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3693 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3694 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3695 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3696 (RETVAL_REGNUM): Move macros from tm-mcore.h
3697 (mcore_reg_struct_has_addr): New function.
3698 (mcore_gdbarch_init): Added initializations for the macros removed
3701 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3703 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3704 traditonal string branding within the ELF header.
3706 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3708 * symtab.c (remove_params): New function.
3709 (make_symbol_overload_list): Use it instead of cplus_demangle.
3710 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3712 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3714 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3716 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3718 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3719 and tdep->sigtramp_end.
3720 * i386obsd-nat.c: New file.
3721 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3723 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3724 Don't call get_current_frame().
3726 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3728 * i386-nat.c (child_post_startup_inferior): New function
3729 calling i386_cleanup_dregs if
3730 I386_USE_GENERIC_WATCHPOINTS is defined.
3731 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3732 conditional to acknowledge that i386-nat.c has its
3733 own child_post_startup_inferior function.
3735 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3737 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3738 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3739 instead of MAX_REGISTER_RAW_SIZE.
3740 (i386_extract_return_value, i386_extract_struct_value_address):
3741 Convert to use regcache.
3742 (i386_gdbarch_init): Set max_register_raw_size and
3743 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3744 Set extract_return_value and extract_struct_value_address instead
3745 of their deprecated variants.
3747 Convert i386 target to generic dummy frames.
3748 * i386-tdep.c: Include "symfile.h".
3749 (i386_frameless_signal_p): Consider a function to be frameless if
3750 the pc points at the first instruction of the function.
3751 (i386_frame_chain): Handle (generic) call dummies.
3752 (i386_frame_saved_pc): Likewise.
3753 (i386_frame_init_saved_regs): Remove code dealing with call
3754 dummies on the stack.
3755 (i386_push_dummy_frame): Removed.
3756 (i386_call_dummy_words): Removed.
3757 (i386_fix_call_dummy): Removed.
3758 (i386_push_return_address): New function.
3759 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3760 parameter, and don't call get_current_frame.
3761 (i386_pop_frame): New function.
3762 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3763 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3764 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3765 call_dummy_length to 0, set call_dummy_words to NULL, set
3766 sizeof_call_dummy_words to 0, set fix_call_dummy to
3767 generic_fix_call_dummy, set pc_in_call_dummy to
3768 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3769 generic_push_dummy_frame, set push_return_address to
3770 i386_push_return_address and set frame_chain_valid to
3771 generic_file_frame_chain_valid.
3773 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3775 * gdbarch.sh (struct regcache): Add opaque declaration.
3776 (EXTRACT_RETURN_VALUE): New architecture method.
3777 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3778 * gdbarch.h, gdbarch.c: Regenerate.
3779 * arch-utils.c (legacy_extract_return_value): New function.
3780 * arch-utils.h (legacy_extract_return_value): Declare.
3781 * values.c (value_being_returned): Re-enable code handling
3782 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3783 deprecated_grub_regcache_for_registers call to block handling
3784 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3785 (EXTRACT_RETURN_VALUE): Do not define.
3787 2002-07-03 Grace Sainsbury <graces@redhat.com>
3789 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3790 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3791 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3792 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3793 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3794 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3795 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3796 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3797 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3798 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3799 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3800 argument so the function fits the prototype in the architecture
3802 (mcore_pop_frame): Remove argument so the function fits the
3803 prototype. Use get_current_frame instead of the argument.
3804 (mcore_push_arguments): Change type of struct_return so the
3805 function can be used in the architecture vector.
3806 (mcore_store_struct_return): Add.
3807 (mcore_frame_init_saved_regs): Add.
3808 (mcore_gdbarch_init): Add function calls to replace the macros
3809 removed from tm-mcore.h
3811 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3813 * infcmd.c (print_return_value): Remove compatibility code calling
3814 deprecated_grub_regcache_for_registers.
3816 * values.c: Include "regcache.h".
3817 (value_being_returned): Update. Use
3818 deprecated_grub_regcache_for_registers to extract the register
3820 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3821 ``struct regcache''.
3822 * Makefile.in (values.o): Add dependency on $(regcache_h).
3824 * inferior.h (run_stack_dummy): Change type of second parameter to
3825 a ``struct regcache''.
3826 * valops.c (hand_function_call): Change type of retbuf to ``struct
3827 regcache''. Allocate using regcache_xmalloc, clean using
3828 make_cleanup_regcache_xfree.
3829 * infcmd.c (run_stack_dummy): Update. Use
3830 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3832 * regcache.c (do_regcache_xfree): New function.
3833 (make_cleanup_regcache_xfree): New function.
3834 * regcache.h (make_cleanup_regcache_xfree): Declare.
3836 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3838 * event-top.c (command_line_handler): Don't read past
3839 beginning of buffer.
3841 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3843 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3845 (varobj_create): Store frame_id for root.
3846 (varobj_gen_name): Use xasprintf.
3847 (varobj_update): Save and restore frame using get_frame_id() and
3849 (create_child): Use xasprintf.
3850 (new_root_variable): Initialize frame_id.
3851 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3852 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3853 to prevent memory leak.
3855 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3857 * valops.c (hand_function_call): Move declaration of retbuf to
3858 start of function, allocate using malloc, add a cleanup but before
3859 the inf_status cleanup, cleanup the buffer. Rename local variable
3860 old_chain to inf_status_cleanup.
3862 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3864 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3866 * cli/cli-decode.c (cmd_func_p): New function.
3867 (cmd_func): New function.
3869 * command.h: Add cmd_func() and cmd_func_p().
3871 2002-07-03 Grace Sainsbury <graces@redhat.com>
3873 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3874 (REGISTER_SIZE): Remove.
3875 (MAX_REGISTER_RAW_SIZE): Remove.
3876 (REGISTER_VIRTUAL_TYPE): Remove.
3877 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3878 (REGISTER_NAME): Remove.
3879 (USE_GENERIC_DUMMY_FRAMES): Remove.
3880 (CALL_DUMMY): Remove.
3881 (CALL_DUMMY_START_OFFSET): Remove.
3882 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3883 (CALL_DUMMY_LOCATION): Remove.
3884 (FIX_CALL_DUMMY): Remove.
3885 (CALL_DUMMY_ADDRESS): Remove.
3886 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3887 (SAVE_DUMMY_FRAME_TOS): Remove.
3888 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3889 (mcore_register_virtual_type): New function.
3890 (mcore_register_byte): New function.
3891 (mcore_register_size): New function.
3892 (mcore_register_name): New function.
3893 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3894 macros removed from tm-mcore.h.
3895 (mcore_dump_tdep): Add.
3896 (_initialize_mcore_tdep): Add gdbarch_register call.
3898 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3900 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3901 frameless_look_for_prologue, such that we actually call this
3904 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3906 * frame.h (frame_address_in_block): New function.
3908 * blockframe.c (frame_address_in_block): New function extracted
3909 from get_frame_block().
3910 (get_frame_block): Use frame_address_in_block().
3911 (block_innermost_frame): Use frame_address_in_block() to match
3912 the frame pc address against the block boundaries rather than
3913 the frame pc directly. This prevents a failure when a frame pc
3914 is actually a return-address pointing immediately after the end
3917 2002-07-02 Grace Sainsbury <graces@redhat.com>
3919 * MAINTAINERS: Add self under write after approval.
3921 2002-07-02 Grace Sainsbury <graces@redhat.com>
3923 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3924 used in architecture vector. The default is
3925 m68k_local_breakpoint_from_pc.
3926 (m68k_local_breakpoint_from_pc): Add.
3927 (enum): Add register numbers from tm-m68k.h.
3928 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3930 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3931 GDB_MULTI_ARCH_PARTIAL.
3932 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3933 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3935 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3936 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3937 to enum in m68k-tdep.c
3939 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3941 * solib-osf.c (open_map): Compute the list of shared libraries
3942 loaded by the inferior, rather than the list of libraries loaded
3943 by GDB itself. Otherwise, GDB ends up reading the symbols from
3944 the wrong shared libraries...
3946 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3948 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3949 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3951 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3953 (FRAMELESS_SIGNAL): Remove function.
3954 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3955 i386_linux_saved_pc_after_call): Removed.
3956 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3957 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3958 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3960 * i386-tdep.c (i386_frameless_signal_p): New function.
3961 (i386_frame_chain): Deal with frameless signals.
3962 (i386_sigtramp_saved_sp): New function.
3963 (i386_frame_saved_pc): Deal with frameless signals.
3964 (i386_saved_pc_after_call): Make sure the correct value is
3965 returned just after entry into a sigtramp.
3966 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3967 i386fbsd4_sc_sp_offset): New variables.
3968 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3969 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3970 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3971 similiar to what we already did for sc_pc_offset.
3972 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3975 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3977 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3979 * config/i386/tm-x86-64linux.h: New.
3980 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3982 * config/i386/nm-x86-64.h: Rename to ...
3983 * config/i386/nm-x86-64linux.h: ... this one.
3984 * config/i386/x86-64linux.mh: Reflect the above change.
3986 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3988 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3989 with sigcontext_addr. Add sc_sp_offset.
3990 (i386bsd_sigtramp_saved_pc): Remove prototype.
3991 (i386bsd_sicontext_addr): Add prototype.
3992 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3993 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3994 (i386_svr4_sigtramp_saved_pc): Removed.
3995 (i386_svr4_sigcontext_addr): New function.
3996 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3997 Initialize tdep->sigcontext_addr instead. Initialize
3998 tdep->sc_pc_offset and tdep->sc_sp_offset.
3999 (i386_gdbarch_init): Likewise.
4000 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4002 (i386bsd_sigtramp_saved_pc): Remove function.
4003 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4004 Initialize tdep->sigcontext_addr instead. Initialize
4006 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4007 of tdep->sigtramp_saved_pc.
4008 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4009 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4012 * i386-tdep.c (i386_frameless_function_invocation,
4013 i386_frame_num_args, i386_frame_init_saved_regs,
4014 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4015 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4016 i386_extract_return_value, i386_store_return_value,
4017 i386_extract_struct_value_address, i386_register_virtual_type,
4018 i386_register_convertible, i386_register_convert_to_virtual,
4019 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4020 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4023 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4025 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4027 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4028 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4029 this macro. Include "value.h".
4031 2002-06-30 Aidan Skinner <aidan@velvet.net>
4033 * ada-exp.tab.c: remove as it's a generated file
4034 * ada-lex.c: remove as it's a generated file
4036 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4038 * config/i386/tm-i386.h (struct frame_info, struct
4039 frame_saved_regs, struct value, struct type): Remove forward
4042 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4043 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4044 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4045 (FILL_FPXREGSET): Define.
4047 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4049 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4050 i[3456]86-*-netbsd* case.
4051 * config/i386/tm-obsd.h: Removed.
4052 * config/i386/obsd.mt: Removed.
4053 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4055 (MH_CFLAGS): Add -DYYDEBUG=0.
4057 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4058 i386nbsd_sc_pc_offset on OpenBSD too.
4060 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4061 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4062 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4064 * i386bsd-tdep.c: Include "arch-utils.h".
4065 (i386bsd_aout_in_solib_call_trampoline): New function.
4066 (i386bsd_init_abi): Set in_solib_call_trampoline to
4067 i386bsd_aout_in_solib_call_trampoline.
4068 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4069 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4071 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4073 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4074 (struct obstack, struct bcache): Add opaque declarations.
4075 * Makefile.in (macrotab_h): Update
4077 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4079 * blockframe.c (generic_find_dummy_frame): Change return type to
4080 ``struct regcache''.
4081 (struct dummy_frame): Replace field ``registers'' with regcache, a
4082 struct regcache object.
4083 (generic_find_dummy_frame): Update.
4084 (generic_push_dummy_frame): Update. Use regcache_xfree,
4085 regcache_xmalloc and regcache_cpy.
4086 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4088 (deprecated_generic_find_dummy_frame): Update.
4089 (generic_read_register_dummy): Update. Use
4090 regcache_read_as_address.
4091 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4092 (generic_get_saved_register): Update. Use regcache_read.
4094 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4096 * Makefile.in (objfiles_h): Add $(bcache_h).
4097 * objfiles.h: Include "bcache.h".
4099 * Makefile.in (symtab_h): Remove $(bcache_h).
4100 * symtab.h: Do not include "bcache.h".
4102 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4104 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4105 generic_func_frame_chain_valid.
4107 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4109 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4110 * config/i386/tm-fbsd.h: Likewise.
4112 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4114 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4115 generic_unwind_get_saved_register.
4117 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4119 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4120 * regcache.c (supply_register): Add missing argument to
4121 register_buffer call.
4123 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4125 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4126 Solaris /bin/grep does not not like it. From Peter Schauer.
4128 2002-06-26 Tom Tromey <tromey@redhat.com>
4130 * command.h (add_setshow_cmd): Declare.
4131 (add_setshow_cmd_full): Declare.
4132 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4133 returns void. Use add_setshow_cmd_full.
4134 (add_setshow_cmd_full): New function.
4135 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4136 (add_setshow_boolean_cmd): Likewise.
4138 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4140 * config/vax/tm-vax.h: Protect from multiple inclusion.
4141 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4142 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4143 * config/vax/tm-vaxbsd.h: ...here. New file.
4144 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4146 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4148 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4149 (BELIEVE_PCC_PROMOTION): Remove.
4150 (AP_REGNUM): Move to...
4151 * config/vax/nm-vax.h: ...here.
4152 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4153 (vax_breakpoint_from_pc): New function.
4154 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4155 and gdbarch_believe_pcc_promotion.
4157 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4159 * Makefile.in (vax_tdep_h): Define.
4160 (vax-tdep.o): Use $(vax_tdep_h).
4161 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4162 (vax_dump_tdep): New function.
4163 (_initialize_vax_tdep): Register vax_dump_tdep.
4164 * vax-tdep.h: Include osabi.h.
4165 (struct gdbarch_tdep): New.
4167 2002-06-26 Andrew Cagney <cagney@redhat.com>
4169 * frame.h (deprecated_generic_find_dummy_frame): Rename
4170 generic_find_dummy_frame.
4171 * blockframe.c (generic_find_dummy_frame): Make static.
4172 (deprecated_generic_find_dummy_frame): New function.
4173 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4174 generic_find_dummy_frame with deprecated_find_dummy_frame.
4175 (sh64_nofp_frame_init_saved_regs): Ditto.
4176 (sh_fp_frame_init_saved_regs): Ditto.
4177 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4178 (s390_frame_chain): Ditto.
4179 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4181 2002-06-26 Grace Sainsbury <graces@redhat.com>
4183 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4184 gdbarch vector are at the top.
4186 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4187 (FRAME_ARGS_ADDRESS): Remove.
4188 (FRAME_LOCALS_ADDRESS): Remove.
4189 (FRAME_NUM_ARGS): Remove.
4190 (FRAME_ARGS_SKIP): Remove.
4191 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4192 (m68k_gdbarch_init): Add gdbarch initializations for macros
4193 undefined in tm-m68k.h
4195 2002-06-26 Grace Sainsbury <graces@redhat.com>
4197 * monitor.h: Add the function regname to monitor_ops
4198 structure. This way NUM_REGS does not have to be a constant.
4199 * monitor.c (monitor_fetch_register): Added support for regname
4200 function. The function is called if the array regnames is NULL.
4201 (monitor_store_register): Same.
4202 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4204 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4205 cpu32bug_cmds.regname to point to new function.
4206 * abug-rom.c (abug_regname): Same as above.
4207 (init_abug_cmds): Same.
4208 * dbug-rom.c (dbug_regname): Same as above.
4209 (init_dbug_cmds): Same.
4210 * remote-est.c (est_regname): Same.
4211 (init_est_cmds): Same.
4212 * rom68k-rom.c (rom68k_regname): Same.
4213 (init_rom68k_cmds): Same.
4215 2002-06-25 Tom Tromey <tromey@redhat.com>
4217 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4219 2002-06-25 Andrew Cagney <cagney@redhat.com>
4221 * infrun.c (stop_registers): Change variable's type to ``struct
4223 (xmalloc_inferior_status): Delete function.
4224 (free_inferior_status): Delete function.
4225 (normal_stop): Use regcache_cpy.
4226 (struct inferior_status): Change type of fields ``stop_registers''
4227 and ``registers'' to ``struct regcache''.
4228 (write_inferior_status_register): Use regcache_write.
4229 (save_inferior_status): Instead of calling
4230 xmalloc_inferior_status, allocate the inf_status buffer directly.
4231 Use regcache_dup_no_passthrough and regcache_dup to save the
4233 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4234 Replace the stop_registers regcache instead of overriding it. Use
4235 regcache_xfree. Instead of calling free_inferior_status, xfree
4236 the buffer directly.
4237 (discard_inferior_status): Use regcache_xfree. Instead of calling
4238 free_inferior_status, xfree the buffer directly.
4239 (build_infrun): Use regcache_xmalloc.
4240 (_initialize_infrun): Delete redundant call to build_infrun.
4242 * Makefile.in (infcmd.o): Add $(regcache_h).
4244 * infcmd.c: Include "regcache.h".
4245 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4246 obtain the address of `stop_registers' register buffer.
4247 (print_return_value): Ditto.
4249 * inferior.h (struct regcache): Add opaque declaration.
4250 (stop_registers): Change variable's declared type to ``struct
4253 2002-06-24 Tom Tromey <tromey@redhat.com>
4255 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4256 * target.c (initialize_targets): Fixed typo in
4257 trust-readonly-sections `show' documentation.
4259 * main.c: Marked all strings with _().
4261 2002-06-24 Don Howard <dhoward@redhat.com>
4263 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4264 that means max CORE_ADDR+1.
4265 (lookup_mem_region): Ditto.
4266 (mem_info_command): Ditto.
4268 2002-06-24 Grace Sainsbury <graces@redhat.com>
4270 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4271 (REGISTER_BYTES_OK): Remove.
4272 (REGISTER_BYTES): Remove.
4273 (STORE_STRUCT_RETURN): Remove.
4274 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4275 (STORE_RETURN_VALUE): Remove.
4276 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4277 (FRAME_CHAIN): Remove.
4278 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4279 (FRAME_SAVED_PC): Remove.
4280 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4281 (m68k_store_struct_return): Add.
4282 (m68k_deprecated_extract_return_value): Add.
4283 (m68k_deprecated_extract_struct_value_address): Add.
4284 (m68k_store_return_value): Add.
4285 (m68k_frame_chain): Add.
4286 (m68k_frameless_function_invocation): Add.
4287 (m68k_frame_saved_pc): Add.
4288 (m68k_gdbarch_init): added set_gdbarch calls for new
4289 functions and deleted macros.
4291 2002-06-23 Tom Tromey <tromey@redhat.com>
4293 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4294 (ALLDEPFILES): Likewise.
4295 (udiheaders): Removed.
4296 (udip2soc.o): Likewise.
4297 (udi2go32.o): Likewise.
4299 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4301 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4303 * infrun.c (_initialize_infrun): Delete unnecessary call to
4306 * regcache.h: Update comments describing the regcache_cpy family
4308 (regcache_save, regcache_restore): Delete declaration.
4309 (regcache_save_no_passthrough): Delete declaration.
4310 (regcache_restore_no_passthrough): Delete declaration.
4311 * regcache.c (regcache_save): Delete function.
4312 (regcache_save_no_passthrough): Delete function.
4313 (regcache_restore): Delete function.
4314 (regcache_restore_no_passthrough): Delete function.
4316 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4318 * config/m68k/tm-m68k.h: Fix typo.
4319 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4320 (m68k_frame_init_saved_regs): Declare.
4322 2002-06-21 Jim Blandy <jimb@redhat.com>
4324 Remove some vestiges of Harris 88k support.
4325 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4326 register numbering quirk.
4327 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4328 odd symbols occurring in Harris 88k ELF targets.
4330 2002-06-21 Tom Tromey <tromey@redhat.com>
4332 * gdb_locale.h: New file.
4333 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4334 (defs_h): Added gdb_locale.h.
4335 * configure, config.in: Rebuilt.
4336 * configure.in (PACKAGE): Define.
4337 * defs.h: Include gdb_locale.h.
4338 * main.c (captured_main): Call setlocale, bindtextdomain,
4341 2002-06-21 Dave Brolley <brolley@redhat.com>
4343 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4344 * config/frv/frv.mt: New file.
4345 * config/frv/tm-frv.h: New file.
4346 * configure.tgt: Support frv-*-*.
4347 * Makefile.in (frv-tdep.o): New target.
4348 * frv-tdep.c: New file.
4349 * NEWS: Mention frv.
4351 2002-06-21 Dave Brolley <brolley@redhat.com>
4353 * MAINTAINERS: Add self to "Write After Approval" list.
4355 2002-06-21 Grace Sainsbury <graces@redhat.com>
4357 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4358 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4359 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4360 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4361 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4363 * m68k-tdep.c: Include arch-utils.h
4364 (m68k_register_raw_size): Add.
4365 (m68k_register_virtual_size): Add.
4366 (m68k_register_virtual_type): Add.
4367 (m68k_register_name): Add.
4368 (m68k_stack_align): Add.
4369 (m68k_register_byte): Add.
4370 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4373 2002-06-21 Grace Sainsbury <graces@redhat.com>
4375 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4376 m68k_find_saved_regs.
4377 (m68k_pop_frame): Removed saved_regs structure, and replaced
4378 references to it with frame->saved_regs.
4379 (m68k_gdbarch_init): Added function calls to initialize the
4381 (m68k_fix_call_dummy): Add.
4382 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4383 (CALL_DUMMY): Remove.
4384 (CALL_DUMMY_LENGTH): Remove.
4385 (CALL_DUMMY_START_OFFSET): Remove.
4386 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4387 (FIX_CALL_DUMMY): Remove.
4388 (PUSH_DUMMY_FRAME): Remove.
4389 (POP_FRAME): Remove.
4391 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4393 * parse.c (parse_fprintf): New function used to avoid calls to
4394 fprintf in bison parser generated debug code.
4395 * parser-defs.h: Declaration of new parse_fprintf function.
4396 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4397 Set YYDEBUG to 1 by default.
4398 Set YYFPRINTF as parse_fprintf.
4400 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4402 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4404 (pointer_encoding, enum ptr_encoding): New.
4405 (execute_cfa_program): Take care about pointer encoding.
4406 (dwarf2_build_frame_info): Only call parse_frame_info for
4407 .debug_frame and .eh_frame.
4408 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4409 fixed augmentation handling, added relative addressing,
4410 ignore duplicate FDEs. Added comments.
4411 * dwarf2cfi.c: Reindented.
4413 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4415 * event-top.c (command_handler): Don't use space_at_cmd_start
4416 unless there is sbrk() on the host. Assign time and space data
4417 to union fields of the appropriate length.
4419 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4421 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4422 x86_64_register_name. Return type changed to 'const char *'.
4423 (x86_64_register_name2nr): Rename to x86_64_register_number.
4424 (x86_64_gdbarch_init): Update to reflect the change.
4425 * x86-64-tdep.h: Ditto.
4426 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4427 (supply_fpregset): Ditto.
4429 2002-06-19 Andrew Cagney <cagney@redhat.com>
4431 * regcache.h: Update copyright.
4432 (struct regcache, struct gdbarch): Add opaque declarations.
4433 (current_regcache): Declare global variable.
4434 (regcache_read, regcache_write): Add gdbarch parameter.
4435 (regcache_save, regcache_save_no_passthrough)
4436 (regcache_restore, regcache_restore_no_passthrough)
4437 (regcache_dup, regcache_dup_no_passthrough)
4438 (regcache_cpy, regcache_cpy_no_passthrough)
4439 (deprecated_grub_regcache_for_registers)
4440 (deprecated_grub_regcache_for_register_valid)
4441 (regcache_valid_p): Add function declarations.
4443 * regcache.c: Update copyright.
4444 (regcache_descr_handle): New global variable.
4445 (struct regcache_descr): Define.
4446 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4447 (regcache_descr, xfree_regcache_descr): New functions.
4448 (struct regcache): Define.
4449 (regcache_xmalloc, regcache_xfree): New functions.
4450 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4451 (regcache_dup, regcache_dup_no_passthrough): New functions.
4452 (regcache_valid_p, regcache_read_as_address): New functions.
4453 (deprecated_grub_regcache_for_registers): New function.
4454 (deprecated_grub_regcache_for_register_valid): New function.
4455 (current_regcache): New global variable.
4456 (register_buffer): Add regcache parameter. Update calls.
4457 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4458 (read_register_gen, write_register_gen): Update register_buffer
4459 call. Test for legacy_p instead of gdbarch_register_read_p or
4460 gdbarch_register_write_p.
4461 (regcache_collect): Update register_buffer call.
4462 (build_regcache): Rewrite. Use deprecated grub functions.
4463 (regcache_save, regcache_save_no_passthrough): New functions.
4464 (regcache_restore, regcache_restore_no_passthrough): New
4466 (_initialize_regcache): Create the regcache_data_handle. Swap
4467 current_regcache global variable.
4469 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4470 parameter to regcache_read and regcache_write calls.
4471 (sh4_register_read): Ditto.
4472 (sh64_pseudo_register_read): Ditto.
4473 (sh64_register_read): Ditto.
4474 (sh_pseudo_register_write): Ditto.
4475 (sh4_register_write): Ditto.
4476 (sh64_pseudo_register_write): Ditto.
4477 (sh64_register_write): Ditto.
4479 * defs.h (XCALLOC): Define.
4481 2002-06-19 Grace Sainsbury <graces@redhat.com>
4483 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4484 * m68k-tdep.c (m68k_gdbarch_init): Added.
4485 (m68k_dump_tdep): Added.
4487 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4489 * ada-lang.c (fill_in_ada_prototype): Update comment.
4491 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4493 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4495 (mips_abi_string, mips_abi_strings): New.
4496 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4497 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4498 tdep->mips_abi_string. Honor mips_abi_string. Default to
4499 O32 if no ABI is found.
4500 (mips_dump_tdep): Use mips_abi_strings.
4501 (mips_abi_update): New function.
4502 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4503 ``set mips abi'' and ``show mips abi''. Check the size of
4506 2002-06-19 Andrew Cagney <cagney@redhat.com>
4508 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4511 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4513 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4514 current frame using only the first stack size adjustment. All
4515 subsequent size adjustments are not considered to be part of
4516 the "static" part of the current frame.
4517 Compute the address of the saved registers relative to the
4518 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4519 in use in this frame.
4521 2002-06-18 Don Howard <dhoward@redhat.com>
4523 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4524 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4525 suggesting this solution.
4527 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4529 * config/romp/xm-rtbsd.h: Delete file.
4530 * config/romp/rtbsd.mh: Delete file.
4532 2002-06-18 Keith Seitz <keiths@redhat.com>
4534 * breakpoint.c (condition_command): Post breakpoint_modify
4535 when a condition is added to an existing breakpoint.
4536 (commands_command): Likewise for commands.
4537 (set_ignore_count): Likewise for ignore counts.
4538 If no tty, do not simply return, still need to send event
4540 (ignore_command): Only print a newline if the command came
4542 Don't call breakpoints_changed, since this is now properly
4543 handled by set_ignore_count.
4545 2002-06-18 Andrew Cagney <cagney@redhat.com>
4547 * MAINTAINERS: Note that cris-elf target can be compiled with
4549 * cris-tdep.c (cris_register_name): Make return type constant.
4550 (cris_breakpoint_from_pc): Ditto.
4552 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4554 * frame.h (struct frame_info): Change type of context to
4557 2002-06-17 Andrew Cagney <cagney@redhat.com>
4559 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4561 * gdbarch.h, gdbarch.c: Regenerate.
4562 * config/mips/tm-mips.h (mips_register_name): Update.
4563 * i386-tdep.h (i386_register_name): Update.
4564 * mips-tdep.c (mips_register_name): Update
4565 * alpha-tdep.c (alpha_register_name): Update.
4566 * arch-utils.c (legacy_register_name): Update.
4567 * arch-utils.h (legacy_register_name): Update.
4568 * avr-tdep.c (avr_register_name): Update.
4569 * ia64-tdep.c (ia64_register_name): Update.
4570 * i386-tdep.c (i386_register_name): Update.
4571 * sparc-tdep.c (sparc32_register_name): Update.
4572 (sparc64_register_name): Update.
4573 (sparclite_register_name): Update.
4574 (sparclet_register_name): Update.
4575 * sh-tdep.c (sh_generic_register_name): Update.
4576 (sh_sh_register_name): Update.
4577 (sh_sh3_register_name): Update.
4578 (sh_sh3e_register_name): Update.
4579 (sh_sh_dsp_register_name): Update.
4580 (sh_sh3_dsp_register_name): Update.
4581 (sh_sh4_register_name): Update.
4582 (sh_sh64_register_name): Update.
4583 * s390-tdep.c (s390_register_name): Update.
4584 * rs6000-tdep.c (rs6000_register_name): Update.
4585 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4586 (ns32k_register_name_32382): Update.
4587 * d10v-tdep.c (d10v_ts2_register_name): Update.
4588 (d10v_ts3_register_name): Update.
4589 * xstormy16-tdep.c (xstormy16_register_name): Update.
4590 * vax-tdep.c (vax_register_name): Update.
4591 * v850-tdep.c (v850_register_name): Update.
4592 * m68hc11-tdep.c (m68hc11_register_name): Update.
4593 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4594 (am33_register_name): Update.
4596 2002-06-17 Grace Sainsbury <graces@redhat.com>
4598 * m68k-tdep.c: Reindented.
4600 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4602 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4603 list of predefined types.
4605 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4607 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4608 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4609 REGISTER_CONVERT_TO_RAW): Remove defines.
4610 (i386_register_virtual_type, i386_register_convertible,
4611 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4613 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4614 macros mentioned above.
4616 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4617 (i386lynx_saved_pc_after_call): Remove prototype.
4618 * i386ly-tdep.c: Include "i386-tdep.h".
4619 (i386lynx_saved_pc_after_call): Make static. Use
4620 read_memory_nobpt instead of read_memory. Use
4621 read_memory_unsigned_integer instead of read_memory_integer.
4622 (i386lynx_init_abi): New function.
4623 (i386lynx_coff_osabi_sniffer): New function.
4624 (_initialize_i386bsd_tdep): New function.
4626 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4627 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4628 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4629 (i386_fix_call_dummy): Remove prototype.
4630 * i386-tdep.c (i386_call_dummy_words): New variable.
4631 (i386_gdbarch_init): Adjust for removal of the
4632 macros mentioned above.
4634 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4636 * command.h (add_setshow_auto_boolean_cmd): Replace
4637 add_set_auto_boolean_cmd.
4638 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4639 add_set_auto_boolean_cmd.
4640 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4641 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4642 mask-address'' command.
4643 (show_mask_address): Add cmd parameter.
4644 * remote.c (add_packet_config_cmd): Update. Change type of
4645 set_func and show_func to cmd_sfunc_ftype.
4646 (_initialize_remote): Update `set remote Z-packet'
4647 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4648 (show_remote_protocol_e_packet_cmd): Ditto.
4649 (show_remote_protocol_E_packet_cmd): Ditto.
4650 (show_remote_protocol_P_packet_cmd): Ditto.
4651 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4652 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4653 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4654 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4655 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4656 (show_remote_protocol_Z_packet_cmd): Ditto.
4657 (show_remote_protocol_binary_download_cmd): Ditto.
4658 (show_remote_cmd): Pass NULL to all of above.
4660 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4662 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4663 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4664 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4665 POP_FRAME): Remove defines.
4666 (i386_push_arguments, i386_store_struct_return,
4667 i386_extract_return_value, i386_store_return_value,
4668 i386_extract_struct_value_address, i386_push_dummy_frame,
4669 i386_pop_frame): Renove prototypes.
4670 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4671 macros mentioned above.
4673 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4675 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4676 add_set_boolean_cmd.
4677 (add_setshow_cmd): New function.
4678 * command.h (add_setshow_boolean_cmd): Replace
4679 add_set_boolean_cmd.
4680 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4681 and ``set rdiromatzero''.
4682 * maint.c (_initialize_maint_cmds): Update commented out code.
4683 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4684 * target.c (initialize_targets): Update `set
4685 trust-readonly-sections'.
4686 * remote.c (_initialize_remote): Update `set remotebreak'.
4688 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4690 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4691 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4692 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4693 fit into multi-arch framework.
4694 (i386_breakpoint_from_pc): New function.
4695 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4698 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4699 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4700 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4701 (i386_frameless_function_invocation, i386_frame_num_args,
4702 i386_frame_init_saved_regs): Remove prototypes.
4703 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4704 macros mentioned above.
4706 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4708 * cli/cli-decode.c (set_cmd_cfunc): Update.
4709 (set_cmd_sfunc): Update.
4710 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4711 (set_cmd_sfunc, set_cmd_cfunc): Update.
4712 * cli/cli-decode.h: Update.
4714 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4716 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4717 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4719 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4721 * defs.h (auto_boolean): Declare enum.
4722 * command.h (cmd_auto_boolean): Delete enum.
4723 * mips-tdep.c (mask_address_var): Update.
4724 (mips_mask_address_p): Update.
4725 (show_mask_address): Update.
4726 * remote.c (struct packet_config): Update.
4727 (update_packet_config): Update.
4728 (show_packet_config_cmd): Update.
4729 (packet_ok): Update.
4730 (add_packet_config_cmd): Update.
4731 (_initialize_remote):
4732 * command.h: Update.
4733 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4734 (do_setshow_command): Update.
4735 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4736 * cli/cli-decode.h: Update.
4738 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4740 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4741 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4742 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4743 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4744 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4745 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4747 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4748 list of DJGPP COFF targets.
4750 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4751 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4752 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4753 (FP0_REGNUM): Remove define.
4754 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4755 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4756 (i386_register_virtual_size): Remove protoype.
4757 * i386-tdep.c (i386_register_virtual_size): Removed.
4758 (i386_extract_return_value, i386_store_return_value): Use
4759 FP0_REGNUM instead of NUM_FREGS to determine whether the
4760 floating-point registers are available.
4761 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4762 Adjust for removal of macros mentioned above.
4764 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4766 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4768 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4770 (supply_gregset, fill_gregset): Remove use of register keyword and
4771 remove declaration for regmap. Use I386_NUM_GREGS instead of
4772 NUM_REGS and NUM_FREGS.
4773 (FPREGSET_FSAVE_OFFSET): Remove.
4774 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4775 NUM_FREGS to determine whether the floating-point registers are
4778 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4779 gnu_store_registers): Replace usage of NUM_GREGS with
4782 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4783 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4784 usage of NUM_GREGS with I386_NUM_GREGS.
4786 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4788 * i386bsd-nat.c: Include "i386-tdep.h".
4789 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4792 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4793 and associated comment. They no longer make any sense, since we
4794 don't use this file anymore on Linux.
4796 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4797 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4798 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4799 elements in these arrays.
4800 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4803 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4805 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4806 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4808 2002-06-14 Andrew Cagney <cagney@redhat.com>
4810 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4811 EXTRACT_RETURN_VALUE.
4812 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4813 EXTRACT_STRUCT_VALUE_ADDRESS.
4814 * gdbarch.h, gdbarch.c: Regenerate.
4816 * values.c (value_being_returned): Handle
4817 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4818 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4820 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4821 * arm-tdep.c (arm_gdbarch_init): Update.
4822 * avr-tdep.c (avr_gdbarch_init): Update.
4823 * cris-tdep.c (cris_gdbarch_init): Update.
4824 * d10v-tdep.c (d10v_gdbarch_init): Update.
4825 * ia64-tdep.c (ia64_gdbarch_init): Update.
4826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4828 * s390-tdep.c (s390_gdbarch_init): Update.
4829 * sh-tdep.c (sh_gdbarch_init): Update.
4830 * s390-tdep.c (s390_gdbarch_init): Update.
4831 * sparc-tdep.c (sparc_gdbarch_init): Update.
4832 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4833 * v850-tdep.c (v850_gdbarch_init): Update.
4834 * vax-tdep.c (vax_gdbarch_init): Update.
4835 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4836 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4838 * config/arc/tm-arc.h: Update.
4839 * config/d30v/tm-d30v.h: Update.
4840 * config/fr30/tm-fr30.h: Update.
4841 * config/h8300/tm-h8300.h: Update.
4842 * config/h8500/tm-h8500.h: Update.
4843 * config/i386/tm-i386.h: Update.
4844 * config/i386/tm-ptx.h: Update.
4845 * config/i386/tm-symmetry.h: Update.
4846 * config/i960/tm-i960.h: Update.
4847 * config/m32r/tm-m32r.h: Update.
4848 * config/m68k/tm-delta68.h: Update.
4849 * config/m68k/tm-linux.h: Update.
4850 * config/m68k/tm-m68k.h: Update.
4851 * config/m88k/tm-m88k.h: Update.
4852 * config/mcore/tm-mcore.h: Update.
4853 * config/mips/tm-mips.h: Update.
4854 * config/mn10200/tm-mn10200.h: Update.
4855 * config/pa/tm-hppa.h: Update.
4856 * config/pa/tm-hppa64.h: Update.
4857 * config/sparc/tm-sp64.h: Update.
4858 * config/sparc/tm-sparc.h: Update.
4859 * config/sparc/tm-sparclet.h: Update.
4860 * config/z8k/tm-z8k.h: Update.
4862 2002-06-14 Andrew Cagney <cagney@redhat.com>
4864 * Makefile.in (i386_linux_tdep_h): Define.
4865 (i386_tdep_h, i387_tdep_h): Define.
4866 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4867 $(i386_tdep_h) and $(i387_tdep_h).
4868 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4870 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4872 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4873 Already covered by the default.
4875 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4876 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4877 (i386_gdbarch_init): Initialize long_double_format and long_double
4880 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4881 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4883 * config/i386/i386sol2.mh: ... here.
4884 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4885 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4886 (SIGCONTEXT_PC_OFFSET): Remove define.
4887 (IN_SIGTRAMP): Remove define.
4888 * i386-sol2-tdep.c: New file.
4890 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4891 * config/i386/tm-i386nw.h: Removed.
4893 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4894 USE_STRUCT_CONVENTION): Remove defines.
4895 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4896 (get_longjmp_target): Remove prototype.
4897 (IN_SIGTRAMP): Remove define.
4898 (i386bsd_in_sigtramp): Remove prototype.
4899 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4900 function. Update comment accordingly
4901 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4902 (FRAME_SAVED_PC): Remove define.
4903 (i386bsd_frame_saved_pc): Remove prototype.
4904 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4905 GET_LONGJMP_TARGET): Remove defines.
4906 (get_longjmp_target): Remove prototype.
4907 (IN_SIGTRAMP): Remove define.
4908 (i386bsd_in_sigtramp): Remove prototype.
4909 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4910 function. Update comment accordingly
4911 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4912 (FRAME_SAVED_PC): Remove define.
4913 (i386bsd_frame_saved_pc): Remove prototype.
4914 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4916 (USE_STRUCT_CONVENTION): Remove prototype.
4917 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4919 (_initialize_i386bsd_nat): Revise logic to determine some
4920 constants at compile time when compiling a native GDB. Warn if
4921 things don't match up with what we expect.
4922 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4924 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4925 to use date stored in `struct gdbarch_tdep'.
4926 (i386bsd_sigcontext_offset): Remove varaible.
4927 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4928 stored in `struct gdbarch_tdep'.
4929 (i386bsd_frame_saved_pc): Make static.
4930 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4931 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4932 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4933 i386fbsd4_sc_pc_offset): New variables.
4934 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4935 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4937 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4939 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4940 Modify the value of i386fbsd_sigtramp_start and
4941 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4942 i386fbsd_sigtramp_end.
4943 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4946 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4947 define to i386-linux-tdep.h.
4948 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4949 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4951 (i386_linux_register_name, i386_linux_register_byte,
4952 i386_linux_register_raw_size): Remove prototypes.
4953 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4954 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4955 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4956 TARGET_WRITE_PC): Remove defines.
4957 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4958 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4959 i386_linux_write_pc): Remove prototypes.
4960 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4961 (get_longjmp_target): Remove prototype.
4962 * i386-linux-tdep.h: New file.
4963 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4964 * i386-linux-tdep.c: Include "i386-tdep.h" and
4965 "i386-linux-tdep.h".
4966 (i386_linux_register_name, i386_linux_register_byte,
4967 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4968 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4970 (i386_linux_init_abi): New function.
4971 (_initialize_i386_linux_tdep): New function.
4973 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4974 (i386_saved_pc_after_call): Remove prototype.
4975 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4976 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4977 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4978 (i386_register_name, i386_stab_reg_to_regnum,
4979 i386_dwarf_reg_to_regnum): Remove prototypes.
4980 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4981 SIZEOF_SSE_REGS): Remove defines.
4982 (REGISTER_BYTES): Remove define.
4983 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4984 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4985 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4986 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4987 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4988 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4989 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4990 (get_longjmp_target): Remove prototype.
4991 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4992 (sigtramp_saved_pc): Remove define.
4993 (i386v4_sigtramp_saved_pc): Remove prototype.
4994 * config/i386/tm-go32.h (FRAME_CHAIN,
4995 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4996 (i386go32_frame_saved_pc): Remove prototype.
4997 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4998 (get_longjmp_target): Remove prototype.
4999 * i386-tdep.h: Include "osabi.h".
5000 (enum i386_abi): Removed.
5001 (enum struct_return): New enum.
5002 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5003 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5004 sc_pc_offset members.
5005 (i386_gdbarch_register_os_abi): Remove prototype.
5006 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5007 I386_SSE_NUM_REGS): New defines.
5008 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5009 I386_SSE_SIZEOF_REGS): New defines.
5010 (i386_register_name, i386_register_byte, i386_register_raw_size):
5012 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5013 (i386bsd_sigtramp_saved_pc): New prototype.
5014 * i386-tdep.c: Don't include "elf-bfd.h".
5015 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5016 i386_frame_chain, i386_saved_pc_after_call): Make static.
5017 (i386_frame_saved_pc): Rewrite to call architecture dependent
5018 function to deal with signal handlers. Make static.
5019 (i386go32_frame_saved_pc): Removed.
5020 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5022 (i386_get_longjmp_target): New function.
5023 (default_struct_convention, pcc_struct_convention,
5024 reg_struct_convention, valid_conventions, struct_convention): New
5026 (i386_use_struct_convention): New function.
5027 (i386v4_sigtramp_saved_pc): Renamed to
5028 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5029 (i386_pc_in_sigtramp): New function.
5030 (i386_abi_names): Removed.
5031 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5032 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5034 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5035 i386_gdbarch_register_os_abi): Removed.
5036 (struct i386_abi_handler): Removed.
5037 (i386_abi_handler_list): Removed.
5038 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5040 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5041 i386_nw_init_abi): New functions.
5042 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5043 Use set_gdbarch_xxx() calls instead of relying on macros for a
5045 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5046 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5047 Register the various architecture variants defined in this file.
5049 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5051 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5052 (struct main_type): Remove arg_types member. Update comments for
5054 (TYPE_ARG_TYPES): Remove.
5055 (TYPE_FN_FIELD_ARGS): Update.
5056 (smash_to_method_type): Update prototype.
5058 * c-typeprint.c (cp_type_print_method_args): Take method type
5059 instead of argument list. Use new argument layout. Simplify.
5060 (c_type_print_args): Use new argument layout. Simplify.
5061 (c_type_print_base): Update call to cp_type_print_method_args.
5062 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5063 argument; use die->type instead. Update call to
5064 smash_to_method_type.
5065 (read_structure_scope): Update call to dwarf2_add_member_fn.
5066 * gdbtypes.c (allocate_stub_method): Update comment.
5067 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5068 Use new argument layout.
5069 (check_stub_method): Use new argument layout. Don't count
5070 void as an argument.
5071 (print_arg_types): Update comments. Use new argument layout.
5072 (recursive_dump_type): Don't print arg_types member.
5073 * hpread.c (hpread_read_struct_type): Use new argument layout.
5074 (fixup_class_method_type): Likewise.
5075 (hpread_type_lookup): Likewise.
5076 * stabsread.c (read_type): Update calls to read_args and
5077 smash_to_method_type.
5078 (read_args): Use new argument layout. Simplify.
5079 * valops.c (typecmp): Use new argument layout. Update parameters
5080 and comments. Simplify.
5081 (hand_function_call): Use new argument layout.
5082 (search_struct_method): Update call to typecmp.
5083 (find_overload_match): Use new argument layout.
5085 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5087 * NEWS: Mention multithreaded debug support for gdbserver.
5089 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5091 * MAINTAINERS: Mention NEWS.
5093 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5095 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5096 (struct mips_objfile_private, compare_pdr_entries): New.
5097 (non_heuristic_proc_desc): Read the ".pdr" section if it
5100 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5102 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5103 (arm_debug): New static variable.
5104 (_initialize_arm_tdep): Add ``set debug arm'' command.
5106 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5108 * Makefile.in (sim_arm_h): Define.
5109 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5110 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5111 (arm_register_sim_regno): New function, map an internal REGNUM
5112 onto a simulator register number.
5113 (arm_gdbarch_init): Set register_sim_regno.
5115 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5117 * MAINTAINERS: Add self.
5119 2002-06-11 Jim Blandy <jimb@redhat.com>
5121 * source.c (source_info): Mention whether the symtab has
5122 information about preprocessor macros.
5124 Call the command `info macro', not `show macro'.
5125 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5127 (_initialize_macrocmd): Register `info_macro_command' in
5128 `infolist', not `showlist'.
5130 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5132 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5133 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5134 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5135 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5136 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5138 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5139 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5140 (_initialize_mips_tdep): Remove dead code.
5141 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5142 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5143 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5144 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5145 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5146 MIPS_LAST_FP_ARG_REGNUM): Remove.
5148 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5150 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5151 (unwind_tmp_obstack_free, parse_frame_info)
5152 (update_context, cfi_read_fp, cfi_write_fp)
5153 (cfi_frame_chain, cfi_init_extra_frame_info)
5154 (cfi_virtual_frame_pointer): Use the above function.
5155 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5157 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5159 * v850-tdep.c (v850_type_is_scalar): New function.
5160 (v850_use_struct_convention): Match current gcc implementation
5161 as close as possible.
5162 (v850_push_arguments): Fix stack_offset handling. Don't write
5163 struct_addr into register. This is done by v850_store_struct_return.
5164 (v850_extract_return_value): Care for structs.
5165 (v850_store_return_value): Ditto.
5166 (v850_store_struct_return): Actually write address.
5168 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5170 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5171 without debug information too.
5173 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5175 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5176 Make multi-arch pure.
5177 * gdbarch.h, gdbarch.c: Re-generate.
5178 * arm-tdep.c (arm_print_float_info): Update.
5179 * arch-utils.h (default_print_float_info): Update.
5180 * arch-utils.c (default_print_float_info): Update.
5181 * infcmd.c (float_info): Update call.
5183 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5185 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5186 the front of the initialize list.
5188 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5190 * infrun.c (struct inferior_status): Replace fields
5191 selected_frame_address and selected_level with field
5193 (save_inferior_status): Update. Use get_frame_id.
5194 (struct restore_selected_frame_args): Delete.
5195 (restore_selected_frame): Update. Use frame_find_by_id.
5196 (restore_inferior_status): Update.
5198 * breakpoint.h (struct breakpoint): Change type of
5199 watchpoint_frame to frame_id.
5200 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5201 call to get_current_frame.
5202 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5204 (watchpoint_check): Use frame_find_by_id.
5206 * frame.h (record_selected_frame): Delete declaration.
5207 * stack.c (record_selected_frame): Delete function.
5209 * frame.h (struct frame_id): Define.
5210 (get_frame_id): Declare.
5211 (frame_find_by_id): Declare.
5212 * frame.c (frame_find_by_id): New function.
5213 (get_frame_id): New function.
5215 2002-06-10 Andrey Volkov <avolkov@transas.com>
5217 * ser-e7kpc.c: Fix duplicated define and call of
5218 _initialize_ser_e7000pc
5220 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5222 * signals/signals.c (target_signal_from_host): Fix #ifdef
5224 (do_target_signal_to_host): Likewise.
5226 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5228 * mips-tdep.c (mips_find_abi_section): New function.
5229 (mips_gdbarch_init): Call it.
5231 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5233 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5234 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5235 after Andrew's 2002-06-08 gdbarch change.
5237 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5239 * i386-linux-nat.c (suppy_gregset): Don't supply
5240 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5242 (fill_gregset): Don't fetch it under the same circumstances.
5244 2002-06-09 Andrew Cagney <cagney@redhat.com>
5246 * Makefile.in (callback_h): Define.
5247 (remote_sim_h): Update path to remote-sim.h.
5248 (remote-rdp.o): Add $(callback_h).
5249 (remote-sim.o): Use $(callback_h).
5250 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5251 * remote-rdp.c: Include "gdb/callback.h".
5253 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5255 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5256 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5258 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5260 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5261 * rdi-share/serpardr.c: Ditto.
5262 * rdi-share/unixcomm.c: Ditto.
5263 * rdi-share/serdrv.c: Ditto.
5264 * rdi-share/hostchan.h: Ditto.
5265 * rdi-share/hostchan.c: Ditto.
5266 * rdi-share/host.h: Ditto.
5267 * rdi-share/devsw.c: Ditto.
5269 * objfiles.h: Change type of obj_private to void pointer.
5270 * pa64solib.c: Update copyright. Don't include "assert.h", use
5271 strcmp instead of STREQ, use LONGEST, do not use PTR
5272 * somsolib.c: Ditto.
5274 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5275 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5276 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5278 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5280 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5281 (default_get_saved_register): Delete function.
5282 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5283 generic_unwind_get_saved_register.
5284 * gdbarch.h, gdbarch.c: Re-generate.
5286 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5288 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5289 generic_func_frame_chain_valid.
5290 * gdbarch.h, gdbarch.c: Re-generate.
5291 * blockframe.c (generic_func_frame_chain_valid): Only check
5292 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5293 passing FP to PC_IN_CALL_DUMMY.
5296 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5298 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5299 (register_gdbarch_data): Initialize init_p.
5300 (gdbarch_data): Initialize data pointer using the init function.
5301 (init_gdbarch_data): Delete function.
5302 (gdbarch_update_p): Update.
5303 (initialize_non_multiarch): Update.
5304 (struct gdbarch): Add field initialized_p.
5305 * gdbarch.h, gdbarch.c: Re-generate.
5307 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5309 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5310 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5311 better do the things actually here.
5312 * x86-64-tdep.c (x86_64_register_name2nr): New.
5313 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5314 (x86_64_gdbarch_init): Respect the above change.
5315 * x86-64-tdep.h (x86_64_register_name2nr)
5316 (x86_64_register_nr2name): Add prototypes.
5317 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5319 2002-06-06 Michael Snyder <msnyder@redhat.com>
5321 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5322 Delete extra braces and re-indent.
5323 (d10v_store_return_value): Char return values
5324 must be shifted over by one byte in R0.
5325 (d10v_extract_return_value): Delete extra braces, re-indent.
5327 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5329 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5330 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5331 (d10v_integer_to_address): Rewrite.
5332 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5333 the d10v specific functions which take care of converting to the
5336 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5338 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5339 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5341 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5343 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5345 * config/tm-linux.h: Ditto.
5346 * config/alpha/tm-alphalinux.h: Ditto.
5347 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5348 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5349 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5350 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5351 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5352 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5353 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5354 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5355 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5356 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5357 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5358 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5359 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5360 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5361 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5362 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5363 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5364 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5365 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5366 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5367 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5368 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5369 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5370 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5371 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5372 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5373 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5374 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5375 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5376 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5377 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5378 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5379 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5380 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5381 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5382 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5383 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5385 2002-05-04 Aidan Skinner <aidan@velvet.net>
5387 * ada-exp.tab.c: New file
5388 * ada-exp.y: New file
5389 * ada-lang.c: New file
5390 * ada-lang.h: New file
5391 * ada-lex.c: New file
5392 * ada-lex.l: New file
5393 * ada-tasks.c: New file
5394 * ada-typeprint.c: New file
5395 * ada-valprint.c: New file
5397 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5399 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5400 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5402 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5404 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5405 insetead of ppc-linux-tdep.o.
5406 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5407 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5409 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5411 2002-05-07 Christian Groessler <chris@groessler.org>
5412 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5413 bit register contents for little endian hosts.
5415 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5417 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5420 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5422 * gdbarch.h: Regenerate.
5424 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5426 * MAINTAINERS: Add everyone to write-after-approval list.
5428 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5430 * stack.c (frame_info): Use frame_register_unwind instead of
5431 saved_regs. Mention when the SP is on the stack or in a register.
5433 * frame.h (frame_register_unwind_ftype): Define. Document.
5434 (struct frame_info): Add field register_unwind and
5435 register_unwind_cache.
5436 (frame_register_unwind): Declare.
5437 (generic_unwind_get_saved_register): Declare.
5439 * frame.c (frame_register_unwind): New function.
5440 (generic_unwind_get_saved_register): New function.
5442 * blockframe.c (generic_call_dummy_register_unwind): New function.
5443 (frame_saved_regs_register_unwind): New function.
5444 (set_unwind_by_pc): New function.
5445 (create_new_frame): New function.
5446 (get_prev_frame): New function.
5448 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5450 * a29k-share/: Delete directory.
5451 * remote-vx29k.c: Delete file.
5453 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5455 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5456 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5458 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5460 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5461 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5464 (sparcnbsd-tdep.o): New dependency lists.
5465 * NEWS: Note new UltraSPARC NetBSD native configuration.
5466 * configure.host (sparc64-*-netbsd*): New host.
5467 * configure.tgt (sparc-*-netbsdelf*)
5468 (sparc-*-netbsd*): Set gdb_target to nbsd.
5469 (sparc64-*-netbsd*): New target.
5470 * sparc64nbsd-nat.c: New file.
5471 * sparcnbsd-nat.c: New file.
5472 * sparcnbsd-tdep.c: New file.
5473 * sparcnbsd-tdep.h: New file.
5474 * config/sparc/nbsd.mt: New file.
5475 * config/sparc/nbsd64.mh: New file.
5476 * config/sparc/nbsd64.mt: New file.
5477 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5478 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5480 * config/sparc/nbsdaout.mt: Remove.
5481 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5482 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5484 * config/sparc/nbsdelf.mt: Remove.
5485 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5486 sparc-nat.c compatiblity defines.
5487 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5488 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5489 * config/sparc/tm-nbsd64.h: New file.
5490 * config/sparc/tm-nbsdaout.h: Remove.
5491 * config/sparc/xm-nbsd.h: Remove.
5493 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5495 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5496 * sparc-tdep.c: Include osabi.h.
5497 (gdbarch_tdep): Add osabi member.
5498 (_initialize_sparc_tdep): Use gdbarch_register.
5499 (sparc_gdbarch_init): Use generic OS ABI framework.
5500 (sparc_dump_tdep): New function.
5502 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5504 * corefile.c (do_captured_read_memory_integer): Return non-zero
5506 (safe_read_memory_integer): Copy result of memory read when
5507 status is non-zero. Also, add comments.
5509 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5511 * Makefile.in (ppc_tdep_h): Define.
5514 (rs6000-tdep.o): Use $(ppc_tdep_h).
5517 (ppcnbsd-tdep.o): New dependency lists.
5518 * ppc-tdep.h: Use generic OS ABI framework.
5519 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5520 (ppc_linux_init_abi): New functions.
5521 (ppc_sysv_abi_broken_use_struct_convention)
5522 (ppc_sysv_abi_use_struct_convention)
5523 (ppc_sysv_abi_push_arguments): Move to...
5524 * ppc-sysv-tdep.c: ...here.
5525 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5526 * rs6000-tdep.c (process_note_abi_tag_sections)
5527 (get_elfosabi): Remove.
5528 (rs6000_gdbarch_init): Use generic OS ABI framework.
5529 (rs6000_dump_tdep): New function.
5530 (_initialize_rs6000_tdep): Use gdbarch_register.
5531 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5532 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5533 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5534 of ppc-linux-tdep.o.
5535 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5536 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5537 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5538 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5539 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5540 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5542 2002-05-29 Jim Blandy <jimb@redhat.com>
5544 * macroscope.c (default_macro_scope): Put `void' in empty argument
5547 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5549 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5550 * arch-utils.c: Include "sim-regno.h".
5551 * gdbarch.sh: Don't include "sim-regno.h".
5552 * gdbarch.h, gdbarch.c: Regenerate.
5553 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5555 * arch-utils.h (legacy_register_sim_regno): To here.
5556 * remote-sim.c (legacy_register_sim_regno): Move function from
5558 * arch-utils.c (legacy_register_sim_regno): To here.
5560 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5562 * sim-regno.h: New file.
5563 * Makefile.in (sim_regno_h): Define.
5564 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5565 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5566 (legacy_register_sim_regno): New function.
5567 (one2one_register_sim_regno): New function.
5568 (gdbsim_fetch_register): Rewrite.
5569 (gdbsim_store_register): Only store a register when
5570 REGISTER_SIM_REGNO is valid.
5571 * d10v-tdep.c: Include "sim-regno.h".
5572 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5573 (d10v_ts3_register_sim_regno): Ditto.
5574 * gdbarch.sh: Include "sim-regno.h".
5575 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5576 * gdbarch.h, gdbarch.c: Regenerate.
5577 * arch-utils.h (default_register_sim_regno): Delete declaration.
5578 * arch-utils.c (default_register_sim_regno): Delete function.
5580 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5582 * ppcnbsd-nat.c: Rewrite.
5583 * ppcnbsd-tdep.c: New file.
5584 * ppcnbsd-tdep.h: New file.
5585 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5586 solib.o, and solib-svr4.o.
5587 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5588 nbsd-tdep.o, and corelow.o.
5590 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5592 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5593 `tr' and `sed'. Mention that `broken' targets are not expected to
5596 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5598 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5599 Let PC point right after the prologue before looking up symbols.
5601 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5603 * i386-tdep.c (i386_register_virtual_type): Return
5604 builtin_type_vec128i for SSE registers.
5606 * gdbtypes.h (builtin_type_vec128i): Declare.
5608 * gdbtypes.c (build_builtin_type_vec128i): New function.
5609 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5610 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5611 (build_gdbtypes): Initialize new builtin vector types.
5612 (_initialize_gdbtypes): Register new vector types with gdbarch.
5614 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5616 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5617 since it has been multi-arch'd.
5618 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5619 Move Alpha and VAX multi-arch news entries to same section
5620 as other multi-arch news.
5622 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5624 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5625 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5626 static. Rename some register numbers to put them in ns32k-tdep
5628 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5629 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5631 (_initialize_ns32k_tdep): Use gdbarch_register.
5632 * ns32k-tdep.h: New file.
5633 * ns32knbsd-tdep.c: New file.
5634 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5635 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5636 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5637 REGISTER_BYTES, REGISTER_BYTE): Remove.
5638 * config/ns32k/tm-ns32k.h: New file.
5639 * config/ns32k/tm-umax.h: Remove.
5641 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5643 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5644 ns32k_store_struct_return, ns32k_extract_return_value,
5645 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5647 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5648 ns32k_saved_pc_after_call.
5649 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5650 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5651 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5652 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5653 ns32k_extract_struct_value_address.
5655 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5657 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5658 ns32k_fix_call_dummy): New.
5659 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5660 ns32k_call_dummy_words.
5661 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5662 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5663 CALL_DUMMY_NARGS): Remove.
5664 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5666 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5668 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5669 ns32k_frame_saved_pc, ns32k_frame_args_address,
5670 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5671 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5672 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5673 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5674 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5675 (BREAKPOINT): Remove..
5676 (FRAME_CHAIN): Define as ns32k_frame_chain.
5677 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5678 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5679 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5680 (FRAME_FIND_SAVED_REGS): Remove.
5681 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5682 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5683 (POP_FRAME): Define as ns32k_pop_frame.
5685 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5687 * ns32k-tdep.c (ns32k_register_byte_32082,
5688 ns32k_register_byte_32382, ns32k_register_raw_size,
5689 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5691 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5692 ns32k_register_byte_32382.
5693 * config/ns32k/tm-umax.h: Update copyright years.
5694 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5695 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5696 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5697 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5698 (ns32k_get_enter_addr): Fix prototype.
5700 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5702 * ns32k-tdep.c: Update copyright years.
5703 (ns32k_register_name_32082): New function.
5704 (ns32k_register_name_32382): Ditto.
5705 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5706 (REGISTER_NAME): Define as ns32k_register_name_32382.
5707 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5708 (REGISTER_NAME): Define as ns32k_register_name_32082.
5710 2002-05-24 Jim Blandy <jimb@redhat.com>
5712 * dwarf2read.c (free_line_header): Use xfree, not free.
5714 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5716 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5717 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5719 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5721 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5723 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5725 From Ross Alexander at NEC Europe:
5726 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5728 2002-05-23 Michael Snyder <msnyder@redhat.com>
5730 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5731 for input, rather than parse_and_eval_address.
5733 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5735 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5736 * Makefile.in (sim_d10v_h): Update definition.
5738 2002-05-24 Andrew Cagney <cagney@redhat.com>
5740 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5741 change `2002-05-22 Michael Snyder' below.
5742 (d10v_push_arguments): Ditto.
5743 (d10v_extract_return_value): Ditto.
5745 2002-05-23 Jim Blandy <jimb@redhat.com>
5747 * macrotab.c (check_for_redefinition): Don't complain if the new
5748 definition is the same as the previous one. Take more arguments
5749 to allow the comparison.
5750 (macro_define_object, macro_define_function): Pass more arguments
5751 to check_for_redefinition.
5753 2002-05-22 Michael Snyder <msnyder@redhat.com>
5755 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5756 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5757 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5758 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5759 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5760 Add a temp variable to save a call (and a memory read).
5761 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5762 if possible (so that PC_IN_CALL_DUMMY will work).
5764 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5766 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5768 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5770 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5772 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5773 (dwarf2_build_frame_info): Add offset to fde->initial_location
5774 so that frames of shared libraries are mapped correctly.
5775 (execute_stack_op): Change type of 'result' from ULONGEST to
5778 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5780 * config/alpha/tm-nbsd.h: Include solib.h.
5782 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5784 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5785 assumptions about the host's byte order.
5787 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5789 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5791 * alphanbsd-tdep.c: Include solib-svr4.h.
5792 * shnbsd-tdep.c: Ditto.
5794 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5796 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5797 nbsd-tdep.h to dependency list.
5798 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5799 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5800 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5801 nbsdaout.mh and nbsdelf.mh consistently.
5802 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5803 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5804 nbsdaout.mt and nbsdelf.mh consistently.
5805 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5806 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5807 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5808 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5809 a.out shared library stuff from here...
5810 * config/nm-nbsdaout.h: ...to here.
5811 * config/tm-nbsd.h: Remove.
5812 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5813 * config/arm/nbsd.mh: Remove.
5814 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5816 * config/arm/nbsdaout.mh: New file.
5817 * config/arm/nbsdelf.mh: New file.
5818 * config/arm/nm-nbsdaout.h: New file.
5819 * config/i386/nbsd.mh: Remove.
5820 * config/i386/nbsd.mt: Remove.
5821 * config/i386/nbsdaout.mh: New file.
5822 * config/i386/nbsdaout.mt: New file.
5823 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5824 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5825 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5826 i386_register_u_addr): Remove.
5827 * config/i386/nm-nbsdaout.h: New file.
5828 * config/i386/nm-nbsdelf.h: Remove.
5829 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5830 (USE_STRUCT_CONVENTION): Remove.
5831 * config/i386/tm-nbsdaout.h: New file.
5832 * config/i386/tm-nbsdelf.h: Remove.
5833 * config/m68k/nbsd.mh: Remove.
5834 * config/m68k/nbsd.mt: Remove.
5835 * config/m68k/nbsdaout.mh: New file.
5836 * config/m68k/nbsdaout.mt: New file.
5837 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5838 * config/m68k/nm-nbsdaout.h: New file.
5839 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5840 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5841 * config/ns32k/nbsd.mh: Remove.
5842 * config/ns32k/nbsd.mt: Remove.
5843 * config/ns32k/nbsdaout.mh: New file.
5844 * config/ns32k/nbsdaout.mt: New file.
5845 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5846 * config/ns32k/nm-nbsdaout.h: New file.
5847 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5848 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5849 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5850 (SVR4_SHARED_LIBS): Remove.
5851 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5852 * config/sparc/nbsd.mh: Remove.
5853 * config/sparc/nbsd.mt: Remove.
5854 * config/sparc/nbsdaout.mh: New file.
5855 * config/sparc/nbsdaout.mt: New file.
5856 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5857 * config/sparc/nbsdelf.mt: New file.
5858 * config/sparc/nm-nbsdaout.h: New file.
5859 * config/sparc/nm-nbsdelf.h: Remove.
5860 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5861 * config/sparc/tm-nbsdaout.h: New file.
5863 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5865 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5867 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5869 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5871 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5873 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5875 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5877 * NEWS: Note new MIPS NetBSD native configuration.
5878 * configure.host (mips*-*-netbsd*): New host.
5879 * configure.tgt (mips*-*-netbsd*): New target.
5880 * mipsnbsd-nat.c: New file.
5881 * mipsnbsd-tdep.c: New file.
5882 * mipsnbsd-tdep.h: New file.
5883 * config/mips/nbsd.mh: New file.
5884 * config/mips/nbsd.mt: New file.
5885 * config/mips/nm-nbsd.h: New file.
5886 * config/mips/tm-nbsd.h: New file.
5888 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5890 * Makefile.in (SFILES): Add osabi.c.
5891 (COMMON_OBS): Add osabi.o.
5892 (osabi.o): New dependency list.
5893 * osabi.c: New file.
5894 * osabi.h: New file.
5895 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5897 * Makefile.in (alpha_tdep_h): Define and use instead of
5899 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5900 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5902 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5903 * alpha-tdep.h: Include osabi.h.
5904 (alpha_abi): Remove.
5905 (gdbarch_tdep): Use generic OS ABI framework.
5906 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5907 gdbarch_register_osabi.
5908 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5909 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5910 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5912 * Makefile.in (sh_tdep_h): Add osabi.h.
5913 * sh-tdep.h (sh_osabi): Remove.
5914 (gdbarch_tdep): Use generic OS ABI framework.
5915 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5916 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5917 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5918 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5920 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5921 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5922 gdbarch_register_osabi.
5923 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5924 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5925 (get_elfosabi): Rename to...
5926 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5927 ABI framework support routines.
5928 (arm_gdbarch_init): Use generic OS ABI framework.
5929 (arm_dump_tdep): Likewise.
5930 (_initialize_arm_tdep): Likewise.
5931 * arm-tdep.h: Include osabi.h.
5933 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5935 (arm_gdbarch_register_os_abi): Remove prototype.
5936 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5937 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5939 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5940 * mips-tdep.c: Include osabi.h.
5941 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5944 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5946 * h8300-tdep.c: Fix formatting.
5948 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5950 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5951 printing vector registers.
5953 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5955 From Fernando Nasser:
5956 * remote.c (remote_async_open_1): Re-throw the exception when the
5958 (remote_cisco_open): Ditto.
5959 (remote_open_1): Ditto.
5961 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5963 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5964 (remote_start_remote): Add uiout parameter. Pass through to
5965 remote_start_remote_dummy.
5966 (remote_open_1): Use catch_exception instead of catch_errors.
5967 (remote_async_open_1): Ditto.
5968 (remote_cisco_open): Ditto.
5970 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5972 * remote.c (remote_start_remote): Replace PTR with void pointer.
5973 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5976 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5978 * gdb_indent.sh: Allow the script to be run in the sim directory.
5980 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5982 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5983 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5985 * corelow.c (core_open): Only call set_gdbarch_from_file if
5988 2002-05-17 Andrey Volkov <avolkov@transas.com>
5990 * h8300-tdep.c: Add support of EXR register
5991 * config/h8300/tm-h8300.h: Ditto.
5993 2002-05-17 Andrey Volkov <avolkov@transas.com>
5995 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5997 2002-05-17 Andrey Volkov <avolkov@transas.com>
5999 * h8300-tdep.c: Change literal regnums to REGNO.
6001 2002-05-17 Jim Blandy <jimb@redhat.com>
6003 * NEWS: Note addition of macro support.
6005 Expand preprocessor macros in C expressions.
6006 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6007 (scan_macro_expansion, scanning_macro_expansion,
6008 finished_macro_expansion): New function declarations.
6009 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6010 variable declarations.
6011 * parser-defs.h (expression_context_pc): New declaration.
6012 * parse.c (expression_context_pc): New variable.
6013 (parse_exp_1): Set expression_context_pc, as well as
6014 expression_context_block.
6015 * c-exp.y (yylex): If we're not already reading the result of a
6016 macro expansion, try to macro-expand the next token. When we're
6017 done scanning a macro expansion, switch back to the mainline text.
6018 Commas and `if's in a macro's expansion don't terminate the input.
6019 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6020 (macro_original_text, macro_expanded_text,
6021 expression_macro_lookup_func, expression_macro_lookup_baton): New
6023 (scan_macro_expansion, scanning_macro_expansion,
6024 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6025 c_preprocess_and_parse): New functions.
6026 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6027 c_preprocess_and_parse, instead of c_parse.
6028 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6029 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6031 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6033 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6034 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6035 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6037 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6039 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6041 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6043 * Makefile.in (sh_tdep_h): Define and use.
6044 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6045 register enum): Move to...
6046 * * sh-tdep.h: ...here.
6047 * sh-tdep.c: Include sh-tdep.h.
6048 * sh3-rom.c: Likewise.
6049 * shnbsd-tdep.c: Likewise.
6051 2002-05-16 Michael Snyder <msnyder@redhat.com>
6053 * arm-tdep.c: Spelling fix in comment.
6055 2002-05-16 Jim Blandy <jimb@redhat.com>
6057 Add commands for manually expanding macros and showing their
6059 * macrocmd.c, macroscope.c, macroscope.h: New files.
6060 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6061 (macroscope_h): New variable.
6062 (HFILES_NO_SRCDIR): Add macroscope.h.
6063 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6064 (macroscope.o, macrocmd.o): New rules.
6066 Teach the Dwarf 2 reader to read macro information.
6067 * dwarf2read.c: #include "macrotab.h".
6068 (dwarf_macinfo_buffer): New variable.
6069 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6071 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6072 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6073 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6074 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6075 dwarf2_macro_spaces_in_definition): New complaints.
6076 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6077 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6078 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6079 the partial symbol table.
6080 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6081 from what's recorded in the partial symbol table.
6082 (read_file_scope): If the compilation unit has a
6083 `DW_AT_macro_info' attribute, read its macro information.
6084 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6086 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6089 * ser-tcp.c: Don't include <netinet/udp.h>.
6091 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6093 * MAINTAINERS: Update my email address.
6095 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6097 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6098 include file of the same name.
6100 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6102 * configure.tgt: Mark v850 as multi-arched.
6103 * config/v850/tm-v850.h: Remove file.
6104 * config/v850/v850.mt: Eliminate TM_FILE.
6106 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6108 * v850-tdep.c: Full multi-arch.
6109 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6110 Define GDB_MULTI_ARCH to 2.
6112 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6114 * p-exp.y (current_type): New static variable.
6115 Carries the type of the expression at the position that is parsed.
6116 (push_current_type, pop_current_type): Two new functions. Used
6117 to store/restore current_type in expression on specific tokens.
6118 (search_field): New static variable. Set to one after parsing a point
6119 as at that point only a FIELDNAME token should be searched.
6120 (FIELDNAME): New token. After a point only a token belonging to
6121 current_type type definition is allowed.
6122 (all over token rules): reset and change current_type according
6124 (exp '[' rule): insert implicit array index field if
6125 exp is a pascal string type.
6127 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6129 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6130 frame info. Use frame_info's saved_regs instead of matching member
6131 in extra_frame_info throughout.
6132 (v850_frame_init_saved_regs): New function.
6133 (v850_init_extra_frame_info): Move most functionality into
6134 v850_frame_init_saved_regs().
6135 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6136 (v850_frame_find_saved_regs): Remove declaration.
6137 (FRAME_FIND_SAVED_REGS): Remove definition.
6138 (v850_frame_init_saved_regs): Add declaration.
6139 (FRAME_INIT_SAVED_REGS): Add definition.
6141 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6143 * v850-tdep.c: Begin multi-arch'ing v850.
6144 (v850_target_architecture_hook): Remove function.
6145 (v850_gdbarch_init): New function. Add code previously in
6146 v850_target_architecture_hook().
6147 (_initialize_v850_tdep): Don't set target_architecture_hook.
6148 Call register_gdbarch_init() instead.
6150 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6152 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6153 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6154 (fixup_class_method_type): Likewise.
6156 2002-05-15 Jim Blandy <jimb@redhat.com>
6158 Add macro structures to GDB's symbol tables. Nobody puts anything
6160 * symtab.h (struct symtab): New member: `macro_table'.
6161 * buildsym.h (pending_macros): New global variable.
6162 * buildsym.c: #include "macrotab.h".
6163 (buildsym_init): Initialize `pending_macros'.
6164 (end_symtab): If we found macro information while reading a CU's
6165 debugging info, do build a symtab structure for it. Make the
6166 symtab point to the macro information, and clear the
6167 `pending_macros' pointer which held it while we were reading the
6169 (really_free_pendings): Free any pending macro table.
6170 * objfiles.h (struct objfile): New member: `macro_cache'.
6171 * objfiles.c (allocate_objfile): Set allocate and free functions
6172 for the macro cache's objstack.
6173 (free_objfile): Empty the macro cache's obstack.
6174 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6175 set new allocate and free functions for it.
6176 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6177 free functions for the macro cache's objstack. (Why is this
6178 function building its own objfile?)
6179 * symmisc.c (print_objfile_statistics): Print statistics on the
6181 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6183 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6185 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6186 (REGISTER_U_ADDR): Delete definition.
6187 (arm_register_u_addr): Delete declaration.
6189 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6191 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6192 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6194 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6196 * regcache.c (register_valid): Revise comments refering to "Not
6197 available" and "unavailable".
6198 * frame.c (frame_register_read): Ditto.
6199 * findvar.c (value_of_register): Ditto.
6201 2002-05-15 Andrew Cagney <cagney@redhat.com>
6203 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6204 (remote-sim.o): Update dependencies.
6205 (d10v-tdep.o): Specify dependencies.
6206 (sim_d10v_h): Define.
6208 2002-05-14 Jim Blandy <jimb@redhat.com>
6210 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6211 * macrotab.c (macro_lookup_inclusion, find_definition,
6212 new_macro_table): Same.
6214 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6215 not `! strcmp ()'. This is a dubious improvement.
6216 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6218 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6219 although it's not necessary, to avoid a warning.
6221 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6223 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6224 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6225 TYPE_INSTANCE_FLAGS.
6226 (struct main_type): New.
6227 (struct type): Move most members to struct main_type. Change
6228 cv_type and as_type to new type_chain member. Add instance_flags.
6229 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6230 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6231 (finish_cv_type): Remove prototype.
6232 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6234 (alloc_type_instance): New function.
6235 (smash_type): New function.
6236 (make_pointer_type, make_reference_type, make_function_type)
6237 (smash_to_member_type, smash_to_method_type): Call smash_type.
6238 (make_qualified_type): New function.
6239 (make_type_with_address_space): Call make_qualified_type.
6240 (make_cv_type): Likewise.
6241 (finish_cv_type): Remove unnecessary function.
6242 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6243 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6244 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6245 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6246 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6247 * hpread.c (hpread_read_struct_type): Likewise.
6248 * stabsread.c (read_struct_type): Likewise.
6250 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6252 * configure.tgt: Add a catch all sh* target, for cases like
6253 sh[2,3,4]-elf and sh-hms.
6255 2002-05-14 Keith Seitz <keiths@redhat.com>
6257 * event-loop.c (create_file_handler): Don't do anything but
6258 update data when we are given a fd which we are already
6261 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6263 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6264 (update_context): Use __func__ in warnings.
6266 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6268 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6269 and tcp_close to net_open and net_close.
6270 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6271 using UDP if requested. Don't try to disable Nagle on UDP
6273 * remote.c (remote_serial_open): New function. Warn about UDP.
6274 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6276 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6278 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6280 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6282 * configure.tgt: Remove sh-hms target.
6283 * MAINTAINERS: Don't list sh-hms as a separate target.
6285 2002-05-13 Jim Blandy <jimb@redhat.com>
6287 Add first preprocessor macro-expansion files.
6288 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6289 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6290 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6291 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6292 (COMMON_OBS): Add macrotab.o, macroexp.o.
6293 (macroexp.o, macrotab.o): New rules.
6295 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6297 * config/m88k/tm-m88k.h: Update copyright.
6298 (m88k_target_write_pc): Declare
6299 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6300 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6301 (SHIFT_INST_REGS): Update definition.
6302 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6303 using old definition of TARGET_WRITE_PC.
6304 * regcache.c (generic_target_write_pc): Delete code handling
6306 * gdbarch.sh (NNPC_REGNUM): Delete.
6307 * gdbarch.h, gdbarch.c: Regenerate.
6309 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6311 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6314 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6316 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6317 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6318 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6320 * c-typeprint.c (cp_type_print_method_args): Likewise.
6321 (c_type_print_args): Likewise.
6322 * d10v-tdep.c (d10v_push_arguments): Likewise.
6323 (d10v_extract_return_value): Likewise.
6324 * expprint.c (print_subexp): Likewise.
6325 * gdbtypes.c (lookup_primitive_typename): Likewise.
6326 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6327 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6328 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6329 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6330 (TYPE_VECTOR): Likewise.
6331 * hpread.c (hpread_read_struct_type)
6332 (fix_static_member_physnames, fixup_class_method_type)
6333 (hpread_type_lookup): Likewise.
6334 * mdebugread.c (parse_symbol, parse_type): Likewise.
6335 * p-lang.c (is_pascal_string_type): Likewise.
6336 * valops.c (hand_function_call): Likewise.
6337 * x86-64-tdep.c (classify_argument): Likewise.
6339 * hpread.c (hpread_read_function_type)
6340 (hpread_read_doc_function_type): Call replace_type.
6341 * dstread.c (create_new_type): Delete.
6342 (decode_dst_structure, process_dst_function): Call alloc_type.
6343 Use type access macros.
6345 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6347 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6348 the're not supported by the current architecture.
6349 (i387_fill_fxsave): Likewise.
6351 2002-05-12 Fred Fish <fnf@redhat.com>
6353 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6354 sect_index_xxx members to index the first slot in section_offsets
6355 if all of the section_offsets are zero.
6357 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6359 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6360 checked in with last change.
6362 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6364 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6365 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6368 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6370 * Makefile.in: Update dependencies.
6372 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6374 * language.c (local_hex_string_custom): Simplify. Do not depend
6375 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6377 * memattr.c (mem_info_command): Replace calls to
6378 longest_local_hex_string and longest_local_hex_string_custom.
6379 * buildsym.c (make_blockvector): Ditto.
6380 * solib.c (info_sharedlibrary_command): Ditto.
6381 * tracepoint.c (tracepoints_info): Ditto.
6382 * symtab.c (print_msymbol_info): Ditto.
6384 * language.c (local_hex_string): Delete.
6385 (local_hex_string_custom): Delete.
6386 (longest_local_hex_string): Rename to local_hex_string.
6387 (longest_local_hex_string_custom): Rename to
6388 local_hex_string_custom.
6389 * language.h (local_hex_string): Change parameter type to LONGEST.
6390 (local_hex_string_custom): Ditto.
6391 (longest_local_hex_string): Delete declaration.
6392 (longest_local_hex_string_custom): Ditto.
6394 * solib.c: Update copyright.
6395 * memattr.c: Update copyright.
6397 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6399 * arch-utils.h (legacy_register_to_value): Declare.
6400 (legacy_value_to_register): Declare.
6401 (legacy_convert_register_p): Declare.
6402 * arch-utils.c (legacy_register_to_value): New function.
6403 (legacy_value_to_register): New function.
6404 (legacy_convert_register_p): New function.
6406 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6407 (VALUE_TO_REGISTER): Define.
6408 (CONVERT_REGISTER_P): Define.
6409 * gdbarch.h, gdbarch.c: Regenerate.
6411 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6413 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6416 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6417 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6419 * Makefile.in: Update dependencies for valops.c.
6420 * valops.c: Include "gdb_assert.h".
6421 (typecmp): Skip THIS parameter to methods.
6422 (find_method_list): Remove static_memfuncp argument,
6423 update callers. Check for stub methods.
6424 (find_value_oload_method_list): Don't set *static_memfuncp.
6425 (find_overload_match): Don't check for stub methods. Assert
6426 that methods are not stubbed. Handle static methods.
6427 (value_find_oload_method_list): Remove static_memfuncp argument.
6428 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6429 to the argument list for static stub methods.
6430 * value.h (value_find_oload_method_list): Update prototype.
6432 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6434 * arch-utils.h (generic_register_size): Declare.
6435 (generic_register_raw_size, generic_register_virtual_size): Delete
6437 * arch-utils.c (generic_register_raw_size): Delete.
6438 (generic_register_size): New function.
6439 (generic_register_virtual_size): Delete.
6441 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6442 default generic_register_size.
6443 * gdbarch.h, gdbarch.c: Re-generate.
6445 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6446 register_virtual_size.
6447 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6450 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6452 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6453 * gdbarch.h, gdbarch.c: Regenerate.
6454 * gnu-v3-abi.c: Update copyright.
6455 (vtable_address_point_offset): Update.
6456 (gnuv3_rtti_type): Update.
6457 (gnuv3_baseclass_offset): Update.
6458 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6459 (init_fetch_link_map_offsets): Update.
6460 * remote.c (get_remote_state): Update.
6462 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6464 * TODO: Remove value_headof/value_from_vtable_info comment.
6465 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6466 * values.c (value_headof, value_from_vtable_info): Delete.
6467 * value.h (value_from_vtable_info): Delete prototype.
6469 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6471 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6472 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6474 (gdb_assert_h): Define.
6475 (gdb_wait_h): Define.
6476 (gdb_regex_h): Define.
6478 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6480 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6481 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6483 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6485 * nbsd-tdep.c: Fix comment.
6487 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6489 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6490 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6491 (nbsd-tdep.o): New dependency list.
6492 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6494 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6495 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6496 * nbsd-tdep.c: New file.
6497 * nbsd-tdep.h: New file.
6498 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6500 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6501 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6502 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6503 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6505 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6507 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6508 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6509 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6510 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6511 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6512 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6514 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6516 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6517 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6518 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6519 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6520 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6521 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6522 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6524 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6526 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6527 fetch_elfcore_registers to...
6528 * i386nbsd-tdep.c: ...here.
6529 (i386nbsd_use_struct_convention): Rename to...
6530 (i386nbsd_aout_use_struct_convention): ...this.
6531 (i386nbsd_supply_reg): New function.
6532 (i386nbsd_fill_reg): New function.
6533 (fetch_core_registers): Use i386nbsd_supply_reg.
6534 (fetch_elfcore_registers): Likewise.
6535 (_initialize_i386nbsd_tdep): New function.
6536 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6537 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6538 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6539 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6540 (i386nbsd_aout_use_struct_convention): ...this.
6542 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6544 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6545 (store_inferior_registers): Use shnbsd_fill_reg.
6546 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6547 sh_nbsd_supply_register): Collapse into...
6548 (shnbsd_supply_reg): ...this.
6549 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6550 (shnbsd_fill_reg): ...this.
6551 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6552 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6553 (fetch_core_registers): Use shnbsd_supply_reg.
6554 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6555 (sh_nbsd_core_fns): Rename to...
6556 (shnbsd_core_fns): ...this.
6557 (sh_nbsd_elfcore_fns): Rename to...
6558 (shnbsd_elfcore_fns): ...this.
6559 (sh_nbsd_init_abi): Rename to...
6560 (shnbsd_init_abi): ...this.
6561 (_initialize_sh_nbsd_tdep): Rename to...
6562 (_initialize_shnbsd_tdep): ...this.
6563 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6564 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6565 sh_nbsd_fill_register): Remove prototypes.
6566 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6568 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6570 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6571 (i387-nat.o): Delete dependency list.
6572 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6573 (x86-64-linux-nat.o): Likewise.
6574 * i387-nat.c: Delete file, moving contents to...
6575 * i387-tdep.c: ...here.
6576 * i387-nat.h: Rename...
6577 * i387-tdep.h: ...to this.
6578 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6579 * i386-linux-nat.c: Likewise.
6580 * i386bsd-nat.c: Likewise.
6581 * i386gnu-nat.c: Likewise.
6582 * i386nbsd-nat.c: Likewise.
6583 * i386v4-nat.c: Likewise.
6584 * x86-64-linux-nat.c: Likewise.
6585 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6586 * config/i386/go32.mh (NATDEPFILES): Likewise.
6587 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6588 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6589 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6590 * config/i386/linux.mh (NATDEPFILES): Likewise.
6591 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6592 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6593 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6594 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6596 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6598 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6599 (alphanbsd-nat.o): Remove dependency list.
6600 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6601 * alphanbsd-nat.c: Delete. Contents moved to...
6602 * alphanbsd-tdep.c: ...here.
6603 (_initialize_alphanbsd_tdep): Register core functions.
6604 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6606 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6608 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6609 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6610 (alphanbsd-nat.o): Likewise.
6611 (alphabsd-tdep.o): New dependency list.
6612 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6613 (fill_gregset): Use alphabsd_fill_reg.
6614 (supply_fpregset): Use alphabsd_supply_fpreg.
6615 (fill_fpregset): Use alphabsd_fill_fpreg.
6616 (fetch_inferior_registers): Use struct reg and struct fpreg
6617 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6618 and alphabsd_supply_fpreg.
6619 (store_inferior_registers): Use struct reg and struct fpreg
6620 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6621 and alphabsd_fill_fpreg.
6622 * alphabsd-tdep.c: New file.
6623 * alphabsd-tdep.h: New file.
6624 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6625 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6626 alphabsd_supply_fpreg.
6627 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6628 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6630 2002-05-11 Eric Christopher <echristo@redhat.com>
6632 * mips-tdep.c (mips_double_register_type): Fix thinko.
6633 (mips_single_register_type): Ditto.
6634 * MAINTAINERS: Add self.
6636 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6638 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6639 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6640 right thing on architectures with different endianness and/or
6643 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6645 From Christian Limpach <chris@Pin.LU>
6646 * configure.in: Change sed expression which comments out
6647 NATDEPFILES to also comment out continuation lines.
6648 * configure: Regenerate.
6650 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6652 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6655 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6657 * sh-tdep.c: Include correct file.
6659 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6661 New support for sh64-elf (sh5) target.
6663 * configure.tgt: For sh64-elf target, default to sh-elf.
6665 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6666 (struct gdbarch_tdep): Add new fields for new registers and ABI
6669 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6670 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6671 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6672 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6673 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6674 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6675 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6676 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6677 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6678 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6679 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6680 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6681 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6682 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6683 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6684 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6685 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6686 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6687 sign_extend, sh64_nofp_frame_init_saved_regs,
6688 sh64_init_extra_frame_info, sh64_get_saved_register,
6689 sh64_extract_struct_value_address, sh64_pop_frame,
6690 sh64_push_arguments, sh64_extract_return_value,
6691 sh64_store_return_value, sh64_show_media_regs,
6692 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6693 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6694 sh_sh64_register_virtual_type,
6695 sh_sh64_register_convert_to_virtual,
6696 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6697 sh64_register_read, sh64_pseudo_register_write,
6698 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6699 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6700 sh64_do_pseudo_register, sh_compact_do_registers_info,
6701 sh64_do_registers_info, sh_gdbarch_init): New functions.
6703 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6705 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6707 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6709 * linespec.c (decode_line_1): Check for a double quote after
6710 a filename correctly.
6712 2002-05-10 Jim Blandy <jimb@redhat.com>
6714 Properly track the size of the current objfile's .debug_line section.
6715 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6716 (DWARF_LINE_SIZE): New macro.
6717 (dwarf2_build_psymtabs_hard): Record the line section's size in
6718 the partial symbol table.
6719 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6722 2002-05-10 Petr Sorfa <petrs@caldera.com>
6724 * ia64-tdep.c: Handle breakpoints on L instruction type
6725 in MLX instruction bundle by moving the breakpoint to
6726 the third slot (X instruction type) as L holds only data.
6728 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6730 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6731 (process_one_symbol): Complain about discarding local symbols
6732 due to a misplaced N_LBRAC entry.
6734 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6736 From Daniel Berlin <dan@cgsoftware.com>
6737 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6738 decrease the depth we are at, in the case of templates.
6740 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6742 * mips-tdep.c (mips_float_register_type): New function.
6743 (mips_double_register_type): New function.
6744 (mips_print_register): Use them.
6745 (do_fp_register_row): Likewise.
6747 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6749 * signals/signals.c (signals): Remove conditional compilation around
6750 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6751 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6753 2002-05-09 Michael Snyder <msnyder@redhat.com>
6755 * remote-rdp.c (remote_rdp_can_run): Remove.
6757 2002-05-09 Tom Tromey <tromey@redhat.com>
6759 * jv-valprint.c (java_val_print): Handle `char' as a special case
6762 2002-05-09 Michael Snyder <msnyder@redhat.com>
6764 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6765 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6766 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6767 str r(0123),[sp,#nn].
6768 (arm_skip_prologue): Ditto. Also make disassembly
6769 order-independent by placing it in a loop.
6771 2002-05-06 Michael Snyder <msnyder@redhat.com>
6773 * stabsread.c (read_type): Add recognition for new attribute:
6774 "@V;" means that an array type is actually a vector.
6775 This is analogous to the vector flag that's been added to dwarf2.
6777 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6779 * i386-tdep.h (i386_abi): New enum.
6780 (struct gdbarch_tdep): Replace os_ident member with abi.
6781 (i386_gdbarch_register_os_abi): New prototype.
6782 * i386-tdep.c (i386_abi_names): New array.
6783 (process_note_abi_tag_sections): Removed.
6784 (process_note_sections): New function.
6785 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6786 (struct i386_abi_handler): New struct.
6787 (i386_abi_handler_list): New variable.
6788 (i386_gdbarch_register_os_abi): New function.
6789 (i386_gdbarch_init): Adapt for the changes given above.
6791 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6793 * gregset.h: Say "GNU/Linux".
6795 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6797 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6798 (build_gdbtypes): Build builtin_type_v2_float.
6799 (_initialize_gdbtypes): Register new builtin type.
6801 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6803 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6804 (clear_gdbarch_swap): New function.
6805 (initialize_non_multiarch): Call.
6806 (gdbarch_update_p): Before calling init(), swap out and clear the
6807 existing architecture.
6808 * gdbarch.c: Regenerate.
6810 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6812 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6815 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6817 * sh-nbsd-nat.c: Rename to...
6818 * shnbsd-nat.c: ...this.
6819 * sh-nbsd-tdep.c: Rename to...
6820 * shnbsd-tdep.c: ...this.
6821 * sh-nbsd-tdep.h: Rename to...
6822 * shnbsd-tdep.h: ...this.
6823 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6824 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6826 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6828 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6829 concatenation for command help messages.
6831 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6833 * NEWS: Note new sh*-*-netbsdelf* configuration.
6834 * configure.host: Set gdb_host_cpu to sh for all sh*.
6835 (sh*-*-netbsdelf*): New host.
6836 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6837 (sh*-*-netbsdelf*): New target.
6838 * sh-nbsd-nat.c: New file.
6839 * sh-nbsd-tdep.c: New file.
6840 * sh-nbsd-tdep.h: New file.
6841 * config/sh/nbsd.mh: New file.
6842 * config/sh/nbsd.mt: New file.
6843 * config/sh/nm-nbsd.h: New file.
6844 * config/sh/tm-nbsd.h: New file.
6846 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6848 * sh-tdep.c (sh_osabi_names): Declare.
6849 (process_note_abi_tag_sections): New function.
6850 (get_elfosabi): Ditto.
6851 (sh_gdbarch_register_os_abi): Ditto.
6852 (sh_dump_tdep): Ditto.
6853 _initialize_sh_tdep): Use gdbarch_register to register
6854 sh_gdbarch_init and sh_dump_tdep.
6855 * config/sh/tm-sh.h (sh_osabi): Declare.
6856 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6858 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6860 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6861 (thumb_scan_prologue): Ditto.
6862 (arm_find_callers_reg): Ditto.
6863 (arm_frame_chain): Ditto.
6864 (arm_init_extra_frame_info): Ditto.
6865 (arm_frame_saved_pc): Ditto.
6866 (arm_pop_frame): Ditto.
6867 (arm_push_return_address): New function.
6868 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6869 call_dummy_location, call_dummy_breakpoint_offset_p,
6870 call_dummy_breakpoint_offset, call_dummy_p,
6871 call_dummy_stack_adjust_p, call_dummy_words,
6872 sizeof_call_dummy_words, call_dummy_start_offset,
6873 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6874 call_dummy_address, push_return_address and push_dummy_frame for
6875 generic dummy frames.
6877 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6879 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6880 size computation for alloca.
6881 (sh_fp_frame_init_saved_regs): Likewise.
6883 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6885 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6886 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6887 * arm-tdep.c (arm_store_return_value): Use them.
6888 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6889 * remote-rdp.c (remote_rdp_fetch_register): Use
6890 ARM_MAX_REGISTER_RAW_SIZE.
6891 (remote_rdp_store_register): Likewise.
6893 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6895 * dwarf2cfi.c: Code cleanup, removed unused variables,
6896 added default labels to switch {} statements.
6897 * x86-64-tdep.c: Ditto.
6898 * x86-64-linux-nat.c: Ditto.
6900 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6902 * solib.h: Protect against multiple inclusion.
6904 2002-05-06 Jim Blandy <jimb@redhat.com>
6906 Add first preprocessor macro-expansion files.
6907 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6908 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6909 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6910 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6911 (COMMON_OBS): Add macrotab.o, macroexp.o.
6912 (macroexp.o, macrotab.o): New rules.
6914 Separate the job of reading the line number info statement program
6915 header (...expialidocious) out into its own function.
6916 * dwarf2read.c (struct line_head, struct filenames, struct
6917 directories): Replace with...
6918 (struct line_header): New structure, containing the full
6919 contents of the statement program header, including the
6920 include directory and file name tables.
6921 (read_file_scope): If we have line number info, instead of just
6922 calling dwarf_decode_lines to do all the work, call
6923 dwarf_decode_line_header first to get a `struct line_header'
6924 containing the data in the statement program header, and then
6925 pass that to dwarf_decode_lines, which will pick up where that
6926 left off. Be sure to clean up the `struct line_header' object.
6927 (dwarf_decode_line_header, free_line_header, add_include_dir,
6928 add_file_name): New functions.
6929 (dwarf_decode_lines): Move all the code to read the statement
6930 program header into dwarf_decode_line_header. Take the line
6931 header it built as the first argument, instead of the offset to
6932 the compilation unit's line number info. Use the new `struct
6933 line_header' type instead of the old structures. No need to do
6934 cleanups here now, since we don't allocate anything.
6935 (dwarf2_statement_list_fits_in_line_number_section,
6936 dwarf2_line_header_too_long): New complaints.
6938 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6940 * gdbtypes.c (init_vector_type): New function.
6941 (build_builtin_type_vec128): Simplify the representation of SIMD
6943 (build_gdbtypes): Initialize new builtin vector types.
6944 (_initialize_gdbtypes): Register new vector types with gdbarch.
6945 (builtin_type_v4_float, builtin_type_v4_int32,
6946 builtin_type_v8_int16, builtin_type_v16_int8,
6947 builtin_type_v2_int32, builtin_type_v4_int16,
6948 builtin_type_v8_int8): New (renamed) SIMD types.
6950 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6952 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6953 (i387_fill_fxsave): Likewise.
6955 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6957 * alpha-tdep.c (alpha_extract_return_value): Don't use
6958 non-constant array size in prototype.
6960 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6962 From Brian Taylor <briant at model dot com>:
6963 * ui-out.c (ui_out_field_core_addr): Use the function
6964 longest_local_hex_string_custom'to format addresses > 32 bits
6967 * ui-out.c (ui_out_field_core_addr): Update comment.
6969 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6971 * stack.c (select_and_print_frame): Make static. Delete the
6973 (func_command): Update call.
6974 (select_frame_command): Delete code computing the frame level.
6975 * frame.h (select_and_print_frame): Delete declaration.
6977 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6979 * sparc-tdep.c (sparc_get_saved_register): Comment why
6980 get_prev_frame call is safe.
6982 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6984 * frame.h (select_frame): Delete level parameter.
6985 * stack.c (select_frame): Update. Use frame_relative_level to
6986 obtain the frame's level.
6987 (select_and_print_frame): Update call.
6988 (select_frame_command): Ditto.
6989 (up_silently_base): Ditto.
6990 (down_silently_base): Ditto.
6991 * ocd.c (ocd_start_remote): Ditto.
6992 * remote-rdp.c (remote_rdp_open): Ditto.
6993 * remote-mips.c (mips_initialize): Ditto.
6994 (common_open): Ditto.
6995 * remote-e7000.c (e7000_start_remote): Ditto.
6996 * m3-nat.c (select_thread): Ditto.
6997 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6998 (child_get_current_exception_event): Ditto.
6999 * varobj.c (varobj_create): Ditto.
7000 (varobj_update): Ditto.
7001 (c_value_of_root): Ditto.
7002 * tracepoint.c (finish_tfind_command): Ditto.
7003 * corelow.c (core_open): Ditto.
7004 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7005 * thread.c (info_threads_command): Ditto.
7006 (switch_to_thread): Ditto.
7007 * infrun.c (normal_stop): Ditto.
7008 (restore_selected_frame): Ditto.
7009 (restore_inferior_status): Ditto.
7010 * breakpoint.c (insert_breakpoints): Ditto.
7011 (watchpoint_check): Ditto.
7012 (bpstat_stop_status): Ditto.
7013 (do_enable_breakpoint): Ditto.
7014 * blockframe.c (flush_cached_frames): Ditto.
7015 (reinit_frame_cache): Ditto.
7017 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7019 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7022 2002-05-04 Jim Blandy <jimb@redhat.com>
7024 * gdbtypes.c (replace_type): Doc fix.
7026 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7028 * valprint.c (strcat_longest): Delete commented out function.
7031 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7033 * MAINTAINERS: Mark a29k as deleted.
7034 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7035 Move new configurations to the top.
7036 * configure.tgt: Remove a29k.
7037 * config/a29k/tm-vx29k.h: Delete.
7038 * config/a29k/vx29k.mt: Delete.
7039 * config/a29k/tm-a29k.h: Delete.
7040 * config/a29k/a29k-udi.mt: Delete.
7041 * config/a29k/a29k.mt: Delete.
7042 * a29k-tdep.c: Delete.
7043 * remote-udi.c: Delete.
7044 * remote-mm.c: Delete.
7045 * remote-eb.c: Delete.
7046 * remote-adapt.c: Delete.
7047 * Makefile.in: Remove obsolete code.
7048 * config/s390/s390x.mt: Ditto.
7049 * config/s390/s390.mt: Ditto.
7050 * config/sparc/sparclynx.mh: Ditto.
7051 * config/sparc/linux.mh: Ditto.
7052 * config/pa/hppaosf.mh: Ditto.
7053 * config/pa/hppabsd.mh: Ditto.
7054 * config/ns32k/nbsd.mt: Ditto.
7055 * config/mips/vr5000.mt: Ditto.
7056 * config/m68k/sun3os4.mh: Ditto.
7057 * config/m68k/nbsd.mt: Ditto.
7058 * config/m68k/m68klynx.mh: Ditto.
7059 * config/m32r/m32r.mt: Ditto.
7060 * config/i386/x86-64linux.mt: Ditto.
7061 * config/i386/nbsdelf.mt: Ditto.
7062 * config/i386/nbsd.mt: Ditto.
7063 * config/i386/i386lynx.mh: Ditto.
7065 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7067 * target.c (debug_print_register): New function. Handle oversize
7069 (debug_to_fetch_registers): Call.
7070 (debug_to_store_registers): Call.
7072 2002-05-03 Jim Blandy <jimb@redhat.com>
7074 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7075 (read_type): Doc fix.
7076 * gdbtypes.c (replace_type): Doc fix.
7078 * stabsread.c (multiply_defined_struct): New complaint.
7079 (read_struct_type): If the type we were passed isn't empty, or
7080 incomplete, don't read the new struct type into it; complain,
7081 and return the original type unchanged. Take a new `type_code'
7082 argument, which is the type code for the new type.
7083 (read_type): Rather than storing the type's type code here, pass
7084 it as an argument to read_struct_type, and let that take care of
7085 storing it. That way, we don't overwrite the original type code,
7086 so read_struct_type can use it to decide whether we're overwriting
7087 something we shouldn't.
7088 (complain_about_struct_wipeout): New function.
7090 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7092 * gdbarch.sh: Assert that gdbarch is non-NULL.
7093 * gdbarch.c: Regenerate.
7095 2002-05-03 Jason Merrill <jason@redhat.com>
7097 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7100 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7102 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7103 (x86_64_dwarf2gdb_regno_map_length),
7104 (x86_64_dwarf2_reg_to_regnum): Added.
7105 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7106 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7107 (_initialize_x86_64_tdep): Synced with the change above.
7108 (x86_64_skip_prologue): Reformulated message.
7110 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7112 * f-exp.y: Also use new prev_lexptr variable
7113 to improve error reporting. Based on Michael Snyder
7114 2002-04-24 dated patch to c-exp.y.
7115 * jv-exp.y: Likewise.
7116 * m2-exp.y: Likewise.
7118 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7120 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7121 we are dealing with vectors.
7123 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7125 * config/m68k/tm-nbsd.h: Obvious fix,
7126 correct machine name.
7128 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7130 * p-typeprint.c (pascal_type_print_base): Add support
7131 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7133 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7135 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7136 for fondamental pascal 'char' type.
7138 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7140 * p-lang.h (is_pascal_string_type): Declaration changed,
7141 new sixth argument of type char ** added.
7142 * p-lang.c (is_pascal_string_type): Implementation
7143 changed. Args length_pos, length_size, string_pos, char_size
7144 can now be NULL. New argument arrayname set to the field
7145 name of the char array. Return value set to char array
7146 field index plus one.
7147 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7148 is_pascal_string_type function.
7150 2002-05-02 Andrew Cagney <cagney@redhat.com>
7152 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7153 <cagney@redhat.com> change.
7154 * gdbarch.c: Regenerate.
7156 2002-05-02 Andrew Cagney <cagney@redhat.com>
7158 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7159 before probing for a new one. Detect errorenous gdbarch_init
7161 * gdbarch.c: Regenerate.
7163 2002-05-01 Andrew Cagney <cagney@redhat.com>
7165 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7166 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7167 * config/v850/tm-v850.h: Ditto. Update copyright.
7169 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7171 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7174 2002-04-30 Michael Snyder <msnyder@redhat.com>
7176 * arm-tdep.c: Whitespace clean-ups.
7177 (arm_skip_prologue): Fix thinko; two lines
7178 should have been removed as part of 4/24 change.
7180 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7182 * rs6000-tdep.c: Added comment describing how fpscr register
7183 numbers were chosen.
7185 2002-04-30 Michael Snyder <msnyder@redhat.com>
7187 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7189 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7191 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7192 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7193 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7195 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7197 From Louis Hamilton <hamilton@redhat.com>:
7198 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7199 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7200 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7201 not bfd-private xcoff data, to determine wordsize.
7202 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7204 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7206 GDB 5.2 released from 5.2 branch.
7208 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7210 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7211 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7212 (x86_64_register_info_table): Added comments with register numbers.
7214 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7216 * rs6000-tdep.c (rs6000_extract_return_value,
7217 rs6000_store_return_value): Handle returning vectors.
7218 (rs6000_gdbarch_init): Use
7219 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7220 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7222 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7224 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7225 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7227 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7229 * hpread.c (hpread_psymtab_to_symtab_1,
7230 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7231 with fprintf_unfiltered (gdb_stderr,...).
7233 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7235 * remote-array.c (printf_monitor, write_monitor,
7236 array_insert_breakpoint, array_remove_breakpoint ):
7237 Replace fprintf (stderr,...
7238 with fprintf_unfiltered (gdb_stderr,....
7239 * remote-es.c: Likewise.
7240 * remote-os9k.c: Likewise.
7241 * remote-st.c: Likewise.
7243 2002-04-28 Andreas Schwab <schwab@suse.de>
7245 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7246 linux-proc.o and gcore.o.
7248 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7250 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7251 code without frame pointers.
7253 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7255 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7258 2002-04-26 Ben Elliston <bje@redhat.com>
7260 * target.c (do_xfer_memory): Correct reference to the new option
7261 "trust-readonly-sections".
7263 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7265 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7266 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7267 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7269 (read_array_type): Record the fact that this array type is really a
7270 vector (i.e. are passed in by value).
7272 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7274 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7275 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7276 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7277 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7278 * alpha-linux-tdep.c: Include frame.h.
7279 (alpha_linux_sigcontext_addr): New function.
7280 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7281 alpha_linux_sigcontext_addr.
7282 * alpha-osf1-tdep.c: Include gdbcore.h.
7283 (alpha_osf1_sigcontext_addr): New function.
7284 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7285 alpha_osf1_sigcontext_addr.
7286 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7287 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7289 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7291 * stack.c (selected_frame_level):
7292 (select_frame): Do not set selected_frame_level.
7293 * frame.h (selected_frame_level): Delete declaration.
7295 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7297 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7298 convert_from_func_ptr-addr when AIX / PowerOpen.
7300 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7302 * valops.c (hand_function_call): Call
7303 generic_save_call_dummy_addr.
7304 * frame.h (generic_save_call_dummy_addr): Declare.
7305 * blockframe.c (struct dummy_frame): Add fields call_lo and
7307 (generic_find_dummy_frame): Check for PC in range call_lo to
7308 call_hi instead of entry_point_address.
7309 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7310 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7311 (generic_save_call_dummy_addr): New function.
7313 2002-04-24 David S. Miller <davem@redhat.com>
7315 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7316 sparc_skip_prologue.
7317 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7318 information to find prologue when possible.
7319 (sparc_prologue_frameless_p): Call examine_prologue directly.
7320 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7321 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7323 (SKIP_PROLOGUE): Likewise.
7325 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7327 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7328 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7329 indicate that the condition it was testing is always true.
7330 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7331 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7332 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7334 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7336 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7337 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7338 tdep->jb_pc and tdep->jb_elt_size.
7339 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7340 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7341 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7342 * alpha-nat.c (get_longjmp_target): Remove.
7343 (JB_ELEMENT_SIZE): Ditto.
7345 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7346 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7347 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7348 to alpha_get_longjmp_target.
7349 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7350 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7351 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7353 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7355 * README: Update to GDB 5.2.
7357 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7359 * gdbarch.sh (LC_ALL): Set to `c'.
7361 2002-04-25 Theodore A. Roth <troth@verinet.com>
7363 * avr-tdep.c: Ran through gdb_indent.sh.
7365 2002-04-25 Theodore A. Roth <troth@verinet.com>
7367 * MAINTAINERS: Add myself as AVR maintainer.
7368 * NEWS: Note new target avr.
7370 2002-04-25 Theodore A. Roth <troth@verinet.com>
7372 * Makefile.in: Add support for AVR target.
7373 * configure.tgt: Add support for AVR target.
7374 * avr-tdep.c: New file
7375 * config/avr/avr.mt: New file.
7377 2002-04-25 Theodore A. Roth <troth@verinet.com>
7379 * MAINTAINERS: Add myself to write-after-approval.
7381 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7383 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7384 with fprintf_unfiltered (gdb_stderr,....
7386 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7389 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7391 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7393 * p-exp.y: Also use new prev_lexptr variable
7394 to improve error reporting. Based on Michael Snyder
7395 2002-04-24 dated patch to c-exp.y.
7397 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7399 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7400 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7401 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7403 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7405 (FUNCTION_START_OFFSET): Remove.
7406 (BREAKPOINT): Ditto.
7408 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7410 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7413 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7415 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7416 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7417 alpha_linux_pc_in_sigtramp.
7418 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7419 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7420 alpha_osf1_pc_in_sigtramp.
7421 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7422 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7423 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7424 alphafbsd_pc_in_sigtramp.
7425 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7426 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7427 alphanbsd_pc_in_sigtramp.
7428 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7429 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7431 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7433 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7435 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7437 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7439 (alphanbsd-nat.o): New dependency list.
7440 (alphanbsd-tdep.o): Ditto.
7441 * NEWS: Note new native NetBSD/alpha configuration.
7442 * alphanbsd-nat.c: New file.
7443 * alphanbsd-tdep.c: Ditto.
7444 * configure.host (alpha*-*-netbsd*): New host.
7445 * configure.tgt (alpha*-*-netbsd*): New target.
7446 * config/alpha/nbsd.mh: New file.
7447 * config/alpha/nbsd.mt: Ditto.
7448 * config/alpha/nm-nbsd.h: Ditto.
7449 * config/alpha/tm-nbsd.h: Ditto.
7451 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7453 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7454 (alpha-osf1-tdep.o): New dependency list.
7455 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7456 and skip_sigtramp_frame members.
7457 * alpha-linux-tdep.c: Include gdbcore.h.
7458 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7459 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7460 * alpha-osf1-tdep.c: New file.
7461 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7463 (alpha_frame_past_sigtramp_frame): New function.
7464 (alpha_dynamic_sigtramp_offset): Ditto.
7465 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7466 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7467 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7468 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7469 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7470 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7471 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7472 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7473 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7474 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7475 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7476 to find_solib_trampoline_target.
7477 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7478 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7479 (SKIP_TRAMPOLINE_CODE): Remove.
7480 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7481 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7482 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7483 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7484 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7485 (PROC_SIGTRAMP_MAGIC): Ditto.
7486 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7487 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7488 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7489 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7490 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7492 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7494 * NEWS: Note that Alpha targets are now multi-arch.
7496 2002-04-24 Michael Snyder <msnyder@redhat.com>
7498 * parser-defs.h (prev_lexptr): New external variable.
7499 * parse.c (parse_exp_1): Set prev_lexptr to null before
7500 calling the language-specific parser.
7501 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7502 (yyerror): Use prev_lexptr in error reporting.
7504 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7506 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7507 * gregset.h: If FILL_FPXREGSET is defined, provide
7508 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7509 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7510 is defined, call fill_fpxregset.
7512 2002-04-24 Roland McGrath <roland@frob.com>
7514 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7515 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7516 (supply_gregset, supply_fpregset): New functions.
7518 * gnu-nat.c (gnu_find_memory_regions): New function.
7519 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7520 (gnu_xfer_memory): Add a cast.
7522 2002-04-24 Michael Snyder <msnyder@redhat.com>
7524 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7525 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7526 of argument regs ("str r(0123), [r11, #-nn"]).
7527 (arm_skip_prologue): Better handling for frameless functions.
7528 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7529 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7531 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7533 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7534 NUM_PSEUDO_REGS can be used.
7536 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7538 * arch-utils.h: Update copyright.
7540 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7541 * gdbarch.h, gdbarch.c: Re-generate.
7543 * inferior.h (IN_SIGTRAMP): Delete definition.
7544 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7545 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7547 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7548 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7549 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7550 (find_proc_framesize): Ditto.
7551 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7552 (alpha_init_extra_frame_info): Ditto.
7553 * infrun.c (handle_inferior_event): Ditto.
7554 (handle_inferior_event): Ditto.
7555 (check_sigtramp2): Ditto.
7556 * blockframe.c (create_new_frame): Ditto.
7557 (get_prev_frame): Ditto.
7558 * ppc-linux-tdep.c: Update comments.
7559 * i386-linux-tdep.c: Update comments.
7560 * breakpoint.c (bpstat_what): Update comment.
7562 2002-04-24 David S. Miller <davem@redhat.com>
7564 * i960-tdep.c (register_in_window_p): New function.
7565 (i960_find_saved_register): Use it instead of
7566 REGISTER_IN_WINDOW_P.
7567 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7569 * symtab.h (find_stab_function_addr): Kill extern.
7570 * minsyms.c (find_stab_function_addr): Remove from here...
7571 * dbxread.c: ... to here, and mark it static.
7573 2002-04-20 David S. Miller <davem@redhat.com>
7575 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7576 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7578 2002-04-21 David S. Miller <davem@redhat.com>
7580 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7581 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7582 (vx_write_register): Likewise.
7584 2002-04-23 J. Brobecker <brobecker@gnat.com>
7586 * source.c (is_regular_file): New function.
7587 (openp): Check wether file to open is a regular file
7588 to avoid opening directories.
7590 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7592 * findvar.c (extract_signed_integer): Cast printf argument
7593 to suppress format warning.
7594 (extract_unsigned_integer): Likewise.
7595 * infcmd.c (registers_info): Likewise.
7596 * top.c (get_prompt_1): Likewise.
7597 * valops.c (value_assign): Likewise.
7598 * valprint.c (print_decimal): Likewise.
7600 2002-04-22 H.J. Lu (hjl@gnu.org)
7602 * c-exp.y (typebase): Support
7604 [long|long long|short] [signed|unsigned] [int|]
7608 signed [long|long long|short] int
7610 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7612 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7614 * vax-tdep.h: New file.
7615 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7616 Make several routines static.
7617 (vax_get_saved_register): New function.
7618 (vax_gdbarch_init): New function.
7619 (_initialize_vax_tdep): Register vax_gdbarch_init.
7620 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7621 Remove macros now under the control of gdbarch.
7623 2002-04-22 Michael Snyder <msnyder@redhat.com>
7625 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7626 Some whitespace and coding standards tweaks.
7628 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7630 * vax-tdep.c: Include regcache.h.
7631 (vax_call_dummy_words): New.
7632 (sizeof_vax_call_dummy_words): New.
7633 (vax_fix_call_dummy): New function.
7634 (vax_saved_pc_after_call): Ditto.
7635 * config/vax/tm-vax.h: Don't include regcache.h.
7636 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7637 (CALL_DUMMY): Remove.
7638 (CALL_DUMMY_WORDS): Define.
7639 (SIZEOF_CALL_DUMMY_WORDS): Define.
7640 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7642 2002-04-18 Michael Snyder <msnyder@redhat.com>
7644 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7646 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7648 * vax-tdep.c (vax_frame_chain): New function.
7649 (vax_push_dummy_frame): Ditto.
7650 (vax_pop_frame): Ditto.
7651 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7652 (FRAMELESS_FUNCTION_INVOCATION): Use
7653 generic_frameless_function_invocation_not.
7654 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7655 (POP_FRAME): Use vax_pop_frame.
7657 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7659 * vax-tdep.c (vax_store_struct_return): New function.
7660 (vax_extract_return_value): Ditto.
7661 (vax_store_return_value): Ditto.
7662 (vax_extract_struct_value_address): Ditto.
7663 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7664 vax_store_struct_return.
7665 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7666 (STORE_RETURN_VALUE): Use vax_store_return_value.
7667 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7671 * vax-tdep.c (vax_frame_saved_pc): New function.
7672 (vax_frame_args_address_correct): Ditto.
7673 (vax_frame_args_address): Ditto.
7674 (vax_frame_locals_address): Ditto.
7675 (vax_frame_num_args): Move code to be in proximity to
7676 other frame-related functions.
7677 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7678 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7679 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7680 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7681 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7683 2002-04-22 H.J. Lu (hjl@gnu.org)
7685 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7688 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7690 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7691 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7692 (FRAME_INIT_SAVED_REGS): New macro.
7694 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7696 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7698 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7700 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7702 (fetch_osf_core_registers): Likewise.
7703 (supply_gregset): Likewise.
7705 2002-04-22 J. Brobecker <brobecker@gnat.com>
7707 * symfile.h (get_section_index): Define.
7708 * symfile.c (get_section_index): New function.
7709 * mdebugread.c (SC_IS_SBSS): New macro.
7710 (SC_IS_BSS): Return true for the scBss storage class only, as
7711 the scSBss storage class refers to the .sbss section.
7712 (parse_partial_symbols): Discard the symbols which associated
7713 section does not exist.
7714 Make sure to use the .sbss section index for symbols which
7715 storage class is scBss, rather than using the .bss section index.
7717 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7719 * vax-tdep.c: Update copyright years.
7720 (vax_register_name): New function.
7721 (vax_register_byte): Ditto.
7722 (vax_register_raw_size): Ditto.
7723 (vax_register_virtual_size): Ditto.
7724 (vax_register_virtual_type): Ditto.
7725 * config/vax/tm-vax.h: Update copyright years.
7726 (REGISTER_NAMES): Remove.
7727 (REGISTER_NAME): Define.
7728 (REGISTER_BYTE): Use vax_register_byte.
7729 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7730 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7731 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7733 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7735 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7737 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7739 2002-04-21 David S. Miller <davem@redhat.com>
7741 * arch-utils.c (generic_prologue_frameless_p): Kill
7742 SKIP_PROLOGUE_FRAMELESS_P code.
7743 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7745 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7746 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7747 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7749 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7750 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7751 (sparc_gdbarch_init): Pass it to
7752 set_gdbarch_prologue_frameless_p.
7754 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7756 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7757 (alphabsd-nat.o): New dependency list.
7759 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7761 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7763 (alpha-linux-tdep.o): New dependency list.
7764 (alphafbsd-tdep.o): Likewise.
7766 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7768 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7770 * alpha-tdep.c: ...from here.
7771 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7775 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7776 prototype from here...
7777 * alpha-tdep.h: ...to here.
7779 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7781 * frame.h (selected_frame_level): Document as deprecated.
7782 (frame_relative_level): Declare.
7783 * stack.c (frame_relative_level): New function.
7784 (selected_frame_level): Document as deprecated.
7785 (select_frame): Do not set the selected_frame_level.
7787 * stack.c (frame_info, record_selected_frame): Update.
7788 (frame_command, current_frame_command): Update.
7789 (up_silently_base, up_command, down_silently_base): Update.
7790 (down_command): Update.
7791 * inflow.c (kill_command): Update.
7792 * tracepoint.c (finish_tfind_command): Update.
7793 * corelow.c (core_open): Update.
7794 * thread.c (info_threads_command): Update.
7795 (do_captured_thread_select): Update.
7796 * infcmd.c (finish_command): Update.
7797 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7799 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7801 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7803 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7805 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7808 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7810 * alphafbsd-tdep.c: Update copyright years. Include
7812 (alphafbsd_use_struct_convention): Make static.
7813 (alphafbsd_init_abi): New function.
7814 (_initialize_alphafbsd_tdep): New function.
7815 * config/alpha/tm-fbsd.h: Update copyright years.
7816 (USE_STRUCT_CONVENTION): Remove.
7818 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7820 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7821 an Alpha ABI variant.
7822 (alpha_abi_handler_list): Declare.
7823 (alpha_gdbarch_register_os_abi): New function.
7824 (alpha_gdbarch_init): Give registered ABI variant handlers a
7825 chance to tweak the gdbarch once we have set up defaults.
7826 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7828 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7830 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7831 to standard_coerce_float_to_double.
7832 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7834 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7836 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7837 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7838 from gdbarch_tdep rather than a constant.
7839 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7840 the default text address for all Alpha Unix ABIs.
7841 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7842 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7844 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7846 * alpha-tdep.h: New file. Includes several Alpha target constants
7848 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7849 let gdbarch deal with.
7850 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7851 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7853 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7854 Alpha target register names.
7855 * alphabsd-nat.c: Likewise.
7856 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7857 Alpha target register names. Make serveral routines static.
7858 (alpha_get_saved_register): New function.
7859 (alpha_abi_names): New.
7860 (process_note_abi_tag_sections): New function.
7861 (get_elfosabi): New function.
7862 (alpha_gdbarch_init): New function.
7863 (alpha_dump_tdep): New function.
7864 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7866 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7868 * frame.c (find_saved_register): Delete #ifdef
7869 HAVE_REGISTER_WINDOWS code.
7870 * config/sparc/tm-sparc.h: Update comments.
7871 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7873 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7875 * i960-tdep.c (i960_find_saved_register): New function.
7876 (i960_get_saved_register): New function.
7877 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7878 (i960_get_saved_register): Declare.
7879 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7881 2002-04-20 David S. Miller <davem@redhat.com>
7883 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7885 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7887 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7888 instead of NUM_PSEUDO_REGS.
7890 2002-04-20 David S. Miller <davem@redhat.com>
7892 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7893 GDB_MULTI_ARCH_PARTIAL
7894 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7895 define, let tm-sp64.h do it.
7897 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7899 * frame.c (find_saved_register): Avoid a NULL pointer
7900 dereference and actually walk the frame list.
7902 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7904 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7905 sorted in most most-recent-used order. Document.
7906 * gdbarch.h, gdbarch.c: Regenerate.
7908 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7910 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7912 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7913 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7914 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7917 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7920 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7921 (build_builtin_type_vec128): Ditto.
7922 (append_composite_type_field): Fix calculation of type length in
7925 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7927 * config/djgpp/README: Update.
7929 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7932 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7934 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7935 (alpha_setup_arbitrary_frame): ...to this.
7936 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7937 for alpha_setup_arbitrary_frame.
7939 2002-04-18 Andrew Cagney <cagney@redhat.com>
7941 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7942 * gdbarch.h, gdbarch.c: Regenerate.
7944 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7945 * target.h (memory_breakpoint_from_pc): Update declaration.
7946 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7948 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7949 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7950 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7951 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7952 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7953 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7954 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7955 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7956 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7957 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7958 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7959 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7961 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7963 * monitor.c (monitor_insert_breakpoint): Ditto.
7964 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7966 * config/mcore/tm-mcore.h: Update copyright.
7967 * mem-break.c: Ditto.
7968 * xstormy16-tdep.c: Ditto.
7970 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7972 * p-exp.y: Add precedence rule for '^' token.
7973 This removes the shift/reduce conflicts.
7974 Remove the comment concerning these shift/reduce conflicts.
7976 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7978 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7979 (registers_powerpc_nofp): New register set for processors
7980 without floating point unit.
7982 2002-04-18 David S. Miller <davem@redhat.com>
7984 * MAINTAINERS: Add myself to write-after-approval.
7986 2002-04-17 Michael Snyder <msnyder@redhat.com>
7988 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7990 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7992 * rs6000-tdep.c (frame_initial_stack_address): Use
7993 frame_register_read to read the alloca_reg.
7995 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7997 * frame.c (find_saved_register): Find saved registers in the next
8001 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8003 * gdbarch.sh (LANG): Set to ``c''.
8005 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8007 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8009 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8011 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8014 * hpread.c (hpread_get_lntt): Add declaration.
8015 Also fix PR gdb/391.
8017 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8019 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8020 * aclocal.m4, configure: Re-generate.
8023 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8025 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8026 instead of tm_print_insn.
8028 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8030 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8032 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8034 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8035 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8036 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8038 2002-04-12 Don Howard <dhoward@redhat.com>
8040 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8041 max_user_call_depth.
8042 (init_cmd_lists): Initialize the new value;
8043 * cli/cli-script.c (execute_user_command): Limit the call depth of
8044 user defined commands. This avoids a core-dump when user commands
8045 are infinitly recursive.
8047 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8049 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8050 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8051 from tdep struct instead of DEFAULT_LR_SAVE.
8052 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8053 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8054 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8056 2002-04-12 Michael Snyder <msnyder@redhat.com>
8058 * Remote.c: Spelling fix.
8059 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8060 If no symbol found for "sbrk", try "_sbrk".
8061 (make_output_phdrs): Use bfd_section_name.
8062 (gcore_copy_callback): Use bfd_section_name.
8063 * eval.c: Indentation fix-ups.
8064 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8065 in case it gets applied to an address that is already
8066 in the instruction space.
8067 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8068 * symfile.c: Fix indentation, long lines.
8069 * source.c: White space fix-up.
8071 2002-04-12 Andrew Cagney <cagney@redhat.com>
8073 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8074 * frame.c (frame_register_read): New function. Return non-zero on
8076 (read_relative_register_raw_bytes_for_frame): Delete.
8077 (read_relative_register_raw_bytes): Delete.
8078 * frame.h (frame_register_read): Declare.
8079 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8081 * infcmd.c (do_registers_info): Ditto.
8082 * hppa-tdep.c: Ditto.
8083 * rs6000-tdep.c: Ditto.
8084 * h8500-tdep.c: Ditto.
8085 * mips-tdep.c: Ditto.
8086 * h8300-tdep.c: Ditto.
8087 * z8k-tdep.c: Ditto.
8089 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8091 From Jimi X <jimix@watson.ibm.com>:
8092 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8095 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8097 From Jimi X <jimix@watson.ibm.com>:
8098 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8101 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8103 From Jimi X <jimix@watson.ibm.com>:
8104 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8105 register sets for these processor variants.
8107 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8109 * regformats/reg-ppc.dat: Support FPSCR.
8111 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8113 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8114 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8115 Add fpscr as an invalid/unfetchable register.
8116 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8117 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8118 (fill_fpregset): Add support for register fpscr.
8119 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8120 (fill_gregset): Account for the fact that register ``mq'' might
8122 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8123 (registers_power): Add fpscr to register set at slot 71.
8124 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8125 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8127 2002-04-11 Michael Snyder <msnyder@redhat.com>
8129 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8130 * configure: Regenerate.
8131 * config.in: Regenerate.
8132 * acconfig.h: Add define for _SYSCALL32.
8133 * core-sol2.c: Remove #define _SYSCALL32.
8134 * solib-legacy.c: Remove #define _SYSCALL32.
8136 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8138 * stack.c (select_frame): Cleanup internal error message, do not
8141 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8143 * stack.c (select_frame): Check that selected_frame and the
8144 specified level are as expected.
8145 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8147 * frame.h (struct frame_info): Add field `level'. Update
8149 Work-in-progress PR gdb/464.
8151 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8153 * maint.c (maint_print_section_info): Rename print_section_info.
8154 (print_bfd_section_info, print_objfile_section_info): Update.
8155 * inferior.h (struct gdbarch): Add opaque declaration.
8156 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8157 * gdbarch.h: Regenerate.
8159 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8161 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8162 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8163 (kernel_u_size): Added.
8164 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8165 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8167 2002-04-04 Jim Ingham <jingham@apple.com>
8169 * valarith.c (find_size_for_pointer_math): New function, either returns
8170 the size for a pointer's target, returns 1 for void *, or errors for
8172 (value_add, value_sub): use find_size_for_pointer_math.
8174 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8176 * linux-low.c (linux_look_up_symbols): New hook.
8177 (linux_target_ops): Add linux_look_up_symbols.
8178 * remote-utils.c (decode_address): New function.
8179 (look_up_one_symbol): New function.
8180 * server.c (handle_query): Call target look_up_symbols hook.
8181 * server.h (look_up_one_symbol): Add prototype.
8182 * target.h (struct target_ops): Add look_up_symbols hook.
8184 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8186 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8187 override FP_REGNUM with frame->fp. Update copyright.
8188 * parse.c (num_std_regs, std_regs): Delete.
8189 (target_map_name_to_register): Do not search std_regs. Update
8190 function description.
8191 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8192 declarations. Update copyright.
8195 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8197 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8198 after the last symbol in a block.
8200 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8202 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8203 is non zero as a found symbol.
8205 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8207 * findvar.c: Include "builtin-regs.h".
8208 (value_of_register): Call value_of_builtin_reg when applicable.
8209 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8210 (target_map_name_to_register): Call
8211 builtin_reg_map_name_to_regnum.
8212 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8213 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8214 (builtin_regs_h): Define.
8215 (builtin-regs.o): New target.
8216 (findvar.o): Add $(builtin_regs_h).
8217 * builtin-regs.c, builtin-regs.h: New files.
8218 * std-regs.c: New file.
8219 Partial fix for PR gdb/251.
8221 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8223 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8224 it's no longer required.
8226 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8228 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8230 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8232 From Jimi X <jimix@watson.ibm.com>:
8233 * rs6000-tdep.c (rs6000_software_single_step): Use
8234 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8235 and size. Use target_insert_breakpoint() and
8236 target_remove_breakpoint() to insert and remove breakpoints
8237 instead of explicit memory reads and writes.
8239 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8241 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8242 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8243 ELF_OBJECT_FORMAT ifdef.
8245 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8247 From Jimi X <jimix@watson.ibm.com>:
8248 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8250 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8252 From Jimi X <jimix@watson.ibm.com>:
8253 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8254 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8256 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8258 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8259 s/asprintf/xasprintf/.
8260 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8262 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8264 I believe Jeff Law denies responsability for this one:
8265 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8266 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8267 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8268 Work-around for PR gdb/366.
8270 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8272 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8273 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8274 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8276 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8278 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8279 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8282 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8284 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8287 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8289 * README (Reporting Bugs in GDB): Document the bug web page as the
8290 prefered way of submitting bugs.
8293 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8295 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8297 * gdbarch.h, gdbarch.c: Re-generate.
8299 2002-04-07 Andreas Schwab <schwab@suse.de>
8301 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8302 buffer to regcache_collect.
8304 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8306 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8307 * gdbarch.c, gdbarch.h: Re-generate.
8309 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8311 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8312 declaration. Fix -Werror.
8314 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8316 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8317 * gdbarch.c: Regenerate.
8319 2002-04-05 Michael Snyder <msnyder@redhat.com>
8321 * breakpoint.c (clear_command): Rewrite middle section to
8322 combine two loops with identical control conditions.
8323 Add a cleanup to eliminate a memory leak.
8324 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8326 2002-04-05 H.J. Lu (hjl@gnu.org)
8328 * solib-svr4.c (bkpt_names): Add "__start".
8330 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8332 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8333 as test for 64 bit target.
8335 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8337 * h8500-tdep.c (h8500_write_fp): Delete function.
8338 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8339 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8340 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8342 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8343 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8345 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8346 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8347 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8348 (d10v_write_fp): Delete function.
8349 * inferior.h (write_fp, generic_target_write_fp): Delete
8351 * regcache.c (generic_target_write_fp): Delete function.
8352 (write_fp): Delete function.
8353 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8354 * gdbarch.h, gdbarch.c: Regenerate.
8355 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8356 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8357 (sparc64_write_fp): Delete declaration.
8358 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8359 (h8500_write_fp): Delete declaration.
8361 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8363 * sparc-tdep.c (sparc64_write_fp): Delete.
8364 (sparc_push_dummy_frame): Replace write_fp call with code to store
8366 (sparc_gdbarch_init): Do not initialize write_fp.
8368 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8370 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8373 2002-03-29 Jim Blandy <jimb@redhat.com>
8375 * stack.c (get_selected_block): Add new argument `addr_in_block',
8376 used to return the exact code address we used to select the block,
8378 * blockframe.c (get_frame_block, get_current_block): Same.
8379 * frame.h (get_frame_block, get_current_block,
8380 get_selected_block): Update declarations.
8381 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8382 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8384 2002-04-05 Michael Snyder <msnyder@redhat.com>
8386 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8389 2002-04-05 J. Brobecker <brobecker@gnat.com>
8391 * utils.c (xfullpath): New function.
8392 * defs.h (xfullpath): Add declaration.
8393 * source.c (openp): Use xfullpath in place of gdb_realpath to
8394 avoid resolving the basename part of filenames when the
8395 associated file is a symbolic link. This fixes a potential
8396 inconsistency between the filenames known to GDB and the
8397 filenames it prints in the annotations.
8398 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8399 to be able to match a filename with either the real filename, or
8400 the name of any symbolic link to this file.
8401 (lookup_partial_symtab): Ditto.
8403 2002-04-04 Michael Snyder <msnyder@redhat.com>
8405 * breakpoint.c: Add support for hardware breakpoints in overlays.
8406 (overlay_events_enabled): New state variable.
8407 (insert_breakpoints): Use overlay_events_enabled to decide
8408 whether to attempt to set a breakpoint at the overlay load addr.
8409 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8410 (remove_breakpoint): Use overlay_events_enabled to decide
8411 whether breakpoints need to be removed from overlay load addr.
8412 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8413 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8414 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8415 disable_overlay_breakpoints): Update overlay_events_enabled.
8417 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8419 * dwarf2read.c (struct function_range): New.
8420 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8421 (check_cu_functions): New.
8422 (read_file_scope): Initialize global function lists.
8423 Call dwarf_decode_line after processing children.
8424 (read_func_scope): Add to global function list.
8425 (dwarf_decode_lines): Call check_cu_functions everywhere
8426 record_line is called. Call record_line with a linenumber
8427 of 0 to mark sequence ends.
8429 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8431 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8432 change sync with glibc.
8434 2002-04-03 Jim Blandy <jimb@redhat.com>
8436 * configure.in: Call AC_C_INLINE.
8437 * configure: Regenerated.
8439 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8441 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8442 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8444 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8446 * NEWS: Mention gcore support on FreeBSD/i386.
8448 * fbsd-proc.c: New file.
8449 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8450 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8452 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8455 2002-03-29 Jim Blandy <jimb@redhat.com>
8457 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8458 unescaped newlines in string literals, but newer ones don't. So
8461 2002-03-26 Michael Snyder <msnyder@redhat.com>
8462 Andrew Cagney <cagney@redhat.com>
8464 * cli/cli-dump.c: New file. Dump memory to file,
8465 restore file to memory.
8466 * cli/cli-dump.h: New file.
8467 * Makefile.in: Add rules, dependencies for cli-dump.o.
8468 * NEWS: Mention new commands.
8470 2002-03-28 Michael Snyder <msnyder@redhat.com>
8472 * symfile.c (symbol_file_add): Move test for null symbols to later.
8474 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8476 From veksler at il.ibm.com:
8477 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8478 the xstrduped original path.
8481 2002-03-27 Michael Snyder <msnyder@redhat.com>
8483 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8484 * infcmd.c (_initialize_infcmd): Ditto.
8485 * language.c (_initialize_language): Ditto.
8486 * symfile.c (_initialize_symfile): Ditto.
8487 * top.c (_init_main): Ditto.
8488 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8490 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8492 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8493 vector registers handling.
8494 (skip_prologue): Handle new AltiVec instructions. Fill in new
8495 fields of frame data.
8496 (frame_get_saved_regs): Fill in information for AltiVec registers.
8498 2002-03-27 Jim Blandy <jimb@redhat.com>
8500 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8501 a function; leave this macro here to invoke that function.
8502 (symbol_init_mangled_name): Declaration for that function.
8503 * symtab.c (symbol_init_mangled_name): New function.
8505 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8507 * valarith.c: Replace strerror with safe_strerror.
8508 * tracepoint.c: Ditto.
8510 * go32-nat.c: Ditto.
8514 2002-03-27 Andreas Schwab <schwab@suse.de>
8516 * event-top.c (command_line_handler): Remove useless if.
8518 2002-03-27 Andreas Jaeger <aj@suse.de>
8520 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8523 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8525 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8526 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8527 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8528 (x86_64_linux_dr_get_status, supply_gregset),
8529 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8530 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8531 (x86_64_register_info_table): Add.
8532 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8533 (x86_64_register_raw_size, x86_64_register_virtual_type),
8534 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8535 general x86_64_register_info_table.
8536 (i386_gdbarch_init): gdbarch_register_bytes is now set
8537 dynamicaly during initialization.
8538 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8539 * gdbserver/linux-x86-64-low.c: Ditto.
8541 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8543 * gdbserver/server.c (main): Call target_signal_to_host_p
8544 and target_signal_to_host on signals received from the remote.
8545 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8546 target_signal_from_host on signals sent to the remote.
8547 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8548 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8550 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8552 * signals/signals.c: Include "server.h" in gdbserver build.
8553 (target_signal_from_name): Don't use STREQ.
8554 (_initialize_signals): Likewise. Don't include function in
8557 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8559 * signals.c: Moved to...
8560 * signals/signals.c: Here.
8561 * Makefile (signals.o): Update.
8563 2002-03-26 Jeff Law (law@redhat.com)
8565 * somread.c (som_symtab_read): Remove some commented out code and
8566 updated related comments. Do not set the minimal symbol table to
8567 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8568 in a dynamic executable.
8569 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8570 where we are unable to find the minimal symbol for the given
8573 2002-03-25 Jeff Law (law@redhat.com)
8575 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8577 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8579 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8581 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8583 * command.h: Update copyright.
8584 (struct cmd_list_element): Replace definition with opaque
8586 (enum cmd_types): Document that it will eventually be moved to
8588 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8589 (MALLOCED_REPLACEMENT): Delete macro.
8590 * Makefile.in (cli_decode_h): Add $(command_h).
8591 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8592 * top.c: Include "cli/cli-decode.h".
8593 * completer.c: Include "cli/cli-decode.h".
8594 * maint.c: Include "cli/cli-decode.h".
8595 * cli/cli-decode.h: Include "command.h".
8596 (enum command_class): Delete.
8597 (enum cmd_types): Comment out.
8598 (enum cmd_auto_boolean): Delete.
8599 (enum var_types): Delete.
8601 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8603 * cli/cli-decode.c: Include "gdb_assert.h".
8604 (add_set_or_show_cmd): New static function.
8605 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8606 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8607 all fields, such as func, from the set command.
8609 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8611 * MAINTAINERS (sh-elf): Change warning flag to -w.
8613 2002-03-23 Andrew Cagney <cagney@redhat.com>
8615 * defs.h (error): Add printf format attribute.
8616 * thread-db.c (thread_from_lwp): Fix error format string.
8617 * stack.c (parse_frame_specification): Ditto.
8618 * cli/cli-decode.c (undef_cmd_error): Ditto.
8619 * scm-lang.c (scm_lookup_name): Ditto.
8620 * tracepoint.c (trace_error): Ditto.
8621 * remote-utils.c (usage): Ditto.
8622 * remote.c (compare_sections_command): Ditto.
8625 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8627 * gdbtypes.c (append_composite_type_field): New function.
8628 (init_composite_type): New function.
8629 * gdbtypes.h (append_composite_type_field): Declare.
8630 (init_composite_type): Ditto.
8632 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8634 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8636 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8637 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8638 structure returning convention for SYSV ABI case, but not
8639 for GNU/Linux, FreeBSD, or NetBSD.
8641 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8643 * symtab.h (lookup_block_symbol): Add mangled_name argument
8646 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8647 with new mangled_name argument.
8648 * linespec.c (decode_line_1): Likewise.
8649 * valops (value_of_this): Likewise.
8650 * symtab.c (lookup_transparent_type): Likewise.
8651 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8652 (lookup_symbol): If we are given a mangled name, pass it down
8653 to lookup_symbol_aux.
8654 (lookup_block_symbol): If we are given a mangled name to check
8655 against, only return symbols which match it.
8657 2002-03-22 Christopher Faylor <cgf@redhat.com>
8659 * win32-nat.c (child_create_inferior): Check for proper shell to use
8660 here, in case the user changes it on the fly.
8661 (_initialize_inftarg): Remove shell path considerations.
8663 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8665 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8666 for gdbarch_max_register_raw_size and max_register_virtual_size.
8667 Adjust copyright year.
8669 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8671 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8672 in a function to cover the entire beginning of the function
8673 as well if it does not already.
8675 2002-03-21 Tom Rix <trix@redhat.com>
8677 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8678 (rs6000_ptrace64): Renamed from ptrace64.
8680 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8682 * gdbserver/remote-utils.c (remote_open): Don't call
8683 getprotobyname, we're all using TCP here so just use
8685 * gdbserver/gdbreplay.c (remote_open): Ditto.
8687 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8689 * regcache.c (_initialize_regcache): No need to call
8690 build_regcache() at this time; it gets called whenever
8691 the gdbarch changes.
8693 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8695 * sparc-nat.c: Include sys/param.h where possible.
8697 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8700 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8701 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8702 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8704 * stabsread.c (rs6000_builtin_type): Likewise.
8705 (read_sun_floating_type): Likewise.
8707 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8709 * stabsread.c (read_member_functions): Remove skip code for duplicate
8710 constructor/destructor methods. Use standard parsing for these
8711 methods and just do not chain them to the list of methods after
8714 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8716 * coffread.c: Remove redundant static declarations. Replace
8717 occurrences of `PTR' with `void *'.
8718 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8719 * top.h (quit_cover): Likewise.
8720 * defs.h (catch_errors): Likewise.
8722 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8724 * defs.h (XMALLOC): Define.
8725 * gdb-events.sh (XMALLOC): Delete macro.
8726 * gdb-events.c, gdb-events.h: Regenerate.
8727 * gdbarch.sh (XMALLOC): Delete macro.
8728 * gdbarch.c: Regenerate.
8729 * serial.c (XMALLOC): Delete macro.
8730 * ui-file.c (XMALLOC): Ditto.
8731 * ser-unix.h (XMALLOC): Ditto.
8732 * sh-tdep.c (XMALLOC): Ditto.
8733 * ui-out.c (XMALLOC): Ditto.
8734 * utils.c (XMALLOC): Ditto.
8735 * i386-tdep.c (XMALLOC): Ditto.
8736 * gdb-events.c (XMALLOC): Ditto.
8737 * d10v-tdep.c (XMALLOC): Ditto.
8738 * cli-out.c (XMALLOC): Ditto.
8740 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8741 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8742 * ui-file.c, ui-out.c: Ditto.
8744 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8746 * command.h (struct cmd_list_element): Add field context.
8747 (set_cmd_context, get_cmd_context): Declare.
8748 * cli/cli-decode.h: Ditto.
8749 * cli/cli-decode.c (get_cmd_context): New function.
8750 (set_cmd_context): New function.
8751 (add_cmd): Initialize context.
8752 Part of fixing PR gdb/145 and PR gdb/146.
8754 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8756 * cli/cli-decode.c (cmd_type): New function.
8757 * command.h (cmd_type): Declare.
8758 * infrun.c (set_schedlock_func): Call function cmd_type.
8759 * kod.c (kod_set_os): Call cmd_type.
8760 * cris-tdep.c (cris_version_update): Use function cmd_type.
8761 (cris_mode_update, cris_abi_update): Ditto.
8763 * command.h: (execute_cmd_post_hook): Declare.
8764 (execute_cmd_pre_hook): Declare.
8765 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8766 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8767 functions. Execute pre/post hook while ensuring that afterwords
8769 * top.c (execute_command): Use execute_cmd_post_hook, and
8770 execute_cmd_pre_hook to execute pre/post commands.
8771 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8773 (hook_stop_stub): Call execute_cmd_pre_hook.
8775 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8777 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8778 set'' and this leads to a core dump. Move xstrdup of
8779 operating_system to after check that it is not NULL.
8781 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8783 * kod.c (kod_set_os): Remove unnecessary check that
8784 ``command->type'' is set_cmd.
8786 * valprint.c (set_input_radix): Use input_radix.
8787 (set_output_radix): Use output_radix.
8788 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8791 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8793 * value.h (struct value): Delete field ``substring_addr''. Change
8794 aligner fields to force_doublest_align, force_longest_align,
8795 force_core_addr_align and force_pointer_aligh.
8797 * value.h (struct value): Fix typo in above change.
8799 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8801 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8802 to fix internal_error from ``maintenance print architecture''.
8804 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8806 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8807 for gcc versions after gcc-2.8.1.
8809 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8811 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8812 for method resolution. Restore adjustment of ``this'' pointer after
8813 calling value_struct_elt, which was accidentally removed during the
8816 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8818 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8820 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8822 * value.h (value_of_register): Update.
8824 2002-03-14 Richard Henderson <rth@redhat.com>
8826 * configure.in: Detect declaration for canonicalize_file_name.
8827 * utils.c (canonicalize_file_name): Declare, if needed.
8828 (gdb_realpath): Prefer realpath if available and usable.
8829 * config.in, configure: Rebuild.
8831 2002-03-14 Richard Henderson <rth@redhat.com>
8833 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8834 a constant array bound.
8836 * MAINTAINERS: Add myself to write-after-approval.
8838 2002-03-14 Michael Snyder <msnyder@redhat.com>
8840 * symfile.c (syms_from_objfile): Return immediately if no syms.
8841 (symbol_file_add): Return immediately if no syms.
8842 (find_sym_fns): Return immediately if no syms.
8844 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8846 * gdbserver/remote-util.c (remote_open): Print remote-side's
8847 IP address when remote debugging over the network.
8849 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8851 * config/sparc/fbsd.mh: Fix copyright.
8852 * config/sparc/fbsd.mt: Likewise.
8854 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8856 * MAINTAINERS: Fix typo in name of gdb warnings option.
8857 (x86-64): Fix formating so that this can be parsed by awk.
8859 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8861 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8862 * defs.h: Include "gdb/signals.h".
8863 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8865 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8867 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8868 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8871 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8872 Don Howard <dhoward@redhat.com>
8874 * mips-tdep.c (ST0_FR): Define.
8875 (mips2_fp_compat): New function, temporarily disabled.
8876 (mips_read_fp_register_single): New function.
8877 (mips_read_fp_register_double): New function.
8878 (mips_print_register): Use them.
8879 (do_fp_register_row): Likewise.
8881 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8883 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8886 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8888 * stabsread.c (read_member_functions): Fix is_stub test for
8889 static member functions, improve comment.
8891 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8893 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8894 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8895 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8896 commands that set boolean values.
8897 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8898 (arm_rdi_resume): Always initialize PC.
8899 (arm_rdi_open): Don't use rslt as a boolean.
8900 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8901 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8902 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8903 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8905 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8907 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8908 * configure: Rebuilt.
8910 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8912 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8913 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8915 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8917 * cli/cli-decode.c (set_cmd_completer): New function.
8918 * command.h (set_cmd_completer): Declare.
8919 * cli/cli-decode.h (set_cmd_completer): Ditto.
8921 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8922 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8923 * win32-nat.c (_initialize_inftarg): Ditto.
8924 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8925 * proc-api.c (_initialize_proc_api): Ditto.
8926 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8927 * source.c (_initialize_source): Ditto.
8928 * exec.c (_initialize_exec): Ditto.
8929 * solib.c (_initialize_solib): Ditto.
8930 * top.c (init_main): Ditto.
8931 * tracepoint.c (_initialize_tracepoint): Ditto.
8932 * symfile.c (_initialize_symfile): Ditto.
8933 * printcmd.c (_initialize_printcmd): Ditto.
8934 * infcmd.c (_initialize_infcmd): Ditto.
8935 * corefile.c (_initialize_core): Ditto.
8937 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8939 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8941 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8943 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8945 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8947 * NEWS: Update headings, 5.2 has branched.
8949 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8951 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8952 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8953 (register_addr, REGISTER_RAW_SIZE): Likewise.
8954 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8955 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8957 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8959 * MAINTAINERS (x86-64): Add myself.
8960 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8961 changed value_ptr -> struct value *
8963 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8965 * configure.host (sparc64-*-freebsd): Add.
8966 * configure.tgt: Likewise.
8967 * config/sparc/fbsd.mh: New file.
8968 * config/sparc/fbsd.mt: Likewise.
8969 * config/sparc/nm-fbsd.h: Likewise.
8970 * config/sparc/tm-fbsd.h: Likewise.
8972 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8974 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8975 regformats/reg-s390x.dat.
8977 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8979 * utils.c: Add FIXME explaining true/false problem.
8981 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8983 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8985 2002-02-28 Michael Chastain <mec@shout.net>
8987 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8989 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8991 * gdbserver/linux-s390-low.c: New file.
8992 * regformats/reg-s390.dat: New file.
8993 * regformats/reg-s390x.dat: New file.
8994 * gdbserver/configure.srv: Add S/390.
8995 * gdbserver/Makefile.in: Add S/390.
8996 * configure.tgt: Enable gdbserver for S/390.
8998 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9000 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9001 first line of the doc string for "info dos", except at the end of
9002 the sentence, since the short help stops at the first period.
9004 2002-02-28 Jason Merrill <jason@redhat.com>
9006 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9008 2002-02-27 Fred Fish <fnf@redhat.com>
9010 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9011 comment (dumy -> dummy).
9013 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9015 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9017 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9019 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9021 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9023 * gdbserver/acconfig.h: New file.
9024 * gdbserver/i387-fp.c: New file.
9025 * gdbserver/i387-fp.h: New file.
9026 * gdbserver/linux-x86-64.c: New file.
9027 * regformats/reg-x86-64.dat: New file.
9028 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9029 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9030 * gdbserver/configure.in: Add support for regsets.
9031 * gdbserver/config.in: Regenerate.
9032 * gdbserver/configure: Regenerate.
9033 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9034 * gdbserver/linux-low.h: New file.
9035 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9037 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9038 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9039 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9040 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9041 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9042 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9043 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9044 "i387-fp.h". Add PTRACE_GETREGS and friends.
9045 * gdbserver/regcache.c (supply_register): New function.
9046 (supply_register_by_name): New function.
9047 (collect_register): New function.
9048 (collect_register_by_name): New function.
9050 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9052 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9053 (config.status): Add configure.srv dependency.
9054 (server_h): Add config.h dependency.
9056 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9058 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9059 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9060 * gdbserver/configure.srv: Change i386-*-linux* to use
9063 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9065 * x86-64-tdep.c: Re-indent. Update copyright date.
9067 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9069 From Michal Ludvig <mludvig@suse.cz>:
9070 * x86-64-tdep.c (value.h): Delete.
9071 (gdb_assert.h): Include.
9072 (x86_64_register_convert_to_virtual,
9073 x86_64_register_convert_to_raw ): Add check which lets only
9074 floating-point values to be converted.
9075 (value_push): Delete.
9076 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9077 (i386_gdbarch_init): Number of register_bytes fixed.
9079 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9081 * MAINTAINERS: Add x86-64 target.
9083 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9085 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9086 * osfsolib.c (solib_map_sections): Ditto.
9087 * irix5-nat.c (solib_map_sections): Ditto.
9088 * corelow.c (gdb_check_format): Ditto.
9089 * symfile.c (symfile_bfd_open): Ditto.
9090 * solib.c (solib_map_sections): Ditto.
9093 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9095 * remote.c (_initialize_remote): By default, disable ``e'' and
9096 ``E'' step out-of-range packets.
9098 2002-02-26 Andreas Schwab <schwab@suse.de>
9100 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9101 m68k_linux_frame_saved_pc.
9102 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9104 (SIGCONTEXT_PC_OFFSET): Remove.
9105 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9106 m68k_linux_sigtramp_saved_pc): New functions.
9107 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9108 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9109 (UCONTEXT_PC_OFFSET): Define.
9110 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9111 non-RT and RT signal trampolines.
9113 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9115 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9116 (TARGET_NBPG, STACK_END_ADDR): Delete
9117 (VARIABLES_INSIDE_BLOCK): Delete.
9119 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9121 * utils.c (perror_with_name): Make string parameter constant.
9122 (print_sys_errmsg): Ditto.
9124 * defs.h (perror_with_name): Update.
9125 (print_sys_errmsg): Update.
9128 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9130 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9131 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9133 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9135 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9136 if it already matches the current architecture from the exec file.
9137 Include arch-utils.h for gdbarch_info_init prototype.
9138 * Makefile.in (rs6000-nat.o): Update dependencies.
9140 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9142 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9143 list of exported variables.
9145 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9147 * gdbserver/configure.srv: New file.
9148 * gdbserver/configure.in: Use configure.srv instead
9149 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9151 * gdbserver/configure: Regenerated.
9152 * gdbserver/terminal.h: New file.
9153 * gdbserver/Makefile.in: Update for configure changes. Remove
9154 more unneeded include paths.
9156 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9158 From wiz at danbala:
9159 * config/sparc/tm-sp64.h: Fix grammar and typos.
9162 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9164 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9165 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9166 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9167 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9168 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9169 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9170 * s390-tdep.c: Ditto.
9171 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9172 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9173 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9174 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9175 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9176 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9177 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9178 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9179 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9180 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9183 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9185 * lin-thread.c: Delete file.
9186 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9187 to gdb_proc_service.h.
9188 * configure: Re-generate.
9190 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9191 * serial.c (serial_open): Delete check for "ocd".
9194 * Makefile.in (linux-thread.o): Delete target.
9195 * linux-thread.c: Delete file.
9197 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9198 renamed SH files to be consistent.
9200 * symtab.c (sort_search_symbols): Use xfree.
9202 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9204 * arm-linux-tdep.c (arm_linux_init_abi): Register
9205 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9206 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9207 definition with undef, since we don't want the sysvr4 definition.
9208 (SKIP_TRAMPOLINE_CODE): Likewise.
9210 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9212 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9214 * configure.in: (AC_CHECK_FUNCS) Added test for
9215 canonicalize_file_name Regenerated.
9216 * config.in, configure: Regenerated.
9217 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9218 defined use canonicalize_file_name.
9220 2002-02-23 Michael Chastain <mec@shout.net>
9222 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9224 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9226 * README: Remove references to cygnus.com.
9227 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9228 dot com'' form. Remove references to cygnus.com and sourceware.
9230 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9232 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9233 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9234 1003.1-2001 no longer allows "head -1".
9235 * gdb/Makefile.in (version.c): Likewise.
9236 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9237 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9238 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9240 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9242 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9243 * command.h (cmd_cfunc_eq): Declare.
9244 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9246 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9247 ``struct cmd_list_element *''.
9248 * cli/cli-cmds.c (is_complete_command): Update. Use
9250 * top.c (execute_command): Pass the command to
9251 is_complete_command.
9252 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9254 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9256 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9257 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9258 architecture defines.
9259 * s390-tdep.c (s390_gdbarch_init): Likewise.
9261 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9263 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9264 (arm_linux_push_arguments): Likewise.
9265 (arm_linux_init_abi): Register them. Also register linux-specific
9267 (find_minsym_and_objfile): Use strcmp, not STREQ.
9268 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9269 (arm_linux_call_dummy_words): Delete declaration.
9270 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9271 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9273 (LOWEST_PC): Delete.
9275 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9277 * maint.c (print_section_info): Do not prepend `0x' to filepos
9278 output, it will be handled by local_hex_string_custom.
9280 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9282 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9283 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9284 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9286 2002-02-22 Jim Blandy <jimb@redhat.com>
9288 Indicate that the bcache functions don't change the strings
9290 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9291 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9293 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9295 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9297 2002-02-21 Christopher Faylor <cgf@redhat.com>
9299 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9300 find the complete path to a loaded DLL.
9302 2002-02-21 Fred Fish <fnf@redhat.com>
9304 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9305 that marks the end of the range of a function, enter a line number
9306 entry that has a line number of zero and a PC offset that matches
9307 the end of the function. This starts a range of PC's for which no
9308 line number information is known.
9309 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9310 PC's for which no line number info is found (line number is zero)
9311 then we didn't find any valid line information.
9312 * symtab.h: Document use of zero line number entry.
9314 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9316 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9317 (have_ptrace_getvrregs): Define for run time checks.
9318 (gdb_vrregset_t): New type for Altivec register handling.
9319 (fetch_register, store_register): Fetch/store altivec register
9321 (fetch_altivec_register, store_altivec_register): New functions.
9322 (supply_vrregset, fill_vrregset): New functions.
9323 (fetch_altivec_registers, store_altivec_registers): New functions.
9324 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9327 2002-02-21 Jiri Smid <smid@suse.cz>
9329 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9331 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9333 * Makefile.in (armnbsd-nat.o): Update dependencies.
9334 * armnbsd-nat.c (supply_gregset): New function. Common code to
9335 supply the integer register set.
9336 (supply_fparegset): New function. Similar for FPA registers.
9337 (fetch_regs, fetch_fp_regs): Use them.
9338 (fetch_core_registers): Likewise.
9339 (fetch_elfcore_registers): New function.
9340 (arm_netbsd_elfcore_fns): New core-file type specification.
9341 (_initialize_arm_netbsd_nat): Register it.
9343 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9345 * armnbsd-nat.c: Include gdbcore.h.
9346 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9347 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9348 'void' to declaration, to shut up ARI.
9349 (fetch_core_registers): Make static. Rewrite using supply_register.
9350 (arm_netbsd_core_fns): New core-file type specification.
9351 (_initialize_arm_netbsd_nat): New function.
9353 2002-02-21 Christopher Faylor <cgf@redhat.com>
9355 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9358 2002-02-20 Christopher Faylor <cgf@redhat.com>
9360 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9363 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9365 * jv-exp.y (parse_number): Change type of implicit longs
9366 to builtin_type_uint64.
9368 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9370 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9371 to be an integer instead of a `union wait'.
9373 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9375 * mips-linux-nat.c: Call the operating system GNU/Linux.
9376 * mips-linux-tdep.c: Likewise.
9377 * mips-tdep.c: Likewise.
9379 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9382 * jv-exp.y (parse_number): Handle 64-bit integers.
9384 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9386 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9387 AC_STDC_HEADERS to AC_HEADER_STDC.
9388 * gdbserver/configure: Regenerated.
9390 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9392 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9394 * sparc-tdep.c (get_longjmp_target): Likewise.
9396 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9398 * News: Add news about ARM and Multi-arch. Mention the new target
9401 2002-02-19 Jim Blandy <jimb@redhat.com>
9403 * stabsread.c (error_type_complaint): Improve error message.
9405 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9407 * gdbserver/README: Update documentation.
9408 * gdbserver/configure.in: Update configury to match documentation.
9409 * gdbserver/Makefile.in: Likewise.
9410 * gdbserver/configure: Regenerated.
9411 * gdbserver/aclocal.m4: New file, generated by aclocal.
9412 * gdbserver/config.in: New file, generated by autoheader.
9414 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9416 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9419 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9421 * arm-tdep.h (enum arm_float_model): New enum.
9422 (struct gdbarch_tdep): Add fp_model.
9423 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9424 up floating-point conversions until we know the floating-point model
9425 in use by the inferior. Don't complain about being unable to
9426 determine the ABI of the inferior when we don't have one.
9427 (arm_extract_return_value): Support different floating-point models.
9428 (arm_store_return_value): Likewise.
9429 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9431 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9433 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9435 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9436 of ``current_gdbarch''.
9438 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9440 * armnbsd-nat.c : ANSIfy all function declarations.
9441 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9442 (fetch_inferior_registers): Re-implement in terms of above.
9443 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9444 (store_inferior_registers): Re-implement in terms of above.
9446 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9448 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9450 * arm-linux-tdep.c: Likewise.
9451 * config/arm/tm-linux.h: Likewise.
9453 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9455 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9456 * config/arm/nbsd.mt (TM_FILE): Delete.
9457 * config/arm/tm-nbsd.h: Delete.
9459 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9461 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9462 Initialize CALL_DUMMY_LENGTH.
9464 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9466 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9468 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9469 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9470 defines one thing and that is incorrect for this port.
9471 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9473 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9475 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9477 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9479 * win32-nat.c (display_selector): New function. Displays information
9480 about the information returned by GetThreadSelectorEntry API function.
9481 (display_selectors): New function. Displays the infomation of
9482 the selector given as argument, or of CS, DS ans FS selectors
9483 if no argument is given.
9484 ( _initialize_inftarg): Add "w32" as info prefix command.
9485 Add "info w32 selector" as command calling display_selectors.
9487 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9489 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9490 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9493 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9495 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9497 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9499 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9500 (arm_fix_call_dummy): Call it.
9501 (arm_call_dummy_breakpoint_offset): Delete.
9502 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9503 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9505 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9507 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9508 Default to func_frame_chain_valid.
9509 * gdbarch.h, gdbarch.c: Re-generate.
9510 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9512 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9514 * ppc-linux-nat.c: Update copyright.
9515 (fetch_register, store_register): Add tid parameter, don't compute
9517 (fetch_ppc_registers, store_ppc_registers): Add tid
9518 parameter. Pass it along to callees.
9519 (fetch_inferior_registers, store_inferior_registers): Compute tid
9520 here, and pass it to calleed functions.
9521 (fill_gregset, supply_fpregset): Clean up formatting.
9523 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9525 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9526 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9528 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9530 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9531 * gdbarch.c gdbarch.h: Regenerate.
9532 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9534 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9535 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9536 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9538 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9539 * arm-tdep.c (arm_get_longjmp_target): New function.
9540 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9541 this to a positive value register arm_get_longjmp_target as the
9543 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9544 (arm_linux_init_abi): Set up longjmp description in tdep.
9545 * armnbsd-nat.c (get_longjmp_target): Delete.
9546 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9547 description in tdep.
9548 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9549 (get_longjmp_target): Delete declaration.
9550 (GET_LONGJMP_TARGET): Delete.
9551 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9552 (GET_LONGJMP_TARGET): Delete.
9554 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9556 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9557 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9558 of ``current_gdbarch''.
9560 2002-02-17 Tom Tromey <tromey@redhat.com>
9562 * cli/cli-cmds.c (compare_strings): New function.
9563 (complete_command): Only print each unique item once.
9564 * completer.h (complete_line): Declare.
9565 * completer.c (complete_line): New function.
9566 (line_completion_function): Use it.
9568 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9570 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9571 * gdbarch.h, gdbarch.c: Re-generate.
9573 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9575 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9577 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9579 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9580 * valops.c (value_arg_coerce): Don't take the address of a reference
9581 to convert an argument to a reference.
9583 2002-02-15 Christopher Faylor <cgf@redhat.com>
9585 * win32-nat.c (get_image_name): New function.
9586 (handle_load_dll): Use get_image_name function.
9587 (get_child_debug_event): Avoid registering debug events until possibly
9588 execed process is started.
9589 (child_create_inferior): Allow invocation via shell so that command
9590 line redirection, etc. works ok.
9591 (_initialize_inftarg): Add new command: "set shell" to control whether
9592 a shell is used to start a process.
9594 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9596 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9597 instead of find_register_by_number.
9598 (cannot_store_register): Likewise.
9600 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9602 * dwarf2read.c: Replace fprintf (stderr, ...) by
9603 fprintf_unfiltered (gdb_stderr, ...).
9605 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9607 * gdbserver/gdbserver.1: Document --attach.
9609 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9611 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9613 * arm-tdep.c (arm_default_arm_le_breakpoint)
9614 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9615 (arm_default_thumb_be_breakpoint): New. Initialize them from
9616 traditional breakpoint defines.
9617 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9618 (arm_gdbarch_init): Initialize new breakpoint variables.
9619 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9620 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9621 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9622 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9624 (arm_netbsd_init_abi_common): ... here; new function.
9625 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9626 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9627 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9628 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9630 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9632 * arm-tdep.h (enum arm_abi): New enum.
9633 (struct gdbarch_tdep): New structure.
9634 (LOWEST_PC): Provide a default.
9635 (arm_gdbarch_register_os_abi): Declare new function.
9636 * arm-tdep.c (arm_abi_names): New array.
9637 (process_note_abi_tag_sections): New function.
9638 (get_elfosabi): New function.
9639 (arm_gdbarch_register_os_abi): New function.
9640 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9641 support for that ABI has been built in, then call the appropriate
9642 configuration routine. Use gdbarch_num_regs() to get the number
9644 (arm_dump_tdep): New function.
9645 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9646 place-holder functions.
9647 (_initialize_arm_tdep): Register them.
9648 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9650 * armnbsd-tdep.c: New file.
9651 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9652 * config/arm/nbsd.mt (TDEPFILES): Add it.
9653 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9655 * armnbsd-nat.c: Include regcache.h.
9656 * Makefile.in (armnbsd-nat.o): Update dependency list.
9658 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9660 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9662 * gdbserver/Makefile.in: Fix typos in target rules.
9664 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9666 Fix part of PR gdb/267.
9667 * linespec.c (find_methods): Handle constructors specially for now.
9669 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9671 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9673 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9674 standard_coerce_float_to_double().
9676 2002-02-14 Christopher Faylor <cgf@redhat.com>
9678 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9681 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9683 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9684 find_variant_by_name, because it confuses the multiarch
9685 framework. Return NULL if there isn't an architecture with the
9686 user supplied name, instead of forcing a different one without
9687 recording the change with the multiarch machinery.
9688 (find_variant_by_name): Delete.
9690 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9692 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9693 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9695 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9697 * stack.c (print_frame_info_base): When calling
9698 print_frame_info_listing_hook, set current_source_symtab.
9700 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9702 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9703 and remove unused $(INCLUDE_DIR).
9704 Add regcache.c to OBS.
9705 Add generated register protocol files to clean target.
9706 Update dependencies for new objects, obsolete old target code.
9708 * gdbserver/linux-low.c: Remove all platform-specific code to
9709 new files. Remove various dead code. Update to use regcache
9711 * gdbserver/remote-utils.c (fromhex): Add return statement
9713 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9715 (input_interrupt): Add integer parameter to match prototype
9716 of a signal handler.
9717 (outreg): Use register_data ().
9718 (prepare_resume_reply): Use gdbserver_expedite_regs.
9719 * gdbserver/server.c (main): Dynamically allocate own_buf because
9720 PBUFSIZ is no longer constant. Use registers_to_string () and
9721 registers_from_string ().
9722 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9723 for error (), fatal (), and warning (). Update definition of
9724 PBUFSIZ to use regcache functionality. Add include guard.
9725 * gdbserver/utils.c (fatal): Add missing ``const''.
9726 (warning): New function.
9728 * regformats/regdat.sh: Include "regcache.h" in generated files.
9729 Provide init_registers () function.
9730 * regformats/regdef.h: Add prototype for set_register_cache ().
9733 * gdbserver/linux-arm-low.c: New file.
9734 * gdbserver/linux-i386-low.c: New file.
9735 * gdbserver/linux-ia64-low.c: New file.
9736 * gdbserver/linux-m68k-low.c: New file.
9737 * gdbserver/linux-mips-low.c: New file.
9738 * gdbserver/linux-ppc-low.c: New file.
9739 * gdbserver/linux-sh-low.c: New file.
9741 * gdbserver/regcache.c: New file.
9742 * gdbserver/regcache.h: New file.
9744 * gdbserver/low-linux.c: Removed obsolete file.
9746 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9748 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9749 * config/i386/linux.mt: Likewise.
9750 * config/ia64/linux.mt: Likewise.
9751 * config/m68k/linux.mh: Likewise.
9752 * config/powerpc/linux.mh: Likewise.
9753 * config/mips/linux.mt: Likewise.
9755 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9757 * config/i386/i386lynx.mh: Mark gdbserver variables
9758 as (currently) obsolete for this target.
9759 * config/i386/nbsd.mt: Likewise.
9760 * config/i386/nbsdelf.mt: Likewise.
9761 * config/m32r/m32r.mt: Likewise.
9762 * config/m68k/m68klynx.mh: Likewise.
9763 * config/m68k/nbsd.mt: Likewise.
9764 * config/m68k/sun3os4.mh: Likewise.
9765 * config/mips/vr5000.mt: Likewise.
9766 * config/ns32k/nbsd.mt: Likewise.
9767 * config/pa/hppabsd.mh: Likewise.
9768 * config/pa/hppaosf.mh: Likewise.
9769 * config/powerpc/nbsd.mt: Likewise.
9770 * config/rs6000/rs6000lynx.mh: Likewise.
9771 * config/s390/s390.mt: Likewise.
9772 * config/s390/s390x.mt: Likewise.
9773 * config/sparc/sparclynx.mh: Likewise.
9774 * config/sparc/sun4os4.mh: Likewise.
9775 * config/i386/x86-64linux.mt: Likewise.
9776 * config/sparc/linux.mh: Likewise.
9778 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9780 * configure.tgt: Configure gdbserver only for known working
9781 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9782 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9783 SUBDIRS if it is configured. Update comment for ${nativefile}.
9784 * configure: Regenerated.
9786 2002-02-13 Michael Snyder <msnyder@redhat.com>
9788 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9790 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9791 (default_gcore_mach): Just return 0, work around a problem in bfd.
9792 (default_gcore_target): OK to return NULL if exec_bfd is null.
9793 (make_mem_sec): Use a cast, avoid a warning.
9795 * procfs.c (find_memory_regions_callback): Use a cast instead of
9796 calling host_pointer_to_address (which complains if
9797 sizeof (host pointer) != sizeof (target pointer)).
9798 (procfs_make_note_section): Avoid overflow in psargs string.
9800 * procfs.c (procfs_make_note_section): Make the default
9801 implementation return an error.
9803 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9805 * procfs.c (procfs_make_note_section): Provide a default definition
9806 (for alpha-dec-osf4.0f). Fix typos.
9808 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9810 * linux-proc.c: Add include of regcache.h.
9811 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9813 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9815 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9816 * memattr.c (create_mem_region): Disallow useless empty region.
9817 Regions are half-open intervals, so allow [A..B) [B..C) as
9820 2002-02-13 Michael Chastain <mec@shout.net>
9822 * defs.h: Kill CONST_PTR.
9823 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9824 * c-lang.c (c_builtin_types): Likewise.
9825 * ch-lang.c (ch_builtin_types): Likewise.
9826 * f-lang.c (f_builtin_types): Likewise.
9827 * language.c (unknown_builtin_types): Likewise.
9828 * m2-lang.c (m2_builtin_types): Likewise.
9829 * p-lang.c (pascal_builtin_types): Likewise.
9830 * scm-lang.c (c_builtin_types): Likewise.
9832 2002-02-13 Keith Seitz <keiths@redhat.com>
9834 * arm-tdep.h (arm_get_next_pc): Add declaration.
9836 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9838 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9839 with other related struct-returning functions.
9840 (arm_extract_struct_value_address): New function.
9841 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9842 initialize float_format, double_format and long_double_format as
9843 appropriate to the endianness of the target.
9844 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9845 (arm_use_struct_convention): Delete declaration.
9846 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9848 2002-02-13 Keith Seitz <keiths@redhat.com>
9850 * defs.h (core_addr_to_string_nz): New function.
9852 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9854 Apply missing bits of 2002-01-15 patch.
9855 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9856 (fill_fpregset): Use i387_fill_fsave.
9858 2002-02-12 Keith Seitz <keiths@redhat.com>
9860 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9861 (core_addr_to_string_nz): New function.
9863 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9865 * arm-linux-nat.c: Really include arm-tdep.h.
9866 * config/arm/tm-linux.h (struct type, struct value): Declare.
9868 2002-02-11 Michael Snyder <msnyder@redhat.com>
9870 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9871 (gcore section): Ifdef for Solaris and Unixware only.
9872 (procfs_do_thread_registers): Unixware needs one lwpstatus
9873 per thread (not one prstatus or pstatus).
9874 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9875 not over all gdb threads. For unixware, call elfcore_write_pstatus
9876 once before iterating over threads.
9878 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9880 * arm-tdep.h: New file.
9881 * arm-tdep.c: Include arm-tdep.h.
9882 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9883 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9884 (arm_print_float_info, arm_register_type, convert_to_extended)
9885 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9886 (arm_extract_return_value, arm_register_name): Make static.
9887 (arm_software_single_step): Similarly. Fix types in declaration.
9888 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9889 (arm_store_return_value, arm_store_struct_return): New functions.
9890 (arm_gdbarch_init): Register the above functions. Also register
9891 call_dummy_start_offset, sizeof_call_dummy_words,
9892 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9893 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9894 max_register_virtual_size, register_size. Set up
9895 prologue_cache.saved_regs here, rather than ...
9896 (_initialize_arm_tdep): ... here.
9897 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9899 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9900 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9901 (arm_print_float_info, arm_register_type, convert_to_extended)
9902 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9903 (arm_extract_return_value, arm_register_name): Delete declarations.
9904 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9905 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9906 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9907 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9908 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9909 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9910 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9911 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9912 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9913 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9914 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9915 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9917 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9918 * remote-rdi.c remote-rdp.c: Likewise.
9919 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9920 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9921 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9924 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9925 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9926 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9927 from non-ARM_ prefixed definitions.
9928 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9930 * remote-rdi.c remote-rdp.c: Likewise.
9931 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9933 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9935 * arm-tdep.c (arm_frameless_function_invocation)
9936 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9937 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9938 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9939 (arm_pop_frame, arm_get_next_pc): Make static.
9940 (arm_gdbarch_init): Register above in gdbarch structure.
9941 (arm_read_fp): Renamed from arm_target_read_fp.
9942 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9943 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9944 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9945 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9946 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9947 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9948 (arm_pc_is_thumb_dummy): Delete declarations.
9949 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9950 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9951 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9952 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9954 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9956 * symtab.c (compare_search_syms): New function.
9957 (sort_search_symbols): New function.
9958 (search_symbols): Sort symbols after searching rather than
9961 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9963 * NEWS: Linux -> GNU/Linux.
9965 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9967 * gdbarch.sh: For for level one methods, disallow a definition
9968 when partially multi-arched. Add comments explaining rationale.
9969 * gdbarch.h: Re-generate.
9971 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9973 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9976 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9978 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9980 * gdbarch.c: Re-generate.
9982 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9984 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9985 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9988 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9990 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9992 (PUSH_ARGUMENTS): Switch to using predefault.
9993 * gdbarch.c: Regenerate.
9995 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9997 * valops.c (PUSH_ARGUMENTS): Delete definition.
9998 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9999 partial. Default to default_push_arguments.
10000 * gdbarch.h, gdbarch.c: Regenerate.
10002 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10004 * defs.h (throw_exception): Rename return_to_top_level. Update
10006 * utils.c (error_stream, internal_verror, quit): Ditto.
10007 * top.c (throw_exception, catcher): Ditto.
10008 * sparclet-rom.c (sparclet_load): Ditto.
10009 * remote.c (interrupt_query, minitelnet): Ditto.
10010 * remote-sds.c (interrupt_query): Ditto.
10011 * remote-mips.c (mips_error, mips_kill): Ditto.
10012 * ocd.c (interrupt_query): Ditto.
10013 * monitor.c (monitor_interrupt_query): Ditto.
10014 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10015 * target.h: Update comment.
10017 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10019 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10021 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10022 default_double_format.
10023 * gdbarch.h, gdbarch.c: Re-generate.
10024 * findvar.c (floatformat_unknown): Delete variable definition.
10025 * doublest.h (floatformat_unknown): Delete variable declaration.
10027 2002-02-09 Jim Blandy <jimb@redhat.com>
10029 * stabsread.c (read_type): Add code to parse Sun's syntax for
10030 prototyped function types.
10032 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10034 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10035 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10037 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10039 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10040 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10041 now _initialize_xcoffsolib gets called again and overrides the
10042 commands from solib.c in a native configuration.
10044 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10046 * doublest.c (store_typed_floating): Don't try to return a value.
10049 2002-02-08 Jim Blandy <jimb@redhat.com>
10051 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10052 is prototyped and has no arguments, print its argument list as
10055 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10057 * MAINTAINERS (write-after-approval): Add myself.
10058 (paper-trail): I've escaped!
10060 2002-02-08 Christopher Faylor <cgf@redhat.com>
10062 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10064 (_initialize_check_for_gdb_ini): Ditto.
10066 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10068 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10069 xaprintf -> xasprintf.
10071 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10073 * win32-nat.c: Remove use of printf and sprintf functions.
10075 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10077 * arm-tdep.c (arm_frame_chain_valid): Make static.
10078 (arm_push_arguments): Likewise.
10079 (arm_gdbarch_init): New function.
10080 (_initialize_arm_tdep): Call it.
10081 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10082 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10083 (FRAME_CHAIN_VALID): Delete.
10084 (arm_frame_chain_valid): Delete declaration.
10085 (PUSH_ARGUMENTS): Delete.
10086 (arm_push_arguments): Delete declaration.
10087 (CALL_DUMMY_P): Delete.
10089 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10090 Corinna Vinschen <vinschen@redhat.com>
10092 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10093 on builtin float types.
10095 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10097 * utils.c: Include <curses.h> before "bfd.h".
10098 * tui/tui-hooks.c: Likewise.
10099 * tui/tui.c: Likewise.
10100 * tui/tuiCommand.c: Likewise.
10101 * tui/tuiData.c: Likewise.
10102 * tui/tuiDataWin.c: Likewise.
10103 * tui/tuiDisassem.c: Likewise.
10104 * tui/tuiGeneralWin.c: Likewise.
10105 * tui/tuiIO.c: Likewise.
10106 * tui/tuiLayout.c: Likewise.
10107 * tui/tuiRegs.c: Likewise.
10108 * tui/tuiSource.c: Likewise.
10109 * tui/tuiSourceWin.c: Likewise.
10110 * tui/tuiStack.c: Likewise.
10111 * tui/tuiWin.c: Likewise.
10113 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10115 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10116 to include space for pseudoregs as well. Update loops accordingly.
10117 (sh_fp_frame_init_saved_regs): Ditto.
10118 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10120 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10122 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10123 Add Richard Earnshaw to Arm maintainers.
10125 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10127 * defs.h (warning_begin): Delete declaration.
10129 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10132 2002-02-07 Michael Snyder <msnyder@redhat.com>
10134 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10135 Logic bug, remove misplaced else.
10137 2002-02-07 Klee Dienes <klee@apple.com>
10139 * fork-inferior.c (fork_inferior): Add '!' to the list of
10140 characters that need to be quoted when building a string for the
10141 shell. Quote '!' specifically with a backslash, since CSH chokes
10142 when trying to evaluate "str!str".
10144 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10146 * rdi-share/host.h: Only provide a typedef for bool if it is not
10149 2002-02-04 Michael Snyder <msnyder@redhat.com>
10151 * breakpoint.h (enum bptype): Add new overlay event bp type.
10152 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10154 * breakpoint.c (create_internal_breakpoint): New function.
10155 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10156 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10157 (create_thread_event_breakpoint): Ditto.
10158 (create_solib_event_breakpoint): Ditto.
10159 (create_overlay_event_breakpoint): New function.
10160 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10161 (update_breakpoints_after_exec): Delete and re-initialize
10162 overlay event breakpoints after an exec. Add FIXME comment
10163 about longjmp breakpoint.
10164 (print_it_typical): Ignore overlay event breakpoints.
10165 (print_one_breakpoint): Ditto.
10167 (bpstat_what): Do not stop for overlay event breakpoints.
10168 (delete_breakpoint): Don't delete overlay event breakpoints.
10169 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10170 (breakpoint_re_set): Re-create overlay event breakpoint.
10172 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10173 (overlay_manual_command): Disable overlay breakpoints.
10174 (overlay_off_command): Disable overlay breakpoints.
10176 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10178 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10179 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10180 to here from config/tm-arm.h.
10181 (coff_sym_is_thumb): Make static.
10182 (arm_elf_make_msymbol_special): New function.
10183 (arm_coff_make_msymbol_special): New function.
10184 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10185 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10186 (coff_sym_is_thumb): Delete declaration.
10187 (arm_elf_make_msymbol_special): Declare.
10188 (arm_coff_make_msymbol_special): Declare.
10189 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10190 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10192 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10194 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10196 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10198 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10199 * gdbarch.c gdbarch.h: Regenerate.
10200 * arch-utils.c (default_print_float_info): New function.
10201 * arch-utils.h (default_print_float_info): Prototype it.
10202 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10203 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10204 (PRINT_FLOAT_INFO): Document it.
10206 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10207 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10208 (PRINT_FLOAT_INFO): Define.
10210 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10212 * win32-nat.c (_initialize_check_for_gdb_ini):
10213 Add typecast to sprintf argument to suppress a warning.
10215 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10217 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10218 to allow easier handling of pass state.
10219 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10220 that gives exception name and address.
10221 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10222 and set last_sig value to ourstatus->value.sig. Some missing
10224 (child_continue): Correctly report continue_status.
10225 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10226 TARGET_SIGNAL_0 (new default value).
10227 (child_resume): consider sig argument passed to decide if
10228 the exception should be passed to debuggee or not.
10230 2002-02-05 Michael Snyder <msnyder@redhat.com>
10232 * regcache.c (fetch_register): Call target_fetch_register
10233 only if we don't call FETCH_PSEUDO_REGISTER.
10234 (store_register): Call target_store_register only if we
10235 don't call STORE_PSEUDO_REGISTER.
10237 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10239 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10240 ELF_MAKE_MSYMBOL_SPECIAL.
10241 * gdbarch.c, gdbarch.h: Regenerate.
10242 * arch-utils.c (default_make_msymbol_special): New function.
10243 * arch-utils.h (default_make_msymbol_special): Export.
10244 * elfread.c (elf_symtab_read): Compile use of
10245 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10247 * coffread.c (coff_symtab_read): Ditto, for
10248 COFF_MAKE_MSYMBOL_SPECIAL.
10250 2002-02-05 Jim Blandy <jimb@redhat.com>
10252 * solib-svr4.c (svr4_truncate_ptr): New function.
10253 (svr4_relocate_section_addresses): Do the address arithmetic with
10254 the appropriate truncation for target addresses, even when
10255 CORE_ADDR is larger than a target address.
10257 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10259 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10262 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10264 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10267 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10269 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10271 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10273 * gdbserver/linux-low.c: Remove unused include files.
10275 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10277 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10278 (read_inferior_memory): Use it.
10279 (write_inferior_memory): Likewise.
10281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10283 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10284 grubbing through sys_errlist.
10286 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10288 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10290 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10291 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10293 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10295 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10296 (do_sfunc, set_cmd_sfunc): New functions.
10298 * command.h (struct cmd_list_element): Add field func.
10299 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10300 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10301 * cli/cli-decode.h: Ditto.
10303 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10304 (help_all, help_cmd_list): Ditto.
10305 (find_cmd, complete_on_cmdlist): Ditto.
10306 * top.c (execute_command): Ditto.
10308 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10311 * infcmd.c (notice_args_read): Fix function signature.
10313 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10314 * cli/cli-decode.c (add_set_cmd): Ditto.
10315 * utils.c (initialize_utils): Ditto.
10316 * maint.c (_initialize_maint_cmds): Ditto.
10317 * infrun.c (_initialize_infrun): Ditto.
10318 * demangle.c (_initialize_demangler): Ditto.
10319 * remote.c (add_packet_config_cmd): Ditto.
10320 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10321 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10322 * proc-api.c (_initialize_proc_api): Ditto.
10323 * kod.c (_initialize_kod): Ditto.
10324 * valprint.c (_initialize_valprint): Ditto.
10325 * top.c (init_main): Ditto.
10326 * infcmd.c (_initialize_infcmd): Ditto.
10327 * corefile.c (_initialize_core): Ditto.
10328 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10329 * arch-utils.c (initialize_current_architecture): Ditto.
10330 (_initialize_gdbarch_utils): Ditto.
10331 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10333 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10334 * wince.c (_initialize_inftarg): Ditto.
10335 * symfile.c (_initialize_symfile): Ditto.
10336 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10337 * language.c (_initialize_language): Ditto.
10338 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10340 2002-02-04 Michael Snyder <msnyder@redhat.com>
10342 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10344 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10346 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10347 Add rules for building the register data files.
10349 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10351 * regformats/regdat.sh: Add braces to the definition of
10352 expedite_regs_${arch}.
10354 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10356 * regformats/regdef.h (struct reg): Add comment describing the
10357 requirements for offset and size fields.
10359 2002-02-04 Andreas Schwab <schwab@suse.de>
10361 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10362 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10364 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10366 * gdbarch.sh (copyright): Update years in generated header.
10367 (SMASH_TEXT_ADDRESS): Add rule.
10368 * gdbarch.h, gdbarch.c: Re-generate.
10369 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10370 * dbxread.c: Likewise.
10371 * dwarfread.c: Likewise.
10372 * elfread.c: Likewise.
10373 * somread.c: Likewise.
10375 * arm-tdep.c (arm_smash_text_address): New function.
10376 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10378 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10380 Add support for hardware watchpoints on win32 native.
10381 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10382 CONTEXT_DEBUG_REGISTERS.
10383 (dr variable): New variable. Static array containing a local copy
10384 of debug registers.
10385 (debug_registers_changed): New variable. Reflects when debug registers
10386 are changed and need to be written to inferior.
10387 (debug_registers_used): New variable. Reflects when any debug register
10388 was set, used when new threads are created.
10389 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10391 (thread_rec): Set dr array if id is the thread of current_event .
10392 (child_continue, child_resume): Change the debug registers for all
10393 threads if debug_registers_changed.
10394 (child_add_thread): Change the debug registers if debug_registers_used.
10395 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10396 Link nm.h to new nm-cygwin.h file.
10397 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10398 of hardware registers.
10400 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10402 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10403 Restore behavour broken by 2002-01-20 Andrew Cagney
10404 <ac131313@redhat.com> IEEE_FLOAT removal.
10406 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10408 * c-valprint.c (c_val_print): Pass a proper valaddr to
10409 cp_print_class_method.
10410 * valops.c (search_struct_method): If there is only one method
10411 and args is NULL, return that method.
10413 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10415 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10416 accessing tag_name directly.
10418 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10420 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10421 of accessing tag_name directly.
10423 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10426 * gdbtypes.c (replace_type): New function.
10427 * gdbtypes.h (replace_type): Add prototype.
10428 * stabsread.c (read_type): Use replace_type.
10430 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10432 * Makefile.in (memattr.o): Add missing dependencies rule.
10434 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10436 * breakpoint.c (break_at_finish_command): Really export.
10437 (break_at_finish_at_depth_command): Ditto.
10438 (tbreak_at_finish_command): Ditto.
10439 * hppa-tdep.c: Include completer.h.
10440 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10441 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10443 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10445 * utils.c (do_write): New function.
10446 (error_stream): Rewrite combining the code from error_begin and
10448 (verror): Rewrite using error_stream.
10449 (error_begin): Delete function.
10451 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10453 * utils.c (error_begin): Make static.
10454 * defs.h (error_begin): Delete declaration.
10456 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10457 (decode_line_1): Use cplusplus_error instead of error_begin,
10458 cplusplus_hint and return_to_top_level.
10459 * coffread.c (coff_symfile_read): Use error instead of error_begin
10460 and return_to_top_level.
10461 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10463 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10465 * language.h (type_error, range_error): Make string parameter
10467 * language.c (warning_pre_print): Delete extern declaration.
10468 * dwarfread.c (warning_pre_print): Ditto.
10469 * language.c (type_error, range_error): Rewrite to use verror and
10470 vwarning instead of warning_begin.
10472 2002-02-01 Michael Snyder <msnyder@redhat.com>
10474 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10475 (set_ignore_count): Move misplaced comment back where it belongs.
10477 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10479 * command.h (NO_FUNCTION): Delete macro.
10480 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10481 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10482 * tracepoint.c (_initialize_tracepoint): Ditto.
10483 * cli/cli-decode.c (add_set_cmd): Ditto.
10484 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10486 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10488 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10489 Update ``this'' pointer when calling virtual functions.
10491 2002-02-01 Michael Snyder <msnyder@redhat.com>
10493 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10494 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10496 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10498 * regformats/reg-arm.dat: New file.
10499 * regformats/reg-i386.dat: New file.
10500 * regformats/reg-ia64.dat: New file.
10501 * regformats/reg-m68k.dat: New file.
10502 * regformats/reg-mips.dat: New file.
10503 * regformats/reg-ppc.dat: New file.
10504 * regformats/reg-sh.dat: New file.
10505 * regformats/regdef.h: New file.
10506 * regformats/regdat.sh: New file.
10508 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10510 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10511 (arm_frame_args_address, arm_frame_locals_address): New functions.
10512 (arm_frame_num_args): New function.
10513 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10514 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10515 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10517 2002-01-31 Michael Snyder <msnyder@redhat.com>
10519 * breakpoint.c (break_at_finish_command): Export.
10520 (break_at_finish_at_depth_command): Export.
10521 (tbreak_at_finish_command): Export.
10522 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10523 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10524 "txbreak" commands, which are HPPA specific.
10526 * printcmd.c (disassemble_command): Remove an ancient
10527 artifact of an old merge.
10529 * symfile.h (enum overlay_debugging_state):
10530 Define enum constant values for overlay mode.
10531 * symfile.c (overlay_debugging): Use enums instead of literals.
10532 (overlay_is_mapped, overlay_auto_command,
10533 overlay_manual_command): Ditto.
10535 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10536 breakpoint_here_p, breakpoint_inserted_here_p,
10537 breakpoint_thread_match, bpstat_stop_status,
10538 describe_other_breakpoints, check_duplicates, clear_command):
10539 Coding standard fixes.
10541 * target.c (target_xfer_memory): Add spaces, coding standard.
10542 (do_xfer_memory): Add missing line to trust-readonly
10543 code: check bfd SEC_READONLY flag for section.
10545 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10547 * PROBLEMS: Fix typo, 5.1->5.1.1.
10549 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10551 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10552 data symbols, since we search based on textlow and texthigh.
10553 (find_pc_sect_symtab): Likewise.
10555 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10557 * defs.h (vwarning): Declare.
10558 * utils.c (vwarning): New function.
10559 (warning): Call vwarning.
10560 (warning_begin): Delete function.
10562 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10563 the warning message.
10564 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10567 2002-01-30 Michael Snyder <msnyder@redhat.com>
10569 * NEWS: Mention "set trust-readonly-sections" command.
10570 Mention generate-core-file command.
10572 2002-01-15 Michael Snyder <msnyder@redhat.com>
10574 * target.c: New command, "set trust-readonly-sections on".
10575 (do_xfer_memory): Honor the suggestion to trust readonly sections
10576 by reading them from the object file instead of from the target.
10577 (initialize_targets): Register command "set trust-readonly-sections".
10579 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10581 * parse.c (target_map_name_to_register): Simplify, search regs and
10582 pseudo-regs using a single loop.
10584 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10586 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10588 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10590 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10591 * config/i386/i386v42mp.mh: Add i387-nat.o .
10592 * i386v4-nat.c: Include i387-nat.h.
10593 (supply_fpregset): Use i387_supply_fsave.
10594 (fill_fpregset): Use i387_fill_fsave.
10596 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10598 * arm-tdep.c (arm_call_dummy_words): Define.
10599 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10600 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10601 (CALL_DUMMY_WORDS): Define.
10602 (arm_call_dummy_words): Declare.
10603 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10604 (arm_linux_call_dummy_words): Declare.
10606 2002-01-30 Andreas Schwab <schwab@suse.de>
10608 * m68klinux-nat.c: Fix last change to use regcache_collect
10609 instead of referencing registers[] directly.
10611 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10613 * parse.c (target_map_name_to_register): Delete code wrapped in
10614 #ifdef REGISTER_NAME_ALIAS_HOOK.
10616 2002-01-28 Michael Snyder <msnyder@redhat.com>
10618 * regcache.c (legacy_read_register_gen): Need to be able to
10619 read pseudo-register as well as real register.
10620 (legacy_write_register_gen): Ditto.
10622 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10624 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10625 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10626 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10627 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10628 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10629 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10630 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10631 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10632 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10633 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10634 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10635 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10636 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10637 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10638 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10639 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10640 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10641 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10642 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10643 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10645 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10647 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10648 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10649 (initialize_current_architecture): Update target_byte_order using
10650 information from BFD.
10651 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10652 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10654 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10656 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10657 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10659 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10660 #ifdef INVALID_FLOAT.
10661 * infcmd.c (do_registers_info): Ditto.
10662 * values.c (unpack_double): Ditto. Add comment.
10664 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10665 already commented out.
10667 2002-01-26 Andreas Schwab <schwab@suse.de>
10669 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10670 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10671 registers and add support for PTRACE_GETREGS.
10673 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10675 GDB 5.1.1 released from 5.1 branch.
10676 * NEWS: Add 5.1.1 news.
10677 * README: Sync with 5.1 branch.
10679 2002-01-23 Fred Fish <fnf@redhat.com>
10681 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10682 stabstring on initial malloc. Reallocing will copy it for us,
10685 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10687 * Makefile.in (hpread_h): Delete.
10688 (HFILES_NO_SRCDIR): Remove hpread.h.
10689 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10690 (hpread.o): Update dependencies.
10691 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10693 * hp-psymtab-read.c: Remove file.
10694 * hp-symtab-read.c: Remove file.
10695 * hpread.h: Remove file.
10697 * hpread.c: Merge all contents of hp-psymtab-read.c,
10698 hp-symtab-read.c and hpread.h into this file, as it was prior to
10701 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10702 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10703 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10704 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10706 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10708 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10709 fill_gregset): Call gdbarch_tdep() just once, assign result to
10710 variable and use that, instead of calling the function several
10713 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10715 * configure.host: Accept sparcv9 as alias for sparc64.
10716 * configure.tgt: Likewise.
10718 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10720 * solib-aix5.c (build_so_list_from_mapfile)
10721 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10722 arguments is not reversed.
10723 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10724 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10726 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10728 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10729 modified version of obsolete sh_fetch_pseudo_register.
10730 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10731 (sh4_register_read): New function.
10732 (sh_pseudo_register_write): New function. Renamed and modified
10733 version of obsolete sh_store_pseudo_register.
10734 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10735 (sh4_register_write): New function.
10736 (sh_gdbarch_init): Remove setting of gdbarch function
10737 fetch_pseudo_register and store_pseudo_register. Remove setting of
10738 register_convert_to_raw, register_convert_to_virtual,
10739 register_convertible.
10740 (sh_sh4_register_convertible): Delete. No longer needed. All is
10741 taken care by architecture specific functions
10742 register_read/register_write.
10743 (sh_sh4_register_convert_to_virtual): Make static.
10744 (sh_sh4_register_convert_to_raw): Ditto.
10746 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10748 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10749 (floatformat_is_nan, floatformat_mantissa): Ditto.
10751 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10752 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10753 builtin_type_ieee_double_little,
10754 builtin_type_ieee_double_littlebyte_bigword,
10755 builtin_type_m68881_ext, builtin_type_i960_ext,
10756 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10757 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10758 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10759 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10761 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10763 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10764 parameter. Set frameless flag if it exists and depended of
10765 whether the scanned function is frameless or not.
10766 (xstormy16_skip_prologue): If function is frameless, return
10767 result of xstormy16_scan_prologue().
10768 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10771 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10773 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10774 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10775 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10776 sh_sh4_register_byte, sh_sh4_register_raw_size,
10777 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10778 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10779 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10780 sh_store_pseudo_register, sh_do_pseudo_register): Call
10781 gdbarch_tdep() just once, assign result to variable and use that,
10782 instead of calling the function several times.
10784 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10786 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10787 macros instead of LAST_FPU_CTRL_REGNUM.
10788 (store_register): Likewise.
10790 2002-01-21 Jim Blandy <jimb@redhat.com>
10792 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10793 is up-to-date before running the program, not just when a program
10796 2002-01-21 Fred Fish <fnf@redhat.com>
10798 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10799 when we have found all instructions we are looking for.
10801 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10803 * arm-tdep.c (arm_register_name): New function.
10804 (arm_registers_names): Make static.
10805 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10806 (arm_register_name): Declare.
10807 (REGISTER_NAME): Use it.
10809 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10810 Kevin Buettner <kevinb@redhat.com>
10812 Convert arm targets to new FRAME interface.
10813 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10814 (arm_frame_find_save_regs): Delete.
10815 (arm_frame_init_saved_regs): New.
10816 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10817 Allocate extra_info as required. Convert all uses of fsr.regs
10818 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10820 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10821 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10822 (check_prologue_cache, save_prologue_cache): Likewise.
10823 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10824 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10825 (FRAME_FIND_SAVED_REGS): Delete.
10826 (arm_frame_find_saved_regs): Delete prototype.
10827 (arm_frame_init_saved_regs): New prototype.
10828 (FRAME_INIT_SAVED_REGS): Define.
10830 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10832 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10834 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10836 From Jeff Law <law@redhat.com>:
10837 * infttrace.c: Include <sys/pstat.h>.
10838 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10839 exec file if the ttrace equivalent fails.
10841 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10843 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10844 (closeLogFile): Ditto.
10846 2002-01-20 Michael Chastain <mec@shout.net>
10848 * top.c (print_gdb_version): Bump copyright year to 2002.
10850 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10852 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10853 Zannoni and Eli Zaretskii.
10855 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10857 * buildsym.c: Update copyright years.
10858 * c-typeprint.c: Likewise.
10859 * dwarf2read.c: Likewise.
10860 * f-typeprint.c: Likewise.
10861 * gdbtypes.c: Likewise.
10862 * gdbtypes.h: Likewise.
10863 * hp-symtab-read.c: Likewise.
10864 * hpread.c: Likewise.
10865 * mdebugread.c: Likewise.
10866 * p-typeprint.c: Likewise.
10868 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10870 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10871 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10872 byte-order selectable.
10873 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10874 * arch-utils.c: Ditto.
10875 (set_endian): Ditto.
10876 (set_endian_from_file): Ditto.
10877 * gdbserver/low-sim.c (create_inferior): Ditto.
10878 * gdbarch.sh: Ditto.
10879 * gdbarch.h: Re-generate.
10880 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10881 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10882 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10883 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10884 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10885 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10886 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10887 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10889 * config/mips/tm-wince.h: Remove #undef of macro
10890 TARGET_BYTE_ORDER_SELECTABLE.
10891 * config/sh/tm-wince.h: Ditto.
10893 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10895 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10896 member function fields. Add accessor macro
10897 TYPE_FN_FIELD_ARTIFICIAL.
10898 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10899 * c-typeprint.c (c_type_print_base): Skip artificial member
10902 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10904 * f-typeprint.c: Delete unused function f_type_print_args.
10905 * p-typeprint.c: Delete unused function pascal_type_print_args.
10907 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10909 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10910 comment. Add ``artificial'' to ``union field_location''.
10912 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10914 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10915 * mdebugread.c (parse_symbol): Likewise.
10916 * stabsread.c (define_symbol): Likewise.
10917 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10918 initializing TYPE_FIELD_BITPOS to n (obsolete).
10919 (hpread_doc_function_type): Likewise.
10920 * hpread.c (hpread_function_type): Likewise.
10922 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10924 * configure.in (host_makefile_frag): Only require a host makefile
10925 fragment when a native build.
10926 * configure: Re-generate.
10928 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10930 * doublest.h (floatformat_from_type): Declare.
10931 * doublest.c (floatformat_from_type): New function.
10932 (convert_typed_floating): Use.
10934 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10935 call to function floatformat_from_type.
10937 * gdbarch.sh (IEEE_FLOAT): Delete.
10938 * gdbarch.h, gdbarch.c: Re-generate.
10939 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10940 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10941 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10942 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10943 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10944 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10945 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10946 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10947 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10948 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10949 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10950 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10952 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10953 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10954 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10955 * sh-tdep.c (sh_gdbarch_init): Ditto.
10956 * mips-tdep.c (mips_gdbarch_init): Ditto.
10957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10958 * cris-tdep.c (cris_gdbarch_init): Ditto.
10960 2002-01-20 Jiri Smid <smid@suse.cz>
10962 * configure.host, configure.tgt: Support x86-64.
10963 * NEWS: Note new target x86-64.
10965 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10966 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10967 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10968 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10969 x86-64-linux-nat.o): Fix dependencies.
10971 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10973 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10974 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10975 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10976 * config/sparc/xm-sun4os4.h: Delete file.
10977 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10979 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10981 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10982 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10983 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10984 * config/i386/i386lynx.mh (XM_FILE): Delete.
10985 * config/rs6000/xm-rs6000ly.h: Delete file.
10986 * config/sparc/xm-sparclynx.h: Delete file.
10987 * config/m68k/xm-m68klynx.h: Delete file.
10988 * config/i386/xm-i386lynx.h: Delete file.
10989 * config/xm-lynx.h: Delete file.
10990 * config/djgpp/fnchange.lst: Update.
10992 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10994 * alpha-tdep.c (alpha_register_byte): New function.
10995 (alpha_register_raw_size): Ditto.
10996 (alpha_register_virtual_size): Ditto.
10997 (alpha_skip_prologue_internal): Renamed from
10998 alpha_skip_prologue.
10999 (alpha_skip_prologue): New version that calls
11000 alpha_skip_prologue_internal.
11001 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11002 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11003 second argument from alpha_skip_prologue.
11004 (REGISTER_BYTE): Use alpha_register_byte.
11005 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11006 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11007 (FRAMELESS_FUNCTION_INVOCATION): Use
11008 generic_frameless_function_invocation_not.
11009 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11010 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11012 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11014 * config/mips/xm-news-mips.h: Delete file.
11015 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11017 * config/m88k/xm-m88k.h: Delete file.
11018 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11019 * config/m88k/xm-delta88v4.h: Ditto.
11020 * config/m88k/xm-delta88.h: Ditto.
11022 * config/alpha/xm-fbsd.h: Delete file.
11023 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11025 * config/sparc/xm-sparc.h: Delete file.
11026 * Makefile.in (xm-sun4os4.h): Delete dependency.
11027 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11028 * config/sparc/xm-sun4os4.h: Ditto.
11029 * config/sparc/xm-linux.h: Ditto.
11031 * config/i386/xm-windows.h: Delete file.
11033 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11035 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11036 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11038 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11040 * alpha-tdep.c (alpha_call_dummy_words): New.
11041 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11042 (CALL_DUMMY_P): Define.
11043 (CALL_DUMMY_WORDS): Define.
11044 (SIZEOF_CALL_DUMMY_WORDS): Define.
11046 2002-01-19 Per Bothner <per@bothner.com>
11048 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11049 isn't NULL, which can happen with some gcj-3.x-produced code.
11051 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11053 * alpha-tdep.c (alpha_register_virtual_type): New function.
11054 (alpha_init_frame_pc_first): Ditto.
11055 (alpha_fix_call_dummy): Ditto.
11056 (alpha_store_struct_return): Ditto.
11057 (alpha_extract_struct_value_address): Ditto.
11058 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11059 alpha_register_virtual_type.
11060 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11061 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11062 alpha_extract_struct_value_address.
11063 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11064 (INIT_FRAME_PC): Use init_frame_pc_noop.
11065 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11067 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11069 * i386gnu-nat.c: Include "i386-tdep.h".
11070 (fetch_fpregs): Simplify code dealing with uninitialized floating
11071 point states such that it doesn't require FP7_REGNUM.
11073 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11075 * alpha-tdep.c (frame_extra_info): New.
11076 (alpha_find_saved_regs): Make static. Use
11078 (alpha_frame_init_saved_regs): New function.
11079 (alpha_frame_saved_pc): Use frame->extra_info.
11080 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11081 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11082 (init_extra_frame_info): Rename to...
11083 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11084 (alpha_print_extra_frame_info): New function.
11085 (alpha_frame_locals_address): Ditto.
11086 (alpha_frame_args_address): Ditto.
11087 (alpha_pop_frame): Use frame->extra_info.
11088 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11089 alpha_frame_args_address.
11090 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11091 (alpha_find_saved_regs): Remove prototype.
11092 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11093 (EXTRA_FRAME_INFO): Remove.
11094 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11095 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11097 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11099 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11100 (alpha_cannot_fetch_register): Ditto.
11101 (alpha_cannot_store_register): Ditto.
11102 (alpha_register_convertible): Ditto.
11103 (alpha_use_struct_convention): Ditto.
11104 * config/alpha/tm-alpha.h: Update copyright years.
11105 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11106 (INNER_THAN): Use core_addr_lessthan.
11107 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11108 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11109 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11110 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11111 (FRAME_CHAIN): Remove unnecessary cast.
11113 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11115 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11118 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11120 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11121 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11122 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11123 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11124 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11125 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11126 * x86-64-linux-nat.c: Ditto.
11128 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11130 * alpha-tdep.c (alpha_register_name): New function.
11131 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11132 (REGISTER_NAME): Define.
11134 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11136 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11138 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11140 * alpha-tdep.c: Update copyright years.
11141 (alpha_next_pc): New function.
11142 (alpha_software_single_step): Ditto.
11143 * config/alpha/tm-alpha.h: Add prototype for
11144 alpha_software_single_step.
11146 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11148 * alphabsd-nat.c: Update copyright years.
11149 (fill_gregset): Use regcache_collect.
11150 (fill_fpregset): Likewise.
11151 (fetch_inferior_registers): Only fetch integer registers
11152 if requested to do so.
11153 (store_inferior_registers): Only store integer registers
11154 if requested to do so.
11156 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11158 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11159 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11160 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11161 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11162 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11163 * config/arm/linux.mh (XDEPFILES): Delete.
11164 * config/arm/nbsd.mh (XDEPFILES): Delete.
11165 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11166 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11167 * config/i386/i386m3.mh (XDEPFILES): Delete.
11168 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11169 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11170 * config/i386/fbsd.mh (XDEPFILES): Delete.
11171 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11172 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11173 * config/i386/i386v4.mh (XDEPFILES): Delete.
11174 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11175 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11176 * config/i386/i386aix.mh (XDEPFILES): Delete.
11177 * config/i386/go32.mh (XDEPFILES): Delete.
11178 * config/i386/cygwin.mh (XDEPFILES): Delete.
11179 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11180 * config/i386/i386mach.mh (XDEPFILES): Delete.
11181 * config/i386/i386v32.mh (XDEPFILES): Delete.
11182 * config/i386/linux.mh (XDEPFILES): Delete.
11183 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11184 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11185 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11186 * config/i386/i386sco.mh (XDEPFILES): Delete.
11187 * config/i386/i386v.mh (XDEPFILES): Delete.
11188 * config/i386/nbsd.mh (XDEPFILES): Delete.
11189 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11190 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11191 * config/i386/symmetry.mh (XDEPFILES): Delete.
11192 * config/i386/obsd.mh (XDEPFILES): Delete.
11193 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11194 * config/ia64/linux.mh (XDEPFILES): Delete.
11195 * config/ia64/aix.mh (XDEPFILES): Delete.
11196 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11197 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11198 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11199 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11200 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11201 * config/m68k/linux.mh (XDEPFILES): Delete.
11202 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11203 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11204 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11205 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11206 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11207 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11208 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11209 * config/m88k/delta88.mh (XDEPFILES): Delete.
11210 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11211 * config/m88k/m88k.mh (XDEPFILES): Delete.
11212 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11213 * config/mips/linux.mh (XDEPFILES): Delete.
11214 * config/mips/irix6.mh (XDEPFILES): Delete.
11215 * config/mips/irix5.mh (XDEPFILES): Delete.
11216 * config/mips/irix4.mh (XDEPFILES): Delete.
11217 * config/mips/irix3.mh (XDEPFILES): Delete.
11218 * config/mips/decstation.mh (XDEPFILES): Delete.
11219 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11220 (NATDEPFILES): Move core-aout.o to here.
11221 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11222 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11223 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11224 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11225 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11226 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11227 * config/pa/hpux11.mh (XDEPFILES): Delete.
11228 * config/powerpc/aix.mh (XDEPFILES): Delete.
11229 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11230 * config/powerpc/linux.mh (XDEPFILES): Delete.
11231 * config/romp/rtbsd.mh: Rename XDEPFILES.
11232 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11233 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11234 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11235 * config/s390/s390.mh (XDEPFILES): Delete.
11236 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11237 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11238 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11239 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11240 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11241 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11242 * config/sparc/linux.mh (XDEPFILES): Delete.
11243 * config/vax/vaxult.mh (XDEPFILES): Delete.
11244 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11245 * Makefile.in (DEPFILES): Remove XDEPFILES.
11247 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11249 * utils.c (internal_verror): Fix comments, default is yes not no.
11250 Update queries to match. Default to quit and dump core.
11252 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11254 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11256 * defs.h, event-top.c, gdbcmd.h: Ditto.
11257 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11258 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11259 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11260 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11261 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11262 * mi/mi-main.c:Ditto.
11264 * stack.c, symfile.c: Update copyright.
11266 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11268 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11269 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11270 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11271 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11273 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11275 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11276 * gdbserver/low-lynx.c (myattach): Likewise.
11277 * gdbserver/low-nbsd.c (myattach): Likewise.
11278 * gdbserver/low-sim.c (myattach): Likewise.
11279 * gdbserver/low-sparc.c (myattach): Likewise.
11280 * gdbserver/low-sun3.c (myattach): Likewise.
11282 * gdbserver/low-linux.c (myattach): New function.
11284 * gdbserver/server.c (attach_inferior): New function.
11285 (main): Handle "--attach".
11287 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11289 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11292 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11294 * c-typeprint.c (is_type_conversion_operator): Add additional
11295 check for non-conversion operators.
11297 2002-01-15 Michael Snyder <msnyder@redhat.com>
11299 * linux-proc.c: Add "info proc" command, a la procfs.c.
11300 (read_mapping): New function, abstract and re-use code.
11301 (linux_find_memory_regions): Use new func read_mapping.
11302 (linux_info_proc_cmd): New function, implement "info proc".
11303 (_initialize_linux_proc): Add new command "info proc".
11305 2002-01-15 Michael Snyder <msnyder@redhat.com>
11307 * symfile.c (generic_load): Use bfd_map_over_sections method
11308 instead of manipulating bfd structure members directly.
11309 (add_section_size_callback): New function, bfd sections callback
11310 used by generic_load.
11311 (load_sections_callback): New function, bfd sections callback
11312 used by generic_load.
11314 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11316 [Based on work by Jim Blandy]
11317 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11318 (builtin_type_vec128): Export.
11319 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11321 (builtin_type_vec128): New builtin type for 128 bit vector
11323 (build_gdbtypes): Initialize builtin_type_v16qi and
11324 builtin_type_v8hi. Create the vec128 register builtin type
11326 (build_builtin_type_vec128): New function.
11327 (_initialize_gdbtypes): Register builtin_type_v16qi and
11328 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11329 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11330 AltiVec register to new builtin type.
11332 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11334 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11337 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11339 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11340 CLEAN_UP_REGISTER_VALUE.
11341 * regcache.c (supply_register): Update only call.
11343 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11345 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11346 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11347 a29k-*-vxworks* targets as obsolete.
11349 2002-01-14 Michael Snyder <msnyder@redhat.com>
11351 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11352 until we can resolve portability issues.
11353 * gregset.h: Remove references to fpxregs.
11354 * gcore.c (gcore_command): Initialize note_sec to NULL.
11356 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11358 * signals.c (target_signal_to_name): Rewrite. Only use
11359 signals[].name when in bounds and non-NULL.
11361 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11363 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11364 * signals.c (target_signal_to_name): Verify that SIG is within the
11365 bounds of the signals array.
11367 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11369 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11371 2002-01-13 Keith Seitz <keiths@redhat.com>
11373 * stack.c (print_frame_info_base): Print the frame's pc
11374 only if when print_frame_info_listing_hook is not defined.
11376 2002-01-13 Keith Seitz <keiths@redhat.com>
11378 * varobj.c (varobj_set_value): Make sure that there were no
11379 errors evaluating the object before attempting to set its
11381 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11382 so this offset adjustment is no longer necessary.
11383 (create_child): Don't set the error flag if the child is
11384 a CPLUS_FAKE_CHILD.
11385 (value_of_child): If value_fetch_lazy fails, return NULL
11386 so that callers will be notified that an error occurred.
11387 (c_value_of_variable): Delay check of variable's validity
11388 until later. We actually want all structs and unions to have
11390 Do not return "???" for variables which could not be evaluated.
11391 This error condition must be returned to the caller so that it
11392 can get the error condition from gdb.
11393 (cplus_name_of_child): Adjust index for vptr before figuring
11394 out the name of the child.
11395 (cplus_value_of_child): If a child's (real) parent is not valid,
11396 don't even bother trying to give a value for it. Just return
11397 an error. Change all instances in this function.
11398 (cplus_type_of_child): If our parent is one of the "fake"
11399 parents, we need to get at the type of the real parent, and
11400 derive the child's true type using this information.
11402 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11404 From 2002-01-09 John Marshall <johnm@falch.net>:
11405 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11406 sources.redhat.com, and tweak some related URLs which had
11407 suffered from linkrot.
11409 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11412 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11413 structures passed in registers.
11415 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11417 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11418 white space which prevented compilation. Reported by DSK
11419 <dsk@student.unsw.edu.au>.
11421 2002-01-11 Michael Snyder <msnyder@redhat.com>
11423 * symfile.c (build_section_addr_info_from_section_tab):
11424 Use bfd access method instead of manipulating bfd directly.
11425 (syms_from_objfile): Ditto.
11426 (simple_overlay_update_1): Ditto.
11427 (simple_overlay_update): Ditto.
11428 (generic_load): Ditto.
11429 (overlay_unmapped_address): FIXME comment, bfd access methods.
11430 (sections_overlap): FIXME comment, bfd access methods.
11431 (pc_in_mapped_range): FIXME comment, bfd access methods.
11432 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11433 (section_is_mapped): FIXME comment, bfd access methods.
11434 (section_is_overlay): FIXME comment, bfd access methods.
11436 * symfile.c (generic_load): Whitespace and long line cleanups.
11437 Remove duplicate variable, change several local variables to
11438 more appropriate data types.
11439 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11441 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11443 From Peter Schauer:
11444 * language.c (longest_local_hex_string_custom): Use phex_nz to
11445 convert NUM to a hex string.
11447 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11449 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11451 Update Copyright year.
11453 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11455 * language.c (longest_raw_hex_string): Delete unused function.
11457 2002-01-11 Petr Sorfa <petrs@caldera.com>
11459 * MAINTAINERS (write-after-approval): Add myself.
11460 * dwarf2read.c (read_tag_string_type): Handling of
11462 (read_tag_string_type): FORTRAN fix to prevent propagation of
11464 (set_cu_language): Handling of DW_LANG_Fortran95
11466 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11468 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11469 GETPID(inferior_ptid).
11470 (store_inferior_registers): Likewise.
11472 2002-01-10 Jason Merrill <jason@redhat.com>
11474 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11477 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11479 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11480 and bfd/elf32-sh-nbsd.c.
11482 2002-01-10 Michael Snyder <msnyder@redhat.com>
11484 * NEWS: Mention --pid and corefile/proc-id behavior change.
11486 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11487 * gcore.c: Include cli/cli-decode.h instead of command.h.
11489 * main.c (captured_main): Add new command line option "--pid".
11490 If the second command line argument (following the symbol-file)
11491 begins with a digit, try to attach to it before trying to open
11493 (print_gdb_help): Document the "--pid" argument.
11495 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11497 * completer.c (command_completer): New function.
11499 * completer.h <command_completer>: Add prototype.
11501 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11502 completer for the "help" command.
11504 2002-01-09 Jason Merrill <jason@redhat.com>
11506 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11508 2002-01-09 Michael Snyder <msnyder@redhat.com>
11510 * i386-linux-nat.c (fill_fpxregset): Make global.
11511 (store_fpxregset): Ditto.
11513 * gregset.h (gdb_fpxregset_t): Define.
11514 (supply_fpxregset): Prototype.
11515 (fill_fpxregset): Prototype.
11517 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11519 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11521 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11522 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11523 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11525 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11527 * MAINTAINERS: Update target maintainer rules so that any
11528 Maintainer can approve a tested patch for a maintenance-only
11531 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11533 * MAINTAINERS (write-after-approval): Add myself.
11535 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11538 2002-01-08 Michael Snyder <msnyder@redhat.com>
11540 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11541 real name of the executable, rather than the /proc name.
11543 2002-01-03 Michael Snyder <msnyder@redhat.com>
11545 Implement a "generate-core-file" command in gdb, save target state.
11546 * gcore.c: New file. Implement new command 'generate-core-file'.
11547 Save a corefile image of the current state of the inferior.
11548 * linux-proc.c: Add linux-specific code for saving corefiles.
11549 * target.h (struct target_ops): Add new target vectors for saving
11550 corefiles; to_find_memory_regions and to_make_corefile_notes.
11551 (target_find_memory_regions): New macro.
11552 (target_make_corefile_notes): New macro.
11553 * target.c (update_current_target): Inherit new target methods.
11554 (dummy_find_memory_regions): New place-holder method.
11555 (dummy_make_corefile_notes): New place-holder method.
11556 (init_dummy_target): Initialize new dummy target vectors.
11557 * exec.c (exec_set_find_memory_regions): New function.
11558 Allow the exec_ops vector for memory regions to be taken over.
11559 (exec_make_note_section): New function, target vector method.
11560 * defs.h (exec_set_find_memory_regions): Export prototype.
11561 * procfs.c (proc_find_memory_regions): New function, corefile method.
11562 (procfs_make_note_section): New function, corefile method.
11563 (init_procfs_ops): Set new target vector pointers.
11564 (find_memory_regions_callback): New function.
11565 (procfs_do_thread_registers): New function.
11566 (procfs_corefile_thread_callback): New function.
11567 * sol-thread.c (sol_find_memory_regions): New function.
11568 (sol_make_note_section): New function.
11569 (init_sol_thread_ops): Initialize new target vectors.
11570 * inftarg.c (inftarg_set_find_memory_regions): New function.
11571 Allow to_find_memory_regions vector to be taken over.
11572 (inftarg_set_make_corefile_notes): New function.
11573 Allow to_make_corefile_notes vector to be taken over.
11574 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11575 interface layer if not target_has_execution (may be a corefile).
11576 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11577 * config/sparc/sun4sol2.mh: Ditto.
11578 * config/alpha/alpha-linux.mh: Ditto.
11579 * config/arm/linux.mh: Ditto.
11580 * config/i386/x86-64linux.mh: Ditto.
11581 * config/ia64/linux.mh: Ditto.
11582 * config/m68k/linux.mh: Ditto.
11583 * config/mips/linux.mh: Ditto.
11584 * config/powerpc/linux.mh: Ditto.
11585 * config/sparc/linux.mh: Ditto.
11587 2002-01-07 Michael Snyder <msnyder@redhat.com>
11589 * arm-linux-nat.c: Remove references to regcache.c internal data
11590 (registers[] and register_valid[]).
11592 2002-01-07 Michael Snyder <msnyder@redhat.com>
11594 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11595 so that attaching to a pid will automatically read the process's
11596 symbol file and shlibs.
11597 * Makefile.in: Add rule for linux-proc.o.
11598 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11599 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11600 * config/arm/linux.mh: Ditto.
11601 * config/i386/linux.mh: Ditto.
11602 * config/i386/x86-64linux.mh: Ditto.
11603 * config/ia64/linux.mh: Ditto.
11604 * config/m68k/linux.mh: Ditto.
11605 * config/mips/linux.mh: Ditto.
11606 * config/powerpc/linux.mh: Ditto.
11607 * config/sparc/linux.mh: Ditto.
11609 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11611 * win32-nat.c: Add i386-tdep.h dependency.
11613 2002-01-07 Michael Snyder <msnyder@redhat.com>
11615 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11616 instead of bfd_get_arch_size. Don't bail out just because
11617 there's no exec_bfd.
11619 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11620 * p-valprint.c (pascal_object_print_value): Ditto.
11621 * somread.c (som_symtab_read): Ditto.
11622 * symfile.c (simple_free_overlay_region_table): Ditto.
11623 * valops.c (value_assign): Ditto.
11625 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11626 use tilde_expand and strerror for opening save-tracepoints file.
11628 * thread-db.c (thread_db_new_objfile): Indendation fix.
11630 * infptrace.c (GDB_MAX_ALLOCA): New define.
11631 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11632 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11633 can be overridden with whatever value is appropriate to the host).
11634 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11635 alloca to allocate potentially large buffer.
11636 * rs6000-nat.c (child_xfer_memory): Ditto.
11637 * symm-nat.c (child_xfer_memory): Ditto.
11638 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11640 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11642 From Nick Clifton <nickc@redhat.com>
11643 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11645 2002-01-07 Michael Snyder <msnyder@redhat.com>
11647 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11648 Don't use exec_bfd if it's NULL.
11650 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11652 * valops.c (value_arg_coerce): Fix formatting.
11654 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11656 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11657 * gnu-nat.c: Ditto.
11659 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11661 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11662 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11663 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11664 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11665 z8k-coff have not been multi-arched. Update z8k-coff build
11668 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11670 * MAINTAINERS: Mark a29k target as obsolete.
11671 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11672 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11674 * NEWS: Note that a29k targets are obsolete.
11675 * a29k-tdep.c: Mark as obsolete.
11676 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11677 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11678 a29k-*-vxworks* targets as obsolete.
11679 * remote-adapt.c: Obsolete.
11680 * remote-eb.c: Obsolete.
11681 * remote-mm.c: Obsolete.
11682 * remote-udi.c: Obsolete.
11683 * config/a29k/a29k-udi.mt: Obsolete.
11684 * config/a29k/a29k.mt: Obsolete.
11685 * config/a29k/tm-a29k.h: Obsolete.
11686 * config/a29k/tm-vx29k.h: Obsolete.
11687 * config/a29k/vx29k.mt: Obsolete.
11689 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11691 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11692 with BFD_ENDIAN_BIG.
11694 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11696 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11697 * configure, config.in: Re-generate.
11698 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11699 * defs.h: Do not include <endian.h>.
11701 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11703 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11704 * config.in: Regenerate.
11705 * configure.in: Update copyright years.
11706 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11707 * configure: Regenerate.
11708 * i386bsd-nat.c: Update copyright years.
11709 (fill_gregset): Use regcache_collect.
11710 (fetch_inferior_registers): Only fetch integer registers
11711 if requested to do so. Add support for XMM registers
11712 using PT_GETXMMREGS.
11713 (store_inferior_registers): Only store integer registers
11714 if requested to do so. Add support for XMM registers
11715 using PT_SETXMMREGS.
11716 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11717 (store_inferior_registers): Remove.
11718 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11719 (fetch_elfcore_registers): New function.
11720 (i386nbsd_elfcore_fns): New.
11721 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11722 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11724 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11725 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11726 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11727 * config/i386/tm-nbsd.h: Update copyright years.
11728 (HAVE_SSE_REGS): Define.
11729 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11730 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11731 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11732 (SIGCONTEXT_PC_OFFSET): Remove.
11733 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11735 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11737 * configure.tgt: Remove powerpc-*-macos* target.
11738 * config/m68k/xm-mpw.h: Delete file.
11739 * config/xm-mpw.h: Delete file.
11740 * ser-mac.c: Delete file.
11741 * mpw-make.sed: Delete file.
11742 * mpw-config.in: Delete file.
11743 * mac-xdep.c: Delete file.
11744 * mac-gdb.r: Delete file.
11745 * mac-defs.h: Delete file.
11746 * mac-nat.c: Delete file.
11747 * config/powerpc/macos.mh: Delete file.
11748 * config/powerpc/macos.mt: Delete file.
11749 * config/powerpc/nm-macos.h: Delete file.
11750 * config/powerpc/tm-macos.h: Delete file.
11751 * source.c (openp, open_source_file): Remove obsolete code.
11752 * top.c (gdb_readline): Ditto.
11753 * utils.c (query): Ditto.
11754 * event-top.c (display_gdb_prompt): Ditto.
11755 * Makefile.in (ser-mac.o): Delete obsolete target.
11758 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11760 * defs.h (BIG_ENDIAN): Delete macro definition.
11761 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11762 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11763 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11764 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11765 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11766 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11767 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11768 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11769 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11770 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11771 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11772 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11773 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11774 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11775 * gdbarch.c: Re-generate.
11777 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11779 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11782 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11784 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11786 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11788 * value.h (value_ptr): Delete typedef.
11790 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11792 * i386nbsd-nat.c: Update copyright years.
11793 Include i386-tdep.h.
11795 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11797 * stabsread.c: Update copyright years.
11799 From Debashis Mahata <debashis.mahata@wipro.com>:
11800 (read_struct_fields): Deal with Sun C compiler erroneous stab
11801 output for structs and unions.
11804 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11806 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11809 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11811 * cp-abi.c: Fix whitespace.
11812 (baseclass_offset): New wrapper function.
11813 * cp-abi.h (baseclass_offset): Add prototype.
11814 (struct cp_abi_ops): Add baseclass_offset pointer.
11816 * valops.c (vb_match): Move to...
11817 * gnu-v2-abi.c (vb_match): here.
11818 * valops.c (baseclass_offset): Move to...
11819 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11821 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11823 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11824 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11825 * hpacc-abi.c (init_hpacc_ops): Likewise.
11827 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11829 * valops.c (find_overload_match): Accept obj as a
11830 reference parameter. Update it before returning.
11831 * value.h (find_overload_match): Update prototype.
11832 * eval.c (evaluate_subexp_standard): Pass object to
11833 find_overload_match by reference.
11835 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11837 * valarith.c: Replace value_ptr with struct value pointer. Remove
11838 register attribute from value declarations.
11841 * scm-lang.c (scm_lookup_name): Ditto.
11843 2002-01-03 Michael Snyder <msnyder@redhat.com>
11845 Abstract the functionality of iterating over mapped memory
11846 regions into a general purpose iterator function.
11847 * procfs.c (iterate_over_mappings): New function, general purpose
11848 iterator for memory sections.
11849 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11850 (solib_mappings_callback): New function, callback for above.
11851 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11852 (info_mappings_callback): New function, callback for above.
11854 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11856 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11858 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11859 * i386-tdep.c: Include "elf-bfd.h".
11860 (process_note_abi_tag_sections): New function.
11861 (i386_gdbarch_init): Add code to recognize various OS/ABI
11864 * maint.c (_initialize_maint_cmds): Add missing \ in
11867 For older changes see ChangeLog-2001
11873 version-control: never