1 2002-10-12 Adam Fedor <fedor@gnu.org>
3 * language.c (binop_result_type): Add language_objc to case.
4 (integral_type): Likewise.
5 (character_type): Likewise.
6 (string_type): Likewise.
7 (boolean_type): Likewise.
8 (structured_type): Likewise.
9 (binop_type_check): Likewise.
11 2002-10-11 Adam Fedor <fedor@gnu.org>
13 * printcmd.c (address_info): Print 'self' for ObjC.
15 2002-10-11 Adam Fedor <fedor@gnu.org>
17 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
20 2002-10-11 Adam Fedor <fedor@gnu.org>
22 * language.h (CAST_IS_CONVERSION): Add language_objc.
24 2002-10-11 Adam Fedor <fedor@gnu.org>
26 * defs.h (enum language): Add language_objc.
28 2002-10-11 Klee Dienes <kdienes@apple.com>
30 * findvar.c (read_memory_typed_address): New function.
31 * gdbcore.h (read_memory_typed_address): Add prototype.
32 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
33 to read a value destined for a CORE_ADDR, not read_memory_integer.
34 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
35 (f77_get_dynamic_lowerbound): Ditto.
37 2002-10-11 Martin M. Hunt <hunt@redhat.com>
39 * utils.c (string_to_core_addr): After turning string into
40 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
41 which will do necessary sign-extension, etc.
43 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
45 * c-exp.y (THIS): Delete token and grammar rule.
46 (yylex): Don't return THIS.
47 * cp-valprint.c (vtbl_ptr_name_old): Delete.
48 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
49 * demangle.c (cplus_markers): Update comment. Put '$'
50 first. Remove CPLUS_MARKER.
51 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
52 * jv-exp.y (THIS): Delete token and grammar rule.
53 (yylex): Don't return THIS.
54 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
55 * objc-exp.y (THIS): Delete token and grammar rule.
56 (yylex): Don't return THIS.
57 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
58 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
59 (read_member_functions): Likewise for opname.
60 (read_tilde_fields): Use is_cplus_marker.
62 * defs.h (CPLUS_MARKER): Don't define.
63 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
64 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
65 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
66 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
67 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
69 * config/i386/tm-i386v4.h: Delete file.
70 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
71 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
72 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
73 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
74 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
75 * config/i386/i386sco5.mt (TM_FILE): Likewise.
76 * config/i386/i386v4.mt (TM_FILE): Likewise.
77 * config/i386/ncr3000.mt (TM_FILE): Likewise.
79 2002-10-10 Marko Mlinar <markom@opencores.org>
81 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
82 accidentially not commited 2002-10-09
83 * gdbarch.h, gdbarch.c: Re-generate.
85 2002-10-09 Marko Mlinar <markom@opencores.org>
87 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
88 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
89 * gdbarch.h, gdbarch.c: Re-generate.
91 2002-10-08 Petr Sorfa <petrs@caldera.com>
93 Revised and re-submitted by John Wolfe <jlw@caldera.com>
95 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
96 so we can work on more than one compilation unit at a time. This
97 helps prepare GDB to handle inter-CU die references.
98 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
99 the code to be defined before struct comp_unit_head.
100 (comp_unit_head): Added new members - offset, cu_head,
101 begin_die, next and dwarf2_abbrevs.
102 (dwarf2_abbrevs): Removed single static var; now member of
103 struct comp_unit_head.
104 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
106 (psymtab_to_symtab_1): Changed to work with the new
107 struct comp_unit_head.
108 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
109 constructs the dwarf2_abbrevs[] inside the cu_header.
110 (dwarf2_empty_abbrev_table): Now expects a ptr to a
111 dwarf2_abbrev table to clean up.
112 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
113 handling of dwarf2_abbrevs inside the cu_header.
114 (read_partial_die): Now supports the call to the new
115 dwarf2_lookup_abbrev.
116 (read_full_die): Now supports the call to the new
117 dwarf2_lookup_abbrev.
119 2002-10-06 Christopher Faylor <cgf@redhat.com>
121 * Makefile.in (install-gdbtk): Add missing continuation backslash to
122 insure that shell variables, such as "transformed_name" are propagated
123 to later shell statements in rule.
125 2002-10-06 Mark Kettenis <kettenis@gnu.org>
127 * config/i386/nm-i386sco.h: Add protection against
128 multiple-inclusion. Include "i386/nm-i386v.h".
129 (REGISTER_U_ADDR): Remove define.
130 (i386_register_u_addr): Remove prototype.
132 2002-10-04 Michael Snyder <msnyder@redhat.com>
134 * m32r-stub.c (handle_exception): Make sure exception is "trap"
135 before treating it as a single-step event.
137 2002-10-03 Adam Fedor <fedor@gnu.org>
139 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
140 (objc_demangle): Remove assignment in if statements, Replace
142 (add_msglist): Likewise.
143 (end_msglist): Likewise.
144 (complare_selectors): Likewise.
145 (selectors_info): Likewise.
146 (compare_classes): Likewise.
147 (classes_info): Likewise.
148 (print_object_command): Likewise.
149 (find_objc_msgcall_submethod): Replace PTR with void *.
150 * objc-lang.h: Remove check for __STDC__.
152 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
154 * ui-out.h (ui_out_field_fmt_int): New prototype.
155 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
156 of field width and alignment.
157 * stack.c (print_frame_info_base): When printing frame level, use
158 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
161 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
163 * MAINTAINERS: Add self to Write After Approval list.
165 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
167 * infcmd.c (interrupt_target_command_wrapper): Delete.
168 (interrupt_target_command): Make non static.
169 (nofp_registers_info): Make static.
170 * stack.c (return_command_wrapper): Delete.
171 (return_command): Make non static.
173 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
175 * event-top.c (gdb_setup_readline): New function. Code moved from
176 _initialize_event_loop().
177 (_initialize_event_loop): Call gdb_setup_readline().
179 2002-10-02 Andrew Cagney <ac131313@redhat.com>
181 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
182 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
183 * gdbarch.h, gdbarch.c: Re-generate.
185 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
188 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
190 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
191 of fill_in_vptr_fieldno.
193 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
195 * inferior.h (registers_info, stepi_command, nexti_command,
196 continue_command, interrupt_target_command): Export from infcmd.c.
197 * frame.h (args_info, selected_frame_level_changed_hook,
198 return_command): Export from stack.c.
199 * v850ice.c (stepi_command, nexti_command, continue_command): use
200 prototypes from inferior.h.
201 * tracepoint.c (registers_info, args_info, locals_info): Use
202 prototypes from frame.h and inferior.h.
203 * Makefile.in (mi-main.o): Add dependency on frame.h.
205 2002-10-02 Andrew Cagney <ac131313@redhat.com>
207 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
208 value in register 3 adjusted by ppc_gp0_regnum.
210 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
212 2002-10-02 Marko Mlinar <markom@opencores.org>
214 * MAINTAINERS: Add myself to the Write After Approval list.
216 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
218 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
219 of the section for the N64 ABI, fixed.
221 * config/mips/tm-irix6.h: Include solib.h.
223 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
225 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
228 2002-10-01 Andrew Cagney <ac131313@redhat.com>
230 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
231 and that "mi0" syntax has been removed.
233 2002-09-30 David Carlton <carlton@math.stanford.edu>
235 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
236 * ppc-sysv-tdep.c: #include "gdb_string.h".
237 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
240 2002-10-01 Andrew Cagney <ac131313@redhat.com>
242 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
243 "vrsave"'s register number.
245 2002-09-30 Andrew Cagney <ac131313@redhat.com>
247 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
248 use frame_unwind_signed_register to obtain the PC.
249 (mips_frame_chain): Handle a generic dummy frame.
250 (mips_init_extra_frame_info): When a generic dummy frame, don't
251 re-compute the frame base.
252 (mips_pop_frame): Handle generic dummy frames.
253 (mips_gdbarch_init): When generic dummy frames, set
254 use_generic_dummy_frames, push_dummy_frame to
255 generic_push_dummy_frame, pc_in_call_dummy to
256 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
257 generic_save_dummy_frame_tos.
259 2002-09-30 Andrew Cagney <ac131313@redhat.com>
261 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
262 against TOP when TOP was explictly set.
263 (generic_push_dummy_frame): Set TOP to zero.
265 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
267 * event-loop.c (start_event_loop): Rename variable 'result' to
268 'gdb_result', to avoid conflicts with upcoming intepreters changes.
270 2002-09-30 Keith Seitz <keiths@redhat.com>
272 * gdb-events.sh (selected_thread_changed): New event.
273 * gdb-events.c: Regenerated.
274 * gdb-events.h: Regenerated.
276 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
278 * MAINTAINERS: Add self to Write After Approval list.
280 2002-09-30 Fernando Nasser <fnasser@redhat.com>
282 * disasm.c: New file.
283 * disasm.h: New file.
284 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
285 (compare_lines): Ditto.
287 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
289 (do_assembly_only): Ditto.
290 (do_disassembly): Renamed to gdb_disassembly and moved to
291 disasm.c. Sdded uiout argument.
292 * Makefile.in: Add new files. Reorder SFILES list. Update
293 dependencies. Include libgdb.a later in the insight executable.
295 2002-09-29 Andrew Cagney <ac131313@redhat.com>
297 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
298 bfd/elf64-alpha-fbsd.c.
300 2002-09-29 Andrew Cagney <ac131313@redhat.com>
302 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
305 2002-09-29 Andrew Cagney <ac131313@redhat.com>
307 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
309 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
311 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
312 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
313 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
314 (S_msg_sig_post_reply): Ditto.
316 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
318 * sh-tdep.c (sh_use_struct_convention): Use definition according
320 (sh_push_arguments): Store in register with correct endianess.
321 (sh_default_store_return_value): Ditto.
322 (sh_gdbarch_init): Set sizeof long double to 8.
324 2002-09-27 Mark Kettenis <kettenis@gnu.org>
326 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
327 Fix some whitespace problems.
329 2002-09-27 David Carlton <carlton@math.stanford.edu>
331 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
332 (mcore-tdep.o): Ditto.
333 (ns32k-tdep.o): Ditto.
334 (ns32knbsd-tdep.o): Ditto.
337 * cris-tdep.c: #include "gdb_string.h"
338 * mcore-tdep.c: Ditto.
339 * ns32k-tdep.c: Ditto.
340 * ns32knbsd-tdep.c: Ditto.
344 2002-09-27 David Carlton <carlton@math.stanford.edu>
346 * config/djgpp/fnchange.lst: Add entries for
347 gdb/testsuite/gdb.c++/m-static files.
349 2002-09-27 Jim Wilson <wilson@redhat.com>
351 * MAINTAINERS: Add myself to the Write After Approval list.
353 2002-09-26 Martin M. Hunt <hunt@redhat.com>
355 * mips-tdep.c (find_proc_desc): Initialize startaddr.
358 2002-09-26 Andrew Cagney <ac131313@redhat.com>
360 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
363 2002-09-26 Andrew Cagney <ac131313@redhat.com>
365 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
366 (rs6000_struct_return_address): Delete variable.
367 (rs6000_store_struct_return): Update.
368 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
369 deprecated_extract_struct_value_address.
370 (rs6000_frame_align): New function.
371 (rs6000_gdbarch_init): Set frame_align.
373 2002-09-26 Andrew Cagney <ac131313@redhat.com>
375 From Grace Sainsbury <graces@redhat.com>:
376 * Makefile.in (gdbtk-main.o): New target.
379 (main.o): Update dependencies.
380 (gdb$(EXEEXT)): Add gdb.o.
381 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
382 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
383 (SUBDIR_GDBTK_CLEAN): Set.
384 (install-gdbtk): Install the insight binary.
385 (uninstall-gdbtk): New target.
386 (all-gdbtk, clean-gdbtk): New rule.
387 * top.c (use_windows): Default to zero.
388 * main.c: Include "main.h".
390 (struct captured_main_args): Delete.
391 (gdb_main): New function.
395 2002-09-25 Andrew Cagney <cagney@redhat.com>
397 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
398 (frame_map_regnum_to_name): New function.
399 (frame_map_name_to_regnum): New function.
400 * frame.h (frame_map_name_to_regnum): Declare.
401 (frame_map_regnum_to_name): Declare.
402 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
403 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
404 * parse.c: Do not include "builtin-regs.h".
405 (target_map_name_to_register): Delete function.
406 (write_dollar_variable): Use frame_map_name_to_regnum.
407 * parser-defs.h (target_map_name_to_register): Delete declaration.
408 * expprint.c: Include "frame.h".
409 (print_subexp): Use frame_map_regnum_to_name.
410 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
411 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
413 2002-09-25 Andrew Cagney <ac131313@redhat.com>
415 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
416 wasn't saved, and the next innermost frame is a dummy, return the
417 dummy frame's link register.
419 2002-09-24 Jim Blandy <jimb@redhat.com>
422 * main.c (captured_main): Add a `break' after the case for 'b'.
424 2002-09-24 Keith Seitz <keiths@redhat.com>
426 * varobj.c (c_type_of_child): Use get_target_type instead
429 2002-09-22 Fernando Nasser <fnasser@redhat.com>
431 * source.c (get_current_or_default_source_symtab_and_line): Remove
433 (set_default_source_symtab_and_line): New function. Attempts to
434 determine a source file to list lines from if one is not currently
436 (get_current_source_symtab_and_line): Initialize sal.pc and
438 (set_current_source_symtab_and_line): Mark argument as const.
439 * source.h: Update declarations and comments.
440 * linespec.c (decode_line_1): Replace call to removed routine above.
441 * stack.c (print_frame_info_base): Ditto.
442 * cli/cli-cmds.c (edit_command): Ditto.
443 (list_command): Ditto.
445 2002-09-22 Fernando Nasser <fnasser@redhat.com>
447 * source.c (get_current_or_default_source_symtab_and_line): Initialize
448 sal.pc and sal.end fields.
449 (get_current_or_default_source_symtab_and_line): Ditto.
450 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
451 so we do not cause a new source symtab to be searched for (reverting an
452 unintentional change from the 2002-09-20 patch).
453 * scm-lang.c (scm_unpac): Ditto.
455 2002-09-21 Andrew Cagney <cagney@redhat.com>
457 * complaints.c (symfile_explanations): Remove new-line from
458 ``isolated_message''.
459 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
460 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
462 2002-09-20 Nick Clifton <nickc@redhat.com>
464 * NEWS: Announce that V850EA ISA is no longer supported.
465 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
467 2002-09-20 David Carlton <carlton@math.stanford.edu>
469 * Makefile.in (c-lang.o): Correct dependencies.
470 (utils.o): Gather dependencies.
472 * c-lang.c: #include "gdb_string.h"
474 2002-09-20 Fernando Nasser <fnasser@redhat.com>
476 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
477 * cli/cli-cmds.c (list_command): New function. Implements the new
479 (_init_cli_cmds): Add new command definition.
480 * gdb.1: Document edit command.
481 * doc/gdb.texinfo: Document edit command.
483 2002-09-20 Fernando Nasser <fnasser@redhat.com>
485 * source.c: Make global variables current_source_symtab and
486 current_source_line static.
487 (list_command): Moved to cli/cli-cmds.c.
488 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
489 (get_first_line_listed): New accessor function.
490 (get_lines_to_list): New accessor function.
491 (get_current_source_symtab_and_line): New function. Retrieves the
492 position in the source code that we consider current.
493 (get_current_or_default_source_symtab_and_line): New function.
494 Like the above but attempts to determine a default position if one
495 is not currently defined.
496 (set_current_source_symtab_and_line): New function. Sets the source
497 code position considered current and returns the previously set one.
498 (clear_current_source_symtab_and_line): Reset stored information about
499 a current source line.
500 (_initialize_source): Remove registration for the "list" command and
502 * source.h: Add declarations for the new functions above.
503 * symtab.h: Remove declarations for the global variables mentioned
505 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
506 obtain current source line.
507 * linespec.c (decode_line_1): Ditto.
508 * macroscope.c (default_macro_scope): Ditto.
509 * scm-lang.c (scm_unpac): Ditto.
510 * stack.c (print_frame_info_base): Ditto.
511 * symfile.c (clear_symtab_users): Ditto.
512 * symtab.c (decode_line_spec): Ditto.
513 * cli/cli-cmds.c (list_command): Moved here from source.c.
514 (ambiguous_line_spec): Moved here from source.c.
515 (_init_cli_cmds): Add definition for "list" and its alias.
516 * Makefile.in: Update dependencies.
518 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
520 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
521 with what gcc thinks is correct.
523 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
525 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
526 multiple register push instruction.
528 2002-09-19 Jim Blandy <jimb@redhat.com>
530 Add support for distinct host and target character sets.
531 * charset.c, charset.h: New files.
532 * c-exp.y: #include "charset.h".
533 (yylex): Convert character and string literals to the target
534 character set, before returning them as the semantic value of the
536 * c-lang.c: #include "charset.h".
537 (c_emit_char): Use charset-specific methods to recognize
538 characters with backslash escape forms, to decide which characters
539 to print literally and which to print using numeric escape
540 sequences, and to convert target characters to host characters
542 * utils.c: #include "charset.h".
543 (no_control_char_error): New function.
544 (parse_escape): Use charset-specific methods to recognize
545 backslash escapes, parse `control character' notation, and convert
546 characters from the host character set to the target character set.
547 * configure.in: Set the default host character set.
548 Check where to find iconv, and what its argument types might be.
549 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
550 * Makefile.in (SFILES): List charset.c.
551 (COMMON_OBS): List charset.o.
552 (charset.o): New rule.
553 (charset_h): New header dependency variable.
554 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
555 (LIBICONV): New variable, set by configure.
556 (CLIBS): Include $(LIBICONV) here.
557 * aclocal.m4, config.in, configure: Regenerated.
559 2002-09-19 Joel Brobecker <brobecker@gnat.com>
561 * ada-exp.y: Add missing semicolons to end rules. Fixes a
564 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
566 * gdb_mbuild.sh: New file.
568 2002-09-19 Andrew Cagney <ac131313@redhat.com>
570 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
572 2002-09-18 Andrew Cagney <ac131313@redhat.com>
574 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
575 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
576 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
577 valops.c, value.h: Revert previous change.
579 2002-09-18 Michael Snyder <msnyder@redhat.com>
581 Preliminary support for Objective-C:
582 * defs.h (language_objc): New enum value.
583 (puts_filtered_tabular): Declaration only, exported from utils.c.
584 (skip_quoted): Delete, declared in completer.h.
585 * c-exp.y: Include completer.h.
588 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
589 New operator enum values.
590 * language.h (CAST_IS_CONVERSION): Test for language_objc.
591 * language.c (binop_result_type): Handle language_objc case.
592 (integral_type, character_type, string_type, boolean_type,
593 structured_type, binop_type_check): Ditto.
594 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
595 (struct objc_specific): Add to general_symbol_info.
596 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
597 (SYMBOL_DEMANGLED_NAME): Handle objc case.
598 * parser-defs.h (struct objc_class_str): New struct type.
599 (start_msglist, end_msglist, add_msglist): Declaration only,
600 exported from objc-lang.c.
601 * value.h (value_of_local, value_nsstring,
602 call_function_by_hand_expecting_type): Exported from valops.c.
603 * valops.c (find_function_addr): Export.
604 (call_function_by_hand_expecting_type): New function.
605 (value_of_local): New function.
606 * symfile.c (init_filename_language_table): Add ".m" extension
608 * utils.c (puts_filtered_tabular): New function.
609 (fprintf_symbol_filtered): Add objc demangling support (disabled).
610 (set/show demangle): Extend help-string to refer to ObjC.
611 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
612 * stabsread.c (symbol_reference_defined): Objective-C symbols
613 may contain colons: make allowances when scanning stabs strings
615 (objc_find_colon): New function.
616 * printcmd.c (address_info): If language == objc then print
617 "self" instead of "this".
618 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
619 OP_NSSTRING, and OP_SELF.
620 (prefixify_subexp): Ditto.
621 * source.c (print_source_lines): Mention objc in comment.
622 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
625 2002-09-18 Andrew Cagney <ac131313@redhat.com>
627 * complaints.h: Update copyright.
628 (struct complaints): Declare.
629 (struct complaint): Make `message' constant.
630 (internal_complaint): Declare.
631 (complaint): Declare.
632 (complaint_root): Delete declaration.
633 (symfile_complaints): Delete declaration.
634 (struct complaints): Add opaque declaration.
635 (clear_complaints): Add a complaints parameter.
636 * complaints.c: Update copyright.
637 (enum complaint_series): Define.
638 (complaint_root): Delete.
639 (struct complaints): Define.
640 (complaint_sentinel, symfile_complaint_book): New variables.
641 (symfile_explanations, symfile_complaints): New variables.
643 (get_complaints): New function.
644 (vcomplaint): New function.
645 (complaint): New function.
646 (internal_complaint): New function.
647 (complain): Call vcomplain with symfile_complaint.
648 (clear_complaints): Rewrite.
649 (_initialize_complaints): Use add_setshow_command.
650 * Makefile.in (complaints.o): Update dependencies.
651 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
652 to call to clear_complaints.
653 (new_symfile_objfile, reread_symbols): Ditto.
654 (oldsyms_complaint): Delete.
655 (empty_symtab_complaint, unknown_option_complaint): Delete.
656 (free_named_symtabs): Use complaint instead of complain.
658 2002-09-18 Michael Snyder <msnyder@redhat.com>
660 Contributed by Apple Computer, Inc. Merged with current sources
661 by Adam Fedor <fedor@doc.com> [cagney].
663 * objc-lang.c: First clean-up round: comments, indentation.
664 * objc-lang.h: Ditto.
665 * objc-lang.y: Ditto.
667 2002-09-18 Andrew Cagney <ac131313@redhat.com>
669 * maint.c (maintenance_internal_error): Print the parameter as the
671 (maintenance_internal_warning): New function.
672 (_initialize_maint_cmds): Add command `maint internal-warning'.
674 * defs.h (internal_warning, internal_vwarning): Declare.
675 * utils.c (struct internal_problem): Define.
676 (internal_vproblem): New function.
677 (internal_warning): New function.
678 (internal_vwarning): New function.
679 (internal_warning_problem, internal_error_problem): New variables.
680 (internal_verror): Just call internal_vproblem.
682 2002-09-18 Michael Snyder <msnyder@redhat.com>
684 * objc-lang.c: New file, support for Objective-C.
685 Preliminary check-in, not yet integrated into gdb.
686 * objc-lang.h: New file.
687 * objc-exp.y: New file.
689 2002-09-18 Andrew Cagney <ac131313@redhat.com>
691 * infrun.c (signal_stop_update): Convert definition to ISO C.
692 (signal_print_update): Ditto.
693 (signal_pass_update): Ditto.
694 * inflow.c (terminal_save_ours): Ditto.
696 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
699 * config/djgpp/fnchange.lst: Handle name clashes between
700 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
703 * i386-linux-tdep.h: Fix tipo.
705 2002-09-18 Adam Fedor <fedor@gnu.org>
707 * MAINTAINERS: Add myself to the Write After Approval list.
709 2002-09-18 Jim Blandy <jimb@redhat.com>
711 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
712 texthigh and textlow to reader-specific structs caused
713 objfile_relocate to miss them. This is fixable, but the work that
714 the change was supposed to prepare GDB for never got done anyway.
716 2002-09-18 David Carlton <carlton@math.stanford.edu>
718 * MAINTAINERS: Alphabetize Write After Approval list.
720 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
723 * values.c (value_static_field): Call read_var_value.
725 2002-09-18 Andrew Cagney <ac131313@redhat.com>
727 * valops.c (hand_function_call): Align the initial stack pointer
728 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
729 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
731 * mips-tdep.c (mips_frame_align): New function.
732 (mips_gdbarch_init): Set frame_align.
733 * gdbarch.sh (FRAME_ALIGN): New method.
734 * gdbarch.h, gdbarch.c: Re-generate.
736 2002-09-18 Michal Ludvig <mludvig@suse.cz>
738 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
741 2002-09-17 Andrew Cagney <ac131313@redhat.com>
743 * NEWS: Mention that MIPS $fp behavior changed.
744 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
745 reference to FP_REGNUM.
746 (mipsnbsd_cannot_store_register): Ditto.
747 * mips-linux-nat.c: Update copyright.
748 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
749 (mips_linux_cannot_store_register): Ditto.
750 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
751 * config/mips/tm-mips.h: Update copyright.
752 (FP_REGNUM): Delete macro.
753 (MIPS_REGISTER_NAMES): Replace "fp" with "".
754 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
755 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
756 (mips_r3041_reg_names, mips_r3051_reg_names)
757 (mips_r3081_reg_names): Replace "fp" with "".
760 2002-09-17 Theodore A. Roth <troth@verinet.com>
762 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
763 generic_read_register_dummy() (PR gdb/703).
764 (avr_push_return_address): #if 0 out unused vars.
765 (avr_gdbarch_init): Enable use of avr_push_return_address().
767 2002-09-17 Michael Snyder <msnyder@redhat.com>
769 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
770 RTE will take care of it.
772 2002-09-17 Andrew Cagney <ac131313@redhat.com>
774 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
775 invalid, return SP_REGNUM.
777 2002-09-17 Michael Snyder <msnyder@redhat.com>
779 * mips-tdep.c (mips_pop_frame): Read saved values of floating
780 point registers without sign extension.
782 2002-09-17 Andrew Cagney <cagney@redhat.com>
784 * blockframe.c (deprecated_read_register_dummy): Rename
785 generic_read_register_dummy.
786 * frame.c (frame_unwind_signed_register): New function.
787 (frame_unwind_unsigned_register): New function.
788 * frame.h (frame_unwind_signed_register): Declare.
789 (frame_unwind_unsigned_register): Declare.
790 (deprecated_read_register_dummy): Rename
791 generic_read_register_dummy.
793 * h8300-tdep.c (h8300_frame_chain): Update.
794 (h8300_frame_saved_pc): Update.
795 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
796 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
797 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
798 (s390_frame_chain): Update.
799 * v850-tdep.c (v850_find_callers_reg): Update.
800 (v850_frame_saved_pc): Update.
801 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
802 (m32r_find_callers_reg): Update.
803 (m32r_frame_saved_pc): Update.
804 * sh-tdep.c (sh_find_callers_reg): Update.
805 (sh64_get_saved_pr): Update.
806 (sh_init_extra_frame_info): Update.
807 (sh_init_extra_frame_info): Update.
808 (sh64_init_extra_frame_info): Update.
809 (sh64_init_extra_frame_info): Update.
810 * mcore-tdep.c (mcore_find_callers_reg): Update.
811 (mcore_frame_saved_pc): Update.
812 (mcore_init_extra_frame_info): Update.
813 * i386-tdep.c (i386_frame_saved_pc): Update.
814 * ia64-tdep.c (ia64_frame_saved_pc): Update.
815 (ia64_init_extra_frame_info): Update.
816 (ia64_init_extra_frame_info): Update.
817 * d10v-tdep.c (d10v_frame_saved_pc): Update.
818 * cris-tdep.c (cris_init_extra_frame_info): Update.
819 * avr-tdep.c (avr_frame_chain): Update.
820 (avr_init_extra_frame_info): Update.
821 (avr_frame_saved_pc): Update.
822 * arm-tdep.c (arm_find_callers_reg): Update.
823 (arm_init_extra_frame_info): Update.
824 (arm_frame_saved_pc): Update.
826 2002-09-17 Tom Tromey <tromey@redhat.com>
828 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
831 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
833 * MAINTAINERS: Remove "non multi-arched" text from h8300.
834 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
836 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
839 2002-09-16 Joel Brobecker <brobecker@gnat.com>
841 * osfsolib.c: Remove file, replaced by solib-osf.c.
842 * Makefile.in: Remove compilation rules for osfsolib.c.
844 2002-09-16 David Carlton <carlton@math.stanford.edu>
846 * cp-valprint.c (cp_print_class_method): Correct args to
847 check_stub_method_group.
849 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
851 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
852 `set architecture'. Unify naming convention of functions.
853 (h8300_skip_prologue): Improve prologue analysis.
854 (h8300_push_arguments): Rewritten to more closely match GCC's
855 bizarre argument-passing behavior, along with the comment describing
857 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
858 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
859 sim, remote-e7000.c, remote-hms.c and remote.c
861 2002-09-15 Mark Kettenis <kettenis@gnu.org>
863 * i386-tdep.c (gdb_print_insn_i386): Removed.
864 (i386_print_insn): New function.
865 (i386_gdbarch_init): Set print_insn to i386_print_insns.
866 (_initialize_i386_tdep): Don't initialize tm_print_insn and
869 2002-09-14 Mark Kettenis <kettenis@gnu.org>
871 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
874 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
876 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
877 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
878 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
880 2002-09-13 Christopher Faylor <cgf@redhat.com>
882 * win32-nat.c (child_create_inferior): Honor 'tty' command.
884 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
886 * gdbtypes.c (check_stub_method): Make static.
887 (check_stub_method_group): New function.
888 * gdbtypes.h: Update prototypes.
889 * cp-support.c: New file.
890 * cp-support.h: New file.
892 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
893 (update_method_name_from_physname): New function.
894 (read_member_functions): Correct method names for operators
895 and v3 constructors/destructors. Separate v2 constructors and
897 * Makefile.in (stabsread.o): Update dependencies.
898 (SFILES): Add cp-support.c.
899 (COMMON_OBS): Add cp-support.o.
900 (cp_support_h, cp-support.o): Add.
902 * cp-valprint.c (cp_print_class_method): Call
903 check_stub_method_group instead of check_stub_method. Remove
905 * p-valprint.c (pascal_object_print_class_method): Likewise.
906 * valops.c (search_struct_method): Likewise.
907 (find_method_list, value_struct_elt_for_reference): Likewise.
909 2002-09-13 Andrew Cagney <cagney@redhat.com>
911 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
912 * gdbarch.h, gdbarch.c: Regenerate.
914 2002-09-13 Andrew Cagney <ac131313@redhat.com>
916 * frame.c (find_saved_register): Delete function.
917 * frame.h (find_saved_register): Delete declaration.
920 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
922 * mips-tdep.c (read_next_frame_reg): Re-hack using
923 frame_register_unwind.
925 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
927 * mips-tdep.c (mips_get_saved_register): Re-hack using
928 frame_register_unwind.
930 2002-09-12 Joel Brobecker <brobecker@gnat.com>
932 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
933 vector. Will be useful for Interix.
934 * gdbarch.h, gdbarch.c: Regenerate.
936 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
937 name of the malloc function by NAME_OF_MALLOC.
939 2002-09-12 Joel Brobecker <brobecker@gnat.com>
941 * value.h (find_function_in_inferior): Add const keyword to
942 one of the parameters. Allows us to invoke this function with
944 * valops.c (find_function_in_inferior): Likewise.
946 2002-09-12 Joel Brobecker <brobecker@gnat.com>
948 * exec.c (xfer_memory): Fix compilation warning with old versions
950 * tracepoint.c (trace_find_tracepoint_command): Likewise.
952 2002-09-12 David Carlton <carlton@math.stanford.edu>
954 * symtab.h: Run through gdb_indent.h.
955 Add 2002 to Copyright year list.
957 2002-09-12 Alan Modra <amodra@bigpond.net.au>
959 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
961 * MAINTAINERS: Add myself to write after approval list.
963 2002-09-11 J. Brobecker <brobecker@gnat.com>
965 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
967 2002-09-11 J. Brobecker <brobecker@gnat.com>
969 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
972 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
974 * procfs.c (do_detach): Clear current signal, not just fault.
975 Corrects problem with breakpoint trap signal leaking to detached
978 2002-09-10 Michael Snyder <msnyder@redhat.com>
980 * buildsym.c (finish_block): Protect against null pointer.
982 2002-09-10 Andrew Cagney <cagney@redhat.com>
984 * infcmd.c (default_print_registers_info): Send all output to
985 ``file'' instead of ``gdb_stdout''.
987 2002-09-10 Michael Snyder <msnyder@redhat.com>
989 * mips-tdep.c (mips_extract_struct_value_address): Make val a
990 LONGEST, and use signed register read (addresses are sign-
993 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
995 * event-loop.c (gdb_do_one_event): Make public.
996 * event-loop.h (gdb_do_one_event): Declare.
998 2002-09-10 Jeff Law <law@redhat.com>
1000 * infttrace.c (child_resume): Simplify and rework to avoid
1003 2002-09-09 Fred Fish <fnf@intrinsity.com>
1005 * printcmd.c (print_scalar_formatted): "len" is the number of
1006 target bytes, NOT the number of target bits.
1008 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1010 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1011 * top.c (init_main): Set rl_terminal_name.
1013 2002-09-08 Aidan Skinner <aidan@velvet.net>
1015 * ada-lang.c (ada_array_bound, ada_type_match,
1016 _initialize_ada_language): Fix K&R definitions.
1017 * ada-tasks.c (get_current_task): Fix K&R definitions.
1018 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1020 2002-09-07 Christopher Faylor <cgf@redhat.com>
1022 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1025 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1027 * i386-tdep.c (i386_register_virtual_type,
1028 i386_register_convertible, i386_register_convert_to_virtual,
1029 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1030 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1031 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1032 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1033 Don't set push_arguments twice.
1035 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1036 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1037 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1038 sigtramp_end to NULL.
1039 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1041 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1043 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1046 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1047 * gdbarch.h, gdbarch.c: Re-generate.
1048 * blockframe.c (find_pc_sect_partial_function): Convert to use
1049 SIGTRAMP_START_P predicate.
1051 2002-09-05 Michael Snyder <msnyder@redhat.com>
1053 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1054 generic_dummy_frame method and old method. Also distinguish
1055 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1056 (arm_extract_return_value): Use new regcache method.
1058 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1059 adjustment that doesn't conform to the ABI.
1060 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1061 saved regcache, not from current regcache.
1063 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1065 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1068 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1070 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1071 if arm_apcs_32 is false.
1073 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1075 GDB 5.3 branch created.
1077 2002-09-03 Theodore A. Roth <troth@verinet.com>
1079 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1080 generic_unwind_get_saved_register.
1082 2002-09-03 David Carlton <carlton@math.stanford.edu>
1084 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1085 argument (PR gdb/653). Update call to smash_to_method_type.
1086 (read_structure_scope): Update call to dwarf2_add_member_fn.
1088 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1090 * x86-64-linux-tdep.c: Include gdb_string.h
1091 * x86-64-linux-nat.c: Ditto.
1093 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1095 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1096 when YYDEBUG is set to 1.
1097 * c-exp.y: Likewise.
1098 * f-exp.y: Likewise.
1099 * jv-exp.y: Likewise.
1100 * m2-exp.y: Likewise.
1101 * p-exp.y: Likewise.
1103 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1105 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1107 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1108 solib_svr4_fetch_link_map_offsets to
1109 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1110 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1111 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1112 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1113 solib-svr4.o, and solib-legacy.o.
1114 * config/i386/tm-nbsd.h: Include solib.h.
1116 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1118 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1119 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1120 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1121 comment noting that this needs its own target configuration.
1122 * config/i386/nbsd.mt: New file.
1123 * config/i386/nbsdaout.mt: Remove.
1124 * config/i386/nbsdelf.mt: Ditto.
1125 * config/i386/tm-nbsdaout.h: Ditto.
1127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1129 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1130 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1131 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1133 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1134 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1135 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1137 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1139 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1140 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1141 * i386-tdep.h (i386bsd_init_abi): New prototype.
1142 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1143 function declaration.
1144 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1145 for NetBSD-a.out or NetBSD-ELF.
1146 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1147 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1148 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1149 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1151 (i386nbsd_pc_in_sigtramp): New function.
1152 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1153 i386nbsd_pc_in_sigtramp.
1154 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1155 and i386nbsdelf_init_abi OS ABI handlers.
1156 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1157 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1159 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1161 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1162 registers if the target really has them.
1164 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1166 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1169 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1171 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1173 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1174 (alphanbsd_skip_sigtramp_frame): New functions.
1175 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1176 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1177 to alphanbsd_sigcontext_addr.
1179 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1181 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1183 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1184 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1185 nbsd_pc_in_sigtramp.
1186 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1187 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1188 * nbsd-tdep.c: Include gdb_string.h.
1189 (nbsd_pc_in_sigtramp): New function.
1190 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1191 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1192 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1193 ppcnbsd_pc_in_sigtramp.
1194 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1195 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1196 shnbsd_pc_in_sigtramp.
1197 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1198 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1199 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1201 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1203 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1204 watchpoints to NULL.
1205 (insert_breakpoints): set val field of watchpoints if NULL.
1208 2002-08-29 Jim Blandy <jimb@redhat.com>
1210 * symtab.c (lookup_symbol_aux): In the cases where we find a
1211 minimal symbol of an appropriate name and use its address to
1212 select a symtab to read and search, use `name' (as passed to us)
1213 as the demangled name when searching the symtab's global and
1214 static blocks, not the minsym's name.
1216 2002-08-29 Keith Seitz <keiths@redhat.com>
1218 * stack.c (print_frame_info_base): Always set current_source_symtab
1219 and current_source_line.
1221 2002-08-29 Donn Terry <donnte@microsoft.com>
1223 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1225 2002-08-28 Keith Seitz <keiths@redhat.com>
1227 * stack.c (select_frame): Add FIXME concerning selected-frame
1229 (select_frame_command): Send selected-frame-level-changed
1230 event notification, but only if the level actually changed.
1231 (up_silently_base): Add selected-frame-level-changed event
1233 (down_silently_base): Likewise.
1235 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1237 * Makefile.in: Update dependencies for all gdb/*.c files.
1239 2002-08-27 Tom Tromey <tromey@redhat.com>
1241 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1242 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1243 Update dependencies.
1244 * i387-tdep.c: Include gdb_string.h.
1245 * osabi.c: Likewise.
1246 * i386-linux-nat.c: Likewise.
1247 * lin-lwp.c: Likewise.
1248 * ax-gdb.c: Likewise.
1249 * signals/signals.c: Likewise.
1250 * jv-valprint.c: Likewise.
1251 * p-lang.c: Likewise.
1252 * c-valprint.c: Likewise.
1253 * cp-abi.c: Likewise.
1255 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1257 * cli/cli-script.h (copy_command_lines): Export.
1258 * breakpoint.c: Include cli/cli-script.h.
1259 * Makefile.in (breakpoint.o): Update dependencies.
1261 2002-08-26 Michael Snyder <msnyder@redhat.com>
1263 * breakpoint.c (insert_breakpoints): Protect all references
1264 to 'process_warning'. Shorten long lines.
1266 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1268 * cli/cli-script.c (copy_command_lines): New function.
1269 * defs.h (copy_command_lines): Export.
1270 * testsuite/gdb.base/commands.exp: New tests for commands
1271 attached to a temporary breakpoint, and for commands that
1272 delete the breakpoint they are attached to.
1274 2002-08-26 Michael Snyder <msnyder@redhat.com>
1276 * breakpoint.c (bpstat_stop_status): Instead of copying the
1277 pointer to the breakpoint commands struct, make a new copy
1278 of the struct and point to that.
1279 (bpstat_clear): Free the commands struct.
1280 (bpstat_clear_actions): Free the commands struct.
1281 (bpstat_do_actions): Free the command actions. Also execute
1282 the local cleanups, instead of deleting them.
1283 (delete_breakpoint): Leave the commands field of the bpstat
1284 chain alone -- it will be freed later.
1286 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1288 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1289 deleted in 2002-08-20 commit. This function is still used by
1292 2002-08-26 Keith Seitz <keiths@redhat.com>
1294 * gdb-events.sh: Add selected-frame-level-changed event.
1295 * gdb-events.c: Regenerated.
1296 * gdb-events.h: Regenerated.
1298 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1301 * inflow.c (terminal_save_ours): New function to save terminal
1303 * inferior.h (terminal_save_ours): Declare.
1304 * target.c (debug_to_terminal_save_ours): New function.
1305 (cleanup_target): Defaults to_terminal_save_ours.
1306 (update_current_target): Inherit to_terminal_save_ours.
1307 (setup_target_debug): Set to_terminal_save_ours.
1308 * target.h (target_terminal_save_ours): New to save terminal settings.
1309 (target_ops): New member to_terminal_save_ours.
1310 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1311 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1312 * inftarg.c (init_child_ops): Likewise.
1313 * m3-nat.c (init_m3_ops): Likewise.
1314 * procfs.c (init_procfs_ops): Likewise.
1315 * wince.c (init_child_ops): Likewise.
1316 * win32-nat.c (init_child_ops): Likewise.
1317 * sol-thread.c (init_sol_thread_ops): Likewise.
1319 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1321 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1322 use regcache_* functions.
1323 (i386_gdbarch_init): Set store_return_value instead of
1324 deprecated_store_return_value.
1326 * regcache.c (regcache_raw_write_signed,
1327 regcache_raw_write_unsigned): New functions.
1328 * regcache.h (regcache_raw_write_signed,
1329 regcache_raw_write_unsigned): New prototypes.
1331 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1333 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1334 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1335 source file dependencies. Cleanup corresponding generator rules.
1337 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1339 * regcache.h (register_offset_hack): Declare.
1340 (regcache_cooked_read_using_offset_hack): Declare.
1341 (regcache_cooked_write_using_offset_hack): Declare.
1343 * regcache.c (register_offset_hack): New function.
1344 (regcache_cooked_read_using_offset_hack): New function.
1345 (regcache_cooked_write_using_offset_hack): New function.
1346 (regcache_dump): Check that the registers, according to their
1347 offset, are packed hard against each other.
1348 (cooked_xfer_using_offset_hack): New function.
1350 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1352 * regcache.c (struct regcache_descr): Add field register_type.
1353 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1355 (init_regcache_descr): Initialize register_type. Pass the descr
1356 to init_legacy_regcache_descr. Use register_type instead of
1357 REGISTER_VIRTUAL_TYPE.
1358 (register_type): New function.
1359 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1360 * regcache.h (register_type): Declare.
1362 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1364 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1365 instead of deprecated_store_return_value. Fix fallout from
1366 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1368 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1370 * regcache.c (max_register_size): New function.
1371 (init_legacy_regcache_descr): Ensure that max_register_size is
1372 large enough for REGISTER_VIRTUAL_SIZE.
1373 * regcache.h (max_register_size): Declare.
1375 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1377 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1379 (e500_extract_return_value): Change type of valbuf pointer to
1382 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1384 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1387 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1388 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1389 long long) to prevent compiler warning on 64-bit systems.
1391 2002-08-23 Andrew Cagney <cagney@redhat.com>
1393 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1394 (DEPRECATED_STORE_RETURN_VALUE): New method.
1395 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1396 * gdbarch.h, gdbarch.c: Re-generate.
1398 * values.c (set_return_value): Pass current_regcache to
1400 * arch-utils.h (legacy_store_return_value): Declare.
1401 * arch-utils.c (legacy_store_return_value): New function.
1402 (legacy_extract_return_value): Update parameters.
1404 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1406 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1407 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1408 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1409 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1410 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1411 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1412 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1413 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1414 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1415 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1418 * i386-tdep.c (i386_extract_return_value): Update.
1419 * arch-utils.c (legacy_extract_return_value): Update.
1420 * frv-tdep.c (frv_gdbarch_init): Update.
1421 * cris-tdep.c (cris_gdbarch_init): Update.
1422 * d10v-tdep.c (d10v_gdbarch_init): Update.
1423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1424 * m68k-tdep.c (m68k_gdbarch_init): Update.
1425 * mcore-tdep.c (mcore_gdbarch_init): Update.
1426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1427 * s390-tdep.c (s390_gdbarch_init): Update.
1428 * sparc-tdep.c (sparc_gdbarch_init): Update.
1429 * sh-tdep.c (sh_gdbarch_init): Update.
1430 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1431 * v850-tdep.c (v850_gdbarch_init): Update.
1432 * avr-tdep.c (avr_gdbarch_init): Update.
1433 * ia64-tdep.c (ia64_gdbarch_init): Update.
1434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1435 * vax-tdep.c (vax_gdbarch_init): Update.
1436 * alpha-tdep.c (alpha_gdbarch_init): Update.
1437 * arm-tdep.c (arm_gdbarch_init): Update.
1438 * mips-tdep.c (mips_gdbarch_init): Update.
1439 * i386-tdep.c (i386_gdbarch_init): Update.
1441 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1443 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1444 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1446 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1448 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1451 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1453 * infrun.c (handle_inferior_event): Move a comment outside of a
1454 function call, in order to avoid indent reformatting this part
1455 of the code in an unreadable way.
1457 2002-08-23 Grace Sainsbury <graces@redhat.com>
1459 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1460 when breakpoints fail. Move general breakpoint error messages to
1462 * breakpoint.c (insert_breakpoints): Change warnings when
1463 breakpoints are nto inserted to specify the type. Remove call to
1464 memory_error when hardware breakpoints can't be inserted. Remove
1465 multiple calls to warning so all messages are sent to the user at
1467 (delete_breakpoints): Make insert error messsages more explicit.
1469 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1471 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1472 gdbserver/ChangeLog.
1474 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1476 * i386-tdep.c: Include "objfiles.h".
1477 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1478 skip_trampoline_code.
1479 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1480 (CPLUS_MARKER): Define to '.'.
1482 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1484 (linux_corefile_thread_callback): Increase args->num_notes.
1485 (linux_make_note_section): Initialize thread_args.num_notes, and
1486 use it to determine whether notes for any threads were created.
1488 2002-08-23 Donn Terry <donnte@microsoft.com>
1490 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1491 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1493 (write_with_trace): Conditionalize out the switch branch handling
1494 PCSHOLD if the corresponding macro is not defined. Likewise for
1495 PRSABORT and PRSTOP.
1496 This change will be needed by the Interix port.
1498 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1500 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1501 write_register wherever possible instead of manipulating the
1502 register bytes directly.
1503 Assign VALUE_CONTENTS to a variable and use that.
1504 The GPR numbers are now dependent on the architecture.
1506 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1508 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1510 (skip_prologue): Add support for BookE/e500 instructions.
1511 (e500_extract_return_value): New function.
1512 (frame_get_saved_regs): Add support for saving ev registers and
1514 (e500_store_return_value): New function.
1515 (rs6000_gdbarch_init): Move up default intializations of
1516 deprecated_extract_return_value and store_return_value. Overwrite
1517 init of store_return_value with e500 specific version.
1518 Set extract_return_value for e500.
1520 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1522 * blockframe.c (generic_call_dummy_register_unwind): Use
1523 regcache_cooked_read to catch cases in which the variable is
1524 stored in a pseudo register.
1526 2002-08-22 Andrew Cagney <cagney@redhat.com>
1528 * NEWS: Mention that the i960 has been made obsolete.
1529 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1531 (remote-nrom.o): Obsolete target.
1532 (remote-nindy.o, i960-tdep.o): Ditto.
1533 * remote-nrom.c: Make file obsolete.
1534 * remote-nindy.c, remote-vx960.c: Ditto.
1535 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1536 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1537 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1538 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1539 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1540 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1541 i960-*-vxworks* obsolete.
1542 * MAINTAINERS: Note that the i960 is obsolete.
1544 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1546 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1547 detach to allow reinitialization.
1549 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1551 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1554 2002-08-22 Jim Blandy <jimb@redhat.com>
1556 * coffread.c (coff_symfile_read): Don't try to read the line
1557 number table from disk if the image file doesn't have a symbol
1558 table; we'll never actually look at the info anyway, and Windows
1559 ships DLL's with bogus file offsets for the line number data.
1561 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1563 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1566 2002-08-21 Michael Snyder <msnyder@redhat.com>
1568 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1569 (MSYMBOL_SIZE): Replace macro with function.
1570 (DEFAULT_MIPS_TYPE): Delete unused macro.
1571 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1572 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1574 2002-08-21 Jim Blandy <jimb@redhat.com>
1576 * valops.c (value_cast): Simplify and correct logic for doing a
1577 static cast from a pointer to a base class to a pointer to a
1580 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1582 * infcmd.c (default_print_registers_info): Replace
1584 (registers_info): Use gdbarch_print_registers_info instead of
1586 * inferior.h (default_print_registers_info): Replace
1588 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1589 (DO_REGISTERS_INFO): Change to a predicate function.
1590 * gdbarch.h, gdbarch.c: Regenerate.
1592 2002-08-21 Keith Seitz <keiths@redhat.com>
1594 * gdb-events.sh: Add target-changed event.
1595 * gdb-events.c: Regenerated.
1596 * gdb-events.c: Regenerated.
1597 * valops.c (value_assign): Add target-changed event notification
1598 to inlval_register, lval_memory, and lval_reg_frame_relative.
1600 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1602 * NEWS: Add an entry regarding the improvement of the next/step
1603 operation on Alpha Tru64 multi-processor machines.
1605 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1607 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1609 * Makefile.in: Update all _h macro definitions.
1610 * Makefile.in (install-gdbtk): Move to install section.
1611 (rdi-share/libangsd.a): Move to end of file.
1613 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1615 * frame.c (frame_register_unwind): When a register, set addrp to
1616 the register's byte.
1618 2002-08-20 Michael Snyder <msnyder@redhat.com>
1620 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1621 used locally, so move them from the target machine header to here.
1622 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1623 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1625 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1627 2002-08-20 Andrew Cagney <cagney@redhat.com>
1629 * NEWS: Mention that the Apollo line was made obsolete.
1630 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1631 m68*-hp-hpux* obsolete.
1632 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1633 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1634 * buildsym.c (make_blockvector): Make static.
1635 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1636 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1637 (ALLDEPFILES): Remove dstread.c.
1638 (dstread.o): Obsolete make rule.
1639 * dstread.c: Makefile obsolete.
1641 * config/m68k/hp300hpux.mt: Ditto.
1642 * config/m68k/hp300hpux.mh: Ditto.
1643 * config/m68k/hp300bsd.mt: Ditto.
1644 * config/m68k/hp300bsd.mh: Ditto.
1645 * config/m68k/apollo68b.mt: Ditto.
1646 * config/m68k/apollo68v.mh: Ditto.
1647 * config/m68k/apollo68b.mh: Ditto.
1649 2002-08-20 Michael Snyder <msnyder@redhat.com>
1651 * mips-tdep.c (mips_in_return_stub): Make static.
1652 (mips_gdbarch_init): Set in_solib_return_trampoline.
1653 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1655 2002-08-20 Michael Snyder <msnyder@redhat.com>
1657 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1658 * gdbarch.c, gdbarch.h: Regenerate.
1659 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1661 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1663 2002-08-20 Michael Snyder <msnyder@redhat.com>
1665 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1666 (mips_gdbarch_init): Set skip_trampoline_code,
1667 in_solib_call_trampoline.
1668 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1669 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1671 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1673 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1675 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1676 vector type for ev registers.
1677 (e500_pseudo_register_read): New function.
1678 (e500_pseudo_register_write): New function.
1679 (e500_dwarf2_reg_to_regnum): New function.
1680 (PPC_UISA_NOFP_SPRS): New macro.
1681 (PPC_EV_REGS): New macro.
1682 (PPC_GPRS_PSEUDO_REGS): New macro.
1683 (registers_e500): New register set for e500.
1684 (variants): Add e500 variant.
1685 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1686 before setting architectural dependent variations. Initialize ev
1687 registers numbers. Add case for e500 architecture. Set the
1688 number of pseudo registers.
1690 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1692 * rs6000-tdep.c: Clean up comments.
1694 2002-08-20 Andrew Cagney <cagney@redhat.com>
1696 * h8300-tdep.c: Re-indent file.
1698 2002-08-20 Jim Blandy <jimb@redhat.com>
1700 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1703 2002-08-20 Keith Seitz <keiths@redhat.com>
1705 * breakpoints.c (watch_command_1): Use internal breakpoint
1706 when setting a watchpoint_scope breakpoint.
1708 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1710 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1711 (build_builtin_type_vec64i): Ditto.
1712 (build_builtin_type_vec128): Ditto.
1713 (build_builtin_type_vec128i): Ditto.
1715 2002-08-19 Michael Snyder <msnyder@redhat.com>
1717 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1718 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1719 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1720 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1721 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1722 CALL_DUMMY_ADDRESS): Delete.
1723 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1724 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1725 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1726 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1727 push_return_address.
1728 (mips_register_raw_size, mips_eabi_use_struct_convention,
1729 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1730 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1731 mips_init_extra_frame_info, mips_eabi_push_arguments,
1732 mips_n32n64_push_arguments, mips_push_return_address,
1733 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1734 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1736 2002-08-19 Michael Snyder <msnyder@redhat.com>
1738 * mips-tdep.c (mips_frame_num_args): New function.
1739 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1740 frame_saved_pc, frame_args_address, frame_locals_address,
1741 frame_num_args, and frame_args_skip.
1742 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1743 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1744 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1745 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1747 2002-08-20 Michael Snyder <msnyder@redhat.com>
1749 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1750 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1751 * mips-tdep.c (mips_store_struct_return): New function.
1752 (mips_extract_struct_value_address): New function.
1753 (mips_gdbarch_init): Set store_struct_return and
1754 extract_struct_value_address.
1756 2002-08-20 David Carlton <carlton@math.stanford.edu>
1758 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1759 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1760 (read_file_scope): Check that line_header is nonzero before
1761 decoding macro information.
1763 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1765 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1766 flag the general-purpose registers as floating-point on targets
1767 that don't support the floating-point registers.
1769 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1771 * rs6000-tdep.c (altivec_register_p): Delete.
1772 (rs6000_do_altivec_registers): Delete.
1773 (rs6000_altivec_registers_info): Delete.
1774 (rs6000_do_registers_info): Delete.
1775 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1776 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1778 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1780 * infcmd.c (do_registers_info): Print vector registers in hex
1782 (print_vector_info): Check that printing registers
1784 (print_float_info): Ditto.
1786 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1788 * mips-tdep.c (mips_gdbarch_init): Update.
1789 (mips_o32_extract_return_value): Rewrite.
1790 (mips_o32_store_return_value): Rewrite.
1791 (mips_o32_xfer_return_value): New function.
1792 (mips_xfer_register): Tweak debug print message. Allow for
1793 buf_offset when dumping the value transfered.
1795 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1797 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1798 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1799 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1800 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1801 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1803 2002-08-14 Michael Snyder <msnyder@redhat.com>
1805 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1807 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1809 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1811 (P): New macro to define a register as a pseudo register.
1812 (R, R4, R8, R16, FR32, R64, R0): Updated.
1813 (struct variant): Add new fields for number of pseudo registers
1814 and number of total registers.
1815 (tot_num_registers): New macro replacing....
1816 (num_registers): ...deleted macro.
1817 (num_registers): New function.
1818 (num_pseudo_registers): New function.
1819 (variants): Update all variants to intialize new fields correctly.
1820 Postpone initialization of number of pseudo regs and real regs.
1821 (init_variants): New function.
1822 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1825 2002-08-19 David Carlton <carlton@math.stanford.edu>
1827 * valops.c (search_struct_field): Change error message to treat
1828 return value of 0 from value_static_field as meaning that field is
1830 (value_struct_elt_for_reference): Ditto.
1831 * values.c (value_static_field): Treat an unresolved location the
1832 same as a nonexistent symbol. Fix PR gdb/635.
1833 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1834 enclosed. Fix PR gdb/574.
1835 * MAINTAINERS: Add self to Write After Approval list.
1837 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1839 * mips-tdep.c (mips_xfer_register): New function.
1840 (mips_n32n64_extract_return_value): Rewrite.
1841 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1842 instead of deprecated_extract_return_value.
1844 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1846 * rs6000-tdep.c (TDEP): Delete macro.
1847 (branch_dest): Replace use of TDEP macro with its body.
1848 (rs6000_pop_frame): Ditto.
1849 (rs6000_push_arguments): Ditto.
1850 (rs6000_skip_trampoline_code): Ditto.
1851 (rs6000_frame_saved_pc): Ditto.
1852 (rs6000_frame_chain): Ditto.
1853 (rs6000_register_name): Ditto.
1854 (rs6000_register_byte): Ditto.
1855 (rs6000_register_raw_size): Ditto.
1856 (rs6000_register_virtual_type): Ditto.
1857 (rs6000_register_convertible): Ditto.
1858 (rs6000_convert_from_func_ptr_addr): Ditto.
1860 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1862 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1864 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1865 MIPS_LINUX_JB_ELEMENT_SIZE.
1866 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1867 for MAX_REGISTER_RAW_SIZE arrays.
1868 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1869 MIPS_LINUX_JB_ELEMENT_SIZE.
1871 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1873 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1875 2002-08-19 Aidan Skinner <aidan@velvet.net>
1877 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1878 ada-valprint.c ada-tasks.c.
1879 (YYFILES): Add ada-exp.y.
1880 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1881 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1882 (ada-exp.tab.o): New target.
1884 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1886 * regcache.c (regcache_xfer_part): New function.
1887 (regcache_raw_read_part): New function.
1888 (regcache_raw_write_part): New function.
1889 (regcache_cooked_read_part): New function.
1890 (regcache_cooked_write_part): New function.
1891 * regcache.h (regcache_raw_read_part): Declare.
1892 (regcache_raw_write_part): Declare.
1893 (regcache_cooked_read_part): Declare.
1894 (regcache_cooked_write_part): Declare.
1896 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1898 * remote.c (remote_open_1): Add async_p.
1899 (remote_async_open_1): Delete.
1900 (open_remote_target): Delete.
1901 (remote_open, extended_remote_open): Update calls to remote_open_1.
1902 (remote_async_open, extended_remote_async_open): Call
1903 remote_open_1 instead of remote_async_open_1.
1905 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1907 * blockframe.c: Fix a few coding standard violations.
1909 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1911 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1913 * config/i386/tm-i386sco5.h: ... here. File removed.
1914 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1916 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1917 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1918 (TM_FILE): Set to tm-i386.h.
1919 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1920 * config/i386/tm-i386v.h: Remove file.
1921 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1922 instead of "i386/tm-i386v.h".
1923 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1924 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1926 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1927 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1930 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1932 * config/i386/nm-i386v.h: Add protection against
1934 (i386_register_u_addr): Remove prototype.
1935 (register_u_addr): New prototype.
1936 (REGISTER_U_ADDR): Redefine accordingly.
1937 * i386v-nat.c: Improve several comments.
1938 (i386_register_u_addr): Change signature and rename to
1939 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1942 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1944 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1945 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1946 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1947 deprecated_extract_return_value.
1948 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1949 rename mips_o32o64_push_arguments.
1950 (mips_gdbarch_init): Update.
1951 (mips_extract_return_value): Delete.
1952 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1953 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1954 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1955 (mips_n32n64_extract_return_value): Clone
1956 mips_extract_return_value.
1957 (mips_store_return_value): Delete.
1958 (mips_o32_store_return_value): Clone mips_store_return_value.
1959 (mips_o64_store_return_value): Clone mips_store_return_value.
1960 (mips_eabi_store_return_value): Clone mips_store_return_value.
1961 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1963 2002-08-18 Aidan Skinner <aidan@velvet.net>
1965 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1966 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1968 2002-08-18 Aidan Skinner <aidan@velvet.net>
1970 * ada-lang.c: Run through gdb_indent.sh.
1971 * ada-lang.h: Run through gdb_indent.sh.
1972 * ada-tasks.c: Run through gdb_indent.sh.
1973 * ada-typeprint.c: Run through gdb_indent.sh.
1974 * ada-valprint.c: Run through gdb_indent.sh.
1976 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1978 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1981 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1983 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1985 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1986 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1988 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1989 write_register_gen instead of write_register_bytes.
1991 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1992 i[3456]-*-osf1mk* configurations have been made obsolete.
1993 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1994 i[3456]86-*-osf1mk* hosts obsolete.
1995 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1997 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1998 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1999 config/i386/i386m3.mt, config/i386/nm-m3.h,
2000 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2001 config/i386/i386mk.mh, config/i386/i386mk.mt,
2002 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2004 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2005 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2006 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2008 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2010 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2011 (hppa_value_returned_from_stack): Declare.
2012 (hppa_extract_return_value): Declare.
2013 * config/pa/hppa.mt: New file.
2014 * configure.tgt: Recognize hppa*-*-*.
2015 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2017 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2019 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2022 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2024 * top.c (gdb_rl_operate_and_get_next): Make sure
2025 operate-and-get-next functions correctly even when the history
2026 list is completely filled.
2028 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2030 * MAINTAINERS (Target Instruction Set Architectures): Rename
2031 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2032 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2033 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2034 already listed under Host/Native.
2036 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2037 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2040 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2042 * config/ia64/ia64.mt: New file.
2043 * config/alpha/alpha.mt: New file.
2044 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2045 ia64-linux-gnu. Mention that ia64-elf is broken.
2046 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2048 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2050 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2051 generic_func_frame_valid instead of func_frame_valid.
2053 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2055 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2056 procfs appears to be broken when debugging on multi-processor
2057 machines. So enable software single stepping in order to avoid
2058 using the procfs interface to do next/step operations, using
2059 internal breakpoints instead.
2061 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2062 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2063 make this pc address equal to the value it would have if the
2064 system stepping capability was used. Also set a new flag used
2065 to ensure that we don't readjust the PC one more time later.
2067 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2068 address by DECR_PC_AFTER_BREAK when software single step is
2069 in use for this architecture, as this has already been taken
2070 care of in handle_inferior_event().
2072 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2074 * infrun.c (handle_inferior_event): Minor reformatting, to make
2075 a rather long condition expression easier to read.
2077 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2079 * Makefile.in (gdbtk.o): Move to end of file.
2080 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2081 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2082 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2083 (gdbtk-wrapper.o, gdbres.o): Ditto.
2085 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2087 * Makefile.in (copying.o): Separate out compile rule.
2088 (hpux-thread.o, procfs.o, signals.o): Ditto.
2089 (v850ice.o, z8k-tdep.o): Ditto.
2090 (tui-file.o): Move to TUI section.
2091 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2092 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2094 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2096 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2097 skip_trampoline_code, for better namespace-proofing.
2099 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2101 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2103 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2105 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2107 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2108 signal, check whether we hit a breakpoint before checking for a
2109 single step breakpoint. Otherwise, GDB fails to notice that a
2110 breakpoint has been hit when stepping onto a breakpoint.
2112 2002-08-16 Keith Seitz <keiths@redhat.com>
2114 * gdb-events.sh (clear_gdb_event_hooks): New function.
2115 * gdb-events.c: Regenerate.
2116 * gdb-events.h: Regenerate.
2118 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2120 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2121 not_a_sw_breakpoint.
2122 * breakpoint.h (bpstat_stop_status): Add parameter names.
2124 2002-08-16 Grace Sainsbury <graces@redhat.com>
2126 * remote.c (remote_insert_hw_breakpoint)
2127 (remote_remove_hw_breakpoint): Fix calculation of length field
2130 2002-08-15 Michael Snyder <msnyder@redhat.com>
2132 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2133 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2134 (supply_fpregset): Ditto.
2136 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2137 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2138 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2139 (TARGET_READ_SP): Delete.
2140 (DO_REGISTERS_INFO): Delete.
2141 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2143 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2144 from macros to functions.
2146 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2147 (mips_register_convertible, mips_register_convert_to_virtual,
2148 mips_register_convert_to_raw): Make static.
2149 (mips_read_sp): New function.
2150 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2151 (mips_do_registers_info): Make static.
2152 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2153 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2154 (mips_register_convert_from_type, mips_register_convert_to_type):
2156 (mips_gdbarch_init): Set up function_start_offset,
2157 register_virtual_size, pc_in_sigtramp.
2159 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2161 * infcmd.c (vector_info): New function.
2162 (_initialize_infcmd): Add command "info vector".
2163 (print_vector_info): New function.
2165 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2166 * gdbarch.h, gdbarch.c: Regenerate.
2168 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2170 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2171 ``print_all''. Only print vector registers when ``print_all''.
2173 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2175 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2176 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2178 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2179 Add `args' parameter.
2180 * gdbarch.h, gdbarch.c: Regenerate.
2182 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2184 * infcmd.c (float_info): Call print_float_info.
2185 (print_float_info): New function. By default, print the
2186 floating-point registers.
2188 * arch-utils.h (default_print_float_info): Delete declaration.
2189 * arch-utils.c (default_print_float_info): Delete function.
2191 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2193 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2196 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2199 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2200 * configure.host: Make i[3456]86-*-aix host obsolete.
2201 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2202 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2203 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2204 config/i386/xm-i386aix.h: Make files obsolete.
2205 * i386aix-nat.c: Make file obsolete.
2206 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2207 (i386aix-nat.o): Make target obsolete.
2209 * config/i386/nm-gnu.h: Removed.
2210 * config/i386/nm-i386gnu.h: New file.
2211 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2212 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2214 * config/i386/tm-i386gnu.h: ... here. Removed.
2215 * config/i386/xm-i386gnu.h: Removed.
2216 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2217 (NAT_FILE): Set to nm-i386gnu.h.
2218 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2219 * i386-tdep.c: New file.
2220 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2221 (i386gnu-tdep.o): Specify dependencies.
2223 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2225 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2226 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2227 Adjust a few comments to reflect reality a bit closer.
2228 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2229 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2230 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2231 target_insert_watchpoint, target_remove_watchpoint):
2233 * config/i386/nm-i386sco5.h: ... here.
2234 (kernel_u_size): Add prototype. Improve a few comments and add
2235 protection against multiple inclusion.
2237 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2240 * uw-thread.c (SP_ARG0): Define if not already defined.
2241 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2243 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2245 * config/i386/tm-i386.h: Don't include "regcache.h".
2247 * i387-tdep.h (i387_print_float_info): New prototype.
2248 * i387-tdep.c (print_i387_value, print_i387_ext,
2249 print_i387_status_word, print_i387_control_word): Add `struct
2250 ui_file *' argument and use it for output.
2251 (i387_print_float_info): Renamed from i387_float_info. Add
2252 `struct gdbarch *' and `struct ui_file *' arguments and use the
2254 * i386-tdep.c: Include "i387-tdep.h".
2255 (i386_gdbarch_init): Set print_float_info.
2256 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2257 (FLOAT_INFO): Remove define.
2259 2002-08-13 Michael Snyder <msnyder@redhat.com>
2261 * mips-tdep.c (mips_push_arguments): Rename to
2262 mips_eabi_push_arguments, and tune for EABI.
2263 (MIPS_REGS_HAVE_HOME_P): Delete.
2264 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2265 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2266 Delete references to mips_regs_have_home_p.
2268 2002-08-14 Keith Seitz <keiths@redhat.com>
2270 * Makefile.in (install-gdbtk): Create insight plugin directory.
2271 Install plugins.tcl file.
2273 2002-08-14 Keith Seitz <keiths@redhat.com>
2275 * configure.in: Move SUBDIRS to near top of the file so that
2276 --enable options may add things to it.
2277 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2278 * configure: Regenerate.
2280 2002-08-13 Michael Snyder <msnyder@redhat.com>
2282 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2283 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2284 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2286 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2288 * vax-tdep.c (vax_get_saved_register): Delete function.
2289 (vax_gdbarch_init): Update.
2290 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2291 (ns32k_gdbarch_init): Update.
2292 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2293 (alpha_gdbarch_init): Update.
2295 2002-08-13 Andrew Cagney <cagney@redhat.com>
2297 * regcache.c (init_regcache_descr): Overallocate the
2298 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2299 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2301 (set_register_cached): Add range checking assertions. Use
2304 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2306 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2307 numbers for MMX registers.
2309 2002-08-13 Andrew Cagney <cagney@redhat.com>
2311 * i386-tdep.c (i386_gdbarch_init): Use
2312 generic_unwind_get_saved_register.
2314 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2316 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2317 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2319 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2320 Delete. Add comment regarding this now-deleted target method.
2322 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2324 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2325 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2326 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2327 real PC and the page number (if it's within the memory bank window).
2328 (m68hc11_pseudo_register_write): Likewise when saving.
2329 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2330 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2331 (m68hc11_register_raw_size): And use 32-bit for it.
2332 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2333 16K memory bank is used by the prog; also use the virtual pc.
2335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2337 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2338 (m68hc11_gdbarch_init): Install it in gdbarch.
2339 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2340 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2341 (MSYMBOL_SIZE): New for documentation.
2342 (insn_return_kind): Enum to specify how a function returns.
2343 (frame_extra_info): Cleanup and record the return mode.
2344 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2345 register in address computation.
2346 (m68hc11_get_return_insn): New to obtain the return instruction used
2348 (m68hc11_frame_init_saved_regs): Take into account the return
2349 instruction used by the function for far and interrupt functions.
2350 (m68hc11_init_extra_frame_info): Take into account page register.
2351 (m68hc11_frame_args_address): Adjust according to the return mode.
2352 (show_regs): Print page register only when it's used.
2354 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2356 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2357 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2358 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2360 (m68hc11_register_raw_size): Likewise.
2362 2002-08-13 Andrew Cagney <cagney@redhat.com>
2364 * i386-tdep.c (i386_register_name): Handle mmx registers.
2365 (mmx_regnum_p): New function.
2366 (i386_mmx_names): New array.
2367 (mmx_num_regs): New variable.
2368 (i386_pseudo_register_read): New function.
2369 (i386_pseudo_register_write): New function.
2370 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2372 * regcache.c (regcache_raw_read_unsigned): New function.
2373 (regcache_raw_read_signed): New function.
2374 * regcache.h (regcache_raw_read_unsigned): Declare.
2375 (regcache_raw_read_signed): Declare.
2377 2002-08-13 Andrew Cagney <cagney@redhat.com>
2379 * regcache.c (regcache_raw_read_as_address): Delete function.
2380 (regcache_cooked_read_signed): New function.
2381 (regcache_cooked_read_unsigned): New function.
2382 * regcache.h (regcache_cooked_read_signed): Declare.
2383 (regcache_cooked_read_unsigned): Declare.
2384 (regcache_raw_read_as_address): Delete declaration.
2386 * blockframe.c (generic_read_register_dummy): Use
2387 regcache_cooked_read_unsigned.
2388 * i386-tdep.c (i386_extract_struct_value_address): Use
2389 regcache_cooked_read_unsigned.
2391 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2394 double sizes according to ELF ABI flags.
2395 (gdbarch_tdep): Record elf_flags.
2397 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2399 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2400 (m6812_prolog): They can appear in 68HC12 function prologue.
2401 (m68hc11_frame_chain): Cleanup.
2403 2002-08-12 Andrew Cagney <cagney@redhat.com>
2405 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2407 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2408 (i386_linux_register_raw_size): Delete function.
2409 (i386_linux_init_abi): Update.
2410 * i386-tdep.c (i386_register_raw_size): Delete function.
2411 (i386_register_byte): Delete function.
2412 (i386_gdbarch_init): Update.
2413 (i386_register_size): Delete array.
2414 (i386_register_offset): Delete array.
2416 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2417 (REGISTER_RAW_SIZE): Delete macro.
2418 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2419 (REGISTER_BYTE): Delete macro.
2421 2002-08-11 Aidan Skinner <aidan@velvet.net>
2423 * ada-lang.c (ada_lookup_partial_symbol)
2424 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2425 prototype names so that grep ^func works properly.
2427 * ada-lang.c (ada_array_element_type)
2428 (ada_lookup_partial_symbol): Fix typos in parameter list.
2430 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2431 Fix prototype names so that grep ^func works properly.
2433 2002-08-10 Andrew Cagney <cagney@redhat.com>
2434 Elena Zannoni <ezannoni@redhat.com>
2435 Martin M. Hunt <hunt@redhat.com>
2437 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2438 (build_builtin_type_vec128i): Set the vector bit.
2439 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2440 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2441 (build_builtin_type_vec64): New function.
2442 (build_builtin_type_vec64i): New function.
2443 (build_gdbtypes): Initialize builtin_type_vec64 and
2444 builtin_type_vec64i.
2446 2002-08-09 Andrew Cagney <cagney@redhat.com>
2448 * regcache.c (regcache_dump): Compare the register offset
2450 * arch-utils.c (generic_register_byte): New function.
2451 * arch-utils.h (generic_register_byte): Declare.
2452 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2453 * gdbarch.h, gdbarch.c: Regenerate.
2455 2002-08-09 Andrew Cagney <cagney@redhat.com>
2457 * regcache.c: Include "gdbcmd.h"
2458 (_initialize_regcache): Add commands "maintenance print
2459 registers", "maintenance print raw-registers" and "maintenance
2460 print cooked-registers".
2461 (enum regcache_dump_what): Define.
2462 (dump_endian_bytes): New function.
2463 (regcache_dump): New function.
2464 (regcache_print): New function.
2465 (maintenance_print_registers): New function.
2466 (maintenance_print_raw_registers): New function.
2467 (maintenance_print_cooked_registers): New function.
2468 * Makefile.in (regcache.o): Update dependencies.
2470 2002-08-09 Michael Snyder <msnyder@redhat.com>
2472 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2473 (mips_push_arguments): Correct some comments. Use paddr_nz
2474 for printing addresses in debug output. Replace static
2475 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2476 (mips_n32n64_push_arguments): New function, cloned from
2477 mips_push_arguments and tuned for the n32/n64 ABI.
2478 (mips_push_register): Buffer needs dynamic allocation.
2479 (mips_print_register): Ditto.
2480 (do_gp_register_row): Ditto.
2481 (mips_store_return_value): Ditto.
2482 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2484 2002-08-09 Don Howard <dhoward@redhat.com>
2486 * memattr.c (mem_info_command): Print special case of upper bound
2487 as max CORE_ADDR + 1.
2489 2002-08-08 Michael Snyder <msnyder@redhat.com>
2491 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2492 returns structs by ref if they're too big to fit in two registers.
2494 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2496 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2498 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2499 mips_find_saved_regs().
2500 (mips_pop_frame): Likewise.
2502 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2504 * blockframe.c (frame_saved_regs_register_unwind): Revise
2505 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2508 2002-08-09 Grace Sainsbury <graces@redhat.com>
2510 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2511 T-packets; the 'a' is not taken as a register number.
2512 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2513 (remote_stopped_data_address): New functions; add to target
2515 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2516 prototypes to match other implementations of this
2517 function. replace integer argument with pointer -- the length
2518 field in the Z-packet is the length of what is pointed to or 1 if
2519 pointer is null. Add to target vector.
2520 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2524 * remote.c (remote_wait): Add support to extract optional
2525 watchpoint information from T-packet. Ignore unrecognized
2526 optional info in T-packet.
2527 (remote_async_wait): Ditto.
2529 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2531 * cli/cli-dump.c: Change fopen modes to use binary open modes
2532 as defined in include/fopen-bin.h throughout.
2534 2002-08-08 Michael Snyder <msnyder@redhat.com>
2536 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2538 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2540 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2541 assertion failure by returning early after a warning.
2543 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2545 * mips-tdep.c (mips_find_saved_regs): Make static.
2546 (mips_frame_init_saved_regs): New function.
2547 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2548 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2549 (mips_find_saved_regs): Delete declaration.
2551 2002-08-08 Grace Sainsbury <graces@redhat.com>
2553 * remote.c (remote_wait, remote_async_wait): Change
2554 thread_num from int to ULONGEST.
2555 (unpack_varlen_hex): Change result parameter from
2556 int * to ULONGEST *.
2558 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2560 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2561 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2563 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2565 2002-08-08 Andrew Cagney <cagney@redhat.com>
2567 * gcore.c (override_derive_stack_segment): Delete variable.
2568 (preempt_derive_stack_segment): Delete function.
2569 (derive_stack_segment): Delete function.
2570 (default_derive_stack_segment): Renamed to derive_stack_segment.
2571 (override_derive_heap_segment): Delete variable.
2572 (preempt_derive_heap_segment): Delete function.
2573 (derive_heap_segment): Delete function.
2574 (default_derive_heap_segment): Rename to derive_heap_segment.
2576 2002-08-06 Michael Snyder <msnyder@redhat.com>
2578 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2579 * mips-tdep.c (mips_EABI_use_struct_convention,
2580 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2581 New functions. (mips_use_struct_convention): Delete.
2582 (mips_gdbarch_init): set use_gdbarch_convention.
2584 2002-08-06 Michael Snyder <msnyder@redhat.com>
2586 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2587 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2588 mips_o32_reg_struct_has_addr): New functions.
2589 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2591 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2593 * regcache.c (pseudo_register): Delete function.
2594 (fetch_register): Delete function.
2595 (store_register): Delete function.
2596 (regcache_raw_read, legacy_read_register_gen): Use
2597 target_fetch_registers instead of fetch_register.
2598 (legacy_write_register_gen, regcache_raw_write): Use
2599 target_store_register instead of store_register.
2600 (write_register_bytes): Ditto.
2602 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2603 (STORE_PSEUDO_REGISTER): Delete.
2604 * gdbarch.h, gdbarch.c: Regenerate.
2606 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2608 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2609 write dump file binary.
2611 2002-08-05 Michael Snyder <msnyder@redhat.com>
2613 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2614 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2615 (mips_gdbarch_init): Set N32 target to be mips64.
2617 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2619 * frame.c (find_saved_register): Break out of loop once saved
2620 register address is found. Don't mention sparc in loop comment
2623 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2625 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2626 mips_default_saved_regsize to 8.
2628 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2630 * gcore.c: Do not include <sys/procfs.h>.
2631 * Makefile.in (gcore.o): Update dependencies.
2633 2002-08-06 Andrew Cagney <cagney@redhat.com>
2635 * configure.tgt: Make arc-*-* obsolete.
2636 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2637 * MAINTAINERS: Make arc-elf obsolete.
2638 * arc-tdep.c: Make file obsolete.
2639 * config/arc/arc.mt: Ditto.
2640 * config/arc/tm-arc.h: Ditto.
2642 2002-08-05 Theodore A. Roth <troth@verinet.com>
2644 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2646 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2648 * mcore-tdep.c (mcore_gdbarch_init): Use
2649 generic_unwind_get_saved_register instead of
2650 generic_get_saved_register.
2651 * v850-tdep.c (v850_gdbarch_init): Ditto.
2652 * frv-tdep.c (frv_gdbarch_init): Ditto.
2653 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2654 * s390-tdep.c (s390_gdbarch_init): Ditto.
2655 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2656 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2657 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2659 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2661 * objfiles.h: Add missing #include "symfile.h"
2663 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2665 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2667 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2668 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2671 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2673 * NEWS: Cleanup and nitpick.
2675 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2677 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2679 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2681 * Makefile.in (gdbtk-bp.o): Update dependencies.
2682 (gdbtk-register.o): Ditto.
2683 (gdbtk-varobj.o): Ditto.
2685 2002-08-03 Andrew Cagney <cagney@redhat.com>
2687 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2688 m68hc11_fetch_pseudo_register.
2689 (m68hc11_pseudo_register_write): Replace
2690 m68hc11_store_pseudo_register.
2691 (m68hc11_gdbarch_init): Update.
2693 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2695 * gdbarch.sh: Include "gdb_string.h".
2696 * gdbarch.c: Regenerate.
2698 * regcache.c: Include "gdb_string.h".
2699 * ax-general.c: Ditto.
2701 * std-regs.c: Ditto.
2702 * fbsd-proc.c: Ditto.
2705 * Makefile.in (regcache.o): Update dependencies.
2706 (thread.o, gdbarch.o): Ditto.
2707 (ax-general.o, gdbarch.o): Ditto.
2708 (varobj.o, std-regs.o): Ditto.
2709 (fbsd-proc.o): Specify dependencies.
2711 2002-08-02 Andrew Cagney <cagney@redhat.com>
2713 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2715 (regcache_cooked_write): Ditto.
2717 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2719 * regcache.c (regcache_cooked_read): New function.
2720 (regcache_cooked_write): New function.
2721 (read_register_gen): Rewrite using regcache_cooked_read.
2722 (write_register_gen): Rewrite using regcache_cooked_write.
2724 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2727 2002-08-02 Andrew Cagney <cagney@redhat.com>
2729 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2730 Replace the architecture methods register_read and register_write.
2731 * gdbarch.h, gdbarch.c: Regenerate.
2732 * regcache.c (init_regcache_descr): Update.
2733 (read_register_gen): Update.
2734 (write_register_gen): Update.
2735 (supply_register): Update comment.
2737 * sh-tdep.c (sh_gdbarch_init): Update.
2738 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2739 `regcache' and `gdbarch' parameters. Make `buffer' a void
2740 pointer. Update code.
2741 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2742 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2743 void pointer. Update code.
2744 (sh64_register_write): Delete.
2745 (sh4_register_read): Delete.
2746 (sh64_register_read): Delete.
2747 (sh4_register_write): Delete.
2748 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2749 void pointer, `to' parameter a void pointer.
2750 (sh_sh64_register_convert_to_raw): Ditto.
2752 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2754 * mips-tdep.c (mips_register_virtual_type): Use architecture
2755 invariant return values.
2757 2002-08-01 Andrew Cagney <cagney@redhat.com>
2759 * linux-proc.c: Include "gdb_string.h".
2760 * Makefile.in (linux-proc.o): Update dependency list.
2762 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2764 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2767 2002-08-01 Grace Sainsbury <graces@redhat.com>
2769 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2770 to_insert_watchpoint, to_remove_watchpoint,
2771 to_stopped_by_watchpoint, to_stopped_data_address,
2772 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2773 target vecctor. Define their corresponding macros so they call
2776 * target.c: Add default and debug versions of for
2777 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2778 to_insert_watchpoint, to_remove_watchpoint,
2779 to_stopped_by_watchpoint, to_stopped_data_address,
2780 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2782 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2784 * mips-tdep.c (mips_register_virtual_type): New function.
2785 (mips_gdbarch_init): Register mips_register_virtual_type()
2786 with gdbarch machinery.
2787 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2788 this file instead of tm-bigmips.h.
2789 (MIPS_REGSIZE): Delete this macro.
2790 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2791 multiarch version in mips-tdep.c will be found.
2793 2002-08-01 Andrew Cagney <cagney@redhat.com>
2795 * NEWS: Menion that CHILL has been made obsolete.
2797 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2798 * stabsread.c (read_range_type): Ditto.
2799 * gdbtypes.h: Ditto.
2800 * language.c (binop_type_check): Ditto.
2801 (binop_result_type): Ditto.
2802 (integral_type): Ditto.
2803 (character_type): Ditto.
2804 (string_type): Ditto.
2805 (boolean_type): Ditto.
2806 (structured_type): Ditto.
2807 (lang_bool_type): Ditto.
2808 (binop_type_check): Ditto.
2809 * language.h (_LANG_chill): Ditto.
2810 * dwarfread.c (set_cu_language): Ditto.
2811 * dwarfread.c (CHILL_PRODUCER): Ditto.
2812 * dwarfread.c (handle_producer): Ditto.
2813 * expression.h (enum exp_opcode): Ditto.
2814 * eval.c: Ditto for comments.
2815 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2816 * expprint.c (print_subexp): Ditto.
2817 (print_subexp): Ditto.
2818 * valops.c (value_cast): Ditto.
2819 (search_struct_field): Ditto.
2820 * value.h (COERCE_VARYING_ARRAY): Ditto.
2821 * symfile.c (init_filename_language_table): Ditto.
2822 (add_psymbol_with_dem_name_to_list): Ditto.
2823 * valarith.c (value_binop): Ditto.
2825 * valops.c (value_slice): Ditto.
2826 * symtab.h (union language_specific): Ditto.
2827 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2828 (SYMBOL_DEMANGLED_NAME): Ditto.
2829 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2830 * defs.h (enum language): Ditto.
2831 * symtab.c (got_symtab): Ditto.
2832 * utils.c (fprintf_symbol_filtered): Ditto.
2834 * ch-typeprint.c: Make file obsolete.
2835 * ch-valprint.c: Make file obsolete.
2836 * ch-lang.h: Make file obsolete.
2837 * ch-exp.c: Make file obsolete.
2838 * ch-lang.c: Make file obsolete.
2840 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2842 (TARGET_FLAGS_TO_PASS): Ditto.
2843 (CHILLFLAGS): Obsolete.
2845 (CHILL_FOR_TARGET): Obsolete.
2846 (CHILL_LIB): Obsolete.
2847 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2849 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2850 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2852 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2855 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2857 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2858 This does not change anything at the moment, but will be helpful
2859 later when full Ada support is integrated.
2861 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2863 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2866 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2868 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2869 and save it in a local variable. Use variable in later test.
2871 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2873 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2874 test. (Thanks to Daniel Jacobowitz.)
2876 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2878 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2879 (mips_abi_strings): Add "n64".
2880 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2882 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2884 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2885 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2887 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2889 * utils.c (host_pointer_to_address, address_to_host_pointer):
2890 Use gdb_assert() instead of explicit call to internal_error().
2892 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2894 * Makefile.in (rs6000-nat.o): Update dependencies.
2896 From Nicholas Duffek:
2897 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2898 (aix-thread.o): New rule.
2899 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2900 * config/powerpc/aix432.mh: New file.
2902 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2904 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2905 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2906 (fetch_core_registers, ppc_linux_supply_gregset)
2907 (ppc_linux_supply_fpregset): New functions.
2908 (ppc_linux_regset_core_fns): New.
2909 (_initialize_ppc_linux_tdep): Call add_core_fns.
2910 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2911 and ppc_linux_supply_gregset.
2912 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2913 (supply_fpregset): Call ppc_linux_supply_fpregset.
2914 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2916 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2918 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2920 * symtab.c (lookup_symbol): Demangle before lowercasing.
2922 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2924 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2926 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2927 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2928 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2929 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2931 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2932 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2933 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2934 (avr-tdep.o, mon960-rom.o): Ditto.
2935 (aout_stabs_gnu_h): Define.
2936 (symtab_h): Remove $(gdb_obstack_h).
2938 2002-07-30 Jim Blandy <jimb@redhat.com>
2940 Patch from David Carlton <carlton@math.stanford.edu>:
2941 * gdbinit.in: Move the `dir' commands that add GDB's own source
2942 directory to the search path to the end, so that the `gdb' source
2943 directory will be searched first.
2945 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2947 * gdb_obstack.h: New file.
2948 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2949 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2950 * objfiles.h: Include "gdb_obstack.h".
2951 * Makefile.in (gdb_obstack_h): Define.
2952 (symtab_h): Add $(gdb_obstack_h).
2953 (objfiles_h): Add $(gdb_obstack_h).
2955 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2956 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2957 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2958 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2959 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2960 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2961 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2962 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2964 * Makefile.in (bcache.o): Update dependencies.
2965 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2966 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2967 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2968 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2969 (stabsread.o, symfile.o, symmisc.o): Ditto.
2970 (symtab.o, typeprint.o, macroexp.o): Ditto.
2971 (macrotab.o, mdebugread.o): Ditto.
2972 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2973 (coff_ecoff_h, aout_aout64_h): Define.
2974 (aout_stabs_gnu_h, libaout_h): Define.
2976 2002-07-29 Andrew Cagney <cagney@redhat.com>
2978 * regcache.c (struct regcache_descr): Rename nr_registers to
2979 nr_cooked_registers. Revise comments describing the structure
2981 (init_regcache_descr): Update.
2982 (init_legacy_regcache_descr): Update.
2983 (read_register_gen, write_register_gen): When a cooked register in
2984 the raw register range, directly access the value from the raw
2987 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2989 * z8k-tdep.c: Do not include "obstack.h".
2990 * h8300-tdep.c, h8500-tdep.c: Ditto.
2991 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2992 * valprint.c, v850-tdep.c: Ditto.
2993 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2994 * mn10200-tdep.c: Ditto.
2996 * Makefile.in (z8k-tdep.o): Update dependencies.
2997 (m68hc11-tdep.o, valprint.o): Ditto.
2998 (v850-tdep.o, d10v-tdep.o): Ditto.
2999 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3000 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3001 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3002 (sh_opc_h, gdb_sim_sh_h): Define.
3003 (elf_sh_h, elf_bfd_h): Define.
3004 (opcode_m68hc11_h): Define.
3005 (OPCODES_SRC, OPCODES_DIR): define.
3006 (OPCODES): Use $(OPCODES_DIR).
3007 (gdb_sim_d10v_h): Rename sim_d10v_h.
3008 (gdb_sim_arm_h): Rename sim_arm_h.
3010 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3012 * utils.c (host_pointer_to_address, address_to_host_pointer):
3013 Change internal_error() message to indicate function responsible
3016 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3018 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3019 calls to local_hex_string_custom().
3021 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3023 * irix5-nat.c: Move IRIX shared library support from here...
3024 * solib-irix.c: ...to here. Revised substantially to work with
3025 generic solib framework.
3027 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3028 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3029 * mips-irix-tdep.c: New file.
3031 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3032 (mips-irix-tdep.o, solib-irix.o): New rules.
3033 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3035 * config/mips/irix6.mt (TDEPFILES): Likewise.
3036 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3038 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3040 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3041 disabled (via ``#if 0'') includes.
3043 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3045 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3046 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3047 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3048 Add support for the fpscr register.
3049 * rs6000-nat.c (regmap, fetch_inferior_registers)
3050 (store_inferior_registers, fetch_core_registers): Likewise.
3052 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3054 * rs6000-nat.c (language.h): Include.
3055 (special_regs): Delete this array.
3056 (regmap): New function.
3057 (fetch_register, store_register): Use regmap() to map gdb
3058 register numbers to ptrace register numbers. Also, use
3059 outputs from regmap() to make decisions regarding type of
3060 ptrace() call to make. In particular, don't compare against
3061 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3062 (fetch_inferior_registers, store_inferior_registers): Where
3063 possible, obtain register numbers from tdep struct. Don't
3064 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3065 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3066 (LAST_UISA_SP_REGNUM): Delete.
3068 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3070 * rs6000-nat.c (ppc-tdep.h): Include.
3071 (fetch_registers, store_register, fetch_core_registers): Don't
3072 access registers[] directly. Instead, use supply_register() or
3073 regcache_collect() as appropriate.
3074 (find_toc_address): Format hex address with local_hex_string().
3076 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3078 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3081 2002-07-24 Tom Tromey <tromey@redhat.com>
3083 * jv-exp.y: Marked all strings with _().
3084 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3086 (MethodInvocation, CastExpression, parse_number, yyerror,
3087 java_type_from_name, push_expression_name, yylex): Typo fixes.
3089 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3091 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3092 (tee_file_flush, tee_file_write, tee_file_fputs)
3093 (tee_file_isatty): New.
3094 * ui-file.h (tee_file_new): Add prototype.
3096 2002-07-24 Aidan Skinner <aidan@velvet.net>
3098 * ada-lang.c: Change k&r style function definitions to prototyped
3100 * ada-typeprint.c: Change k&r style function definitions to prototyped
3102 * ada-valprint.c: Change k&r style function definitions to prototyped
3105 2002-07-24 Andrew Cagney <cagney@redhat.com>
3107 * README: Remove reference to remote-bug.
3108 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3110 (m88k-nat.o): Delete rule.
3111 (m88k-tdep.o): Delete rule.
3112 (remote-bug.o): Delete rule.
3113 * MAINTAINERS: Mark as obsolete.
3114 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3115 * m88k-tdep.c: Make file obsolete.
3116 * config/m88k/m88k.mh: Ditto.
3117 * config/m88k/delta88v4.mh: Ditto.
3118 * config/m88k/delta88v4.mt: Ditto.
3119 * config/m88k/delta88.mt: Ditto.
3120 * config/m88k/delta88.mh: Ditto.
3121 * remote-bug.c: Ditto.
3122 * config/m88k/tm-delta88.h: Ditto.
3123 * config/m88k/nm-delta88v4.h: Ditto.
3124 * config/m88k/xm-delta88.h: Ditto.
3125 * config/m88k/xm-dgux.h: Ditto.
3126 * config/m88k/tm-m88k.h: Ditto.
3127 * config/m88k/nm-m88k.h: Ditto.
3128 * config/m88k/tm-delta88v4.h: Ditto.
3129 * m88k-nat.c: Ditto.
3130 * cxux-nat.c: Ditto.
3131 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3132 and m88*-*-* obsolete.
3133 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3136 2002-07-24 Andrew Cagney <cagney@redhat.com>
3138 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3139 constant. Same for local pointer variables.
3140 (extract_signed_integer): Ditto.
3141 * defs.h (extract_unsigned_integer): Update.
3142 (extract_signed_integer): Update.
3144 2002-07-24 Andrew Cagney <cagney@redhat.com>
3146 * regcache.c (regcache_raw_write): Change buf parameter to a
3147 constant void pointer.
3148 (regcache_raw_read): Change buf parameter to a void pointer.
3149 (legacy_write_register_gen): Change myaddr parameter a constant
3151 (supply_register): Change val parameter to a const void pointer.
3152 * regcache.h (regcache_raw_write): Update declaration.
3153 (regcache_raw_read): Update declaration.
3154 (supply_register): Update declaration.
3156 2002-07-24 Tom Tromey <tromey@redhat.com>
3158 * defs.h (gdb_readline_wrapper): Declare.
3159 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3160 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3161 * top.c (gdb_readline_wrapper): New function.
3162 (command_line_input): Use it.
3164 2002-07-24 Andrew Cagney <cagney@redhat.com>
3166 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3167 regcache_read and regcache_write.
3168 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3169 * regcache.c: Update.
3170 * sh-tdep.c (sh64_push_arguments): Update comment.
3171 (sh_pseudo_register_read): Update.
3172 (sh_pseudo_register_write): Update.
3173 (sh4_register_read): Update.
3174 (sh4_register_write): Update.
3175 (sh64_pseudo_register_read): Update.
3176 (sh64_pseudo_register_write): Update.
3177 (sh64_register_read): Update.
3178 (sh64_register_write): Update.
3179 * i386-tdep.c (i386_extract_return_value): Update.
3180 (i386_extract_struct_value_address): Update.
3181 (i386_extract_return_value): Update.
3182 * blockframe.c (generic_read_register_dummy): Update.
3183 (generic_call_dummy_register_unwind): Update
3184 * infrun.c (write_inferior_status_register): Update.
3186 2002-07-23 Jim Blandy <jimb@redhat.com>
3188 * parser-defs.h (expression_context_pc): Make this extern.
3189 (Thanks to Michael Snyder.)
3191 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3193 GDB 5.2.1 released from 5.2 branch.
3194 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3195 * README: Update to mention 5.2.1.
3197 2002-07-23 Mark Salter <msalter@redhat.com>
3199 * remote.c (remote_read_bytes): Fix check for error.
3201 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3203 * aix-thread.c (language.h): Include.
3204 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3205 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3206 Print newlines at end of debug messages.
3207 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3208 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3210 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3212 * aix-thread.c (ppc-tdep.h): Include.
3213 (special_register_p): New function.
3214 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3215 (store_regs_user_thread): Use register number information from
3216 gdbarch_tdep struct instead of hardcoded offsets relative to
3217 FIRST_UISA_SP_REGNUM.
3218 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3219 special_register_p() instead of using FPLAST_REGNUM and
3220 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3221 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3222 will be MQ's register number.
3224 2002-07-22 Michael Snyder <msnyder@redhat.com>
3226 * aix-thread.c (ops): Rename to aix_thread_ops.
3227 (base_ops): Rename to base_target.
3228 (ops_attach): Rename to aix_thread_attach.
3229 (ops_detach): Rename to aix_thread_detach.
3230 (ops_resume): Rename to aix_thread_detach.
3231 (ops_wait): Rename to aix_thread_wait.
3232 (ops_kill): Rename to aix_thread_kill.
3233 (init_ops): Rename to init_aix_thread_ops.
3234 (ops_fetch_register): Rename to aix_thread_fetch_register.
3235 (ops_store_register): Rename to aix_thread_store_register.
3236 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3237 (ops_thread_alive): Rename to aix_thread_thread_alive.
3238 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3239 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3240 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3241 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3242 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3243 (store_regs_lib): Rename to store_regs_user_thread.
3244 (store_regs_kern): Rename to store_regs_kernel_thread.
3246 2002-07-22 Michael Snyder <msnyder@redhat.com>
3248 * aix-thread.c (ops_prepare_to_store): Eliminate.
3249 (init_ops): Don't initialize ops.prepare_to_store.
3250 (store_regs_kern): Pre-fetch register buffers from child,
3251 because some registers may not be in the cache. Copy
3252 regs from register cache only if they are cached.
3253 (store_regs_lib): Copy regs from register cache only
3255 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3256 fill_gprs64): Ditto.
3258 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3260 * aix-thread.c (gdb_assert.h): Include.
3261 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3262 register sizes (from register cache) match size of buffer holding
3264 (fill_sprs32): Change parameter types to match those in the ptrace()
3266 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3267 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3269 2002-07-22 Michael Snyder <msnyder@redhat.com>
3271 * aix-thread.c (supply_sprs64): Cosmetic change.
3272 (supply_sprs32): Cosmetic change.
3273 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3274 (fill_sprs64): Use regcache_collect instead of read_register.
3275 (store_regs_lib): Use regcache_collect instead of
3276 read_register. Use fill_sprs32 instead of fill_sprs64,
3277 if debugging a 32-bit architecture.
3278 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3279 out of the register cache, instead of passing a pointer into
3280 the register cache directly to ptrace. Use regcache_collect
3281 insteaad of read_register.
3282 (ops_prepare_to_store): Use target_read_registers instead
3283 of read_register_bytes.
3285 2002-07-20 Aidan Skinner <aidan@velvet.net>
3287 * MAINTAINERS: Add self under write after approval.
3289 2002-07-20 Aidan Skinner <aidan@velvet.net>
3291 * ada-tasks.c: Change k&r style function definitions to prototyped
3294 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3296 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3297 * x86-64-tdep.c: Include "objfiles.h".
3298 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3299 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3301 2002-07-17 Michal Ludvig <michal@suse.cz>
3303 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3304 (update_context): Initialise cfa variable.
3306 2002-07-17 Michael Snyder <msnyder@redhat.com>
3308 * aix-thread.c: Shorten some long lines.
3309 Bring comments into line with code spec.
3311 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3313 * infrun.c: Re-indent using gdb_indent.sh.
3315 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3317 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3318 Leave the indentation temporarily untouched, to minimize the diffs.
3320 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3322 * stabsread.c: Make os9k sections of the code obsolete,
3324 * stabsread.h: Make os9k sections of the code obsolete.
3326 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3328 * linux-low.c (regsets_store_inferior_registers): Add free()
3329 at the end of a loop to prevent memory leak.
3330 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3331 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3332 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3334 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3336 2002-07-17 Jim Blandy <jimb@redhat.com>
3338 * macrocmd.c (info_macro_command): Remove newline from error
3341 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3343 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3344 (sh_gdbarch_init): Use it for sh-dsp.
3346 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3348 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3349 64-bit DWARF2 format.
3351 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3353 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3354 <sys/proc.h> when not available.
3356 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3358 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3359 * stabsread.c: Make os9k sections of the code obsolete.
3360 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3361 * config/i386/i386os9k.mt: Make file obsolete.
3362 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3363 (COMMON_OBS): Remove os9kread.o
3364 (SFILES): Remove os9kread.c.
3365 (os9kread.o, remote-os9k.o): Make target obsolete.
3366 * remote-os9k.c: Make file obsolete.
3367 * os9kread.c: Make file obsolete.
3370 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3372 * NEWS: Mention that the FR30 has been made obsolete.
3373 * fr30-tdep.c: Make file obsolete.
3374 * config/fr30/tm-fr30.h: Ditto.
3375 * config/fr30/fr30.mt: Ditto.
3376 * configure.tgt: Make fr30-*-elf obsolete.
3377 * MAINTAINERS: Make fr30-elf obsolete.
3379 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3381 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3382 found is not inside a section.
3384 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3386 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3388 (pdc_realloc): Use xrealloc() instead of realloc().
3390 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3392 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3393 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3394 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3397 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3399 * aix-thread.c (ptrace_check): Eliminate goto.
3400 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3403 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3405 * aix-thread.c (gdbcmd.h): Include.
3406 (DEBUG, DBG, DBG2, dbg): Eliminate.
3407 (debug_aix_thread): New static global.
3408 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3409 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3410 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3411 invocations to DBG and DBG2 macros to test against
3412 ``debug_aix_thread'' and call fprintf_unfiltered().
3413 (_initialize_aix_thread): Add new command "set debug aix-thread".
3415 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3417 From Gerhard Tonn <TON@de.ibm.com>:
3418 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3419 instead of supply_register.
3421 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3423 * dwarf2cfi.c: Include "gdb_assert.h".
3424 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3426 (update_context): Do not use __func__. Add missing ``break''.
3427 (update_context): Do not use __func__.
3429 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3431 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3432 and its setting. Set gdbarch instruction printing functions
3433 directly. For non-rs6000 case use new function
3434 gdb_print_insn_powerpc.
3435 (gdb_print_insn_powerpc): New function.
3437 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3439 * NEWS: Mention that the d30v has been marked obsolete.
3440 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3441 * configure.tgt: Mark d30v-*-* as obsolete.
3442 * d30v-tdep.c: Mark file as obsolete.
3443 * config/d30v/d30v.mt: Ditto.
3444 * config/d30v/tm-d30v.h: Ditto.
3446 2002-07-13 Aidan Skinner <aidan@velvet.net>
3448 * ada-tasks.c (add_task_entry): replace calls to
3449 malloc() with xmalloc
3450 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3452 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3453 ada_finish_decode_line_1, all_sals_for_line
3454 ada_breakpoint_rewrite): replace calls to free() with xfree()
3456 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3458 From Nicholas Duffek (with minor changes by Martin Hunt,
3459 Louis Hamilton, and Kevin Buettner):
3460 * aix-thread.c: New file.
3462 2002-07-12 Petr Sorfa <petrs@caldera.com>
3464 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3465 complaint for invalid attribute class or form.
3466 (read_func_scope): DW_AT_frame_base
3467 better handling of DW_AT_block*.
3468 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3469 better handling of DW_AT_block*.
3470 (read_common_block): DW_AT_location
3471 better handling of DW_AT_block*.
3472 (read_partial_die): DW_AT_location better handling
3474 (new_symbol): DW_AT_external better handling of
3475 DW_AT_block*. Proper initialization of variable
3477 (attr_form_is_block): New function that returns true
3478 if the attribute's form is of DW_FORM_block*.
3480 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3482 * valops.c (find_method_list): Remove comment about
3483 removed STATIC_MEMFUNCP argument.
3484 (value_find_oload_method_list): Likewise.
3486 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3488 From Nicholas Duffek:
3489 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3490 target_new_objfile_hook.
3492 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3494 From Nicholas Duffek:
3495 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3498 2002-07-12 Andrew Cagney <cagney@redhat.com>
3500 * MAINTAINERS: Mention --enable-sim-build-warnings.
3501 (m68hc11-elf): Disable sim build warnings.
3502 (m32r-elf): Mark as broken obsolete candidate.
3503 (x86_64-linux-gnu): Mark as buildable with -Werror.
3504 (arm-elf): Change -w to ``,'' which enables warnings but not
3507 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3509 * bcache.h: Update copyright.
3510 (struct bstring, struct bcache): Move definition to "bcache.c".
3511 Replaced by opaque declaration.
3512 (bcache_xfree): Replace free_bcache.
3513 (bcache_xmalloc, bcache_memory_used): Declare.
3515 * bcache.c: Update copyright.
3516 (struct bstring, struct bcache): Moved to here from "bcache.h".
3518 (bcache_xmalloc, bcache_memory_used): New functions.
3519 (bcache_xfree): Replace function free_bcache.
3521 * Makefile.in (objfiles.o): Add $(bcache_h).
3522 (objfiles_h): Remove $(bcache_h).
3523 (symfile.o): Add $(bcache_h).
3525 * symmisc.c: Update copyright.
3526 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3527 (print_objfile_statistics): Use bcache_memory_used.
3529 * symfile.c: Include "bcache.h".
3530 (reread_symbols): Use bcache_xfree.
3531 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3532 (add_psymbol_to_list): Pass psymbol_cache by value.
3533 (add_psymbol_with_dem_name_to_list): Ditto.
3535 * objfiles.h: Update copyright.
3536 (struct bcache): Declare opaque. Do not include "bcache.h".
3537 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3539 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3541 * objfiles.c: Include "bcache.h". Update copyright.
3542 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3544 (free_objfile): Use bcache_xfree.
3546 2002-07-11 Grace Sainsbury <graces@redhat.com>
3548 * monitor.c (monitor_fetch_register): Make name a constant.
3549 (monitor_store_register): Same.
3551 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3553 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3554 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3555 (finish_block) For non-function blocks, hash the symbol table. For
3556 function blocks, mark the symbol table as unhashed.
3557 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3558 (msymbol_hash_iw): Likewise.
3559 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3561 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3562 (lookup_minimal_symbol): Likewise for both.
3563 * symtab.h (struct block): Add `hashtable' flag. Comment the
3565 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3566 (ALL_BLOCK_SYMBOLS): Update.
3567 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3568 (struct symbol): Add `hash_next' pointer.
3569 * symtab.c (lookup_block_symbol): Search using the hash table when
3571 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3572 (search_symbols, find_addr_symbol): Likewise.
3574 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3575 (read_dst_symtab): Likewise.
3576 * jv-lang.c (get_java_class_symtab): Likewise.
3577 * mdebugread.c: Include "gdb_assert.h".
3578 (shrink_block): Assert that the block being modified is not hashed.
3579 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3580 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3582 (dump_symtab): Recognize hashed blocks.
3583 * printcmd.c (print_frame_args): Assert that function blocks do not
3584 have hashed symbol tables.
3585 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3586 (fill_in_ada_prototype, debug_print_block): Likewise.
3587 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3589 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3591 * stack.c (print_frame): Use result of frame_address_in_block()
3592 instead of fi->pc when evaluating symbols.
3593 (backtrace_command_1): Ditto.
3595 2002-07-11 Andrew Cagney <cagney@redhat.com>
3597 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3600 * arm-tdep.c (arm_register_name): Make return type constant.
3602 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3604 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3606 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3607 * s390-tdep.c (s390_fp_regnum): Ditto.
3608 (s390_read_fp): Ditto.
3609 (s390_pop_frame): Ditto.
3610 (_initialize_s390_tdep): Ditto.
3611 * remote.c (get_remote_state): Ditto.
3612 * procfs.c (mappingflags): Ditto.
3613 * memattr.c (_initialize_mem): Ditto.
3614 * mcore-tdep.c (mcore_pop_frame): Ditto.
3615 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3616 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3617 * language.c (set_case_str): Ditto.
3618 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3619 * frv-tdep.c (new_variant): Ditto.
3620 (frv_stopped_data_address): Ditto.
3621 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3622 (context_alloc): Ditto.
3623 (frame_state_alloc): Ditto.
3624 (unwind_tmp_obstack_init): Ditto.
3625 (unwind_tmp_obstack_free): Ditto.
3626 (cfi_read_fp): Ditto.
3627 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3628 (cris_pop_frame): Ditto.
3629 * c-lang.c (scanning_macro_expansion): Ditto.
3630 (finished_macro_expansion): Ditto.
3631 (c_preprocess_and_parse): Ditto.
3632 * gdbarch.sh: Ditto.
3633 * gdbarch.h, gdbarch.c: Regenerate.
3634 * config/mn10200/tm-mn10200.h: Adjust indentation.
3635 * target.c: Adjust indentation.
3636 * symtab.h: Adjust indentation.
3637 * stabsread.h: Adjust indentation.
3638 * remote-es.c: Adjust indentation.
3639 * os9kread.c: Adjust indentation.
3641 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3643 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3644 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3646 2002-07-10 Grace Sainsbury <graces@redhat.com>
3648 * NEWS: Mention m68k, mcore multi-arching.
3649 * MAINTAINERS: Change status of m68k, mcore to reflect
3652 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3654 * valops.c (find_overload_match): Free oload_syms.
3656 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3658 Define HAVE_SYS_PROC_H if sys/proc.h exists
3659 * configure.in: Add check for sys/proc.h
3660 * config.in: Regenerate.
3661 * configure: Regenerate.
3663 2002-07-09 Grace Sainsbury <graces@redhat.com>
3665 * config/m68k/tm-m68k.h: Remove macros wrapped in
3666 #if !GDB_MULTI_ARCH.
3668 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3670 * config.in, configure: Regenerate.
3672 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3674 * dwarf2cfi.c: Include "gcore.h".
3675 (execute_stack_op): Fix implementation of the
3676 DW_OP_deref and DW_OP_deref_size operators by letting do their
3677 lookup in the target.
3679 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3681 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3682 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3685 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3687 Fix PR gdb/595, gdb/602
3688 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3689 Don't call value_cast, just read the vtable pointer; update comments
3692 2002-07-05 Grace Sainsbury <graces@redhat.com>
3694 * config/mcore/tm-mcore.h: Remove file.
3695 * config/mcore/mcore.mt: Remove definition of TM_FILE
3696 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3698 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3700 * i386bsd-tdep.c: Include "gdb_string.h".
3702 2002-07-04 Grace Sainsbury <graces@redhat.com>
3704 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3705 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3707 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3708 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3709 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3710 (RETVAL_REGNUM): Move macros from tm-mcore.h
3711 (mcore_reg_struct_has_addr): New function.
3712 (mcore_gdbarch_init): Added initializations for the macros removed
3715 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3717 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3718 traditonal string branding within the ELF header.
3720 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3722 * symtab.c (remove_params): New function.
3723 (make_symbol_overload_list): Use it instead of cplus_demangle.
3724 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3726 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3728 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3730 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3732 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3733 and tdep->sigtramp_end.
3734 * i386obsd-nat.c: New file.
3735 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3737 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3738 Don't call get_current_frame().
3740 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3742 * i386-nat.c (child_post_startup_inferior): New function
3743 calling i386_cleanup_dregs if
3744 I386_USE_GENERIC_WATCHPOINTS is defined.
3745 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3746 conditional to acknowledge that i386-nat.c has its
3747 own child_post_startup_inferior function.
3749 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3751 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3752 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3753 instead of MAX_REGISTER_RAW_SIZE.
3754 (i386_extract_return_value, i386_extract_struct_value_address):
3755 Convert to use regcache.
3756 (i386_gdbarch_init): Set max_register_raw_size and
3757 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3758 Set extract_return_value and extract_struct_value_address instead
3759 of their deprecated variants.
3761 Convert i386 target to generic dummy frames.
3762 * i386-tdep.c: Include "symfile.h".
3763 (i386_frameless_signal_p): Consider a function to be frameless if
3764 the pc points at the first instruction of the function.
3765 (i386_frame_chain): Handle (generic) call dummies.
3766 (i386_frame_saved_pc): Likewise.
3767 (i386_frame_init_saved_regs): Remove code dealing with call
3768 dummies on the stack.
3769 (i386_push_dummy_frame): Removed.
3770 (i386_call_dummy_words): Removed.
3771 (i386_fix_call_dummy): Removed.
3772 (i386_push_return_address): New function.
3773 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3774 parameter, and don't call get_current_frame.
3775 (i386_pop_frame): New function.
3776 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3777 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3778 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3779 call_dummy_length to 0, set call_dummy_words to NULL, set
3780 sizeof_call_dummy_words to 0, set fix_call_dummy to
3781 generic_fix_call_dummy, set pc_in_call_dummy to
3782 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3783 generic_push_dummy_frame, set push_return_address to
3784 i386_push_return_address and set frame_chain_valid to
3785 generic_file_frame_chain_valid.
3787 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3789 * gdbarch.sh (struct regcache): Add opaque declaration.
3790 (EXTRACT_RETURN_VALUE): New architecture method.
3791 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3792 * gdbarch.h, gdbarch.c: Regenerate.
3793 * arch-utils.c (legacy_extract_return_value): New function.
3794 * arch-utils.h (legacy_extract_return_value): Declare.
3795 * values.c (value_being_returned): Re-enable code handling
3796 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3797 deprecated_grub_regcache_for_registers call to block handling
3798 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3799 (EXTRACT_RETURN_VALUE): Do not define.
3801 2002-07-03 Grace Sainsbury <graces@redhat.com>
3803 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3804 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3805 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3806 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3807 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3808 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3809 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3810 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3811 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3812 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3813 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3814 argument so the function fits the prototype in the architecture
3816 (mcore_pop_frame): Remove argument so the function fits the
3817 prototype. Use get_current_frame instead of the argument.
3818 (mcore_push_arguments): Change type of struct_return so the
3819 function can be used in the architecture vector.
3820 (mcore_store_struct_return): Add.
3821 (mcore_frame_init_saved_regs): Add.
3822 (mcore_gdbarch_init): Add function calls to replace the macros
3823 removed from tm-mcore.h
3825 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3827 * infcmd.c (print_return_value): Remove compatibility code calling
3828 deprecated_grub_regcache_for_registers.
3830 * values.c: Include "regcache.h".
3831 (value_being_returned): Update. Use
3832 deprecated_grub_regcache_for_registers to extract the register
3834 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3835 ``struct regcache''.
3836 * Makefile.in (values.o): Add dependency on $(regcache_h).
3838 * inferior.h (run_stack_dummy): Change type of second parameter to
3839 a ``struct regcache''.
3840 * valops.c (hand_function_call): Change type of retbuf to ``struct
3841 regcache''. Allocate using regcache_xmalloc, clean using
3842 make_cleanup_regcache_xfree.
3843 * infcmd.c (run_stack_dummy): Update. Use
3844 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3846 * regcache.c (do_regcache_xfree): New function.
3847 (make_cleanup_regcache_xfree): New function.
3848 * regcache.h (make_cleanup_regcache_xfree): Declare.
3850 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3852 * event-top.c (command_line_handler): Don't read past
3853 beginning of buffer.
3855 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3857 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3859 (varobj_create): Store frame_id for root.
3860 (varobj_gen_name): Use xasprintf.
3861 (varobj_update): Save and restore frame using get_frame_id() and
3863 (create_child): Use xasprintf.
3864 (new_root_variable): Initialize frame_id.
3865 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3866 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3867 to prevent memory leak.
3869 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3871 * valops.c (hand_function_call): Move declaration of retbuf to
3872 start of function, allocate using malloc, add a cleanup but before
3873 the inf_status cleanup, cleanup the buffer. Rename local variable
3874 old_chain to inf_status_cleanup.
3876 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3878 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3880 * cli/cli-decode.c (cmd_func_p): New function.
3881 (cmd_func): New function.
3883 * command.h: Add cmd_func() and cmd_func_p().
3885 2002-07-03 Grace Sainsbury <graces@redhat.com>
3887 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3888 (REGISTER_SIZE): Remove.
3889 (MAX_REGISTER_RAW_SIZE): Remove.
3890 (REGISTER_VIRTUAL_TYPE): Remove.
3891 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3892 (REGISTER_NAME): Remove.
3893 (USE_GENERIC_DUMMY_FRAMES): Remove.
3894 (CALL_DUMMY): Remove.
3895 (CALL_DUMMY_START_OFFSET): Remove.
3896 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3897 (CALL_DUMMY_LOCATION): Remove.
3898 (FIX_CALL_DUMMY): Remove.
3899 (CALL_DUMMY_ADDRESS): Remove.
3900 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3901 (SAVE_DUMMY_FRAME_TOS): Remove.
3902 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3903 (mcore_register_virtual_type): New function.
3904 (mcore_register_byte): New function.
3905 (mcore_register_size): New function.
3906 (mcore_register_name): New function.
3907 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3908 macros removed from tm-mcore.h.
3909 (mcore_dump_tdep): Add.
3910 (_initialize_mcore_tdep): Add gdbarch_register call.
3912 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3914 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3915 frameless_look_for_prologue, such that we actually call this
3918 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3920 * frame.h (frame_address_in_block): New function.
3922 * blockframe.c (frame_address_in_block): New function extracted
3923 from get_frame_block().
3924 (get_frame_block): Use frame_address_in_block().
3925 (block_innermost_frame): Use frame_address_in_block() to match
3926 the frame pc address against the block boundaries rather than
3927 the frame pc directly. This prevents a failure when a frame pc
3928 is actually a return-address pointing immediately after the end
3931 2002-07-02 Grace Sainsbury <graces@redhat.com>
3933 * MAINTAINERS: Add self under write after approval.
3935 2002-07-02 Grace Sainsbury <graces@redhat.com>
3937 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3938 used in architecture vector. The default is
3939 m68k_local_breakpoint_from_pc.
3940 (m68k_local_breakpoint_from_pc): Add.
3941 (enum): Add register numbers from tm-m68k.h.
3942 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3944 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3945 GDB_MULTI_ARCH_PARTIAL.
3946 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3947 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3949 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3950 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3951 to enum in m68k-tdep.c
3953 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3955 * solib-osf.c (open_map): Compute the list of shared libraries
3956 loaded by the inferior, rather than the list of libraries loaded
3957 by GDB itself. Otherwise, GDB ends up reading the symbols from
3958 the wrong shared libraries...
3960 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3962 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3963 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3965 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3967 (FRAMELESS_SIGNAL): Remove function.
3968 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3969 i386_linux_saved_pc_after_call): Removed.
3970 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3971 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3972 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3974 * i386-tdep.c (i386_frameless_signal_p): New function.
3975 (i386_frame_chain): Deal with frameless signals.
3976 (i386_sigtramp_saved_sp): New function.
3977 (i386_frame_saved_pc): Deal with frameless signals.
3978 (i386_saved_pc_after_call): Make sure the correct value is
3979 returned just after entry into a sigtramp.
3980 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3981 i386fbsd4_sc_sp_offset): New variables.
3982 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3983 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3984 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3985 similiar to what we already did for sc_pc_offset.
3986 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3989 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3991 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3993 * config/i386/tm-x86-64linux.h: New.
3994 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3996 * config/i386/nm-x86-64.h: Rename to ...
3997 * config/i386/nm-x86-64linux.h: ... this one.
3998 * config/i386/x86-64linux.mh: Reflect the above change.
4000 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4002 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4003 with sigcontext_addr. Add sc_sp_offset.
4004 (i386bsd_sigtramp_saved_pc): Remove prototype.
4005 (i386bsd_sicontext_addr): Add prototype.
4006 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4007 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4008 (i386_svr4_sigtramp_saved_pc): Removed.
4009 (i386_svr4_sigcontext_addr): New function.
4010 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4011 Initialize tdep->sigcontext_addr instead. Initialize
4012 tdep->sc_pc_offset and tdep->sc_sp_offset.
4013 (i386_gdbarch_init): Likewise.
4014 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4016 (i386bsd_sigtramp_saved_pc): Remove function.
4017 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4018 Initialize tdep->sigcontext_addr instead. Initialize
4020 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4021 of tdep->sigtramp_saved_pc.
4022 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4023 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4026 * i386-tdep.c (i386_frameless_function_invocation,
4027 i386_frame_num_args, i386_frame_init_saved_regs,
4028 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4029 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4030 i386_extract_return_value, i386_store_return_value,
4031 i386_extract_struct_value_address, i386_register_virtual_type,
4032 i386_register_convertible, i386_register_convert_to_virtual,
4033 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4034 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4037 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4039 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4041 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4042 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4043 this macro. Include "value.h".
4045 2002-06-30 Aidan Skinner <aidan@velvet.net>
4047 * ada-exp.tab.c: remove as it's a generated file
4048 * ada-lex.c: remove as it's a generated file
4050 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4052 * config/i386/tm-i386.h (struct frame_info, struct
4053 frame_saved_regs, struct value, struct type): Remove forward
4056 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4057 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4058 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4059 (FILL_FPXREGSET): Define.
4061 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4063 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4064 i[3456]86-*-netbsd* case.
4065 * config/i386/tm-obsd.h: Removed.
4066 * config/i386/obsd.mt: Removed.
4067 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4069 (MH_CFLAGS): Add -DYYDEBUG=0.
4071 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4072 i386nbsd_sc_pc_offset on OpenBSD too.
4074 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4075 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4076 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4078 * i386bsd-tdep.c: Include "arch-utils.h".
4079 (i386bsd_aout_in_solib_call_trampoline): New function.
4080 (i386bsd_init_abi): Set in_solib_call_trampoline to
4081 i386bsd_aout_in_solib_call_trampoline.
4082 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4083 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4085 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4087 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4088 (struct obstack, struct bcache): Add opaque declarations.
4089 * Makefile.in (macrotab_h): Update
4091 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4093 * blockframe.c (generic_find_dummy_frame): Change return type to
4094 ``struct regcache''.
4095 (struct dummy_frame): Replace field ``registers'' with regcache, a
4096 struct regcache object.
4097 (generic_find_dummy_frame): Update.
4098 (generic_push_dummy_frame): Update. Use regcache_xfree,
4099 regcache_xmalloc and regcache_cpy.
4100 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4102 (deprecated_generic_find_dummy_frame): Update.
4103 (generic_read_register_dummy): Update. Use
4104 regcache_read_as_address.
4105 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4106 (generic_get_saved_register): Update. Use regcache_read.
4108 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4110 * Makefile.in (objfiles_h): Add $(bcache_h).
4111 * objfiles.h: Include "bcache.h".
4113 * Makefile.in (symtab_h): Remove $(bcache_h).
4114 * symtab.h: Do not include "bcache.h".
4116 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4118 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4119 generic_func_frame_chain_valid.
4121 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4123 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4124 * config/i386/tm-fbsd.h: Likewise.
4126 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4128 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4129 generic_unwind_get_saved_register.
4131 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4133 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4134 * regcache.c (supply_register): Add missing argument to
4135 register_buffer call.
4137 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4139 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4140 Solaris /bin/grep does not not like it. From Peter Schauer.
4142 2002-06-26 Tom Tromey <tromey@redhat.com>
4144 * command.h (add_setshow_cmd): Declare.
4145 (add_setshow_cmd_full): Declare.
4146 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4147 returns void. Use add_setshow_cmd_full.
4148 (add_setshow_cmd_full): New function.
4149 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4150 (add_setshow_boolean_cmd): Likewise.
4152 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4154 * config/vax/tm-vax.h: Protect from multiple inclusion.
4155 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4156 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4157 * config/vax/tm-vaxbsd.h: ...here. New file.
4158 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4160 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4162 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4163 (BELIEVE_PCC_PROMOTION): Remove.
4164 (AP_REGNUM): Move to...
4165 * config/vax/nm-vax.h: ...here.
4166 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4167 (vax_breakpoint_from_pc): New function.
4168 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4169 and gdbarch_believe_pcc_promotion.
4171 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4173 * Makefile.in (vax_tdep_h): Define.
4174 (vax-tdep.o): Use $(vax_tdep_h).
4175 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4176 (vax_dump_tdep): New function.
4177 (_initialize_vax_tdep): Register vax_dump_tdep.
4178 * vax-tdep.h: Include osabi.h.
4179 (struct gdbarch_tdep): New.
4181 2002-06-26 Andrew Cagney <cagney@redhat.com>
4183 * frame.h (deprecated_generic_find_dummy_frame): Rename
4184 generic_find_dummy_frame.
4185 * blockframe.c (generic_find_dummy_frame): Make static.
4186 (deprecated_generic_find_dummy_frame): New function.
4187 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4188 generic_find_dummy_frame with deprecated_find_dummy_frame.
4189 (sh64_nofp_frame_init_saved_regs): Ditto.
4190 (sh_fp_frame_init_saved_regs): Ditto.
4191 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4192 (s390_frame_chain): Ditto.
4193 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4195 2002-06-26 Grace Sainsbury <graces@redhat.com>
4197 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4198 gdbarch vector are at the top.
4200 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4201 (FRAME_ARGS_ADDRESS): Remove.
4202 (FRAME_LOCALS_ADDRESS): Remove.
4203 (FRAME_NUM_ARGS): Remove.
4204 (FRAME_ARGS_SKIP): Remove.
4205 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4206 (m68k_gdbarch_init): Add gdbarch initializations for macros
4207 undefined in tm-m68k.h
4209 2002-06-26 Grace Sainsbury <graces@redhat.com>
4211 * monitor.h: Add the function regname to monitor_ops
4212 structure. This way NUM_REGS does not have to be a constant.
4213 * monitor.c (monitor_fetch_register): Added support for regname
4214 function. The function is called if the array regnames is NULL.
4215 (monitor_store_register): Same.
4216 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4218 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4219 cpu32bug_cmds.regname to point to new function.
4220 * abug-rom.c (abug_regname): Same as above.
4221 (init_abug_cmds): Same.
4222 * dbug-rom.c (dbug_regname): Same as above.
4223 (init_dbug_cmds): Same.
4224 * remote-est.c (est_regname): Same.
4225 (init_est_cmds): Same.
4226 * rom68k-rom.c (rom68k_regname): Same.
4227 (init_rom68k_cmds): Same.
4229 2002-06-25 Tom Tromey <tromey@redhat.com>
4231 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4233 2002-06-25 Andrew Cagney <cagney@redhat.com>
4235 * infrun.c (stop_registers): Change variable's type to ``struct
4237 (xmalloc_inferior_status): Delete function.
4238 (free_inferior_status): Delete function.
4239 (normal_stop): Use regcache_cpy.
4240 (struct inferior_status): Change type of fields ``stop_registers''
4241 and ``registers'' to ``struct regcache''.
4242 (write_inferior_status_register): Use regcache_write.
4243 (save_inferior_status): Instead of calling
4244 xmalloc_inferior_status, allocate the inf_status buffer directly.
4245 Use regcache_dup_no_passthrough and regcache_dup to save the
4247 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4248 Replace the stop_registers regcache instead of overriding it. Use
4249 regcache_xfree. Instead of calling free_inferior_status, xfree
4250 the buffer directly.
4251 (discard_inferior_status): Use regcache_xfree. Instead of calling
4252 free_inferior_status, xfree the buffer directly.
4253 (build_infrun): Use regcache_xmalloc.
4254 (_initialize_infrun): Delete redundant call to build_infrun.
4256 * Makefile.in (infcmd.o): Add $(regcache_h).
4258 * infcmd.c: Include "regcache.h".
4259 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4260 obtain the address of `stop_registers' register buffer.
4261 (print_return_value): Ditto.
4263 * inferior.h (struct regcache): Add opaque declaration.
4264 (stop_registers): Change variable's declared type to ``struct
4267 2002-06-24 Tom Tromey <tromey@redhat.com>
4269 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4270 * target.c (initialize_targets): Fixed typo in
4271 trust-readonly-sections `show' documentation.
4273 * main.c: Marked all strings with _().
4275 2002-06-24 Don Howard <dhoward@redhat.com>
4277 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4278 that means max CORE_ADDR+1.
4279 (lookup_mem_region): Ditto.
4280 (mem_info_command): Ditto.
4282 2002-06-24 Grace Sainsbury <graces@redhat.com>
4284 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4285 (REGISTER_BYTES_OK): Remove.
4286 (REGISTER_BYTES): Remove.
4287 (STORE_STRUCT_RETURN): Remove.
4288 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4289 (STORE_RETURN_VALUE): Remove.
4290 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4291 (FRAME_CHAIN): Remove.
4292 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4293 (FRAME_SAVED_PC): Remove.
4294 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4295 (m68k_store_struct_return): Add.
4296 (m68k_deprecated_extract_return_value): Add.
4297 (m68k_deprecated_extract_struct_value_address): Add.
4298 (m68k_store_return_value): Add.
4299 (m68k_frame_chain): Add.
4300 (m68k_frameless_function_invocation): Add.
4301 (m68k_frame_saved_pc): Add.
4302 (m68k_gdbarch_init): added set_gdbarch calls for new
4303 functions and deleted macros.
4305 2002-06-23 Tom Tromey <tromey@redhat.com>
4307 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4308 (ALLDEPFILES): Likewise.
4309 (udiheaders): Removed.
4310 (udip2soc.o): Likewise.
4311 (udi2go32.o): Likewise.
4313 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4315 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4317 * infrun.c (_initialize_infrun): Delete unnecessary call to
4320 * regcache.h: Update comments describing the regcache_cpy family
4322 (regcache_save, regcache_restore): Delete declaration.
4323 (regcache_save_no_passthrough): Delete declaration.
4324 (regcache_restore_no_passthrough): Delete declaration.
4325 * regcache.c (regcache_save): Delete function.
4326 (regcache_save_no_passthrough): Delete function.
4327 (regcache_restore): Delete function.
4328 (regcache_restore_no_passthrough): Delete function.
4330 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4332 * config/m68k/tm-m68k.h: Fix typo.
4333 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4334 (m68k_frame_init_saved_regs): Declare.
4336 2002-06-21 Jim Blandy <jimb@redhat.com>
4338 Remove some vestiges of Harris 88k support.
4339 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4340 register numbering quirk.
4341 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4342 odd symbols occurring in Harris 88k ELF targets.
4344 2002-06-21 Tom Tromey <tromey@redhat.com>
4346 * gdb_locale.h: New file.
4347 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4348 (defs_h): Added gdb_locale.h.
4349 * configure, config.in: Rebuilt.
4350 * configure.in (PACKAGE): Define.
4351 * defs.h: Include gdb_locale.h.
4352 * main.c (captured_main): Call setlocale, bindtextdomain,
4355 2002-06-21 Dave Brolley <brolley@redhat.com>
4357 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4358 * config/frv/frv.mt: New file.
4359 * config/frv/tm-frv.h: New file.
4360 * configure.tgt: Support frv-*-*.
4361 * Makefile.in (frv-tdep.o): New target.
4362 * frv-tdep.c: New file.
4363 * NEWS: Mention frv.
4365 2002-06-21 Dave Brolley <brolley@redhat.com>
4367 * MAINTAINERS: Add self to "Write After Approval" list.
4369 2002-06-21 Grace Sainsbury <graces@redhat.com>
4371 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4372 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4373 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4374 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4375 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4377 * m68k-tdep.c: Include arch-utils.h
4378 (m68k_register_raw_size): Add.
4379 (m68k_register_virtual_size): Add.
4380 (m68k_register_virtual_type): Add.
4381 (m68k_register_name): Add.
4382 (m68k_stack_align): Add.
4383 (m68k_register_byte): Add.
4384 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4387 2002-06-21 Grace Sainsbury <graces@redhat.com>
4389 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4390 m68k_find_saved_regs.
4391 (m68k_pop_frame): Removed saved_regs structure, and replaced
4392 references to it with frame->saved_regs.
4393 (m68k_gdbarch_init): Added function calls to initialize the
4395 (m68k_fix_call_dummy): Add.
4396 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4397 (CALL_DUMMY): Remove.
4398 (CALL_DUMMY_LENGTH): Remove.
4399 (CALL_DUMMY_START_OFFSET): Remove.
4400 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4401 (FIX_CALL_DUMMY): Remove.
4402 (PUSH_DUMMY_FRAME): Remove.
4403 (POP_FRAME): Remove.
4405 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4407 * parse.c (parse_fprintf): New function used to avoid calls to
4408 fprintf in bison parser generated debug code.
4409 * parser-defs.h: Declaration of new parse_fprintf function.
4410 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4411 Set YYDEBUG to 1 by default.
4412 Set YYFPRINTF as parse_fprintf.
4414 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4416 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4418 (pointer_encoding, enum ptr_encoding): New.
4419 (execute_cfa_program): Take care about pointer encoding.
4420 (dwarf2_build_frame_info): Only call parse_frame_info for
4421 .debug_frame and .eh_frame.
4422 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4423 fixed augmentation handling, added relative addressing,
4424 ignore duplicate FDEs. Added comments.
4425 * dwarf2cfi.c: Reindented.
4427 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4429 * event-top.c (command_handler): Don't use space_at_cmd_start
4430 unless there is sbrk() on the host. Assign time and space data
4431 to union fields of the appropriate length.
4433 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4435 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4436 x86_64_register_name. Return type changed to 'const char *'.
4437 (x86_64_register_name2nr): Rename to x86_64_register_number.
4438 (x86_64_gdbarch_init): Update to reflect the change.
4439 * x86-64-tdep.h: Ditto.
4440 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4441 (supply_fpregset): Ditto.
4443 2002-06-19 Andrew Cagney <cagney@redhat.com>
4445 * regcache.h: Update copyright.
4446 (struct regcache, struct gdbarch): Add opaque declarations.
4447 (current_regcache): Declare global variable.
4448 (regcache_read, regcache_write): Add gdbarch parameter.
4449 (regcache_save, regcache_save_no_passthrough)
4450 (regcache_restore, regcache_restore_no_passthrough)
4451 (regcache_dup, regcache_dup_no_passthrough)
4452 (regcache_cpy, regcache_cpy_no_passthrough)
4453 (deprecated_grub_regcache_for_registers)
4454 (deprecated_grub_regcache_for_register_valid)
4455 (regcache_valid_p): Add function declarations.
4457 * regcache.c: Update copyright.
4458 (regcache_descr_handle): New global variable.
4459 (struct regcache_descr): Define.
4460 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4461 (regcache_descr, xfree_regcache_descr): New functions.
4462 (struct regcache): Define.
4463 (regcache_xmalloc, regcache_xfree): New functions.
4464 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4465 (regcache_dup, regcache_dup_no_passthrough): New functions.
4466 (regcache_valid_p, regcache_read_as_address): New functions.
4467 (deprecated_grub_regcache_for_registers): New function.
4468 (deprecated_grub_regcache_for_register_valid): New function.
4469 (current_regcache): New global variable.
4470 (register_buffer): Add regcache parameter. Update calls.
4471 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4472 (read_register_gen, write_register_gen): Update register_buffer
4473 call. Test for legacy_p instead of gdbarch_register_read_p or
4474 gdbarch_register_write_p.
4475 (regcache_collect): Update register_buffer call.
4476 (build_regcache): Rewrite. Use deprecated grub functions.
4477 (regcache_save, regcache_save_no_passthrough): New functions.
4478 (regcache_restore, regcache_restore_no_passthrough): New
4480 (_initialize_regcache): Create the regcache_data_handle. Swap
4481 current_regcache global variable.
4483 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4484 parameter to regcache_read and regcache_write calls.
4485 (sh4_register_read): Ditto.
4486 (sh64_pseudo_register_read): Ditto.
4487 (sh64_register_read): Ditto.
4488 (sh_pseudo_register_write): Ditto.
4489 (sh4_register_write): Ditto.
4490 (sh64_pseudo_register_write): Ditto.
4491 (sh64_register_write): Ditto.
4493 * defs.h (XCALLOC): Define.
4495 2002-06-19 Grace Sainsbury <graces@redhat.com>
4497 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4498 * m68k-tdep.c (m68k_gdbarch_init): Added.
4499 (m68k_dump_tdep): Added.
4501 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4503 * ada-lang.c (fill_in_ada_prototype): Update comment.
4505 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4507 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4509 (mips_abi_string, mips_abi_strings): New.
4510 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4511 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4512 tdep->mips_abi_string. Honor mips_abi_string. Default to
4513 O32 if no ABI is found.
4514 (mips_dump_tdep): Use mips_abi_strings.
4515 (mips_abi_update): New function.
4516 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4517 ``set mips abi'' and ``show mips abi''. Check the size of
4520 2002-06-19 Andrew Cagney <cagney@redhat.com>
4522 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4525 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4527 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4528 current frame using only the first stack size adjustment. All
4529 subsequent size adjustments are not considered to be part of
4530 the "static" part of the current frame.
4531 Compute the address of the saved registers relative to the
4532 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4533 in use in this frame.
4535 2002-06-18 Don Howard <dhoward@redhat.com>
4537 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4538 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4539 suggesting this solution.
4541 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4543 * config/romp/xm-rtbsd.h: Delete file.
4544 * config/romp/rtbsd.mh: Delete file.
4546 2002-06-18 Keith Seitz <keiths@redhat.com>
4548 * breakpoint.c (condition_command): Post breakpoint_modify
4549 when a condition is added to an existing breakpoint.
4550 (commands_command): Likewise for commands.
4551 (set_ignore_count): Likewise for ignore counts.
4552 If no tty, do not simply return, still need to send event
4554 (ignore_command): Only print a newline if the command came
4556 Don't call breakpoints_changed, since this is now properly
4557 handled by set_ignore_count.
4559 2002-06-18 Andrew Cagney <cagney@redhat.com>
4561 * MAINTAINERS: Note that cris-elf target can be compiled with
4563 * cris-tdep.c (cris_register_name): Make return type constant.
4564 (cris_breakpoint_from_pc): Ditto.
4566 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4568 * frame.h (struct frame_info): Change type of context to
4571 2002-06-17 Andrew Cagney <cagney@redhat.com>
4573 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4575 * gdbarch.h, gdbarch.c: Regenerate.
4576 * config/mips/tm-mips.h (mips_register_name): Update.
4577 * i386-tdep.h (i386_register_name): Update.
4578 * mips-tdep.c (mips_register_name): Update
4579 * alpha-tdep.c (alpha_register_name): Update.
4580 * arch-utils.c (legacy_register_name): Update.
4581 * arch-utils.h (legacy_register_name): Update.
4582 * avr-tdep.c (avr_register_name): Update.
4583 * ia64-tdep.c (ia64_register_name): Update.
4584 * i386-tdep.c (i386_register_name): Update.
4585 * sparc-tdep.c (sparc32_register_name): Update.
4586 (sparc64_register_name): Update.
4587 (sparclite_register_name): Update.
4588 (sparclet_register_name): Update.
4589 * sh-tdep.c (sh_generic_register_name): Update.
4590 (sh_sh_register_name): Update.
4591 (sh_sh3_register_name): Update.
4592 (sh_sh3e_register_name): Update.
4593 (sh_sh_dsp_register_name): Update.
4594 (sh_sh3_dsp_register_name): Update.
4595 (sh_sh4_register_name): Update.
4596 (sh_sh64_register_name): Update.
4597 * s390-tdep.c (s390_register_name): Update.
4598 * rs6000-tdep.c (rs6000_register_name): Update.
4599 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4600 (ns32k_register_name_32382): Update.
4601 * d10v-tdep.c (d10v_ts2_register_name): Update.
4602 (d10v_ts3_register_name): Update.
4603 * xstormy16-tdep.c (xstormy16_register_name): Update.
4604 * vax-tdep.c (vax_register_name): Update.
4605 * v850-tdep.c (v850_register_name): Update.
4606 * m68hc11-tdep.c (m68hc11_register_name): Update.
4607 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4608 (am33_register_name): Update.
4610 2002-06-17 Grace Sainsbury <graces@redhat.com>
4612 * m68k-tdep.c: Reindented.
4614 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4616 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4617 list of predefined types.
4619 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4621 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4622 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4623 REGISTER_CONVERT_TO_RAW): Remove defines.
4624 (i386_register_virtual_type, i386_register_convertible,
4625 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4627 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4628 macros mentioned above.
4630 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4631 (i386lynx_saved_pc_after_call): Remove prototype.
4632 * i386ly-tdep.c: Include "i386-tdep.h".
4633 (i386lynx_saved_pc_after_call): Make static. Use
4634 read_memory_nobpt instead of read_memory. Use
4635 read_memory_unsigned_integer instead of read_memory_integer.
4636 (i386lynx_init_abi): New function.
4637 (i386lynx_coff_osabi_sniffer): New function.
4638 (_initialize_i386bsd_tdep): New function.
4640 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4641 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4642 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4643 (i386_fix_call_dummy): Remove prototype.
4644 * i386-tdep.c (i386_call_dummy_words): New variable.
4645 (i386_gdbarch_init): Adjust for removal of the
4646 macros mentioned above.
4648 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4650 * command.h (add_setshow_auto_boolean_cmd): Replace
4651 add_set_auto_boolean_cmd.
4652 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4653 add_set_auto_boolean_cmd.
4654 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4655 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4656 mask-address'' command.
4657 (show_mask_address): Add cmd parameter.
4658 * remote.c (add_packet_config_cmd): Update. Change type of
4659 set_func and show_func to cmd_sfunc_ftype.
4660 (_initialize_remote): Update `set remote Z-packet'
4661 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4662 (show_remote_protocol_e_packet_cmd): Ditto.
4663 (show_remote_protocol_E_packet_cmd): Ditto.
4664 (show_remote_protocol_P_packet_cmd): Ditto.
4665 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4666 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4667 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4668 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4669 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4670 (show_remote_protocol_Z_packet_cmd): Ditto.
4671 (show_remote_protocol_binary_download_cmd): Ditto.
4672 (show_remote_cmd): Pass NULL to all of above.
4674 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4676 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4677 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4678 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4679 POP_FRAME): Remove defines.
4680 (i386_push_arguments, i386_store_struct_return,
4681 i386_extract_return_value, i386_store_return_value,
4682 i386_extract_struct_value_address, i386_push_dummy_frame,
4683 i386_pop_frame): Renove prototypes.
4684 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4685 macros mentioned above.
4687 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4689 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4690 add_set_boolean_cmd.
4691 (add_setshow_cmd): New function.
4692 * command.h (add_setshow_boolean_cmd): Replace
4693 add_set_boolean_cmd.
4694 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4695 and ``set rdiromatzero''.
4696 * maint.c (_initialize_maint_cmds): Update commented out code.
4697 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4698 * target.c (initialize_targets): Update `set
4699 trust-readonly-sections'.
4700 * remote.c (_initialize_remote): Update `set remotebreak'.
4702 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4704 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4705 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4706 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4707 fit into multi-arch framework.
4708 (i386_breakpoint_from_pc): New function.
4709 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4712 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4713 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4714 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4715 (i386_frameless_function_invocation, i386_frame_num_args,
4716 i386_frame_init_saved_regs): Remove prototypes.
4717 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4718 macros mentioned above.
4720 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4722 * cli/cli-decode.c (set_cmd_cfunc): Update.
4723 (set_cmd_sfunc): Update.
4724 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4725 (set_cmd_sfunc, set_cmd_cfunc): Update.
4726 * cli/cli-decode.h: Update.
4728 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4730 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4731 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4733 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4735 * defs.h (auto_boolean): Declare enum.
4736 * command.h (cmd_auto_boolean): Delete enum.
4737 * mips-tdep.c (mask_address_var): Update.
4738 (mips_mask_address_p): Update.
4739 (show_mask_address): Update.
4740 * remote.c (struct packet_config): Update.
4741 (update_packet_config): Update.
4742 (show_packet_config_cmd): Update.
4743 (packet_ok): Update.
4744 (add_packet_config_cmd): Update.
4745 (_initialize_remote):
4746 * command.h: Update.
4747 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4748 (do_setshow_command): Update.
4749 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4750 * cli/cli-decode.h: Update.
4752 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4754 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4755 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4756 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4757 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4758 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4759 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4761 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4762 list of DJGPP COFF targets.
4764 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4765 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4766 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4767 (FP0_REGNUM): Remove define.
4768 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4769 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4770 (i386_register_virtual_size): Remove protoype.
4771 * i386-tdep.c (i386_register_virtual_size): Removed.
4772 (i386_extract_return_value, i386_store_return_value): Use
4773 FP0_REGNUM instead of NUM_FREGS to determine whether the
4774 floating-point registers are available.
4775 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4776 Adjust for removal of macros mentioned above.
4778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4780 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4782 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4784 (supply_gregset, fill_gregset): Remove use of register keyword and
4785 remove declaration for regmap. Use I386_NUM_GREGS instead of
4786 NUM_REGS and NUM_FREGS.
4787 (FPREGSET_FSAVE_OFFSET): Remove.
4788 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4789 NUM_FREGS to determine whether the floating-point registers are
4792 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4793 gnu_store_registers): Replace usage of NUM_GREGS with
4796 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4797 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4798 usage of NUM_GREGS with I386_NUM_GREGS.
4800 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4802 * i386bsd-nat.c: Include "i386-tdep.h".
4803 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4806 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4807 and associated comment. They no longer make any sense, since we
4808 don't use this file anymore on Linux.
4810 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4811 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4812 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4813 elements in these arrays.
4814 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4817 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4819 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4820 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4822 2002-06-14 Andrew Cagney <cagney@redhat.com>
4824 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4825 EXTRACT_RETURN_VALUE.
4826 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4827 EXTRACT_STRUCT_VALUE_ADDRESS.
4828 * gdbarch.h, gdbarch.c: Regenerate.
4830 * values.c (value_being_returned): Handle
4831 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4832 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4834 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4835 * arm-tdep.c (arm_gdbarch_init): Update.
4836 * avr-tdep.c (avr_gdbarch_init): Update.
4837 * cris-tdep.c (cris_gdbarch_init): Update.
4838 * d10v-tdep.c (d10v_gdbarch_init): Update.
4839 * ia64-tdep.c (ia64_gdbarch_init): Update.
4840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4842 * s390-tdep.c (s390_gdbarch_init): Update.
4843 * sh-tdep.c (sh_gdbarch_init): Update.
4844 * s390-tdep.c (s390_gdbarch_init): Update.
4845 * sparc-tdep.c (sparc_gdbarch_init): Update.
4846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4847 * v850-tdep.c (v850_gdbarch_init): Update.
4848 * vax-tdep.c (vax_gdbarch_init): Update.
4849 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4850 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4852 * config/arc/tm-arc.h: Update.
4853 * config/d30v/tm-d30v.h: Update.
4854 * config/fr30/tm-fr30.h: Update.
4855 * config/h8300/tm-h8300.h: Update.
4856 * config/h8500/tm-h8500.h: Update.
4857 * config/i386/tm-i386.h: Update.
4858 * config/i386/tm-ptx.h: Update.
4859 * config/i386/tm-symmetry.h: Update.
4860 * config/i960/tm-i960.h: Update.
4861 * config/m32r/tm-m32r.h: Update.
4862 * config/m68k/tm-delta68.h: Update.
4863 * config/m68k/tm-linux.h: Update.
4864 * config/m68k/tm-m68k.h: Update.
4865 * config/m88k/tm-m88k.h: Update.
4866 * config/mcore/tm-mcore.h: Update.
4867 * config/mips/tm-mips.h: Update.
4868 * config/mn10200/tm-mn10200.h: Update.
4869 * config/pa/tm-hppa.h: Update.
4870 * config/pa/tm-hppa64.h: Update.
4871 * config/sparc/tm-sp64.h: Update.
4872 * config/sparc/tm-sparc.h: Update.
4873 * config/sparc/tm-sparclet.h: Update.
4874 * config/z8k/tm-z8k.h: Update.
4876 2002-06-14 Andrew Cagney <cagney@redhat.com>
4878 * Makefile.in (i386_linux_tdep_h): Define.
4879 (i386_tdep_h, i387_tdep_h): Define.
4880 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4881 $(i386_tdep_h) and $(i387_tdep_h).
4882 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4884 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4886 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4887 Already covered by the default.
4889 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4890 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4891 (i386_gdbarch_init): Initialize long_double_format and long_double
4894 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4895 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4897 * config/i386/i386sol2.mh: ... here.
4898 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4899 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4900 (SIGCONTEXT_PC_OFFSET): Remove define.
4901 (IN_SIGTRAMP): Remove define.
4902 * i386-sol2-tdep.c: New file.
4904 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4905 * config/i386/tm-i386nw.h: Removed.
4907 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4908 USE_STRUCT_CONVENTION): Remove defines.
4909 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4910 (get_longjmp_target): Remove prototype.
4911 (IN_SIGTRAMP): Remove define.
4912 (i386bsd_in_sigtramp): Remove prototype.
4913 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4914 function. Update comment accordingly
4915 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4916 (FRAME_SAVED_PC): Remove define.
4917 (i386bsd_frame_saved_pc): Remove prototype.
4918 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4919 GET_LONGJMP_TARGET): Remove defines.
4920 (get_longjmp_target): Remove prototype.
4921 (IN_SIGTRAMP): Remove define.
4922 (i386bsd_in_sigtramp): Remove prototype.
4923 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4924 function. Update comment accordingly
4925 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4926 (FRAME_SAVED_PC): Remove define.
4927 (i386bsd_frame_saved_pc): Remove prototype.
4928 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4930 (USE_STRUCT_CONVENTION): Remove prototype.
4931 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4933 (_initialize_i386bsd_nat): Revise logic to determine some
4934 constants at compile time when compiling a native GDB. Warn if
4935 things don't match up with what we expect.
4936 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4938 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4939 to use date stored in `struct gdbarch_tdep'.
4940 (i386bsd_sigcontext_offset): Remove varaible.
4941 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4942 stored in `struct gdbarch_tdep'.
4943 (i386bsd_frame_saved_pc): Make static.
4944 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4945 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4946 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4947 i386fbsd4_sc_pc_offset): New variables.
4948 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4949 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4951 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4953 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4954 Modify the value of i386fbsd_sigtramp_start and
4955 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4956 i386fbsd_sigtramp_end.
4957 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4960 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4961 define to i386-linux-tdep.h.
4962 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4963 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4965 (i386_linux_register_name, i386_linux_register_byte,
4966 i386_linux_register_raw_size): Remove prototypes.
4967 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4968 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4969 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4970 TARGET_WRITE_PC): Remove defines.
4971 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4972 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4973 i386_linux_write_pc): Remove prototypes.
4974 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4975 (get_longjmp_target): Remove prototype.
4976 * i386-linux-tdep.h: New file.
4977 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4978 * i386-linux-tdep.c: Include "i386-tdep.h" and
4979 "i386-linux-tdep.h".
4980 (i386_linux_register_name, i386_linux_register_byte,
4981 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4982 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4984 (i386_linux_init_abi): New function.
4985 (_initialize_i386_linux_tdep): New function.
4987 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4988 (i386_saved_pc_after_call): Remove prototype.
4989 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4990 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4991 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4992 (i386_register_name, i386_stab_reg_to_regnum,
4993 i386_dwarf_reg_to_regnum): Remove prototypes.
4994 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4995 SIZEOF_SSE_REGS): Remove defines.
4996 (REGISTER_BYTES): Remove define.
4997 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4998 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4999 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5000 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5001 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5002 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5003 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5004 (get_longjmp_target): Remove prototype.
5005 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5006 (sigtramp_saved_pc): Remove define.
5007 (i386v4_sigtramp_saved_pc): Remove prototype.
5008 * config/i386/tm-go32.h (FRAME_CHAIN,
5009 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5010 (i386go32_frame_saved_pc): Remove prototype.
5011 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5012 (get_longjmp_target): Remove prototype.
5013 * i386-tdep.h: Include "osabi.h".
5014 (enum i386_abi): Removed.
5015 (enum struct_return): New enum.
5016 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5017 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5018 sc_pc_offset members.
5019 (i386_gdbarch_register_os_abi): Remove prototype.
5020 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5021 I386_SSE_NUM_REGS): New defines.
5022 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5023 I386_SSE_SIZEOF_REGS): New defines.
5024 (i386_register_name, i386_register_byte, i386_register_raw_size):
5026 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5027 (i386bsd_sigtramp_saved_pc): New prototype.
5028 * i386-tdep.c: Don't include "elf-bfd.h".
5029 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5030 i386_frame_chain, i386_saved_pc_after_call): Make static.
5031 (i386_frame_saved_pc): Rewrite to call architecture dependent
5032 function to deal with signal handlers. Make static.
5033 (i386go32_frame_saved_pc): Removed.
5034 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5036 (i386_get_longjmp_target): New function.
5037 (default_struct_convention, pcc_struct_convention,
5038 reg_struct_convention, valid_conventions, struct_convention): New
5040 (i386_use_struct_convention): New function.
5041 (i386v4_sigtramp_saved_pc): Renamed to
5042 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5043 (i386_pc_in_sigtramp): New function.
5044 (i386_abi_names): Removed.
5045 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5046 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5048 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5049 i386_gdbarch_register_os_abi): Removed.
5050 (struct i386_abi_handler): Removed.
5051 (i386_abi_handler_list): Removed.
5052 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5054 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5055 i386_nw_init_abi): New functions.
5056 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5057 Use set_gdbarch_xxx() calls instead of relying on macros for a
5059 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5060 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5061 Register the various architecture variants defined in this file.
5063 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5065 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5066 (struct main_type): Remove arg_types member. Update comments for
5068 (TYPE_ARG_TYPES): Remove.
5069 (TYPE_FN_FIELD_ARGS): Update.
5070 (smash_to_method_type): Update prototype.
5072 * c-typeprint.c (cp_type_print_method_args): Take method type
5073 instead of argument list. Use new argument layout. Simplify.
5074 (c_type_print_args): Use new argument layout. Simplify.
5075 (c_type_print_base): Update call to cp_type_print_method_args.
5076 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5077 argument; use die->type instead. Update call to
5078 smash_to_method_type.
5079 (read_structure_scope): Update call to dwarf2_add_member_fn.
5080 * gdbtypes.c (allocate_stub_method): Update comment.
5081 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5082 Use new argument layout.
5083 (check_stub_method): Use new argument layout. Don't count
5084 void as an argument.
5085 (print_arg_types): Update comments. Use new argument layout.
5086 (recursive_dump_type): Don't print arg_types member.
5087 * hpread.c (hpread_read_struct_type): Use new argument layout.
5088 (fixup_class_method_type): Likewise.
5089 (hpread_type_lookup): Likewise.
5090 * stabsread.c (read_type): Update calls to read_args and
5091 smash_to_method_type.
5092 (read_args): Use new argument layout. Simplify.
5093 * valops.c (typecmp): Use new argument layout. Update parameters
5094 and comments. Simplify.
5095 (hand_function_call): Use new argument layout.
5096 (search_struct_method): Update call to typecmp.
5097 (find_overload_match): Use new argument layout.
5099 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5101 * NEWS: Mention multithreaded debug support for gdbserver.
5103 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5105 * MAINTAINERS: Mention NEWS.
5107 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5109 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5110 (struct mips_objfile_private, compare_pdr_entries): New.
5111 (non_heuristic_proc_desc): Read the ".pdr" section if it
5114 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5116 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5117 (arm_debug): New static variable.
5118 (_initialize_arm_tdep): Add ``set debug arm'' command.
5120 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5122 * Makefile.in (sim_arm_h): Define.
5123 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5124 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5125 (arm_register_sim_regno): New function, map an internal REGNUM
5126 onto a simulator register number.
5127 (arm_gdbarch_init): Set register_sim_regno.
5129 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5131 * MAINTAINERS: Add self.
5133 2002-06-11 Jim Blandy <jimb@redhat.com>
5135 * source.c (source_info): Mention whether the symtab has
5136 information about preprocessor macros.
5138 Call the command `info macro', not `show macro'.
5139 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5141 (_initialize_macrocmd): Register `info_macro_command' in
5142 `infolist', not `showlist'.
5144 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5146 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5147 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5148 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5149 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5150 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5152 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5153 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5154 (_initialize_mips_tdep): Remove dead code.
5155 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5156 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5157 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5158 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5159 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5160 MIPS_LAST_FP_ARG_REGNUM): Remove.
5162 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5164 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5165 (unwind_tmp_obstack_free, parse_frame_info)
5166 (update_context, cfi_read_fp, cfi_write_fp)
5167 (cfi_frame_chain, cfi_init_extra_frame_info)
5168 (cfi_virtual_frame_pointer): Use the above function.
5169 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5171 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5173 * v850-tdep.c (v850_type_is_scalar): New function.
5174 (v850_use_struct_convention): Match current gcc implementation
5175 as close as possible.
5176 (v850_push_arguments): Fix stack_offset handling. Don't write
5177 struct_addr into register. This is done by v850_store_struct_return.
5178 (v850_extract_return_value): Care for structs.
5179 (v850_store_return_value): Ditto.
5180 (v850_store_struct_return): Actually write address.
5182 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5184 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5185 without debug information too.
5187 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5189 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5190 Make multi-arch pure.
5191 * gdbarch.h, gdbarch.c: Re-generate.
5192 * arm-tdep.c (arm_print_float_info): Update.
5193 * arch-utils.h (default_print_float_info): Update.
5194 * arch-utils.c (default_print_float_info): Update.
5195 * infcmd.c (float_info): Update call.
5197 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5199 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5200 the front of the initialize list.
5202 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5204 * infrun.c (struct inferior_status): Replace fields
5205 selected_frame_address and selected_level with field
5207 (save_inferior_status): Update. Use get_frame_id.
5208 (struct restore_selected_frame_args): Delete.
5209 (restore_selected_frame): Update. Use frame_find_by_id.
5210 (restore_inferior_status): Update.
5212 * breakpoint.h (struct breakpoint): Change type of
5213 watchpoint_frame to frame_id.
5214 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5215 call to get_current_frame.
5216 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5218 (watchpoint_check): Use frame_find_by_id.
5220 * frame.h (record_selected_frame): Delete declaration.
5221 * stack.c (record_selected_frame): Delete function.
5223 * frame.h (struct frame_id): Define.
5224 (get_frame_id): Declare.
5225 (frame_find_by_id): Declare.
5226 * frame.c (frame_find_by_id): New function.
5227 (get_frame_id): New function.
5229 2002-06-10 Andrey Volkov <avolkov@transas.com>
5231 * ser-e7kpc.c: Fix duplicated define and call of
5232 _initialize_ser_e7000pc
5234 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5236 * signals/signals.c (target_signal_from_host): Fix #ifdef
5238 (do_target_signal_to_host): Likewise.
5240 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5242 * mips-tdep.c (mips_find_abi_section): New function.
5243 (mips_gdbarch_init): Call it.
5245 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5247 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5248 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5249 after Andrew's 2002-06-08 gdbarch change.
5251 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5253 * i386-linux-nat.c (suppy_gregset): Don't supply
5254 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5256 (fill_gregset): Don't fetch it under the same circumstances.
5258 2002-06-09 Andrew Cagney <cagney@redhat.com>
5260 * Makefile.in (callback_h): Define.
5261 (remote_sim_h): Update path to remote-sim.h.
5262 (remote-rdp.o): Add $(callback_h).
5263 (remote-sim.o): Use $(callback_h).
5264 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5265 * remote-rdp.c: Include "gdb/callback.h".
5267 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5269 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5270 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5272 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5274 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5275 * rdi-share/serpardr.c: Ditto.
5276 * rdi-share/unixcomm.c: Ditto.
5277 * rdi-share/serdrv.c: Ditto.
5278 * rdi-share/hostchan.h: Ditto.
5279 * rdi-share/hostchan.c: Ditto.
5280 * rdi-share/host.h: Ditto.
5281 * rdi-share/devsw.c: Ditto.
5283 * objfiles.h: Change type of obj_private to void pointer.
5284 * pa64solib.c: Update copyright. Don't include "assert.h", use
5285 strcmp instead of STREQ, use LONGEST, do not use PTR
5286 * somsolib.c: Ditto.
5288 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5289 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5290 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5292 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5294 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5295 (default_get_saved_register): Delete function.
5296 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5297 generic_unwind_get_saved_register.
5298 * gdbarch.h, gdbarch.c: Re-generate.
5300 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5302 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5303 generic_func_frame_chain_valid.
5304 * gdbarch.h, gdbarch.c: Re-generate.
5305 * blockframe.c (generic_func_frame_chain_valid): Only check
5306 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5307 passing FP to PC_IN_CALL_DUMMY.
5310 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5312 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5313 (register_gdbarch_data): Initialize init_p.
5314 (gdbarch_data): Initialize data pointer using the init function.
5315 (init_gdbarch_data): Delete function.
5316 (gdbarch_update_p): Update.
5317 (initialize_non_multiarch): Update.
5318 (struct gdbarch): Add field initialized_p.
5319 * gdbarch.h, gdbarch.c: Re-generate.
5321 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5323 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5324 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5325 better do the things actually here.
5326 * x86-64-tdep.c (x86_64_register_name2nr): New.
5327 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5328 (x86_64_gdbarch_init): Respect the above change.
5329 * x86-64-tdep.h (x86_64_register_name2nr)
5330 (x86_64_register_nr2name): Add prototypes.
5331 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5333 2002-06-06 Michael Snyder <msnyder@redhat.com>
5335 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5336 Delete extra braces and re-indent.
5337 (d10v_store_return_value): Char return values
5338 must be shifted over by one byte in R0.
5339 (d10v_extract_return_value): Delete extra braces, re-indent.
5341 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5343 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5344 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5345 (d10v_integer_to_address): Rewrite.
5346 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5347 the d10v specific functions which take care of converting to the
5350 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5352 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5353 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5355 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5357 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5359 * config/tm-linux.h: Ditto.
5360 * config/alpha/tm-alphalinux.h: Ditto.
5361 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5362 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5363 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5364 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5365 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5366 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5367 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5368 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5369 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5370 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5371 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5372 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5373 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5374 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5375 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5376 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5377 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5378 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5379 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5380 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5381 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5382 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5383 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5384 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5385 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5386 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5387 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5388 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5389 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5390 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5391 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5392 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5393 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5394 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5395 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5396 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5397 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5399 2002-05-04 Aidan Skinner <aidan@velvet.net>
5401 * ada-exp.tab.c: New file
5402 * ada-exp.y: New file
5403 * ada-lang.c: New file
5404 * ada-lang.h: New file
5405 * ada-lex.c: New file
5406 * ada-lex.l: New file
5407 * ada-tasks.c: New file
5408 * ada-typeprint.c: New file
5409 * ada-valprint.c: New file
5411 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5413 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5414 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5416 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5418 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5419 insetead of ppc-linux-tdep.o.
5420 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5421 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5423 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5425 2002-05-07 Christian Groessler <chris@groessler.org>
5426 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5427 bit register contents for little endian hosts.
5429 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5431 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5434 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5436 * gdbarch.h: Regenerate.
5438 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5440 * MAINTAINERS: Add everyone to write-after-approval list.
5442 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5444 * stack.c (frame_info): Use frame_register_unwind instead of
5445 saved_regs. Mention when the SP is on the stack or in a register.
5447 * frame.h (frame_register_unwind_ftype): Define. Document.
5448 (struct frame_info): Add field register_unwind and
5449 register_unwind_cache.
5450 (frame_register_unwind): Declare.
5451 (generic_unwind_get_saved_register): Declare.
5453 * frame.c (frame_register_unwind): New function.
5454 (generic_unwind_get_saved_register): New function.
5456 * blockframe.c (generic_call_dummy_register_unwind): New function.
5457 (frame_saved_regs_register_unwind): New function.
5458 (set_unwind_by_pc): New function.
5459 (create_new_frame): New function.
5460 (get_prev_frame): New function.
5462 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5464 * a29k-share/: Delete directory.
5465 * remote-vx29k.c: Delete file.
5467 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5469 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5470 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5472 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5474 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5475 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5478 (sparcnbsd-tdep.o): New dependency lists.
5479 * NEWS: Note new UltraSPARC NetBSD native configuration.
5480 * configure.host (sparc64-*-netbsd*): New host.
5481 * configure.tgt (sparc-*-netbsdelf*)
5482 (sparc-*-netbsd*): Set gdb_target to nbsd.
5483 (sparc64-*-netbsd*): New target.
5484 * sparc64nbsd-nat.c: New file.
5485 * sparcnbsd-nat.c: New file.
5486 * sparcnbsd-tdep.c: New file.
5487 * sparcnbsd-tdep.h: New file.
5488 * config/sparc/nbsd.mt: New file.
5489 * config/sparc/nbsd64.mh: New file.
5490 * config/sparc/nbsd64.mt: New file.
5491 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5492 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5494 * config/sparc/nbsdaout.mt: Remove.
5495 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5496 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5498 * config/sparc/nbsdelf.mt: Remove.
5499 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5500 sparc-nat.c compatiblity defines.
5501 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5502 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5503 * config/sparc/tm-nbsd64.h: New file.
5504 * config/sparc/tm-nbsdaout.h: Remove.
5505 * config/sparc/xm-nbsd.h: Remove.
5507 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5509 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5510 * sparc-tdep.c: Include osabi.h.
5511 (gdbarch_tdep): Add osabi member.
5512 (_initialize_sparc_tdep): Use gdbarch_register.
5513 (sparc_gdbarch_init): Use generic OS ABI framework.
5514 (sparc_dump_tdep): New function.
5516 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5518 * corefile.c (do_captured_read_memory_integer): Return non-zero
5520 (safe_read_memory_integer): Copy result of memory read when
5521 status is non-zero. Also, add comments.
5523 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5525 * Makefile.in (ppc_tdep_h): Define.
5528 (rs6000-tdep.o): Use $(ppc_tdep_h).
5531 (ppcnbsd-tdep.o): New dependency lists.
5532 * ppc-tdep.h: Use generic OS ABI framework.
5533 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5534 (ppc_linux_init_abi): New functions.
5535 (ppc_sysv_abi_broken_use_struct_convention)
5536 (ppc_sysv_abi_use_struct_convention)
5537 (ppc_sysv_abi_push_arguments): Move to...
5538 * ppc-sysv-tdep.c: ...here.
5539 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5540 * rs6000-tdep.c (process_note_abi_tag_sections)
5541 (get_elfosabi): Remove.
5542 (rs6000_gdbarch_init): Use generic OS ABI framework.
5543 (rs6000_dump_tdep): New function.
5544 (_initialize_rs6000_tdep): Use gdbarch_register.
5545 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5546 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5547 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5548 of ppc-linux-tdep.o.
5549 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5550 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5551 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5552 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5553 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5554 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5556 2002-05-29 Jim Blandy <jimb@redhat.com>
5558 * macroscope.c (default_macro_scope): Put `void' in empty argument
5561 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5563 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5564 * arch-utils.c: Include "sim-regno.h".
5565 * gdbarch.sh: Don't include "sim-regno.h".
5566 * gdbarch.h, gdbarch.c: Regenerate.
5567 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5569 * arch-utils.h (legacy_register_sim_regno): To here.
5570 * remote-sim.c (legacy_register_sim_regno): Move function from
5572 * arch-utils.c (legacy_register_sim_regno): To here.
5574 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5576 * sim-regno.h: New file.
5577 * Makefile.in (sim_regno_h): Define.
5578 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5579 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5580 (legacy_register_sim_regno): New function.
5581 (one2one_register_sim_regno): New function.
5582 (gdbsim_fetch_register): Rewrite.
5583 (gdbsim_store_register): Only store a register when
5584 REGISTER_SIM_REGNO is valid.
5585 * d10v-tdep.c: Include "sim-regno.h".
5586 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5587 (d10v_ts3_register_sim_regno): Ditto.
5588 * gdbarch.sh: Include "sim-regno.h".
5589 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5590 * gdbarch.h, gdbarch.c: Regenerate.
5591 * arch-utils.h (default_register_sim_regno): Delete declaration.
5592 * arch-utils.c (default_register_sim_regno): Delete function.
5594 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5596 * ppcnbsd-nat.c: Rewrite.
5597 * ppcnbsd-tdep.c: New file.
5598 * ppcnbsd-tdep.h: New file.
5599 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5600 solib.o, and solib-svr4.o.
5601 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5602 nbsd-tdep.o, and corelow.o.
5604 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5606 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5607 `tr' and `sed'. Mention that `broken' targets are not expected to
5610 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5612 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5613 Let PC point right after the prologue before looking up symbols.
5615 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5617 * i386-tdep.c (i386_register_virtual_type): Return
5618 builtin_type_vec128i for SSE registers.
5620 * gdbtypes.h (builtin_type_vec128i): Declare.
5622 * gdbtypes.c (build_builtin_type_vec128i): New function.
5623 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5624 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5625 (build_gdbtypes): Initialize new builtin vector types.
5626 (_initialize_gdbtypes): Register new vector types with gdbarch.
5628 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5630 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5631 since it has been multi-arch'd.
5632 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5633 Move Alpha and VAX multi-arch news entries to same section
5634 as other multi-arch news.
5636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5638 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5639 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5640 static. Rename some register numbers to put them in ns32k-tdep
5642 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5643 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5645 (_initialize_ns32k_tdep): Use gdbarch_register.
5646 * ns32k-tdep.h: New file.
5647 * ns32knbsd-tdep.c: New file.
5648 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5649 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5650 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5651 REGISTER_BYTES, REGISTER_BYTE): Remove.
5652 * config/ns32k/tm-ns32k.h: New file.
5653 * config/ns32k/tm-umax.h: Remove.
5655 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5657 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5658 ns32k_store_struct_return, ns32k_extract_return_value,
5659 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5661 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5662 ns32k_saved_pc_after_call.
5663 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5664 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5665 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5666 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5667 ns32k_extract_struct_value_address.
5669 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5671 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5672 ns32k_fix_call_dummy): New.
5673 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5674 ns32k_call_dummy_words.
5675 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5676 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5677 CALL_DUMMY_NARGS): Remove.
5678 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5682 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5683 ns32k_frame_saved_pc, ns32k_frame_args_address,
5684 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5685 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5686 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5687 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5688 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5689 (BREAKPOINT): Remove..
5690 (FRAME_CHAIN): Define as ns32k_frame_chain.
5691 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5692 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5693 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5694 (FRAME_FIND_SAVED_REGS): Remove.
5695 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5696 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5697 (POP_FRAME): Define as ns32k_pop_frame.
5699 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5701 * ns32k-tdep.c (ns32k_register_byte_32082,
5702 ns32k_register_byte_32382, ns32k_register_raw_size,
5703 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5705 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5706 ns32k_register_byte_32382.
5707 * config/ns32k/tm-umax.h: Update copyright years.
5708 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5709 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5710 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5711 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5712 (ns32k_get_enter_addr): Fix prototype.
5714 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5716 * ns32k-tdep.c: Update copyright years.
5717 (ns32k_register_name_32082): New function.
5718 (ns32k_register_name_32382): Ditto.
5719 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5720 (REGISTER_NAME): Define as ns32k_register_name_32382.
5721 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5722 (REGISTER_NAME): Define as ns32k_register_name_32082.
5724 2002-05-24 Jim Blandy <jimb@redhat.com>
5726 * dwarf2read.c (free_line_header): Use xfree, not free.
5728 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5730 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5731 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5733 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5735 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5737 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5739 From Ross Alexander at NEC Europe:
5740 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5742 2002-05-23 Michael Snyder <msnyder@redhat.com>
5744 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5745 for input, rather than parse_and_eval_address.
5747 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5749 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5750 * Makefile.in (sim_d10v_h): Update definition.
5752 2002-05-24 Andrew Cagney <cagney@redhat.com>
5754 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5755 change `2002-05-22 Michael Snyder' below.
5756 (d10v_push_arguments): Ditto.
5757 (d10v_extract_return_value): Ditto.
5759 2002-05-23 Jim Blandy <jimb@redhat.com>
5761 * macrotab.c (check_for_redefinition): Don't complain if the new
5762 definition is the same as the previous one. Take more arguments
5763 to allow the comparison.
5764 (macro_define_object, macro_define_function): Pass more arguments
5765 to check_for_redefinition.
5767 2002-05-22 Michael Snyder <msnyder@redhat.com>
5769 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5770 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5771 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5772 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5773 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5774 Add a temp variable to save a call (and a memory read).
5775 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5776 if possible (so that PC_IN_CALL_DUMMY will work).
5778 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5780 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5782 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5784 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5786 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5787 (dwarf2_build_frame_info): Add offset to fde->initial_location
5788 so that frames of shared libraries are mapped correctly.
5789 (execute_stack_op): Change type of 'result' from ULONGEST to
5792 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5794 * config/alpha/tm-nbsd.h: Include solib.h.
5796 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5798 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5799 assumptions about the host's byte order.
5801 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5803 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5805 * alphanbsd-tdep.c: Include solib-svr4.h.
5806 * shnbsd-tdep.c: Ditto.
5808 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5810 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5811 nbsd-tdep.h to dependency list.
5812 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5813 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5814 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5815 nbsdaout.mh and nbsdelf.mh consistently.
5816 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5817 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5818 nbsdaout.mt and nbsdelf.mh consistently.
5819 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5820 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5821 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5822 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5823 a.out shared library stuff from here...
5824 * config/nm-nbsdaout.h: ...to here.
5825 * config/tm-nbsd.h: Remove.
5826 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5827 * config/arm/nbsd.mh: Remove.
5828 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5830 * config/arm/nbsdaout.mh: New file.
5831 * config/arm/nbsdelf.mh: New file.
5832 * config/arm/nm-nbsdaout.h: New file.
5833 * config/i386/nbsd.mh: Remove.
5834 * config/i386/nbsd.mt: Remove.
5835 * config/i386/nbsdaout.mh: New file.
5836 * config/i386/nbsdaout.mt: New file.
5837 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5838 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5839 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5840 i386_register_u_addr): Remove.
5841 * config/i386/nm-nbsdaout.h: New file.
5842 * config/i386/nm-nbsdelf.h: Remove.
5843 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5844 (USE_STRUCT_CONVENTION): Remove.
5845 * config/i386/tm-nbsdaout.h: New file.
5846 * config/i386/tm-nbsdelf.h: Remove.
5847 * config/m68k/nbsd.mh: Remove.
5848 * config/m68k/nbsd.mt: Remove.
5849 * config/m68k/nbsdaout.mh: New file.
5850 * config/m68k/nbsdaout.mt: New file.
5851 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5852 * config/m68k/nm-nbsdaout.h: New file.
5853 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5854 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5855 * config/ns32k/nbsd.mh: Remove.
5856 * config/ns32k/nbsd.mt: Remove.
5857 * config/ns32k/nbsdaout.mh: New file.
5858 * config/ns32k/nbsdaout.mt: New file.
5859 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5860 * config/ns32k/nm-nbsdaout.h: New file.
5861 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5862 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5863 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5864 (SVR4_SHARED_LIBS): Remove.
5865 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5866 * config/sparc/nbsd.mh: Remove.
5867 * config/sparc/nbsd.mt: Remove.
5868 * config/sparc/nbsdaout.mh: New file.
5869 * config/sparc/nbsdaout.mt: New file.
5870 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5871 * config/sparc/nbsdelf.mt: New file.
5872 * config/sparc/nm-nbsdaout.h: New file.
5873 * config/sparc/nm-nbsdelf.h: Remove.
5874 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5875 * config/sparc/tm-nbsdaout.h: New file.
5877 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5879 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5881 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5883 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5885 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5887 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5889 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5891 * NEWS: Note new MIPS NetBSD native configuration.
5892 * configure.host (mips*-*-netbsd*): New host.
5893 * configure.tgt (mips*-*-netbsd*): New target.
5894 * mipsnbsd-nat.c: New file.
5895 * mipsnbsd-tdep.c: New file.
5896 * mipsnbsd-tdep.h: New file.
5897 * config/mips/nbsd.mh: New file.
5898 * config/mips/nbsd.mt: New file.
5899 * config/mips/nm-nbsd.h: New file.
5900 * config/mips/tm-nbsd.h: New file.
5902 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5904 * Makefile.in (SFILES): Add osabi.c.
5905 (COMMON_OBS): Add osabi.o.
5906 (osabi.o): New dependency list.
5907 * osabi.c: New file.
5908 * osabi.h: New file.
5909 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5911 * Makefile.in (alpha_tdep_h): Define and use instead of
5913 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5914 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5916 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5917 * alpha-tdep.h: Include osabi.h.
5918 (alpha_abi): Remove.
5919 (gdbarch_tdep): Use generic OS ABI framework.
5920 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5921 gdbarch_register_osabi.
5922 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5923 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5924 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5926 * Makefile.in (sh_tdep_h): Add osabi.h.
5927 * sh-tdep.h (sh_osabi): Remove.
5928 (gdbarch_tdep): Use generic OS ABI framework.
5929 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5930 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5931 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5932 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5934 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5935 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5936 gdbarch_register_osabi.
5937 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5938 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5939 (get_elfosabi): Rename to...
5940 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5941 ABI framework support routines.
5942 (arm_gdbarch_init): Use generic OS ABI framework.
5943 (arm_dump_tdep): Likewise.
5944 (_initialize_arm_tdep): Likewise.
5945 * arm-tdep.h: Include osabi.h.
5947 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5949 (arm_gdbarch_register_os_abi): Remove prototype.
5950 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5951 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5953 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5954 * mips-tdep.c: Include osabi.h.
5955 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5958 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5960 * h8300-tdep.c: Fix formatting.
5962 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5964 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5965 printing vector registers.
5967 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5969 From Fernando Nasser:
5970 * remote.c (remote_async_open_1): Re-throw the exception when the
5972 (remote_cisco_open): Ditto.
5973 (remote_open_1): Ditto.
5975 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5977 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5978 (remote_start_remote): Add uiout parameter. Pass through to
5979 remote_start_remote_dummy.
5980 (remote_open_1): Use catch_exception instead of catch_errors.
5981 (remote_async_open_1): Ditto.
5982 (remote_cisco_open): Ditto.
5984 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5986 * remote.c (remote_start_remote): Replace PTR with void pointer.
5987 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5990 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5992 * gdb_indent.sh: Allow the script to be run in the sim directory.
5994 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5996 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5997 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5999 * corelow.c (core_open): Only call set_gdbarch_from_file if
6002 2002-05-17 Andrey Volkov <avolkov@transas.com>
6004 * h8300-tdep.c: Add support of EXR register
6005 * config/h8300/tm-h8300.h: Ditto.
6007 2002-05-17 Andrey Volkov <avolkov@transas.com>
6009 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6011 2002-05-17 Andrey Volkov <avolkov@transas.com>
6013 * h8300-tdep.c: Change literal regnums to REGNO.
6015 2002-05-17 Jim Blandy <jimb@redhat.com>
6017 * NEWS: Note addition of macro support.
6019 Expand preprocessor macros in C expressions.
6020 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6021 (scan_macro_expansion, scanning_macro_expansion,
6022 finished_macro_expansion): New function declarations.
6023 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6024 variable declarations.
6025 * parser-defs.h (expression_context_pc): New declaration.
6026 * parse.c (expression_context_pc): New variable.
6027 (parse_exp_1): Set expression_context_pc, as well as
6028 expression_context_block.
6029 * c-exp.y (yylex): If we're not already reading the result of a
6030 macro expansion, try to macro-expand the next token. When we're
6031 done scanning a macro expansion, switch back to the mainline text.
6032 Commas and `if's in a macro's expansion don't terminate the input.
6033 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6034 (macro_original_text, macro_expanded_text,
6035 expression_macro_lookup_func, expression_macro_lookup_baton): New
6037 (scan_macro_expansion, scanning_macro_expansion,
6038 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6039 c_preprocess_and_parse): New functions.
6040 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6041 c_preprocess_and_parse, instead of c_parse.
6042 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6043 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6045 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6047 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6048 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6049 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6051 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6053 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6055 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6057 * Makefile.in (sh_tdep_h): Define and use.
6058 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6059 register enum): Move to...
6060 * * sh-tdep.h: ...here.
6061 * sh-tdep.c: Include sh-tdep.h.
6062 * sh3-rom.c: Likewise.
6063 * shnbsd-tdep.c: Likewise.
6065 2002-05-16 Michael Snyder <msnyder@redhat.com>
6067 * arm-tdep.c: Spelling fix in comment.
6069 2002-05-16 Jim Blandy <jimb@redhat.com>
6071 Add commands for manually expanding macros and showing their
6073 * macrocmd.c, macroscope.c, macroscope.h: New files.
6074 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6075 (macroscope_h): New variable.
6076 (HFILES_NO_SRCDIR): Add macroscope.h.
6077 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6078 (macroscope.o, macrocmd.o): New rules.
6080 Teach the Dwarf 2 reader to read macro information.
6081 * dwarf2read.c: #include "macrotab.h".
6082 (dwarf_macinfo_buffer): New variable.
6083 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6085 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6086 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6087 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6088 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6089 dwarf2_macro_spaces_in_definition): New complaints.
6090 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6091 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6092 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6093 the partial symbol table.
6094 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6095 from what's recorded in the partial symbol table.
6096 (read_file_scope): If the compilation unit has a
6097 `DW_AT_macro_info' attribute, read its macro information.
6098 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6100 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6103 * ser-tcp.c: Don't include <netinet/udp.h>.
6105 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6107 * MAINTAINERS: Update my email address.
6109 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6111 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6112 include file of the same name.
6114 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6116 * configure.tgt: Mark v850 as multi-arched.
6117 * config/v850/tm-v850.h: Remove file.
6118 * config/v850/v850.mt: Eliminate TM_FILE.
6120 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6122 * v850-tdep.c: Full multi-arch.
6123 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6124 Define GDB_MULTI_ARCH to 2.
6126 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6128 * p-exp.y (current_type): New static variable.
6129 Carries the type of the expression at the position that is parsed.
6130 (push_current_type, pop_current_type): Two new functions. Used
6131 to store/restore current_type in expression on specific tokens.
6132 (search_field): New static variable. Set to one after parsing a point
6133 as at that point only a FIELDNAME token should be searched.
6134 (FIELDNAME): New token. After a point only a token belonging to
6135 current_type type definition is allowed.
6136 (all over token rules): reset and change current_type according
6138 (exp '[' rule): insert implicit array index field if
6139 exp is a pascal string type.
6141 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6143 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6144 frame info. Use frame_info's saved_regs instead of matching member
6145 in extra_frame_info throughout.
6146 (v850_frame_init_saved_regs): New function.
6147 (v850_init_extra_frame_info): Move most functionality into
6148 v850_frame_init_saved_regs().
6149 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6150 (v850_frame_find_saved_regs): Remove declaration.
6151 (FRAME_FIND_SAVED_REGS): Remove definition.
6152 (v850_frame_init_saved_regs): Add declaration.
6153 (FRAME_INIT_SAVED_REGS): Add definition.
6155 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6157 * v850-tdep.c: Begin multi-arch'ing v850.
6158 (v850_target_architecture_hook): Remove function.
6159 (v850_gdbarch_init): New function. Add code previously in
6160 v850_target_architecture_hook().
6161 (_initialize_v850_tdep): Don't set target_architecture_hook.
6162 Call register_gdbarch_init() instead.
6164 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6166 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6167 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6168 (fixup_class_method_type): Likewise.
6170 2002-05-15 Jim Blandy <jimb@redhat.com>
6172 Add macro structures to GDB's symbol tables. Nobody puts anything
6174 * symtab.h (struct symtab): New member: `macro_table'.
6175 * buildsym.h (pending_macros): New global variable.
6176 * buildsym.c: #include "macrotab.h".
6177 (buildsym_init): Initialize `pending_macros'.
6178 (end_symtab): If we found macro information while reading a CU's
6179 debugging info, do build a symtab structure for it. Make the
6180 symtab point to the macro information, and clear the
6181 `pending_macros' pointer which held it while we were reading the
6183 (really_free_pendings): Free any pending macro table.
6184 * objfiles.h (struct objfile): New member: `macro_cache'.
6185 * objfiles.c (allocate_objfile): Set allocate and free functions
6186 for the macro cache's objstack.
6187 (free_objfile): Empty the macro cache's obstack.
6188 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6189 set new allocate and free functions for it.
6190 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6191 free functions for the macro cache's objstack. (Why is this
6192 function building its own objfile?)
6193 * symmisc.c (print_objfile_statistics): Print statistics on the
6195 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6197 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6199 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6200 (REGISTER_U_ADDR): Delete definition.
6201 (arm_register_u_addr): Delete declaration.
6203 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6205 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6206 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6208 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6210 * regcache.c (register_valid): Revise comments refering to "Not
6211 available" and "unavailable".
6212 * frame.c (frame_register_read): Ditto.
6213 * findvar.c (value_of_register): Ditto.
6215 2002-05-15 Andrew Cagney <cagney@redhat.com>
6217 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6218 (remote-sim.o): Update dependencies.
6219 (d10v-tdep.o): Specify dependencies.
6220 (sim_d10v_h): Define.
6222 2002-05-14 Jim Blandy <jimb@redhat.com>
6224 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6225 * macrotab.c (macro_lookup_inclusion, find_definition,
6226 new_macro_table): Same.
6228 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6229 not `! strcmp ()'. This is a dubious improvement.
6230 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6232 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6233 although it's not necessary, to avoid a warning.
6235 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6237 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6238 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6239 TYPE_INSTANCE_FLAGS.
6240 (struct main_type): New.
6241 (struct type): Move most members to struct main_type. Change
6242 cv_type and as_type to new type_chain member. Add instance_flags.
6243 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6244 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6245 (finish_cv_type): Remove prototype.
6246 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6248 (alloc_type_instance): New function.
6249 (smash_type): New function.
6250 (make_pointer_type, make_reference_type, make_function_type)
6251 (smash_to_member_type, smash_to_method_type): Call smash_type.
6252 (make_qualified_type): New function.
6253 (make_type_with_address_space): Call make_qualified_type.
6254 (make_cv_type): Likewise.
6255 (finish_cv_type): Remove unnecessary function.
6256 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6257 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6258 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6259 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6260 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6261 * hpread.c (hpread_read_struct_type): Likewise.
6262 * stabsread.c (read_struct_type): Likewise.
6264 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6266 * configure.tgt: Add a catch all sh* target, for cases like
6267 sh[2,3,4]-elf and sh-hms.
6269 2002-05-14 Keith Seitz <keiths@redhat.com>
6271 * event-loop.c (create_file_handler): Don't do anything but
6272 update data when we are given a fd which we are already
6275 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6277 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6278 (update_context): Use __func__ in warnings.
6280 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6282 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6283 and tcp_close to net_open and net_close.
6284 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6285 using UDP if requested. Don't try to disable Nagle on UDP
6287 * remote.c (remote_serial_open): New function. Warn about UDP.
6288 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6290 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6292 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6294 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6296 * configure.tgt: Remove sh-hms target.
6297 * MAINTAINERS: Don't list sh-hms as a separate target.
6299 2002-05-13 Jim Blandy <jimb@redhat.com>
6301 Add first preprocessor macro-expansion files.
6302 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6303 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6304 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6305 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6306 (COMMON_OBS): Add macrotab.o, macroexp.o.
6307 (macroexp.o, macrotab.o): New rules.
6309 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6311 * config/m88k/tm-m88k.h: Update copyright.
6312 (m88k_target_write_pc): Declare
6313 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6314 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6315 (SHIFT_INST_REGS): Update definition.
6316 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6317 using old definition of TARGET_WRITE_PC.
6318 * regcache.c (generic_target_write_pc): Delete code handling
6320 * gdbarch.sh (NNPC_REGNUM): Delete.
6321 * gdbarch.h, gdbarch.c: Regenerate.
6323 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6325 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6328 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6330 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6331 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6332 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6334 * c-typeprint.c (cp_type_print_method_args): Likewise.
6335 (c_type_print_args): Likewise.
6336 * d10v-tdep.c (d10v_push_arguments): Likewise.
6337 (d10v_extract_return_value): Likewise.
6338 * expprint.c (print_subexp): Likewise.
6339 * gdbtypes.c (lookup_primitive_typename): Likewise.
6340 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6341 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6342 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6343 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6344 (TYPE_VECTOR): Likewise.
6345 * hpread.c (hpread_read_struct_type)
6346 (fix_static_member_physnames, fixup_class_method_type)
6347 (hpread_type_lookup): Likewise.
6348 * mdebugread.c (parse_symbol, parse_type): Likewise.
6349 * p-lang.c (is_pascal_string_type): Likewise.
6350 * valops.c (hand_function_call): Likewise.
6351 * x86-64-tdep.c (classify_argument): Likewise.
6353 * hpread.c (hpread_read_function_type)
6354 (hpread_read_doc_function_type): Call replace_type.
6355 * dstread.c (create_new_type): Delete.
6356 (decode_dst_structure, process_dst_function): Call alloc_type.
6357 Use type access macros.
6359 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6361 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6362 the're not supported by the current architecture.
6363 (i387_fill_fxsave): Likewise.
6365 2002-05-12 Fred Fish <fnf@redhat.com>
6367 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6368 sect_index_xxx members to index the first slot in section_offsets
6369 if all of the section_offsets are zero.
6371 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6373 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6374 checked in with last change.
6376 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6378 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6379 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6382 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6384 * Makefile.in: Update dependencies.
6386 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6388 * language.c (local_hex_string_custom): Simplify. Do not depend
6389 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6391 * memattr.c (mem_info_command): Replace calls to
6392 longest_local_hex_string and longest_local_hex_string_custom.
6393 * buildsym.c (make_blockvector): Ditto.
6394 * solib.c (info_sharedlibrary_command): Ditto.
6395 * tracepoint.c (tracepoints_info): Ditto.
6396 * symtab.c (print_msymbol_info): Ditto.
6398 * language.c (local_hex_string): Delete.
6399 (local_hex_string_custom): Delete.
6400 (longest_local_hex_string): Rename to local_hex_string.
6401 (longest_local_hex_string_custom): Rename to
6402 local_hex_string_custom.
6403 * language.h (local_hex_string): Change parameter type to LONGEST.
6404 (local_hex_string_custom): Ditto.
6405 (longest_local_hex_string): Delete declaration.
6406 (longest_local_hex_string_custom): Ditto.
6408 * solib.c: Update copyright.
6409 * memattr.c: Update copyright.
6411 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6413 * arch-utils.h (legacy_register_to_value): Declare.
6414 (legacy_value_to_register): Declare.
6415 (legacy_convert_register_p): Declare.
6416 * arch-utils.c (legacy_register_to_value): New function.
6417 (legacy_value_to_register): New function.
6418 (legacy_convert_register_p): New function.
6420 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6421 (VALUE_TO_REGISTER): Define.
6422 (CONVERT_REGISTER_P): Define.
6423 * gdbarch.h, gdbarch.c: Regenerate.
6425 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6427 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6430 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6431 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6433 * Makefile.in: Update dependencies for valops.c.
6434 * valops.c: Include "gdb_assert.h".
6435 (typecmp): Skip THIS parameter to methods.
6436 (find_method_list): Remove static_memfuncp argument,
6437 update callers. Check for stub methods.
6438 (find_value_oload_method_list): Don't set *static_memfuncp.
6439 (find_overload_match): Don't check for stub methods. Assert
6440 that methods are not stubbed. Handle static methods.
6441 (value_find_oload_method_list): Remove static_memfuncp argument.
6442 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6443 to the argument list for static stub methods.
6444 * value.h (value_find_oload_method_list): Update prototype.
6446 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6448 * arch-utils.h (generic_register_size): Declare.
6449 (generic_register_raw_size, generic_register_virtual_size): Delete
6451 * arch-utils.c (generic_register_raw_size): Delete.
6452 (generic_register_size): New function.
6453 (generic_register_virtual_size): Delete.
6455 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6456 default generic_register_size.
6457 * gdbarch.h, gdbarch.c: Re-generate.
6459 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6460 register_virtual_size.
6461 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6462 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6464 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6466 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6467 * gdbarch.h, gdbarch.c: Regenerate.
6468 * gnu-v3-abi.c: Update copyright.
6469 (vtable_address_point_offset): Update.
6470 (gnuv3_rtti_type): Update.
6471 (gnuv3_baseclass_offset): Update.
6472 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6473 (init_fetch_link_map_offsets): Update.
6474 * remote.c (get_remote_state): Update.
6476 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6478 * TODO: Remove value_headof/value_from_vtable_info comment.
6479 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6480 * values.c (value_headof, value_from_vtable_info): Delete.
6481 * value.h (value_from_vtable_info): Delete prototype.
6483 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6485 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6486 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6488 (gdb_assert_h): Define.
6489 (gdb_wait_h): Define.
6490 (gdb_regex_h): Define.
6492 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6494 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6495 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6497 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6499 * nbsd-tdep.c: Fix comment.
6501 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6503 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6504 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6505 (nbsd-tdep.o): New dependency list.
6506 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6508 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6509 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6510 * nbsd-tdep.c: New file.
6511 * nbsd-tdep.h: New file.
6512 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6514 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6515 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6516 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6517 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6519 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6521 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6522 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6523 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6524 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6525 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6526 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6528 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6530 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6531 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6532 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6533 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6534 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6535 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6536 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6538 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6540 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6541 fetch_elfcore_registers to...
6542 * i386nbsd-tdep.c: ...here.
6543 (i386nbsd_use_struct_convention): Rename to...
6544 (i386nbsd_aout_use_struct_convention): ...this.
6545 (i386nbsd_supply_reg): New function.
6546 (i386nbsd_fill_reg): New function.
6547 (fetch_core_registers): Use i386nbsd_supply_reg.
6548 (fetch_elfcore_registers): Likewise.
6549 (_initialize_i386nbsd_tdep): New function.
6550 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6551 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6552 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6553 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6554 (i386nbsd_aout_use_struct_convention): ...this.
6556 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6558 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6559 (store_inferior_registers): Use shnbsd_fill_reg.
6560 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6561 sh_nbsd_supply_register): Collapse into...
6562 (shnbsd_supply_reg): ...this.
6563 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6564 (shnbsd_fill_reg): ...this.
6565 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6566 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6567 (fetch_core_registers): Use shnbsd_supply_reg.
6568 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6569 (sh_nbsd_core_fns): Rename to...
6570 (shnbsd_core_fns): ...this.
6571 (sh_nbsd_elfcore_fns): Rename to...
6572 (shnbsd_elfcore_fns): ...this.
6573 (sh_nbsd_init_abi): Rename to...
6574 (shnbsd_init_abi): ...this.
6575 (_initialize_sh_nbsd_tdep): Rename to...
6576 (_initialize_shnbsd_tdep): ...this.
6577 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6578 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6579 sh_nbsd_fill_register): Remove prototypes.
6580 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6582 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6584 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6585 (i387-nat.o): Delete dependency list.
6586 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6587 (x86-64-linux-nat.o): Likewise.
6588 * i387-nat.c: Delete file, moving contents to...
6589 * i387-tdep.c: ...here.
6590 * i387-nat.h: Rename...
6591 * i387-tdep.h: ...to this.
6592 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6593 * i386-linux-nat.c: Likewise.
6594 * i386bsd-nat.c: Likewise.
6595 * i386gnu-nat.c: Likewise.
6596 * i386nbsd-nat.c: Likewise.
6597 * i386v4-nat.c: Likewise.
6598 * x86-64-linux-nat.c: Likewise.
6599 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6600 * config/i386/go32.mh (NATDEPFILES): Likewise.
6601 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6602 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6603 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6604 * config/i386/linux.mh (NATDEPFILES): Likewise.
6605 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6606 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6607 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6608 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6610 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6612 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6613 (alphanbsd-nat.o): Remove dependency list.
6614 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6615 * alphanbsd-nat.c: Delete. Contents moved to...
6616 * alphanbsd-tdep.c: ...here.
6617 (_initialize_alphanbsd_tdep): Register core functions.
6618 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6620 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6622 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6623 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6624 (alphanbsd-nat.o): Likewise.
6625 (alphabsd-tdep.o): New dependency list.
6626 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6627 (fill_gregset): Use alphabsd_fill_reg.
6628 (supply_fpregset): Use alphabsd_supply_fpreg.
6629 (fill_fpregset): Use alphabsd_fill_fpreg.
6630 (fetch_inferior_registers): Use struct reg and struct fpreg
6631 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6632 and alphabsd_supply_fpreg.
6633 (store_inferior_registers): Use struct reg and struct fpreg
6634 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6635 and alphabsd_fill_fpreg.
6636 * alphabsd-tdep.c: New file.
6637 * alphabsd-tdep.h: New file.
6638 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6639 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6640 alphabsd_supply_fpreg.
6641 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6642 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6644 2002-05-11 Eric Christopher <echristo@redhat.com>
6646 * mips-tdep.c (mips_double_register_type): Fix thinko.
6647 (mips_single_register_type): Ditto.
6648 * MAINTAINERS: Add self.
6650 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6652 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6653 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6654 right thing on architectures with different endianness and/or
6657 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6659 From Christian Limpach <chris@Pin.LU>
6660 * configure.in: Change sed expression which comments out
6661 NATDEPFILES to also comment out continuation lines.
6662 * configure: Regenerate.
6664 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6666 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6669 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6671 * sh-tdep.c: Include correct file.
6673 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6675 New support for sh64-elf (sh5) target.
6677 * configure.tgt: For sh64-elf target, default to sh-elf.
6679 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6680 (struct gdbarch_tdep): Add new fields for new registers and ABI
6683 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6684 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6685 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6686 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6687 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6688 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6689 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6690 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6691 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6692 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6693 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6694 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6695 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6696 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6697 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6698 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6699 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6700 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6701 sign_extend, sh64_nofp_frame_init_saved_regs,
6702 sh64_init_extra_frame_info, sh64_get_saved_register,
6703 sh64_extract_struct_value_address, sh64_pop_frame,
6704 sh64_push_arguments, sh64_extract_return_value,
6705 sh64_store_return_value, sh64_show_media_regs,
6706 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6707 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6708 sh_sh64_register_virtual_type,
6709 sh_sh64_register_convert_to_virtual,
6710 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6711 sh64_register_read, sh64_pseudo_register_write,
6712 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6713 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6714 sh64_do_pseudo_register, sh_compact_do_registers_info,
6715 sh64_do_registers_info, sh_gdbarch_init): New functions.
6717 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6719 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6721 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6723 * linespec.c (decode_line_1): Check for a double quote after
6724 a filename correctly.
6726 2002-05-10 Jim Blandy <jimb@redhat.com>
6728 Properly track the size of the current objfile's .debug_line section.
6729 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6730 (DWARF_LINE_SIZE): New macro.
6731 (dwarf2_build_psymtabs_hard): Record the line section's size in
6732 the partial symbol table.
6733 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6736 2002-05-10 Petr Sorfa <petrs@caldera.com>
6738 * ia64-tdep.c: Handle breakpoints on L instruction type
6739 in MLX instruction bundle by moving the breakpoint to
6740 the third slot (X instruction type) as L holds only data.
6742 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6744 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6745 (process_one_symbol): Complain about discarding local symbols
6746 due to a misplaced N_LBRAC entry.
6748 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6750 From Daniel Berlin <dan@cgsoftware.com>
6751 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6752 decrease the depth we are at, in the case of templates.
6754 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6756 * mips-tdep.c (mips_float_register_type): New function.
6757 (mips_double_register_type): New function.
6758 (mips_print_register): Use them.
6759 (do_fp_register_row): Likewise.
6761 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6763 * signals/signals.c (signals): Remove conditional compilation around
6764 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6765 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6767 2002-05-09 Michael Snyder <msnyder@redhat.com>
6769 * remote-rdp.c (remote_rdp_can_run): Remove.
6771 2002-05-09 Tom Tromey <tromey@redhat.com>
6773 * jv-valprint.c (java_val_print): Handle `char' as a special case
6776 2002-05-09 Michael Snyder <msnyder@redhat.com>
6778 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6779 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6780 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6781 str r(0123),[sp,#nn].
6782 (arm_skip_prologue): Ditto. Also make disassembly
6783 order-independent by placing it in a loop.
6785 2002-05-06 Michael Snyder <msnyder@redhat.com>
6787 * stabsread.c (read_type): Add recognition for new attribute:
6788 "@V;" means that an array type is actually a vector.
6789 This is analogous to the vector flag that's been added to dwarf2.
6791 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6793 * i386-tdep.h (i386_abi): New enum.
6794 (struct gdbarch_tdep): Replace os_ident member with abi.
6795 (i386_gdbarch_register_os_abi): New prototype.
6796 * i386-tdep.c (i386_abi_names): New array.
6797 (process_note_abi_tag_sections): Removed.
6798 (process_note_sections): New function.
6799 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6800 (struct i386_abi_handler): New struct.
6801 (i386_abi_handler_list): New variable.
6802 (i386_gdbarch_register_os_abi): New function.
6803 (i386_gdbarch_init): Adapt for the changes given above.
6805 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6807 * gregset.h: Say "GNU/Linux".
6809 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6811 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6812 (build_gdbtypes): Build builtin_type_v2_float.
6813 (_initialize_gdbtypes): Register new builtin type.
6815 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6817 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6818 (clear_gdbarch_swap): New function.
6819 (initialize_non_multiarch): Call.
6820 (gdbarch_update_p): Before calling init(), swap out and clear the
6821 existing architecture.
6822 * gdbarch.c: Regenerate.
6824 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6826 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6829 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6831 * sh-nbsd-nat.c: Rename to...
6832 * shnbsd-nat.c: ...this.
6833 * sh-nbsd-tdep.c: Rename to...
6834 * shnbsd-tdep.c: ...this.
6835 * sh-nbsd-tdep.h: Rename to...
6836 * shnbsd-tdep.h: ...this.
6837 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6838 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6840 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6842 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6843 concatenation for command help messages.
6845 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6847 * NEWS: Note new sh*-*-netbsdelf* configuration.
6848 * configure.host: Set gdb_host_cpu to sh for all sh*.
6849 (sh*-*-netbsdelf*): New host.
6850 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6851 (sh*-*-netbsdelf*): New target.
6852 * sh-nbsd-nat.c: New file.
6853 * sh-nbsd-tdep.c: New file.
6854 * sh-nbsd-tdep.h: New file.
6855 * config/sh/nbsd.mh: New file.
6856 * config/sh/nbsd.mt: New file.
6857 * config/sh/nm-nbsd.h: New file.
6858 * config/sh/tm-nbsd.h: New file.
6860 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6862 * sh-tdep.c (sh_osabi_names): Declare.
6863 (process_note_abi_tag_sections): New function.
6864 (get_elfosabi): Ditto.
6865 (sh_gdbarch_register_os_abi): Ditto.
6866 (sh_dump_tdep): Ditto.
6867 _initialize_sh_tdep): Use gdbarch_register to register
6868 sh_gdbarch_init and sh_dump_tdep.
6869 * config/sh/tm-sh.h (sh_osabi): Declare.
6870 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6872 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6874 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6875 (thumb_scan_prologue): Ditto.
6876 (arm_find_callers_reg): Ditto.
6877 (arm_frame_chain): Ditto.
6878 (arm_init_extra_frame_info): Ditto.
6879 (arm_frame_saved_pc): Ditto.
6880 (arm_pop_frame): Ditto.
6881 (arm_push_return_address): New function.
6882 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6883 call_dummy_location, call_dummy_breakpoint_offset_p,
6884 call_dummy_breakpoint_offset, call_dummy_p,
6885 call_dummy_stack_adjust_p, call_dummy_words,
6886 sizeof_call_dummy_words, call_dummy_start_offset,
6887 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6888 call_dummy_address, push_return_address and push_dummy_frame for
6889 generic dummy frames.
6891 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6893 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6894 size computation for alloca.
6895 (sh_fp_frame_init_saved_regs): Likewise.
6897 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6899 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6900 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6901 * arm-tdep.c (arm_store_return_value): Use them.
6902 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6903 * remote-rdp.c (remote_rdp_fetch_register): Use
6904 ARM_MAX_REGISTER_RAW_SIZE.
6905 (remote_rdp_store_register): Likewise.
6907 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6909 * dwarf2cfi.c: Code cleanup, removed unused variables,
6910 added default labels to switch {} statements.
6911 * x86-64-tdep.c: Ditto.
6912 * x86-64-linux-nat.c: Ditto.
6914 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6916 * solib.h: Protect against multiple inclusion.
6918 2002-05-06 Jim Blandy <jimb@redhat.com>
6920 Add first preprocessor macro-expansion files.
6921 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6922 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6923 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6924 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6925 (COMMON_OBS): Add macrotab.o, macroexp.o.
6926 (macroexp.o, macrotab.o): New rules.
6928 Separate the job of reading the line number info statement program
6929 header (...expialidocious) out into its own function.
6930 * dwarf2read.c (struct line_head, struct filenames, struct
6931 directories): Replace with...
6932 (struct line_header): New structure, containing the full
6933 contents of the statement program header, including the
6934 include directory and file name tables.
6935 (read_file_scope): If we have line number info, instead of just
6936 calling dwarf_decode_lines to do all the work, call
6937 dwarf_decode_line_header first to get a `struct line_header'
6938 containing the data in the statement program header, and then
6939 pass that to dwarf_decode_lines, which will pick up where that
6940 left off. Be sure to clean up the `struct line_header' object.
6941 (dwarf_decode_line_header, free_line_header, add_include_dir,
6942 add_file_name): New functions.
6943 (dwarf_decode_lines): Move all the code to read the statement
6944 program header into dwarf_decode_line_header. Take the line
6945 header it built as the first argument, instead of the offset to
6946 the compilation unit's line number info. Use the new `struct
6947 line_header' type instead of the old structures. No need to do
6948 cleanups here now, since we don't allocate anything.
6949 (dwarf2_statement_list_fits_in_line_number_section,
6950 dwarf2_line_header_too_long): New complaints.
6952 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6954 * gdbtypes.c (init_vector_type): New function.
6955 (build_builtin_type_vec128): Simplify the representation of SIMD
6957 (build_gdbtypes): Initialize new builtin vector types.
6958 (_initialize_gdbtypes): Register new vector types with gdbarch.
6959 (builtin_type_v4_float, builtin_type_v4_int32,
6960 builtin_type_v8_int16, builtin_type_v16_int8,
6961 builtin_type_v2_int32, builtin_type_v4_int16,
6962 builtin_type_v8_int8): New (renamed) SIMD types.
6964 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6966 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6967 (i387_fill_fxsave): Likewise.
6969 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6971 * alpha-tdep.c (alpha_extract_return_value): Don't use
6972 non-constant array size in prototype.
6974 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6976 From Brian Taylor <briant at model dot com>:
6977 * ui-out.c (ui_out_field_core_addr): Use the function
6978 longest_local_hex_string_custom'to format addresses > 32 bits
6981 * ui-out.c (ui_out_field_core_addr): Update comment.
6983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6985 * stack.c (select_and_print_frame): Make static. Delete the
6987 (func_command): Update call.
6988 (select_frame_command): Delete code computing the frame level.
6989 * frame.h (select_and_print_frame): Delete declaration.
6991 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6993 * sparc-tdep.c (sparc_get_saved_register): Comment why
6994 get_prev_frame call is safe.
6996 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6998 * frame.h (select_frame): Delete level parameter.
6999 * stack.c (select_frame): Update. Use frame_relative_level to
7000 obtain the frame's level.
7001 (select_and_print_frame): Update call.
7002 (select_frame_command): Ditto.
7003 (up_silently_base): Ditto.
7004 (down_silently_base): Ditto.
7005 * ocd.c (ocd_start_remote): Ditto.
7006 * remote-rdp.c (remote_rdp_open): Ditto.
7007 * remote-mips.c (mips_initialize): Ditto.
7008 (common_open): Ditto.
7009 * remote-e7000.c (e7000_start_remote): Ditto.
7010 * m3-nat.c (select_thread): Ditto.
7011 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7012 (child_get_current_exception_event): Ditto.
7013 * varobj.c (varobj_create): Ditto.
7014 (varobj_update): Ditto.
7015 (c_value_of_root): Ditto.
7016 * tracepoint.c (finish_tfind_command): Ditto.
7017 * corelow.c (core_open): Ditto.
7018 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7019 * thread.c (info_threads_command): Ditto.
7020 (switch_to_thread): Ditto.
7021 * infrun.c (normal_stop): Ditto.
7022 (restore_selected_frame): Ditto.
7023 (restore_inferior_status): Ditto.
7024 * breakpoint.c (insert_breakpoints): Ditto.
7025 (watchpoint_check): Ditto.
7026 (bpstat_stop_status): Ditto.
7027 (do_enable_breakpoint): Ditto.
7028 * blockframe.c (flush_cached_frames): Ditto.
7029 (reinit_frame_cache): Ditto.
7031 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7033 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7036 2002-05-04 Jim Blandy <jimb@redhat.com>
7038 * gdbtypes.c (replace_type): Doc fix.
7040 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7042 * valprint.c (strcat_longest): Delete commented out function.
7045 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7047 * MAINTAINERS: Mark a29k as deleted.
7048 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7049 Move new configurations to the top.
7050 * configure.tgt: Remove a29k.
7051 * config/a29k/tm-vx29k.h: Delete.
7052 * config/a29k/vx29k.mt: Delete.
7053 * config/a29k/tm-a29k.h: Delete.
7054 * config/a29k/a29k-udi.mt: Delete.
7055 * config/a29k/a29k.mt: Delete.
7056 * a29k-tdep.c: Delete.
7057 * remote-udi.c: Delete.
7058 * remote-mm.c: Delete.
7059 * remote-eb.c: Delete.
7060 * remote-adapt.c: Delete.
7061 * Makefile.in: Remove obsolete code.
7062 * config/s390/s390x.mt: Ditto.
7063 * config/s390/s390.mt: Ditto.
7064 * config/sparc/sparclynx.mh: Ditto.
7065 * config/sparc/linux.mh: Ditto.
7066 * config/pa/hppaosf.mh: Ditto.
7067 * config/pa/hppabsd.mh: Ditto.
7068 * config/ns32k/nbsd.mt: Ditto.
7069 * config/mips/vr5000.mt: Ditto.
7070 * config/m68k/sun3os4.mh: Ditto.
7071 * config/m68k/nbsd.mt: Ditto.
7072 * config/m68k/m68klynx.mh: Ditto.
7073 * config/m32r/m32r.mt: Ditto.
7074 * config/i386/x86-64linux.mt: Ditto.
7075 * config/i386/nbsdelf.mt: Ditto.
7076 * config/i386/nbsd.mt: Ditto.
7077 * config/i386/i386lynx.mh: Ditto.
7079 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7081 * target.c (debug_print_register): New function. Handle oversize
7083 (debug_to_fetch_registers): Call.
7084 (debug_to_store_registers): Call.
7086 2002-05-03 Jim Blandy <jimb@redhat.com>
7088 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7089 (read_type): Doc fix.
7090 * gdbtypes.c (replace_type): Doc fix.
7092 * stabsread.c (multiply_defined_struct): New complaint.
7093 (read_struct_type): If the type we were passed isn't empty, or
7094 incomplete, don't read the new struct type into it; complain,
7095 and return the original type unchanged. Take a new `type_code'
7096 argument, which is the type code for the new type.
7097 (read_type): Rather than storing the type's type code here, pass
7098 it as an argument to read_struct_type, and let that take care of
7099 storing it. That way, we don't overwrite the original type code,
7100 so read_struct_type can use it to decide whether we're overwriting
7101 something we shouldn't.
7102 (complain_about_struct_wipeout): New function.
7104 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7106 * gdbarch.sh: Assert that gdbarch is non-NULL.
7107 * gdbarch.c: Regenerate.
7109 2002-05-03 Jason Merrill <jason@redhat.com>
7111 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7114 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7116 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7117 (x86_64_dwarf2gdb_regno_map_length),
7118 (x86_64_dwarf2_reg_to_regnum): Added.
7119 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7120 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7121 (_initialize_x86_64_tdep): Synced with the change above.
7122 (x86_64_skip_prologue): Reformulated message.
7124 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7126 * f-exp.y: Also use new prev_lexptr variable
7127 to improve error reporting. Based on Michael Snyder
7128 2002-04-24 dated patch to c-exp.y.
7129 * jv-exp.y: Likewise.
7130 * m2-exp.y: Likewise.
7132 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7134 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7135 we are dealing with vectors.
7137 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7139 * config/m68k/tm-nbsd.h: Obvious fix,
7140 correct machine name.
7142 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7144 * p-typeprint.c (pascal_type_print_base): Add support
7145 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7147 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7149 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7150 for fondamental pascal 'char' type.
7152 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7154 * p-lang.h (is_pascal_string_type): Declaration changed,
7155 new sixth argument of type char ** added.
7156 * p-lang.c (is_pascal_string_type): Implementation
7157 changed. Args length_pos, length_size, string_pos, char_size
7158 can now be NULL. New argument arrayname set to the field
7159 name of the char array. Return value set to char array
7160 field index plus one.
7161 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7162 is_pascal_string_type function.
7164 2002-05-02 Andrew Cagney <cagney@redhat.com>
7166 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7167 <cagney@redhat.com> change.
7168 * gdbarch.c: Regenerate.
7170 2002-05-02 Andrew Cagney <cagney@redhat.com>
7172 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7173 before probing for a new one. Detect errorenous gdbarch_init
7175 * gdbarch.c: Regenerate.
7177 2002-05-01 Andrew Cagney <cagney@redhat.com>
7179 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7180 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7181 * config/v850/tm-v850.h: Ditto. Update copyright.
7183 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7185 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7188 2002-04-30 Michael Snyder <msnyder@redhat.com>
7190 * arm-tdep.c: Whitespace clean-ups.
7191 (arm_skip_prologue): Fix thinko; two lines
7192 should have been removed as part of 4/24 change.
7194 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7196 * rs6000-tdep.c: Added comment describing how fpscr register
7197 numbers were chosen.
7199 2002-04-30 Michael Snyder <msnyder@redhat.com>
7201 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7203 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7205 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7206 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7207 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7209 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7211 From Louis Hamilton <hamilton@redhat.com>:
7212 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7213 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7214 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7215 not bfd-private xcoff data, to determine wordsize.
7216 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7218 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7220 GDB 5.2 released from 5.2 branch.
7222 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7224 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7225 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7226 (x86_64_register_info_table): Added comments with register numbers.
7228 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7230 * rs6000-tdep.c (rs6000_extract_return_value,
7231 rs6000_store_return_value): Handle returning vectors.
7232 (rs6000_gdbarch_init): Use
7233 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7234 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7236 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7238 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7239 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7241 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7243 * hpread.c (hpread_psymtab_to_symtab_1,
7244 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7245 with fprintf_unfiltered (gdb_stderr,...).
7247 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7249 * remote-array.c (printf_monitor, write_monitor,
7250 array_insert_breakpoint, array_remove_breakpoint ):
7251 Replace fprintf (stderr,...
7252 with fprintf_unfiltered (gdb_stderr,....
7253 * remote-es.c: Likewise.
7254 * remote-os9k.c: Likewise.
7255 * remote-st.c: Likewise.
7257 2002-04-28 Andreas Schwab <schwab@suse.de>
7259 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7260 linux-proc.o and gcore.o.
7262 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7264 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7265 code without frame pointers.
7267 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7269 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7272 2002-04-26 Ben Elliston <bje@redhat.com>
7274 * target.c (do_xfer_memory): Correct reference to the new option
7275 "trust-readonly-sections".
7277 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7279 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7280 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7281 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7283 (read_array_type): Record the fact that this array type is really a
7284 vector (i.e. are passed in by value).
7286 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7288 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7289 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7290 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7291 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7292 * alpha-linux-tdep.c: Include frame.h.
7293 (alpha_linux_sigcontext_addr): New function.
7294 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7295 alpha_linux_sigcontext_addr.
7296 * alpha-osf1-tdep.c: Include gdbcore.h.
7297 (alpha_osf1_sigcontext_addr): New function.
7298 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7299 alpha_osf1_sigcontext_addr.
7300 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7301 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7303 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7305 * stack.c (selected_frame_level):
7306 (select_frame): Do not set selected_frame_level.
7307 * frame.h (selected_frame_level): Delete declaration.
7309 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7311 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7312 convert_from_func_ptr-addr when AIX / PowerOpen.
7314 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7316 * valops.c (hand_function_call): Call
7317 generic_save_call_dummy_addr.
7318 * frame.h (generic_save_call_dummy_addr): Declare.
7319 * blockframe.c (struct dummy_frame): Add fields call_lo and
7321 (generic_find_dummy_frame): Check for PC in range call_lo to
7322 call_hi instead of entry_point_address.
7323 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7324 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7325 (generic_save_call_dummy_addr): New function.
7327 2002-04-24 David S. Miller <davem@redhat.com>
7329 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7330 sparc_skip_prologue.
7331 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7332 information to find prologue when possible.
7333 (sparc_prologue_frameless_p): Call examine_prologue directly.
7334 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7335 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7337 (SKIP_PROLOGUE): Likewise.
7339 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7341 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7342 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7343 indicate that the condition it was testing is always true.
7344 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7345 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7346 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7348 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7350 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7351 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7352 tdep->jb_pc and tdep->jb_elt_size.
7353 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7354 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7355 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7356 * alpha-nat.c (get_longjmp_target): Remove.
7357 (JB_ELEMENT_SIZE): Ditto.
7359 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7360 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7361 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7362 to alpha_get_longjmp_target.
7363 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7364 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7365 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7367 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7369 * README: Update to GDB 5.2.
7371 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7373 * gdbarch.sh (LC_ALL): Set to `c'.
7375 2002-04-25 Theodore A. Roth <troth@verinet.com>
7377 * avr-tdep.c: Ran through gdb_indent.sh.
7379 2002-04-25 Theodore A. Roth <troth@verinet.com>
7381 * MAINTAINERS: Add myself as AVR maintainer.
7382 * NEWS: Note new target avr.
7384 2002-04-25 Theodore A. Roth <troth@verinet.com>
7386 * Makefile.in: Add support for AVR target.
7387 * configure.tgt: Add support for AVR target.
7388 * avr-tdep.c: New file
7389 * config/avr/avr.mt: New file.
7391 2002-04-25 Theodore A. Roth <troth@verinet.com>
7393 * MAINTAINERS: Add myself to write-after-approval.
7395 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7397 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7398 with fprintf_unfiltered (gdb_stderr,....
7400 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7403 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7405 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7407 * p-exp.y: Also use new prev_lexptr variable
7408 to improve error reporting. Based on Michael Snyder
7409 2002-04-24 dated patch to c-exp.y.
7411 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7413 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7414 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7415 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7417 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7419 (FUNCTION_START_OFFSET): Remove.
7420 (BREAKPOINT): Ditto.
7422 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7424 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7427 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7429 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7430 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7431 alpha_linux_pc_in_sigtramp.
7432 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7433 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7434 alpha_osf1_pc_in_sigtramp.
7435 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7436 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7437 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7438 alphafbsd_pc_in_sigtramp.
7439 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7440 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7441 alphanbsd_pc_in_sigtramp.
7442 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7443 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7445 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7447 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7449 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7451 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7453 (alphanbsd-nat.o): New dependency list.
7454 (alphanbsd-tdep.o): Ditto.
7455 * NEWS: Note new native NetBSD/alpha configuration.
7456 * alphanbsd-nat.c: New file.
7457 * alphanbsd-tdep.c: Ditto.
7458 * configure.host (alpha*-*-netbsd*): New host.
7459 * configure.tgt (alpha*-*-netbsd*): New target.
7460 * config/alpha/nbsd.mh: New file.
7461 * config/alpha/nbsd.mt: Ditto.
7462 * config/alpha/nm-nbsd.h: Ditto.
7463 * config/alpha/tm-nbsd.h: Ditto.
7465 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7467 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7468 (alpha-osf1-tdep.o): New dependency list.
7469 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7470 and skip_sigtramp_frame members.
7471 * alpha-linux-tdep.c: Include gdbcore.h.
7472 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7473 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7474 * alpha-osf1-tdep.c: New file.
7475 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7477 (alpha_frame_past_sigtramp_frame): New function.
7478 (alpha_dynamic_sigtramp_offset): Ditto.
7479 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7480 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7481 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7482 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7483 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7484 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7485 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7486 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7487 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7488 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7489 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7490 to find_solib_trampoline_target.
7491 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7492 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7493 (SKIP_TRAMPOLINE_CODE): Remove.
7494 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7495 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7496 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7497 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7498 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7499 (PROC_SIGTRAMP_MAGIC): Ditto.
7500 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7501 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7502 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7503 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7504 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7506 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7508 * NEWS: Note that Alpha targets are now multi-arch.
7510 2002-04-24 Michael Snyder <msnyder@redhat.com>
7512 * parser-defs.h (prev_lexptr): New external variable.
7513 * parse.c (parse_exp_1): Set prev_lexptr to null before
7514 calling the language-specific parser.
7515 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7516 (yyerror): Use prev_lexptr in error reporting.
7518 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7520 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7521 * gregset.h: If FILL_FPXREGSET is defined, provide
7522 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7523 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7524 is defined, call fill_fpxregset.
7526 2002-04-24 Roland McGrath <roland@frob.com>
7528 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7529 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7530 (supply_gregset, supply_fpregset): New functions.
7532 * gnu-nat.c (gnu_find_memory_regions): New function.
7533 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7534 (gnu_xfer_memory): Add a cast.
7536 2002-04-24 Michael Snyder <msnyder@redhat.com>
7538 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7539 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7540 of argument regs ("str r(0123), [r11, #-nn"]).
7541 (arm_skip_prologue): Better handling for frameless functions.
7542 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7543 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7545 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7547 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7548 NUM_PSEUDO_REGS can be used.
7550 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7552 * arch-utils.h: Update copyright.
7554 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7555 * gdbarch.h, gdbarch.c: Re-generate.
7557 * inferior.h (IN_SIGTRAMP): Delete definition.
7558 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7559 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7561 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7562 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7563 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7564 (find_proc_framesize): Ditto.
7565 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7566 (alpha_init_extra_frame_info): Ditto.
7567 * infrun.c (handle_inferior_event): Ditto.
7568 (handle_inferior_event): Ditto.
7569 (check_sigtramp2): Ditto.
7570 * blockframe.c (create_new_frame): Ditto.
7571 (get_prev_frame): Ditto.
7572 * ppc-linux-tdep.c: Update comments.
7573 * i386-linux-tdep.c: Update comments.
7574 * breakpoint.c (bpstat_what): Update comment.
7576 2002-04-24 David S. Miller <davem@redhat.com>
7578 * i960-tdep.c (register_in_window_p): New function.
7579 (i960_find_saved_register): Use it instead of
7580 REGISTER_IN_WINDOW_P.
7581 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7583 * symtab.h (find_stab_function_addr): Kill extern.
7584 * minsyms.c (find_stab_function_addr): Remove from here...
7585 * dbxread.c: ... to here, and mark it static.
7587 2002-04-20 David S. Miller <davem@redhat.com>
7589 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7590 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7592 2002-04-21 David S. Miller <davem@redhat.com>
7594 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7595 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7596 (vx_write_register): Likewise.
7598 2002-04-23 J. Brobecker <brobecker@gnat.com>
7600 * source.c (is_regular_file): New function.
7601 (openp): Check wether file to open is a regular file
7602 to avoid opening directories.
7604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7606 * findvar.c (extract_signed_integer): Cast printf argument
7607 to suppress format warning.
7608 (extract_unsigned_integer): Likewise.
7609 * infcmd.c (registers_info): Likewise.
7610 * top.c (get_prompt_1): Likewise.
7611 * valops.c (value_assign): Likewise.
7612 * valprint.c (print_decimal): Likewise.
7614 2002-04-22 H.J. Lu (hjl@gnu.org)
7616 * c-exp.y (typebase): Support
7618 [long|long long|short] [signed|unsigned] [int|]
7622 signed [long|long long|short] int
7624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7626 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7628 * vax-tdep.h: New file.
7629 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7630 Make several routines static.
7631 (vax_get_saved_register): New function.
7632 (vax_gdbarch_init): New function.
7633 (_initialize_vax_tdep): Register vax_gdbarch_init.
7634 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7635 Remove macros now under the control of gdbarch.
7637 2002-04-22 Michael Snyder <msnyder@redhat.com>
7639 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7640 Some whitespace and coding standards tweaks.
7642 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7644 * vax-tdep.c: Include regcache.h.
7645 (vax_call_dummy_words): New.
7646 (sizeof_vax_call_dummy_words): New.
7647 (vax_fix_call_dummy): New function.
7648 (vax_saved_pc_after_call): Ditto.
7649 * config/vax/tm-vax.h: Don't include regcache.h.
7650 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7651 (CALL_DUMMY): Remove.
7652 (CALL_DUMMY_WORDS): Define.
7653 (SIZEOF_CALL_DUMMY_WORDS): Define.
7654 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7656 2002-04-18 Michael Snyder <msnyder@redhat.com>
7658 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7660 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7662 * vax-tdep.c (vax_frame_chain): New function.
7663 (vax_push_dummy_frame): Ditto.
7664 (vax_pop_frame): Ditto.
7665 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7666 (FRAMELESS_FUNCTION_INVOCATION): Use
7667 generic_frameless_function_invocation_not.
7668 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7669 (POP_FRAME): Use vax_pop_frame.
7671 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7673 * vax-tdep.c (vax_store_struct_return): New function.
7674 (vax_extract_return_value): Ditto.
7675 (vax_store_return_value): Ditto.
7676 (vax_extract_struct_value_address): Ditto.
7677 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7678 vax_store_struct_return.
7679 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7680 (STORE_RETURN_VALUE): Use vax_store_return_value.
7681 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7683 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7685 * vax-tdep.c (vax_frame_saved_pc): New function.
7686 (vax_frame_args_address_correct): Ditto.
7687 (vax_frame_args_address): Ditto.
7688 (vax_frame_locals_address): Ditto.
7689 (vax_frame_num_args): Move code to be in proximity to
7690 other frame-related functions.
7691 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7692 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7693 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7694 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7695 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7697 2002-04-22 H.J. Lu (hjl@gnu.org)
7699 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7702 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7704 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7705 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7706 (FRAME_INIT_SAVED_REGS): New macro.
7708 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7710 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7714 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7716 (fetch_osf_core_registers): Likewise.
7717 (supply_gregset): Likewise.
7719 2002-04-22 J. Brobecker <brobecker@gnat.com>
7721 * symfile.h (get_section_index): Define.
7722 * symfile.c (get_section_index): New function.
7723 * mdebugread.c (SC_IS_SBSS): New macro.
7724 (SC_IS_BSS): Return true for the scBss storage class only, as
7725 the scSBss storage class refers to the .sbss section.
7726 (parse_partial_symbols): Discard the symbols which associated
7727 section does not exist.
7728 Make sure to use the .sbss section index for symbols which
7729 storage class is scBss, rather than using the .bss section index.
7731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7733 * vax-tdep.c: Update copyright years.
7734 (vax_register_name): New function.
7735 (vax_register_byte): Ditto.
7736 (vax_register_raw_size): Ditto.
7737 (vax_register_virtual_size): Ditto.
7738 (vax_register_virtual_type): Ditto.
7739 * config/vax/tm-vax.h: Update copyright years.
7740 (REGISTER_NAMES): Remove.
7741 (REGISTER_NAME): Define.
7742 (REGISTER_BYTE): Use vax_register_byte.
7743 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7744 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7745 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7747 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7749 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7751 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7753 2002-04-21 David S. Miller <davem@redhat.com>
7755 * arch-utils.c (generic_prologue_frameless_p): Kill
7756 SKIP_PROLOGUE_FRAMELESS_P code.
7757 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7759 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7760 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7761 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7763 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7764 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7765 (sparc_gdbarch_init): Pass it to
7766 set_gdbarch_prologue_frameless_p.
7768 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7770 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7771 (alphabsd-nat.o): New dependency list.
7773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7775 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7777 (alpha-linux-tdep.o): New dependency list.
7778 (alphafbsd-tdep.o): Likewise.
7780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7782 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7784 * alpha-tdep.c: ...from here.
7785 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7787 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7789 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7790 prototype from here...
7791 * alpha-tdep.h: ...to here.
7793 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7795 * frame.h (selected_frame_level): Document as deprecated.
7796 (frame_relative_level): Declare.
7797 * stack.c (frame_relative_level): New function.
7798 (selected_frame_level): Document as deprecated.
7799 (select_frame): Do not set the selected_frame_level.
7801 * stack.c (frame_info, record_selected_frame): Update.
7802 (frame_command, current_frame_command): Update.
7803 (up_silently_base, up_command, down_silently_base): Update.
7804 (down_command): Update.
7805 * inflow.c (kill_command): Update.
7806 * tracepoint.c (finish_tfind_command): Update.
7807 * corelow.c (core_open): Update.
7808 * thread.c (info_threads_command): Update.
7809 (do_captured_thread_select): Update.
7810 * infcmd.c (finish_command): Update.
7811 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7813 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7815 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7817 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7819 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7822 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7824 * alphafbsd-tdep.c: Update copyright years. Include
7826 (alphafbsd_use_struct_convention): Make static.
7827 (alphafbsd_init_abi): New function.
7828 (_initialize_alphafbsd_tdep): New function.
7829 * config/alpha/tm-fbsd.h: Update copyright years.
7830 (USE_STRUCT_CONVENTION): Remove.
7832 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7834 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7835 an Alpha ABI variant.
7836 (alpha_abi_handler_list): Declare.
7837 (alpha_gdbarch_register_os_abi): New function.
7838 (alpha_gdbarch_init): Give registered ABI variant handlers a
7839 chance to tweak the gdbarch once we have set up defaults.
7840 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7844 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7845 to standard_coerce_float_to_double.
7846 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7848 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7850 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7851 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7852 from gdbarch_tdep rather than a constant.
7853 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7854 the default text address for all Alpha Unix ABIs.
7855 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7856 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7860 * alpha-tdep.h: New file. Includes several Alpha target constants
7862 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7863 let gdbarch deal with.
7864 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7865 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7867 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7868 Alpha target register names.
7869 * alphabsd-nat.c: Likewise.
7870 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7871 Alpha target register names. Make serveral routines static.
7872 (alpha_get_saved_register): New function.
7873 (alpha_abi_names): New.
7874 (process_note_abi_tag_sections): New function.
7875 (get_elfosabi): New function.
7876 (alpha_gdbarch_init): New function.
7877 (alpha_dump_tdep): New function.
7878 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7880 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7882 * frame.c (find_saved_register): Delete #ifdef
7883 HAVE_REGISTER_WINDOWS code.
7884 * config/sparc/tm-sparc.h: Update comments.
7885 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7887 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7889 * i960-tdep.c (i960_find_saved_register): New function.
7890 (i960_get_saved_register): New function.
7891 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7892 (i960_get_saved_register): Declare.
7893 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7895 2002-04-20 David S. Miller <davem@redhat.com>
7897 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7899 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7901 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7902 instead of NUM_PSEUDO_REGS.
7904 2002-04-20 David S. Miller <davem@redhat.com>
7906 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7907 GDB_MULTI_ARCH_PARTIAL
7908 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7909 define, let tm-sp64.h do it.
7911 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7913 * frame.c (find_saved_register): Avoid a NULL pointer
7914 dereference and actually walk the frame list.
7916 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7918 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7919 sorted in most most-recent-used order. Document.
7920 * gdbarch.h, gdbarch.c: Regenerate.
7922 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7924 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7926 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7927 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7928 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7931 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7934 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7935 (build_builtin_type_vec128): Ditto.
7936 (append_composite_type_field): Fix calculation of type length in
7939 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7941 * config/djgpp/README: Update.
7943 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7946 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7948 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7949 (alpha_setup_arbitrary_frame): ...to this.
7950 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7951 for alpha_setup_arbitrary_frame.
7953 2002-04-18 Andrew Cagney <cagney@redhat.com>
7955 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7956 * gdbarch.h, gdbarch.c: Regenerate.
7958 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7959 * target.h (memory_breakpoint_from_pc): Update declaration.
7960 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7962 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7963 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7964 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7965 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7966 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7967 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7968 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7969 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7970 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7971 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7972 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7973 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7975 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7977 * monitor.c (monitor_insert_breakpoint): Ditto.
7978 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7980 * config/mcore/tm-mcore.h: Update copyright.
7981 * mem-break.c: Ditto.
7982 * xstormy16-tdep.c: Ditto.
7984 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7986 * p-exp.y: Add precedence rule for '^' token.
7987 This removes the shift/reduce conflicts.
7988 Remove the comment concerning these shift/reduce conflicts.
7990 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7992 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7993 (registers_powerpc_nofp): New register set for processors
7994 without floating point unit.
7996 2002-04-18 David S. Miller <davem@redhat.com>
7998 * MAINTAINERS: Add myself to write-after-approval.
8000 2002-04-17 Michael Snyder <msnyder@redhat.com>
8002 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8004 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8006 * rs6000-tdep.c (frame_initial_stack_address): Use
8007 frame_register_read to read the alloca_reg.
8009 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8011 * frame.c (find_saved_register): Find saved registers in the next
8015 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8017 * gdbarch.sh (LANG): Set to ``c''.
8019 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8021 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8023 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8025 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8028 * hpread.c (hpread_get_lntt): Add declaration.
8029 Also fix PR gdb/391.
8031 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8033 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8034 * aclocal.m4, configure: Re-generate.
8037 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8039 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8040 instead of tm_print_insn.
8042 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8044 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8046 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8048 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8049 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8050 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8052 2002-04-12 Don Howard <dhoward@redhat.com>
8054 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8055 max_user_call_depth.
8056 (init_cmd_lists): Initialize the new value;
8057 * cli/cli-script.c (execute_user_command): Limit the call depth of
8058 user defined commands. This avoids a core-dump when user commands
8059 are infinitly recursive.
8061 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8063 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8064 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8065 from tdep struct instead of DEFAULT_LR_SAVE.
8066 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8067 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8068 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8070 2002-04-12 Michael Snyder <msnyder@redhat.com>
8072 * Remote.c: Spelling fix.
8073 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8074 If no symbol found for "sbrk", try "_sbrk".
8075 (make_output_phdrs): Use bfd_section_name.
8076 (gcore_copy_callback): Use bfd_section_name.
8077 * eval.c: Indentation fix-ups.
8078 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8079 in case it gets applied to an address that is already
8080 in the instruction space.
8081 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8082 * symfile.c: Fix indentation, long lines.
8083 * source.c: White space fix-up.
8085 2002-04-12 Andrew Cagney <cagney@redhat.com>
8087 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8088 * frame.c (frame_register_read): New function. Return non-zero on
8090 (read_relative_register_raw_bytes_for_frame): Delete.
8091 (read_relative_register_raw_bytes): Delete.
8092 * frame.h (frame_register_read): Declare.
8093 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8095 * infcmd.c (do_registers_info): Ditto.
8096 * hppa-tdep.c: Ditto.
8097 * rs6000-tdep.c: Ditto.
8098 * h8500-tdep.c: Ditto.
8099 * mips-tdep.c: Ditto.
8100 * h8300-tdep.c: Ditto.
8101 * z8k-tdep.c: Ditto.
8103 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8105 From Jimi X <jimix@watson.ibm.com>:
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8109 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8111 From Jimi X <jimix@watson.ibm.com>:
8112 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8115 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8117 From Jimi X <jimix@watson.ibm.com>:
8118 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8119 register sets for these processor variants.
8121 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8123 * regformats/reg-ppc.dat: Support FPSCR.
8125 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8127 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8128 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8129 Add fpscr as an invalid/unfetchable register.
8130 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8131 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8132 (fill_fpregset): Add support for register fpscr.
8133 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8134 (fill_gregset): Account for the fact that register ``mq'' might
8136 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8137 (registers_power): Add fpscr to register set at slot 71.
8138 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8139 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8141 2002-04-11 Michael Snyder <msnyder@redhat.com>
8143 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8144 * configure: Regenerate.
8145 * config.in: Regenerate.
8146 * acconfig.h: Add define for _SYSCALL32.
8147 * core-sol2.c: Remove #define _SYSCALL32.
8148 * solib-legacy.c: Remove #define _SYSCALL32.
8150 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8152 * stack.c (select_frame): Cleanup internal error message, do not
8155 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8157 * stack.c (select_frame): Check that selected_frame and the
8158 specified level are as expected.
8159 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8161 * frame.h (struct frame_info): Add field `level'. Update
8163 Work-in-progress PR gdb/464.
8165 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8167 * maint.c (maint_print_section_info): Rename print_section_info.
8168 (print_bfd_section_info, print_objfile_section_info): Update.
8169 * inferior.h (struct gdbarch): Add opaque declaration.
8170 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8171 * gdbarch.h: Regenerate.
8173 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8175 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8176 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8177 (kernel_u_size): Added.
8178 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8179 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8181 2002-04-04 Jim Ingham <jingham@apple.com>
8183 * valarith.c (find_size_for_pointer_math): New function, either returns
8184 the size for a pointer's target, returns 1 for void *, or errors for
8186 (value_add, value_sub): use find_size_for_pointer_math.
8188 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8190 * linux-low.c (linux_look_up_symbols): New hook.
8191 (linux_target_ops): Add linux_look_up_symbols.
8192 * remote-utils.c (decode_address): New function.
8193 (look_up_one_symbol): New function.
8194 * server.c (handle_query): Call target look_up_symbols hook.
8195 * server.h (look_up_one_symbol): Add prototype.
8196 * target.h (struct target_ops): Add look_up_symbols hook.
8198 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8200 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8201 override FP_REGNUM with frame->fp. Update copyright.
8202 * parse.c (num_std_regs, std_regs): Delete.
8203 (target_map_name_to_register): Do not search std_regs. Update
8204 function description.
8205 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8206 declarations. Update copyright.
8209 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8211 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8212 after the last symbol in a block.
8214 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8216 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8217 is non zero as a found symbol.
8219 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8221 * findvar.c: Include "builtin-regs.h".
8222 (value_of_register): Call value_of_builtin_reg when applicable.
8223 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8224 (target_map_name_to_register): Call
8225 builtin_reg_map_name_to_regnum.
8226 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8227 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8228 (builtin_regs_h): Define.
8229 (builtin-regs.o): New target.
8230 (findvar.o): Add $(builtin_regs_h).
8231 * builtin-regs.c, builtin-regs.h: New files.
8232 * std-regs.c: New file.
8233 Partial fix for PR gdb/251.
8235 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8237 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8238 it's no longer required.
8240 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8242 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8244 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8246 From Jimi X <jimix@watson.ibm.com>:
8247 * rs6000-tdep.c (rs6000_software_single_step): Use
8248 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8249 and size. Use target_insert_breakpoint() and
8250 target_remove_breakpoint() to insert and remove breakpoints
8251 instead of explicit memory reads and writes.
8253 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8255 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8256 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8257 ELF_OBJECT_FORMAT ifdef.
8259 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8261 From Jimi X <jimix@watson.ibm.com>:
8262 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8264 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8266 From Jimi X <jimix@watson.ibm.com>:
8267 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8268 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8270 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8272 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8273 s/asprintf/xasprintf/.
8274 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8276 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8278 I believe Jeff Law denies responsability for this one:
8279 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8280 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8281 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8282 Work-around for PR gdb/366.
8284 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8286 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8287 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8288 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8290 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8292 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8293 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8296 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8298 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8301 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8303 * README (Reporting Bugs in GDB): Document the bug web page as the
8304 prefered way of submitting bugs.
8307 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8309 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8311 * gdbarch.h, gdbarch.c: Re-generate.
8313 2002-04-07 Andreas Schwab <schwab@suse.de>
8315 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8316 buffer to regcache_collect.
8318 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8320 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8321 * gdbarch.c, gdbarch.h: Re-generate.
8323 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8325 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8326 declaration. Fix -Werror.
8328 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8330 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8331 * gdbarch.c: Regenerate.
8333 2002-04-05 Michael Snyder <msnyder@redhat.com>
8335 * breakpoint.c (clear_command): Rewrite middle section to
8336 combine two loops with identical control conditions.
8337 Add a cleanup to eliminate a memory leak.
8338 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8340 2002-04-05 H.J. Lu (hjl@gnu.org)
8342 * solib-svr4.c (bkpt_names): Add "__start".
8344 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8346 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8347 as test for 64 bit target.
8349 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8351 * h8500-tdep.c (h8500_write_fp): Delete function.
8352 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8353 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8354 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8356 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8357 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8359 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8360 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8361 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8362 (d10v_write_fp): Delete function.
8363 * inferior.h (write_fp, generic_target_write_fp): Delete
8365 * regcache.c (generic_target_write_fp): Delete function.
8366 (write_fp): Delete function.
8367 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8368 * gdbarch.h, gdbarch.c: Regenerate.
8369 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8370 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8371 (sparc64_write_fp): Delete declaration.
8372 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8373 (h8500_write_fp): Delete declaration.
8375 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8377 * sparc-tdep.c (sparc64_write_fp): Delete.
8378 (sparc_push_dummy_frame): Replace write_fp call with code to store
8380 (sparc_gdbarch_init): Do not initialize write_fp.
8382 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8384 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8387 2002-03-29 Jim Blandy <jimb@redhat.com>
8389 * stack.c (get_selected_block): Add new argument `addr_in_block',
8390 used to return the exact code address we used to select the block,
8392 * blockframe.c (get_frame_block, get_current_block): Same.
8393 * frame.h (get_frame_block, get_current_block,
8394 get_selected_block): Update declarations.
8395 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8396 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8398 2002-04-05 Michael Snyder <msnyder@redhat.com>
8400 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8403 2002-04-05 J. Brobecker <brobecker@gnat.com>
8405 * utils.c (xfullpath): New function.
8406 * defs.h (xfullpath): Add declaration.
8407 * source.c (openp): Use xfullpath in place of gdb_realpath to
8408 avoid resolving the basename part of filenames when the
8409 associated file is a symbolic link. This fixes a potential
8410 inconsistency between the filenames known to GDB and the
8411 filenames it prints in the annotations.
8412 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8413 to be able to match a filename with either the real filename, or
8414 the name of any symbolic link to this file.
8415 (lookup_partial_symtab): Ditto.
8417 2002-04-04 Michael Snyder <msnyder@redhat.com>
8419 * breakpoint.c: Add support for hardware breakpoints in overlays.
8420 (overlay_events_enabled): New state variable.
8421 (insert_breakpoints): Use overlay_events_enabled to decide
8422 whether to attempt to set a breakpoint at the overlay load addr.
8423 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8424 (remove_breakpoint): Use overlay_events_enabled to decide
8425 whether breakpoints need to be removed from overlay load addr.
8426 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8427 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8428 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8429 disable_overlay_breakpoints): Update overlay_events_enabled.
8431 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8433 * dwarf2read.c (struct function_range): New.
8434 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8435 (check_cu_functions): New.
8436 (read_file_scope): Initialize global function lists.
8437 Call dwarf_decode_line after processing children.
8438 (read_func_scope): Add to global function list.
8439 (dwarf_decode_lines): Call check_cu_functions everywhere
8440 record_line is called. Call record_line with a linenumber
8441 of 0 to mark sequence ends.
8443 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8445 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8446 change sync with glibc.
8448 2002-04-03 Jim Blandy <jimb@redhat.com>
8450 * configure.in: Call AC_C_INLINE.
8451 * configure: Regenerated.
8453 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8455 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8456 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8458 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8460 * NEWS: Mention gcore support on FreeBSD/i386.
8462 * fbsd-proc.c: New file.
8463 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8464 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8466 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8469 2002-03-29 Jim Blandy <jimb@redhat.com>
8471 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8472 unescaped newlines in string literals, but newer ones don't. So
8475 2002-03-26 Michael Snyder <msnyder@redhat.com>
8476 Andrew Cagney <cagney@redhat.com>
8478 * cli/cli-dump.c: New file. Dump memory to file,
8479 restore file to memory.
8480 * cli/cli-dump.h: New file.
8481 * Makefile.in: Add rules, dependencies for cli-dump.o.
8482 * NEWS: Mention new commands.
8484 2002-03-28 Michael Snyder <msnyder@redhat.com>
8486 * symfile.c (symbol_file_add): Move test for null symbols to later.
8488 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8490 From veksler at il.ibm.com:
8491 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8492 the xstrduped original path.
8495 2002-03-27 Michael Snyder <msnyder@redhat.com>
8497 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8498 * infcmd.c (_initialize_infcmd): Ditto.
8499 * language.c (_initialize_language): Ditto.
8500 * symfile.c (_initialize_symfile): Ditto.
8501 * top.c (_init_main): Ditto.
8502 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8504 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8506 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8507 vector registers handling.
8508 (skip_prologue): Handle new AltiVec instructions. Fill in new
8509 fields of frame data.
8510 (frame_get_saved_regs): Fill in information for AltiVec registers.
8512 2002-03-27 Jim Blandy <jimb@redhat.com>
8514 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8515 a function; leave this macro here to invoke that function.
8516 (symbol_init_mangled_name): Declaration for that function.
8517 * symtab.c (symbol_init_mangled_name): New function.
8519 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8521 * valarith.c: Replace strerror with safe_strerror.
8522 * tracepoint.c: Ditto.
8524 * go32-nat.c: Ditto.
8528 2002-03-27 Andreas Schwab <schwab@suse.de>
8530 * event-top.c (command_line_handler): Remove useless if.
8532 2002-03-27 Andreas Jaeger <aj@suse.de>
8534 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8537 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8539 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8540 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8541 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8542 (x86_64_linux_dr_get_status, supply_gregset),
8543 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8544 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8545 (x86_64_register_info_table): Add.
8546 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8547 (x86_64_register_raw_size, x86_64_register_virtual_type),
8548 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8549 general x86_64_register_info_table.
8550 (i386_gdbarch_init): gdbarch_register_bytes is now set
8551 dynamicaly during initialization.
8552 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8553 * gdbserver/linux-x86-64-low.c: Ditto.
8555 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8557 * gdbserver/server.c (main): Call target_signal_to_host_p
8558 and target_signal_to_host on signals received from the remote.
8559 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8560 target_signal_from_host on signals sent to the remote.
8561 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8562 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8564 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8566 * signals/signals.c: Include "server.h" in gdbserver build.
8567 (target_signal_from_name): Don't use STREQ.
8568 (_initialize_signals): Likewise. Don't include function in
8571 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8573 * signals.c: Moved to...
8574 * signals/signals.c: Here.
8575 * Makefile (signals.o): Update.
8577 2002-03-26 Jeff Law (law@redhat.com)
8579 * somread.c (som_symtab_read): Remove some commented out code and
8580 updated related comments. Do not set the minimal symbol table to
8581 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8582 in a dynamic executable.
8583 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8584 where we are unable to find the minimal symbol for the given
8587 2002-03-25 Jeff Law (law@redhat.com)
8589 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8591 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8593 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8595 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8597 * command.h: Update copyright.
8598 (struct cmd_list_element): Replace definition with opaque
8600 (enum cmd_types): Document that it will eventually be moved to
8602 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8603 (MALLOCED_REPLACEMENT): Delete macro.
8604 * Makefile.in (cli_decode_h): Add $(command_h).
8605 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8606 * top.c: Include "cli/cli-decode.h".
8607 * completer.c: Include "cli/cli-decode.h".
8608 * maint.c: Include "cli/cli-decode.h".
8609 * cli/cli-decode.h: Include "command.h".
8610 (enum command_class): Delete.
8611 (enum cmd_types): Comment out.
8612 (enum cmd_auto_boolean): Delete.
8613 (enum var_types): Delete.
8615 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8617 * cli/cli-decode.c: Include "gdb_assert.h".
8618 (add_set_or_show_cmd): New static function.
8619 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8620 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8621 all fields, such as func, from the set command.
8623 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8625 * MAINTAINERS (sh-elf): Change warning flag to -w.
8627 2002-03-23 Andrew Cagney <cagney@redhat.com>
8629 * defs.h (error): Add printf format attribute.
8630 * thread-db.c (thread_from_lwp): Fix error format string.
8631 * stack.c (parse_frame_specification): Ditto.
8632 * cli/cli-decode.c (undef_cmd_error): Ditto.
8633 * scm-lang.c (scm_lookup_name): Ditto.
8634 * tracepoint.c (trace_error): Ditto.
8635 * remote-utils.c (usage): Ditto.
8636 * remote.c (compare_sections_command): Ditto.
8639 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8641 * gdbtypes.c (append_composite_type_field): New function.
8642 (init_composite_type): New function.
8643 * gdbtypes.h (append_composite_type_field): Declare.
8644 (init_composite_type): Ditto.
8646 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8648 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8650 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8651 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8652 structure returning convention for SYSV ABI case, but not
8653 for GNU/Linux, FreeBSD, or NetBSD.
8655 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8657 * symtab.h (lookup_block_symbol): Add mangled_name argument
8660 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8661 with new mangled_name argument.
8662 * linespec.c (decode_line_1): Likewise.
8663 * valops (value_of_this): Likewise.
8664 * symtab.c (lookup_transparent_type): Likewise.
8665 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8666 (lookup_symbol): If we are given a mangled name, pass it down
8667 to lookup_symbol_aux.
8668 (lookup_block_symbol): If we are given a mangled name to check
8669 against, only return symbols which match it.
8671 2002-03-22 Christopher Faylor <cgf@redhat.com>
8673 * win32-nat.c (child_create_inferior): Check for proper shell to use
8674 here, in case the user changes it on the fly.
8675 (_initialize_inftarg): Remove shell path considerations.
8677 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8679 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8680 for gdbarch_max_register_raw_size and max_register_virtual_size.
8681 Adjust copyright year.
8683 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8685 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8686 in a function to cover the entire beginning of the function
8687 as well if it does not already.
8689 2002-03-21 Tom Rix <trix@redhat.com>
8691 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8692 (rs6000_ptrace64): Renamed from ptrace64.
8694 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8696 * gdbserver/remote-utils.c (remote_open): Don't call
8697 getprotobyname, we're all using TCP here so just use
8699 * gdbserver/gdbreplay.c (remote_open): Ditto.
8701 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8703 * regcache.c (_initialize_regcache): No need to call
8704 build_regcache() at this time; it gets called whenever
8705 the gdbarch changes.
8707 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8709 * sparc-nat.c: Include sys/param.h where possible.
8711 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8714 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8715 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8716 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8718 * stabsread.c (rs6000_builtin_type): Likewise.
8719 (read_sun_floating_type): Likewise.
8721 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8723 * stabsread.c (read_member_functions): Remove skip code for duplicate
8724 constructor/destructor methods. Use standard parsing for these
8725 methods and just do not chain them to the list of methods after
8728 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8730 * coffread.c: Remove redundant static declarations. Replace
8731 occurrences of `PTR' with `void *'.
8732 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8733 * top.h (quit_cover): Likewise.
8734 * defs.h (catch_errors): Likewise.
8736 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8738 * defs.h (XMALLOC): Define.
8739 * gdb-events.sh (XMALLOC): Delete macro.
8740 * gdb-events.c, gdb-events.h: Regenerate.
8741 * gdbarch.sh (XMALLOC): Delete macro.
8742 * gdbarch.c: Regenerate.
8743 * serial.c (XMALLOC): Delete macro.
8744 * ui-file.c (XMALLOC): Ditto.
8745 * ser-unix.h (XMALLOC): Ditto.
8746 * sh-tdep.c (XMALLOC): Ditto.
8747 * ui-out.c (XMALLOC): Ditto.
8748 * utils.c (XMALLOC): Ditto.
8749 * i386-tdep.c (XMALLOC): Ditto.
8750 * gdb-events.c (XMALLOC): Ditto.
8751 * d10v-tdep.c (XMALLOC): Ditto.
8752 * cli-out.c (XMALLOC): Ditto.
8754 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8755 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8756 * ui-file.c, ui-out.c: Ditto.
8758 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8760 * command.h (struct cmd_list_element): Add field context.
8761 (set_cmd_context, get_cmd_context): Declare.
8762 * cli/cli-decode.h: Ditto.
8763 * cli/cli-decode.c (get_cmd_context): New function.
8764 (set_cmd_context): New function.
8765 (add_cmd): Initialize context.
8766 Part of fixing PR gdb/145 and PR gdb/146.
8768 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8770 * cli/cli-decode.c (cmd_type): New function.
8771 * command.h (cmd_type): Declare.
8772 * infrun.c (set_schedlock_func): Call function cmd_type.
8773 * kod.c (kod_set_os): Call cmd_type.
8774 * cris-tdep.c (cris_version_update): Use function cmd_type.
8775 (cris_mode_update, cris_abi_update): Ditto.
8777 * command.h: (execute_cmd_post_hook): Declare.
8778 (execute_cmd_pre_hook): Declare.
8779 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8780 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8781 functions. Execute pre/post hook while ensuring that afterwords
8783 * top.c (execute_command): Use execute_cmd_post_hook, and
8784 execute_cmd_pre_hook to execute pre/post commands.
8785 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8787 (hook_stop_stub): Call execute_cmd_pre_hook.
8789 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8791 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8792 set'' and this leads to a core dump. Move xstrdup of
8793 operating_system to after check that it is not NULL.
8795 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8797 * kod.c (kod_set_os): Remove unnecessary check that
8798 ``command->type'' is set_cmd.
8800 * valprint.c (set_input_radix): Use input_radix.
8801 (set_output_radix): Use output_radix.
8802 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8805 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8807 * value.h (struct value): Delete field ``substring_addr''. Change
8808 aligner fields to force_doublest_align, force_longest_align,
8809 force_core_addr_align and force_pointer_aligh.
8811 * value.h (struct value): Fix typo in above change.
8813 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8815 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8816 to fix internal_error from ``maintenance print architecture''.
8818 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8820 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8821 for gcc versions after gcc-2.8.1.
8823 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8825 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8826 for method resolution. Restore adjustment of ``this'' pointer after
8827 calling value_struct_elt, which was accidentally removed during the
8830 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8832 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8834 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8836 * value.h (value_of_register): Update.
8838 2002-03-14 Richard Henderson <rth@redhat.com>
8840 * configure.in: Detect declaration for canonicalize_file_name.
8841 * utils.c (canonicalize_file_name): Declare, if needed.
8842 (gdb_realpath): Prefer realpath if available and usable.
8843 * config.in, configure: Rebuild.
8845 2002-03-14 Richard Henderson <rth@redhat.com>
8847 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8848 a constant array bound.
8850 * MAINTAINERS: Add myself to write-after-approval.
8852 2002-03-14 Michael Snyder <msnyder@redhat.com>
8854 * symfile.c (syms_from_objfile): Return immediately if no syms.
8855 (symbol_file_add): Return immediately if no syms.
8856 (find_sym_fns): Return immediately if no syms.
8858 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8860 * gdbserver/remote-util.c (remote_open): Print remote-side's
8861 IP address when remote debugging over the network.
8863 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8865 * config/sparc/fbsd.mh: Fix copyright.
8866 * config/sparc/fbsd.mt: Likewise.
8868 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8870 * MAINTAINERS: Fix typo in name of gdb warnings option.
8871 (x86-64): Fix formating so that this can be parsed by awk.
8873 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8875 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8876 * defs.h: Include "gdb/signals.h".
8877 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8879 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8881 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8882 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8885 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8886 Don Howard <dhoward@redhat.com>
8888 * mips-tdep.c (ST0_FR): Define.
8889 (mips2_fp_compat): New function, temporarily disabled.
8890 (mips_read_fp_register_single): New function.
8891 (mips_read_fp_register_double): New function.
8892 (mips_print_register): Use them.
8893 (do_fp_register_row): Likewise.
8895 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8897 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8900 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8902 * stabsread.c (read_member_functions): Fix is_stub test for
8903 static member functions, improve comment.
8905 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8907 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8908 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8909 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8910 commands that set boolean values.
8911 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8912 (arm_rdi_resume): Always initialize PC.
8913 (arm_rdi_open): Don't use rslt as a boolean.
8914 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8915 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8916 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8917 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8919 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8921 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8922 * configure: Rebuilt.
8924 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8926 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8927 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8929 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8931 * cli/cli-decode.c (set_cmd_completer): New function.
8932 * command.h (set_cmd_completer): Declare.
8933 * cli/cli-decode.h (set_cmd_completer): Ditto.
8935 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8936 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8937 * win32-nat.c (_initialize_inftarg): Ditto.
8938 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8939 * proc-api.c (_initialize_proc_api): Ditto.
8940 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8941 * source.c (_initialize_source): Ditto.
8942 * exec.c (_initialize_exec): Ditto.
8943 * solib.c (_initialize_solib): Ditto.
8944 * top.c (init_main): Ditto.
8945 * tracepoint.c (_initialize_tracepoint): Ditto.
8946 * symfile.c (_initialize_symfile): Ditto.
8947 * printcmd.c (_initialize_printcmd): Ditto.
8948 * infcmd.c (_initialize_infcmd): Ditto.
8949 * corefile.c (_initialize_core): Ditto.
8951 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8953 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8955 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8957 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8959 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8961 * NEWS: Update headings, 5.2 has branched.
8963 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8965 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8966 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8967 (register_addr, REGISTER_RAW_SIZE): Likewise.
8968 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8969 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8971 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8973 * MAINTAINERS (x86-64): Add myself.
8974 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8975 changed value_ptr -> struct value *
8977 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8979 * configure.host (sparc64-*-freebsd): Add.
8980 * configure.tgt: Likewise.
8981 * config/sparc/fbsd.mh: New file.
8982 * config/sparc/fbsd.mt: Likewise.
8983 * config/sparc/nm-fbsd.h: Likewise.
8984 * config/sparc/tm-fbsd.h: Likewise.
8986 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8988 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8989 regformats/reg-s390x.dat.
8991 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8993 * utils.c: Add FIXME explaining true/false problem.
8995 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8997 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8999 2002-02-28 Michael Chastain <mec@shout.net>
9001 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9003 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9005 * gdbserver/linux-s390-low.c: New file.
9006 * regformats/reg-s390.dat: New file.
9007 * regformats/reg-s390x.dat: New file.
9008 * gdbserver/configure.srv: Add S/390.
9009 * gdbserver/Makefile.in: Add S/390.
9010 * configure.tgt: Enable gdbserver for S/390.
9012 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9014 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9015 first line of the doc string for "info dos", except at the end of
9016 the sentence, since the short help stops at the first period.
9018 2002-02-28 Jason Merrill <jason@redhat.com>
9020 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9022 2002-02-27 Fred Fish <fnf@redhat.com>
9024 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9025 comment (dumy -> dummy).
9027 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9029 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9031 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9033 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9035 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9037 * gdbserver/acconfig.h: New file.
9038 * gdbserver/i387-fp.c: New file.
9039 * gdbserver/i387-fp.h: New file.
9040 * gdbserver/linux-x86-64.c: New file.
9041 * regformats/reg-x86-64.dat: New file.
9042 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9043 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9044 * gdbserver/configure.in: Add support for regsets.
9045 * gdbserver/config.in: Regenerate.
9046 * gdbserver/configure: Regenerate.
9047 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9048 * gdbserver/linux-low.h: New file.
9049 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9051 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9052 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9053 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9054 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9055 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9056 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9057 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9058 "i387-fp.h". Add PTRACE_GETREGS and friends.
9059 * gdbserver/regcache.c (supply_register): New function.
9060 (supply_register_by_name): New function.
9061 (collect_register): New function.
9062 (collect_register_by_name): New function.
9064 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9066 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9067 (config.status): Add configure.srv dependency.
9068 (server_h): Add config.h dependency.
9070 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9072 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9073 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9074 * gdbserver/configure.srv: Change i386-*-linux* to use
9077 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9079 * x86-64-tdep.c: Re-indent. Update copyright date.
9081 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9083 From Michal Ludvig <mludvig@suse.cz>:
9084 * x86-64-tdep.c (value.h): Delete.
9085 (gdb_assert.h): Include.
9086 (x86_64_register_convert_to_virtual,
9087 x86_64_register_convert_to_raw ): Add check which lets only
9088 floating-point values to be converted.
9089 (value_push): Delete.
9090 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9091 (i386_gdbarch_init): Number of register_bytes fixed.
9093 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9095 * MAINTAINERS: Add x86-64 target.
9097 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9099 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9100 * osfsolib.c (solib_map_sections): Ditto.
9101 * irix5-nat.c (solib_map_sections): Ditto.
9102 * corelow.c (gdb_check_format): Ditto.
9103 * symfile.c (symfile_bfd_open): Ditto.
9104 * solib.c (solib_map_sections): Ditto.
9107 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9109 * remote.c (_initialize_remote): By default, disable ``e'' and
9110 ``E'' step out-of-range packets.
9112 2002-02-26 Andreas Schwab <schwab@suse.de>
9114 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9115 m68k_linux_frame_saved_pc.
9116 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9118 (SIGCONTEXT_PC_OFFSET): Remove.
9119 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9120 m68k_linux_sigtramp_saved_pc): New functions.
9121 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9122 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9123 (UCONTEXT_PC_OFFSET): Define.
9124 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9125 non-RT and RT signal trampolines.
9127 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9129 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9130 (TARGET_NBPG, STACK_END_ADDR): Delete
9131 (VARIABLES_INSIDE_BLOCK): Delete.
9133 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9135 * utils.c (perror_with_name): Make string parameter constant.
9136 (print_sys_errmsg): Ditto.
9138 * defs.h (perror_with_name): Update.
9139 (print_sys_errmsg): Update.
9142 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9144 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9145 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9147 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9149 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9150 if it already matches the current architecture from the exec file.
9151 Include arch-utils.h for gdbarch_info_init prototype.
9152 * Makefile.in (rs6000-nat.o): Update dependencies.
9154 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9156 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9157 list of exported variables.
9159 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9161 * gdbserver/configure.srv: New file.
9162 * gdbserver/configure.in: Use configure.srv instead
9163 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9165 * gdbserver/configure: Regenerated.
9166 * gdbserver/terminal.h: New file.
9167 * gdbserver/Makefile.in: Update for configure changes. Remove
9168 more unneeded include paths.
9170 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9172 From wiz at danbala:
9173 * config/sparc/tm-sp64.h: Fix grammar and typos.
9176 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9178 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9179 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9180 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9181 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9182 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9183 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9184 * s390-tdep.c: Ditto.
9185 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9186 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9187 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9188 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9189 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9190 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9191 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9192 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9193 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9194 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9197 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9199 * lin-thread.c: Delete file.
9200 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9201 to gdb_proc_service.h.
9202 * configure: Re-generate.
9204 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9205 * serial.c (serial_open): Delete check for "ocd".
9208 * Makefile.in (linux-thread.o): Delete target.
9209 * linux-thread.c: Delete file.
9211 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9212 renamed SH files to be consistent.
9214 * symtab.c (sort_search_symbols): Use xfree.
9216 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9218 * arm-linux-tdep.c (arm_linux_init_abi): Register
9219 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9220 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9221 definition with undef, since we don't want the sysvr4 definition.
9222 (SKIP_TRAMPOLINE_CODE): Likewise.
9224 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9226 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9228 * configure.in: (AC_CHECK_FUNCS) Added test for
9229 canonicalize_file_name Regenerated.
9230 * config.in, configure: Regenerated.
9231 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9232 defined use canonicalize_file_name.
9234 2002-02-23 Michael Chastain <mec@shout.net>
9236 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9238 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9240 * README: Remove references to cygnus.com.
9241 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9242 dot com'' form. Remove references to cygnus.com and sourceware.
9244 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9246 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9247 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9248 1003.1-2001 no longer allows "head -1".
9249 * gdb/Makefile.in (version.c): Likewise.
9250 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9251 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9252 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9254 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9256 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9257 * command.h (cmd_cfunc_eq): Declare.
9258 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9260 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9261 ``struct cmd_list_element *''.
9262 * cli/cli-cmds.c (is_complete_command): Update. Use
9264 * top.c (execute_command): Pass the command to
9265 is_complete_command.
9266 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9268 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9270 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9271 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9272 architecture defines.
9273 * s390-tdep.c (s390_gdbarch_init): Likewise.
9275 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9277 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9278 (arm_linux_push_arguments): Likewise.
9279 (arm_linux_init_abi): Register them. Also register linux-specific
9281 (find_minsym_and_objfile): Use strcmp, not STREQ.
9282 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9283 (arm_linux_call_dummy_words): Delete declaration.
9284 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9285 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9287 (LOWEST_PC): Delete.
9289 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9291 * maint.c (print_section_info): Do not prepend `0x' to filepos
9292 output, it will be handled by local_hex_string_custom.
9294 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9296 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9297 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9298 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9300 2002-02-22 Jim Blandy <jimb@redhat.com>
9302 Indicate that the bcache functions don't change the strings
9304 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9305 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9307 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9309 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9311 2002-02-21 Christopher Faylor <cgf@redhat.com>
9313 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9314 find the complete path to a loaded DLL.
9316 2002-02-21 Fred Fish <fnf@redhat.com>
9318 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9319 that marks the end of the range of a function, enter a line number
9320 entry that has a line number of zero and a PC offset that matches
9321 the end of the function. This starts a range of PC's for which no
9322 line number information is known.
9323 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9324 PC's for which no line number info is found (line number is zero)
9325 then we didn't find any valid line information.
9326 * symtab.h: Document use of zero line number entry.
9328 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9330 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9331 (have_ptrace_getvrregs): Define for run time checks.
9332 (gdb_vrregset_t): New type for Altivec register handling.
9333 (fetch_register, store_register): Fetch/store altivec register
9335 (fetch_altivec_register, store_altivec_register): New functions.
9336 (supply_vrregset, fill_vrregset): New functions.
9337 (fetch_altivec_registers, store_altivec_registers): New functions.
9338 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9341 2002-02-21 Jiri Smid <smid@suse.cz>
9343 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9345 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9347 * Makefile.in (armnbsd-nat.o): Update dependencies.
9348 * armnbsd-nat.c (supply_gregset): New function. Common code to
9349 supply the integer register set.
9350 (supply_fparegset): New function. Similar for FPA registers.
9351 (fetch_regs, fetch_fp_regs): Use them.
9352 (fetch_core_registers): Likewise.
9353 (fetch_elfcore_registers): New function.
9354 (arm_netbsd_elfcore_fns): New core-file type specification.
9355 (_initialize_arm_netbsd_nat): Register it.
9357 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9359 * armnbsd-nat.c: Include gdbcore.h.
9360 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9361 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9362 'void' to declaration, to shut up ARI.
9363 (fetch_core_registers): Make static. Rewrite using supply_register.
9364 (arm_netbsd_core_fns): New core-file type specification.
9365 (_initialize_arm_netbsd_nat): New function.
9367 2002-02-21 Christopher Faylor <cgf@redhat.com>
9369 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9372 2002-02-20 Christopher Faylor <cgf@redhat.com>
9374 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9377 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9379 * jv-exp.y (parse_number): Change type of implicit longs
9380 to builtin_type_uint64.
9382 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9384 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9385 to be an integer instead of a `union wait'.
9387 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9389 * mips-linux-nat.c: Call the operating system GNU/Linux.
9390 * mips-linux-tdep.c: Likewise.
9391 * mips-tdep.c: Likewise.
9393 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9396 * jv-exp.y (parse_number): Handle 64-bit integers.
9398 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9400 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9401 AC_STDC_HEADERS to AC_HEADER_STDC.
9402 * gdbserver/configure: Regenerated.
9404 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9406 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9408 * sparc-tdep.c (get_longjmp_target): Likewise.
9410 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9412 * News: Add news about ARM and Multi-arch. Mention the new target
9415 2002-02-19 Jim Blandy <jimb@redhat.com>
9417 * stabsread.c (error_type_complaint): Improve error message.
9419 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9421 * gdbserver/README: Update documentation.
9422 * gdbserver/configure.in: Update configury to match documentation.
9423 * gdbserver/Makefile.in: Likewise.
9424 * gdbserver/configure: Regenerated.
9425 * gdbserver/aclocal.m4: New file, generated by aclocal.
9426 * gdbserver/config.in: New file, generated by autoheader.
9428 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9430 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9433 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9435 * arm-tdep.h (enum arm_float_model): New enum.
9436 (struct gdbarch_tdep): Add fp_model.
9437 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9438 up floating-point conversions until we know the floating-point model
9439 in use by the inferior. Don't complain about being unable to
9440 determine the ABI of the inferior when we don't have one.
9441 (arm_extract_return_value): Support different floating-point models.
9442 (arm_store_return_value): Likewise.
9443 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9445 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9447 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9449 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9450 of ``current_gdbarch''.
9452 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9454 * armnbsd-nat.c : ANSIfy all function declarations.
9455 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9456 (fetch_inferior_registers): Re-implement in terms of above.
9457 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9458 (store_inferior_registers): Re-implement in terms of above.
9460 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9462 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9464 * arm-linux-tdep.c: Likewise.
9465 * config/arm/tm-linux.h: Likewise.
9467 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9469 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9470 * config/arm/nbsd.mt (TM_FILE): Delete.
9471 * config/arm/tm-nbsd.h: Delete.
9473 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9475 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9476 Initialize CALL_DUMMY_LENGTH.
9478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9480 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9482 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9483 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9484 defines one thing and that is incorrect for this port.
9485 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9487 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9489 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9491 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9493 * win32-nat.c (display_selector): New function. Displays information
9494 about the information returned by GetThreadSelectorEntry API function.
9495 (display_selectors): New function. Displays the infomation of
9496 the selector given as argument, or of CS, DS ans FS selectors
9497 if no argument is given.
9498 ( _initialize_inftarg): Add "w32" as info prefix command.
9499 Add "info w32 selector" as command calling display_selectors.
9501 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9503 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9504 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9507 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9509 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9511 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9513 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9514 (arm_fix_call_dummy): Call it.
9515 (arm_call_dummy_breakpoint_offset): Delete.
9516 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9517 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9519 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9521 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9522 Default to func_frame_chain_valid.
9523 * gdbarch.h, gdbarch.c: Re-generate.
9524 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9526 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9528 * ppc-linux-nat.c: Update copyright.
9529 (fetch_register, store_register): Add tid parameter, don't compute
9531 (fetch_ppc_registers, store_ppc_registers): Add tid
9532 parameter. Pass it along to callees.
9533 (fetch_inferior_registers, store_inferior_registers): Compute tid
9534 here, and pass it to calleed functions.
9535 (fill_gregset, supply_fpregset): Clean up formatting.
9537 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9539 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9540 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9542 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9544 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9545 * gdbarch.c gdbarch.h: Regenerate.
9546 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9548 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9549 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9550 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9552 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9553 * arm-tdep.c (arm_get_longjmp_target): New function.
9554 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9555 this to a positive value register arm_get_longjmp_target as the
9557 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9558 (arm_linux_init_abi): Set up longjmp description in tdep.
9559 * armnbsd-nat.c (get_longjmp_target): Delete.
9560 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9561 description in tdep.
9562 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9563 (get_longjmp_target): Delete declaration.
9564 (GET_LONGJMP_TARGET): Delete.
9565 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9566 (GET_LONGJMP_TARGET): Delete.
9568 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9570 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9571 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9572 of ``current_gdbarch''.
9574 2002-02-17 Tom Tromey <tromey@redhat.com>
9576 * cli/cli-cmds.c (compare_strings): New function.
9577 (complete_command): Only print each unique item once.
9578 * completer.h (complete_line): Declare.
9579 * completer.c (complete_line): New function.
9580 (line_completion_function): Use it.
9582 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9584 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9585 * gdbarch.h, gdbarch.c: Re-generate.
9587 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9589 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9591 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9593 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9594 * valops.c (value_arg_coerce): Don't take the address of a reference
9595 to convert an argument to a reference.
9597 2002-02-15 Christopher Faylor <cgf@redhat.com>
9599 * win32-nat.c (get_image_name): New function.
9600 (handle_load_dll): Use get_image_name function.
9601 (get_child_debug_event): Avoid registering debug events until possibly
9602 execed process is started.
9603 (child_create_inferior): Allow invocation via shell so that command
9604 line redirection, etc. works ok.
9605 (_initialize_inftarg): Add new command: "set shell" to control whether
9606 a shell is used to start a process.
9608 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9610 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9611 instead of find_register_by_number.
9612 (cannot_store_register): Likewise.
9614 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9616 * dwarf2read.c: Replace fprintf (stderr, ...) by
9617 fprintf_unfiltered (gdb_stderr, ...).
9619 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9621 * gdbserver/gdbserver.1: Document --attach.
9623 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9625 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9627 * arm-tdep.c (arm_default_arm_le_breakpoint)
9628 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9629 (arm_default_thumb_be_breakpoint): New. Initialize them from
9630 traditional breakpoint defines.
9631 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9632 (arm_gdbarch_init): Initialize new breakpoint variables.
9633 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9634 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9635 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9636 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9638 (arm_netbsd_init_abi_common): ... here; new function.
9639 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9640 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9641 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9642 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9644 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9646 * arm-tdep.h (enum arm_abi): New enum.
9647 (struct gdbarch_tdep): New structure.
9648 (LOWEST_PC): Provide a default.
9649 (arm_gdbarch_register_os_abi): Declare new function.
9650 * arm-tdep.c (arm_abi_names): New array.
9651 (process_note_abi_tag_sections): New function.
9652 (get_elfosabi): New function.
9653 (arm_gdbarch_register_os_abi): New function.
9654 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9655 support for that ABI has been built in, then call the appropriate
9656 configuration routine. Use gdbarch_num_regs() to get the number
9658 (arm_dump_tdep): New function.
9659 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9660 place-holder functions.
9661 (_initialize_arm_tdep): Register them.
9662 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9664 * armnbsd-tdep.c: New file.
9665 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9666 * config/arm/nbsd.mt (TDEPFILES): Add it.
9667 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9669 * armnbsd-nat.c: Include regcache.h.
9670 * Makefile.in (armnbsd-nat.o): Update dependency list.
9672 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9674 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9676 * gdbserver/Makefile.in: Fix typos in target rules.
9678 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9680 Fix part of PR gdb/267.
9681 * linespec.c (find_methods): Handle constructors specially for now.
9683 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9685 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9687 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9688 standard_coerce_float_to_double().
9690 2002-02-14 Christopher Faylor <cgf@redhat.com>
9692 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9695 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9697 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9698 find_variant_by_name, because it confuses the multiarch
9699 framework. Return NULL if there isn't an architecture with the
9700 user supplied name, instead of forcing a different one without
9701 recording the change with the multiarch machinery.
9702 (find_variant_by_name): Delete.
9704 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9706 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9707 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9709 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9711 * stack.c (print_frame_info_base): When calling
9712 print_frame_info_listing_hook, set current_source_symtab.
9714 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9716 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9717 and remove unused $(INCLUDE_DIR).
9718 Add regcache.c to OBS.
9719 Add generated register protocol files to clean target.
9720 Update dependencies for new objects, obsolete old target code.
9722 * gdbserver/linux-low.c: Remove all platform-specific code to
9723 new files. Remove various dead code. Update to use regcache
9725 * gdbserver/remote-utils.c (fromhex): Add return statement
9727 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9729 (input_interrupt): Add integer parameter to match prototype
9730 of a signal handler.
9731 (outreg): Use register_data ().
9732 (prepare_resume_reply): Use gdbserver_expedite_regs.
9733 * gdbserver/server.c (main): Dynamically allocate own_buf because
9734 PBUFSIZ is no longer constant. Use registers_to_string () and
9735 registers_from_string ().
9736 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9737 for error (), fatal (), and warning (). Update definition of
9738 PBUFSIZ to use regcache functionality. Add include guard.
9739 * gdbserver/utils.c (fatal): Add missing ``const''.
9740 (warning): New function.
9742 * regformats/regdat.sh: Include "regcache.h" in generated files.
9743 Provide init_registers () function.
9744 * regformats/regdef.h: Add prototype for set_register_cache ().
9747 * gdbserver/linux-arm-low.c: New file.
9748 * gdbserver/linux-i386-low.c: New file.
9749 * gdbserver/linux-ia64-low.c: New file.
9750 * gdbserver/linux-m68k-low.c: New file.
9751 * gdbserver/linux-mips-low.c: New file.
9752 * gdbserver/linux-ppc-low.c: New file.
9753 * gdbserver/linux-sh-low.c: New file.
9755 * gdbserver/regcache.c: New file.
9756 * gdbserver/regcache.h: New file.
9758 * gdbserver/low-linux.c: Removed obsolete file.
9760 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9762 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9763 * config/i386/linux.mt: Likewise.
9764 * config/ia64/linux.mt: Likewise.
9765 * config/m68k/linux.mh: Likewise.
9766 * config/powerpc/linux.mh: Likewise.
9767 * config/mips/linux.mt: Likewise.
9769 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9771 * config/i386/i386lynx.mh: Mark gdbserver variables
9772 as (currently) obsolete for this target.
9773 * config/i386/nbsd.mt: Likewise.
9774 * config/i386/nbsdelf.mt: Likewise.
9775 * config/m32r/m32r.mt: Likewise.
9776 * config/m68k/m68klynx.mh: Likewise.
9777 * config/m68k/nbsd.mt: Likewise.
9778 * config/m68k/sun3os4.mh: Likewise.
9779 * config/mips/vr5000.mt: Likewise.
9780 * config/ns32k/nbsd.mt: Likewise.
9781 * config/pa/hppabsd.mh: Likewise.
9782 * config/pa/hppaosf.mh: Likewise.
9783 * config/powerpc/nbsd.mt: Likewise.
9784 * config/rs6000/rs6000lynx.mh: Likewise.
9785 * config/s390/s390.mt: Likewise.
9786 * config/s390/s390x.mt: Likewise.
9787 * config/sparc/sparclynx.mh: Likewise.
9788 * config/sparc/sun4os4.mh: Likewise.
9789 * config/i386/x86-64linux.mt: Likewise.
9790 * config/sparc/linux.mh: Likewise.
9792 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9794 * configure.tgt: Configure gdbserver only for known working
9795 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9796 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9797 SUBDIRS if it is configured. Update comment for ${nativefile}.
9798 * configure: Regenerated.
9800 2002-02-13 Michael Snyder <msnyder@redhat.com>
9802 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9804 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9805 (default_gcore_mach): Just return 0, work around a problem in bfd.
9806 (default_gcore_target): OK to return NULL if exec_bfd is null.
9807 (make_mem_sec): Use a cast, avoid a warning.
9809 * procfs.c (find_memory_regions_callback): Use a cast instead of
9810 calling host_pointer_to_address (which complains if
9811 sizeof (host pointer) != sizeof (target pointer)).
9812 (procfs_make_note_section): Avoid overflow in psargs string.
9814 * procfs.c (procfs_make_note_section): Make the default
9815 implementation return an error.
9817 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9819 * procfs.c (procfs_make_note_section): Provide a default definition
9820 (for alpha-dec-osf4.0f). Fix typos.
9822 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9824 * linux-proc.c: Add include of regcache.h.
9825 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9827 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9829 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9830 * memattr.c (create_mem_region): Disallow useless empty region.
9831 Regions are half-open intervals, so allow [A..B) [B..C) as
9834 2002-02-13 Michael Chastain <mec@shout.net>
9836 * defs.h: Kill CONST_PTR.
9837 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9838 * c-lang.c (c_builtin_types): Likewise.
9839 * ch-lang.c (ch_builtin_types): Likewise.
9840 * f-lang.c (f_builtin_types): Likewise.
9841 * language.c (unknown_builtin_types): Likewise.
9842 * m2-lang.c (m2_builtin_types): Likewise.
9843 * p-lang.c (pascal_builtin_types): Likewise.
9844 * scm-lang.c (c_builtin_types): Likewise.
9846 2002-02-13 Keith Seitz <keiths@redhat.com>
9848 * arm-tdep.h (arm_get_next_pc): Add declaration.
9850 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9852 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9853 with other related struct-returning functions.
9854 (arm_extract_struct_value_address): New function.
9855 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9856 initialize float_format, double_format and long_double_format as
9857 appropriate to the endianness of the target.
9858 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9859 (arm_use_struct_convention): Delete declaration.
9860 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9862 2002-02-13 Keith Seitz <keiths@redhat.com>
9864 * defs.h (core_addr_to_string_nz): New function.
9866 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9868 Apply missing bits of 2002-01-15 patch.
9869 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9870 (fill_fpregset): Use i387_fill_fsave.
9872 2002-02-12 Keith Seitz <keiths@redhat.com>
9874 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9875 (core_addr_to_string_nz): New function.
9877 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9879 * arm-linux-nat.c: Really include arm-tdep.h.
9880 * config/arm/tm-linux.h (struct type, struct value): Declare.
9882 2002-02-11 Michael Snyder <msnyder@redhat.com>
9884 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9885 (gcore section): Ifdef for Solaris and Unixware only.
9886 (procfs_do_thread_registers): Unixware needs one lwpstatus
9887 per thread (not one prstatus or pstatus).
9888 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9889 not over all gdb threads. For unixware, call elfcore_write_pstatus
9890 once before iterating over threads.
9892 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9894 * arm-tdep.h: New file.
9895 * arm-tdep.c: Include arm-tdep.h.
9896 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9897 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9898 (arm_print_float_info, arm_register_type, convert_to_extended)
9899 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9900 (arm_extract_return_value, arm_register_name): Make static.
9901 (arm_software_single_step): Similarly. Fix types in declaration.
9902 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9903 (arm_store_return_value, arm_store_struct_return): New functions.
9904 (arm_gdbarch_init): Register the above functions. Also register
9905 call_dummy_start_offset, sizeof_call_dummy_words,
9906 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9907 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9908 max_register_virtual_size, register_size. Set up
9909 prologue_cache.saved_regs here, rather than ...
9910 (_initialize_arm_tdep): ... here.
9911 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9913 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9914 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9915 (arm_print_float_info, arm_register_type, convert_to_extended)
9916 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9917 (arm_extract_return_value, arm_register_name): Delete declarations.
9918 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9919 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9920 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9921 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9922 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9923 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9924 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9925 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9926 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9927 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9928 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9929 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9931 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9932 * remote-rdi.c remote-rdp.c: Likewise.
9933 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9934 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9935 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9938 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9939 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9940 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9941 from non-ARM_ prefixed definitions.
9942 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9944 * remote-rdi.c remote-rdp.c: Likewise.
9945 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9947 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9949 * arm-tdep.c (arm_frameless_function_invocation)
9950 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9951 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9952 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9953 (arm_pop_frame, arm_get_next_pc): Make static.
9954 (arm_gdbarch_init): Register above in gdbarch structure.
9955 (arm_read_fp): Renamed from arm_target_read_fp.
9956 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9957 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9958 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9959 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9960 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9961 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9962 (arm_pc_is_thumb_dummy): Delete declarations.
9963 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9964 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9965 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9966 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9968 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9970 * symtab.c (compare_search_syms): New function.
9971 (sort_search_symbols): New function.
9972 (search_symbols): Sort symbols after searching rather than
9975 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9977 * NEWS: Linux -> GNU/Linux.
9979 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9981 * gdbarch.sh: For for level one methods, disallow a definition
9982 when partially multi-arched. Add comments explaining rationale.
9983 * gdbarch.h: Re-generate.
9985 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9987 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9992 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9994 * gdbarch.c: Re-generate.
9996 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9998 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9999 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10002 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10004 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10005 multi-arch partial.
10006 (PUSH_ARGUMENTS): Switch to using predefault.
10007 * gdbarch.c: Regenerate.
10009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10011 * valops.c (PUSH_ARGUMENTS): Delete definition.
10012 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10013 partial. Default to default_push_arguments.
10014 * gdbarch.h, gdbarch.c: Regenerate.
10016 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10018 * defs.h (throw_exception): Rename return_to_top_level. Update
10020 * utils.c (error_stream, internal_verror, quit): Ditto.
10021 * top.c (throw_exception, catcher): Ditto.
10022 * sparclet-rom.c (sparclet_load): Ditto.
10023 * remote.c (interrupt_query, minitelnet): Ditto.
10024 * remote-sds.c (interrupt_query): Ditto.
10025 * remote-mips.c (mips_error, mips_kill): Ditto.
10026 * ocd.c (interrupt_query): Ditto.
10027 * monitor.c (monitor_interrupt_query): Ditto.
10028 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10029 * target.h: Update comment.
10031 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10033 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10035 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10036 default_double_format.
10037 * gdbarch.h, gdbarch.c: Re-generate.
10038 * findvar.c (floatformat_unknown): Delete variable definition.
10039 * doublest.h (floatformat_unknown): Delete variable declaration.
10041 2002-02-09 Jim Blandy <jimb@redhat.com>
10043 * stabsread.c (read_type): Add code to parse Sun's syntax for
10044 prototyped function types.
10046 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10048 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10049 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10051 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10053 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10054 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10055 now _initialize_xcoffsolib gets called again and overrides the
10056 commands from solib.c in a native configuration.
10058 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10060 * doublest.c (store_typed_floating): Don't try to return a value.
10063 2002-02-08 Jim Blandy <jimb@redhat.com>
10065 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10066 is prototyped and has no arguments, print its argument list as
10069 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10071 * MAINTAINERS (write-after-approval): Add myself.
10072 (paper-trail): I've escaped!
10074 2002-02-08 Christopher Faylor <cgf@redhat.com>
10076 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10078 (_initialize_check_for_gdb_ini): Ditto.
10080 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10082 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10083 xaprintf -> xasprintf.
10085 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10087 * win32-nat.c: Remove use of printf and sprintf functions.
10089 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10091 * arm-tdep.c (arm_frame_chain_valid): Make static.
10092 (arm_push_arguments): Likewise.
10093 (arm_gdbarch_init): New function.
10094 (_initialize_arm_tdep): Call it.
10095 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10096 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10097 (FRAME_CHAIN_VALID): Delete.
10098 (arm_frame_chain_valid): Delete declaration.
10099 (PUSH_ARGUMENTS): Delete.
10100 (arm_push_arguments): Delete declaration.
10101 (CALL_DUMMY_P): Delete.
10103 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10104 Corinna Vinschen <vinschen@redhat.com>
10106 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10107 on builtin float types.
10109 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10111 * utils.c: Include <curses.h> before "bfd.h".
10112 * tui/tui-hooks.c: Likewise.
10113 * tui/tui.c: Likewise.
10114 * tui/tuiCommand.c: Likewise.
10115 * tui/tuiData.c: Likewise.
10116 * tui/tuiDataWin.c: Likewise.
10117 * tui/tuiDisassem.c: Likewise.
10118 * tui/tuiGeneralWin.c: Likewise.
10119 * tui/tuiIO.c: Likewise.
10120 * tui/tuiLayout.c: Likewise.
10121 * tui/tuiRegs.c: Likewise.
10122 * tui/tuiSource.c: Likewise.
10123 * tui/tuiSourceWin.c: Likewise.
10124 * tui/tuiStack.c: Likewise.
10125 * tui/tuiWin.c: Likewise.
10127 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10129 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10130 to include space for pseudoregs as well. Update loops accordingly.
10131 (sh_fp_frame_init_saved_regs): Ditto.
10132 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10134 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10136 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10137 Add Richard Earnshaw to Arm maintainers.
10139 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10141 * defs.h (warning_begin): Delete declaration.
10143 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10146 2002-02-07 Michael Snyder <msnyder@redhat.com>
10148 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10149 Logic bug, remove misplaced else.
10151 2002-02-07 Klee Dienes <klee@apple.com>
10153 * fork-inferior.c (fork_inferior): Add '!' to the list of
10154 characters that need to be quoted when building a string for the
10155 shell. Quote '!' specifically with a backslash, since CSH chokes
10156 when trying to evaluate "str!str".
10158 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10160 * rdi-share/host.h: Only provide a typedef for bool if it is not
10163 2002-02-04 Michael Snyder <msnyder@redhat.com>
10165 * breakpoint.h (enum bptype): Add new overlay event bp type.
10166 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10168 * breakpoint.c (create_internal_breakpoint): New function.
10169 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10170 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10171 (create_thread_event_breakpoint): Ditto.
10172 (create_solib_event_breakpoint): Ditto.
10173 (create_overlay_event_breakpoint): New function.
10174 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10175 (update_breakpoints_after_exec): Delete and re-initialize
10176 overlay event breakpoints after an exec. Add FIXME comment
10177 about longjmp breakpoint.
10178 (print_it_typical): Ignore overlay event breakpoints.
10179 (print_one_breakpoint): Ditto.
10181 (bpstat_what): Do not stop for overlay event breakpoints.
10182 (delete_breakpoint): Don't delete overlay event breakpoints.
10183 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10184 (breakpoint_re_set): Re-create overlay event breakpoint.
10186 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10187 (overlay_manual_command): Disable overlay breakpoints.
10188 (overlay_off_command): Disable overlay breakpoints.
10190 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10192 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10193 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10194 to here from config/tm-arm.h.
10195 (coff_sym_is_thumb): Make static.
10196 (arm_elf_make_msymbol_special): New function.
10197 (arm_coff_make_msymbol_special): New function.
10198 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10199 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10200 (coff_sym_is_thumb): Delete declaration.
10201 (arm_elf_make_msymbol_special): Declare.
10202 (arm_coff_make_msymbol_special): Declare.
10203 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10204 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10206 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10208 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10210 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10212 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10213 * gdbarch.c gdbarch.h: Regenerate.
10214 * arch-utils.c (default_print_float_info): New function.
10215 * arch-utils.h (default_print_float_info): Prototype it.
10216 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10217 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10218 (PRINT_FLOAT_INFO): Document it.
10220 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10221 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10222 (PRINT_FLOAT_INFO): Define.
10224 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10226 * win32-nat.c (_initialize_check_for_gdb_ini):
10227 Add typecast to sprintf argument to suppress a warning.
10229 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10231 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10232 to allow easier handling of pass state.
10233 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10234 that gives exception name and address.
10235 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10236 and set last_sig value to ourstatus->value.sig. Some missing
10238 (child_continue): Correctly report continue_status.
10239 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10240 TARGET_SIGNAL_0 (new default value).
10241 (child_resume): consider sig argument passed to decide if
10242 the exception should be passed to debuggee or not.
10244 2002-02-05 Michael Snyder <msnyder@redhat.com>
10246 * regcache.c (fetch_register): Call target_fetch_register
10247 only if we don't call FETCH_PSEUDO_REGISTER.
10248 (store_register): Call target_store_register only if we
10249 don't call STORE_PSEUDO_REGISTER.
10251 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10253 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10254 ELF_MAKE_MSYMBOL_SPECIAL.
10255 * gdbarch.c, gdbarch.h: Regenerate.
10256 * arch-utils.c (default_make_msymbol_special): New function.
10257 * arch-utils.h (default_make_msymbol_special): Export.
10258 * elfread.c (elf_symtab_read): Compile use of
10259 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10261 * coffread.c (coff_symtab_read): Ditto, for
10262 COFF_MAKE_MSYMBOL_SPECIAL.
10264 2002-02-05 Jim Blandy <jimb@redhat.com>
10266 * solib-svr4.c (svr4_truncate_ptr): New function.
10267 (svr4_relocate_section_addresses): Do the address arithmetic with
10268 the appropriate truncation for target addresses, even when
10269 CORE_ADDR is larger than a target address.
10271 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10273 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10276 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10278 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10283 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10285 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10287 * gdbserver/linux-low.c: Remove unused include files.
10289 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10291 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10292 (read_inferior_memory): Use it.
10293 (write_inferior_memory): Likewise.
10295 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10297 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10298 grubbing through sys_errlist.
10300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10302 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10304 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10305 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10307 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10309 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10310 (do_sfunc, set_cmd_sfunc): New functions.
10312 * command.h (struct cmd_list_element): Add field func.
10313 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10314 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10315 * cli/cli-decode.h: Ditto.
10317 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10318 (help_all, help_cmd_list): Ditto.
10319 (find_cmd, complete_on_cmdlist): Ditto.
10320 * top.c (execute_command): Ditto.
10322 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10325 * infcmd.c (notice_args_read): Fix function signature.
10327 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10328 * cli/cli-decode.c (add_set_cmd): Ditto.
10329 * utils.c (initialize_utils): Ditto.
10330 * maint.c (_initialize_maint_cmds): Ditto.
10331 * infrun.c (_initialize_infrun): Ditto.
10332 * demangle.c (_initialize_demangler): Ditto.
10333 * remote.c (add_packet_config_cmd): Ditto.
10334 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10335 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10336 * proc-api.c (_initialize_proc_api): Ditto.
10337 * kod.c (_initialize_kod): Ditto.
10338 * valprint.c (_initialize_valprint): Ditto.
10339 * top.c (init_main): Ditto.
10340 * infcmd.c (_initialize_infcmd): Ditto.
10341 * corefile.c (_initialize_core): Ditto.
10342 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10343 * arch-utils.c (initialize_current_architecture): Ditto.
10344 (_initialize_gdbarch_utils): Ditto.
10345 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10347 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10348 * wince.c (_initialize_inftarg): Ditto.
10349 * symfile.c (_initialize_symfile): Ditto.
10350 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10351 * language.c (_initialize_language): Ditto.
10352 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10354 2002-02-04 Michael Snyder <msnyder@redhat.com>
10356 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10358 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10360 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10361 Add rules for building the register data files.
10363 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10365 * regformats/regdat.sh: Add braces to the definition of
10366 expedite_regs_${arch}.
10368 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10370 * regformats/regdef.h (struct reg): Add comment describing the
10371 requirements for offset and size fields.
10373 2002-02-04 Andreas Schwab <schwab@suse.de>
10375 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10376 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10378 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10380 * gdbarch.sh (copyright): Update years in generated header.
10381 (SMASH_TEXT_ADDRESS): Add rule.
10382 * gdbarch.h, gdbarch.c: Re-generate.
10383 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10384 * dbxread.c: Likewise.
10385 * dwarfread.c: Likewise.
10386 * elfread.c: Likewise.
10387 * somread.c: Likewise.
10389 * arm-tdep.c (arm_smash_text_address): New function.
10390 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10392 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10394 Add support for hardware watchpoints on win32 native.
10395 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10396 CONTEXT_DEBUG_REGISTERS.
10397 (dr variable): New variable. Static array containing a local copy
10398 of debug registers.
10399 (debug_registers_changed): New variable. Reflects when debug registers
10400 are changed and need to be written to inferior.
10401 (debug_registers_used): New variable. Reflects when any debug register
10402 was set, used when new threads are created.
10403 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10405 (thread_rec): Set dr array if id is the thread of current_event .
10406 (child_continue, child_resume): Change the debug registers for all
10407 threads if debug_registers_changed.
10408 (child_add_thread): Change the debug registers if debug_registers_used.
10409 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10410 Link nm.h to new nm-cygwin.h file.
10411 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10412 of hardware registers.
10414 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10416 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10417 Restore behavour broken by 2002-01-20 Andrew Cagney
10418 <ac131313@redhat.com> IEEE_FLOAT removal.
10420 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10422 * c-valprint.c (c_val_print): Pass a proper valaddr to
10423 cp_print_class_method.
10424 * valops.c (search_struct_method): If there is only one method
10425 and args is NULL, return that method.
10427 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10429 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10430 accessing tag_name directly.
10432 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10434 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10435 of accessing tag_name directly.
10437 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10440 * gdbtypes.c (replace_type): New function.
10441 * gdbtypes.h (replace_type): Add prototype.
10442 * stabsread.c (read_type): Use replace_type.
10444 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10446 * Makefile.in (memattr.o): Add missing dependencies rule.
10448 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10450 * breakpoint.c (break_at_finish_command): Really export.
10451 (break_at_finish_at_depth_command): Ditto.
10452 (tbreak_at_finish_command): Ditto.
10453 * hppa-tdep.c: Include completer.h.
10454 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10455 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10457 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10459 * utils.c (do_write): New function.
10460 (error_stream): Rewrite combining the code from error_begin and
10462 (verror): Rewrite using error_stream.
10463 (error_begin): Delete function.
10465 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10467 * utils.c (error_begin): Make static.
10468 * defs.h (error_begin): Delete declaration.
10470 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10471 (decode_line_1): Use cplusplus_error instead of error_begin,
10472 cplusplus_hint and return_to_top_level.
10473 * coffread.c (coff_symfile_read): Use error instead of error_begin
10474 and return_to_top_level.
10475 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10477 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10479 * language.h (type_error, range_error): Make string parameter
10481 * language.c (warning_pre_print): Delete extern declaration.
10482 * dwarfread.c (warning_pre_print): Ditto.
10483 * language.c (type_error, range_error): Rewrite to use verror and
10484 vwarning instead of warning_begin.
10486 2002-02-01 Michael Snyder <msnyder@redhat.com>
10488 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10489 (set_ignore_count): Move misplaced comment back where it belongs.
10491 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10493 * command.h (NO_FUNCTION): Delete macro.
10494 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10495 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10496 * tracepoint.c (_initialize_tracepoint): Ditto.
10497 * cli/cli-decode.c (add_set_cmd): Ditto.
10498 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10500 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10502 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10503 Update ``this'' pointer when calling virtual functions.
10505 2002-02-01 Michael Snyder <msnyder@redhat.com>
10507 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10508 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10510 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10512 * regformats/reg-arm.dat: New file.
10513 * regformats/reg-i386.dat: New file.
10514 * regformats/reg-ia64.dat: New file.
10515 * regformats/reg-m68k.dat: New file.
10516 * regformats/reg-mips.dat: New file.
10517 * regformats/reg-ppc.dat: New file.
10518 * regformats/reg-sh.dat: New file.
10519 * regformats/regdef.h: New file.
10520 * regformats/regdat.sh: New file.
10522 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10524 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10525 (arm_frame_args_address, arm_frame_locals_address): New functions.
10526 (arm_frame_num_args): New function.
10527 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10528 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10529 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10531 2002-01-31 Michael Snyder <msnyder@redhat.com>
10533 * breakpoint.c (break_at_finish_command): Export.
10534 (break_at_finish_at_depth_command): Export.
10535 (tbreak_at_finish_command): Export.
10536 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10537 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10538 "txbreak" commands, which are HPPA specific.
10540 * printcmd.c (disassemble_command): Remove an ancient
10541 artifact of an old merge.
10543 * symfile.h (enum overlay_debugging_state):
10544 Define enum constant values for overlay mode.
10545 * symfile.c (overlay_debugging): Use enums instead of literals.
10546 (overlay_is_mapped, overlay_auto_command,
10547 overlay_manual_command): Ditto.
10549 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10550 breakpoint_here_p, breakpoint_inserted_here_p,
10551 breakpoint_thread_match, bpstat_stop_status,
10552 describe_other_breakpoints, check_duplicates, clear_command):
10553 Coding standard fixes.
10555 * target.c (target_xfer_memory): Add spaces, coding standard.
10556 (do_xfer_memory): Add missing line to trust-readonly
10557 code: check bfd SEC_READONLY flag for section.
10559 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10561 * PROBLEMS: Fix typo, 5.1->5.1.1.
10563 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10565 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10566 data symbols, since we search based on textlow and texthigh.
10567 (find_pc_sect_symtab): Likewise.
10569 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10571 * defs.h (vwarning): Declare.
10572 * utils.c (vwarning): New function.
10573 (warning): Call vwarning.
10574 (warning_begin): Delete function.
10576 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10577 the warning message.
10578 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10581 2002-01-30 Michael Snyder <msnyder@redhat.com>
10583 * NEWS: Mention "set trust-readonly-sections" command.
10584 Mention generate-core-file command.
10586 2002-01-15 Michael Snyder <msnyder@redhat.com>
10588 * target.c: New command, "set trust-readonly-sections on".
10589 (do_xfer_memory): Honor the suggestion to trust readonly sections
10590 by reading them from the object file instead of from the target.
10591 (initialize_targets): Register command "set trust-readonly-sections".
10593 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10595 * parse.c (target_map_name_to_register): Simplify, search regs and
10596 pseudo-regs using a single loop.
10598 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10600 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10602 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10604 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10605 * config/i386/i386v42mp.mh: Add i387-nat.o .
10606 * i386v4-nat.c: Include i387-nat.h.
10607 (supply_fpregset): Use i387_supply_fsave.
10608 (fill_fpregset): Use i387_fill_fsave.
10610 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10612 * arm-tdep.c (arm_call_dummy_words): Define.
10613 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10614 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10615 (CALL_DUMMY_WORDS): Define.
10616 (arm_call_dummy_words): Declare.
10617 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10618 (arm_linux_call_dummy_words): Declare.
10620 2002-01-30 Andreas Schwab <schwab@suse.de>
10622 * m68klinux-nat.c: Fix last change to use regcache_collect
10623 instead of referencing registers[] directly.
10625 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10627 * parse.c (target_map_name_to_register): Delete code wrapped in
10628 #ifdef REGISTER_NAME_ALIAS_HOOK.
10630 2002-01-28 Michael Snyder <msnyder@redhat.com>
10632 * regcache.c (legacy_read_register_gen): Need to be able to
10633 read pseudo-register as well as real register.
10634 (legacy_write_register_gen): Ditto.
10636 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10638 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10639 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10640 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10641 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10642 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10643 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10644 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10645 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10646 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10647 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10648 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10649 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10650 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10651 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10652 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10653 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10654 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10655 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10656 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10657 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10659 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10661 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10662 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10663 (initialize_current_architecture): Update target_byte_order using
10664 information from BFD.
10665 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10666 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10668 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10670 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10671 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10673 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10674 #ifdef INVALID_FLOAT.
10675 * infcmd.c (do_registers_info): Ditto.
10676 * values.c (unpack_double): Ditto. Add comment.
10678 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10679 already commented out.
10681 2002-01-26 Andreas Schwab <schwab@suse.de>
10683 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10684 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10685 registers and add support for PTRACE_GETREGS.
10687 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10689 GDB 5.1.1 released from 5.1 branch.
10690 * NEWS: Add 5.1.1 news.
10691 * README: Sync with 5.1 branch.
10693 2002-01-23 Fred Fish <fnf@redhat.com>
10695 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10696 stabstring on initial malloc. Reallocing will copy it for us,
10699 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10701 * Makefile.in (hpread_h): Delete.
10702 (HFILES_NO_SRCDIR): Remove hpread.h.
10703 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10704 (hpread.o): Update dependencies.
10705 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10707 * hp-psymtab-read.c: Remove file.
10708 * hp-symtab-read.c: Remove file.
10709 * hpread.h: Remove file.
10711 * hpread.c: Merge all contents of hp-psymtab-read.c,
10712 hp-symtab-read.c and hpread.h into this file, as it was prior to
10715 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10716 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10717 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10718 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10720 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10722 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10723 fill_gregset): Call gdbarch_tdep() just once, assign result to
10724 variable and use that, instead of calling the function several
10727 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10729 * configure.host: Accept sparcv9 as alias for sparc64.
10730 * configure.tgt: Likewise.
10732 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10734 * solib-aix5.c (build_so_list_from_mapfile)
10735 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10736 arguments is not reversed.
10737 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10738 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10740 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10742 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10743 modified version of obsolete sh_fetch_pseudo_register.
10744 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10745 (sh4_register_read): New function.
10746 (sh_pseudo_register_write): New function. Renamed and modified
10747 version of obsolete sh_store_pseudo_register.
10748 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10749 (sh4_register_write): New function.
10750 (sh_gdbarch_init): Remove setting of gdbarch function
10751 fetch_pseudo_register and store_pseudo_register. Remove setting of
10752 register_convert_to_raw, register_convert_to_virtual,
10753 register_convertible.
10754 (sh_sh4_register_convertible): Delete. No longer needed. All is
10755 taken care by architecture specific functions
10756 register_read/register_write.
10757 (sh_sh4_register_convert_to_virtual): Make static.
10758 (sh_sh4_register_convert_to_raw): Ditto.
10760 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10762 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10763 (floatformat_is_nan, floatformat_mantissa): Ditto.
10765 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10766 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10767 builtin_type_ieee_double_little,
10768 builtin_type_ieee_double_littlebyte_bigword,
10769 builtin_type_m68881_ext, builtin_type_i960_ext,
10770 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10771 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10772 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10773 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10775 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10777 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10778 parameter. Set frameless flag if it exists and depended of
10779 whether the scanned function is frameless or not.
10780 (xstormy16_skip_prologue): If function is frameless, return
10781 result of xstormy16_scan_prologue().
10782 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10785 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10787 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10788 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10789 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10790 sh_sh4_register_byte, sh_sh4_register_raw_size,
10791 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10792 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10793 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10794 sh_store_pseudo_register, sh_do_pseudo_register): Call
10795 gdbarch_tdep() just once, assign result to variable and use that,
10796 instead of calling the function several times.
10798 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10800 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10801 macros instead of LAST_FPU_CTRL_REGNUM.
10802 (store_register): Likewise.
10804 2002-01-21 Jim Blandy <jimb@redhat.com>
10806 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10807 is up-to-date before running the program, not just when a program
10810 2002-01-21 Fred Fish <fnf@redhat.com>
10812 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10813 when we have found all instructions we are looking for.
10815 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10817 * arm-tdep.c (arm_register_name): New function.
10818 (arm_registers_names): Make static.
10819 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10820 (arm_register_name): Declare.
10821 (REGISTER_NAME): Use it.
10823 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10824 Kevin Buettner <kevinb@redhat.com>
10826 Convert arm targets to new FRAME interface.
10827 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10828 (arm_frame_find_save_regs): Delete.
10829 (arm_frame_init_saved_regs): New.
10830 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10831 Allocate extra_info as required. Convert all uses of fsr.regs
10832 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10834 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10835 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10836 (check_prologue_cache, save_prologue_cache): Likewise.
10837 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10838 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10839 (FRAME_FIND_SAVED_REGS): Delete.
10840 (arm_frame_find_saved_regs): Delete prototype.
10841 (arm_frame_init_saved_regs): New prototype.
10842 (FRAME_INIT_SAVED_REGS): Define.
10844 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10846 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10848 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10850 From Jeff Law <law@redhat.com>:
10851 * infttrace.c: Include <sys/pstat.h>.
10852 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10853 exec file if the ttrace equivalent fails.
10855 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10857 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10858 (closeLogFile): Ditto.
10860 2002-01-20 Michael Chastain <mec@shout.net>
10862 * top.c (print_gdb_version): Bump copyright year to 2002.
10864 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10866 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10867 Zannoni and Eli Zaretskii.
10869 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10871 * buildsym.c: Update copyright years.
10872 * c-typeprint.c: Likewise.
10873 * dwarf2read.c: Likewise.
10874 * f-typeprint.c: Likewise.
10875 * gdbtypes.c: Likewise.
10876 * gdbtypes.h: Likewise.
10877 * hp-symtab-read.c: Likewise.
10878 * hpread.c: Likewise.
10879 * mdebugread.c: Likewise.
10880 * p-typeprint.c: Likewise.
10882 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10884 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10885 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10886 byte-order selectable.
10887 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10888 * arch-utils.c: Ditto.
10889 (set_endian): Ditto.
10890 (set_endian_from_file): Ditto.
10891 * gdbserver/low-sim.c (create_inferior): Ditto.
10892 * gdbarch.sh: Ditto.
10893 * gdbarch.h: Re-generate.
10894 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10895 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10896 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10897 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10898 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10899 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10900 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10901 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10903 * config/mips/tm-wince.h: Remove #undef of macro
10904 TARGET_BYTE_ORDER_SELECTABLE.
10905 * config/sh/tm-wince.h: Ditto.
10907 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10909 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10910 member function fields. Add accessor macro
10911 TYPE_FN_FIELD_ARTIFICIAL.
10912 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10913 * c-typeprint.c (c_type_print_base): Skip artificial member
10916 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10918 * f-typeprint.c: Delete unused function f_type_print_args.
10919 * p-typeprint.c: Delete unused function pascal_type_print_args.
10921 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10923 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10924 comment. Add ``artificial'' to ``union field_location''.
10926 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10928 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10929 * mdebugread.c (parse_symbol): Likewise.
10930 * stabsread.c (define_symbol): Likewise.
10931 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10932 initializing TYPE_FIELD_BITPOS to n (obsolete).
10933 (hpread_doc_function_type): Likewise.
10934 * hpread.c (hpread_function_type): Likewise.
10936 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10938 * configure.in (host_makefile_frag): Only require a host makefile
10939 fragment when a native build.
10940 * configure: Re-generate.
10942 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10944 * doublest.h (floatformat_from_type): Declare.
10945 * doublest.c (floatformat_from_type): New function.
10946 (convert_typed_floating): Use.
10948 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10949 call to function floatformat_from_type.
10951 * gdbarch.sh (IEEE_FLOAT): Delete.
10952 * gdbarch.h, gdbarch.c: Re-generate.
10953 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10954 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10955 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10956 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10957 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10958 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10959 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10960 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10961 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10962 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10963 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10964 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10966 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10967 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10968 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10969 * sh-tdep.c (sh_gdbarch_init): Ditto.
10970 * mips-tdep.c (mips_gdbarch_init): Ditto.
10971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10972 * cris-tdep.c (cris_gdbarch_init): Ditto.
10974 2002-01-20 Jiri Smid <smid@suse.cz>
10976 * configure.host, configure.tgt: Support x86-64.
10977 * NEWS: Note new target x86-64.
10979 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10980 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10981 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10982 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10983 x86-64-linux-nat.o): Fix dependencies.
10985 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10987 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10988 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10989 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10990 * config/sparc/xm-sun4os4.h: Delete file.
10991 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10993 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10995 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10996 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10997 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10998 * config/i386/i386lynx.mh (XM_FILE): Delete.
10999 * config/rs6000/xm-rs6000ly.h: Delete file.
11000 * config/sparc/xm-sparclynx.h: Delete file.
11001 * config/m68k/xm-m68klynx.h: Delete file.
11002 * config/i386/xm-i386lynx.h: Delete file.
11003 * config/xm-lynx.h: Delete file.
11004 * config/djgpp/fnchange.lst: Update.
11006 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11008 * alpha-tdep.c (alpha_register_byte): New function.
11009 (alpha_register_raw_size): Ditto.
11010 (alpha_register_virtual_size): Ditto.
11011 (alpha_skip_prologue_internal): Renamed from
11012 alpha_skip_prologue.
11013 (alpha_skip_prologue): New version that calls
11014 alpha_skip_prologue_internal.
11015 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11016 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11017 second argument from alpha_skip_prologue.
11018 (REGISTER_BYTE): Use alpha_register_byte.
11019 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11020 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11021 (FRAMELESS_FUNCTION_INVOCATION): Use
11022 generic_frameless_function_invocation_not.
11023 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11024 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11026 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11028 * config/mips/xm-news-mips.h: Delete file.
11029 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11031 * config/m88k/xm-m88k.h: Delete file.
11032 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11033 * config/m88k/xm-delta88v4.h: Ditto.
11034 * config/m88k/xm-delta88.h: Ditto.
11036 * config/alpha/xm-fbsd.h: Delete file.
11037 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11039 * config/sparc/xm-sparc.h: Delete file.
11040 * Makefile.in (xm-sun4os4.h): Delete dependency.
11041 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11042 * config/sparc/xm-sun4os4.h: Ditto.
11043 * config/sparc/xm-linux.h: Ditto.
11045 * config/i386/xm-windows.h: Delete file.
11047 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11049 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11050 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11052 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11054 * alpha-tdep.c (alpha_call_dummy_words): New.
11055 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11056 (CALL_DUMMY_P): Define.
11057 (CALL_DUMMY_WORDS): Define.
11058 (SIZEOF_CALL_DUMMY_WORDS): Define.
11060 2002-01-19 Per Bothner <per@bothner.com>
11062 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11063 isn't NULL, which can happen with some gcj-3.x-produced code.
11065 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11067 * alpha-tdep.c (alpha_register_virtual_type): New function.
11068 (alpha_init_frame_pc_first): Ditto.
11069 (alpha_fix_call_dummy): Ditto.
11070 (alpha_store_struct_return): Ditto.
11071 (alpha_extract_struct_value_address): Ditto.
11072 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11073 alpha_register_virtual_type.
11074 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11075 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11076 alpha_extract_struct_value_address.
11077 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11078 (INIT_FRAME_PC): Use init_frame_pc_noop.
11079 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11081 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11083 * i386gnu-nat.c: Include "i386-tdep.h".
11084 (fetch_fpregs): Simplify code dealing with uninitialized floating
11085 point states such that it doesn't require FP7_REGNUM.
11087 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11089 * alpha-tdep.c (frame_extra_info): New.
11090 (alpha_find_saved_regs): Make static. Use
11092 (alpha_frame_init_saved_regs): New function.
11093 (alpha_frame_saved_pc): Use frame->extra_info.
11094 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11095 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11096 (init_extra_frame_info): Rename to...
11097 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11098 (alpha_print_extra_frame_info): New function.
11099 (alpha_frame_locals_address): Ditto.
11100 (alpha_frame_args_address): Ditto.
11101 (alpha_pop_frame): Use frame->extra_info.
11102 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11103 alpha_frame_args_address.
11104 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11105 (alpha_find_saved_regs): Remove prototype.
11106 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11107 (EXTRA_FRAME_INFO): Remove.
11108 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11109 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11111 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11113 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11114 (alpha_cannot_fetch_register): Ditto.
11115 (alpha_cannot_store_register): Ditto.
11116 (alpha_register_convertible): Ditto.
11117 (alpha_use_struct_convention): Ditto.
11118 * config/alpha/tm-alpha.h: Update copyright years.
11119 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11120 (INNER_THAN): Use core_addr_lessthan.
11121 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11122 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11123 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11124 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11125 (FRAME_CHAIN): Remove unnecessary cast.
11127 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11129 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11132 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11134 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11135 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11136 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11137 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11138 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11139 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11140 * x86-64-linux-nat.c: Ditto.
11142 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11144 * alpha-tdep.c (alpha_register_name): New function.
11145 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11146 (REGISTER_NAME): Define.
11148 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11150 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11152 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11154 * alpha-tdep.c: Update copyright years.
11155 (alpha_next_pc): New function.
11156 (alpha_software_single_step): Ditto.
11157 * config/alpha/tm-alpha.h: Add prototype for
11158 alpha_software_single_step.
11160 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11162 * alphabsd-nat.c: Update copyright years.
11163 (fill_gregset): Use regcache_collect.
11164 (fill_fpregset): Likewise.
11165 (fetch_inferior_registers): Only fetch integer registers
11166 if requested to do so.
11167 (store_inferior_registers): Only store integer registers
11168 if requested to do so.
11170 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11172 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11173 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11174 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11175 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11176 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11177 * config/arm/linux.mh (XDEPFILES): Delete.
11178 * config/arm/nbsd.mh (XDEPFILES): Delete.
11179 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11180 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11181 * config/i386/i386m3.mh (XDEPFILES): Delete.
11182 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11183 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11184 * config/i386/fbsd.mh (XDEPFILES): Delete.
11185 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11186 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11187 * config/i386/i386v4.mh (XDEPFILES): Delete.
11188 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11189 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11190 * config/i386/i386aix.mh (XDEPFILES): Delete.
11191 * config/i386/go32.mh (XDEPFILES): Delete.
11192 * config/i386/cygwin.mh (XDEPFILES): Delete.
11193 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11194 * config/i386/i386mach.mh (XDEPFILES): Delete.
11195 * config/i386/i386v32.mh (XDEPFILES): Delete.
11196 * config/i386/linux.mh (XDEPFILES): Delete.
11197 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11198 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11199 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11200 * config/i386/i386sco.mh (XDEPFILES): Delete.
11201 * config/i386/i386v.mh (XDEPFILES): Delete.
11202 * config/i386/nbsd.mh (XDEPFILES): Delete.
11203 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11204 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11205 * config/i386/symmetry.mh (XDEPFILES): Delete.
11206 * config/i386/obsd.mh (XDEPFILES): Delete.
11207 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11208 * config/ia64/linux.mh (XDEPFILES): Delete.
11209 * config/ia64/aix.mh (XDEPFILES): Delete.
11210 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11211 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11212 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11213 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11214 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11215 * config/m68k/linux.mh (XDEPFILES): Delete.
11216 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11217 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11218 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11219 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11220 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11221 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11222 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11223 * config/m88k/delta88.mh (XDEPFILES): Delete.
11224 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11225 * config/m88k/m88k.mh (XDEPFILES): Delete.
11226 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11227 * config/mips/linux.mh (XDEPFILES): Delete.
11228 * config/mips/irix6.mh (XDEPFILES): Delete.
11229 * config/mips/irix5.mh (XDEPFILES): Delete.
11230 * config/mips/irix4.mh (XDEPFILES): Delete.
11231 * config/mips/irix3.mh (XDEPFILES): Delete.
11232 * config/mips/decstation.mh (XDEPFILES): Delete.
11233 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11234 (NATDEPFILES): Move core-aout.o to here.
11235 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11236 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11237 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11238 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11239 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11240 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11241 * config/pa/hpux11.mh (XDEPFILES): Delete.
11242 * config/powerpc/aix.mh (XDEPFILES): Delete.
11243 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11244 * config/powerpc/linux.mh (XDEPFILES): Delete.
11245 * config/romp/rtbsd.mh: Rename XDEPFILES.
11246 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11247 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11248 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11249 * config/s390/s390.mh (XDEPFILES): Delete.
11250 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11251 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11252 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11253 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11254 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11255 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11256 * config/sparc/linux.mh (XDEPFILES): Delete.
11257 * config/vax/vaxult.mh (XDEPFILES): Delete.
11258 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11259 * Makefile.in (DEPFILES): Remove XDEPFILES.
11261 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11263 * utils.c (internal_verror): Fix comments, default is yes not no.
11264 Update queries to match. Default to quit and dump core.
11266 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11268 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11270 * defs.h, event-top.c, gdbcmd.h: Ditto.
11271 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11272 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11273 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11274 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11275 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11276 * mi/mi-main.c:Ditto.
11278 * stack.c, symfile.c: Update copyright.
11280 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11282 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11283 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11284 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11285 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11287 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11289 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11290 * gdbserver/low-lynx.c (myattach): Likewise.
11291 * gdbserver/low-nbsd.c (myattach): Likewise.
11292 * gdbserver/low-sim.c (myattach): Likewise.
11293 * gdbserver/low-sparc.c (myattach): Likewise.
11294 * gdbserver/low-sun3.c (myattach): Likewise.
11296 * gdbserver/low-linux.c (myattach): New function.
11298 * gdbserver/server.c (attach_inferior): New function.
11299 (main): Handle "--attach".
11301 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11303 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11306 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11308 * c-typeprint.c (is_type_conversion_operator): Add additional
11309 check for non-conversion operators.
11311 2002-01-15 Michael Snyder <msnyder@redhat.com>
11313 * linux-proc.c: Add "info proc" command, a la procfs.c.
11314 (read_mapping): New function, abstract and re-use code.
11315 (linux_find_memory_regions): Use new func read_mapping.
11316 (linux_info_proc_cmd): New function, implement "info proc".
11317 (_initialize_linux_proc): Add new command "info proc".
11319 2002-01-15 Michael Snyder <msnyder@redhat.com>
11321 * symfile.c (generic_load): Use bfd_map_over_sections method
11322 instead of manipulating bfd structure members directly.
11323 (add_section_size_callback): New function, bfd sections callback
11324 used by generic_load.
11325 (load_sections_callback): New function, bfd sections callback
11326 used by generic_load.
11328 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11330 [Based on work by Jim Blandy]
11331 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11332 (builtin_type_vec128): Export.
11333 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11335 (builtin_type_vec128): New builtin type for 128 bit vector
11337 (build_gdbtypes): Initialize builtin_type_v16qi and
11338 builtin_type_v8hi. Create the vec128 register builtin type
11340 (build_builtin_type_vec128): New function.
11341 (_initialize_gdbtypes): Register builtin_type_v16qi and
11342 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11343 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11344 AltiVec register to new builtin type.
11346 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11348 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11351 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11353 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11354 CLEAN_UP_REGISTER_VALUE.
11355 * regcache.c (supply_register): Update only call.
11357 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11359 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11360 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11361 a29k-*-vxworks* targets as obsolete.
11363 2002-01-14 Michael Snyder <msnyder@redhat.com>
11365 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11366 until we can resolve portability issues.
11367 * gregset.h: Remove references to fpxregs.
11368 * gcore.c (gcore_command): Initialize note_sec to NULL.
11370 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11372 * signals.c (target_signal_to_name): Rewrite. Only use
11373 signals[].name when in bounds and non-NULL.
11375 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11377 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11378 * signals.c (target_signal_to_name): Verify that SIG is within the
11379 bounds of the signals array.
11381 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11383 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11385 2002-01-13 Keith Seitz <keiths@redhat.com>
11387 * stack.c (print_frame_info_base): Print the frame's pc
11388 only if when print_frame_info_listing_hook is not defined.
11390 2002-01-13 Keith Seitz <keiths@redhat.com>
11392 * varobj.c (varobj_set_value): Make sure that there were no
11393 errors evaluating the object before attempting to set its
11395 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11396 so this offset adjustment is no longer necessary.
11397 (create_child): Don't set the error flag if the child is
11398 a CPLUS_FAKE_CHILD.
11399 (value_of_child): If value_fetch_lazy fails, return NULL
11400 so that callers will be notified that an error occurred.
11401 (c_value_of_variable): Delay check of variable's validity
11402 until later. We actually want all structs and unions to have
11404 Do not return "???" for variables which could not be evaluated.
11405 This error condition must be returned to the caller so that it
11406 can get the error condition from gdb.
11407 (cplus_name_of_child): Adjust index for vptr before figuring
11408 out the name of the child.
11409 (cplus_value_of_child): If a child's (real) parent is not valid,
11410 don't even bother trying to give a value for it. Just return
11411 an error. Change all instances in this function.
11412 (cplus_type_of_child): If our parent is one of the "fake"
11413 parents, we need to get at the type of the real parent, and
11414 derive the child's true type using this information.
11416 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11418 From 2002-01-09 John Marshall <johnm@falch.net>:
11419 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11420 sources.redhat.com, and tweak some related URLs which had
11421 suffered from linkrot.
11423 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11426 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11427 structures passed in registers.
11429 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11431 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11432 white space which prevented compilation. Reported by DSK
11433 <dsk@student.unsw.edu.au>.
11435 2002-01-11 Michael Snyder <msnyder@redhat.com>
11437 * symfile.c (build_section_addr_info_from_section_tab):
11438 Use bfd access method instead of manipulating bfd directly.
11439 (syms_from_objfile): Ditto.
11440 (simple_overlay_update_1): Ditto.
11441 (simple_overlay_update): Ditto.
11442 (generic_load): Ditto.
11443 (overlay_unmapped_address): FIXME comment, bfd access methods.
11444 (sections_overlap): FIXME comment, bfd access methods.
11445 (pc_in_mapped_range): FIXME comment, bfd access methods.
11446 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11447 (section_is_mapped): FIXME comment, bfd access methods.
11448 (section_is_overlay): FIXME comment, bfd access methods.
11450 * symfile.c (generic_load): Whitespace and long line cleanups.
11451 Remove duplicate variable, change several local variables to
11452 more appropriate data types.
11453 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11455 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11457 From Peter Schauer:
11458 * language.c (longest_local_hex_string_custom): Use phex_nz to
11459 convert NUM to a hex string.
11461 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11463 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11465 Update Copyright year.
11467 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11469 * language.c (longest_raw_hex_string): Delete unused function.
11471 2002-01-11 Petr Sorfa <petrs@caldera.com>
11473 * MAINTAINERS (write-after-approval): Add myself.
11474 * dwarf2read.c (read_tag_string_type): Handling of
11476 (read_tag_string_type): FORTRAN fix to prevent propagation of
11478 (set_cu_language): Handling of DW_LANG_Fortran95
11480 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11482 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11483 GETPID(inferior_ptid).
11484 (store_inferior_registers): Likewise.
11486 2002-01-10 Jason Merrill <jason@redhat.com>
11488 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11491 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11493 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11494 and bfd/elf32-sh-nbsd.c.
11496 2002-01-10 Michael Snyder <msnyder@redhat.com>
11498 * NEWS: Mention --pid and corefile/proc-id behavior change.
11500 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11501 * gcore.c: Include cli/cli-decode.h instead of command.h.
11503 * main.c (captured_main): Add new command line option "--pid".
11504 If the second command line argument (following the symbol-file)
11505 begins with a digit, try to attach to it before trying to open
11507 (print_gdb_help): Document the "--pid" argument.
11509 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11511 * completer.c (command_completer): New function.
11513 * completer.h <command_completer>: Add prototype.
11515 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11516 completer for the "help" command.
11518 2002-01-09 Jason Merrill <jason@redhat.com>
11520 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11522 2002-01-09 Michael Snyder <msnyder@redhat.com>
11524 * i386-linux-nat.c (fill_fpxregset): Make global.
11525 (store_fpxregset): Ditto.
11527 * gregset.h (gdb_fpxregset_t): Define.
11528 (supply_fpxregset): Prototype.
11529 (fill_fpxregset): Prototype.
11531 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11533 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11535 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11536 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11537 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11539 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11541 * MAINTAINERS: Update target maintainer rules so that any
11542 Maintainer can approve a tested patch for a maintenance-only
11545 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11547 * MAINTAINERS (write-after-approval): Add myself.
11549 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11552 2002-01-08 Michael Snyder <msnyder@redhat.com>
11554 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11555 real name of the executable, rather than the /proc name.
11557 2002-01-03 Michael Snyder <msnyder@redhat.com>
11559 Implement a "generate-core-file" command in gdb, save target state.
11560 * gcore.c: New file. Implement new command 'generate-core-file'.
11561 Save a corefile image of the current state of the inferior.
11562 * linux-proc.c: Add linux-specific code for saving corefiles.
11563 * target.h (struct target_ops): Add new target vectors for saving
11564 corefiles; to_find_memory_regions and to_make_corefile_notes.
11565 (target_find_memory_regions): New macro.
11566 (target_make_corefile_notes): New macro.
11567 * target.c (update_current_target): Inherit new target methods.
11568 (dummy_find_memory_regions): New place-holder method.
11569 (dummy_make_corefile_notes): New place-holder method.
11570 (init_dummy_target): Initialize new dummy target vectors.
11571 * exec.c (exec_set_find_memory_regions): New function.
11572 Allow the exec_ops vector for memory regions to be taken over.
11573 (exec_make_note_section): New function, target vector method.
11574 * defs.h (exec_set_find_memory_regions): Export prototype.
11575 * procfs.c (proc_find_memory_regions): New function, corefile method.
11576 (procfs_make_note_section): New function, corefile method.
11577 (init_procfs_ops): Set new target vector pointers.
11578 (find_memory_regions_callback): New function.
11579 (procfs_do_thread_registers): New function.
11580 (procfs_corefile_thread_callback): New function.
11581 * sol-thread.c (sol_find_memory_regions): New function.
11582 (sol_make_note_section): New function.
11583 (init_sol_thread_ops): Initialize new target vectors.
11584 * inftarg.c (inftarg_set_find_memory_regions): New function.
11585 Allow to_find_memory_regions vector to be taken over.
11586 (inftarg_set_make_corefile_notes): New function.
11587 Allow to_make_corefile_notes vector to be taken over.
11588 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11589 interface layer if not target_has_execution (may be a corefile).
11590 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11591 * config/sparc/sun4sol2.mh: Ditto.
11592 * config/alpha/alpha-linux.mh: Ditto.
11593 * config/arm/linux.mh: Ditto.
11594 * config/i386/x86-64linux.mh: Ditto.
11595 * config/ia64/linux.mh: Ditto.
11596 * config/m68k/linux.mh: Ditto.
11597 * config/mips/linux.mh: Ditto.
11598 * config/powerpc/linux.mh: Ditto.
11599 * config/sparc/linux.mh: Ditto.
11601 2002-01-07 Michael Snyder <msnyder@redhat.com>
11603 * arm-linux-nat.c: Remove references to regcache.c internal data
11604 (registers[] and register_valid[]).
11606 2002-01-07 Michael Snyder <msnyder@redhat.com>
11608 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11609 so that attaching to a pid will automatically read the process's
11610 symbol file and shlibs.
11611 * Makefile.in: Add rule for linux-proc.o.
11612 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11613 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11614 * config/arm/linux.mh: Ditto.
11615 * config/i386/linux.mh: Ditto.
11616 * config/i386/x86-64linux.mh: Ditto.
11617 * config/ia64/linux.mh: Ditto.
11618 * config/m68k/linux.mh: Ditto.
11619 * config/mips/linux.mh: Ditto.
11620 * config/powerpc/linux.mh: Ditto.
11621 * config/sparc/linux.mh: Ditto.
11623 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11625 * win32-nat.c: Add i386-tdep.h dependency.
11627 2002-01-07 Michael Snyder <msnyder@redhat.com>
11629 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11630 instead of bfd_get_arch_size. Don't bail out just because
11631 there's no exec_bfd.
11633 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11634 * p-valprint.c (pascal_object_print_value): Ditto.
11635 * somread.c (som_symtab_read): Ditto.
11636 * symfile.c (simple_free_overlay_region_table): Ditto.
11637 * valops.c (value_assign): Ditto.
11639 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11640 use tilde_expand and strerror for opening save-tracepoints file.
11642 * thread-db.c (thread_db_new_objfile): Indendation fix.
11644 * infptrace.c (GDB_MAX_ALLOCA): New define.
11645 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11646 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11647 can be overridden with whatever value is appropriate to the host).
11648 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11649 alloca to allocate potentially large buffer.
11650 * rs6000-nat.c (child_xfer_memory): Ditto.
11651 * symm-nat.c (child_xfer_memory): Ditto.
11652 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11654 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11656 From Nick Clifton <nickc@redhat.com>
11657 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11659 2002-01-07 Michael Snyder <msnyder@redhat.com>
11661 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11662 Don't use exec_bfd if it's NULL.
11664 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11666 * valops.c (value_arg_coerce): Fix formatting.
11668 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11670 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11671 * gnu-nat.c: Ditto.
11673 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11675 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11676 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11677 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11678 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11679 z8k-coff have not been multi-arched. Update z8k-coff build
11682 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11684 * MAINTAINERS: Mark a29k target as obsolete.
11685 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11686 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11688 * NEWS: Note that a29k targets are obsolete.
11689 * a29k-tdep.c: Mark as obsolete.
11690 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11691 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11692 a29k-*-vxworks* targets as obsolete.
11693 * remote-adapt.c: Obsolete.
11694 * remote-eb.c: Obsolete.
11695 * remote-mm.c: Obsolete.
11696 * remote-udi.c: Obsolete.
11697 * config/a29k/a29k-udi.mt: Obsolete.
11698 * config/a29k/a29k.mt: Obsolete.
11699 * config/a29k/tm-a29k.h: Obsolete.
11700 * config/a29k/tm-vx29k.h: Obsolete.
11701 * config/a29k/vx29k.mt: Obsolete.
11703 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11705 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11706 with BFD_ENDIAN_BIG.
11708 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11710 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11711 * configure, config.in: Re-generate.
11712 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11713 * defs.h: Do not include <endian.h>.
11715 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11717 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11718 * config.in: Regenerate.
11719 * configure.in: Update copyright years.
11720 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11721 * configure: Regenerate.
11722 * i386bsd-nat.c: Update copyright years.
11723 (fill_gregset): Use regcache_collect.
11724 (fetch_inferior_registers): Only fetch integer registers
11725 if requested to do so. Add support for XMM registers
11726 using PT_GETXMMREGS.
11727 (store_inferior_registers): Only store integer registers
11728 if requested to do so. Add support for XMM registers
11729 using PT_SETXMMREGS.
11730 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11731 (store_inferior_registers): Remove.
11732 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11733 (fetch_elfcore_registers): New function.
11734 (i386nbsd_elfcore_fns): New.
11735 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11736 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11738 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11739 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11740 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11741 * config/i386/tm-nbsd.h: Update copyright years.
11742 (HAVE_SSE_REGS): Define.
11743 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11744 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11745 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11746 (SIGCONTEXT_PC_OFFSET): Remove.
11747 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11749 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11751 * configure.tgt: Remove powerpc-*-macos* target.
11752 * config/m68k/xm-mpw.h: Delete file.
11753 * config/xm-mpw.h: Delete file.
11754 * ser-mac.c: Delete file.
11755 * mpw-make.sed: Delete file.
11756 * mpw-config.in: Delete file.
11757 * mac-xdep.c: Delete file.
11758 * mac-gdb.r: Delete file.
11759 * mac-defs.h: Delete file.
11760 * mac-nat.c: Delete file.
11761 * config/powerpc/macos.mh: Delete file.
11762 * config/powerpc/macos.mt: Delete file.
11763 * config/powerpc/nm-macos.h: Delete file.
11764 * config/powerpc/tm-macos.h: Delete file.
11765 * source.c (openp, open_source_file): Remove obsolete code.
11766 * top.c (gdb_readline): Ditto.
11767 * utils.c (query): Ditto.
11768 * event-top.c (display_gdb_prompt): Ditto.
11769 * Makefile.in (ser-mac.o): Delete obsolete target.
11772 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11774 * defs.h (BIG_ENDIAN): Delete macro definition.
11775 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11776 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11777 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11778 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11779 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11780 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11781 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11782 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11783 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11784 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11785 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11786 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11787 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11788 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11789 * gdbarch.c: Re-generate.
11791 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11793 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11796 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11798 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11800 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11802 * value.h (value_ptr): Delete typedef.
11804 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11806 * i386nbsd-nat.c: Update copyright years.
11807 Include i386-tdep.h.
11809 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11811 * stabsread.c: Update copyright years.
11813 From Debashis Mahata <debashis.mahata@wipro.com>:
11814 (read_struct_fields): Deal with Sun C compiler erroneous stab
11815 output for structs and unions.
11818 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11820 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11823 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11825 * cp-abi.c: Fix whitespace.
11826 (baseclass_offset): New wrapper function.
11827 * cp-abi.h (baseclass_offset): Add prototype.
11828 (struct cp_abi_ops): Add baseclass_offset pointer.
11830 * valops.c (vb_match): Move to...
11831 * gnu-v2-abi.c (vb_match): here.
11832 * valops.c (baseclass_offset): Move to...
11833 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11835 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11837 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11838 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11839 * hpacc-abi.c (init_hpacc_ops): Likewise.
11841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11843 * valops.c (find_overload_match): Accept obj as a
11844 reference parameter. Update it before returning.
11845 * value.h (find_overload_match): Update prototype.
11846 * eval.c (evaluate_subexp_standard): Pass object to
11847 find_overload_match by reference.
11849 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11851 * valarith.c: Replace value_ptr with struct value pointer. Remove
11852 register attribute from value declarations.
11855 * scm-lang.c (scm_lookup_name): Ditto.
11857 2002-01-03 Michael Snyder <msnyder@redhat.com>
11859 Abstract the functionality of iterating over mapped memory
11860 regions into a general purpose iterator function.
11861 * procfs.c (iterate_over_mappings): New function, general purpose
11862 iterator for memory sections.
11863 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11864 (solib_mappings_callback): New function, callback for above.
11865 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11866 (info_mappings_callback): New function, callback for above.
11868 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11870 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11872 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11873 * i386-tdep.c: Include "elf-bfd.h".
11874 (process_note_abi_tag_sections): New function.
11875 (i386_gdbarch_init): Add code to recognize various OS/ABI
11878 * maint.c (_initialize_maint_cmds): Add missing \ in
11881 For older changes see ChangeLog-2001
11887 version-control: never