1 2002-10-11 Adam Fedor <fedor@gnu.org>
3 * printcmd.c (address_info): Print 'self' for ObjC.
5 2002-10-11 Adam Fedor <fedor@gnu.org>
7 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
10 2002-10-11 Adam Fedor <fedor@gnu.org>
12 * language.h (CAST_IS_CONVERSION): Add language_objc.
14 2002-10-11 Adam Fedor <fedor@gnu.org>
16 * defs.h (enum language): Add language_objc.
18 2002-10-11 Klee Dienes <kdienes@apple.com>
20 * findvar.c (read_memory_typed_address): New function.
21 * gdbcore.h (read_memory_typed_address): Add prototype.
22 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
23 to read a value destined for a CORE_ADDR, not read_memory_integer.
24 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
25 (f77_get_dynamic_lowerbound): Ditto.
27 2002-10-11 Martin M. Hunt <hunt@redhat.com>
29 * utils.c (string_to_core_addr): After turning string into
30 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
31 which will do necessary sign-extension, etc.
33 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
35 * c-exp.y (THIS): Delete token and grammar rule.
36 (yylex): Don't return THIS.
37 * cp-valprint.c (vtbl_ptr_name_old): Delete.
38 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
39 * demangle.c (cplus_markers): Update comment. Put '$'
40 first. Remove CPLUS_MARKER.
41 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
42 * jv-exp.y (THIS): Delete token and grammar rule.
43 (yylex): Don't return THIS.
44 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
45 * objc-exp.y (THIS): Delete token and grammar rule.
46 (yylex): Don't return THIS.
47 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
48 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
49 (read_member_functions): Likewise for opname.
50 (read_tilde_fields): Use is_cplus_marker.
52 * defs.h (CPLUS_MARKER): Don't define.
53 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
54 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
55 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
56 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
57 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
59 * config/i386/tm-i386v4.h: Delete file.
60 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
61 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
62 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
63 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
64 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
65 * config/i386/i386sco5.mt (TM_FILE): Likewise.
66 * config/i386/i386v4.mt (TM_FILE): Likewise.
67 * config/i386/ncr3000.mt (TM_FILE): Likewise.
69 2002-10-10 Marko Mlinar <markom@opencores.org>
71 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
72 accidentially not commited 2002-10-09
73 * gdbarch.h, gdbarch.c: Re-generate.
75 2002-10-09 Marko Mlinar <markom@opencores.org>
77 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
78 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
79 * gdbarch.h, gdbarch.c: Re-generate.
81 2002-10-08 Petr Sorfa <petrs@caldera.com>
83 Revised and re-submitted by John Wolfe <jlw@caldera.com>
85 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
86 so we can work on more than one compilation unit at a time. This
87 helps prepare GDB to handle inter-CU die references.
88 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
89 the code to be defined before struct comp_unit_head.
90 (comp_unit_head): Added new members - offset, cu_head,
91 begin_die, next and dwarf2_abbrevs.
92 (dwarf2_abbrevs): Removed single static var; now member of
93 struct comp_unit_head.
94 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
96 (psymtab_to_symtab_1): Changed to work with the new
97 struct comp_unit_head.
98 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
99 constructs the dwarf2_abbrevs[] inside the cu_header.
100 (dwarf2_empty_abbrev_table): Now expects a ptr to a
101 dwarf2_abbrev table to clean up.
102 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
103 handling of dwarf2_abbrevs inside the cu_header.
104 (read_partial_die): Now supports the call to the new
105 dwarf2_lookup_abbrev.
106 (read_full_die): Now supports the call to the new
107 dwarf2_lookup_abbrev.
109 2002-10-06 Christopher Faylor <cgf@redhat.com>
111 * Makefile.in (install-gdbtk): Add missing continuation backslash to
112 insure that shell variables, such as "transformed_name" are propagated
113 to later shell statements in rule.
115 2002-10-06 Mark Kettenis <kettenis@gnu.org>
117 * config/i386/nm-i386sco.h: Add protection against
118 multiple-inclusion. Include "i386/nm-i386v.h".
119 (REGISTER_U_ADDR): Remove define.
120 (i386_register_u_addr): Remove prototype.
122 2002-10-04 Michael Snyder <msnyder@redhat.com>
124 * m32r-stub.c (handle_exception): Make sure exception is "trap"
125 before treating it as a single-step event.
127 2002-10-03 Adam Fedor <fedor@gnu.org>
129 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
130 (objc_demangle): Remove assignment in if statements, Replace
132 (add_msglist): Likewise.
133 (end_msglist): Likewise.
134 (complare_selectors): Likewise.
135 (selectors_info): Likewise.
136 (compare_classes): Likewise.
137 (classes_info): Likewise.
138 (print_object_command): Likewise.
139 (find_objc_msgcall_submethod): Replace PTR with void *.
140 * objc-lang.h: Remove check for __STDC__.
142 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
144 * ui-out.h (ui_out_field_fmt_int): New prototype.
145 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
146 of field width and alignment.
147 * stack.c (print_frame_info_base): When printing frame level, use
148 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
151 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
153 * MAINTAINERS: Add self to Write After Approval list.
155 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
157 * infcmd.c (interrupt_target_command_wrapper): Delete.
158 (interrupt_target_command): Make non static.
159 (nofp_registers_info): Make static.
160 * stack.c (return_command_wrapper): Delete.
161 (return_command): Make non static.
163 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
165 * event-top.c (gdb_setup_readline): New function. Code moved from
166 _initialize_event_loop().
167 (_initialize_event_loop): Call gdb_setup_readline().
169 2002-10-02 Andrew Cagney <ac131313@redhat.com>
171 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
172 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
173 * gdbarch.h, gdbarch.c: Re-generate.
175 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
178 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
180 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
181 of fill_in_vptr_fieldno.
183 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
185 * inferior.h (registers_info, stepi_command, nexti_command,
186 continue_command, interrupt_target_command): Export from infcmd.c.
187 * frame.h (args_info, selected_frame_level_changed_hook,
188 return_command): Export from stack.c.
189 * v850ice.c (stepi_command, nexti_command, continue_command): use
190 prototypes from inferior.h.
191 * tracepoint.c (registers_info, args_info, locals_info): Use
192 prototypes from frame.h and inferior.h.
193 * Makefile.in (mi-main.o): Add dependency on frame.h.
195 2002-10-02 Andrew Cagney <ac131313@redhat.com>
197 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
198 value in register 3 adjusted by ppc_gp0_regnum.
200 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
202 2002-10-02 Marko Mlinar <markom@opencores.org>
204 * MAINTAINERS: Add myself to the Write After Approval list.
206 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
208 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
209 of the section for the N64 ABI, fixed.
211 * config/mips/tm-irix6.h: Include solib.h.
213 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
215 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
218 2002-10-01 Andrew Cagney <ac131313@redhat.com>
220 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
221 and that "mi0" syntax has been removed.
223 2002-09-30 David Carlton <carlton@math.stanford.edu>
225 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
226 * ppc-sysv-tdep.c: #include "gdb_string.h".
227 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
230 2002-10-01 Andrew Cagney <ac131313@redhat.com>
232 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
233 "vrsave"'s register number.
235 2002-09-30 Andrew Cagney <ac131313@redhat.com>
237 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
238 use frame_unwind_signed_register to obtain the PC.
239 (mips_frame_chain): Handle a generic dummy frame.
240 (mips_init_extra_frame_info): When a generic dummy frame, don't
241 re-compute the frame base.
242 (mips_pop_frame): Handle generic dummy frames.
243 (mips_gdbarch_init): When generic dummy frames, set
244 use_generic_dummy_frames, push_dummy_frame to
245 generic_push_dummy_frame, pc_in_call_dummy to
246 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
247 generic_save_dummy_frame_tos.
249 2002-09-30 Andrew Cagney <ac131313@redhat.com>
251 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
252 against TOP when TOP was explictly set.
253 (generic_push_dummy_frame): Set TOP to zero.
255 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
257 * event-loop.c (start_event_loop): Rename variable 'result' to
258 'gdb_result', to avoid conflicts with upcoming intepreters changes.
260 2002-09-30 Keith Seitz <keiths@redhat.com>
262 * gdb-events.sh (selected_thread_changed): New event.
263 * gdb-events.c: Regenerated.
264 * gdb-events.h: Regenerated.
266 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
268 * MAINTAINERS: Add self to Write After Approval list.
270 2002-09-30 Fernando Nasser <fnasser@redhat.com>
272 * disasm.c: New file.
273 * disasm.h: New file.
274 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
275 (compare_lines): Ditto.
277 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
279 (do_assembly_only): Ditto.
280 (do_disassembly): Renamed to gdb_disassembly and moved to
281 disasm.c. Sdded uiout argument.
282 * Makefile.in: Add new files. Reorder SFILES list. Update
283 dependencies. Include libgdb.a later in the insight executable.
285 2002-09-29 Andrew Cagney <ac131313@redhat.com>
287 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
288 bfd/elf64-alpha-fbsd.c.
290 2002-09-29 Andrew Cagney <ac131313@redhat.com>
292 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
295 2002-09-29 Andrew Cagney <ac131313@redhat.com>
297 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
299 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
301 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
302 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
303 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
304 (S_msg_sig_post_reply): Ditto.
306 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
308 * sh-tdep.c (sh_use_struct_convention): Use definition according
310 (sh_push_arguments): Store in register with correct endianess.
311 (sh_default_store_return_value): Ditto.
312 (sh_gdbarch_init): Set sizeof long double to 8.
314 2002-09-27 Mark Kettenis <kettenis@gnu.org>
316 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
317 Fix some whitespace problems.
319 2002-09-27 David Carlton <carlton@math.stanford.edu>
321 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
322 (mcore-tdep.o): Ditto.
323 (ns32k-tdep.o): Ditto.
324 (ns32knbsd-tdep.o): Ditto.
327 * cris-tdep.c: #include "gdb_string.h"
328 * mcore-tdep.c: Ditto.
329 * ns32k-tdep.c: Ditto.
330 * ns32knbsd-tdep.c: Ditto.
334 2002-09-27 David Carlton <carlton@math.stanford.edu>
336 * config/djgpp/fnchange.lst: Add entries for
337 gdb/testsuite/gdb.c++/m-static files.
339 2002-09-27 Jim Wilson <wilson@redhat.com>
341 * MAINTAINERS: Add myself to the Write After Approval list.
343 2002-09-26 Martin M. Hunt <hunt@redhat.com>
345 * mips-tdep.c (find_proc_desc): Initialize startaddr.
348 2002-09-26 Andrew Cagney <ac131313@redhat.com>
350 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
353 2002-09-26 Andrew Cagney <ac131313@redhat.com>
355 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
356 (rs6000_struct_return_address): Delete variable.
357 (rs6000_store_struct_return): Update.
358 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
359 deprecated_extract_struct_value_address.
360 (rs6000_frame_align): New function.
361 (rs6000_gdbarch_init): Set frame_align.
363 2002-09-26 Andrew Cagney <ac131313@redhat.com>
365 From Grace Sainsbury <graces@redhat.com>:
366 * Makefile.in (gdbtk-main.o): New target.
369 (main.o): Update dependencies.
370 (gdb$(EXEEXT)): Add gdb.o.
371 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
372 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
373 (SUBDIR_GDBTK_CLEAN): Set.
374 (install-gdbtk): Install the insight binary.
375 (uninstall-gdbtk): New target.
376 (all-gdbtk, clean-gdbtk): New rule.
377 * top.c (use_windows): Default to zero.
378 * main.c: Include "main.h".
380 (struct captured_main_args): Delete.
381 (gdb_main): New function.
385 2002-09-25 Andrew Cagney <cagney@redhat.com>
387 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
388 (frame_map_regnum_to_name): New function.
389 (frame_map_name_to_regnum): New function.
390 * frame.h (frame_map_name_to_regnum): Declare.
391 (frame_map_regnum_to_name): Declare.
392 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
393 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
394 * parse.c: Do not include "builtin-regs.h".
395 (target_map_name_to_register): Delete function.
396 (write_dollar_variable): Use frame_map_name_to_regnum.
397 * parser-defs.h (target_map_name_to_register): Delete declaration.
398 * expprint.c: Include "frame.h".
399 (print_subexp): Use frame_map_regnum_to_name.
400 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
401 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
403 2002-09-25 Andrew Cagney <ac131313@redhat.com>
405 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
406 wasn't saved, and the next innermost frame is a dummy, return the
407 dummy frame's link register.
409 2002-09-24 Jim Blandy <jimb@redhat.com>
412 * main.c (captured_main): Add a `break' after the case for 'b'.
414 2002-09-24 Keith Seitz <keiths@redhat.com>
416 * varobj.c (c_type_of_child): Use get_target_type instead
419 2002-09-22 Fernando Nasser <fnasser@redhat.com>
421 * source.c (get_current_or_default_source_symtab_and_line): Remove
423 (set_default_source_symtab_and_line): New function. Attempts to
424 determine a source file to list lines from if one is not currently
426 (get_current_source_symtab_and_line): Initialize sal.pc and
428 (set_current_source_symtab_and_line): Mark argument as const.
429 * source.h: Update declarations and comments.
430 * linespec.c (decode_line_1): Replace call to removed routine above.
431 * stack.c (print_frame_info_base): Ditto.
432 * cli/cli-cmds.c (edit_command): Ditto.
433 (list_command): Ditto.
435 2002-09-22 Fernando Nasser <fnasser@redhat.com>
437 * source.c (get_current_or_default_source_symtab_and_line): Initialize
438 sal.pc and sal.end fields.
439 (get_current_or_default_source_symtab_and_line): Ditto.
440 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
441 so we do not cause a new source symtab to be searched for (reverting an
442 unintentional change from the 2002-09-20 patch).
443 * scm-lang.c (scm_unpac): Ditto.
445 2002-09-21 Andrew Cagney <cagney@redhat.com>
447 * complaints.c (symfile_explanations): Remove new-line from
448 ``isolated_message''.
449 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
450 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
452 2002-09-20 Nick Clifton <nickc@redhat.com>
454 * NEWS: Announce that V850EA ISA is no longer supported.
455 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
457 2002-09-20 David Carlton <carlton@math.stanford.edu>
459 * Makefile.in (c-lang.o): Correct dependencies.
460 (utils.o): Gather dependencies.
462 * c-lang.c: #include "gdb_string.h"
464 2002-09-20 Fernando Nasser <fnasser@redhat.com>
466 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
467 * cli/cli-cmds.c (list_command): New function. Implements the new
469 (_init_cli_cmds): Add new command definition.
470 * gdb.1: Document edit command.
471 * doc/gdb.texinfo: Document edit command.
473 2002-09-20 Fernando Nasser <fnasser@redhat.com>
475 * source.c: Make global variables current_source_symtab and
476 current_source_line static.
477 (list_command): Moved to cli/cli-cmds.c.
478 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
479 (get_first_line_listed): New accessor function.
480 (get_lines_to_list): New accessor function.
481 (get_current_source_symtab_and_line): New function. Retrieves the
482 position in the source code that we consider current.
483 (get_current_or_default_source_symtab_and_line): New function.
484 Like the above but attempts to determine a default position if one
485 is not currently defined.
486 (set_current_source_symtab_and_line): New function. Sets the source
487 code position considered current and returns the previously set one.
488 (clear_current_source_symtab_and_line): Reset stored information about
489 a current source line.
490 (_initialize_source): Remove registration for the "list" command and
492 * source.h: Add declarations for the new functions above.
493 * symtab.h: Remove declarations for the global variables mentioned
495 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
496 obtain current source line.
497 * linespec.c (decode_line_1): Ditto.
498 * macroscope.c (default_macro_scope): Ditto.
499 * scm-lang.c (scm_unpac): Ditto.
500 * stack.c (print_frame_info_base): Ditto.
501 * symfile.c (clear_symtab_users): Ditto.
502 * symtab.c (decode_line_spec): Ditto.
503 * cli/cli-cmds.c (list_command): Moved here from source.c.
504 (ambiguous_line_spec): Moved here from source.c.
505 (_init_cli_cmds): Add definition for "list" and its alias.
506 * Makefile.in: Update dependencies.
508 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
510 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
511 with what gcc thinks is correct.
513 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
515 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
516 multiple register push instruction.
518 2002-09-19 Jim Blandy <jimb@redhat.com>
520 Add support for distinct host and target character sets.
521 * charset.c, charset.h: New files.
522 * c-exp.y: #include "charset.h".
523 (yylex): Convert character and string literals to the target
524 character set, before returning them as the semantic value of the
526 * c-lang.c: #include "charset.h".
527 (c_emit_char): Use charset-specific methods to recognize
528 characters with backslash escape forms, to decide which characters
529 to print literally and which to print using numeric escape
530 sequences, and to convert target characters to host characters
532 * utils.c: #include "charset.h".
533 (no_control_char_error): New function.
534 (parse_escape): Use charset-specific methods to recognize
535 backslash escapes, parse `control character' notation, and convert
536 characters from the host character set to the target character set.
537 * configure.in: Set the default host character set.
538 Check where to find iconv, and what its argument types might be.
539 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
540 * Makefile.in (SFILES): List charset.c.
541 (COMMON_OBS): List charset.o.
542 (charset.o): New rule.
543 (charset_h): New header dependency variable.
544 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
545 (LIBICONV): New variable, set by configure.
546 (CLIBS): Include $(LIBICONV) here.
547 * aclocal.m4, config.in, configure: Regenerated.
549 2002-09-19 Joel Brobecker <brobecker@gnat.com>
551 * ada-exp.y: Add missing semicolons to end rules. Fixes a
554 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
556 * gdb_mbuild.sh: New file.
558 2002-09-19 Andrew Cagney <ac131313@redhat.com>
560 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
562 2002-09-18 Andrew Cagney <ac131313@redhat.com>
564 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
565 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
566 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
567 valops.c, value.h: Revert previous change.
569 2002-09-18 Michael Snyder <msnyder@redhat.com>
571 Preliminary support for Objective-C:
572 * defs.h (language_objc): New enum value.
573 (puts_filtered_tabular): Declaration only, exported from utils.c.
574 (skip_quoted): Delete, declared in completer.h.
575 * c-exp.y: Include completer.h.
578 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
579 New operator enum values.
580 * language.h (CAST_IS_CONVERSION): Test for language_objc.
581 * language.c (binop_result_type): Handle language_objc case.
582 (integral_type, character_type, string_type, boolean_type,
583 structured_type, binop_type_check): Ditto.
584 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
585 (struct objc_specific): Add to general_symbol_info.
586 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
587 (SYMBOL_DEMANGLED_NAME): Handle objc case.
588 * parser-defs.h (struct objc_class_str): New struct type.
589 (start_msglist, end_msglist, add_msglist): Declaration only,
590 exported from objc-lang.c.
591 * value.h (value_of_local, value_nsstring,
592 call_function_by_hand_expecting_type): Exported from valops.c.
593 * valops.c (find_function_addr): Export.
594 (call_function_by_hand_expecting_type): New function.
595 (value_of_local): New function.
596 * symfile.c (init_filename_language_table): Add ".m" extension
598 * utils.c (puts_filtered_tabular): New function.
599 (fprintf_symbol_filtered): Add objc demangling support (disabled).
600 (set/show demangle): Extend help-string to refer to ObjC.
601 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
602 * stabsread.c (symbol_reference_defined): Objective-C symbols
603 may contain colons: make allowances when scanning stabs strings
605 (objc_find_colon): New function.
606 * printcmd.c (address_info): If language == objc then print
607 "self" instead of "this".
608 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
609 OP_NSSTRING, and OP_SELF.
610 (prefixify_subexp): Ditto.
611 * source.c (print_source_lines): Mention objc in comment.
612 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
615 2002-09-18 Andrew Cagney <ac131313@redhat.com>
617 * complaints.h: Update copyright.
618 (struct complaints): Declare.
619 (struct complaint): Make `message' constant.
620 (internal_complaint): Declare.
621 (complaint): Declare.
622 (complaint_root): Delete declaration.
623 (symfile_complaints): Delete declaration.
624 (struct complaints): Add opaque declaration.
625 (clear_complaints): Add a complaints parameter.
626 * complaints.c: Update copyright.
627 (enum complaint_series): Define.
628 (complaint_root): Delete.
629 (struct complaints): Define.
630 (complaint_sentinel, symfile_complaint_book): New variables.
631 (symfile_explanations, symfile_complaints): New variables.
633 (get_complaints): New function.
634 (vcomplaint): New function.
635 (complaint): New function.
636 (internal_complaint): New function.
637 (complain): Call vcomplain with symfile_complaint.
638 (clear_complaints): Rewrite.
639 (_initialize_complaints): Use add_setshow_command.
640 * Makefile.in (complaints.o): Update dependencies.
641 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
642 to call to clear_complaints.
643 (new_symfile_objfile, reread_symbols): Ditto.
644 (oldsyms_complaint): Delete.
645 (empty_symtab_complaint, unknown_option_complaint): Delete.
646 (free_named_symtabs): Use complaint instead of complain.
648 2002-09-18 Michael Snyder <msnyder@redhat.com>
650 Contributed by Apple Computer, Inc. Merged with current sources
651 by Adam Fedor <fedor@doc.com> [cagney].
653 * objc-lang.c: First clean-up round: comments, indentation.
654 * objc-lang.h: Ditto.
655 * objc-lang.y: Ditto.
657 2002-09-18 Andrew Cagney <ac131313@redhat.com>
659 * maint.c (maintenance_internal_error): Print the parameter as the
661 (maintenance_internal_warning): New function.
662 (_initialize_maint_cmds): Add command `maint internal-warning'.
664 * defs.h (internal_warning, internal_vwarning): Declare.
665 * utils.c (struct internal_problem): Define.
666 (internal_vproblem): New function.
667 (internal_warning): New function.
668 (internal_vwarning): New function.
669 (internal_warning_problem, internal_error_problem): New variables.
670 (internal_verror): Just call internal_vproblem.
672 2002-09-18 Michael Snyder <msnyder@redhat.com>
674 * objc-lang.c: New file, support for Objective-C.
675 Preliminary check-in, not yet integrated into gdb.
676 * objc-lang.h: New file.
677 * objc-exp.y: New file.
679 2002-09-18 Andrew Cagney <ac131313@redhat.com>
681 * infrun.c (signal_stop_update): Convert definition to ISO C.
682 (signal_print_update): Ditto.
683 (signal_pass_update): Ditto.
684 * inflow.c (terminal_save_ours): Ditto.
686 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
689 * config/djgpp/fnchange.lst: Handle name clashes between
690 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
693 * i386-linux-tdep.h: Fix tipo.
695 2002-09-18 Adam Fedor <fedor@gnu.org>
697 * MAINTAINERS: Add myself to the Write After Approval list.
699 2002-09-18 Jim Blandy <jimb@redhat.com>
701 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
702 texthigh and textlow to reader-specific structs caused
703 objfile_relocate to miss them. This is fixable, but the work that
704 the change was supposed to prepare GDB for never got done anyway.
706 2002-09-18 David Carlton <carlton@math.stanford.edu>
708 * MAINTAINERS: Alphabetize Write After Approval list.
710 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
713 * values.c (value_static_field): Call read_var_value.
715 2002-09-18 Andrew Cagney <ac131313@redhat.com>
717 * valops.c (hand_function_call): Align the initial stack pointer
718 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
719 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
721 * mips-tdep.c (mips_frame_align): New function.
722 (mips_gdbarch_init): Set frame_align.
723 * gdbarch.sh (FRAME_ALIGN): New method.
724 * gdbarch.h, gdbarch.c: Re-generate.
726 2002-09-18 Michal Ludvig <mludvig@suse.cz>
728 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
731 2002-09-17 Andrew Cagney <ac131313@redhat.com>
733 * NEWS: Mention that MIPS $fp behavior changed.
734 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
735 reference to FP_REGNUM.
736 (mipsnbsd_cannot_store_register): Ditto.
737 * mips-linux-nat.c: Update copyright.
738 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
739 (mips_linux_cannot_store_register): Ditto.
740 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
741 * config/mips/tm-mips.h: Update copyright.
742 (FP_REGNUM): Delete macro.
743 (MIPS_REGISTER_NAMES): Replace "fp" with "".
744 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
745 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
746 (mips_r3041_reg_names, mips_r3051_reg_names)
747 (mips_r3081_reg_names): Replace "fp" with "".
750 2002-09-17 Theodore A. Roth <troth@verinet.com>
752 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
753 generic_read_register_dummy() (PR gdb/703).
754 (avr_push_return_address): #if 0 out unused vars.
755 (avr_gdbarch_init): Enable use of avr_push_return_address().
757 2002-09-17 Michael Snyder <msnyder@redhat.com>
759 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
760 RTE will take care of it.
762 2002-09-17 Andrew Cagney <ac131313@redhat.com>
764 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
765 invalid, return SP_REGNUM.
767 2002-09-17 Michael Snyder <msnyder@redhat.com>
769 * mips-tdep.c (mips_pop_frame): Read saved values of floating
770 point registers without sign extension.
772 2002-09-17 Andrew Cagney <cagney@redhat.com>
774 * blockframe.c (deprecated_read_register_dummy): Rename
775 generic_read_register_dummy.
776 * frame.c (frame_unwind_signed_register): New function.
777 (frame_unwind_unsigned_register): New function.
778 * frame.h (frame_unwind_signed_register): Declare.
779 (frame_unwind_unsigned_register): Declare.
780 (deprecated_read_register_dummy): Rename
781 generic_read_register_dummy.
783 * h8300-tdep.c (h8300_frame_chain): Update.
784 (h8300_frame_saved_pc): Update.
785 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
786 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
787 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
788 (s390_frame_chain): Update.
789 * v850-tdep.c (v850_find_callers_reg): Update.
790 (v850_frame_saved_pc): Update.
791 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
792 (m32r_find_callers_reg): Update.
793 (m32r_frame_saved_pc): Update.
794 * sh-tdep.c (sh_find_callers_reg): Update.
795 (sh64_get_saved_pr): Update.
796 (sh_init_extra_frame_info): Update.
797 (sh_init_extra_frame_info): Update.
798 (sh64_init_extra_frame_info): Update.
799 (sh64_init_extra_frame_info): Update.
800 * mcore-tdep.c (mcore_find_callers_reg): Update.
801 (mcore_frame_saved_pc): Update.
802 (mcore_init_extra_frame_info): Update.
803 * i386-tdep.c (i386_frame_saved_pc): Update.
804 * ia64-tdep.c (ia64_frame_saved_pc): Update.
805 (ia64_init_extra_frame_info): Update.
806 (ia64_init_extra_frame_info): Update.
807 * d10v-tdep.c (d10v_frame_saved_pc): Update.
808 * cris-tdep.c (cris_init_extra_frame_info): Update.
809 * avr-tdep.c (avr_frame_chain): Update.
810 (avr_init_extra_frame_info): Update.
811 (avr_frame_saved_pc): Update.
812 * arm-tdep.c (arm_find_callers_reg): Update.
813 (arm_init_extra_frame_info): Update.
814 (arm_frame_saved_pc): Update.
816 2002-09-17 Tom Tromey <tromey@redhat.com>
818 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
821 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
823 * MAINTAINERS: Remove "non multi-arched" text from h8300.
824 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
826 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
829 2002-09-16 Joel Brobecker <brobecker@gnat.com>
831 * osfsolib.c: Remove file, replaced by solib-osf.c.
832 * Makefile.in: Remove compilation rules for osfsolib.c.
834 2002-09-16 David Carlton <carlton@math.stanford.edu>
836 * cp-valprint.c (cp_print_class_method): Correct args to
837 check_stub_method_group.
839 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
841 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
842 `set architecture'. Unify naming convention of functions.
843 (h8300_skip_prologue): Improve prologue analysis.
844 (h8300_push_arguments): Rewritten to more closely match GCC's
845 bizarre argument-passing behavior, along with the comment describing
847 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
848 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
849 sim, remote-e7000.c, remote-hms.c and remote.c
851 2002-09-15 Mark Kettenis <kettenis@gnu.org>
853 * i386-tdep.c (gdb_print_insn_i386): Removed.
854 (i386_print_insn): New function.
855 (i386_gdbarch_init): Set print_insn to i386_print_insns.
856 (_initialize_i386_tdep): Don't initialize tm_print_insn and
859 2002-09-14 Mark Kettenis <kettenis@gnu.org>
861 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
864 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
866 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
867 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
868 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
870 2002-09-13 Christopher Faylor <cgf@redhat.com>
872 * win32-nat.c (child_create_inferior): Honor 'tty' command.
874 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
876 * gdbtypes.c (check_stub_method): Make static.
877 (check_stub_method_group): New function.
878 * gdbtypes.h: Update prototypes.
879 * cp-support.c: New file.
880 * cp-support.h: New file.
882 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
883 (update_method_name_from_physname): New function.
884 (read_member_functions): Correct method names for operators
885 and v3 constructors/destructors. Separate v2 constructors and
887 * Makefile.in (stabsread.o): Update dependencies.
888 (SFILES): Add cp-support.c.
889 (COMMON_OBS): Add cp-support.o.
890 (cp_support_h, cp-support.o): Add.
892 * cp-valprint.c (cp_print_class_method): Call
893 check_stub_method_group instead of check_stub_method. Remove
895 * p-valprint.c (pascal_object_print_class_method): Likewise.
896 * valops.c (search_struct_method): Likewise.
897 (find_method_list, value_struct_elt_for_reference): Likewise.
899 2002-09-13 Andrew Cagney <cagney@redhat.com>
901 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
902 * gdbarch.h, gdbarch.c: Regenerate.
904 2002-09-13 Andrew Cagney <ac131313@redhat.com>
906 * frame.c (find_saved_register): Delete function.
907 * frame.h (find_saved_register): Delete declaration.
910 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
912 * mips-tdep.c (read_next_frame_reg): Re-hack using
913 frame_register_unwind.
915 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
917 * mips-tdep.c (mips_get_saved_register): Re-hack using
918 frame_register_unwind.
920 2002-09-12 Joel Brobecker <brobecker@gnat.com>
922 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
923 vector. Will be useful for Interix.
924 * gdbarch.h, gdbarch.c: Regenerate.
926 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
927 name of the malloc function by NAME_OF_MALLOC.
929 2002-09-12 Joel Brobecker <brobecker@gnat.com>
931 * value.h (find_function_in_inferior): Add const keyword to
932 one of the parameters. Allows us to invoke this function with
934 * valops.c (find_function_in_inferior): Likewise.
936 2002-09-12 Joel Brobecker <brobecker@gnat.com>
938 * exec.c (xfer_memory): Fix compilation warning with old versions
940 * tracepoint.c (trace_find_tracepoint_command): Likewise.
942 2002-09-12 David Carlton <carlton@math.stanford.edu>
944 * symtab.h: Run through gdb_indent.h.
945 Add 2002 to Copyright year list.
947 2002-09-12 Alan Modra <amodra@bigpond.net.au>
949 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
951 * MAINTAINERS: Add myself to write after approval list.
953 2002-09-11 J. Brobecker <brobecker@gnat.com>
955 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
957 2002-09-11 J. Brobecker <brobecker@gnat.com>
959 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
962 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
964 * procfs.c (do_detach): Clear current signal, not just fault.
965 Corrects problem with breakpoint trap signal leaking to detached
968 2002-09-10 Michael Snyder <msnyder@redhat.com>
970 * buildsym.c (finish_block): Protect against null pointer.
972 2002-09-10 Andrew Cagney <cagney@redhat.com>
974 * infcmd.c (default_print_registers_info): Send all output to
975 ``file'' instead of ``gdb_stdout''.
977 2002-09-10 Michael Snyder <msnyder@redhat.com>
979 * mips-tdep.c (mips_extract_struct_value_address): Make val a
980 LONGEST, and use signed register read (addresses are sign-
983 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
985 * event-loop.c (gdb_do_one_event): Make public.
986 * event-loop.h (gdb_do_one_event): Declare.
988 2002-09-10 Jeff Law <law@redhat.com>
990 * infttrace.c (child_resume): Simplify and rework to avoid
993 2002-09-09 Fred Fish <fnf@intrinsity.com>
995 * printcmd.c (print_scalar_formatted): "len" is the number of
996 target bytes, NOT the number of target bits.
998 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1000 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1001 * top.c (init_main): Set rl_terminal_name.
1003 2002-09-08 Aidan Skinner <aidan@velvet.net>
1005 * ada-lang.c (ada_array_bound, ada_type_match,
1006 _initialize_ada_language): Fix K&R definitions.
1007 * ada-tasks.c (get_current_task): Fix K&R definitions.
1008 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1010 2002-09-07 Christopher Faylor <cgf@redhat.com>
1012 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1015 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1017 * i386-tdep.c (i386_register_virtual_type,
1018 i386_register_convertible, i386_register_convert_to_virtual,
1019 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1020 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1021 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1022 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1023 Don't set push_arguments twice.
1025 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1026 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1027 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1028 sigtramp_end to NULL.
1029 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1031 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1033 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1036 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1037 * gdbarch.h, gdbarch.c: Re-generate.
1038 * blockframe.c (find_pc_sect_partial_function): Convert to use
1039 SIGTRAMP_START_P predicate.
1041 2002-09-05 Michael Snyder <msnyder@redhat.com>
1043 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1044 generic_dummy_frame method and old method. Also distinguish
1045 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1046 (arm_extract_return_value): Use new regcache method.
1048 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1049 adjustment that doesn't conform to the ABI.
1050 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1051 saved regcache, not from current regcache.
1053 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1055 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1058 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1060 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1061 if arm_apcs_32 is false.
1063 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1065 GDB 5.3 branch created.
1067 2002-09-03 Theodore A. Roth <troth@verinet.com>
1069 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1070 generic_unwind_get_saved_register.
1072 2002-09-03 David Carlton <carlton@math.stanford.edu>
1074 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1075 argument (PR gdb/653). Update call to smash_to_method_type.
1076 (read_structure_scope): Update call to dwarf2_add_member_fn.
1078 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1080 * x86-64-linux-tdep.c: Include gdb_string.h
1081 * x86-64-linux-nat.c: Ditto.
1083 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1085 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1086 when YYDEBUG is set to 1.
1087 * c-exp.y: Likewise.
1088 * f-exp.y: Likewise.
1089 * jv-exp.y: Likewise.
1090 * m2-exp.y: Likewise.
1091 * p-exp.y: Likewise.
1093 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1095 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1097 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1098 solib_svr4_fetch_link_map_offsets to
1099 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1100 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1101 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1102 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1103 solib-svr4.o, and solib-legacy.o.
1104 * config/i386/tm-nbsd.h: Include solib.h.
1106 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1108 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1109 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1110 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1111 comment noting that this needs its own target configuration.
1112 * config/i386/nbsd.mt: New file.
1113 * config/i386/nbsdaout.mt: Remove.
1114 * config/i386/nbsdelf.mt: Ditto.
1115 * config/i386/tm-nbsdaout.h: Ditto.
1117 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1119 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1120 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1121 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1123 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1124 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1125 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1129 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1130 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1131 * i386-tdep.h (i386bsd_init_abi): New prototype.
1132 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1133 function declaration.
1134 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1135 for NetBSD-a.out or NetBSD-ELF.
1136 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1137 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1138 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1139 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1141 (i386nbsd_pc_in_sigtramp): New function.
1142 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1143 i386nbsd_pc_in_sigtramp.
1144 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1145 and i386nbsdelf_init_abi OS ABI handlers.
1146 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1147 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1149 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1151 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1152 registers if the target really has them.
1154 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1156 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1159 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1161 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1163 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1164 (alphanbsd_skip_sigtramp_frame): New functions.
1165 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1166 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1167 to alphanbsd_sigcontext_addr.
1169 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1171 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1173 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1174 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1175 nbsd_pc_in_sigtramp.
1176 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1177 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1178 * nbsd-tdep.c: Include gdb_string.h.
1179 (nbsd_pc_in_sigtramp): New function.
1180 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1181 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1182 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1183 ppcnbsd_pc_in_sigtramp.
1184 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1185 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1186 shnbsd_pc_in_sigtramp.
1187 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1188 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1189 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1191 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1193 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1194 watchpoints to NULL.
1195 (insert_breakpoints): set val field of watchpoints if NULL.
1198 2002-08-29 Jim Blandy <jimb@redhat.com>
1200 * symtab.c (lookup_symbol_aux): In the cases where we find a
1201 minimal symbol of an appropriate name and use its address to
1202 select a symtab to read and search, use `name' (as passed to us)
1203 as the demangled name when searching the symtab's global and
1204 static blocks, not the minsym's name.
1206 2002-08-29 Keith Seitz <keiths@redhat.com>
1208 * stack.c (print_frame_info_base): Always set current_source_symtab
1209 and current_source_line.
1211 2002-08-29 Donn Terry <donnte@microsoft.com>
1213 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1215 2002-08-28 Keith Seitz <keiths@redhat.com>
1217 * stack.c (select_frame): Add FIXME concerning selected-frame
1219 (select_frame_command): Send selected-frame-level-changed
1220 event notification, but only if the level actually changed.
1221 (up_silently_base): Add selected-frame-level-changed event
1223 (down_silently_base): Likewise.
1225 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1227 * Makefile.in: Update dependencies for all gdb/*.c files.
1229 2002-08-27 Tom Tromey <tromey@redhat.com>
1231 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1232 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1233 Update dependencies.
1234 * i387-tdep.c: Include gdb_string.h.
1235 * osabi.c: Likewise.
1236 * i386-linux-nat.c: Likewise.
1237 * lin-lwp.c: Likewise.
1238 * ax-gdb.c: Likewise.
1239 * signals/signals.c: Likewise.
1240 * jv-valprint.c: Likewise.
1241 * p-lang.c: Likewise.
1242 * c-valprint.c: Likewise.
1243 * cp-abi.c: Likewise.
1245 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1247 * cli/cli-script.h (copy_command_lines): Export.
1248 * breakpoint.c: Include cli/cli-script.h.
1249 * Makefile.in (breakpoint.o): Update dependencies.
1251 2002-08-26 Michael Snyder <msnyder@redhat.com>
1253 * breakpoint.c (insert_breakpoints): Protect all references
1254 to 'process_warning'. Shorten long lines.
1256 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1258 * cli/cli-script.c (copy_command_lines): New function.
1259 * defs.h (copy_command_lines): Export.
1260 * testsuite/gdb.base/commands.exp: New tests for commands
1261 attached to a temporary breakpoint, and for commands that
1262 delete the breakpoint they are attached to.
1264 2002-08-26 Michael Snyder <msnyder@redhat.com>
1266 * breakpoint.c (bpstat_stop_status): Instead of copying the
1267 pointer to the breakpoint commands struct, make a new copy
1268 of the struct and point to that.
1269 (bpstat_clear): Free the commands struct.
1270 (bpstat_clear_actions): Free the commands struct.
1271 (bpstat_do_actions): Free the command actions. Also execute
1272 the local cleanups, instead of deleting them.
1273 (delete_breakpoint): Leave the commands field of the bpstat
1274 chain alone -- it will be freed later.
1276 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1278 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1279 deleted in 2002-08-20 commit. This function is still used by
1282 2002-08-26 Keith Seitz <keiths@redhat.com>
1284 * gdb-events.sh: Add selected-frame-level-changed event.
1285 * gdb-events.c: Regenerated.
1286 * gdb-events.h: Regenerated.
1288 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1291 * inflow.c (terminal_save_ours): New function to save terminal
1293 * inferior.h (terminal_save_ours): Declare.
1294 * target.c (debug_to_terminal_save_ours): New function.
1295 (cleanup_target): Defaults to_terminal_save_ours.
1296 (update_current_target): Inherit to_terminal_save_ours.
1297 (setup_target_debug): Set to_terminal_save_ours.
1298 * target.h (target_terminal_save_ours): New to save terminal settings.
1299 (target_ops): New member to_terminal_save_ours.
1300 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1301 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1302 * inftarg.c (init_child_ops): Likewise.
1303 * m3-nat.c (init_m3_ops): Likewise.
1304 * procfs.c (init_procfs_ops): Likewise.
1305 * wince.c (init_child_ops): Likewise.
1306 * win32-nat.c (init_child_ops): Likewise.
1307 * sol-thread.c (init_sol_thread_ops): Likewise.
1309 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1311 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1312 use regcache_* functions.
1313 (i386_gdbarch_init): Set store_return_value instead of
1314 deprecated_store_return_value.
1316 * regcache.c (regcache_raw_write_signed,
1317 regcache_raw_write_unsigned): New functions.
1318 * regcache.h (regcache_raw_write_signed,
1319 regcache_raw_write_unsigned): New prototypes.
1321 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1323 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1324 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1325 source file dependencies. Cleanup corresponding generator rules.
1327 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1329 * regcache.h (register_offset_hack): Declare.
1330 (regcache_cooked_read_using_offset_hack): Declare.
1331 (regcache_cooked_write_using_offset_hack): Declare.
1333 * regcache.c (register_offset_hack): New function.
1334 (regcache_cooked_read_using_offset_hack): New function.
1335 (regcache_cooked_write_using_offset_hack): New function.
1336 (regcache_dump): Check that the registers, according to their
1337 offset, are packed hard against each other.
1338 (cooked_xfer_using_offset_hack): New function.
1340 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1342 * regcache.c (struct regcache_descr): Add field register_type.
1343 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1345 (init_regcache_descr): Initialize register_type. Pass the descr
1346 to init_legacy_regcache_descr. Use register_type instead of
1347 REGISTER_VIRTUAL_TYPE.
1348 (register_type): New function.
1349 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1350 * regcache.h (register_type): Declare.
1352 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1354 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1355 instead of deprecated_store_return_value. Fix fallout from
1356 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1358 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1360 * regcache.c (max_register_size): New function.
1361 (init_legacy_regcache_descr): Ensure that max_register_size is
1362 large enough for REGISTER_VIRTUAL_SIZE.
1363 * regcache.h (max_register_size): Declare.
1365 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1367 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1369 (e500_extract_return_value): Change type of valbuf pointer to
1372 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1374 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1377 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1378 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1379 long long) to prevent compiler warning on 64-bit systems.
1381 2002-08-23 Andrew Cagney <cagney@redhat.com>
1383 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1384 (DEPRECATED_STORE_RETURN_VALUE): New method.
1385 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1386 * gdbarch.h, gdbarch.c: Re-generate.
1388 * values.c (set_return_value): Pass current_regcache to
1390 * arch-utils.h (legacy_store_return_value): Declare.
1391 * arch-utils.c (legacy_store_return_value): New function.
1392 (legacy_extract_return_value): Update parameters.
1394 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1396 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1397 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1398 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1399 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1400 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1401 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1402 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1403 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1404 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1405 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1408 * i386-tdep.c (i386_extract_return_value): Update.
1409 * arch-utils.c (legacy_extract_return_value): Update.
1410 * frv-tdep.c (frv_gdbarch_init): Update.
1411 * cris-tdep.c (cris_gdbarch_init): Update.
1412 * d10v-tdep.c (d10v_gdbarch_init): Update.
1413 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1414 * m68k-tdep.c (m68k_gdbarch_init): Update.
1415 * mcore-tdep.c (mcore_gdbarch_init): Update.
1416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1417 * s390-tdep.c (s390_gdbarch_init): Update.
1418 * sparc-tdep.c (sparc_gdbarch_init): Update.
1419 * sh-tdep.c (sh_gdbarch_init): Update.
1420 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1421 * v850-tdep.c (v850_gdbarch_init): Update.
1422 * avr-tdep.c (avr_gdbarch_init): Update.
1423 * ia64-tdep.c (ia64_gdbarch_init): Update.
1424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1425 * vax-tdep.c (vax_gdbarch_init): Update.
1426 * alpha-tdep.c (alpha_gdbarch_init): Update.
1427 * arm-tdep.c (arm_gdbarch_init): Update.
1428 * mips-tdep.c (mips_gdbarch_init): Update.
1429 * i386-tdep.c (i386_gdbarch_init): Update.
1431 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1433 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1434 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1436 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1438 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1441 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1443 * infrun.c (handle_inferior_event): Move a comment outside of a
1444 function call, in order to avoid indent reformatting this part
1445 of the code in an unreadable way.
1447 2002-08-23 Grace Sainsbury <graces@redhat.com>
1449 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1450 when breakpoints fail. Move general breakpoint error messages to
1452 * breakpoint.c (insert_breakpoints): Change warnings when
1453 breakpoints are nto inserted to specify the type. Remove call to
1454 memory_error when hardware breakpoints can't be inserted. Remove
1455 multiple calls to warning so all messages are sent to the user at
1457 (delete_breakpoints): Make insert error messsages more explicit.
1459 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1461 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1462 gdbserver/ChangeLog.
1464 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1466 * i386-tdep.c: Include "objfiles.h".
1467 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1468 skip_trampoline_code.
1469 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1470 (CPLUS_MARKER): Define to '.'.
1472 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1474 (linux_corefile_thread_callback): Increase args->num_notes.
1475 (linux_make_note_section): Initialize thread_args.num_notes, and
1476 use it to determine whether notes for any threads were created.
1478 2002-08-23 Donn Terry <donnte@microsoft.com>
1480 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1481 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1483 (write_with_trace): Conditionalize out the switch branch handling
1484 PCSHOLD if the corresponding macro is not defined. Likewise for
1485 PRSABORT and PRSTOP.
1486 This change will be needed by the Interix port.
1488 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1491 write_register wherever possible instead of manipulating the
1492 register bytes directly.
1493 Assign VALUE_CONTENTS to a variable and use that.
1494 The GPR numbers are now dependent on the architecture.
1496 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1498 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1500 (skip_prologue): Add support for BookE/e500 instructions.
1501 (e500_extract_return_value): New function.
1502 (frame_get_saved_regs): Add support for saving ev registers and
1504 (e500_store_return_value): New function.
1505 (rs6000_gdbarch_init): Move up default intializations of
1506 deprecated_extract_return_value and store_return_value. Overwrite
1507 init of store_return_value with e500 specific version.
1508 Set extract_return_value for e500.
1510 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1512 * blockframe.c (generic_call_dummy_register_unwind): Use
1513 regcache_cooked_read to catch cases in which the variable is
1514 stored in a pseudo register.
1516 2002-08-22 Andrew Cagney <cagney@redhat.com>
1518 * NEWS: Mention that the i960 has been made obsolete.
1519 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1521 (remote-nrom.o): Obsolete target.
1522 (remote-nindy.o, i960-tdep.o): Ditto.
1523 * remote-nrom.c: Make file obsolete.
1524 * remote-nindy.c, remote-vx960.c: Ditto.
1525 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1526 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1527 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1528 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1529 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1530 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1531 i960-*-vxworks* obsolete.
1532 * MAINTAINERS: Note that the i960 is obsolete.
1534 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1536 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1537 detach to allow reinitialization.
1539 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1541 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1544 2002-08-22 Jim Blandy <jimb@redhat.com>
1546 * coffread.c (coff_symfile_read): Don't try to read the line
1547 number table from disk if the image file doesn't have a symbol
1548 table; we'll never actually look at the info anyway, and Windows
1549 ships DLL's with bogus file offsets for the line number data.
1551 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1553 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1556 2002-08-21 Michael Snyder <msnyder@redhat.com>
1558 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1559 (MSYMBOL_SIZE): Replace macro with function.
1560 (DEFAULT_MIPS_TYPE): Delete unused macro.
1561 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1562 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1564 2002-08-21 Jim Blandy <jimb@redhat.com>
1566 * valops.c (value_cast): Simplify and correct logic for doing a
1567 static cast from a pointer to a base class to a pointer to a
1570 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1572 * infcmd.c (default_print_registers_info): Replace
1574 (registers_info): Use gdbarch_print_registers_info instead of
1576 * inferior.h (default_print_registers_info): Replace
1578 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1579 (DO_REGISTERS_INFO): Change to a predicate function.
1580 * gdbarch.h, gdbarch.c: Regenerate.
1582 2002-08-21 Keith Seitz <keiths@redhat.com>
1584 * gdb-events.sh: Add target-changed event.
1585 * gdb-events.c: Regenerated.
1586 * gdb-events.c: Regenerated.
1587 * valops.c (value_assign): Add target-changed event notification
1588 to inlval_register, lval_memory, and lval_reg_frame_relative.
1590 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1592 * NEWS: Add an entry regarding the improvement of the next/step
1593 operation on Alpha Tru64 multi-processor machines.
1595 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1597 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1599 * Makefile.in: Update all _h macro definitions.
1600 * Makefile.in (install-gdbtk): Move to install section.
1601 (rdi-share/libangsd.a): Move to end of file.
1603 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1605 * frame.c (frame_register_unwind): When a register, set addrp to
1606 the register's byte.
1608 2002-08-20 Michael Snyder <msnyder@redhat.com>
1610 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1611 used locally, so move them from the target machine header to here.
1612 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1613 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1615 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1617 2002-08-20 Andrew Cagney <cagney@redhat.com>
1619 * NEWS: Mention that the Apollo line was made obsolete.
1620 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1621 m68*-hp-hpux* obsolete.
1622 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1623 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1624 * buildsym.c (make_blockvector): Make static.
1625 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1626 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1627 (ALLDEPFILES): Remove dstread.c.
1628 (dstread.o): Obsolete make rule.
1629 * dstread.c: Makefile obsolete.
1631 * config/m68k/hp300hpux.mt: Ditto.
1632 * config/m68k/hp300hpux.mh: Ditto.
1633 * config/m68k/hp300bsd.mt: Ditto.
1634 * config/m68k/hp300bsd.mh: Ditto.
1635 * config/m68k/apollo68b.mt: Ditto.
1636 * config/m68k/apollo68v.mh: Ditto.
1637 * config/m68k/apollo68b.mh: Ditto.
1639 2002-08-20 Michael Snyder <msnyder@redhat.com>
1641 * mips-tdep.c (mips_in_return_stub): Make static.
1642 (mips_gdbarch_init): Set in_solib_return_trampoline.
1643 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1645 2002-08-20 Michael Snyder <msnyder@redhat.com>
1647 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1648 * gdbarch.c, gdbarch.h: Regenerate.
1649 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1651 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1653 2002-08-20 Michael Snyder <msnyder@redhat.com>
1655 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1656 (mips_gdbarch_init): Set skip_trampoline_code,
1657 in_solib_call_trampoline.
1658 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1659 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1661 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1663 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1665 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1666 vector type for ev registers.
1667 (e500_pseudo_register_read): New function.
1668 (e500_pseudo_register_write): New function.
1669 (e500_dwarf2_reg_to_regnum): New function.
1670 (PPC_UISA_NOFP_SPRS): New macro.
1671 (PPC_EV_REGS): New macro.
1672 (PPC_GPRS_PSEUDO_REGS): New macro.
1673 (registers_e500): New register set for e500.
1674 (variants): Add e500 variant.
1675 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1676 before setting architectural dependent variations. Initialize ev
1677 registers numbers. Add case for e500 architecture. Set the
1678 number of pseudo registers.
1680 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1682 * rs6000-tdep.c: Clean up comments.
1684 2002-08-20 Andrew Cagney <cagney@redhat.com>
1686 * h8300-tdep.c: Re-indent file.
1688 2002-08-20 Jim Blandy <jimb@redhat.com>
1690 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1693 2002-08-20 Keith Seitz <keiths@redhat.com>
1695 * breakpoints.c (watch_command_1): Use internal breakpoint
1696 when setting a watchpoint_scope breakpoint.
1698 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1700 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1701 (build_builtin_type_vec64i): Ditto.
1702 (build_builtin_type_vec128): Ditto.
1703 (build_builtin_type_vec128i): Ditto.
1705 2002-08-19 Michael Snyder <msnyder@redhat.com>
1707 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1708 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1709 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1710 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1711 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1712 CALL_DUMMY_ADDRESS): Delete.
1713 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1714 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1715 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1716 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1717 push_return_address.
1718 (mips_register_raw_size, mips_eabi_use_struct_convention,
1719 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1720 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1721 mips_init_extra_frame_info, mips_eabi_push_arguments,
1722 mips_n32n64_push_arguments, mips_push_return_address,
1723 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1724 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1726 2002-08-19 Michael Snyder <msnyder@redhat.com>
1728 * mips-tdep.c (mips_frame_num_args): New function.
1729 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1730 frame_saved_pc, frame_args_address, frame_locals_address,
1731 frame_num_args, and frame_args_skip.
1732 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1733 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1734 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1735 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1737 2002-08-20 Michael Snyder <msnyder@redhat.com>
1739 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1740 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1741 * mips-tdep.c (mips_store_struct_return): New function.
1742 (mips_extract_struct_value_address): New function.
1743 (mips_gdbarch_init): Set store_struct_return and
1744 extract_struct_value_address.
1746 2002-08-20 David Carlton <carlton@math.stanford.edu>
1748 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1749 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1750 (read_file_scope): Check that line_header is nonzero before
1751 decoding macro information.
1753 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1755 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1756 flag the general-purpose registers as floating-point on targets
1757 that don't support the floating-point registers.
1759 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1761 * rs6000-tdep.c (altivec_register_p): Delete.
1762 (rs6000_do_altivec_registers): Delete.
1763 (rs6000_altivec_registers_info): Delete.
1764 (rs6000_do_registers_info): Delete.
1765 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1766 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1768 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1770 * infcmd.c (do_registers_info): Print vector registers in hex
1772 (print_vector_info): Check that printing registers
1774 (print_float_info): Ditto.
1776 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1778 * mips-tdep.c (mips_gdbarch_init): Update.
1779 (mips_o32_extract_return_value): Rewrite.
1780 (mips_o32_store_return_value): Rewrite.
1781 (mips_o32_xfer_return_value): New function.
1782 (mips_xfer_register): Tweak debug print message. Allow for
1783 buf_offset when dumping the value transfered.
1785 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1787 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1788 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1789 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1790 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1791 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1793 2002-08-14 Michael Snyder <msnyder@redhat.com>
1795 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1797 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1799 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1801 (P): New macro to define a register as a pseudo register.
1802 (R, R4, R8, R16, FR32, R64, R0): Updated.
1803 (struct variant): Add new fields for number of pseudo registers
1804 and number of total registers.
1805 (tot_num_registers): New macro replacing....
1806 (num_registers): ...deleted macro.
1807 (num_registers): New function.
1808 (num_pseudo_registers): New function.
1809 (variants): Update all variants to intialize new fields correctly.
1810 Postpone initialization of number of pseudo regs and real regs.
1811 (init_variants): New function.
1812 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1815 2002-08-19 David Carlton <carlton@math.stanford.edu>
1817 * valops.c (search_struct_field): Change error message to treat
1818 return value of 0 from value_static_field as meaning that field is
1820 (value_struct_elt_for_reference): Ditto.
1821 * values.c (value_static_field): Treat an unresolved location the
1822 same as a nonexistent symbol. Fix PR gdb/635.
1823 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1824 enclosed. Fix PR gdb/574.
1825 * MAINTAINERS: Add self to Write After Approval list.
1827 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1829 * mips-tdep.c (mips_xfer_register): New function.
1830 (mips_n32n64_extract_return_value): Rewrite.
1831 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1832 instead of deprecated_extract_return_value.
1834 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1836 * rs6000-tdep.c (TDEP): Delete macro.
1837 (branch_dest): Replace use of TDEP macro with its body.
1838 (rs6000_pop_frame): Ditto.
1839 (rs6000_push_arguments): Ditto.
1840 (rs6000_skip_trampoline_code): Ditto.
1841 (rs6000_frame_saved_pc): Ditto.
1842 (rs6000_frame_chain): Ditto.
1843 (rs6000_register_name): Ditto.
1844 (rs6000_register_byte): Ditto.
1845 (rs6000_register_raw_size): Ditto.
1846 (rs6000_register_virtual_type): Ditto.
1847 (rs6000_register_convertible): Ditto.
1848 (rs6000_convert_from_func_ptr_addr): Ditto.
1850 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1852 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1854 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1855 MIPS_LINUX_JB_ELEMENT_SIZE.
1856 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1857 for MAX_REGISTER_RAW_SIZE arrays.
1858 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1859 MIPS_LINUX_JB_ELEMENT_SIZE.
1861 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1863 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1865 2002-08-19 Aidan Skinner <aidan@velvet.net>
1867 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1868 ada-valprint.c ada-tasks.c.
1869 (YYFILES): Add ada-exp.y.
1870 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1871 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1872 (ada-exp.tab.o): New target.
1874 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1876 * regcache.c (regcache_xfer_part): New function.
1877 (regcache_raw_read_part): New function.
1878 (regcache_raw_write_part): New function.
1879 (regcache_cooked_read_part): New function.
1880 (regcache_cooked_write_part): New function.
1881 * regcache.h (regcache_raw_read_part): Declare.
1882 (regcache_raw_write_part): Declare.
1883 (regcache_cooked_read_part): Declare.
1884 (regcache_cooked_write_part): Declare.
1886 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1888 * remote.c (remote_open_1): Add async_p.
1889 (remote_async_open_1): Delete.
1890 (open_remote_target): Delete.
1891 (remote_open, extended_remote_open): Update calls to remote_open_1.
1892 (remote_async_open, extended_remote_async_open): Call
1893 remote_open_1 instead of remote_async_open_1.
1895 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1897 * blockframe.c: Fix a few coding standard violations.
1899 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1901 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1903 * config/i386/tm-i386sco5.h: ... here. File removed.
1904 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1906 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1907 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1908 (TM_FILE): Set to tm-i386.h.
1909 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1910 * config/i386/tm-i386v.h: Remove file.
1911 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1912 instead of "i386/tm-i386v.h".
1913 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1914 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1916 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1917 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1920 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1922 * config/i386/nm-i386v.h: Add protection against
1924 (i386_register_u_addr): Remove prototype.
1925 (register_u_addr): New prototype.
1926 (REGISTER_U_ADDR): Redefine accordingly.
1927 * i386v-nat.c: Improve several comments.
1928 (i386_register_u_addr): Change signature and rename to
1929 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1932 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1934 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1935 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1936 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1937 deprecated_extract_return_value.
1938 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1939 rename mips_o32o64_push_arguments.
1940 (mips_gdbarch_init): Update.
1941 (mips_extract_return_value): Delete.
1942 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1943 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1944 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1945 (mips_n32n64_extract_return_value): Clone
1946 mips_extract_return_value.
1947 (mips_store_return_value): Delete.
1948 (mips_o32_store_return_value): Clone mips_store_return_value.
1949 (mips_o64_store_return_value): Clone mips_store_return_value.
1950 (mips_eabi_store_return_value): Clone mips_store_return_value.
1951 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1953 2002-08-18 Aidan Skinner <aidan@velvet.net>
1955 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1956 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1958 2002-08-18 Aidan Skinner <aidan@velvet.net>
1960 * ada-lang.c: Run through gdb_indent.sh.
1961 * ada-lang.h: Run through gdb_indent.sh.
1962 * ada-tasks.c: Run through gdb_indent.sh.
1963 * ada-typeprint.c: Run through gdb_indent.sh.
1964 * ada-valprint.c: Run through gdb_indent.sh.
1966 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1968 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1971 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1973 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1975 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1976 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1978 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1979 write_register_gen instead of write_register_bytes.
1981 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1982 i[3456]-*-osf1mk* configurations have been made obsolete.
1983 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1984 i[3456]86-*-osf1mk* hosts obsolete.
1985 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1987 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1988 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1989 config/i386/i386m3.mt, config/i386/nm-m3.h,
1990 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1991 config/i386/i386mk.mh, config/i386/i386mk.mt,
1992 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1994 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1995 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1996 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1998 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2000 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2001 (hppa_value_returned_from_stack): Declare.
2002 (hppa_extract_return_value): Declare.
2003 * config/pa/hppa.mt: New file.
2004 * configure.tgt: Recognize hppa*-*-*.
2005 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2007 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2009 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2012 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2014 * top.c (gdb_rl_operate_and_get_next): Make sure
2015 operate-and-get-next functions correctly even when the history
2016 list is completely filled.
2018 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2020 * MAINTAINERS (Target Instruction Set Architectures): Rename
2021 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2022 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2023 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2024 already listed under Host/Native.
2026 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2027 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2030 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2032 * config/ia64/ia64.mt: New file.
2033 * config/alpha/alpha.mt: New file.
2034 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2035 ia64-linux-gnu. Mention that ia64-elf is broken.
2036 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2038 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2040 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2041 generic_func_frame_valid instead of func_frame_valid.
2043 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2045 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2046 procfs appears to be broken when debugging on multi-processor
2047 machines. So enable software single stepping in order to avoid
2048 using the procfs interface to do next/step operations, using
2049 internal breakpoints instead.
2051 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2052 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2053 make this pc address equal to the value it would have if the
2054 system stepping capability was used. Also set a new flag used
2055 to ensure that we don't readjust the PC one more time later.
2057 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2058 address by DECR_PC_AFTER_BREAK when software single step is
2059 in use for this architecture, as this has already been taken
2060 care of in handle_inferior_event().
2062 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2064 * infrun.c (handle_inferior_event): Minor reformatting, to make
2065 a rather long condition expression easier to read.
2067 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2069 * Makefile.in (gdbtk.o): Move to end of file.
2070 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2071 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2072 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2073 (gdbtk-wrapper.o, gdbres.o): Ditto.
2075 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2077 * Makefile.in (copying.o): Separate out compile rule.
2078 (hpux-thread.o, procfs.o, signals.o): Ditto.
2079 (v850ice.o, z8k-tdep.o): Ditto.
2080 (tui-file.o): Move to TUI section.
2081 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2082 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2084 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2086 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2087 skip_trampoline_code, for better namespace-proofing.
2089 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2091 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2093 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2095 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2097 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2098 signal, check whether we hit a breakpoint before checking for a
2099 single step breakpoint. Otherwise, GDB fails to notice that a
2100 breakpoint has been hit when stepping onto a breakpoint.
2102 2002-08-16 Keith Seitz <keiths@redhat.com>
2104 * gdb-events.sh (clear_gdb_event_hooks): New function.
2105 * gdb-events.c: Regenerate.
2106 * gdb-events.h: Regenerate.
2108 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2110 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2111 not_a_sw_breakpoint.
2112 * breakpoint.h (bpstat_stop_status): Add parameter names.
2114 2002-08-16 Grace Sainsbury <graces@redhat.com>
2116 * remote.c (remote_insert_hw_breakpoint)
2117 (remote_remove_hw_breakpoint): Fix calculation of length field
2120 2002-08-15 Michael Snyder <msnyder@redhat.com>
2122 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2123 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2124 (supply_fpregset): Ditto.
2126 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2127 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2128 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2129 (TARGET_READ_SP): Delete.
2130 (DO_REGISTERS_INFO): Delete.
2131 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2133 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2134 from macros to functions.
2136 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2137 (mips_register_convertible, mips_register_convert_to_virtual,
2138 mips_register_convert_to_raw): Make static.
2139 (mips_read_sp): New function.
2140 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2141 (mips_do_registers_info): Make static.
2142 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2143 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2144 (mips_register_convert_from_type, mips_register_convert_to_type):
2146 (mips_gdbarch_init): Set up function_start_offset,
2147 register_virtual_size, pc_in_sigtramp.
2149 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2151 * infcmd.c (vector_info): New function.
2152 (_initialize_infcmd): Add command "info vector".
2153 (print_vector_info): New function.
2155 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2156 * gdbarch.h, gdbarch.c: Regenerate.
2158 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2160 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2161 ``print_all''. Only print vector registers when ``print_all''.
2163 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2165 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2166 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2168 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2169 Add `args' parameter.
2170 * gdbarch.h, gdbarch.c: Regenerate.
2172 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2174 * infcmd.c (float_info): Call print_float_info.
2175 (print_float_info): New function. By default, print the
2176 floating-point registers.
2178 * arch-utils.h (default_print_float_info): Delete declaration.
2179 * arch-utils.c (default_print_float_info): Delete function.
2181 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2183 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2186 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2189 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2190 * configure.host: Make i[3456]86-*-aix host obsolete.
2191 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2192 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2193 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2194 config/i386/xm-i386aix.h: Make files obsolete.
2195 * i386aix-nat.c: Make file obsolete.
2196 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2197 (i386aix-nat.o): Make target obsolete.
2199 * config/i386/nm-gnu.h: Removed.
2200 * config/i386/nm-i386gnu.h: New file.
2201 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2202 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2204 * config/i386/tm-i386gnu.h: ... here. Removed.
2205 * config/i386/xm-i386gnu.h: Removed.
2206 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2207 (NAT_FILE): Set to nm-i386gnu.h.
2208 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2209 * i386-tdep.c: New file.
2210 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2211 (i386gnu-tdep.o): Specify dependencies.
2213 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2215 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2216 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2217 Adjust a few comments to reflect reality a bit closer.
2218 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2219 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2220 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2221 target_insert_watchpoint, target_remove_watchpoint):
2223 * config/i386/nm-i386sco5.h: ... here.
2224 (kernel_u_size): Add prototype. Improve a few comments and add
2225 protection against multiple inclusion.
2227 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2230 * uw-thread.c (SP_ARG0): Define if not already defined.
2231 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2233 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2235 * config/i386/tm-i386.h: Don't include "regcache.h".
2237 * i387-tdep.h (i387_print_float_info): New prototype.
2238 * i387-tdep.c (print_i387_value, print_i387_ext,
2239 print_i387_status_word, print_i387_control_word): Add `struct
2240 ui_file *' argument and use it for output.
2241 (i387_print_float_info): Renamed from i387_float_info. Add
2242 `struct gdbarch *' and `struct ui_file *' arguments and use the
2244 * i386-tdep.c: Include "i387-tdep.h".
2245 (i386_gdbarch_init): Set print_float_info.
2246 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2247 (FLOAT_INFO): Remove define.
2249 2002-08-13 Michael Snyder <msnyder@redhat.com>
2251 * mips-tdep.c (mips_push_arguments): Rename to
2252 mips_eabi_push_arguments, and tune for EABI.
2253 (MIPS_REGS_HAVE_HOME_P): Delete.
2254 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2255 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2256 Delete references to mips_regs_have_home_p.
2258 2002-08-14 Keith Seitz <keiths@redhat.com>
2260 * Makefile.in (install-gdbtk): Create insight plugin directory.
2261 Install plugins.tcl file.
2263 2002-08-14 Keith Seitz <keiths@redhat.com>
2265 * configure.in: Move SUBDIRS to near top of the file so that
2266 --enable options may add things to it.
2267 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2268 * configure: Regenerate.
2270 2002-08-13 Michael Snyder <msnyder@redhat.com>
2272 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2273 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2274 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2276 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2278 * vax-tdep.c (vax_get_saved_register): Delete function.
2279 (vax_gdbarch_init): Update.
2280 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2281 (ns32k_gdbarch_init): Update.
2282 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2283 (alpha_gdbarch_init): Update.
2285 2002-08-13 Andrew Cagney <cagney@redhat.com>
2287 * regcache.c (init_regcache_descr): Overallocate the
2288 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2289 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2291 (set_register_cached): Add range checking assertions. Use
2294 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2296 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2297 numbers for MMX registers.
2299 2002-08-13 Andrew Cagney <cagney@redhat.com>
2301 * i386-tdep.c (i386_gdbarch_init): Use
2302 generic_unwind_get_saved_register.
2304 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2306 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2307 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2309 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2310 Delete. Add comment regarding this now-deleted target method.
2312 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2314 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2315 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2316 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2317 real PC and the page number (if it's within the memory bank window).
2318 (m68hc11_pseudo_register_write): Likewise when saving.
2319 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2320 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2321 (m68hc11_register_raw_size): And use 32-bit for it.
2322 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2323 16K memory bank is used by the prog; also use the virtual pc.
2325 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2327 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2328 (m68hc11_gdbarch_init): Install it in gdbarch.
2329 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2330 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2331 (MSYMBOL_SIZE): New for documentation.
2332 (insn_return_kind): Enum to specify how a function returns.
2333 (frame_extra_info): Cleanup and record the return mode.
2334 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2335 register in address computation.
2336 (m68hc11_get_return_insn): New to obtain the return instruction used
2338 (m68hc11_frame_init_saved_regs): Take into account the return
2339 instruction used by the function for far and interrupt functions.
2340 (m68hc11_init_extra_frame_info): Take into account page register.
2341 (m68hc11_frame_args_address): Adjust according to the return mode.
2342 (show_regs): Print page register only when it's used.
2344 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2346 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2347 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2348 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2350 (m68hc11_register_raw_size): Likewise.
2352 2002-08-13 Andrew Cagney <cagney@redhat.com>
2354 * i386-tdep.c (i386_register_name): Handle mmx registers.
2355 (mmx_regnum_p): New function.
2356 (i386_mmx_names): New array.
2357 (mmx_num_regs): New variable.
2358 (i386_pseudo_register_read): New function.
2359 (i386_pseudo_register_write): New function.
2360 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2362 * regcache.c (regcache_raw_read_unsigned): New function.
2363 (regcache_raw_read_signed): New function.
2364 * regcache.h (regcache_raw_read_unsigned): Declare.
2365 (regcache_raw_read_signed): Declare.
2367 2002-08-13 Andrew Cagney <cagney@redhat.com>
2369 * regcache.c (regcache_raw_read_as_address): Delete function.
2370 (regcache_cooked_read_signed): New function.
2371 (regcache_cooked_read_unsigned): New function.
2372 * regcache.h (regcache_cooked_read_signed): Declare.
2373 (regcache_cooked_read_unsigned): Declare.
2374 (regcache_raw_read_as_address): Delete declaration.
2376 * blockframe.c (generic_read_register_dummy): Use
2377 regcache_cooked_read_unsigned.
2378 * i386-tdep.c (i386_extract_struct_value_address): Use
2379 regcache_cooked_read_unsigned.
2381 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2384 double sizes according to ELF ABI flags.
2385 (gdbarch_tdep): Record elf_flags.
2387 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2389 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2390 (m6812_prolog): They can appear in 68HC12 function prologue.
2391 (m68hc11_frame_chain): Cleanup.
2393 2002-08-12 Andrew Cagney <cagney@redhat.com>
2395 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2397 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2398 (i386_linux_register_raw_size): Delete function.
2399 (i386_linux_init_abi): Update.
2400 * i386-tdep.c (i386_register_raw_size): Delete function.
2401 (i386_register_byte): Delete function.
2402 (i386_gdbarch_init): Update.
2403 (i386_register_size): Delete array.
2404 (i386_register_offset): Delete array.
2406 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2407 (REGISTER_RAW_SIZE): Delete macro.
2408 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2409 (REGISTER_BYTE): Delete macro.
2411 2002-08-11 Aidan Skinner <aidan@velvet.net>
2413 * ada-lang.c (ada_lookup_partial_symbol)
2414 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2415 prototype names so that grep ^func works properly.
2417 * ada-lang.c (ada_array_element_type)
2418 (ada_lookup_partial_symbol): Fix typos in parameter list.
2420 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2421 Fix prototype names so that grep ^func works properly.
2423 2002-08-10 Andrew Cagney <cagney@redhat.com>
2424 Elena Zannoni <ezannoni@redhat.com>
2425 Martin M. Hunt <hunt@redhat.com>
2427 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2428 (build_builtin_type_vec128i): Set the vector bit.
2429 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2430 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2431 (build_builtin_type_vec64): New function.
2432 (build_builtin_type_vec64i): New function.
2433 (build_gdbtypes): Initialize builtin_type_vec64 and
2434 builtin_type_vec64i.
2436 2002-08-09 Andrew Cagney <cagney@redhat.com>
2438 * regcache.c (regcache_dump): Compare the register offset
2440 * arch-utils.c (generic_register_byte): New function.
2441 * arch-utils.h (generic_register_byte): Declare.
2442 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2443 * gdbarch.h, gdbarch.c: Regenerate.
2445 2002-08-09 Andrew Cagney <cagney@redhat.com>
2447 * regcache.c: Include "gdbcmd.h"
2448 (_initialize_regcache): Add commands "maintenance print
2449 registers", "maintenance print raw-registers" and "maintenance
2450 print cooked-registers".
2451 (enum regcache_dump_what): Define.
2452 (dump_endian_bytes): New function.
2453 (regcache_dump): New function.
2454 (regcache_print): New function.
2455 (maintenance_print_registers): New function.
2456 (maintenance_print_raw_registers): New function.
2457 (maintenance_print_cooked_registers): New function.
2458 * Makefile.in (regcache.o): Update dependencies.
2460 2002-08-09 Michael Snyder <msnyder@redhat.com>
2462 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2463 (mips_push_arguments): Correct some comments. Use paddr_nz
2464 for printing addresses in debug output. Replace static
2465 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2466 (mips_n32n64_push_arguments): New function, cloned from
2467 mips_push_arguments and tuned for the n32/n64 ABI.
2468 (mips_push_register): Buffer needs dynamic allocation.
2469 (mips_print_register): Ditto.
2470 (do_gp_register_row): Ditto.
2471 (mips_store_return_value): Ditto.
2472 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2474 2002-08-09 Don Howard <dhoward@redhat.com>
2476 * memattr.c (mem_info_command): Print special case of upper bound
2477 as max CORE_ADDR + 1.
2479 2002-08-08 Michael Snyder <msnyder@redhat.com>
2481 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2482 returns structs by ref if they're too big to fit in two registers.
2484 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2486 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2488 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2489 mips_find_saved_regs().
2490 (mips_pop_frame): Likewise.
2492 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2494 * blockframe.c (frame_saved_regs_register_unwind): Revise
2495 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2498 2002-08-09 Grace Sainsbury <graces@redhat.com>
2500 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2501 T-packets; the 'a' is not taken as a register number.
2502 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2503 (remote_stopped_data_address): New functions; add to target
2505 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2506 prototypes to match other implementations of this
2507 function. replace integer argument with pointer -- the length
2508 field in the Z-packet is the length of what is pointed to or 1 if
2509 pointer is null. Add to target vector.
2510 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2514 * remote.c (remote_wait): Add support to extract optional
2515 watchpoint information from T-packet. Ignore unrecognized
2516 optional info in T-packet.
2517 (remote_async_wait): Ditto.
2519 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2521 * cli/cli-dump.c: Change fopen modes to use binary open modes
2522 as defined in include/fopen-bin.h throughout.
2524 2002-08-08 Michael Snyder <msnyder@redhat.com>
2526 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2528 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2530 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2531 assertion failure by returning early after a warning.
2533 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2535 * mips-tdep.c (mips_find_saved_regs): Make static.
2536 (mips_frame_init_saved_regs): New function.
2537 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2538 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2539 (mips_find_saved_regs): Delete declaration.
2541 2002-08-08 Grace Sainsbury <graces@redhat.com>
2543 * remote.c (remote_wait, remote_async_wait): Change
2544 thread_num from int to ULONGEST.
2545 (unpack_varlen_hex): Change result parameter from
2546 int * to ULONGEST *.
2548 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2550 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2551 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2553 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2555 2002-08-08 Andrew Cagney <cagney@redhat.com>
2557 * gcore.c (override_derive_stack_segment): Delete variable.
2558 (preempt_derive_stack_segment): Delete function.
2559 (derive_stack_segment): Delete function.
2560 (default_derive_stack_segment): Renamed to derive_stack_segment.
2561 (override_derive_heap_segment): Delete variable.
2562 (preempt_derive_heap_segment): Delete function.
2563 (derive_heap_segment): Delete function.
2564 (default_derive_heap_segment): Rename to derive_heap_segment.
2566 2002-08-06 Michael Snyder <msnyder@redhat.com>
2568 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2569 * mips-tdep.c (mips_EABI_use_struct_convention,
2570 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2571 New functions. (mips_use_struct_convention): Delete.
2572 (mips_gdbarch_init): set use_gdbarch_convention.
2574 2002-08-06 Michael Snyder <msnyder@redhat.com>
2576 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2577 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2578 mips_o32_reg_struct_has_addr): New functions.
2579 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2581 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2583 * regcache.c (pseudo_register): Delete function.
2584 (fetch_register): Delete function.
2585 (store_register): Delete function.
2586 (regcache_raw_read, legacy_read_register_gen): Use
2587 target_fetch_registers instead of fetch_register.
2588 (legacy_write_register_gen, regcache_raw_write): Use
2589 target_store_register instead of store_register.
2590 (write_register_bytes): Ditto.
2592 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2593 (STORE_PSEUDO_REGISTER): Delete.
2594 * gdbarch.h, gdbarch.c: Regenerate.
2596 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2598 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2599 write dump file binary.
2601 2002-08-05 Michael Snyder <msnyder@redhat.com>
2603 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2604 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2605 (mips_gdbarch_init): Set N32 target to be mips64.
2607 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2609 * frame.c (find_saved_register): Break out of loop once saved
2610 register address is found. Don't mention sparc in loop comment
2613 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2615 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2616 mips_default_saved_regsize to 8.
2618 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2620 * gcore.c: Do not include <sys/procfs.h>.
2621 * Makefile.in (gcore.o): Update dependencies.
2623 2002-08-06 Andrew Cagney <cagney@redhat.com>
2625 * configure.tgt: Make arc-*-* obsolete.
2626 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2627 * MAINTAINERS: Make arc-elf obsolete.
2628 * arc-tdep.c: Make file obsolete.
2629 * config/arc/arc.mt: Ditto.
2630 * config/arc/tm-arc.h: Ditto.
2632 2002-08-05 Theodore A. Roth <troth@verinet.com>
2634 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2636 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2638 * mcore-tdep.c (mcore_gdbarch_init): Use
2639 generic_unwind_get_saved_register instead of
2640 generic_get_saved_register.
2641 * v850-tdep.c (v850_gdbarch_init): Ditto.
2642 * frv-tdep.c (frv_gdbarch_init): Ditto.
2643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2644 * s390-tdep.c (s390_gdbarch_init): Ditto.
2645 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2646 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2647 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2649 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2651 * objfiles.h: Add missing #include "symfile.h"
2653 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2655 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2657 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2658 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2661 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2663 * NEWS: Cleanup and nitpick.
2665 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2667 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2669 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2671 * Makefile.in (gdbtk-bp.o): Update dependencies.
2672 (gdbtk-register.o): Ditto.
2673 (gdbtk-varobj.o): Ditto.
2675 2002-08-03 Andrew Cagney <cagney@redhat.com>
2677 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2678 m68hc11_fetch_pseudo_register.
2679 (m68hc11_pseudo_register_write): Replace
2680 m68hc11_store_pseudo_register.
2681 (m68hc11_gdbarch_init): Update.
2683 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2685 * gdbarch.sh: Include "gdb_string.h".
2686 * gdbarch.c: Regenerate.
2688 * regcache.c: Include "gdb_string.h".
2689 * ax-general.c: Ditto.
2691 * std-regs.c: Ditto.
2692 * fbsd-proc.c: Ditto.
2695 * Makefile.in (regcache.o): Update dependencies.
2696 (thread.o, gdbarch.o): Ditto.
2697 (ax-general.o, gdbarch.o): Ditto.
2698 (varobj.o, std-regs.o): Ditto.
2699 (fbsd-proc.o): Specify dependencies.
2701 2002-08-02 Andrew Cagney <cagney@redhat.com>
2703 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2705 (regcache_cooked_write): Ditto.
2707 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2709 * regcache.c (regcache_cooked_read): New function.
2710 (regcache_cooked_write): New function.
2711 (read_register_gen): Rewrite using regcache_cooked_read.
2712 (write_register_gen): Rewrite using regcache_cooked_write.
2714 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2717 2002-08-02 Andrew Cagney <cagney@redhat.com>
2719 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2720 Replace the architecture methods register_read and register_write.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2722 * regcache.c (init_regcache_descr): Update.
2723 (read_register_gen): Update.
2724 (write_register_gen): Update.
2725 (supply_register): Update comment.
2727 * sh-tdep.c (sh_gdbarch_init): Update.
2728 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2729 `regcache' and `gdbarch' parameters. Make `buffer' a void
2730 pointer. Update code.
2731 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2732 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2733 void pointer. Update code.
2734 (sh64_register_write): Delete.
2735 (sh4_register_read): Delete.
2736 (sh64_register_read): Delete.
2737 (sh4_register_write): Delete.
2738 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2739 void pointer, `to' parameter a void pointer.
2740 (sh_sh64_register_convert_to_raw): Ditto.
2742 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2744 * mips-tdep.c (mips_register_virtual_type): Use architecture
2745 invariant return values.
2747 2002-08-01 Andrew Cagney <cagney@redhat.com>
2749 * linux-proc.c: Include "gdb_string.h".
2750 * Makefile.in (linux-proc.o): Update dependency list.
2752 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2754 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2757 2002-08-01 Grace Sainsbury <graces@redhat.com>
2759 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2760 to_insert_watchpoint, to_remove_watchpoint,
2761 to_stopped_by_watchpoint, to_stopped_data_address,
2762 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2763 target vecctor. Define their corresponding macros so they call
2766 * target.c: Add default and debug versions of for
2767 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2768 to_insert_watchpoint, to_remove_watchpoint,
2769 to_stopped_by_watchpoint, to_stopped_data_address,
2770 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2772 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2774 * mips-tdep.c (mips_register_virtual_type): New function.
2775 (mips_gdbarch_init): Register mips_register_virtual_type()
2776 with gdbarch machinery.
2777 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2778 this file instead of tm-bigmips.h.
2779 (MIPS_REGSIZE): Delete this macro.
2780 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2781 multiarch version in mips-tdep.c will be found.
2783 2002-08-01 Andrew Cagney <cagney@redhat.com>
2785 * NEWS: Menion that CHILL has been made obsolete.
2787 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2788 * stabsread.c (read_range_type): Ditto.
2789 * gdbtypes.h: Ditto.
2790 * language.c (binop_type_check): Ditto.
2791 (binop_result_type): Ditto.
2792 (integral_type): Ditto.
2793 (character_type): Ditto.
2794 (string_type): Ditto.
2795 (boolean_type): Ditto.
2796 (structured_type): Ditto.
2797 (lang_bool_type): Ditto.
2798 (binop_type_check): Ditto.
2799 * language.h (_LANG_chill): Ditto.
2800 * dwarfread.c (set_cu_language): Ditto.
2801 * dwarfread.c (CHILL_PRODUCER): Ditto.
2802 * dwarfread.c (handle_producer): Ditto.
2803 * expression.h (enum exp_opcode): Ditto.
2804 * eval.c: Ditto for comments.
2805 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2806 * expprint.c (print_subexp): Ditto.
2807 (print_subexp): Ditto.
2808 * valops.c (value_cast): Ditto.
2809 (search_struct_field): Ditto.
2810 * value.h (COERCE_VARYING_ARRAY): Ditto.
2811 * symfile.c (init_filename_language_table): Ditto.
2812 (add_psymbol_with_dem_name_to_list): Ditto.
2813 * valarith.c (value_binop): Ditto.
2815 * valops.c (value_slice): Ditto.
2816 * symtab.h (union language_specific): Ditto.
2817 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2818 (SYMBOL_DEMANGLED_NAME): Ditto.
2819 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2820 * defs.h (enum language): Ditto.
2821 * symtab.c (got_symtab): Ditto.
2822 * utils.c (fprintf_symbol_filtered): Ditto.
2824 * ch-typeprint.c: Make file obsolete.
2825 * ch-valprint.c: Make file obsolete.
2826 * ch-lang.h: Make file obsolete.
2827 * ch-exp.c: Make file obsolete.
2828 * ch-lang.c: Make file obsolete.
2830 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2832 (TARGET_FLAGS_TO_PASS): Ditto.
2833 (CHILLFLAGS): Obsolete.
2835 (CHILL_FOR_TARGET): Obsolete.
2836 (CHILL_LIB): Obsolete.
2837 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2839 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2840 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2842 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2845 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2847 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2848 This does not change anything at the moment, but will be helpful
2849 later when full Ada support is integrated.
2851 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2853 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2856 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2858 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2859 and save it in a local variable. Use variable in later test.
2861 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2863 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2864 test. (Thanks to Daniel Jacobowitz.)
2866 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2868 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2869 (mips_abi_strings): Add "n64".
2870 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2872 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2874 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2875 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2877 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2879 * utils.c (host_pointer_to_address, address_to_host_pointer):
2880 Use gdb_assert() instead of explicit call to internal_error().
2882 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2884 * Makefile.in (rs6000-nat.o): Update dependencies.
2886 From Nicholas Duffek:
2887 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2888 (aix-thread.o): New rule.
2889 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2890 * config/powerpc/aix432.mh: New file.
2892 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2894 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2895 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2896 (fetch_core_registers, ppc_linux_supply_gregset)
2897 (ppc_linux_supply_fpregset): New functions.
2898 (ppc_linux_regset_core_fns): New.
2899 (_initialize_ppc_linux_tdep): Call add_core_fns.
2900 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2901 and ppc_linux_supply_gregset.
2902 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2903 (supply_fpregset): Call ppc_linux_supply_fpregset.
2904 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2906 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2908 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2910 * symtab.c (lookup_symbol): Demangle before lowercasing.
2912 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2914 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2916 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2917 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2918 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2919 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2921 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2922 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2923 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2924 (avr-tdep.o, mon960-rom.o): Ditto.
2925 (aout_stabs_gnu_h): Define.
2926 (symtab_h): Remove $(gdb_obstack_h).
2928 2002-07-30 Jim Blandy <jimb@redhat.com>
2930 Patch from David Carlton <carlton@math.stanford.edu>:
2931 * gdbinit.in: Move the `dir' commands that add GDB's own source
2932 directory to the search path to the end, so that the `gdb' source
2933 directory will be searched first.
2935 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2937 * gdb_obstack.h: New file.
2938 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2939 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2940 * objfiles.h: Include "gdb_obstack.h".
2941 * Makefile.in (gdb_obstack_h): Define.
2942 (symtab_h): Add $(gdb_obstack_h).
2943 (objfiles_h): Add $(gdb_obstack_h).
2945 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2946 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2947 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2948 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2949 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2950 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2951 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2952 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2954 * Makefile.in (bcache.o): Update dependencies.
2955 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2956 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2957 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2958 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2959 (stabsread.o, symfile.o, symmisc.o): Ditto.
2960 (symtab.o, typeprint.o, macroexp.o): Ditto.
2961 (macrotab.o, mdebugread.o): Ditto.
2962 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2963 (coff_ecoff_h, aout_aout64_h): Define.
2964 (aout_stabs_gnu_h, libaout_h): Define.
2966 2002-07-29 Andrew Cagney <cagney@redhat.com>
2968 * regcache.c (struct regcache_descr): Rename nr_registers to
2969 nr_cooked_registers. Revise comments describing the structure
2971 (init_regcache_descr): Update.
2972 (init_legacy_regcache_descr): Update.
2973 (read_register_gen, write_register_gen): When a cooked register in
2974 the raw register range, directly access the value from the raw
2977 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2979 * z8k-tdep.c: Do not include "obstack.h".
2980 * h8300-tdep.c, h8500-tdep.c: Ditto.
2981 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2982 * valprint.c, v850-tdep.c: Ditto.
2983 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2984 * mn10200-tdep.c: Ditto.
2986 * Makefile.in (z8k-tdep.o): Update dependencies.
2987 (m68hc11-tdep.o, valprint.o): Ditto.
2988 (v850-tdep.o, d10v-tdep.o): Ditto.
2989 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2990 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2991 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2992 (sh_opc_h, gdb_sim_sh_h): Define.
2993 (elf_sh_h, elf_bfd_h): Define.
2994 (opcode_m68hc11_h): Define.
2995 (OPCODES_SRC, OPCODES_DIR): define.
2996 (OPCODES): Use $(OPCODES_DIR).
2997 (gdb_sim_d10v_h): Rename sim_d10v_h.
2998 (gdb_sim_arm_h): Rename sim_arm_h.
3000 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3002 * utils.c (host_pointer_to_address, address_to_host_pointer):
3003 Change internal_error() message to indicate function responsible
3006 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3008 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3009 calls to local_hex_string_custom().
3011 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3013 * irix5-nat.c: Move IRIX shared library support from here...
3014 * solib-irix.c: ...to here. Revised substantially to work with
3015 generic solib framework.
3017 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3018 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3019 * mips-irix-tdep.c: New file.
3021 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3022 (mips-irix-tdep.o, solib-irix.o): New rules.
3023 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3025 * config/mips/irix6.mt (TDEPFILES): Likewise.
3026 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3028 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3030 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3031 disabled (via ``#if 0'') includes.
3033 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3035 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3036 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3037 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3038 Add support for the fpscr register.
3039 * rs6000-nat.c (regmap, fetch_inferior_registers)
3040 (store_inferior_registers, fetch_core_registers): Likewise.
3042 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3044 * rs6000-nat.c (language.h): Include.
3045 (special_regs): Delete this array.
3046 (regmap): New function.
3047 (fetch_register, store_register): Use regmap() to map gdb
3048 register numbers to ptrace register numbers. Also, use
3049 outputs from regmap() to make decisions regarding type of
3050 ptrace() call to make. In particular, don't compare against
3051 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3052 (fetch_inferior_registers, store_inferior_registers): Where
3053 possible, obtain register numbers from tdep struct. Don't
3054 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3055 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3056 (LAST_UISA_SP_REGNUM): Delete.
3058 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3060 * rs6000-nat.c (ppc-tdep.h): Include.
3061 (fetch_registers, store_register, fetch_core_registers): Don't
3062 access registers[] directly. Instead, use supply_register() or
3063 regcache_collect() as appropriate.
3064 (find_toc_address): Format hex address with local_hex_string().
3066 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3068 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3071 2002-07-24 Tom Tromey <tromey@redhat.com>
3073 * jv-exp.y: Marked all strings with _().
3074 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3076 (MethodInvocation, CastExpression, parse_number, yyerror,
3077 java_type_from_name, push_expression_name, yylex): Typo fixes.
3079 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3081 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3082 (tee_file_flush, tee_file_write, tee_file_fputs)
3083 (tee_file_isatty): New.
3084 * ui-file.h (tee_file_new): Add prototype.
3086 2002-07-24 Aidan Skinner <aidan@velvet.net>
3088 * ada-lang.c: Change k&r style function definitions to prototyped
3090 * ada-typeprint.c: Change k&r style function definitions to prototyped
3092 * ada-valprint.c: Change k&r style function definitions to prototyped
3095 2002-07-24 Andrew Cagney <cagney@redhat.com>
3097 * README: Remove reference to remote-bug.
3098 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3100 (m88k-nat.o): Delete rule.
3101 (m88k-tdep.o): Delete rule.
3102 (remote-bug.o): Delete rule.
3103 * MAINTAINERS: Mark as obsolete.
3104 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3105 * m88k-tdep.c: Make file obsolete.
3106 * config/m88k/m88k.mh: Ditto.
3107 * config/m88k/delta88v4.mh: Ditto.
3108 * config/m88k/delta88v4.mt: Ditto.
3109 * config/m88k/delta88.mt: Ditto.
3110 * config/m88k/delta88.mh: Ditto.
3111 * remote-bug.c: Ditto.
3112 * config/m88k/tm-delta88.h: Ditto.
3113 * config/m88k/nm-delta88v4.h: Ditto.
3114 * config/m88k/xm-delta88.h: Ditto.
3115 * config/m88k/xm-dgux.h: Ditto.
3116 * config/m88k/tm-m88k.h: Ditto.
3117 * config/m88k/nm-m88k.h: Ditto.
3118 * config/m88k/tm-delta88v4.h: Ditto.
3119 * m88k-nat.c: Ditto.
3120 * cxux-nat.c: Ditto.
3121 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3122 and m88*-*-* obsolete.
3123 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3126 2002-07-24 Andrew Cagney <cagney@redhat.com>
3128 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3129 constant. Same for local pointer variables.
3130 (extract_signed_integer): Ditto.
3131 * defs.h (extract_unsigned_integer): Update.
3132 (extract_signed_integer): Update.
3134 2002-07-24 Andrew Cagney <cagney@redhat.com>
3136 * regcache.c (regcache_raw_write): Change buf parameter to a
3137 constant void pointer.
3138 (regcache_raw_read): Change buf parameter to a void pointer.
3139 (legacy_write_register_gen): Change myaddr parameter a constant
3141 (supply_register): Change val parameter to a const void pointer.
3142 * regcache.h (regcache_raw_write): Update declaration.
3143 (regcache_raw_read): Update declaration.
3144 (supply_register): Update declaration.
3146 2002-07-24 Tom Tromey <tromey@redhat.com>
3148 * defs.h (gdb_readline_wrapper): Declare.
3149 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3150 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3151 * top.c (gdb_readline_wrapper): New function.
3152 (command_line_input): Use it.
3154 2002-07-24 Andrew Cagney <cagney@redhat.com>
3156 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3157 regcache_read and regcache_write.
3158 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3159 * regcache.c: Update.
3160 * sh-tdep.c (sh64_push_arguments): Update comment.
3161 (sh_pseudo_register_read): Update.
3162 (sh_pseudo_register_write): Update.
3163 (sh4_register_read): Update.
3164 (sh4_register_write): Update.
3165 (sh64_pseudo_register_read): Update.
3166 (sh64_pseudo_register_write): Update.
3167 (sh64_register_read): Update.
3168 (sh64_register_write): Update.
3169 * i386-tdep.c (i386_extract_return_value): Update.
3170 (i386_extract_struct_value_address): Update.
3171 (i386_extract_return_value): Update.
3172 * blockframe.c (generic_read_register_dummy): Update.
3173 (generic_call_dummy_register_unwind): Update
3174 * infrun.c (write_inferior_status_register): Update.
3176 2002-07-23 Jim Blandy <jimb@redhat.com>
3178 * parser-defs.h (expression_context_pc): Make this extern.
3179 (Thanks to Michael Snyder.)
3181 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3183 GDB 5.2.1 released from 5.2 branch.
3184 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3185 * README: Update to mention 5.2.1.
3187 2002-07-23 Mark Salter <msalter@redhat.com>
3189 * remote.c (remote_read_bytes): Fix check for error.
3191 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3193 * aix-thread.c (language.h): Include.
3194 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3195 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3196 Print newlines at end of debug messages.
3197 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3198 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3200 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3202 * aix-thread.c (ppc-tdep.h): Include.
3203 (special_register_p): New function.
3204 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3205 (store_regs_user_thread): Use register number information from
3206 gdbarch_tdep struct instead of hardcoded offsets relative to
3207 FIRST_UISA_SP_REGNUM.
3208 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3209 special_register_p() instead of using FPLAST_REGNUM and
3210 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3211 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3212 will be MQ's register number.
3214 2002-07-22 Michael Snyder <msnyder@redhat.com>
3216 * aix-thread.c (ops): Rename to aix_thread_ops.
3217 (base_ops): Rename to base_target.
3218 (ops_attach): Rename to aix_thread_attach.
3219 (ops_detach): Rename to aix_thread_detach.
3220 (ops_resume): Rename to aix_thread_detach.
3221 (ops_wait): Rename to aix_thread_wait.
3222 (ops_kill): Rename to aix_thread_kill.
3223 (init_ops): Rename to init_aix_thread_ops.
3224 (ops_fetch_register): Rename to aix_thread_fetch_register.
3225 (ops_store_register): Rename to aix_thread_store_register.
3226 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3227 (ops_thread_alive): Rename to aix_thread_thread_alive.
3228 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3229 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3230 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3231 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3232 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3233 (store_regs_lib): Rename to store_regs_user_thread.
3234 (store_regs_kern): Rename to store_regs_kernel_thread.
3236 2002-07-22 Michael Snyder <msnyder@redhat.com>
3238 * aix-thread.c (ops_prepare_to_store): Eliminate.
3239 (init_ops): Don't initialize ops.prepare_to_store.
3240 (store_regs_kern): Pre-fetch register buffers from child,
3241 because some registers may not be in the cache. Copy
3242 regs from register cache only if they are cached.
3243 (store_regs_lib): Copy regs from register cache only
3245 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3246 fill_gprs64): Ditto.
3248 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3250 * aix-thread.c (gdb_assert.h): Include.
3251 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3252 register sizes (from register cache) match size of buffer holding
3254 (fill_sprs32): Change parameter types to match those in the ptrace()
3256 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3257 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3259 2002-07-22 Michael Snyder <msnyder@redhat.com>
3261 * aix-thread.c (supply_sprs64): Cosmetic change.
3262 (supply_sprs32): Cosmetic change.
3263 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3264 (fill_sprs64): Use regcache_collect instead of read_register.
3265 (store_regs_lib): Use regcache_collect instead of
3266 read_register. Use fill_sprs32 instead of fill_sprs64,
3267 if debugging a 32-bit architecture.
3268 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3269 out of the register cache, instead of passing a pointer into
3270 the register cache directly to ptrace. Use regcache_collect
3271 insteaad of read_register.
3272 (ops_prepare_to_store): Use target_read_registers instead
3273 of read_register_bytes.
3275 2002-07-20 Aidan Skinner <aidan@velvet.net>
3277 * MAINTAINERS: Add self under write after approval.
3279 2002-07-20 Aidan Skinner <aidan@velvet.net>
3281 * ada-tasks.c: Change k&r style function definitions to prototyped
3284 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3286 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3287 * x86-64-tdep.c: Include "objfiles.h".
3288 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3289 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3291 2002-07-17 Michal Ludvig <michal@suse.cz>
3293 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3294 (update_context): Initialise cfa variable.
3296 2002-07-17 Michael Snyder <msnyder@redhat.com>
3298 * aix-thread.c: Shorten some long lines.
3299 Bring comments into line with code spec.
3301 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3303 * infrun.c: Re-indent using gdb_indent.sh.
3305 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3307 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3308 Leave the indentation temporarily untouched, to minimize the diffs.
3310 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3312 * stabsread.c: Make os9k sections of the code obsolete,
3314 * stabsread.h: Make os9k sections of the code obsolete.
3316 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3318 * linux-low.c (regsets_store_inferior_registers): Add free()
3319 at the end of a loop to prevent memory leak.
3320 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3321 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3322 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3324 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3326 2002-07-17 Jim Blandy <jimb@redhat.com>
3328 * macrocmd.c (info_macro_command): Remove newline from error
3331 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3333 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3334 (sh_gdbarch_init): Use it for sh-dsp.
3336 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3338 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3339 64-bit DWARF2 format.
3341 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3343 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3344 <sys/proc.h> when not available.
3346 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3348 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3349 * stabsread.c: Make os9k sections of the code obsolete.
3350 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3351 * config/i386/i386os9k.mt: Make file obsolete.
3352 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3353 (COMMON_OBS): Remove os9kread.o
3354 (SFILES): Remove os9kread.c.
3355 (os9kread.o, remote-os9k.o): Make target obsolete.
3356 * remote-os9k.c: Make file obsolete.
3357 * os9kread.c: Make file obsolete.
3360 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3362 * NEWS: Mention that the FR30 has been made obsolete.
3363 * fr30-tdep.c: Make file obsolete.
3364 * config/fr30/tm-fr30.h: Ditto.
3365 * config/fr30/fr30.mt: Ditto.
3366 * configure.tgt: Make fr30-*-elf obsolete.
3367 * MAINTAINERS: Make fr30-elf obsolete.
3369 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3371 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3372 found is not inside a section.
3374 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3376 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3378 (pdc_realloc): Use xrealloc() instead of realloc().
3380 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3382 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3383 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3384 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3387 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3389 * aix-thread.c (ptrace_check): Eliminate goto.
3390 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3393 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3395 * aix-thread.c (gdbcmd.h): Include.
3396 (DEBUG, DBG, DBG2, dbg): Eliminate.
3397 (debug_aix_thread): New static global.
3398 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3399 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3400 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3401 invocations to DBG and DBG2 macros to test against
3402 ``debug_aix_thread'' and call fprintf_unfiltered().
3403 (_initialize_aix_thread): Add new command "set debug aix-thread".
3405 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3407 From Gerhard Tonn <TON@de.ibm.com>:
3408 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3409 instead of supply_register.
3411 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3413 * dwarf2cfi.c: Include "gdb_assert.h".
3414 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3416 (update_context): Do not use __func__. Add missing ``break''.
3417 (update_context): Do not use __func__.
3419 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3421 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3422 and its setting. Set gdbarch instruction printing functions
3423 directly. For non-rs6000 case use new function
3424 gdb_print_insn_powerpc.
3425 (gdb_print_insn_powerpc): New function.
3427 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3429 * NEWS: Mention that the d30v has been marked obsolete.
3430 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3431 * configure.tgt: Mark d30v-*-* as obsolete.
3432 * d30v-tdep.c: Mark file as obsolete.
3433 * config/d30v/d30v.mt: Ditto.
3434 * config/d30v/tm-d30v.h: Ditto.
3436 2002-07-13 Aidan Skinner <aidan@velvet.net>
3438 * ada-tasks.c (add_task_entry): replace calls to
3439 malloc() with xmalloc
3440 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3442 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3443 ada_finish_decode_line_1, all_sals_for_line
3444 ada_breakpoint_rewrite): replace calls to free() with xfree()
3446 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3448 From Nicholas Duffek (with minor changes by Martin Hunt,
3449 Louis Hamilton, and Kevin Buettner):
3450 * aix-thread.c: New file.
3452 2002-07-12 Petr Sorfa <petrs@caldera.com>
3454 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3455 complaint for invalid attribute class or form.
3456 (read_func_scope): DW_AT_frame_base
3457 better handling of DW_AT_block*.
3458 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3459 better handling of DW_AT_block*.
3460 (read_common_block): DW_AT_location
3461 better handling of DW_AT_block*.
3462 (read_partial_die): DW_AT_location better handling
3464 (new_symbol): DW_AT_external better handling of
3465 DW_AT_block*. Proper initialization of variable
3467 (attr_form_is_block): New function that returns true
3468 if the attribute's form is of DW_FORM_block*.
3470 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3472 * valops.c (find_method_list): Remove comment about
3473 removed STATIC_MEMFUNCP argument.
3474 (value_find_oload_method_list): Likewise.
3476 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3478 From Nicholas Duffek:
3479 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3480 target_new_objfile_hook.
3482 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3484 From Nicholas Duffek:
3485 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3488 2002-07-12 Andrew Cagney <cagney@redhat.com>
3490 * MAINTAINERS: Mention --enable-sim-build-warnings.
3491 (m68hc11-elf): Disable sim build warnings.
3492 (m32r-elf): Mark as broken obsolete candidate.
3493 (x86_64-linux-gnu): Mark as buildable with -Werror.
3494 (arm-elf): Change -w to ``,'' which enables warnings but not
3497 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3499 * bcache.h: Update copyright.
3500 (struct bstring, struct bcache): Move definition to "bcache.c".
3501 Replaced by opaque declaration.
3502 (bcache_xfree): Replace free_bcache.
3503 (bcache_xmalloc, bcache_memory_used): Declare.
3505 * bcache.c: Update copyright.
3506 (struct bstring, struct bcache): Moved to here from "bcache.h".
3508 (bcache_xmalloc, bcache_memory_used): New functions.
3509 (bcache_xfree): Replace function free_bcache.
3511 * Makefile.in (objfiles.o): Add $(bcache_h).
3512 (objfiles_h): Remove $(bcache_h).
3513 (symfile.o): Add $(bcache_h).
3515 * symmisc.c: Update copyright.
3516 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3517 (print_objfile_statistics): Use bcache_memory_used.
3519 * symfile.c: Include "bcache.h".
3520 (reread_symbols): Use bcache_xfree.
3521 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3522 (add_psymbol_to_list): Pass psymbol_cache by value.
3523 (add_psymbol_with_dem_name_to_list): Ditto.
3525 * objfiles.h: Update copyright.
3526 (struct bcache): Declare opaque. Do not include "bcache.h".
3527 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3529 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3531 * objfiles.c: Include "bcache.h". Update copyright.
3532 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3534 (free_objfile): Use bcache_xfree.
3536 2002-07-11 Grace Sainsbury <graces@redhat.com>
3538 * monitor.c (monitor_fetch_register): Make name a constant.
3539 (monitor_store_register): Same.
3541 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3543 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3544 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3545 (finish_block) For non-function blocks, hash the symbol table. For
3546 function blocks, mark the symbol table as unhashed.
3547 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3548 (msymbol_hash_iw): Likewise.
3549 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3551 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3552 (lookup_minimal_symbol): Likewise for both.
3553 * symtab.h (struct block): Add `hashtable' flag. Comment the
3555 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3556 (ALL_BLOCK_SYMBOLS): Update.
3557 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3558 (struct symbol): Add `hash_next' pointer.
3559 * symtab.c (lookup_block_symbol): Search using the hash table when
3561 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3562 (search_symbols, find_addr_symbol): Likewise.
3564 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3565 (read_dst_symtab): Likewise.
3566 * jv-lang.c (get_java_class_symtab): Likewise.
3567 * mdebugread.c: Include "gdb_assert.h".
3568 (shrink_block): Assert that the block being modified is not hashed.
3569 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3570 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3572 (dump_symtab): Recognize hashed blocks.
3573 * printcmd.c (print_frame_args): Assert that function blocks do not
3574 have hashed symbol tables.
3575 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3576 (fill_in_ada_prototype, debug_print_block): Likewise.
3577 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3579 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3581 * stack.c (print_frame): Use result of frame_address_in_block()
3582 instead of fi->pc when evaluating symbols.
3583 (backtrace_command_1): Ditto.
3585 2002-07-11 Andrew Cagney <cagney@redhat.com>
3587 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3590 * arm-tdep.c (arm_register_name): Make return type constant.
3592 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3594 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3596 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3597 * s390-tdep.c (s390_fp_regnum): Ditto.
3598 (s390_read_fp): Ditto.
3599 (s390_pop_frame): Ditto.
3600 (_initialize_s390_tdep): Ditto.
3601 * remote.c (get_remote_state): Ditto.
3602 * procfs.c (mappingflags): Ditto.
3603 * memattr.c (_initialize_mem): Ditto.
3604 * mcore-tdep.c (mcore_pop_frame): Ditto.
3605 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3606 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3607 * language.c (set_case_str): Ditto.
3608 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3609 * frv-tdep.c (new_variant): Ditto.
3610 (frv_stopped_data_address): Ditto.
3611 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3612 (context_alloc): Ditto.
3613 (frame_state_alloc): Ditto.
3614 (unwind_tmp_obstack_init): Ditto.
3615 (unwind_tmp_obstack_free): Ditto.
3616 (cfi_read_fp): Ditto.
3617 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3618 (cris_pop_frame): Ditto.
3619 * c-lang.c (scanning_macro_expansion): Ditto.
3620 (finished_macro_expansion): Ditto.
3621 (c_preprocess_and_parse): Ditto.
3622 * gdbarch.sh: Ditto.
3623 * gdbarch.h, gdbarch.c: Regenerate.
3624 * config/mn10200/tm-mn10200.h: Adjust indentation.
3625 * target.c: Adjust indentation.
3626 * symtab.h: Adjust indentation.
3627 * stabsread.h: Adjust indentation.
3628 * remote-es.c: Adjust indentation.
3629 * os9kread.c: Adjust indentation.
3631 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3633 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3634 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3636 2002-07-10 Grace Sainsbury <graces@redhat.com>
3638 * NEWS: Mention m68k, mcore multi-arching.
3639 * MAINTAINERS: Change status of m68k, mcore to reflect
3642 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3644 * valops.c (find_overload_match): Free oload_syms.
3646 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3648 Define HAVE_SYS_PROC_H if sys/proc.h exists
3649 * configure.in: Add check for sys/proc.h
3650 * config.in: Regenerate.
3651 * configure: Regenerate.
3653 2002-07-09 Grace Sainsbury <graces@redhat.com>
3655 * config/m68k/tm-m68k.h: Remove macros wrapped in
3656 #if !GDB_MULTI_ARCH.
3658 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3660 * config.in, configure: Regenerate.
3662 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3664 * dwarf2cfi.c: Include "gcore.h".
3665 (execute_stack_op): Fix implementation of the
3666 DW_OP_deref and DW_OP_deref_size operators by letting do their
3667 lookup in the target.
3669 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3671 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3672 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3675 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3677 Fix PR gdb/595, gdb/602
3678 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3679 Don't call value_cast, just read the vtable pointer; update comments
3682 2002-07-05 Grace Sainsbury <graces@redhat.com>
3684 * config/mcore/tm-mcore.h: Remove file.
3685 * config/mcore/mcore.mt: Remove definition of TM_FILE
3686 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3688 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3690 * i386bsd-tdep.c: Include "gdb_string.h".
3692 2002-07-04 Grace Sainsbury <graces@redhat.com>
3694 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3695 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3697 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3698 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3699 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3700 (RETVAL_REGNUM): Move macros from tm-mcore.h
3701 (mcore_reg_struct_has_addr): New function.
3702 (mcore_gdbarch_init): Added initializations for the macros removed
3705 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3707 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3708 traditonal string branding within the ELF header.
3710 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3712 * symtab.c (remove_params): New function.
3713 (make_symbol_overload_list): Use it instead of cplus_demangle.
3714 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3716 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3718 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3720 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3722 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3723 and tdep->sigtramp_end.
3724 * i386obsd-nat.c: New file.
3725 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3727 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3728 Don't call get_current_frame().
3730 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3732 * i386-nat.c (child_post_startup_inferior): New function
3733 calling i386_cleanup_dregs if
3734 I386_USE_GENERIC_WATCHPOINTS is defined.
3735 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3736 conditional to acknowledge that i386-nat.c has its
3737 own child_post_startup_inferior function.
3739 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3741 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3742 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3743 instead of MAX_REGISTER_RAW_SIZE.
3744 (i386_extract_return_value, i386_extract_struct_value_address):
3745 Convert to use regcache.
3746 (i386_gdbarch_init): Set max_register_raw_size and
3747 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3748 Set extract_return_value and extract_struct_value_address instead
3749 of their deprecated variants.
3751 Convert i386 target to generic dummy frames.
3752 * i386-tdep.c: Include "symfile.h".
3753 (i386_frameless_signal_p): Consider a function to be frameless if
3754 the pc points at the first instruction of the function.
3755 (i386_frame_chain): Handle (generic) call dummies.
3756 (i386_frame_saved_pc): Likewise.
3757 (i386_frame_init_saved_regs): Remove code dealing with call
3758 dummies on the stack.
3759 (i386_push_dummy_frame): Removed.
3760 (i386_call_dummy_words): Removed.
3761 (i386_fix_call_dummy): Removed.
3762 (i386_push_return_address): New function.
3763 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3764 parameter, and don't call get_current_frame.
3765 (i386_pop_frame): New function.
3766 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3767 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3768 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3769 call_dummy_length to 0, set call_dummy_words to NULL, set
3770 sizeof_call_dummy_words to 0, set fix_call_dummy to
3771 generic_fix_call_dummy, set pc_in_call_dummy to
3772 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3773 generic_push_dummy_frame, set push_return_address to
3774 i386_push_return_address and set frame_chain_valid to
3775 generic_file_frame_chain_valid.
3777 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3779 * gdbarch.sh (struct regcache): Add opaque declaration.
3780 (EXTRACT_RETURN_VALUE): New architecture method.
3781 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3782 * gdbarch.h, gdbarch.c: Regenerate.
3783 * arch-utils.c (legacy_extract_return_value): New function.
3784 * arch-utils.h (legacy_extract_return_value): Declare.
3785 * values.c (value_being_returned): Re-enable code handling
3786 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3787 deprecated_grub_regcache_for_registers call to block handling
3788 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3789 (EXTRACT_RETURN_VALUE): Do not define.
3791 2002-07-03 Grace Sainsbury <graces@redhat.com>
3793 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3794 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3795 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3796 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3797 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3798 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3799 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3800 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3801 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3802 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3803 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3804 argument so the function fits the prototype in the architecture
3806 (mcore_pop_frame): Remove argument so the function fits the
3807 prototype. Use get_current_frame instead of the argument.
3808 (mcore_push_arguments): Change type of struct_return so the
3809 function can be used in the architecture vector.
3810 (mcore_store_struct_return): Add.
3811 (mcore_frame_init_saved_regs): Add.
3812 (mcore_gdbarch_init): Add function calls to replace the macros
3813 removed from tm-mcore.h
3815 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3817 * infcmd.c (print_return_value): Remove compatibility code calling
3818 deprecated_grub_regcache_for_registers.
3820 * values.c: Include "regcache.h".
3821 (value_being_returned): Update. Use
3822 deprecated_grub_regcache_for_registers to extract the register
3824 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3825 ``struct regcache''.
3826 * Makefile.in (values.o): Add dependency on $(regcache_h).
3828 * inferior.h (run_stack_dummy): Change type of second parameter to
3829 a ``struct regcache''.
3830 * valops.c (hand_function_call): Change type of retbuf to ``struct
3831 regcache''. Allocate using regcache_xmalloc, clean using
3832 make_cleanup_regcache_xfree.
3833 * infcmd.c (run_stack_dummy): Update. Use
3834 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3836 * regcache.c (do_regcache_xfree): New function.
3837 (make_cleanup_regcache_xfree): New function.
3838 * regcache.h (make_cleanup_regcache_xfree): Declare.
3840 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3842 * event-top.c (command_line_handler): Don't read past
3843 beginning of buffer.
3845 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3847 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3849 (varobj_create): Store frame_id for root.
3850 (varobj_gen_name): Use xasprintf.
3851 (varobj_update): Save and restore frame using get_frame_id() and
3853 (create_child): Use xasprintf.
3854 (new_root_variable): Initialize frame_id.
3855 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3856 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3857 to prevent memory leak.
3859 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3861 * valops.c (hand_function_call): Move declaration of retbuf to
3862 start of function, allocate using malloc, add a cleanup but before
3863 the inf_status cleanup, cleanup the buffer. Rename local variable
3864 old_chain to inf_status_cleanup.
3866 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3868 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3870 * cli/cli-decode.c (cmd_func_p): New function.
3871 (cmd_func): New function.
3873 * command.h: Add cmd_func() and cmd_func_p().
3875 2002-07-03 Grace Sainsbury <graces@redhat.com>
3877 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3878 (REGISTER_SIZE): Remove.
3879 (MAX_REGISTER_RAW_SIZE): Remove.
3880 (REGISTER_VIRTUAL_TYPE): Remove.
3881 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3882 (REGISTER_NAME): Remove.
3883 (USE_GENERIC_DUMMY_FRAMES): Remove.
3884 (CALL_DUMMY): Remove.
3885 (CALL_DUMMY_START_OFFSET): Remove.
3886 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3887 (CALL_DUMMY_LOCATION): Remove.
3888 (FIX_CALL_DUMMY): Remove.
3889 (CALL_DUMMY_ADDRESS): Remove.
3890 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3891 (SAVE_DUMMY_FRAME_TOS): Remove.
3892 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3893 (mcore_register_virtual_type): New function.
3894 (mcore_register_byte): New function.
3895 (mcore_register_size): New function.
3896 (mcore_register_name): New function.
3897 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3898 macros removed from tm-mcore.h.
3899 (mcore_dump_tdep): Add.
3900 (_initialize_mcore_tdep): Add gdbarch_register call.
3902 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3904 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3905 frameless_look_for_prologue, such that we actually call this
3908 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3910 * frame.h (frame_address_in_block): New function.
3912 * blockframe.c (frame_address_in_block): New function extracted
3913 from get_frame_block().
3914 (get_frame_block): Use frame_address_in_block().
3915 (block_innermost_frame): Use frame_address_in_block() to match
3916 the frame pc address against the block boundaries rather than
3917 the frame pc directly. This prevents a failure when a frame pc
3918 is actually a return-address pointing immediately after the end
3921 2002-07-02 Grace Sainsbury <graces@redhat.com>
3923 * MAINTAINERS: Add self under write after approval.
3925 2002-07-02 Grace Sainsbury <graces@redhat.com>
3927 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3928 used in architecture vector. The default is
3929 m68k_local_breakpoint_from_pc.
3930 (m68k_local_breakpoint_from_pc): Add.
3931 (enum): Add register numbers from tm-m68k.h.
3932 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3934 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3935 GDB_MULTI_ARCH_PARTIAL.
3936 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3937 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3939 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3940 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3941 to enum in m68k-tdep.c
3943 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3945 * solib-osf.c (open_map): Compute the list of shared libraries
3946 loaded by the inferior, rather than the list of libraries loaded
3947 by GDB itself. Otherwise, GDB ends up reading the symbols from
3948 the wrong shared libraries...
3950 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3952 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3953 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3955 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3957 (FRAMELESS_SIGNAL): Remove function.
3958 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3959 i386_linux_saved_pc_after_call): Removed.
3960 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3961 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3962 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3964 * i386-tdep.c (i386_frameless_signal_p): New function.
3965 (i386_frame_chain): Deal with frameless signals.
3966 (i386_sigtramp_saved_sp): New function.
3967 (i386_frame_saved_pc): Deal with frameless signals.
3968 (i386_saved_pc_after_call): Make sure the correct value is
3969 returned just after entry into a sigtramp.
3970 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3971 i386fbsd4_sc_sp_offset): New variables.
3972 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3973 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3974 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3975 similiar to what we already did for sc_pc_offset.
3976 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3979 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3981 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3983 * config/i386/tm-x86-64linux.h: New.
3984 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3986 * config/i386/nm-x86-64.h: Rename to ...
3987 * config/i386/nm-x86-64linux.h: ... this one.
3988 * config/i386/x86-64linux.mh: Reflect the above change.
3990 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3992 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3993 with sigcontext_addr. Add sc_sp_offset.
3994 (i386bsd_sigtramp_saved_pc): Remove prototype.
3995 (i386bsd_sicontext_addr): Add prototype.
3996 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3997 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3998 (i386_svr4_sigtramp_saved_pc): Removed.
3999 (i386_svr4_sigcontext_addr): New function.
4000 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4001 Initialize tdep->sigcontext_addr instead. Initialize
4002 tdep->sc_pc_offset and tdep->sc_sp_offset.
4003 (i386_gdbarch_init): Likewise.
4004 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4006 (i386bsd_sigtramp_saved_pc): Remove function.
4007 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4008 Initialize tdep->sigcontext_addr instead. Initialize
4010 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4011 of tdep->sigtramp_saved_pc.
4012 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4013 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4016 * i386-tdep.c (i386_frameless_function_invocation,
4017 i386_frame_num_args, i386_frame_init_saved_regs,
4018 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4019 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4020 i386_extract_return_value, i386_store_return_value,
4021 i386_extract_struct_value_address, i386_register_virtual_type,
4022 i386_register_convertible, i386_register_convert_to_virtual,
4023 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4024 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4027 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4029 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4031 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4032 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4033 this macro. Include "value.h".
4035 2002-06-30 Aidan Skinner <aidan@velvet.net>
4037 * ada-exp.tab.c: remove as it's a generated file
4038 * ada-lex.c: remove as it's a generated file
4040 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4042 * config/i386/tm-i386.h (struct frame_info, struct
4043 frame_saved_regs, struct value, struct type): Remove forward
4046 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4047 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4048 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4049 (FILL_FPXREGSET): Define.
4051 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4053 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4054 i[3456]86-*-netbsd* case.
4055 * config/i386/tm-obsd.h: Removed.
4056 * config/i386/obsd.mt: Removed.
4057 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4059 (MH_CFLAGS): Add -DYYDEBUG=0.
4061 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4062 i386nbsd_sc_pc_offset on OpenBSD too.
4064 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4065 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4066 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4068 * i386bsd-tdep.c: Include "arch-utils.h".
4069 (i386bsd_aout_in_solib_call_trampoline): New function.
4070 (i386bsd_init_abi): Set in_solib_call_trampoline to
4071 i386bsd_aout_in_solib_call_trampoline.
4072 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4073 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4075 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4077 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4078 (struct obstack, struct bcache): Add opaque declarations.
4079 * Makefile.in (macrotab_h): Update
4081 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4083 * blockframe.c (generic_find_dummy_frame): Change return type to
4084 ``struct regcache''.
4085 (struct dummy_frame): Replace field ``registers'' with regcache, a
4086 struct regcache object.
4087 (generic_find_dummy_frame): Update.
4088 (generic_push_dummy_frame): Update. Use regcache_xfree,
4089 regcache_xmalloc and regcache_cpy.
4090 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4092 (deprecated_generic_find_dummy_frame): Update.
4093 (generic_read_register_dummy): Update. Use
4094 regcache_read_as_address.
4095 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4096 (generic_get_saved_register): Update. Use regcache_read.
4098 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4100 * Makefile.in (objfiles_h): Add $(bcache_h).
4101 * objfiles.h: Include "bcache.h".
4103 * Makefile.in (symtab_h): Remove $(bcache_h).
4104 * symtab.h: Do not include "bcache.h".
4106 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4108 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4109 generic_func_frame_chain_valid.
4111 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4113 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4114 * config/i386/tm-fbsd.h: Likewise.
4116 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4118 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4119 generic_unwind_get_saved_register.
4121 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4123 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4124 * regcache.c (supply_register): Add missing argument to
4125 register_buffer call.
4127 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4129 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4130 Solaris /bin/grep does not not like it. From Peter Schauer.
4132 2002-06-26 Tom Tromey <tromey@redhat.com>
4134 * command.h (add_setshow_cmd): Declare.
4135 (add_setshow_cmd_full): Declare.
4136 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4137 returns void. Use add_setshow_cmd_full.
4138 (add_setshow_cmd_full): New function.
4139 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4140 (add_setshow_boolean_cmd): Likewise.
4142 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4144 * config/vax/tm-vax.h: Protect from multiple inclusion.
4145 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4146 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4147 * config/vax/tm-vaxbsd.h: ...here. New file.
4148 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4150 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4152 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4153 (BELIEVE_PCC_PROMOTION): Remove.
4154 (AP_REGNUM): Move to...
4155 * config/vax/nm-vax.h: ...here.
4156 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4157 (vax_breakpoint_from_pc): New function.
4158 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4159 and gdbarch_believe_pcc_promotion.
4161 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4163 * Makefile.in (vax_tdep_h): Define.
4164 (vax-tdep.o): Use $(vax_tdep_h).
4165 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4166 (vax_dump_tdep): New function.
4167 (_initialize_vax_tdep): Register vax_dump_tdep.
4168 * vax-tdep.h: Include osabi.h.
4169 (struct gdbarch_tdep): New.
4171 2002-06-26 Andrew Cagney <cagney@redhat.com>
4173 * frame.h (deprecated_generic_find_dummy_frame): Rename
4174 generic_find_dummy_frame.
4175 * blockframe.c (generic_find_dummy_frame): Make static.
4176 (deprecated_generic_find_dummy_frame): New function.
4177 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4178 generic_find_dummy_frame with deprecated_find_dummy_frame.
4179 (sh64_nofp_frame_init_saved_regs): Ditto.
4180 (sh_fp_frame_init_saved_regs): Ditto.
4181 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4182 (s390_frame_chain): Ditto.
4183 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4185 2002-06-26 Grace Sainsbury <graces@redhat.com>
4187 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4188 gdbarch vector are at the top.
4190 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4191 (FRAME_ARGS_ADDRESS): Remove.
4192 (FRAME_LOCALS_ADDRESS): Remove.
4193 (FRAME_NUM_ARGS): Remove.
4194 (FRAME_ARGS_SKIP): Remove.
4195 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4196 (m68k_gdbarch_init): Add gdbarch initializations for macros
4197 undefined in tm-m68k.h
4199 2002-06-26 Grace Sainsbury <graces@redhat.com>
4201 * monitor.h: Add the function regname to monitor_ops
4202 structure. This way NUM_REGS does not have to be a constant.
4203 * monitor.c (monitor_fetch_register): Added support for regname
4204 function. The function is called if the array regnames is NULL.
4205 (monitor_store_register): Same.
4206 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4208 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4209 cpu32bug_cmds.regname to point to new function.
4210 * abug-rom.c (abug_regname): Same as above.
4211 (init_abug_cmds): Same.
4212 * dbug-rom.c (dbug_regname): Same as above.
4213 (init_dbug_cmds): Same.
4214 * remote-est.c (est_regname): Same.
4215 (init_est_cmds): Same.
4216 * rom68k-rom.c (rom68k_regname): Same.
4217 (init_rom68k_cmds): Same.
4219 2002-06-25 Tom Tromey <tromey@redhat.com>
4221 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4223 2002-06-25 Andrew Cagney <cagney@redhat.com>
4225 * infrun.c (stop_registers): Change variable's type to ``struct
4227 (xmalloc_inferior_status): Delete function.
4228 (free_inferior_status): Delete function.
4229 (normal_stop): Use regcache_cpy.
4230 (struct inferior_status): Change type of fields ``stop_registers''
4231 and ``registers'' to ``struct regcache''.
4232 (write_inferior_status_register): Use regcache_write.
4233 (save_inferior_status): Instead of calling
4234 xmalloc_inferior_status, allocate the inf_status buffer directly.
4235 Use regcache_dup_no_passthrough and regcache_dup to save the
4237 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4238 Replace the stop_registers regcache instead of overriding it. Use
4239 regcache_xfree. Instead of calling free_inferior_status, xfree
4240 the buffer directly.
4241 (discard_inferior_status): Use regcache_xfree. Instead of calling
4242 free_inferior_status, xfree the buffer directly.
4243 (build_infrun): Use regcache_xmalloc.
4244 (_initialize_infrun): Delete redundant call to build_infrun.
4246 * Makefile.in (infcmd.o): Add $(regcache_h).
4248 * infcmd.c: Include "regcache.h".
4249 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4250 obtain the address of `stop_registers' register buffer.
4251 (print_return_value): Ditto.
4253 * inferior.h (struct regcache): Add opaque declaration.
4254 (stop_registers): Change variable's declared type to ``struct
4257 2002-06-24 Tom Tromey <tromey@redhat.com>
4259 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4260 * target.c (initialize_targets): Fixed typo in
4261 trust-readonly-sections `show' documentation.
4263 * main.c: Marked all strings with _().
4265 2002-06-24 Don Howard <dhoward@redhat.com>
4267 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4268 that means max CORE_ADDR+1.
4269 (lookup_mem_region): Ditto.
4270 (mem_info_command): Ditto.
4272 2002-06-24 Grace Sainsbury <graces@redhat.com>
4274 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4275 (REGISTER_BYTES_OK): Remove.
4276 (REGISTER_BYTES): Remove.
4277 (STORE_STRUCT_RETURN): Remove.
4278 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4279 (STORE_RETURN_VALUE): Remove.
4280 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4281 (FRAME_CHAIN): Remove.
4282 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4283 (FRAME_SAVED_PC): Remove.
4284 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4285 (m68k_store_struct_return): Add.
4286 (m68k_deprecated_extract_return_value): Add.
4287 (m68k_deprecated_extract_struct_value_address): Add.
4288 (m68k_store_return_value): Add.
4289 (m68k_frame_chain): Add.
4290 (m68k_frameless_function_invocation): Add.
4291 (m68k_frame_saved_pc): Add.
4292 (m68k_gdbarch_init): added set_gdbarch calls for new
4293 functions and deleted macros.
4295 2002-06-23 Tom Tromey <tromey@redhat.com>
4297 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4298 (ALLDEPFILES): Likewise.
4299 (udiheaders): Removed.
4300 (udip2soc.o): Likewise.
4301 (udi2go32.o): Likewise.
4303 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4305 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4307 * infrun.c (_initialize_infrun): Delete unnecessary call to
4310 * regcache.h: Update comments describing the regcache_cpy family
4312 (regcache_save, regcache_restore): Delete declaration.
4313 (regcache_save_no_passthrough): Delete declaration.
4314 (regcache_restore_no_passthrough): Delete declaration.
4315 * regcache.c (regcache_save): Delete function.
4316 (regcache_save_no_passthrough): Delete function.
4317 (regcache_restore): Delete function.
4318 (regcache_restore_no_passthrough): Delete function.
4320 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4322 * config/m68k/tm-m68k.h: Fix typo.
4323 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4324 (m68k_frame_init_saved_regs): Declare.
4326 2002-06-21 Jim Blandy <jimb@redhat.com>
4328 Remove some vestiges of Harris 88k support.
4329 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4330 register numbering quirk.
4331 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4332 odd symbols occurring in Harris 88k ELF targets.
4334 2002-06-21 Tom Tromey <tromey@redhat.com>
4336 * gdb_locale.h: New file.
4337 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4338 (defs_h): Added gdb_locale.h.
4339 * configure, config.in: Rebuilt.
4340 * configure.in (PACKAGE): Define.
4341 * defs.h: Include gdb_locale.h.
4342 * main.c (captured_main): Call setlocale, bindtextdomain,
4345 2002-06-21 Dave Brolley <brolley@redhat.com>
4347 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4348 * config/frv/frv.mt: New file.
4349 * config/frv/tm-frv.h: New file.
4350 * configure.tgt: Support frv-*-*.
4351 * Makefile.in (frv-tdep.o): New target.
4352 * frv-tdep.c: New file.
4353 * NEWS: Mention frv.
4355 2002-06-21 Dave Brolley <brolley@redhat.com>
4357 * MAINTAINERS: Add self to "Write After Approval" list.
4359 2002-06-21 Grace Sainsbury <graces@redhat.com>
4361 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4362 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4363 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4364 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4365 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4367 * m68k-tdep.c: Include arch-utils.h
4368 (m68k_register_raw_size): Add.
4369 (m68k_register_virtual_size): Add.
4370 (m68k_register_virtual_type): Add.
4371 (m68k_register_name): Add.
4372 (m68k_stack_align): Add.
4373 (m68k_register_byte): Add.
4374 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4377 2002-06-21 Grace Sainsbury <graces@redhat.com>
4379 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4380 m68k_find_saved_regs.
4381 (m68k_pop_frame): Removed saved_regs structure, and replaced
4382 references to it with frame->saved_regs.
4383 (m68k_gdbarch_init): Added function calls to initialize the
4385 (m68k_fix_call_dummy): Add.
4386 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4387 (CALL_DUMMY): Remove.
4388 (CALL_DUMMY_LENGTH): Remove.
4389 (CALL_DUMMY_START_OFFSET): Remove.
4390 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4391 (FIX_CALL_DUMMY): Remove.
4392 (PUSH_DUMMY_FRAME): Remove.
4393 (POP_FRAME): Remove.
4395 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4397 * parse.c (parse_fprintf): New function used to avoid calls to
4398 fprintf in bison parser generated debug code.
4399 * parser-defs.h: Declaration of new parse_fprintf function.
4400 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4401 Set YYDEBUG to 1 by default.
4402 Set YYFPRINTF as parse_fprintf.
4404 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4406 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4408 (pointer_encoding, enum ptr_encoding): New.
4409 (execute_cfa_program): Take care about pointer encoding.
4410 (dwarf2_build_frame_info): Only call parse_frame_info for
4411 .debug_frame and .eh_frame.
4412 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4413 fixed augmentation handling, added relative addressing,
4414 ignore duplicate FDEs. Added comments.
4415 * dwarf2cfi.c: Reindented.
4417 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4419 * event-top.c (command_handler): Don't use space_at_cmd_start
4420 unless there is sbrk() on the host. Assign time and space data
4421 to union fields of the appropriate length.
4423 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4425 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4426 x86_64_register_name. Return type changed to 'const char *'.
4427 (x86_64_register_name2nr): Rename to x86_64_register_number.
4428 (x86_64_gdbarch_init): Update to reflect the change.
4429 * x86-64-tdep.h: Ditto.
4430 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4431 (supply_fpregset): Ditto.
4433 2002-06-19 Andrew Cagney <cagney@redhat.com>
4435 * regcache.h: Update copyright.
4436 (struct regcache, struct gdbarch): Add opaque declarations.
4437 (current_regcache): Declare global variable.
4438 (regcache_read, regcache_write): Add gdbarch parameter.
4439 (regcache_save, regcache_save_no_passthrough)
4440 (regcache_restore, regcache_restore_no_passthrough)
4441 (regcache_dup, regcache_dup_no_passthrough)
4442 (regcache_cpy, regcache_cpy_no_passthrough)
4443 (deprecated_grub_regcache_for_registers)
4444 (deprecated_grub_regcache_for_register_valid)
4445 (regcache_valid_p): Add function declarations.
4447 * regcache.c: Update copyright.
4448 (regcache_descr_handle): New global variable.
4449 (struct regcache_descr): Define.
4450 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4451 (regcache_descr, xfree_regcache_descr): New functions.
4452 (struct regcache): Define.
4453 (regcache_xmalloc, regcache_xfree): New functions.
4454 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4455 (regcache_dup, regcache_dup_no_passthrough): New functions.
4456 (regcache_valid_p, regcache_read_as_address): New functions.
4457 (deprecated_grub_regcache_for_registers): New function.
4458 (deprecated_grub_regcache_for_register_valid): New function.
4459 (current_regcache): New global variable.
4460 (register_buffer): Add regcache parameter. Update calls.
4461 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4462 (read_register_gen, write_register_gen): Update register_buffer
4463 call. Test for legacy_p instead of gdbarch_register_read_p or
4464 gdbarch_register_write_p.
4465 (regcache_collect): Update register_buffer call.
4466 (build_regcache): Rewrite. Use deprecated grub functions.
4467 (regcache_save, regcache_save_no_passthrough): New functions.
4468 (regcache_restore, regcache_restore_no_passthrough): New
4470 (_initialize_regcache): Create the regcache_data_handle. Swap
4471 current_regcache global variable.
4473 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4474 parameter to regcache_read and regcache_write calls.
4475 (sh4_register_read): Ditto.
4476 (sh64_pseudo_register_read): Ditto.
4477 (sh64_register_read): Ditto.
4478 (sh_pseudo_register_write): Ditto.
4479 (sh4_register_write): Ditto.
4480 (sh64_pseudo_register_write): Ditto.
4481 (sh64_register_write): Ditto.
4483 * defs.h (XCALLOC): Define.
4485 2002-06-19 Grace Sainsbury <graces@redhat.com>
4487 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4488 * m68k-tdep.c (m68k_gdbarch_init): Added.
4489 (m68k_dump_tdep): Added.
4491 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4493 * ada-lang.c (fill_in_ada_prototype): Update comment.
4495 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4497 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4499 (mips_abi_string, mips_abi_strings): New.
4500 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4501 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4502 tdep->mips_abi_string. Honor mips_abi_string. Default to
4503 O32 if no ABI is found.
4504 (mips_dump_tdep): Use mips_abi_strings.
4505 (mips_abi_update): New function.
4506 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4507 ``set mips abi'' and ``show mips abi''. Check the size of
4510 2002-06-19 Andrew Cagney <cagney@redhat.com>
4512 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4515 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4517 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4518 current frame using only the first stack size adjustment. All
4519 subsequent size adjustments are not considered to be part of
4520 the "static" part of the current frame.
4521 Compute the address of the saved registers relative to the
4522 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4523 in use in this frame.
4525 2002-06-18 Don Howard <dhoward@redhat.com>
4527 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4528 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4529 suggesting this solution.
4531 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4533 * config/romp/xm-rtbsd.h: Delete file.
4534 * config/romp/rtbsd.mh: Delete file.
4536 2002-06-18 Keith Seitz <keiths@redhat.com>
4538 * breakpoint.c (condition_command): Post breakpoint_modify
4539 when a condition is added to an existing breakpoint.
4540 (commands_command): Likewise for commands.
4541 (set_ignore_count): Likewise for ignore counts.
4542 If no tty, do not simply return, still need to send event
4544 (ignore_command): Only print a newline if the command came
4546 Don't call breakpoints_changed, since this is now properly
4547 handled by set_ignore_count.
4549 2002-06-18 Andrew Cagney <cagney@redhat.com>
4551 * MAINTAINERS: Note that cris-elf target can be compiled with
4553 * cris-tdep.c (cris_register_name): Make return type constant.
4554 (cris_breakpoint_from_pc): Ditto.
4556 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4558 * frame.h (struct frame_info): Change type of context to
4561 2002-06-17 Andrew Cagney <cagney@redhat.com>
4563 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4565 * gdbarch.h, gdbarch.c: Regenerate.
4566 * config/mips/tm-mips.h (mips_register_name): Update.
4567 * i386-tdep.h (i386_register_name): Update.
4568 * mips-tdep.c (mips_register_name): Update
4569 * alpha-tdep.c (alpha_register_name): Update.
4570 * arch-utils.c (legacy_register_name): Update.
4571 * arch-utils.h (legacy_register_name): Update.
4572 * avr-tdep.c (avr_register_name): Update.
4573 * ia64-tdep.c (ia64_register_name): Update.
4574 * i386-tdep.c (i386_register_name): Update.
4575 * sparc-tdep.c (sparc32_register_name): Update.
4576 (sparc64_register_name): Update.
4577 (sparclite_register_name): Update.
4578 (sparclet_register_name): Update.
4579 * sh-tdep.c (sh_generic_register_name): Update.
4580 (sh_sh_register_name): Update.
4581 (sh_sh3_register_name): Update.
4582 (sh_sh3e_register_name): Update.
4583 (sh_sh_dsp_register_name): Update.
4584 (sh_sh3_dsp_register_name): Update.
4585 (sh_sh4_register_name): Update.
4586 (sh_sh64_register_name): Update.
4587 * s390-tdep.c (s390_register_name): Update.
4588 * rs6000-tdep.c (rs6000_register_name): Update.
4589 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4590 (ns32k_register_name_32382): Update.
4591 * d10v-tdep.c (d10v_ts2_register_name): Update.
4592 (d10v_ts3_register_name): Update.
4593 * xstormy16-tdep.c (xstormy16_register_name): Update.
4594 * vax-tdep.c (vax_register_name): Update.
4595 * v850-tdep.c (v850_register_name): Update.
4596 * m68hc11-tdep.c (m68hc11_register_name): Update.
4597 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4598 (am33_register_name): Update.
4600 2002-06-17 Grace Sainsbury <graces@redhat.com>
4602 * m68k-tdep.c: Reindented.
4604 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4606 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4607 list of predefined types.
4609 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4611 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4612 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4613 REGISTER_CONVERT_TO_RAW): Remove defines.
4614 (i386_register_virtual_type, i386_register_convertible,
4615 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4617 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4618 macros mentioned above.
4620 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4621 (i386lynx_saved_pc_after_call): Remove prototype.
4622 * i386ly-tdep.c: Include "i386-tdep.h".
4623 (i386lynx_saved_pc_after_call): Make static. Use
4624 read_memory_nobpt instead of read_memory. Use
4625 read_memory_unsigned_integer instead of read_memory_integer.
4626 (i386lynx_init_abi): New function.
4627 (i386lynx_coff_osabi_sniffer): New function.
4628 (_initialize_i386bsd_tdep): New function.
4630 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4631 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4632 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4633 (i386_fix_call_dummy): Remove prototype.
4634 * i386-tdep.c (i386_call_dummy_words): New variable.
4635 (i386_gdbarch_init): Adjust for removal of the
4636 macros mentioned above.
4638 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4640 * command.h (add_setshow_auto_boolean_cmd): Replace
4641 add_set_auto_boolean_cmd.
4642 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4643 add_set_auto_boolean_cmd.
4644 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4645 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4646 mask-address'' command.
4647 (show_mask_address): Add cmd parameter.
4648 * remote.c (add_packet_config_cmd): Update. Change type of
4649 set_func and show_func to cmd_sfunc_ftype.
4650 (_initialize_remote): Update `set remote Z-packet'
4651 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4652 (show_remote_protocol_e_packet_cmd): Ditto.
4653 (show_remote_protocol_E_packet_cmd): Ditto.
4654 (show_remote_protocol_P_packet_cmd): Ditto.
4655 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4656 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4657 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4658 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4659 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4660 (show_remote_protocol_Z_packet_cmd): Ditto.
4661 (show_remote_protocol_binary_download_cmd): Ditto.
4662 (show_remote_cmd): Pass NULL to all of above.
4664 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4666 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4667 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4668 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4669 POP_FRAME): Remove defines.
4670 (i386_push_arguments, i386_store_struct_return,
4671 i386_extract_return_value, i386_store_return_value,
4672 i386_extract_struct_value_address, i386_push_dummy_frame,
4673 i386_pop_frame): Renove prototypes.
4674 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4675 macros mentioned above.
4677 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4679 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4680 add_set_boolean_cmd.
4681 (add_setshow_cmd): New function.
4682 * command.h (add_setshow_boolean_cmd): Replace
4683 add_set_boolean_cmd.
4684 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4685 and ``set rdiromatzero''.
4686 * maint.c (_initialize_maint_cmds): Update commented out code.
4687 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4688 * target.c (initialize_targets): Update `set
4689 trust-readonly-sections'.
4690 * remote.c (_initialize_remote): Update `set remotebreak'.
4692 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4694 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4695 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4696 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4697 fit into multi-arch framework.
4698 (i386_breakpoint_from_pc): New function.
4699 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4702 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4703 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4704 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4705 (i386_frameless_function_invocation, i386_frame_num_args,
4706 i386_frame_init_saved_regs): Remove prototypes.
4707 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4708 macros mentioned above.
4710 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4712 * cli/cli-decode.c (set_cmd_cfunc): Update.
4713 (set_cmd_sfunc): Update.
4714 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4715 (set_cmd_sfunc, set_cmd_cfunc): Update.
4716 * cli/cli-decode.h: Update.
4718 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4720 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4721 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4723 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4725 * defs.h (auto_boolean): Declare enum.
4726 * command.h (cmd_auto_boolean): Delete enum.
4727 * mips-tdep.c (mask_address_var): Update.
4728 (mips_mask_address_p): Update.
4729 (show_mask_address): Update.
4730 * remote.c (struct packet_config): Update.
4731 (update_packet_config): Update.
4732 (show_packet_config_cmd): Update.
4733 (packet_ok): Update.
4734 (add_packet_config_cmd): Update.
4735 (_initialize_remote):
4736 * command.h: Update.
4737 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4738 (do_setshow_command): Update.
4739 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4740 * cli/cli-decode.h: Update.
4742 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4744 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4745 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4746 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4747 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4748 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4749 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4751 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4752 list of DJGPP COFF targets.
4754 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4755 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4756 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4757 (FP0_REGNUM): Remove define.
4758 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4759 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4760 (i386_register_virtual_size): Remove protoype.
4761 * i386-tdep.c (i386_register_virtual_size): Removed.
4762 (i386_extract_return_value, i386_store_return_value): Use
4763 FP0_REGNUM instead of NUM_FREGS to determine whether the
4764 floating-point registers are available.
4765 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4766 Adjust for removal of macros mentioned above.
4768 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4770 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4772 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4774 (supply_gregset, fill_gregset): Remove use of register keyword and
4775 remove declaration for regmap. Use I386_NUM_GREGS instead of
4776 NUM_REGS and NUM_FREGS.
4777 (FPREGSET_FSAVE_OFFSET): Remove.
4778 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4779 NUM_FREGS to determine whether the floating-point registers are
4782 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4783 gnu_store_registers): Replace usage of NUM_GREGS with
4786 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4787 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4788 usage of NUM_GREGS with I386_NUM_GREGS.
4790 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4792 * i386bsd-nat.c: Include "i386-tdep.h".
4793 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4796 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4797 and associated comment. They no longer make any sense, since we
4798 don't use this file anymore on Linux.
4800 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4801 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4802 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4803 elements in these arrays.
4804 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4807 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4809 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4810 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4812 2002-06-14 Andrew Cagney <cagney@redhat.com>
4814 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4815 EXTRACT_RETURN_VALUE.
4816 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4817 EXTRACT_STRUCT_VALUE_ADDRESS.
4818 * gdbarch.h, gdbarch.c: Regenerate.
4820 * values.c (value_being_returned): Handle
4821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4822 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4824 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4825 * arm-tdep.c (arm_gdbarch_init): Update.
4826 * avr-tdep.c (avr_gdbarch_init): Update.
4827 * cris-tdep.c (cris_gdbarch_init): Update.
4828 * d10v-tdep.c (d10v_gdbarch_init): Update.
4829 * ia64-tdep.c (ia64_gdbarch_init): Update.
4830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4831 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4832 * s390-tdep.c (s390_gdbarch_init): Update.
4833 * sh-tdep.c (sh_gdbarch_init): Update.
4834 * s390-tdep.c (s390_gdbarch_init): Update.
4835 * sparc-tdep.c (sparc_gdbarch_init): Update.
4836 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4837 * v850-tdep.c (v850_gdbarch_init): Update.
4838 * vax-tdep.c (vax_gdbarch_init): Update.
4839 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4842 * config/arc/tm-arc.h: Update.
4843 * config/d30v/tm-d30v.h: Update.
4844 * config/fr30/tm-fr30.h: Update.
4845 * config/h8300/tm-h8300.h: Update.
4846 * config/h8500/tm-h8500.h: Update.
4847 * config/i386/tm-i386.h: Update.
4848 * config/i386/tm-ptx.h: Update.
4849 * config/i386/tm-symmetry.h: Update.
4850 * config/i960/tm-i960.h: Update.
4851 * config/m32r/tm-m32r.h: Update.
4852 * config/m68k/tm-delta68.h: Update.
4853 * config/m68k/tm-linux.h: Update.
4854 * config/m68k/tm-m68k.h: Update.
4855 * config/m88k/tm-m88k.h: Update.
4856 * config/mcore/tm-mcore.h: Update.
4857 * config/mips/tm-mips.h: Update.
4858 * config/mn10200/tm-mn10200.h: Update.
4859 * config/pa/tm-hppa.h: Update.
4860 * config/pa/tm-hppa64.h: Update.
4861 * config/sparc/tm-sp64.h: Update.
4862 * config/sparc/tm-sparc.h: Update.
4863 * config/sparc/tm-sparclet.h: Update.
4864 * config/z8k/tm-z8k.h: Update.
4866 2002-06-14 Andrew Cagney <cagney@redhat.com>
4868 * Makefile.in (i386_linux_tdep_h): Define.
4869 (i386_tdep_h, i387_tdep_h): Define.
4870 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4871 $(i386_tdep_h) and $(i387_tdep_h).
4872 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4874 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4876 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4877 Already covered by the default.
4879 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4880 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4881 (i386_gdbarch_init): Initialize long_double_format and long_double
4884 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4885 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4887 * config/i386/i386sol2.mh: ... here.
4888 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4889 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4890 (SIGCONTEXT_PC_OFFSET): Remove define.
4891 (IN_SIGTRAMP): Remove define.
4892 * i386-sol2-tdep.c: New file.
4894 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4895 * config/i386/tm-i386nw.h: Removed.
4897 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4898 USE_STRUCT_CONVENTION): Remove defines.
4899 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4900 (get_longjmp_target): Remove prototype.
4901 (IN_SIGTRAMP): Remove define.
4902 (i386bsd_in_sigtramp): Remove prototype.
4903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4904 function. Update comment accordingly
4905 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4906 (FRAME_SAVED_PC): Remove define.
4907 (i386bsd_frame_saved_pc): Remove prototype.
4908 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4909 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-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4920 (USE_STRUCT_CONVENTION): Remove prototype.
4921 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4923 (_initialize_i386bsd_nat): Revise logic to determine some
4924 constants at compile time when compiling a native GDB. Warn if
4925 things don't match up with what we expect.
4926 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4928 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4929 to use date stored in `struct gdbarch_tdep'.
4930 (i386bsd_sigcontext_offset): Remove varaible.
4931 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4932 stored in `struct gdbarch_tdep'.
4933 (i386bsd_frame_saved_pc): Make static.
4934 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4935 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4936 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4937 i386fbsd4_sc_pc_offset): New variables.
4938 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4939 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4941 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4943 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4944 Modify the value of i386fbsd_sigtramp_start and
4945 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4946 i386fbsd_sigtramp_end.
4947 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4950 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4951 define to i386-linux-tdep.h.
4952 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4953 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4955 (i386_linux_register_name, i386_linux_register_byte,
4956 i386_linux_register_raw_size): Remove prototypes.
4957 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4958 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4959 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4960 TARGET_WRITE_PC): Remove defines.
4961 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4962 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4963 i386_linux_write_pc): Remove prototypes.
4964 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4965 (get_longjmp_target): Remove prototype.
4966 * i386-linux-tdep.h: New file.
4967 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4968 * i386-linux-tdep.c: Include "i386-tdep.h" and
4969 "i386-linux-tdep.h".
4970 (i386_linux_register_name, i386_linux_register_byte,
4971 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4972 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4974 (i386_linux_init_abi): New function.
4975 (_initialize_i386_linux_tdep): New function.
4977 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4978 (i386_saved_pc_after_call): Remove prototype.
4979 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4980 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4981 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4982 (i386_register_name, i386_stab_reg_to_regnum,
4983 i386_dwarf_reg_to_regnum): Remove prototypes.
4984 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4985 SIZEOF_SSE_REGS): Remove defines.
4986 (REGISTER_BYTES): Remove define.
4987 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4988 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4989 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4990 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4991 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4992 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4993 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4994 (get_longjmp_target): Remove prototype.
4995 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4996 (sigtramp_saved_pc): Remove define.
4997 (i386v4_sigtramp_saved_pc): Remove prototype.
4998 * config/i386/tm-go32.h (FRAME_CHAIN,
4999 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5000 (i386go32_frame_saved_pc): Remove prototype.
5001 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5002 (get_longjmp_target): Remove prototype.
5003 * i386-tdep.h: Include "osabi.h".
5004 (enum i386_abi): Removed.
5005 (enum struct_return): New enum.
5006 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5007 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5008 sc_pc_offset members.
5009 (i386_gdbarch_register_os_abi): Remove prototype.
5010 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5011 I386_SSE_NUM_REGS): New defines.
5012 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5013 I386_SSE_SIZEOF_REGS): New defines.
5014 (i386_register_name, i386_register_byte, i386_register_raw_size):
5016 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5017 (i386bsd_sigtramp_saved_pc): New prototype.
5018 * i386-tdep.c: Don't include "elf-bfd.h".
5019 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5020 i386_frame_chain, i386_saved_pc_after_call): Make static.
5021 (i386_frame_saved_pc): Rewrite to call architecture dependent
5022 function to deal with signal handlers. Make static.
5023 (i386go32_frame_saved_pc): Removed.
5024 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5026 (i386_get_longjmp_target): New function.
5027 (default_struct_convention, pcc_struct_convention,
5028 reg_struct_convention, valid_conventions, struct_convention): New
5030 (i386_use_struct_convention): New function.
5031 (i386v4_sigtramp_saved_pc): Renamed to
5032 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5033 (i386_pc_in_sigtramp): New function.
5034 (i386_abi_names): Removed.
5035 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5036 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5038 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5039 i386_gdbarch_register_os_abi): Removed.
5040 (struct i386_abi_handler): Removed.
5041 (i386_abi_handler_list): Removed.
5042 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5044 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5045 i386_nw_init_abi): New functions.
5046 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5047 Use set_gdbarch_xxx() calls instead of relying on macros for a
5049 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5050 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5051 Register the various architecture variants defined in this file.
5053 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5055 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5056 (struct main_type): Remove arg_types member. Update comments for
5058 (TYPE_ARG_TYPES): Remove.
5059 (TYPE_FN_FIELD_ARGS): Update.
5060 (smash_to_method_type): Update prototype.
5062 * c-typeprint.c (cp_type_print_method_args): Take method type
5063 instead of argument list. Use new argument layout. Simplify.
5064 (c_type_print_args): Use new argument layout. Simplify.
5065 (c_type_print_base): Update call to cp_type_print_method_args.
5066 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5067 argument; use die->type instead. Update call to
5068 smash_to_method_type.
5069 (read_structure_scope): Update call to dwarf2_add_member_fn.
5070 * gdbtypes.c (allocate_stub_method): Update comment.
5071 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5072 Use new argument layout.
5073 (check_stub_method): Use new argument layout. Don't count
5074 void as an argument.
5075 (print_arg_types): Update comments. Use new argument layout.
5076 (recursive_dump_type): Don't print arg_types member.
5077 * hpread.c (hpread_read_struct_type): Use new argument layout.
5078 (fixup_class_method_type): Likewise.
5079 (hpread_type_lookup): Likewise.
5080 * stabsread.c (read_type): Update calls to read_args and
5081 smash_to_method_type.
5082 (read_args): Use new argument layout. Simplify.
5083 * valops.c (typecmp): Use new argument layout. Update parameters
5084 and comments. Simplify.
5085 (hand_function_call): Use new argument layout.
5086 (search_struct_method): Update call to typecmp.
5087 (find_overload_match): Use new argument layout.
5089 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5091 * NEWS: Mention multithreaded debug support for gdbserver.
5093 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5095 * MAINTAINERS: Mention NEWS.
5097 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5099 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5100 (struct mips_objfile_private, compare_pdr_entries): New.
5101 (non_heuristic_proc_desc): Read the ".pdr" section if it
5104 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5106 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5107 (arm_debug): New static variable.
5108 (_initialize_arm_tdep): Add ``set debug arm'' command.
5110 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5112 * Makefile.in (sim_arm_h): Define.
5113 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5114 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5115 (arm_register_sim_regno): New function, map an internal REGNUM
5116 onto a simulator register number.
5117 (arm_gdbarch_init): Set register_sim_regno.
5119 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5121 * MAINTAINERS: Add self.
5123 2002-06-11 Jim Blandy <jimb@redhat.com>
5125 * source.c (source_info): Mention whether the symtab has
5126 information about preprocessor macros.
5128 Call the command `info macro', not `show macro'.
5129 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5131 (_initialize_macrocmd): Register `info_macro_command' in
5132 `infolist', not `showlist'.
5134 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5136 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5137 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5138 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5139 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5140 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5142 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5143 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5144 (_initialize_mips_tdep): Remove dead code.
5145 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5146 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5147 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5148 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5149 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5150 MIPS_LAST_FP_ARG_REGNUM): Remove.
5152 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5154 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5155 (unwind_tmp_obstack_free, parse_frame_info)
5156 (update_context, cfi_read_fp, cfi_write_fp)
5157 (cfi_frame_chain, cfi_init_extra_frame_info)
5158 (cfi_virtual_frame_pointer): Use the above function.
5159 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5161 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5163 * v850-tdep.c (v850_type_is_scalar): New function.
5164 (v850_use_struct_convention): Match current gcc implementation
5165 as close as possible.
5166 (v850_push_arguments): Fix stack_offset handling. Don't write
5167 struct_addr into register. This is done by v850_store_struct_return.
5168 (v850_extract_return_value): Care for structs.
5169 (v850_store_return_value): Ditto.
5170 (v850_store_struct_return): Actually write address.
5172 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5174 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5175 without debug information too.
5177 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5179 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5180 Make multi-arch pure.
5181 * gdbarch.h, gdbarch.c: Re-generate.
5182 * arm-tdep.c (arm_print_float_info): Update.
5183 * arch-utils.h (default_print_float_info): Update.
5184 * arch-utils.c (default_print_float_info): Update.
5185 * infcmd.c (float_info): Update call.
5187 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5189 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5190 the front of the initialize list.
5192 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5194 * infrun.c (struct inferior_status): Replace fields
5195 selected_frame_address and selected_level with field
5197 (save_inferior_status): Update. Use get_frame_id.
5198 (struct restore_selected_frame_args): Delete.
5199 (restore_selected_frame): Update. Use frame_find_by_id.
5200 (restore_inferior_status): Update.
5202 * breakpoint.h (struct breakpoint): Change type of
5203 watchpoint_frame to frame_id.
5204 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5205 call to get_current_frame.
5206 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5208 (watchpoint_check): Use frame_find_by_id.
5210 * frame.h (record_selected_frame): Delete declaration.
5211 * stack.c (record_selected_frame): Delete function.
5213 * frame.h (struct frame_id): Define.
5214 (get_frame_id): Declare.
5215 (frame_find_by_id): Declare.
5216 * frame.c (frame_find_by_id): New function.
5217 (get_frame_id): New function.
5219 2002-06-10 Andrey Volkov <avolkov@transas.com>
5221 * ser-e7kpc.c: Fix duplicated define and call of
5222 _initialize_ser_e7000pc
5224 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5226 * signals/signals.c (target_signal_from_host): Fix #ifdef
5228 (do_target_signal_to_host): Likewise.
5230 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5232 * mips-tdep.c (mips_find_abi_section): New function.
5233 (mips_gdbarch_init): Call it.
5235 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5237 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5238 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5239 after Andrew's 2002-06-08 gdbarch change.
5241 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5243 * i386-linux-nat.c (suppy_gregset): Don't supply
5244 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5246 (fill_gregset): Don't fetch it under the same circumstances.
5248 2002-06-09 Andrew Cagney <cagney@redhat.com>
5250 * Makefile.in (callback_h): Define.
5251 (remote_sim_h): Update path to remote-sim.h.
5252 (remote-rdp.o): Add $(callback_h).
5253 (remote-sim.o): Use $(callback_h).
5254 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5255 * remote-rdp.c: Include "gdb/callback.h".
5257 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5259 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5260 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5262 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5264 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5265 * rdi-share/serpardr.c: Ditto.
5266 * rdi-share/unixcomm.c: Ditto.
5267 * rdi-share/serdrv.c: Ditto.
5268 * rdi-share/hostchan.h: Ditto.
5269 * rdi-share/hostchan.c: Ditto.
5270 * rdi-share/host.h: Ditto.
5271 * rdi-share/devsw.c: Ditto.
5273 * objfiles.h: Change type of obj_private to void pointer.
5274 * pa64solib.c: Update copyright. Don't include "assert.h", use
5275 strcmp instead of STREQ, use LONGEST, do not use PTR
5276 * somsolib.c: Ditto.
5278 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5279 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5280 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5282 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5284 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5285 (default_get_saved_register): Delete function.
5286 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5287 generic_unwind_get_saved_register.
5288 * gdbarch.h, gdbarch.c: Re-generate.
5290 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5292 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5293 generic_func_frame_chain_valid.
5294 * gdbarch.h, gdbarch.c: Re-generate.
5295 * blockframe.c (generic_func_frame_chain_valid): Only check
5296 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5297 passing FP to PC_IN_CALL_DUMMY.
5300 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5302 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5303 (register_gdbarch_data): Initialize init_p.
5304 (gdbarch_data): Initialize data pointer using the init function.
5305 (init_gdbarch_data): Delete function.
5306 (gdbarch_update_p): Update.
5307 (initialize_non_multiarch): Update.
5308 (struct gdbarch): Add field initialized_p.
5309 * gdbarch.h, gdbarch.c: Re-generate.
5311 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5313 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5314 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5315 better do the things actually here.
5316 * x86-64-tdep.c (x86_64_register_name2nr): New.
5317 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5318 (x86_64_gdbarch_init): Respect the above change.
5319 * x86-64-tdep.h (x86_64_register_name2nr)
5320 (x86_64_register_nr2name): Add prototypes.
5321 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5323 2002-06-06 Michael Snyder <msnyder@redhat.com>
5325 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5326 Delete extra braces and re-indent.
5327 (d10v_store_return_value): Char return values
5328 must be shifted over by one byte in R0.
5329 (d10v_extract_return_value): Delete extra braces, re-indent.
5331 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5333 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5334 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5335 (d10v_integer_to_address): Rewrite.
5336 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5337 the d10v specific functions which take care of converting to the
5340 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5342 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5343 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5345 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5347 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5349 * config/tm-linux.h: Ditto.
5350 * config/alpha/tm-alphalinux.h: Ditto.
5351 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5352 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5353 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5354 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5355 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5356 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5357 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5358 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5359 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5360 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5361 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5362 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5363 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5364 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5365 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5366 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5367 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5368 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5369 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5370 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5371 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5372 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5373 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5374 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5375 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5376 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5377 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5378 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5379 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5380 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5381 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5382 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5383 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5384 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5385 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5386 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5387 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5389 2002-05-04 Aidan Skinner <aidan@velvet.net>
5391 * ada-exp.tab.c: New file
5392 * ada-exp.y: New file
5393 * ada-lang.c: New file
5394 * ada-lang.h: New file
5395 * ada-lex.c: New file
5396 * ada-lex.l: New file
5397 * ada-tasks.c: New file
5398 * ada-typeprint.c: New file
5399 * ada-valprint.c: New file
5401 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5403 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5404 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5406 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5408 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5409 insetead of ppc-linux-tdep.o.
5410 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5411 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5413 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5415 2002-05-07 Christian Groessler <chris@groessler.org>
5416 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5417 bit register contents for little endian hosts.
5419 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5421 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5424 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5426 * gdbarch.h: Regenerate.
5428 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5430 * MAINTAINERS: Add everyone to write-after-approval list.
5432 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5434 * stack.c (frame_info): Use frame_register_unwind instead of
5435 saved_regs. Mention when the SP is on the stack or in a register.
5437 * frame.h (frame_register_unwind_ftype): Define. Document.
5438 (struct frame_info): Add field register_unwind and
5439 register_unwind_cache.
5440 (frame_register_unwind): Declare.
5441 (generic_unwind_get_saved_register): Declare.
5443 * frame.c (frame_register_unwind): New function.
5444 (generic_unwind_get_saved_register): New function.
5446 * blockframe.c (generic_call_dummy_register_unwind): New function.
5447 (frame_saved_regs_register_unwind): New function.
5448 (set_unwind_by_pc): New function.
5449 (create_new_frame): New function.
5450 (get_prev_frame): New function.
5452 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5454 * a29k-share/: Delete directory.
5455 * remote-vx29k.c: Delete file.
5457 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5459 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5460 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5462 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5464 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5465 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5468 (sparcnbsd-tdep.o): New dependency lists.
5469 * NEWS: Note new UltraSPARC NetBSD native configuration.
5470 * configure.host (sparc64-*-netbsd*): New host.
5471 * configure.tgt (sparc-*-netbsdelf*)
5472 (sparc-*-netbsd*): Set gdb_target to nbsd.
5473 (sparc64-*-netbsd*): New target.
5474 * sparc64nbsd-nat.c: New file.
5475 * sparcnbsd-nat.c: New file.
5476 * sparcnbsd-tdep.c: New file.
5477 * sparcnbsd-tdep.h: New file.
5478 * config/sparc/nbsd.mt: New file.
5479 * config/sparc/nbsd64.mh: New file.
5480 * config/sparc/nbsd64.mt: New file.
5481 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5482 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5484 * config/sparc/nbsdaout.mt: Remove.
5485 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5486 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5488 * config/sparc/nbsdelf.mt: Remove.
5489 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5490 sparc-nat.c compatiblity defines.
5491 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5492 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5493 * config/sparc/tm-nbsd64.h: New file.
5494 * config/sparc/tm-nbsdaout.h: Remove.
5495 * config/sparc/xm-nbsd.h: Remove.
5497 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5499 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5500 * sparc-tdep.c: Include osabi.h.
5501 (gdbarch_tdep): Add osabi member.
5502 (_initialize_sparc_tdep): Use gdbarch_register.
5503 (sparc_gdbarch_init): Use generic OS ABI framework.
5504 (sparc_dump_tdep): New function.
5506 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5508 * corefile.c (do_captured_read_memory_integer): Return non-zero
5510 (safe_read_memory_integer): Copy result of memory read when
5511 status is non-zero. Also, add comments.
5513 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5515 * Makefile.in (ppc_tdep_h): Define.
5518 (rs6000-tdep.o): Use $(ppc_tdep_h).
5521 (ppcnbsd-tdep.o): New dependency lists.
5522 * ppc-tdep.h: Use generic OS ABI framework.
5523 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5524 (ppc_linux_init_abi): New functions.
5525 (ppc_sysv_abi_broken_use_struct_convention)
5526 (ppc_sysv_abi_use_struct_convention)
5527 (ppc_sysv_abi_push_arguments): Move to...
5528 * ppc-sysv-tdep.c: ...here.
5529 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5530 * rs6000-tdep.c (process_note_abi_tag_sections)
5531 (get_elfosabi): Remove.
5532 (rs6000_gdbarch_init): Use generic OS ABI framework.
5533 (rs6000_dump_tdep): New function.
5534 (_initialize_rs6000_tdep): Use gdbarch_register.
5535 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5536 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5537 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5538 of ppc-linux-tdep.o.
5539 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5540 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5541 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5542 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5543 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5544 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5546 2002-05-29 Jim Blandy <jimb@redhat.com>
5548 * macroscope.c (default_macro_scope): Put `void' in empty argument
5551 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5553 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5554 * arch-utils.c: Include "sim-regno.h".
5555 * gdbarch.sh: Don't include "sim-regno.h".
5556 * gdbarch.h, gdbarch.c: Regenerate.
5557 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5559 * arch-utils.h (legacy_register_sim_regno): To here.
5560 * remote-sim.c (legacy_register_sim_regno): Move function from
5562 * arch-utils.c (legacy_register_sim_regno): To here.
5564 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5566 * sim-regno.h: New file.
5567 * Makefile.in (sim_regno_h): Define.
5568 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5569 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5570 (legacy_register_sim_regno): New function.
5571 (one2one_register_sim_regno): New function.
5572 (gdbsim_fetch_register): Rewrite.
5573 (gdbsim_store_register): Only store a register when
5574 REGISTER_SIM_REGNO is valid.
5575 * d10v-tdep.c: Include "sim-regno.h".
5576 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5577 (d10v_ts3_register_sim_regno): Ditto.
5578 * gdbarch.sh: Include "sim-regno.h".
5579 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5580 * gdbarch.h, gdbarch.c: Regenerate.
5581 * arch-utils.h (default_register_sim_regno): Delete declaration.
5582 * arch-utils.c (default_register_sim_regno): Delete function.
5584 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5586 * ppcnbsd-nat.c: Rewrite.
5587 * ppcnbsd-tdep.c: New file.
5588 * ppcnbsd-tdep.h: New file.
5589 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5590 solib.o, and solib-svr4.o.
5591 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5592 nbsd-tdep.o, and corelow.o.
5594 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5596 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5597 `tr' and `sed'. Mention that `broken' targets are not expected to
5600 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5602 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5603 Let PC point right after the prologue before looking up symbols.
5605 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5607 * i386-tdep.c (i386_register_virtual_type): Return
5608 builtin_type_vec128i for SSE registers.
5610 * gdbtypes.h (builtin_type_vec128i): Declare.
5612 * gdbtypes.c (build_builtin_type_vec128i): New function.
5613 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5614 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5615 (build_gdbtypes): Initialize new builtin vector types.
5616 (_initialize_gdbtypes): Register new vector types with gdbarch.
5618 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5620 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5621 since it has been multi-arch'd.
5622 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5623 Move Alpha and VAX multi-arch news entries to same section
5624 as other multi-arch news.
5626 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5628 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5629 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5630 static. Rename some register numbers to put them in ns32k-tdep
5632 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5633 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5635 (_initialize_ns32k_tdep): Use gdbarch_register.
5636 * ns32k-tdep.h: New file.
5637 * ns32knbsd-tdep.c: New file.
5638 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5639 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5640 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5641 REGISTER_BYTES, REGISTER_BYTE): Remove.
5642 * config/ns32k/tm-ns32k.h: New file.
5643 * config/ns32k/tm-umax.h: Remove.
5645 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5647 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5648 ns32k_store_struct_return, ns32k_extract_return_value,
5649 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5651 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5652 ns32k_saved_pc_after_call.
5653 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5654 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5655 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5656 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5657 ns32k_extract_struct_value_address.
5659 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5661 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5662 ns32k_fix_call_dummy): New.
5663 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5664 ns32k_call_dummy_words.
5665 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5666 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5667 CALL_DUMMY_NARGS): Remove.
5668 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5670 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5672 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5673 ns32k_frame_saved_pc, ns32k_frame_args_address,
5674 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5675 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5676 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5677 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5678 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5679 (BREAKPOINT): Remove..
5680 (FRAME_CHAIN): Define as ns32k_frame_chain.
5681 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5682 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5683 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5684 (FRAME_FIND_SAVED_REGS): Remove.
5685 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5686 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5687 (POP_FRAME): Define as ns32k_pop_frame.
5689 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5691 * ns32k-tdep.c (ns32k_register_byte_32082,
5692 ns32k_register_byte_32382, ns32k_register_raw_size,
5693 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5695 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5696 ns32k_register_byte_32382.
5697 * config/ns32k/tm-umax.h: Update copyright years.
5698 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5699 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5700 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5701 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5702 (ns32k_get_enter_addr): Fix prototype.
5704 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5706 * ns32k-tdep.c: Update copyright years.
5707 (ns32k_register_name_32082): New function.
5708 (ns32k_register_name_32382): Ditto.
5709 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5710 (REGISTER_NAME): Define as ns32k_register_name_32382.
5711 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5712 (REGISTER_NAME): Define as ns32k_register_name_32082.
5714 2002-05-24 Jim Blandy <jimb@redhat.com>
5716 * dwarf2read.c (free_line_header): Use xfree, not free.
5718 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5720 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5721 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5723 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5725 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5727 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5729 From Ross Alexander at NEC Europe:
5730 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5732 2002-05-23 Michael Snyder <msnyder@redhat.com>
5734 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5735 for input, rather than parse_and_eval_address.
5737 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5739 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5740 * Makefile.in (sim_d10v_h): Update definition.
5742 2002-05-24 Andrew Cagney <cagney@redhat.com>
5744 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5745 change `2002-05-22 Michael Snyder' below.
5746 (d10v_push_arguments): Ditto.
5747 (d10v_extract_return_value): Ditto.
5749 2002-05-23 Jim Blandy <jimb@redhat.com>
5751 * macrotab.c (check_for_redefinition): Don't complain if the new
5752 definition is the same as the previous one. Take more arguments
5753 to allow the comparison.
5754 (macro_define_object, macro_define_function): Pass more arguments
5755 to check_for_redefinition.
5757 2002-05-22 Michael Snyder <msnyder@redhat.com>
5759 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5760 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5761 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5762 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5763 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5764 Add a temp variable to save a call (and a memory read).
5765 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5766 if possible (so that PC_IN_CALL_DUMMY will work).
5768 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5770 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5772 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5774 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5776 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5777 (dwarf2_build_frame_info): Add offset to fde->initial_location
5778 so that frames of shared libraries are mapped correctly.
5779 (execute_stack_op): Change type of 'result' from ULONGEST to
5782 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5784 * config/alpha/tm-nbsd.h: Include solib.h.
5786 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5788 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5789 assumptions about the host's byte order.
5791 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5793 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5795 * alphanbsd-tdep.c: Include solib-svr4.h.
5796 * shnbsd-tdep.c: Ditto.
5798 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5800 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5801 nbsd-tdep.h to dependency list.
5802 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5803 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5804 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5805 nbsdaout.mh and nbsdelf.mh consistently.
5806 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5807 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5808 nbsdaout.mt and nbsdelf.mh consistently.
5809 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5810 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5811 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5812 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5813 a.out shared library stuff from here...
5814 * config/nm-nbsdaout.h: ...to here.
5815 * config/tm-nbsd.h: Remove.
5816 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5817 * config/arm/nbsd.mh: Remove.
5818 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5820 * config/arm/nbsdaout.mh: New file.
5821 * config/arm/nbsdelf.mh: New file.
5822 * config/arm/nm-nbsdaout.h: New file.
5823 * config/i386/nbsd.mh: Remove.
5824 * config/i386/nbsd.mt: Remove.
5825 * config/i386/nbsdaout.mh: New file.
5826 * config/i386/nbsdaout.mt: New file.
5827 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5828 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5829 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5830 i386_register_u_addr): Remove.
5831 * config/i386/nm-nbsdaout.h: New file.
5832 * config/i386/nm-nbsdelf.h: Remove.
5833 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5834 (USE_STRUCT_CONVENTION): Remove.
5835 * config/i386/tm-nbsdaout.h: New file.
5836 * config/i386/tm-nbsdelf.h: Remove.
5837 * config/m68k/nbsd.mh: Remove.
5838 * config/m68k/nbsd.mt: Remove.
5839 * config/m68k/nbsdaout.mh: New file.
5840 * config/m68k/nbsdaout.mt: New file.
5841 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5842 * config/m68k/nm-nbsdaout.h: New file.
5843 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5844 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5845 * config/ns32k/nbsd.mh: Remove.
5846 * config/ns32k/nbsd.mt: Remove.
5847 * config/ns32k/nbsdaout.mh: New file.
5848 * config/ns32k/nbsdaout.mt: New file.
5849 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5850 * config/ns32k/nm-nbsdaout.h: New file.
5851 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5852 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5853 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5854 (SVR4_SHARED_LIBS): Remove.
5855 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5856 * config/sparc/nbsd.mh: Remove.
5857 * config/sparc/nbsd.mt: Remove.
5858 * config/sparc/nbsdaout.mh: New file.
5859 * config/sparc/nbsdaout.mt: New file.
5860 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5861 * config/sparc/nbsdelf.mt: New file.
5862 * config/sparc/nm-nbsdaout.h: New file.
5863 * config/sparc/nm-nbsdelf.h: Remove.
5864 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5865 * config/sparc/tm-nbsdaout.h: New file.
5867 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5869 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5871 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5873 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5875 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5877 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5879 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5881 * NEWS: Note new MIPS NetBSD native configuration.
5882 * configure.host (mips*-*-netbsd*): New host.
5883 * configure.tgt (mips*-*-netbsd*): New target.
5884 * mipsnbsd-nat.c: New file.
5885 * mipsnbsd-tdep.c: New file.
5886 * mipsnbsd-tdep.h: New file.
5887 * config/mips/nbsd.mh: New file.
5888 * config/mips/nbsd.mt: New file.
5889 * config/mips/nm-nbsd.h: New file.
5890 * config/mips/tm-nbsd.h: New file.
5892 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5894 * Makefile.in (SFILES): Add osabi.c.
5895 (COMMON_OBS): Add osabi.o.
5896 (osabi.o): New dependency list.
5897 * osabi.c: New file.
5898 * osabi.h: New file.
5899 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5901 * Makefile.in (alpha_tdep_h): Define and use instead of
5903 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5904 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5906 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5907 * alpha-tdep.h: Include osabi.h.
5908 (alpha_abi): Remove.
5909 (gdbarch_tdep): Use generic OS ABI framework.
5910 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5911 gdbarch_register_osabi.
5912 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5913 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5914 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5916 * Makefile.in (sh_tdep_h): Add osabi.h.
5917 * sh-tdep.h (sh_osabi): Remove.
5918 (gdbarch_tdep): Use generic OS ABI framework.
5919 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5920 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5921 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5922 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5924 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5925 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5926 gdbarch_register_osabi.
5927 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5928 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5929 (get_elfosabi): Rename to...
5930 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5931 ABI framework support routines.
5932 (arm_gdbarch_init): Use generic OS ABI framework.
5933 (arm_dump_tdep): Likewise.
5934 (_initialize_arm_tdep): Likewise.
5935 * arm-tdep.h: Include osabi.h.
5937 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5939 (arm_gdbarch_register_os_abi): Remove prototype.
5940 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5941 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5943 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5944 * mips-tdep.c: Include osabi.h.
5945 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5948 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5950 * h8300-tdep.c: Fix formatting.
5952 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5954 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5955 printing vector registers.
5957 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5959 From Fernando Nasser:
5960 * remote.c (remote_async_open_1): Re-throw the exception when the
5962 (remote_cisco_open): Ditto.
5963 (remote_open_1): Ditto.
5965 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5967 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5968 (remote_start_remote): Add uiout parameter. Pass through to
5969 remote_start_remote_dummy.
5970 (remote_open_1): Use catch_exception instead of catch_errors.
5971 (remote_async_open_1): Ditto.
5972 (remote_cisco_open): Ditto.
5974 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5976 * remote.c (remote_start_remote): Replace PTR with void pointer.
5977 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5980 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5982 * gdb_indent.sh: Allow the script to be run in the sim directory.
5984 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5986 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5987 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5989 * corelow.c (core_open): Only call set_gdbarch_from_file if
5992 2002-05-17 Andrey Volkov <avolkov@transas.com>
5994 * h8300-tdep.c: Add support of EXR register
5995 * config/h8300/tm-h8300.h: Ditto.
5997 2002-05-17 Andrey Volkov <avolkov@transas.com>
5999 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6001 2002-05-17 Andrey Volkov <avolkov@transas.com>
6003 * h8300-tdep.c: Change literal regnums to REGNO.
6005 2002-05-17 Jim Blandy <jimb@redhat.com>
6007 * NEWS: Note addition of macro support.
6009 Expand preprocessor macros in C expressions.
6010 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6011 (scan_macro_expansion, scanning_macro_expansion,
6012 finished_macro_expansion): New function declarations.
6013 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6014 variable declarations.
6015 * parser-defs.h (expression_context_pc): New declaration.
6016 * parse.c (expression_context_pc): New variable.
6017 (parse_exp_1): Set expression_context_pc, as well as
6018 expression_context_block.
6019 * c-exp.y (yylex): If we're not already reading the result of a
6020 macro expansion, try to macro-expand the next token. When we're
6021 done scanning a macro expansion, switch back to the mainline text.
6022 Commas and `if's in a macro's expansion don't terminate the input.
6023 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6024 (macro_original_text, macro_expanded_text,
6025 expression_macro_lookup_func, expression_macro_lookup_baton): New
6027 (scan_macro_expansion, scanning_macro_expansion,
6028 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6029 c_preprocess_and_parse): New functions.
6030 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6031 c_preprocess_and_parse, instead of c_parse.
6032 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6033 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6035 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6037 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6038 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6039 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6041 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6043 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6045 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6047 * Makefile.in (sh_tdep_h): Define and use.
6048 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6049 register enum): Move to...
6050 * * sh-tdep.h: ...here.
6051 * sh-tdep.c: Include sh-tdep.h.
6052 * sh3-rom.c: Likewise.
6053 * shnbsd-tdep.c: Likewise.
6055 2002-05-16 Michael Snyder <msnyder@redhat.com>
6057 * arm-tdep.c: Spelling fix in comment.
6059 2002-05-16 Jim Blandy <jimb@redhat.com>
6061 Add commands for manually expanding macros and showing their
6063 * macrocmd.c, macroscope.c, macroscope.h: New files.
6064 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6065 (macroscope_h): New variable.
6066 (HFILES_NO_SRCDIR): Add macroscope.h.
6067 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6068 (macroscope.o, macrocmd.o): New rules.
6070 Teach the Dwarf 2 reader to read macro information.
6071 * dwarf2read.c: #include "macrotab.h".
6072 (dwarf_macinfo_buffer): New variable.
6073 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6075 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6076 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6077 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6078 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6079 dwarf2_macro_spaces_in_definition): New complaints.
6080 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6081 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6082 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6083 the partial symbol table.
6084 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6085 from what's recorded in the partial symbol table.
6086 (read_file_scope): If the compilation unit has a
6087 `DW_AT_macro_info' attribute, read its macro information.
6088 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6090 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6093 * ser-tcp.c: Don't include <netinet/udp.h>.
6095 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6097 * MAINTAINERS: Update my email address.
6099 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6101 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6102 include file of the same name.
6104 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6106 * configure.tgt: Mark v850 as multi-arched.
6107 * config/v850/tm-v850.h: Remove file.
6108 * config/v850/v850.mt: Eliminate TM_FILE.
6110 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6112 * v850-tdep.c: Full multi-arch.
6113 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6114 Define GDB_MULTI_ARCH to 2.
6116 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6118 * p-exp.y (current_type): New static variable.
6119 Carries the type of the expression at the position that is parsed.
6120 (push_current_type, pop_current_type): Two new functions. Used
6121 to store/restore current_type in expression on specific tokens.
6122 (search_field): New static variable. Set to one after parsing a point
6123 as at that point only a FIELDNAME token should be searched.
6124 (FIELDNAME): New token. After a point only a token belonging to
6125 current_type type definition is allowed.
6126 (all over token rules): reset and change current_type according
6128 (exp '[' rule): insert implicit array index field if
6129 exp is a pascal string type.
6131 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6133 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6134 frame info. Use frame_info's saved_regs instead of matching member
6135 in extra_frame_info throughout.
6136 (v850_frame_init_saved_regs): New function.
6137 (v850_init_extra_frame_info): Move most functionality into
6138 v850_frame_init_saved_regs().
6139 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6140 (v850_frame_find_saved_regs): Remove declaration.
6141 (FRAME_FIND_SAVED_REGS): Remove definition.
6142 (v850_frame_init_saved_regs): Add declaration.
6143 (FRAME_INIT_SAVED_REGS): Add definition.
6145 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6147 * v850-tdep.c: Begin multi-arch'ing v850.
6148 (v850_target_architecture_hook): Remove function.
6149 (v850_gdbarch_init): New function. Add code previously in
6150 v850_target_architecture_hook().
6151 (_initialize_v850_tdep): Don't set target_architecture_hook.
6152 Call register_gdbarch_init() instead.
6154 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6156 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6157 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6158 (fixup_class_method_type): Likewise.
6160 2002-05-15 Jim Blandy <jimb@redhat.com>
6162 Add macro structures to GDB's symbol tables. Nobody puts anything
6164 * symtab.h (struct symtab): New member: `macro_table'.
6165 * buildsym.h (pending_macros): New global variable.
6166 * buildsym.c: #include "macrotab.h".
6167 (buildsym_init): Initialize `pending_macros'.
6168 (end_symtab): If we found macro information while reading a CU's
6169 debugging info, do build a symtab structure for it. Make the
6170 symtab point to the macro information, and clear the
6171 `pending_macros' pointer which held it while we were reading the
6173 (really_free_pendings): Free any pending macro table.
6174 * objfiles.h (struct objfile): New member: `macro_cache'.
6175 * objfiles.c (allocate_objfile): Set allocate and free functions
6176 for the macro cache's objstack.
6177 (free_objfile): Empty the macro cache's obstack.
6178 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6179 set new allocate and free functions for it.
6180 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6181 free functions for the macro cache's objstack. (Why is this
6182 function building its own objfile?)
6183 * symmisc.c (print_objfile_statistics): Print statistics on the
6185 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6187 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6189 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6190 (REGISTER_U_ADDR): Delete definition.
6191 (arm_register_u_addr): Delete declaration.
6193 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6195 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6196 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6198 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6200 * regcache.c (register_valid): Revise comments refering to "Not
6201 available" and "unavailable".
6202 * frame.c (frame_register_read): Ditto.
6203 * findvar.c (value_of_register): Ditto.
6205 2002-05-15 Andrew Cagney <cagney@redhat.com>
6207 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6208 (remote-sim.o): Update dependencies.
6209 (d10v-tdep.o): Specify dependencies.
6210 (sim_d10v_h): Define.
6212 2002-05-14 Jim Blandy <jimb@redhat.com>
6214 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6215 * macrotab.c (macro_lookup_inclusion, find_definition,
6216 new_macro_table): Same.
6218 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6219 not `! strcmp ()'. This is a dubious improvement.
6220 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6222 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6223 although it's not necessary, to avoid a warning.
6225 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6227 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6228 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6229 TYPE_INSTANCE_FLAGS.
6230 (struct main_type): New.
6231 (struct type): Move most members to struct main_type. Change
6232 cv_type and as_type to new type_chain member. Add instance_flags.
6233 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6234 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6235 (finish_cv_type): Remove prototype.
6236 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6238 (alloc_type_instance): New function.
6239 (smash_type): New function.
6240 (make_pointer_type, make_reference_type, make_function_type)
6241 (smash_to_member_type, smash_to_method_type): Call smash_type.
6242 (make_qualified_type): New function.
6243 (make_type_with_address_space): Call make_qualified_type.
6244 (make_cv_type): Likewise.
6245 (finish_cv_type): Remove unnecessary function.
6246 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6247 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6248 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6249 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6250 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6251 * hpread.c (hpread_read_struct_type): Likewise.
6252 * stabsread.c (read_struct_type): Likewise.
6254 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6256 * configure.tgt: Add a catch all sh* target, for cases like
6257 sh[2,3,4]-elf and sh-hms.
6259 2002-05-14 Keith Seitz <keiths@redhat.com>
6261 * event-loop.c (create_file_handler): Don't do anything but
6262 update data when we are given a fd which we are already
6265 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6267 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6268 (update_context): Use __func__ in warnings.
6270 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6272 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6273 and tcp_close to net_open and net_close.
6274 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6275 using UDP if requested. Don't try to disable Nagle on UDP
6277 * remote.c (remote_serial_open): New function. Warn about UDP.
6278 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6280 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6282 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6284 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6286 * configure.tgt: Remove sh-hms target.
6287 * MAINTAINERS: Don't list sh-hms as a separate target.
6289 2002-05-13 Jim Blandy <jimb@redhat.com>
6291 Add first preprocessor macro-expansion files.
6292 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6293 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6294 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6295 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6296 (COMMON_OBS): Add macrotab.o, macroexp.o.
6297 (macroexp.o, macrotab.o): New rules.
6299 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6301 * config/m88k/tm-m88k.h: Update copyright.
6302 (m88k_target_write_pc): Declare
6303 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6304 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6305 (SHIFT_INST_REGS): Update definition.
6306 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6307 using old definition of TARGET_WRITE_PC.
6308 * regcache.c (generic_target_write_pc): Delete code handling
6310 * gdbarch.sh (NNPC_REGNUM): Delete.
6311 * gdbarch.h, gdbarch.c: Regenerate.
6313 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6315 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6318 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6320 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6321 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6322 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6324 * c-typeprint.c (cp_type_print_method_args): Likewise.
6325 (c_type_print_args): Likewise.
6326 * d10v-tdep.c (d10v_push_arguments): Likewise.
6327 (d10v_extract_return_value): Likewise.
6328 * expprint.c (print_subexp): Likewise.
6329 * gdbtypes.c (lookup_primitive_typename): Likewise.
6330 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6331 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6332 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6333 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6334 (TYPE_VECTOR): Likewise.
6335 * hpread.c (hpread_read_struct_type)
6336 (fix_static_member_physnames, fixup_class_method_type)
6337 (hpread_type_lookup): Likewise.
6338 * mdebugread.c (parse_symbol, parse_type): Likewise.
6339 * p-lang.c (is_pascal_string_type): Likewise.
6340 * valops.c (hand_function_call): Likewise.
6341 * x86-64-tdep.c (classify_argument): Likewise.
6343 * hpread.c (hpread_read_function_type)
6344 (hpread_read_doc_function_type): Call replace_type.
6345 * dstread.c (create_new_type): Delete.
6346 (decode_dst_structure, process_dst_function): Call alloc_type.
6347 Use type access macros.
6349 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6351 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6352 the're not supported by the current architecture.
6353 (i387_fill_fxsave): Likewise.
6355 2002-05-12 Fred Fish <fnf@redhat.com>
6357 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6358 sect_index_xxx members to index the first slot in section_offsets
6359 if all of the section_offsets are zero.
6361 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6363 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6364 checked in with last change.
6366 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6368 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6369 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6372 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6374 * Makefile.in: Update dependencies.
6376 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6378 * language.c (local_hex_string_custom): Simplify. Do not depend
6379 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6381 * memattr.c (mem_info_command): Replace calls to
6382 longest_local_hex_string and longest_local_hex_string_custom.
6383 * buildsym.c (make_blockvector): Ditto.
6384 * solib.c (info_sharedlibrary_command): Ditto.
6385 * tracepoint.c (tracepoints_info): Ditto.
6386 * symtab.c (print_msymbol_info): Ditto.
6388 * language.c (local_hex_string): Delete.
6389 (local_hex_string_custom): Delete.
6390 (longest_local_hex_string): Rename to local_hex_string.
6391 (longest_local_hex_string_custom): Rename to
6392 local_hex_string_custom.
6393 * language.h (local_hex_string): Change parameter type to LONGEST.
6394 (local_hex_string_custom): Ditto.
6395 (longest_local_hex_string): Delete declaration.
6396 (longest_local_hex_string_custom): Ditto.
6398 * solib.c: Update copyright.
6399 * memattr.c: Update copyright.
6401 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6403 * arch-utils.h (legacy_register_to_value): Declare.
6404 (legacy_value_to_register): Declare.
6405 (legacy_convert_register_p): Declare.
6406 * arch-utils.c (legacy_register_to_value): New function.
6407 (legacy_value_to_register): New function.
6408 (legacy_convert_register_p): New function.
6410 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6411 (VALUE_TO_REGISTER): Define.
6412 (CONVERT_REGISTER_P): Define.
6413 * gdbarch.h, gdbarch.c: Regenerate.
6415 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6417 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6420 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6421 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6423 * Makefile.in: Update dependencies for valops.c.
6424 * valops.c: Include "gdb_assert.h".
6425 (typecmp): Skip THIS parameter to methods.
6426 (find_method_list): Remove static_memfuncp argument,
6427 update callers. Check for stub methods.
6428 (find_value_oload_method_list): Don't set *static_memfuncp.
6429 (find_overload_match): Don't check for stub methods. Assert
6430 that methods are not stubbed. Handle static methods.
6431 (value_find_oload_method_list): Remove static_memfuncp argument.
6432 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6433 to the argument list for static stub methods.
6434 * value.h (value_find_oload_method_list): Update prototype.
6436 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6438 * arch-utils.h (generic_register_size): Declare.
6439 (generic_register_raw_size, generic_register_virtual_size): Delete
6441 * arch-utils.c (generic_register_raw_size): Delete.
6442 (generic_register_size): New function.
6443 (generic_register_virtual_size): Delete.
6445 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6446 default generic_register_size.
6447 * gdbarch.h, gdbarch.c: Re-generate.
6449 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6450 register_virtual_size.
6451 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6454 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6456 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6457 * gdbarch.h, gdbarch.c: Regenerate.
6458 * gnu-v3-abi.c: Update copyright.
6459 (vtable_address_point_offset): Update.
6460 (gnuv3_rtti_type): Update.
6461 (gnuv3_baseclass_offset): Update.
6462 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6463 (init_fetch_link_map_offsets): Update.
6464 * remote.c (get_remote_state): Update.
6466 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6468 * TODO: Remove value_headof/value_from_vtable_info comment.
6469 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6470 * values.c (value_headof, value_from_vtable_info): Delete.
6471 * value.h (value_from_vtable_info): Delete prototype.
6473 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6475 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6476 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6478 (gdb_assert_h): Define.
6479 (gdb_wait_h): Define.
6480 (gdb_regex_h): Define.
6482 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6484 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6485 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6487 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6489 * nbsd-tdep.c: Fix comment.
6491 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6493 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6494 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6495 (nbsd-tdep.o): New dependency list.
6496 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6498 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6499 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6500 * nbsd-tdep.c: New file.
6501 * nbsd-tdep.h: New file.
6502 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6504 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6505 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6506 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6507 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6509 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6511 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6512 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6513 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6514 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6515 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6516 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6518 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6520 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6521 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6522 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6523 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6524 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6525 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6526 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6528 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6530 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6531 fetch_elfcore_registers to...
6532 * i386nbsd-tdep.c: ...here.
6533 (i386nbsd_use_struct_convention): Rename to...
6534 (i386nbsd_aout_use_struct_convention): ...this.
6535 (i386nbsd_supply_reg): New function.
6536 (i386nbsd_fill_reg): New function.
6537 (fetch_core_registers): Use i386nbsd_supply_reg.
6538 (fetch_elfcore_registers): Likewise.
6539 (_initialize_i386nbsd_tdep): New function.
6540 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6541 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6542 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6543 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6544 (i386nbsd_aout_use_struct_convention): ...this.
6546 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6548 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6549 (store_inferior_registers): Use shnbsd_fill_reg.
6550 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6551 sh_nbsd_supply_register): Collapse into...
6552 (shnbsd_supply_reg): ...this.
6553 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6554 (shnbsd_fill_reg): ...this.
6555 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6556 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6557 (fetch_core_registers): Use shnbsd_supply_reg.
6558 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6559 (sh_nbsd_core_fns): Rename to...
6560 (shnbsd_core_fns): ...this.
6561 (sh_nbsd_elfcore_fns): Rename to...
6562 (shnbsd_elfcore_fns): ...this.
6563 (sh_nbsd_init_abi): Rename to...
6564 (shnbsd_init_abi): ...this.
6565 (_initialize_sh_nbsd_tdep): Rename to...
6566 (_initialize_shnbsd_tdep): ...this.
6567 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6568 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6569 sh_nbsd_fill_register): Remove prototypes.
6570 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6572 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6574 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6575 (i387-nat.o): Delete dependency list.
6576 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6577 (x86-64-linux-nat.o): Likewise.
6578 * i387-nat.c: Delete file, moving contents to...
6579 * i387-tdep.c: ...here.
6580 * i387-nat.h: Rename...
6581 * i387-tdep.h: ...to this.
6582 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6583 * i386-linux-nat.c: Likewise.
6584 * i386bsd-nat.c: Likewise.
6585 * i386gnu-nat.c: Likewise.
6586 * i386nbsd-nat.c: Likewise.
6587 * i386v4-nat.c: Likewise.
6588 * x86-64-linux-nat.c: Likewise.
6589 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6590 * config/i386/go32.mh (NATDEPFILES): Likewise.
6591 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6592 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6593 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6594 * config/i386/linux.mh (NATDEPFILES): Likewise.
6595 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6596 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6597 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6598 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6600 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6602 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6603 (alphanbsd-nat.o): Remove dependency list.
6604 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6605 * alphanbsd-nat.c: Delete. Contents moved to...
6606 * alphanbsd-tdep.c: ...here.
6607 (_initialize_alphanbsd_tdep): Register core functions.
6608 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6610 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6612 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6613 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6614 (alphanbsd-nat.o): Likewise.
6615 (alphabsd-tdep.o): New dependency list.
6616 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6617 (fill_gregset): Use alphabsd_fill_reg.
6618 (supply_fpregset): Use alphabsd_supply_fpreg.
6619 (fill_fpregset): Use alphabsd_fill_fpreg.
6620 (fetch_inferior_registers): Use struct reg and struct fpreg
6621 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6622 and alphabsd_supply_fpreg.
6623 (store_inferior_registers): Use struct reg and struct fpreg
6624 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6625 and alphabsd_fill_fpreg.
6626 * alphabsd-tdep.c: New file.
6627 * alphabsd-tdep.h: New file.
6628 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6629 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6630 alphabsd_supply_fpreg.
6631 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6632 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6634 2002-05-11 Eric Christopher <echristo@redhat.com>
6636 * mips-tdep.c (mips_double_register_type): Fix thinko.
6637 (mips_single_register_type): Ditto.
6638 * MAINTAINERS: Add self.
6640 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6642 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6643 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6644 right thing on architectures with different endianness and/or
6647 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6649 From Christian Limpach <chris@Pin.LU>
6650 * configure.in: Change sed expression which comments out
6651 NATDEPFILES to also comment out continuation lines.
6652 * configure: Regenerate.
6654 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6656 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6659 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6661 * sh-tdep.c: Include correct file.
6663 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6665 New support for sh64-elf (sh5) target.
6667 * configure.tgt: For sh64-elf target, default to sh-elf.
6669 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6670 (struct gdbarch_tdep): Add new fields for new registers and ABI
6673 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6674 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6675 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6676 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6677 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6678 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6679 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6680 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6681 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6682 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6683 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6684 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6685 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6686 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6687 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6688 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6689 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6690 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6691 sign_extend, sh64_nofp_frame_init_saved_regs,
6692 sh64_init_extra_frame_info, sh64_get_saved_register,
6693 sh64_extract_struct_value_address, sh64_pop_frame,
6694 sh64_push_arguments, sh64_extract_return_value,
6695 sh64_store_return_value, sh64_show_media_regs,
6696 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6697 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6698 sh_sh64_register_virtual_type,
6699 sh_sh64_register_convert_to_virtual,
6700 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6701 sh64_register_read, sh64_pseudo_register_write,
6702 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6703 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6704 sh64_do_pseudo_register, sh_compact_do_registers_info,
6705 sh64_do_registers_info, sh_gdbarch_init): New functions.
6707 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6709 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6711 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6713 * linespec.c (decode_line_1): Check for a double quote after
6714 a filename correctly.
6716 2002-05-10 Jim Blandy <jimb@redhat.com>
6718 Properly track the size of the current objfile's .debug_line section.
6719 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6720 (DWARF_LINE_SIZE): New macro.
6721 (dwarf2_build_psymtabs_hard): Record the line section's size in
6722 the partial symbol table.
6723 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6726 2002-05-10 Petr Sorfa <petrs@caldera.com>
6728 * ia64-tdep.c: Handle breakpoints on L instruction type
6729 in MLX instruction bundle by moving the breakpoint to
6730 the third slot (X instruction type) as L holds only data.
6732 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6734 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6735 (process_one_symbol): Complain about discarding local symbols
6736 due to a misplaced N_LBRAC entry.
6738 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6740 From Daniel Berlin <dan@cgsoftware.com>
6741 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6742 decrease the depth we are at, in the case of templates.
6744 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6746 * mips-tdep.c (mips_float_register_type): New function.
6747 (mips_double_register_type): New function.
6748 (mips_print_register): Use them.
6749 (do_fp_register_row): Likewise.
6751 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6753 * signals/signals.c (signals): Remove conditional compilation around
6754 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6755 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6757 2002-05-09 Michael Snyder <msnyder@redhat.com>
6759 * remote-rdp.c (remote_rdp_can_run): Remove.
6761 2002-05-09 Tom Tromey <tromey@redhat.com>
6763 * jv-valprint.c (java_val_print): Handle `char' as a special case
6766 2002-05-09 Michael Snyder <msnyder@redhat.com>
6768 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6769 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6770 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6771 str r(0123),[sp,#nn].
6772 (arm_skip_prologue): Ditto. Also make disassembly
6773 order-independent by placing it in a loop.
6775 2002-05-06 Michael Snyder <msnyder@redhat.com>
6777 * stabsread.c (read_type): Add recognition for new attribute:
6778 "@V;" means that an array type is actually a vector.
6779 This is analogous to the vector flag that's been added to dwarf2.
6781 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6783 * i386-tdep.h (i386_abi): New enum.
6784 (struct gdbarch_tdep): Replace os_ident member with abi.
6785 (i386_gdbarch_register_os_abi): New prototype.
6786 * i386-tdep.c (i386_abi_names): New array.
6787 (process_note_abi_tag_sections): Removed.
6788 (process_note_sections): New function.
6789 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6790 (struct i386_abi_handler): New struct.
6791 (i386_abi_handler_list): New variable.
6792 (i386_gdbarch_register_os_abi): New function.
6793 (i386_gdbarch_init): Adapt for the changes given above.
6795 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6797 * gregset.h: Say "GNU/Linux".
6799 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6801 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6802 (build_gdbtypes): Build builtin_type_v2_float.
6803 (_initialize_gdbtypes): Register new builtin type.
6805 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6807 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6808 (clear_gdbarch_swap): New function.
6809 (initialize_non_multiarch): Call.
6810 (gdbarch_update_p): Before calling init(), swap out and clear the
6811 existing architecture.
6812 * gdbarch.c: Regenerate.
6814 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6816 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6819 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6821 * sh-nbsd-nat.c: Rename to...
6822 * shnbsd-nat.c: ...this.
6823 * sh-nbsd-tdep.c: Rename to...
6824 * shnbsd-tdep.c: ...this.
6825 * sh-nbsd-tdep.h: Rename to...
6826 * shnbsd-tdep.h: ...this.
6827 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6828 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6830 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6832 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6833 concatenation for command help messages.
6835 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6837 * NEWS: Note new sh*-*-netbsdelf* configuration.
6838 * configure.host: Set gdb_host_cpu to sh for all sh*.
6839 (sh*-*-netbsdelf*): New host.
6840 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6841 (sh*-*-netbsdelf*): New target.
6842 * sh-nbsd-nat.c: New file.
6843 * sh-nbsd-tdep.c: New file.
6844 * sh-nbsd-tdep.h: New file.
6845 * config/sh/nbsd.mh: New file.
6846 * config/sh/nbsd.mt: New file.
6847 * config/sh/nm-nbsd.h: New file.
6848 * config/sh/tm-nbsd.h: New file.
6850 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6852 * sh-tdep.c (sh_osabi_names): Declare.
6853 (process_note_abi_tag_sections): New function.
6854 (get_elfosabi): Ditto.
6855 (sh_gdbarch_register_os_abi): Ditto.
6856 (sh_dump_tdep): Ditto.
6857 _initialize_sh_tdep): Use gdbarch_register to register
6858 sh_gdbarch_init and sh_dump_tdep.
6859 * config/sh/tm-sh.h (sh_osabi): Declare.
6860 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6862 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6864 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6865 (thumb_scan_prologue): Ditto.
6866 (arm_find_callers_reg): Ditto.
6867 (arm_frame_chain): Ditto.
6868 (arm_init_extra_frame_info): Ditto.
6869 (arm_frame_saved_pc): Ditto.
6870 (arm_pop_frame): Ditto.
6871 (arm_push_return_address): New function.
6872 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6873 call_dummy_location, call_dummy_breakpoint_offset_p,
6874 call_dummy_breakpoint_offset, call_dummy_p,
6875 call_dummy_stack_adjust_p, call_dummy_words,
6876 sizeof_call_dummy_words, call_dummy_start_offset,
6877 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6878 call_dummy_address, push_return_address and push_dummy_frame for
6879 generic dummy frames.
6881 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6883 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6884 size computation for alloca.
6885 (sh_fp_frame_init_saved_regs): Likewise.
6887 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6889 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6890 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6891 * arm-tdep.c (arm_store_return_value): Use them.
6892 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6893 * remote-rdp.c (remote_rdp_fetch_register): Use
6894 ARM_MAX_REGISTER_RAW_SIZE.
6895 (remote_rdp_store_register): Likewise.
6897 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6899 * dwarf2cfi.c: Code cleanup, removed unused variables,
6900 added default labels to switch {} statements.
6901 * x86-64-tdep.c: Ditto.
6902 * x86-64-linux-nat.c: Ditto.
6904 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6906 * solib.h: Protect against multiple inclusion.
6908 2002-05-06 Jim Blandy <jimb@redhat.com>
6910 Add first preprocessor macro-expansion files.
6911 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6912 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6913 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6914 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6915 (COMMON_OBS): Add macrotab.o, macroexp.o.
6916 (macroexp.o, macrotab.o): New rules.
6918 Separate the job of reading the line number info statement program
6919 header (...expialidocious) out into its own function.
6920 * dwarf2read.c (struct line_head, struct filenames, struct
6921 directories): Replace with...
6922 (struct line_header): New structure, containing the full
6923 contents of the statement program header, including the
6924 include directory and file name tables.
6925 (read_file_scope): If we have line number info, instead of just
6926 calling dwarf_decode_lines to do all the work, call
6927 dwarf_decode_line_header first to get a `struct line_header'
6928 containing the data in the statement program header, and then
6929 pass that to dwarf_decode_lines, which will pick up where that
6930 left off. Be sure to clean up the `struct line_header' object.
6931 (dwarf_decode_line_header, free_line_header, add_include_dir,
6932 add_file_name): New functions.
6933 (dwarf_decode_lines): Move all the code to read the statement
6934 program header into dwarf_decode_line_header. Take the line
6935 header it built as the first argument, instead of the offset to
6936 the compilation unit's line number info. Use the new `struct
6937 line_header' type instead of the old structures. No need to do
6938 cleanups here now, since we don't allocate anything.
6939 (dwarf2_statement_list_fits_in_line_number_section,
6940 dwarf2_line_header_too_long): New complaints.
6942 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6944 * gdbtypes.c (init_vector_type): New function.
6945 (build_builtin_type_vec128): Simplify the representation of SIMD
6947 (build_gdbtypes): Initialize new builtin vector types.
6948 (_initialize_gdbtypes): Register new vector types with gdbarch.
6949 (builtin_type_v4_float, builtin_type_v4_int32,
6950 builtin_type_v8_int16, builtin_type_v16_int8,
6951 builtin_type_v2_int32, builtin_type_v4_int16,
6952 builtin_type_v8_int8): New (renamed) SIMD types.
6954 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6956 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6957 (i387_fill_fxsave): Likewise.
6959 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6961 * alpha-tdep.c (alpha_extract_return_value): Don't use
6962 non-constant array size in prototype.
6964 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6966 From Brian Taylor <briant at model dot com>:
6967 * ui-out.c (ui_out_field_core_addr): Use the function
6968 longest_local_hex_string_custom'to format addresses > 32 bits
6971 * ui-out.c (ui_out_field_core_addr): Update comment.
6973 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6975 * stack.c (select_and_print_frame): Make static. Delete the
6977 (func_command): Update call.
6978 (select_frame_command): Delete code computing the frame level.
6979 * frame.h (select_and_print_frame): Delete declaration.
6981 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6983 * sparc-tdep.c (sparc_get_saved_register): Comment why
6984 get_prev_frame call is safe.
6986 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6988 * frame.h (select_frame): Delete level parameter.
6989 * stack.c (select_frame): Update. Use frame_relative_level to
6990 obtain the frame's level.
6991 (select_and_print_frame): Update call.
6992 (select_frame_command): Ditto.
6993 (up_silently_base): Ditto.
6994 (down_silently_base): Ditto.
6995 * ocd.c (ocd_start_remote): Ditto.
6996 * remote-rdp.c (remote_rdp_open): Ditto.
6997 * remote-mips.c (mips_initialize): Ditto.
6998 (common_open): Ditto.
6999 * remote-e7000.c (e7000_start_remote): Ditto.
7000 * m3-nat.c (select_thread): Ditto.
7001 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7002 (child_get_current_exception_event): Ditto.
7003 * varobj.c (varobj_create): Ditto.
7004 (varobj_update): Ditto.
7005 (c_value_of_root): Ditto.
7006 * tracepoint.c (finish_tfind_command): Ditto.
7007 * corelow.c (core_open): Ditto.
7008 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7009 * thread.c (info_threads_command): Ditto.
7010 (switch_to_thread): Ditto.
7011 * infrun.c (normal_stop): Ditto.
7012 (restore_selected_frame): Ditto.
7013 (restore_inferior_status): Ditto.
7014 * breakpoint.c (insert_breakpoints): Ditto.
7015 (watchpoint_check): Ditto.
7016 (bpstat_stop_status): Ditto.
7017 (do_enable_breakpoint): Ditto.
7018 * blockframe.c (flush_cached_frames): Ditto.
7019 (reinit_frame_cache): Ditto.
7021 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7023 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7026 2002-05-04 Jim Blandy <jimb@redhat.com>
7028 * gdbtypes.c (replace_type): Doc fix.
7030 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7032 * valprint.c (strcat_longest): Delete commented out function.
7035 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7037 * MAINTAINERS: Mark a29k as deleted.
7038 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7039 Move new configurations to the top.
7040 * configure.tgt: Remove a29k.
7041 * config/a29k/tm-vx29k.h: Delete.
7042 * config/a29k/vx29k.mt: Delete.
7043 * config/a29k/tm-a29k.h: Delete.
7044 * config/a29k/a29k-udi.mt: Delete.
7045 * config/a29k/a29k.mt: Delete.
7046 * a29k-tdep.c: Delete.
7047 * remote-udi.c: Delete.
7048 * remote-mm.c: Delete.
7049 * remote-eb.c: Delete.
7050 * remote-adapt.c: Delete.
7051 * Makefile.in: Remove obsolete code.
7052 * config/s390/s390x.mt: Ditto.
7053 * config/s390/s390.mt: Ditto.
7054 * config/sparc/sparclynx.mh: Ditto.
7055 * config/sparc/linux.mh: Ditto.
7056 * config/pa/hppaosf.mh: Ditto.
7057 * config/pa/hppabsd.mh: Ditto.
7058 * config/ns32k/nbsd.mt: Ditto.
7059 * config/mips/vr5000.mt: Ditto.
7060 * config/m68k/sun3os4.mh: Ditto.
7061 * config/m68k/nbsd.mt: Ditto.
7062 * config/m68k/m68klynx.mh: Ditto.
7063 * config/m32r/m32r.mt: Ditto.
7064 * config/i386/x86-64linux.mt: Ditto.
7065 * config/i386/nbsdelf.mt: Ditto.
7066 * config/i386/nbsd.mt: Ditto.
7067 * config/i386/i386lynx.mh: Ditto.
7069 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7071 * target.c (debug_print_register): New function. Handle oversize
7073 (debug_to_fetch_registers): Call.
7074 (debug_to_store_registers): Call.
7076 2002-05-03 Jim Blandy <jimb@redhat.com>
7078 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7079 (read_type): Doc fix.
7080 * gdbtypes.c (replace_type): Doc fix.
7082 * stabsread.c (multiply_defined_struct): New complaint.
7083 (read_struct_type): If the type we were passed isn't empty, or
7084 incomplete, don't read the new struct type into it; complain,
7085 and return the original type unchanged. Take a new `type_code'
7086 argument, which is the type code for the new type.
7087 (read_type): Rather than storing the type's type code here, pass
7088 it as an argument to read_struct_type, and let that take care of
7089 storing it. That way, we don't overwrite the original type code,
7090 so read_struct_type can use it to decide whether we're overwriting
7091 something we shouldn't.
7092 (complain_about_struct_wipeout): New function.
7094 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7096 * gdbarch.sh: Assert that gdbarch is non-NULL.
7097 * gdbarch.c: Regenerate.
7099 2002-05-03 Jason Merrill <jason@redhat.com>
7101 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7104 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7106 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7107 (x86_64_dwarf2gdb_regno_map_length),
7108 (x86_64_dwarf2_reg_to_regnum): Added.
7109 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7110 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7111 (_initialize_x86_64_tdep): Synced with the change above.
7112 (x86_64_skip_prologue): Reformulated message.
7114 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7116 * f-exp.y: Also use new prev_lexptr variable
7117 to improve error reporting. Based on Michael Snyder
7118 2002-04-24 dated patch to c-exp.y.
7119 * jv-exp.y: Likewise.
7120 * m2-exp.y: Likewise.
7122 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7124 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7125 we are dealing with vectors.
7127 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7129 * config/m68k/tm-nbsd.h: Obvious fix,
7130 correct machine name.
7132 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7134 * p-typeprint.c (pascal_type_print_base): Add support
7135 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7137 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7139 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7140 for fondamental pascal 'char' type.
7142 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7144 * p-lang.h (is_pascal_string_type): Declaration changed,
7145 new sixth argument of type char ** added.
7146 * p-lang.c (is_pascal_string_type): Implementation
7147 changed. Args length_pos, length_size, string_pos, char_size
7148 can now be NULL. New argument arrayname set to the field
7149 name of the char array. Return value set to char array
7150 field index plus one.
7151 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7152 is_pascal_string_type function.
7154 2002-05-02 Andrew Cagney <cagney@redhat.com>
7156 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7157 <cagney@redhat.com> change.
7158 * gdbarch.c: Regenerate.
7160 2002-05-02 Andrew Cagney <cagney@redhat.com>
7162 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7163 before probing for a new one. Detect errorenous gdbarch_init
7165 * gdbarch.c: Regenerate.
7167 2002-05-01 Andrew Cagney <cagney@redhat.com>
7169 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7170 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7171 * config/v850/tm-v850.h: Ditto. Update copyright.
7173 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7175 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7178 2002-04-30 Michael Snyder <msnyder@redhat.com>
7180 * arm-tdep.c: Whitespace clean-ups.
7181 (arm_skip_prologue): Fix thinko; two lines
7182 should have been removed as part of 4/24 change.
7184 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7186 * rs6000-tdep.c: Added comment describing how fpscr register
7187 numbers were chosen.
7189 2002-04-30 Michael Snyder <msnyder@redhat.com>
7191 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7193 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7195 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7196 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7197 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7199 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7201 From Louis Hamilton <hamilton@redhat.com>:
7202 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7203 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7204 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7205 not bfd-private xcoff data, to determine wordsize.
7206 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7208 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7210 GDB 5.2 released from 5.2 branch.
7212 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7214 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7215 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7216 (x86_64_register_info_table): Added comments with register numbers.
7218 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7220 * rs6000-tdep.c (rs6000_extract_return_value,
7221 rs6000_store_return_value): Handle returning vectors.
7222 (rs6000_gdbarch_init): Use
7223 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7224 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7226 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7228 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7229 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7231 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7233 * hpread.c (hpread_psymtab_to_symtab_1,
7234 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7235 with fprintf_unfiltered (gdb_stderr,...).
7237 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7239 * remote-array.c (printf_monitor, write_monitor,
7240 array_insert_breakpoint, array_remove_breakpoint ):
7241 Replace fprintf (stderr,...
7242 with fprintf_unfiltered (gdb_stderr,....
7243 * remote-es.c: Likewise.
7244 * remote-os9k.c: Likewise.
7245 * remote-st.c: Likewise.
7247 2002-04-28 Andreas Schwab <schwab@suse.de>
7249 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7250 linux-proc.o and gcore.o.
7252 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7254 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7255 code without frame pointers.
7257 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7259 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7262 2002-04-26 Ben Elliston <bje@redhat.com>
7264 * target.c (do_xfer_memory): Correct reference to the new option
7265 "trust-readonly-sections".
7267 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7269 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7270 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7271 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7273 (read_array_type): Record the fact that this array type is really a
7274 vector (i.e. are passed in by value).
7276 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7278 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7279 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7280 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7281 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7282 * alpha-linux-tdep.c: Include frame.h.
7283 (alpha_linux_sigcontext_addr): New function.
7284 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7285 alpha_linux_sigcontext_addr.
7286 * alpha-osf1-tdep.c: Include gdbcore.h.
7287 (alpha_osf1_sigcontext_addr): New function.
7288 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7289 alpha_osf1_sigcontext_addr.
7290 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7291 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7293 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7295 * stack.c (selected_frame_level):
7296 (select_frame): Do not set selected_frame_level.
7297 * frame.h (selected_frame_level): Delete declaration.
7299 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7302 convert_from_func_ptr-addr when AIX / PowerOpen.
7304 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7306 * valops.c (hand_function_call): Call
7307 generic_save_call_dummy_addr.
7308 * frame.h (generic_save_call_dummy_addr): Declare.
7309 * blockframe.c (struct dummy_frame): Add fields call_lo and
7311 (generic_find_dummy_frame): Check for PC in range call_lo to
7312 call_hi instead of entry_point_address.
7313 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7314 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7315 (generic_save_call_dummy_addr): New function.
7317 2002-04-24 David S. Miller <davem@redhat.com>
7319 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7320 sparc_skip_prologue.
7321 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7322 information to find prologue when possible.
7323 (sparc_prologue_frameless_p): Call examine_prologue directly.
7324 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7325 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7327 (SKIP_PROLOGUE): Likewise.
7329 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7331 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7332 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7333 indicate that the condition it was testing is always true.
7334 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7335 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7336 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7338 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7340 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7341 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7342 tdep->jb_pc and tdep->jb_elt_size.
7343 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7344 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7345 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7346 * alpha-nat.c (get_longjmp_target): Remove.
7347 (JB_ELEMENT_SIZE): Ditto.
7349 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7350 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7351 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7352 to alpha_get_longjmp_target.
7353 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7354 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7355 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7357 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7359 * README: Update to GDB 5.2.
7361 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7363 * gdbarch.sh (LC_ALL): Set to `c'.
7365 2002-04-25 Theodore A. Roth <troth@verinet.com>
7367 * avr-tdep.c: Ran through gdb_indent.sh.
7369 2002-04-25 Theodore A. Roth <troth@verinet.com>
7371 * MAINTAINERS: Add myself as AVR maintainer.
7372 * NEWS: Note new target avr.
7374 2002-04-25 Theodore A. Roth <troth@verinet.com>
7376 * Makefile.in: Add support for AVR target.
7377 * configure.tgt: Add support for AVR target.
7378 * avr-tdep.c: New file
7379 * config/avr/avr.mt: New file.
7381 2002-04-25 Theodore A. Roth <troth@verinet.com>
7383 * MAINTAINERS: Add myself to write-after-approval.
7385 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7387 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7388 with fprintf_unfiltered (gdb_stderr,....
7390 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7393 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7395 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7397 * p-exp.y: Also use new prev_lexptr variable
7398 to improve error reporting. Based on Michael Snyder
7399 2002-04-24 dated patch to c-exp.y.
7401 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7403 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7404 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7405 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7407 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7409 (FUNCTION_START_OFFSET): Remove.
7410 (BREAKPOINT): Ditto.
7412 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7414 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7417 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7419 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7420 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7421 alpha_linux_pc_in_sigtramp.
7422 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7423 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7424 alpha_osf1_pc_in_sigtramp.
7425 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7426 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7427 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7428 alphafbsd_pc_in_sigtramp.
7429 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7430 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7431 alphanbsd_pc_in_sigtramp.
7432 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7433 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7435 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7437 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7439 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7441 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7443 (alphanbsd-nat.o): New dependency list.
7444 (alphanbsd-tdep.o): Ditto.
7445 * NEWS: Note new native NetBSD/alpha configuration.
7446 * alphanbsd-nat.c: New file.
7447 * alphanbsd-tdep.c: Ditto.
7448 * configure.host (alpha*-*-netbsd*): New host.
7449 * configure.tgt (alpha*-*-netbsd*): New target.
7450 * config/alpha/nbsd.mh: New file.
7451 * config/alpha/nbsd.mt: Ditto.
7452 * config/alpha/nm-nbsd.h: Ditto.
7453 * config/alpha/tm-nbsd.h: Ditto.
7455 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7457 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7458 (alpha-osf1-tdep.o): New dependency list.
7459 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7460 and skip_sigtramp_frame members.
7461 * alpha-linux-tdep.c: Include gdbcore.h.
7462 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7463 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7464 * alpha-osf1-tdep.c: New file.
7465 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7467 (alpha_frame_past_sigtramp_frame): New function.
7468 (alpha_dynamic_sigtramp_offset): Ditto.
7469 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7470 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7471 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7472 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7473 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7474 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7475 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7476 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7477 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7478 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7479 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7480 to find_solib_trampoline_target.
7481 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7482 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7483 (SKIP_TRAMPOLINE_CODE): Remove.
7484 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7485 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7486 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7487 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7488 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7489 (PROC_SIGTRAMP_MAGIC): Ditto.
7490 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7491 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7492 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7493 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7494 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7496 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7498 * NEWS: Note that Alpha targets are now multi-arch.
7500 2002-04-24 Michael Snyder <msnyder@redhat.com>
7502 * parser-defs.h (prev_lexptr): New external variable.
7503 * parse.c (parse_exp_1): Set prev_lexptr to null before
7504 calling the language-specific parser.
7505 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7506 (yyerror): Use prev_lexptr in error reporting.
7508 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7510 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7511 * gregset.h: If FILL_FPXREGSET is defined, provide
7512 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7513 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7514 is defined, call fill_fpxregset.
7516 2002-04-24 Roland McGrath <roland@frob.com>
7518 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7519 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7520 (supply_gregset, supply_fpregset): New functions.
7522 * gnu-nat.c (gnu_find_memory_regions): New function.
7523 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7524 (gnu_xfer_memory): Add a cast.
7526 2002-04-24 Michael Snyder <msnyder@redhat.com>
7528 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7529 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7530 of argument regs ("str r(0123), [r11, #-nn"]).
7531 (arm_skip_prologue): Better handling for frameless functions.
7532 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7533 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7535 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7537 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7538 NUM_PSEUDO_REGS can be used.
7540 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7542 * arch-utils.h: Update copyright.
7544 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7545 * gdbarch.h, gdbarch.c: Re-generate.
7547 * inferior.h (IN_SIGTRAMP): Delete definition.
7548 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7549 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7551 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7552 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7553 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7554 (find_proc_framesize): Ditto.
7555 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7556 (alpha_init_extra_frame_info): Ditto.
7557 * infrun.c (handle_inferior_event): Ditto.
7558 (handle_inferior_event): Ditto.
7559 (check_sigtramp2): Ditto.
7560 * blockframe.c (create_new_frame): Ditto.
7561 (get_prev_frame): Ditto.
7562 * ppc-linux-tdep.c: Update comments.
7563 * i386-linux-tdep.c: Update comments.
7564 * breakpoint.c (bpstat_what): Update comment.
7566 2002-04-24 David S. Miller <davem@redhat.com>
7568 * i960-tdep.c (register_in_window_p): New function.
7569 (i960_find_saved_register): Use it instead of
7570 REGISTER_IN_WINDOW_P.
7571 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7573 * symtab.h (find_stab_function_addr): Kill extern.
7574 * minsyms.c (find_stab_function_addr): Remove from here...
7575 * dbxread.c: ... to here, and mark it static.
7577 2002-04-20 David S. Miller <davem@redhat.com>
7579 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7580 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7582 2002-04-21 David S. Miller <davem@redhat.com>
7584 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7585 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7586 (vx_write_register): Likewise.
7588 2002-04-23 J. Brobecker <brobecker@gnat.com>
7590 * source.c (is_regular_file): New function.
7591 (openp): Check wether file to open is a regular file
7592 to avoid opening directories.
7594 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7596 * findvar.c (extract_signed_integer): Cast printf argument
7597 to suppress format warning.
7598 (extract_unsigned_integer): Likewise.
7599 * infcmd.c (registers_info): Likewise.
7600 * top.c (get_prompt_1): Likewise.
7601 * valops.c (value_assign): Likewise.
7602 * valprint.c (print_decimal): Likewise.
7604 2002-04-22 H.J. Lu (hjl@gnu.org)
7606 * c-exp.y (typebase): Support
7608 [long|long long|short] [signed|unsigned] [int|]
7612 signed [long|long long|short] int
7614 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7616 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7618 * vax-tdep.h: New file.
7619 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7620 Make several routines static.
7621 (vax_get_saved_register): New function.
7622 (vax_gdbarch_init): New function.
7623 (_initialize_vax_tdep): Register vax_gdbarch_init.
7624 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7625 Remove macros now under the control of gdbarch.
7627 2002-04-22 Michael Snyder <msnyder@redhat.com>
7629 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7630 Some whitespace and coding standards tweaks.
7632 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7634 * vax-tdep.c: Include regcache.h.
7635 (vax_call_dummy_words): New.
7636 (sizeof_vax_call_dummy_words): New.
7637 (vax_fix_call_dummy): New function.
7638 (vax_saved_pc_after_call): Ditto.
7639 * config/vax/tm-vax.h: Don't include regcache.h.
7640 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7641 (CALL_DUMMY): Remove.
7642 (CALL_DUMMY_WORDS): Define.
7643 (SIZEOF_CALL_DUMMY_WORDS): Define.
7644 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7646 2002-04-18 Michael Snyder <msnyder@redhat.com>
7648 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7650 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7652 * vax-tdep.c (vax_frame_chain): New function.
7653 (vax_push_dummy_frame): Ditto.
7654 (vax_pop_frame): Ditto.
7655 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7656 (FRAMELESS_FUNCTION_INVOCATION): Use
7657 generic_frameless_function_invocation_not.
7658 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7659 (POP_FRAME): Use vax_pop_frame.
7661 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7663 * vax-tdep.c (vax_store_struct_return): New function.
7664 (vax_extract_return_value): Ditto.
7665 (vax_store_return_value): Ditto.
7666 (vax_extract_struct_value_address): Ditto.
7667 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7668 vax_store_struct_return.
7669 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7670 (STORE_RETURN_VALUE): Use vax_store_return_value.
7671 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7673 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7675 * vax-tdep.c (vax_frame_saved_pc): New function.
7676 (vax_frame_args_address_correct): Ditto.
7677 (vax_frame_args_address): Ditto.
7678 (vax_frame_locals_address): Ditto.
7679 (vax_frame_num_args): Move code to be in proximity to
7680 other frame-related functions.
7681 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7682 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7683 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7684 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7685 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7687 2002-04-22 H.J. Lu (hjl@gnu.org)
7689 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7692 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7694 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7695 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7696 (FRAME_INIT_SAVED_REGS): New macro.
7698 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7700 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7702 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7704 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7706 (fetch_osf_core_registers): Likewise.
7707 (supply_gregset): Likewise.
7709 2002-04-22 J. Brobecker <brobecker@gnat.com>
7711 * symfile.h (get_section_index): Define.
7712 * symfile.c (get_section_index): New function.
7713 * mdebugread.c (SC_IS_SBSS): New macro.
7714 (SC_IS_BSS): Return true for the scBss storage class only, as
7715 the scSBss storage class refers to the .sbss section.
7716 (parse_partial_symbols): Discard the symbols which associated
7717 section does not exist.
7718 Make sure to use the .sbss section index for symbols which
7719 storage class is scBss, rather than using the .bss section index.
7721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7723 * vax-tdep.c: Update copyright years.
7724 (vax_register_name): New function.
7725 (vax_register_byte): Ditto.
7726 (vax_register_raw_size): Ditto.
7727 (vax_register_virtual_size): Ditto.
7728 (vax_register_virtual_type): Ditto.
7729 * config/vax/tm-vax.h: Update copyright years.
7730 (REGISTER_NAMES): Remove.
7731 (REGISTER_NAME): Define.
7732 (REGISTER_BYTE): Use vax_register_byte.
7733 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7734 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7735 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7737 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7739 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7741 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7743 2002-04-21 David S. Miller <davem@redhat.com>
7745 * arch-utils.c (generic_prologue_frameless_p): Kill
7746 SKIP_PROLOGUE_FRAMELESS_P code.
7747 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7749 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7750 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7751 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7753 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7754 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7755 (sparc_gdbarch_init): Pass it to
7756 set_gdbarch_prologue_frameless_p.
7758 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7760 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7761 (alphabsd-nat.o): New dependency list.
7763 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7765 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7767 (alpha-linux-tdep.o): New dependency list.
7768 (alphafbsd-tdep.o): Likewise.
7770 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7772 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7774 * alpha-tdep.c: ...from here.
7775 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7777 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7779 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7780 prototype from here...
7781 * alpha-tdep.h: ...to here.
7783 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7785 * frame.h (selected_frame_level): Document as deprecated.
7786 (frame_relative_level): Declare.
7787 * stack.c (frame_relative_level): New function.
7788 (selected_frame_level): Document as deprecated.
7789 (select_frame): Do not set the selected_frame_level.
7791 * stack.c (frame_info, record_selected_frame): Update.
7792 (frame_command, current_frame_command): Update.
7793 (up_silently_base, up_command, down_silently_base): Update.
7794 (down_command): Update.
7795 * inflow.c (kill_command): Update.
7796 * tracepoint.c (finish_tfind_command): Update.
7797 * corelow.c (core_open): Update.
7798 * thread.c (info_threads_command): Update.
7799 (do_captured_thread_select): Update.
7800 * infcmd.c (finish_command): Update.
7801 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7803 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7805 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7807 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7809 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7812 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7814 * alphafbsd-tdep.c: Update copyright years. Include
7816 (alphafbsd_use_struct_convention): Make static.
7817 (alphafbsd_init_abi): New function.
7818 (_initialize_alphafbsd_tdep): New function.
7819 * config/alpha/tm-fbsd.h: Update copyright years.
7820 (USE_STRUCT_CONVENTION): Remove.
7822 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7824 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7825 an Alpha ABI variant.
7826 (alpha_abi_handler_list): Declare.
7827 (alpha_gdbarch_register_os_abi): New function.
7828 (alpha_gdbarch_init): Give registered ABI variant handlers a
7829 chance to tweak the gdbarch once we have set up defaults.
7830 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7832 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7834 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7835 to standard_coerce_float_to_double.
7836 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7838 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7840 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7841 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7842 from gdbarch_tdep rather than a constant.
7843 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7844 the default text address for all Alpha Unix ABIs.
7845 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7846 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7848 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7850 * alpha-tdep.h: New file. Includes several Alpha target constants
7852 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7853 let gdbarch deal with.
7854 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7855 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7857 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7858 Alpha target register names.
7859 * alphabsd-nat.c: Likewise.
7860 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7861 Alpha target register names. Make serveral routines static.
7862 (alpha_get_saved_register): New function.
7863 (alpha_abi_names): New.
7864 (process_note_abi_tag_sections): New function.
7865 (get_elfosabi): New function.
7866 (alpha_gdbarch_init): New function.
7867 (alpha_dump_tdep): New function.
7868 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7870 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7872 * frame.c (find_saved_register): Delete #ifdef
7873 HAVE_REGISTER_WINDOWS code.
7874 * config/sparc/tm-sparc.h: Update comments.
7875 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7877 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7879 * i960-tdep.c (i960_find_saved_register): New function.
7880 (i960_get_saved_register): New function.
7881 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7882 (i960_get_saved_register): Declare.
7883 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7885 2002-04-20 David S. Miller <davem@redhat.com>
7887 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7889 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7891 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7892 instead of NUM_PSEUDO_REGS.
7894 2002-04-20 David S. Miller <davem@redhat.com>
7896 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7897 GDB_MULTI_ARCH_PARTIAL
7898 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7899 define, let tm-sp64.h do it.
7901 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7903 * frame.c (find_saved_register): Avoid a NULL pointer
7904 dereference and actually walk the frame list.
7906 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7908 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7909 sorted in most most-recent-used order. Document.
7910 * gdbarch.h, gdbarch.c: Regenerate.
7912 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7914 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7916 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7917 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7918 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7921 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7924 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7925 (build_builtin_type_vec128): Ditto.
7926 (append_composite_type_field): Fix calculation of type length in
7929 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7931 * config/djgpp/README: Update.
7933 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7936 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7938 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7939 (alpha_setup_arbitrary_frame): ...to this.
7940 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7941 for alpha_setup_arbitrary_frame.
7943 2002-04-18 Andrew Cagney <cagney@redhat.com>
7945 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7946 * gdbarch.h, gdbarch.c: Regenerate.
7948 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7949 * target.h (memory_breakpoint_from_pc): Update declaration.
7950 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7952 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7953 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7954 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7955 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7956 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7957 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7958 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7959 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7960 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7961 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7962 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7963 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7965 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7967 * monitor.c (monitor_insert_breakpoint): Ditto.
7968 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7970 * config/mcore/tm-mcore.h: Update copyright.
7971 * mem-break.c: Ditto.
7972 * xstormy16-tdep.c: Ditto.
7974 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7976 * p-exp.y: Add precedence rule for '^' token.
7977 This removes the shift/reduce conflicts.
7978 Remove the comment concerning these shift/reduce conflicts.
7980 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7982 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7983 (registers_powerpc_nofp): New register set for processors
7984 without floating point unit.
7986 2002-04-18 David S. Miller <davem@redhat.com>
7988 * MAINTAINERS: Add myself to write-after-approval.
7990 2002-04-17 Michael Snyder <msnyder@redhat.com>
7992 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7994 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7996 * rs6000-tdep.c (frame_initial_stack_address): Use
7997 frame_register_read to read the alloca_reg.
7999 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8001 * frame.c (find_saved_register): Find saved registers in the next
8005 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8007 * gdbarch.sh (LANG): Set to ``c''.
8009 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8011 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8013 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8015 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8018 * hpread.c (hpread_get_lntt): Add declaration.
8019 Also fix PR gdb/391.
8021 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8023 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8024 * aclocal.m4, configure: Re-generate.
8027 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8029 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8030 instead of tm_print_insn.
8032 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8034 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8036 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8038 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8039 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8040 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8042 2002-04-12 Don Howard <dhoward@redhat.com>
8044 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8045 max_user_call_depth.
8046 (init_cmd_lists): Initialize the new value;
8047 * cli/cli-script.c (execute_user_command): Limit the call depth of
8048 user defined commands. This avoids a core-dump when user commands
8049 are infinitly recursive.
8051 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8053 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8054 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8055 from tdep struct instead of DEFAULT_LR_SAVE.
8056 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8057 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8058 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8060 2002-04-12 Michael Snyder <msnyder@redhat.com>
8062 * Remote.c: Spelling fix.
8063 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8064 If no symbol found for "sbrk", try "_sbrk".
8065 (make_output_phdrs): Use bfd_section_name.
8066 (gcore_copy_callback): Use bfd_section_name.
8067 * eval.c: Indentation fix-ups.
8068 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8069 in case it gets applied to an address that is already
8070 in the instruction space.
8071 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8072 * symfile.c: Fix indentation, long lines.
8073 * source.c: White space fix-up.
8075 2002-04-12 Andrew Cagney <cagney@redhat.com>
8077 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8078 * frame.c (frame_register_read): New function. Return non-zero on
8080 (read_relative_register_raw_bytes_for_frame): Delete.
8081 (read_relative_register_raw_bytes): Delete.
8082 * frame.h (frame_register_read): Declare.
8083 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8085 * infcmd.c (do_registers_info): Ditto.
8086 * hppa-tdep.c: Ditto.
8087 * rs6000-tdep.c: Ditto.
8088 * h8500-tdep.c: Ditto.
8089 * mips-tdep.c: Ditto.
8090 * h8300-tdep.c: Ditto.
8091 * z8k-tdep.c: Ditto.
8093 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8095 From Jimi X <jimix@watson.ibm.com>:
8096 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8099 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8101 From Jimi X <jimix@watson.ibm.com>:
8102 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8105 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8107 From Jimi X <jimix@watson.ibm.com>:
8108 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8109 register sets for these processor variants.
8111 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8113 * regformats/reg-ppc.dat: Support FPSCR.
8115 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8117 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8118 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8119 Add fpscr as an invalid/unfetchable register.
8120 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8121 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8122 (fill_fpregset): Add support for register fpscr.
8123 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8124 (fill_gregset): Account for the fact that register ``mq'' might
8126 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8127 (registers_power): Add fpscr to register set at slot 71.
8128 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8129 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8131 2002-04-11 Michael Snyder <msnyder@redhat.com>
8133 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8134 * configure: Regenerate.
8135 * config.in: Regenerate.
8136 * acconfig.h: Add define for _SYSCALL32.
8137 * core-sol2.c: Remove #define _SYSCALL32.
8138 * solib-legacy.c: Remove #define _SYSCALL32.
8140 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8142 * stack.c (select_frame): Cleanup internal error message, do not
8145 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8147 * stack.c (select_frame): Check that selected_frame and the
8148 specified level are as expected.
8149 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8151 * frame.h (struct frame_info): Add field `level'. Update
8153 Work-in-progress PR gdb/464.
8155 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8157 * maint.c (maint_print_section_info): Rename print_section_info.
8158 (print_bfd_section_info, print_objfile_section_info): Update.
8159 * inferior.h (struct gdbarch): Add opaque declaration.
8160 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8161 * gdbarch.h: Regenerate.
8163 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8165 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8166 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8167 (kernel_u_size): Added.
8168 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8169 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8171 2002-04-04 Jim Ingham <jingham@apple.com>
8173 * valarith.c (find_size_for_pointer_math): New function, either returns
8174 the size for a pointer's target, returns 1 for void *, or errors for
8176 (value_add, value_sub): use find_size_for_pointer_math.
8178 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8180 * linux-low.c (linux_look_up_symbols): New hook.
8181 (linux_target_ops): Add linux_look_up_symbols.
8182 * remote-utils.c (decode_address): New function.
8183 (look_up_one_symbol): New function.
8184 * server.c (handle_query): Call target look_up_symbols hook.
8185 * server.h (look_up_one_symbol): Add prototype.
8186 * target.h (struct target_ops): Add look_up_symbols hook.
8188 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8190 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8191 override FP_REGNUM with frame->fp. Update copyright.
8192 * parse.c (num_std_regs, std_regs): Delete.
8193 (target_map_name_to_register): Do not search std_regs. Update
8194 function description.
8195 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8196 declarations. Update copyright.
8199 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8201 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8202 after the last symbol in a block.
8204 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8206 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8207 is non zero as a found symbol.
8209 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8211 * findvar.c: Include "builtin-regs.h".
8212 (value_of_register): Call value_of_builtin_reg when applicable.
8213 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8214 (target_map_name_to_register): Call
8215 builtin_reg_map_name_to_regnum.
8216 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8217 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8218 (builtin_regs_h): Define.
8219 (builtin-regs.o): New target.
8220 (findvar.o): Add $(builtin_regs_h).
8221 * builtin-regs.c, builtin-regs.h: New files.
8222 * std-regs.c: New file.
8223 Partial fix for PR gdb/251.
8225 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8227 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8228 it's no longer required.
8230 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8232 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8234 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8236 From Jimi X <jimix@watson.ibm.com>:
8237 * rs6000-tdep.c (rs6000_software_single_step): Use
8238 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8239 and size. Use target_insert_breakpoint() and
8240 target_remove_breakpoint() to insert and remove breakpoints
8241 instead of explicit memory reads and writes.
8243 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8245 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8246 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8247 ELF_OBJECT_FORMAT ifdef.
8249 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8251 From Jimi X <jimix@watson.ibm.com>:
8252 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8254 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8256 From Jimi X <jimix@watson.ibm.com>:
8257 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8258 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8260 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8262 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8263 s/asprintf/xasprintf/.
8264 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8266 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8268 I believe Jeff Law denies responsability for this one:
8269 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8270 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8271 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8272 Work-around for PR gdb/366.
8274 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8276 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8277 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8278 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8280 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8282 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8283 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8286 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8288 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8291 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8293 * README (Reporting Bugs in GDB): Document the bug web page as the
8294 prefered way of submitting bugs.
8297 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8299 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8301 * gdbarch.h, gdbarch.c: Re-generate.
8303 2002-04-07 Andreas Schwab <schwab@suse.de>
8305 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8306 buffer to regcache_collect.
8308 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8310 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8311 * gdbarch.c, gdbarch.h: Re-generate.
8313 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8315 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8316 declaration. Fix -Werror.
8318 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8320 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8321 * gdbarch.c: Regenerate.
8323 2002-04-05 Michael Snyder <msnyder@redhat.com>
8325 * breakpoint.c (clear_command): Rewrite middle section to
8326 combine two loops with identical control conditions.
8327 Add a cleanup to eliminate a memory leak.
8328 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8330 2002-04-05 H.J. Lu (hjl@gnu.org)
8332 * solib-svr4.c (bkpt_names): Add "__start".
8334 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8336 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8337 as test for 64 bit target.
8339 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8341 * h8500-tdep.c (h8500_write_fp): Delete function.
8342 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8343 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8344 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8346 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8347 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8349 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8350 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8351 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8352 (d10v_write_fp): Delete function.
8353 * inferior.h (write_fp, generic_target_write_fp): Delete
8355 * regcache.c (generic_target_write_fp): Delete function.
8356 (write_fp): Delete function.
8357 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8358 * gdbarch.h, gdbarch.c: Regenerate.
8359 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8360 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8361 (sparc64_write_fp): Delete declaration.
8362 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8363 (h8500_write_fp): Delete declaration.
8365 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8367 * sparc-tdep.c (sparc64_write_fp): Delete.
8368 (sparc_push_dummy_frame): Replace write_fp call with code to store
8370 (sparc_gdbarch_init): Do not initialize write_fp.
8372 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8374 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8377 2002-03-29 Jim Blandy <jimb@redhat.com>
8379 * stack.c (get_selected_block): Add new argument `addr_in_block',
8380 used to return the exact code address we used to select the block,
8382 * blockframe.c (get_frame_block, get_current_block): Same.
8383 * frame.h (get_frame_block, get_current_block,
8384 get_selected_block): Update declarations.
8385 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8386 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8388 2002-04-05 Michael Snyder <msnyder@redhat.com>
8390 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8393 2002-04-05 J. Brobecker <brobecker@gnat.com>
8395 * utils.c (xfullpath): New function.
8396 * defs.h (xfullpath): Add declaration.
8397 * source.c (openp): Use xfullpath in place of gdb_realpath to
8398 avoid resolving the basename part of filenames when the
8399 associated file is a symbolic link. This fixes a potential
8400 inconsistency between the filenames known to GDB and the
8401 filenames it prints in the annotations.
8402 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8403 to be able to match a filename with either the real filename, or
8404 the name of any symbolic link to this file.
8405 (lookup_partial_symtab): Ditto.
8407 2002-04-04 Michael Snyder <msnyder@redhat.com>
8409 * breakpoint.c: Add support for hardware breakpoints in overlays.
8410 (overlay_events_enabled): New state variable.
8411 (insert_breakpoints): Use overlay_events_enabled to decide
8412 whether to attempt to set a breakpoint at the overlay load addr.
8413 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8414 (remove_breakpoint): Use overlay_events_enabled to decide
8415 whether breakpoints need to be removed from overlay load addr.
8416 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8417 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8418 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8419 disable_overlay_breakpoints): Update overlay_events_enabled.
8421 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8423 * dwarf2read.c (struct function_range): New.
8424 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8425 (check_cu_functions): New.
8426 (read_file_scope): Initialize global function lists.
8427 Call dwarf_decode_line after processing children.
8428 (read_func_scope): Add to global function list.
8429 (dwarf_decode_lines): Call check_cu_functions everywhere
8430 record_line is called. Call record_line with a linenumber
8431 of 0 to mark sequence ends.
8433 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8435 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8436 change sync with glibc.
8438 2002-04-03 Jim Blandy <jimb@redhat.com>
8440 * configure.in: Call AC_C_INLINE.
8441 * configure: Regenerated.
8443 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8445 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8446 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8448 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8450 * NEWS: Mention gcore support on FreeBSD/i386.
8452 * fbsd-proc.c: New file.
8453 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8454 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8456 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8459 2002-03-29 Jim Blandy <jimb@redhat.com>
8461 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8462 unescaped newlines in string literals, but newer ones don't. So
8465 2002-03-26 Michael Snyder <msnyder@redhat.com>
8466 Andrew Cagney <cagney@redhat.com>
8468 * cli/cli-dump.c: New file. Dump memory to file,
8469 restore file to memory.
8470 * cli/cli-dump.h: New file.
8471 * Makefile.in: Add rules, dependencies for cli-dump.o.
8472 * NEWS: Mention new commands.
8474 2002-03-28 Michael Snyder <msnyder@redhat.com>
8476 * symfile.c (symbol_file_add): Move test for null symbols to later.
8478 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8480 From veksler at il.ibm.com:
8481 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8482 the xstrduped original path.
8485 2002-03-27 Michael Snyder <msnyder@redhat.com>
8487 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8488 * infcmd.c (_initialize_infcmd): Ditto.
8489 * language.c (_initialize_language): Ditto.
8490 * symfile.c (_initialize_symfile): Ditto.
8491 * top.c (_init_main): Ditto.
8492 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8494 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8496 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8497 vector registers handling.
8498 (skip_prologue): Handle new AltiVec instructions. Fill in new
8499 fields of frame data.
8500 (frame_get_saved_regs): Fill in information for AltiVec registers.
8502 2002-03-27 Jim Blandy <jimb@redhat.com>
8504 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8505 a function; leave this macro here to invoke that function.
8506 (symbol_init_mangled_name): Declaration for that function.
8507 * symtab.c (symbol_init_mangled_name): New function.
8509 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8511 * valarith.c: Replace strerror with safe_strerror.
8512 * tracepoint.c: Ditto.
8514 * go32-nat.c: Ditto.
8518 2002-03-27 Andreas Schwab <schwab@suse.de>
8520 * event-top.c (command_line_handler): Remove useless if.
8522 2002-03-27 Andreas Jaeger <aj@suse.de>
8524 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8527 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8529 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8530 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8531 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8532 (x86_64_linux_dr_get_status, supply_gregset),
8533 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8534 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8535 (x86_64_register_info_table): Add.
8536 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8537 (x86_64_register_raw_size, x86_64_register_virtual_type),
8538 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8539 general x86_64_register_info_table.
8540 (i386_gdbarch_init): gdbarch_register_bytes is now set
8541 dynamicaly during initialization.
8542 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8543 * gdbserver/linux-x86-64-low.c: Ditto.
8545 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8547 * gdbserver/server.c (main): Call target_signal_to_host_p
8548 and target_signal_to_host on signals received from the remote.
8549 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8550 target_signal_from_host on signals sent to the remote.
8551 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8552 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8554 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8556 * signals/signals.c: Include "server.h" in gdbserver build.
8557 (target_signal_from_name): Don't use STREQ.
8558 (_initialize_signals): Likewise. Don't include function in
8561 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8563 * signals.c: Moved to...
8564 * signals/signals.c: Here.
8565 * Makefile (signals.o): Update.
8567 2002-03-26 Jeff Law (law@redhat.com)
8569 * somread.c (som_symtab_read): Remove some commented out code and
8570 updated related comments. Do not set the minimal symbol table to
8571 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8572 in a dynamic executable.
8573 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8574 where we are unable to find the minimal symbol for the given
8577 2002-03-25 Jeff Law (law@redhat.com)
8579 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8581 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8583 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8585 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8587 * command.h: Update copyright.
8588 (struct cmd_list_element): Replace definition with opaque
8590 (enum cmd_types): Document that it will eventually be moved to
8592 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8593 (MALLOCED_REPLACEMENT): Delete macro.
8594 * Makefile.in (cli_decode_h): Add $(command_h).
8595 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8596 * top.c: Include "cli/cli-decode.h".
8597 * completer.c: Include "cli/cli-decode.h".
8598 * maint.c: Include "cli/cli-decode.h".
8599 * cli/cli-decode.h: Include "command.h".
8600 (enum command_class): Delete.
8601 (enum cmd_types): Comment out.
8602 (enum cmd_auto_boolean): Delete.
8603 (enum var_types): Delete.
8605 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8607 * cli/cli-decode.c: Include "gdb_assert.h".
8608 (add_set_or_show_cmd): New static function.
8609 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8610 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8611 all fields, such as func, from the set command.
8613 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8615 * MAINTAINERS (sh-elf): Change warning flag to -w.
8617 2002-03-23 Andrew Cagney <cagney@redhat.com>
8619 * defs.h (error): Add printf format attribute.
8620 * thread-db.c (thread_from_lwp): Fix error format string.
8621 * stack.c (parse_frame_specification): Ditto.
8622 * cli/cli-decode.c (undef_cmd_error): Ditto.
8623 * scm-lang.c (scm_lookup_name): Ditto.
8624 * tracepoint.c (trace_error): Ditto.
8625 * remote-utils.c (usage): Ditto.
8626 * remote.c (compare_sections_command): Ditto.
8629 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8631 * gdbtypes.c (append_composite_type_field): New function.
8632 (init_composite_type): New function.
8633 * gdbtypes.h (append_composite_type_field): Declare.
8634 (init_composite_type): Ditto.
8636 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8638 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8640 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8641 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8642 structure returning convention for SYSV ABI case, but not
8643 for GNU/Linux, FreeBSD, or NetBSD.
8645 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8647 * symtab.h (lookup_block_symbol): Add mangled_name argument
8650 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8651 with new mangled_name argument.
8652 * linespec.c (decode_line_1): Likewise.
8653 * valops (value_of_this): Likewise.
8654 * symtab.c (lookup_transparent_type): Likewise.
8655 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8656 (lookup_symbol): If we are given a mangled name, pass it down
8657 to lookup_symbol_aux.
8658 (lookup_block_symbol): If we are given a mangled name to check
8659 against, only return symbols which match it.
8661 2002-03-22 Christopher Faylor <cgf@redhat.com>
8663 * win32-nat.c (child_create_inferior): Check for proper shell to use
8664 here, in case the user changes it on the fly.
8665 (_initialize_inftarg): Remove shell path considerations.
8667 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8669 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8670 for gdbarch_max_register_raw_size and max_register_virtual_size.
8671 Adjust copyright year.
8673 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8675 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8676 in a function to cover the entire beginning of the function
8677 as well if it does not already.
8679 2002-03-21 Tom Rix <trix@redhat.com>
8681 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8682 (rs6000_ptrace64): Renamed from ptrace64.
8684 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8686 * gdbserver/remote-utils.c (remote_open): Don't call
8687 getprotobyname, we're all using TCP here so just use
8689 * gdbserver/gdbreplay.c (remote_open): Ditto.
8691 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8693 * regcache.c (_initialize_regcache): No need to call
8694 build_regcache() at this time; it gets called whenever
8695 the gdbarch changes.
8697 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8699 * sparc-nat.c: Include sys/param.h where possible.
8701 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8704 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8705 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8706 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8708 * stabsread.c (rs6000_builtin_type): Likewise.
8709 (read_sun_floating_type): Likewise.
8711 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8713 * stabsread.c (read_member_functions): Remove skip code for duplicate
8714 constructor/destructor methods. Use standard parsing for these
8715 methods and just do not chain them to the list of methods after
8718 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8720 * coffread.c: Remove redundant static declarations. Replace
8721 occurrences of `PTR' with `void *'.
8722 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8723 * top.h (quit_cover): Likewise.
8724 * defs.h (catch_errors): Likewise.
8726 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8728 * defs.h (XMALLOC): Define.
8729 * gdb-events.sh (XMALLOC): Delete macro.
8730 * gdb-events.c, gdb-events.h: Regenerate.
8731 * gdbarch.sh (XMALLOC): Delete macro.
8732 * gdbarch.c: Regenerate.
8733 * serial.c (XMALLOC): Delete macro.
8734 * ui-file.c (XMALLOC): Ditto.
8735 * ser-unix.h (XMALLOC): Ditto.
8736 * sh-tdep.c (XMALLOC): Ditto.
8737 * ui-out.c (XMALLOC): Ditto.
8738 * utils.c (XMALLOC): Ditto.
8739 * i386-tdep.c (XMALLOC): Ditto.
8740 * gdb-events.c (XMALLOC): Ditto.
8741 * d10v-tdep.c (XMALLOC): Ditto.
8742 * cli-out.c (XMALLOC): Ditto.
8744 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8745 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8746 * ui-file.c, ui-out.c: Ditto.
8748 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8750 * command.h (struct cmd_list_element): Add field context.
8751 (set_cmd_context, get_cmd_context): Declare.
8752 * cli/cli-decode.h: Ditto.
8753 * cli/cli-decode.c (get_cmd_context): New function.
8754 (set_cmd_context): New function.
8755 (add_cmd): Initialize context.
8756 Part of fixing PR gdb/145 and PR gdb/146.
8758 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8760 * cli/cli-decode.c (cmd_type): New function.
8761 * command.h (cmd_type): Declare.
8762 * infrun.c (set_schedlock_func): Call function cmd_type.
8763 * kod.c (kod_set_os): Call cmd_type.
8764 * cris-tdep.c (cris_version_update): Use function cmd_type.
8765 (cris_mode_update, cris_abi_update): Ditto.
8767 * command.h: (execute_cmd_post_hook): Declare.
8768 (execute_cmd_pre_hook): Declare.
8769 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8770 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8771 functions. Execute pre/post hook while ensuring that afterwords
8773 * top.c (execute_command): Use execute_cmd_post_hook, and
8774 execute_cmd_pre_hook to execute pre/post commands.
8775 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8777 (hook_stop_stub): Call execute_cmd_pre_hook.
8779 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8781 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8782 set'' and this leads to a core dump. Move xstrdup of
8783 operating_system to after check that it is not NULL.
8785 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8787 * kod.c (kod_set_os): Remove unnecessary check that
8788 ``command->type'' is set_cmd.
8790 * valprint.c (set_input_radix): Use input_radix.
8791 (set_output_radix): Use output_radix.
8792 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8795 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8797 * value.h (struct value): Delete field ``substring_addr''. Change
8798 aligner fields to force_doublest_align, force_longest_align,
8799 force_core_addr_align and force_pointer_aligh.
8801 * value.h (struct value): Fix typo in above change.
8803 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8805 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8806 to fix internal_error from ``maintenance print architecture''.
8808 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8810 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8811 for gcc versions after gcc-2.8.1.
8813 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8815 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8816 for method resolution. Restore adjustment of ``this'' pointer after
8817 calling value_struct_elt, which was accidentally removed during the
8820 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8822 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8824 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8826 * value.h (value_of_register): Update.
8828 2002-03-14 Richard Henderson <rth@redhat.com>
8830 * configure.in: Detect declaration for canonicalize_file_name.
8831 * utils.c (canonicalize_file_name): Declare, if needed.
8832 (gdb_realpath): Prefer realpath if available and usable.
8833 * config.in, configure: Rebuild.
8835 2002-03-14 Richard Henderson <rth@redhat.com>
8837 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8838 a constant array bound.
8840 * MAINTAINERS: Add myself to write-after-approval.
8842 2002-03-14 Michael Snyder <msnyder@redhat.com>
8844 * symfile.c (syms_from_objfile): Return immediately if no syms.
8845 (symbol_file_add): Return immediately if no syms.
8846 (find_sym_fns): Return immediately if no syms.
8848 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8850 * gdbserver/remote-util.c (remote_open): Print remote-side's
8851 IP address when remote debugging over the network.
8853 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8855 * config/sparc/fbsd.mh: Fix copyright.
8856 * config/sparc/fbsd.mt: Likewise.
8858 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8860 * MAINTAINERS: Fix typo in name of gdb warnings option.
8861 (x86-64): Fix formating so that this can be parsed by awk.
8863 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8865 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8866 * defs.h: Include "gdb/signals.h".
8867 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8869 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8871 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8872 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8875 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8876 Don Howard <dhoward@redhat.com>
8878 * mips-tdep.c (ST0_FR): Define.
8879 (mips2_fp_compat): New function, temporarily disabled.
8880 (mips_read_fp_register_single): New function.
8881 (mips_read_fp_register_double): New function.
8882 (mips_print_register): Use them.
8883 (do_fp_register_row): Likewise.
8885 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8887 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8890 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8892 * stabsread.c (read_member_functions): Fix is_stub test for
8893 static member functions, improve comment.
8895 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8897 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8898 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8899 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8900 commands that set boolean values.
8901 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8902 (arm_rdi_resume): Always initialize PC.
8903 (arm_rdi_open): Don't use rslt as a boolean.
8904 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8905 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8906 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8907 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8909 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8911 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8912 * configure: Rebuilt.
8914 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8916 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8917 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8919 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8921 * cli/cli-decode.c (set_cmd_completer): New function.
8922 * command.h (set_cmd_completer): Declare.
8923 * cli/cli-decode.h (set_cmd_completer): Ditto.
8925 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8926 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8927 * win32-nat.c (_initialize_inftarg): Ditto.
8928 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8929 * proc-api.c (_initialize_proc_api): Ditto.
8930 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8931 * source.c (_initialize_source): Ditto.
8932 * exec.c (_initialize_exec): Ditto.
8933 * solib.c (_initialize_solib): Ditto.
8934 * top.c (init_main): Ditto.
8935 * tracepoint.c (_initialize_tracepoint): Ditto.
8936 * symfile.c (_initialize_symfile): Ditto.
8937 * printcmd.c (_initialize_printcmd): Ditto.
8938 * infcmd.c (_initialize_infcmd): Ditto.
8939 * corefile.c (_initialize_core): Ditto.
8941 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8943 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8945 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8947 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8949 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8951 * NEWS: Update headings, 5.2 has branched.
8953 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8955 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8956 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8957 (register_addr, REGISTER_RAW_SIZE): Likewise.
8958 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8959 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8961 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8963 * MAINTAINERS (x86-64): Add myself.
8964 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8965 changed value_ptr -> struct value *
8967 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8969 * configure.host (sparc64-*-freebsd): Add.
8970 * configure.tgt: Likewise.
8971 * config/sparc/fbsd.mh: New file.
8972 * config/sparc/fbsd.mt: Likewise.
8973 * config/sparc/nm-fbsd.h: Likewise.
8974 * config/sparc/tm-fbsd.h: Likewise.
8976 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8978 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8979 regformats/reg-s390x.dat.
8981 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8983 * utils.c: Add FIXME explaining true/false problem.
8985 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8987 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8989 2002-02-28 Michael Chastain <mec@shout.net>
8991 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8993 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8995 * gdbserver/linux-s390-low.c: New file.
8996 * regformats/reg-s390.dat: New file.
8997 * regformats/reg-s390x.dat: New file.
8998 * gdbserver/configure.srv: Add S/390.
8999 * gdbserver/Makefile.in: Add S/390.
9000 * configure.tgt: Enable gdbserver for S/390.
9002 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9004 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9005 first line of the doc string for "info dos", except at the end of
9006 the sentence, since the short help stops at the first period.
9008 2002-02-28 Jason Merrill <jason@redhat.com>
9010 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9012 2002-02-27 Fred Fish <fnf@redhat.com>
9014 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9015 comment (dumy -> dummy).
9017 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9019 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9021 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9023 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9025 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9027 * gdbserver/acconfig.h: New file.
9028 * gdbserver/i387-fp.c: New file.
9029 * gdbserver/i387-fp.h: New file.
9030 * gdbserver/linux-x86-64.c: New file.
9031 * regformats/reg-x86-64.dat: New file.
9032 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9033 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9034 * gdbserver/configure.in: Add support for regsets.
9035 * gdbserver/config.in: Regenerate.
9036 * gdbserver/configure: Regenerate.
9037 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9038 * gdbserver/linux-low.h: New file.
9039 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9041 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9042 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9043 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9044 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9045 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9046 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9047 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9048 "i387-fp.h". Add PTRACE_GETREGS and friends.
9049 * gdbserver/regcache.c (supply_register): New function.
9050 (supply_register_by_name): New function.
9051 (collect_register): New function.
9052 (collect_register_by_name): New function.
9054 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9056 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9057 (config.status): Add configure.srv dependency.
9058 (server_h): Add config.h dependency.
9060 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9062 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9063 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9064 * gdbserver/configure.srv: Change i386-*-linux* to use
9067 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9069 * x86-64-tdep.c: Re-indent. Update copyright date.
9071 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9073 From Michal Ludvig <mludvig@suse.cz>:
9074 * x86-64-tdep.c (value.h): Delete.
9075 (gdb_assert.h): Include.
9076 (x86_64_register_convert_to_virtual,
9077 x86_64_register_convert_to_raw ): Add check which lets only
9078 floating-point values to be converted.
9079 (value_push): Delete.
9080 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9081 (i386_gdbarch_init): Number of register_bytes fixed.
9083 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9085 * MAINTAINERS: Add x86-64 target.
9087 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9089 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9090 * osfsolib.c (solib_map_sections): Ditto.
9091 * irix5-nat.c (solib_map_sections): Ditto.
9092 * corelow.c (gdb_check_format): Ditto.
9093 * symfile.c (symfile_bfd_open): Ditto.
9094 * solib.c (solib_map_sections): Ditto.
9097 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9099 * remote.c (_initialize_remote): By default, disable ``e'' and
9100 ``E'' step out-of-range packets.
9102 2002-02-26 Andreas Schwab <schwab@suse.de>
9104 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9105 m68k_linux_frame_saved_pc.
9106 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9108 (SIGCONTEXT_PC_OFFSET): Remove.
9109 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9110 m68k_linux_sigtramp_saved_pc): New functions.
9111 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9112 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9113 (UCONTEXT_PC_OFFSET): Define.
9114 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9115 non-RT and RT signal trampolines.
9117 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9119 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9120 (TARGET_NBPG, STACK_END_ADDR): Delete
9121 (VARIABLES_INSIDE_BLOCK): Delete.
9123 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9125 * utils.c (perror_with_name): Make string parameter constant.
9126 (print_sys_errmsg): Ditto.
9128 * defs.h (perror_with_name): Update.
9129 (print_sys_errmsg): Update.
9132 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9134 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9135 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9137 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9139 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9140 if it already matches the current architecture from the exec file.
9141 Include arch-utils.h for gdbarch_info_init prototype.
9142 * Makefile.in (rs6000-nat.o): Update dependencies.
9144 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9146 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9147 list of exported variables.
9149 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9151 * gdbserver/configure.srv: New file.
9152 * gdbserver/configure.in: Use configure.srv instead
9153 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9155 * gdbserver/configure: Regenerated.
9156 * gdbserver/terminal.h: New file.
9157 * gdbserver/Makefile.in: Update for configure changes. Remove
9158 more unneeded include paths.
9160 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9162 From wiz at danbala:
9163 * config/sparc/tm-sp64.h: Fix grammar and typos.
9166 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9168 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9169 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9170 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9171 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9172 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9173 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9174 * s390-tdep.c: Ditto.
9175 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9176 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9177 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9178 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9179 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9180 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9181 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9182 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9183 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9184 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9187 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9189 * lin-thread.c: Delete file.
9190 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9191 to gdb_proc_service.h.
9192 * configure: Re-generate.
9194 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9195 * serial.c (serial_open): Delete check for "ocd".
9198 * Makefile.in (linux-thread.o): Delete target.
9199 * linux-thread.c: Delete file.
9201 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9202 renamed SH files to be consistent.
9204 * symtab.c (sort_search_symbols): Use xfree.
9206 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9208 * arm-linux-tdep.c (arm_linux_init_abi): Register
9209 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9210 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9211 definition with undef, since we don't want the sysvr4 definition.
9212 (SKIP_TRAMPOLINE_CODE): Likewise.
9214 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9216 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9218 * configure.in: (AC_CHECK_FUNCS) Added test for
9219 canonicalize_file_name Regenerated.
9220 * config.in, configure: Regenerated.
9221 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9222 defined use canonicalize_file_name.
9224 2002-02-23 Michael Chastain <mec@shout.net>
9226 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9228 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9230 * README: Remove references to cygnus.com.
9231 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9232 dot com'' form. Remove references to cygnus.com and sourceware.
9234 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9236 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9237 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9238 1003.1-2001 no longer allows "head -1".
9239 * gdb/Makefile.in (version.c): Likewise.
9240 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9241 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9242 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9244 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9246 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9247 * command.h (cmd_cfunc_eq): Declare.
9248 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9250 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9251 ``struct cmd_list_element *''.
9252 * cli/cli-cmds.c (is_complete_command): Update. Use
9254 * top.c (execute_command): Pass the command to
9255 is_complete_command.
9256 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9258 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9260 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9261 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9262 architecture defines.
9263 * s390-tdep.c (s390_gdbarch_init): Likewise.
9265 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9267 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9268 (arm_linux_push_arguments): Likewise.
9269 (arm_linux_init_abi): Register them. Also register linux-specific
9271 (find_minsym_and_objfile): Use strcmp, not STREQ.
9272 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9273 (arm_linux_call_dummy_words): Delete declaration.
9274 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9275 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9277 (LOWEST_PC): Delete.
9279 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9281 * maint.c (print_section_info): Do not prepend `0x' to filepos
9282 output, it will be handled by local_hex_string_custom.
9284 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9286 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9287 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9288 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9290 2002-02-22 Jim Blandy <jimb@redhat.com>
9292 Indicate that the bcache functions don't change the strings
9294 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9295 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9297 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9299 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9301 2002-02-21 Christopher Faylor <cgf@redhat.com>
9303 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9304 find the complete path to a loaded DLL.
9306 2002-02-21 Fred Fish <fnf@redhat.com>
9308 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9309 that marks the end of the range of a function, enter a line number
9310 entry that has a line number of zero and a PC offset that matches
9311 the end of the function. This starts a range of PC's for which no
9312 line number information is known.
9313 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9314 PC's for which no line number info is found (line number is zero)
9315 then we didn't find any valid line information.
9316 * symtab.h: Document use of zero line number entry.
9318 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9320 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9321 (have_ptrace_getvrregs): Define for run time checks.
9322 (gdb_vrregset_t): New type for Altivec register handling.
9323 (fetch_register, store_register): Fetch/store altivec register
9325 (fetch_altivec_register, store_altivec_register): New functions.
9326 (supply_vrregset, fill_vrregset): New functions.
9327 (fetch_altivec_registers, store_altivec_registers): New functions.
9328 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9331 2002-02-21 Jiri Smid <smid@suse.cz>
9333 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9335 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9337 * Makefile.in (armnbsd-nat.o): Update dependencies.
9338 * armnbsd-nat.c (supply_gregset): New function. Common code to
9339 supply the integer register set.
9340 (supply_fparegset): New function. Similar for FPA registers.
9341 (fetch_regs, fetch_fp_regs): Use them.
9342 (fetch_core_registers): Likewise.
9343 (fetch_elfcore_registers): New function.
9344 (arm_netbsd_elfcore_fns): New core-file type specification.
9345 (_initialize_arm_netbsd_nat): Register it.
9347 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9349 * armnbsd-nat.c: Include gdbcore.h.
9350 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9351 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9352 'void' to declaration, to shut up ARI.
9353 (fetch_core_registers): Make static. Rewrite using supply_register.
9354 (arm_netbsd_core_fns): New core-file type specification.
9355 (_initialize_arm_netbsd_nat): New function.
9357 2002-02-21 Christopher Faylor <cgf@redhat.com>
9359 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9362 2002-02-20 Christopher Faylor <cgf@redhat.com>
9364 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9367 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9369 * jv-exp.y (parse_number): Change type of implicit longs
9370 to builtin_type_uint64.
9372 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9374 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9375 to be an integer instead of a `union wait'.
9377 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9379 * mips-linux-nat.c: Call the operating system GNU/Linux.
9380 * mips-linux-tdep.c: Likewise.
9381 * mips-tdep.c: Likewise.
9383 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9386 * jv-exp.y (parse_number): Handle 64-bit integers.
9388 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9390 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9391 AC_STDC_HEADERS to AC_HEADER_STDC.
9392 * gdbserver/configure: Regenerated.
9394 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9396 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9398 * sparc-tdep.c (get_longjmp_target): Likewise.
9400 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9402 * News: Add news about ARM and Multi-arch. Mention the new target
9405 2002-02-19 Jim Blandy <jimb@redhat.com>
9407 * stabsread.c (error_type_complaint): Improve error message.
9409 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9411 * gdbserver/README: Update documentation.
9412 * gdbserver/configure.in: Update configury to match documentation.
9413 * gdbserver/Makefile.in: Likewise.
9414 * gdbserver/configure: Regenerated.
9415 * gdbserver/aclocal.m4: New file, generated by aclocal.
9416 * gdbserver/config.in: New file, generated by autoheader.
9418 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9420 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9423 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9425 * arm-tdep.h (enum arm_float_model): New enum.
9426 (struct gdbarch_tdep): Add fp_model.
9427 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9428 up floating-point conversions until we know the floating-point model
9429 in use by the inferior. Don't complain about being unable to
9430 determine the ABI of the inferior when we don't have one.
9431 (arm_extract_return_value): Support different floating-point models.
9432 (arm_store_return_value): Likewise.
9433 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9435 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9437 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9439 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9440 of ``current_gdbarch''.
9442 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9444 * armnbsd-nat.c : ANSIfy all function declarations.
9445 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9446 (fetch_inferior_registers): Re-implement in terms of above.
9447 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9448 (store_inferior_registers): Re-implement in terms of above.
9450 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9452 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9454 * arm-linux-tdep.c: Likewise.
9455 * config/arm/tm-linux.h: Likewise.
9457 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9459 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9460 * config/arm/nbsd.mt (TM_FILE): Delete.
9461 * config/arm/tm-nbsd.h: Delete.
9463 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9465 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9466 Initialize CALL_DUMMY_LENGTH.
9468 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9470 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9472 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9473 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9474 defines one thing and that is incorrect for this port.
9475 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9477 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9479 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9481 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9483 * win32-nat.c (display_selector): New function. Displays information
9484 about the information returned by GetThreadSelectorEntry API function.
9485 (display_selectors): New function. Displays the infomation of
9486 the selector given as argument, or of CS, DS ans FS selectors
9487 if no argument is given.
9488 ( _initialize_inftarg): Add "w32" as info prefix command.
9489 Add "info w32 selector" as command calling display_selectors.
9491 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9493 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9494 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9497 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9499 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9501 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9503 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9504 (arm_fix_call_dummy): Call it.
9505 (arm_call_dummy_breakpoint_offset): Delete.
9506 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9507 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9509 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9511 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9512 Default to func_frame_chain_valid.
9513 * gdbarch.h, gdbarch.c: Re-generate.
9514 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9516 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9518 * ppc-linux-nat.c: Update copyright.
9519 (fetch_register, store_register): Add tid parameter, don't compute
9521 (fetch_ppc_registers, store_ppc_registers): Add tid
9522 parameter. Pass it along to callees.
9523 (fetch_inferior_registers, store_inferior_registers): Compute tid
9524 here, and pass it to calleed functions.
9525 (fill_gregset, supply_fpregset): Clean up formatting.
9527 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9529 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9530 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9532 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9534 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9535 * gdbarch.c gdbarch.h: Regenerate.
9536 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9538 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9539 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9540 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9542 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9543 * arm-tdep.c (arm_get_longjmp_target): New function.
9544 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9545 this to a positive value register arm_get_longjmp_target as the
9547 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9548 (arm_linux_init_abi): Set up longjmp description in tdep.
9549 * armnbsd-nat.c (get_longjmp_target): Delete.
9550 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9551 description in tdep.
9552 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9553 (get_longjmp_target): Delete declaration.
9554 (GET_LONGJMP_TARGET): Delete.
9555 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9556 (GET_LONGJMP_TARGET): Delete.
9558 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9560 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9561 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9562 of ``current_gdbarch''.
9564 2002-02-17 Tom Tromey <tromey@redhat.com>
9566 * cli/cli-cmds.c (compare_strings): New function.
9567 (complete_command): Only print each unique item once.
9568 * completer.h (complete_line): Declare.
9569 * completer.c (complete_line): New function.
9570 (line_completion_function): Use it.
9572 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9574 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9575 * gdbarch.h, gdbarch.c: Re-generate.
9577 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9579 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9581 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9583 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9584 * valops.c (value_arg_coerce): Don't take the address of a reference
9585 to convert an argument to a reference.
9587 2002-02-15 Christopher Faylor <cgf@redhat.com>
9589 * win32-nat.c (get_image_name): New function.
9590 (handle_load_dll): Use get_image_name function.
9591 (get_child_debug_event): Avoid registering debug events until possibly
9592 execed process is started.
9593 (child_create_inferior): Allow invocation via shell so that command
9594 line redirection, etc. works ok.
9595 (_initialize_inftarg): Add new command: "set shell" to control whether
9596 a shell is used to start a process.
9598 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9600 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9601 instead of find_register_by_number.
9602 (cannot_store_register): Likewise.
9604 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9606 * dwarf2read.c: Replace fprintf (stderr, ...) by
9607 fprintf_unfiltered (gdb_stderr, ...).
9609 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9611 * gdbserver/gdbserver.1: Document --attach.
9613 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9615 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9617 * arm-tdep.c (arm_default_arm_le_breakpoint)
9618 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9619 (arm_default_thumb_be_breakpoint): New. Initialize them from
9620 traditional breakpoint defines.
9621 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9622 (arm_gdbarch_init): Initialize new breakpoint variables.
9623 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9624 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9625 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9626 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9628 (arm_netbsd_init_abi_common): ... here; new function.
9629 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9630 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9631 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9632 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9634 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9636 * arm-tdep.h (enum arm_abi): New enum.
9637 (struct gdbarch_tdep): New structure.
9638 (LOWEST_PC): Provide a default.
9639 (arm_gdbarch_register_os_abi): Declare new function.
9640 * arm-tdep.c (arm_abi_names): New array.
9641 (process_note_abi_tag_sections): New function.
9642 (get_elfosabi): New function.
9643 (arm_gdbarch_register_os_abi): New function.
9644 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9645 support for that ABI has been built in, then call the appropriate
9646 configuration routine. Use gdbarch_num_regs() to get the number
9648 (arm_dump_tdep): New function.
9649 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9650 place-holder functions.
9651 (_initialize_arm_tdep): Register them.
9652 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9654 * armnbsd-tdep.c: New file.
9655 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9656 * config/arm/nbsd.mt (TDEPFILES): Add it.
9657 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9659 * armnbsd-nat.c: Include regcache.h.
9660 * Makefile.in (armnbsd-nat.o): Update dependency list.
9662 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9664 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9666 * gdbserver/Makefile.in: Fix typos in target rules.
9668 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9670 Fix part of PR gdb/267.
9671 * linespec.c (find_methods): Handle constructors specially for now.
9673 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9675 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9677 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9678 standard_coerce_float_to_double().
9680 2002-02-14 Christopher Faylor <cgf@redhat.com>
9682 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9685 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9687 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9688 find_variant_by_name, because it confuses the multiarch
9689 framework. Return NULL if there isn't an architecture with the
9690 user supplied name, instead of forcing a different one without
9691 recording the change with the multiarch machinery.
9692 (find_variant_by_name): Delete.
9694 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9696 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9697 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9699 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9701 * stack.c (print_frame_info_base): When calling
9702 print_frame_info_listing_hook, set current_source_symtab.
9704 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9706 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9707 and remove unused $(INCLUDE_DIR).
9708 Add regcache.c to OBS.
9709 Add generated register protocol files to clean target.
9710 Update dependencies for new objects, obsolete old target code.
9712 * gdbserver/linux-low.c: Remove all platform-specific code to
9713 new files. Remove various dead code. Update to use regcache
9715 * gdbserver/remote-utils.c (fromhex): Add return statement
9717 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9719 (input_interrupt): Add integer parameter to match prototype
9720 of a signal handler.
9721 (outreg): Use register_data ().
9722 (prepare_resume_reply): Use gdbserver_expedite_regs.
9723 * gdbserver/server.c (main): Dynamically allocate own_buf because
9724 PBUFSIZ is no longer constant. Use registers_to_string () and
9725 registers_from_string ().
9726 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9727 for error (), fatal (), and warning (). Update definition of
9728 PBUFSIZ to use regcache functionality. Add include guard.
9729 * gdbserver/utils.c (fatal): Add missing ``const''.
9730 (warning): New function.
9732 * regformats/regdat.sh: Include "regcache.h" in generated files.
9733 Provide init_registers () function.
9734 * regformats/regdef.h: Add prototype for set_register_cache ().
9737 * gdbserver/linux-arm-low.c: New file.
9738 * gdbserver/linux-i386-low.c: New file.
9739 * gdbserver/linux-ia64-low.c: New file.
9740 * gdbserver/linux-m68k-low.c: New file.
9741 * gdbserver/linux-mips-low.c: New file.
9742 * gdbserver/linux-ppc-low.c: New file.
9743 * gdbserver/linux-sh-low.c: New file.
9745 * gdbserver/regcache.c: New file.
9746 * gdbserver/regcache.h: New file.
9748 * gdbserver/low-linux.c: Removed obsolete file.
9750 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9752 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9753 * config/i386/linux.mt: Likewise.
9754 * config/ia64/linux.mt: Likewise.
9755 * config/m68k/linux.mh: Likewise.
9756 * config/powerpc/linux.mh: Likewise.
9757 * config/mips/linux.mt: Likewise.
9759 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9761 * config/i386/i386lynx.mh: Mark gdbserver variables
9762 as (currently) obsolete for this target.
9763 * config/i386/nbsd.mt: Likewise.
9764 * config/i386/nbsdelf.mt: Likewise.
9765 * config/m32r/m32r.mt: Likewise.
9766 * config/m68k/m68klynx.mh: Likewise.
9767 * config/m68k/nbsd.mt: Likewise.
9768 * config/m68k/sun3os4.mh: Likewise.
9769 * config/mips/vr5000.mt: Likewise.
9770 * config/ns32k/nbsd.mt: Likewise.
9771 * config/pa/hppabsd.mh: Likewise.
9772 * config/pa/hppaosf.mh: Likewise.
9773 * config/powerpc/nbsd.mt: Likewise.
9774 * config/rs6000/rs6000lynx.mh: Likewise.
9775 * config/s390/s390.mt: Likewise.
9776 * config/s390/s390x.mt: Likewise.
9777 * config/sparc/sparclynx.mh: Likewise.
9778 * config/sparc/sun4os4.mh: Likewise.
9779 * config/i386/x86-64linux.mt: Likewise.
9780 * config/sparc/linux.mh: Likewise.
9782 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9784 * configure.tgt: Configure gdbserver only for known working
9785 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9786 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9787 SUBDIRS if it is configured. Update comment for ${nativefile}.
9788 * configure: Regenerated.
9790 2002-02-13 Michael Snyder <msnyder@redhat.com>
9792 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9794 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9795 (default_gcore_mach): Just return 0, work around a problem in bfd.
9796 (default_gcore_target): OK to return NULL if exec_bfd is null.
9797 (make_mem_sec): Use a cast, avoid a warning.
9799 * procfs.c (find_memory_regions_callback): Use a cast instead of
9800 calling host_pointer_to_address (which complains if
9801 sizeof (host pointer) != sizeof (target pointer)).
9802 (procfs_make_note_section): Avoid overflow in psargs string.
9804 * procfs.c (procfs_make_note_section): Make the default
9805 implementation return an error.
9807 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9809 * procfs.c (procfs_make_note_section): Provide a default definition
9810 (for alpha-dec-osf4.0f). Fix typos.
9812 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9814 * linux-proc.c: Add include of regcache.h.
9815 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9817 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9819 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9820 * memattr.c (create_mem_region): Disallow useless empty region.
9821 Regions are half-open intervals, so allow [A..B) [B..C) as
9824 2002-02-13 Michael Chastain <mec@shout.net>
9826 * defs.h: Kill CONST_PTR.
9827 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9828 * c-lang.c (c_builtin_types): Likewise.
9829 * ch-lang.c (ch_builtin_types): Likewise.
9830 * f-lang.c (f_builtin_types): Likewise.
9831 * language.c (unknown_builtin_types): Likewise.
9832 * m2-lang.c (m2_builtin_types): Likewise.
9833 * p-lang.c (pascal_builtin_types): Likewise.
9834 * scm-lang.c (c_builtin_types): Likewise.
9836 2002-02-13 Keith Seitz <keiths@redhat.com>
9838 * arm-tdep.h (arm_get_next_pc): Add declaration.
9840 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9842 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9843 with other related struct-returning functions.
9844 (arm_extract_struct_value_address): New function.
9845 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9846 initialize float_format, double_format and long_double_format as
9847 appropriate to the endianness of the target.
9848 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9849 (arm_use_struct_convention): Delete declaration.
9850 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9852 2002-02-13 Keith Seitz <keiths@redhat.com>
9854 * defs.h (core_addr_to_string_nz): New function.
9856 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9858 Apply missing bits of 2002-01-15 patch.
9859 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9860 (fill_fpregset): Use i387_fill_fsave.
9862 2002-02-12 Keith Seitz <keiths@redhat.com>
9864 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9865 (core_addr_to_string_nz): New function.
9867 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9869 * arm-linux-nat.c: Really include arm-tdep.h.
9870 * config/arm/tm-linux.h (struct type, struct value): Declare.
9872 2002-02-11 Michael Snyder <msnyder@redhat.com>
9874 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9875 (gcore section): Ifdef for Solaris and Unixware only.
9876 (procfs_do_thread_registers): Unixware needs one lwpstatus
9877 per thread (not one prstatus or pstatus).
9878 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9879 not over all gdb threads. For unixware, call elfcore_write_pstatus
9880 once before iterating over threads.
9882 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9884 * arm-tdep.h: New file.
9885 * arm-tdep.c: Include arm-tdep.h.
9886 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9887 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9888 (arm_print_float_info, arm_register_type, convert_to_extended)
9889 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9890 (arm_extract_return_value, arm_register_name): Make static.
9891 (arm_software_single_step): Similarly. Fix types in declaration.
9892 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9893 (arm_store_return_value, arm_store_struct_return): New functions.
9894 (arm_gdbarch_init): Register the above functions. Also register
9895 call_dummy_start_offset, sizeof_call_dummy_words,
9896 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9897 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9898 max_register_virtual_size, register_size. Set up
9899 prologue_cache.saved_regs here, rather than ...
9900 (_initialize_arm_tdep): ... here.
9901 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9903 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9904 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9905 (arm_print_float_info, arm_register_type, convert_to_extended)
9906 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9907 (arm_extract_return_value, arm_register_name): Delete declarations.
9908 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9909 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9910 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9911 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9912 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9913 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9914 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9915 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9916 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9917 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9918 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9919 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9921 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9922 * remote-rdi.c remote-rdp.c: Likewise.
9923 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9924 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9925 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9928 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9929 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9930 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9931 from non-ARM_ prefixed definitions.
9932 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9934 * remote-rdi.c remote-rdp.c: Likewise.
9935 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9937 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9939 * arm-tdep.c (arm_frameless_function_invocation)
9940 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9941 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9942 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9943 (arm_pop_frame, arm_get_next_pc): Make static.
9944 (arm_gdbarch_init): Register above in gdbarch structure.
9945 (arm_read_fp): Renamed from arm_target_read_fp.
9946 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9947 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9948 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9949 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9950 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9951 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9952 (arm_pc_is_thumb_dummy): Delete declarations.
9953 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9954 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9955 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9956 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9958 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9960 * symtab.c (compare_search_syms): New function.
9961 (sort_search_symbols): New function.
9962 (search_symbols): Sort symbols after searching rather than
9965 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9967 * NEWS: Linux -> GNU/Linux.
9969 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9971 * gdbarch.sh: For for level one methods, disallow a definition
9972 when partially multi-arched. Add comments explaining rationale.
9973 * gdbarch.h: Re-generate.
9975 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9977 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9980 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9982 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9984 * gdbarch.c: Re-generate.
9986 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9988 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9989 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9992 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9994 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9996 (PUSH_ARGUMENTS): Switch to using predefault.
9997 * gdbarch.c: Regenerate.
9999 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10001 * valops.c (PUSH_ARGUMENTS): Delete definition.
10002 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10003 partial. Default to default_push_arguments.
10004 * gdbarch.h, gdbarch.c: Regenerate.
10006 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10008 * defs.h (throw_exception): Rename return_to_top_level. Update
10010 * utils.c (error_stream, internal_verror, quit): Ditto.
10011 * top.c (throw_exception, catcher): Ditto.
10012 * sparclet-rom.c (sparclet_load): Ditto.
10013 * remote.c (interrupt_query, minitelnet): Ditto.
10014 * remote-sds.c (interrupt_query): Ditto.
10015 * remote-mips.c (mips_error, mips_kill): Ditto.
10016 * ocd.c (interrupt_query): Ditto.
10017 * monitor.c (monitor_interrupt_query): Ditto.
10018 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10019 * target.h: Update comment.
10021 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10023 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10025 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10026 default_double_format.
10027 * gdbarch.h, gdbarch.c: Re-generate.
10028 * findvar.c (floatformat_unknown): Delete variable definition.
10029 * doublest.h (floatformat_unknown): Delete variable declaration.
10031 2002-02-09 Jim Blandy <jimb@redhat.com>
10033 * stabsread.c (read_type): Add code to parse Sun's syntax for
10034 prototyped function types.
10036 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10038 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10039 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10041 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10043 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10044 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10045 now _initialize_xcoffsolib gets called again and overrides the
10046 commands from solib.c in a native configuration.
10048 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10050 * doublest.c (store_typed_floating): Don't try to return a value.
10053 2002-02-08 Jim Blandy <jimb@redhat.com>
10055 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10056 is prototyped and has no arguments, print its argument list as
10059 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10061 * MAINTAINERS (write-after-approval): Add myself.
10062 (paper-trail): I've escaped!
10064 2002-02-08 Christopher Faylor <cgf@redhat.com>
10066 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10068 (_initialize_check_for_gdb_ini): Ditto.
10070 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10072 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10073 xaprintf -> xasprintf.
10075 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10077 * win32-nat.c: Remove use of printf and sprintf functions.
10079 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10081 * arm-tdep.c (arm_frame_chain_valid): Make static.
10082 (arm_push_arguments): Likewise.
10083 (arm_gdbarch_init): New function.
10084 (_initialize_arm_tdep): Call it.
10085 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10086 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10087 (FRAME_CHAIN_VALID): Delete.
10088 (arm_frame_chain_valid): Delete declaration.
10089 (PUSH_ARGUMENTS): Delete.
10090 (arm_push_arguments): Delete declaration.
10091 (CALL_DUMMY_P): Delete.
10093 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10094 Corinna Vinschen <vinschen@redhat.com>
10096 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10097 on builtin float types.
10099 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10101 * utils.c: Include <curses.h> before "bfd.h".
10102 * tui/tui-hooks.c: Likewise.
10103 * tui/tui.c: Likewise.
10104 * tui/tuiCommand.c: Likewise.
10105 * tui/tuiData.c: Likewise.
10106 * tui/tuiDataWin.c: Likewise.
10107 * tui/tuiDisassem.c: Likewise.
10108 * tui/tuiGeneralWin.c: Likewise.
10109 * tui/tuiIO.c: Likewise.
10110 * tui/tuiLayout.c: Likewise.
10111 * tui/tuiRegs.c: Likewise.
10112 * tui/tuiSource.c: Likewise.
10113 * tui/tuiSourceWin.c: Likewise.
10114 * tui/tuiStack.c: Likewise.
10115 * tui/tuiWin.c: Likewise.
10117 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10119 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10120 to include space for pseudoregs as well. Update loops accordingly.
10121 (sh_fp_frame_init_saved_regs): Ditto.
10122 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10124 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10126 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10127 Add Richard Earnshaw to Arm maintainers.
10129 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10131 * defs.h (warning_begin): Delete declaration.
10133 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10136 2002-02-07 Michael Snyder <msnyder@redhat.com>
10138 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10139 Logic bug, remove misplaced else.
10141 2002-02-07 Klee Dienes <klee@apple.com>
10143 * fork-inferior.c (fork_inferior): Add '!' to the list of
10144 characters that need to be quoted when building a string for the
10145 shell. Quote '!' specifically with a backslash, since CSH chokes
10146 when trying to evaluate "str!str".
10148 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10150 * rdi-share/host.h: Only provide a typedef for bool if it is not
10153 2002-02-04 Michael Snyder <msnyder@redhat.com>
10155 * breakpoint.h (enum bptype): Add new overlay event bp type.
10156 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10158 * breakpoint.c (create_internal_breakpoint): New function.
10159 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10160 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10161 (create_thread_event_breakpoint): Ditto.
10162 (create_solib_event_breakpoint): Ditto.
10163 (create_overlay_event_breakpoint): New function.
10164 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10165 (update_breakpoints_after_exec): Delete and re-initialize
10166 overlay event breakpoints after an exec. Add FIXME comment
10167 about longjmp breakpoint.
10168 (print_it_typical): Ignore overlay event breakpoints.
10169 (print_one_breakpoint): Ditto.
10171 (bpstat_what): Do not stop for overlay event breakpoints.
10172 (delete_breakpoint): Don't delete overlay event breakpoints.
10173 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10174 (breakpoint_re_set): Re-create overlay event breakpoint.
10176 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10177 (overlay_manual_command): Disable overlay breakpoints.
10178 (overlay_off_command): Disable overlay breakpoints.
10180 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10182 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10183 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10184 to here from config/tm-arm.h.
10185 (coff_sym_is_thumb): Make static.
10186 (arm_elf_make_msymbol_special): New function.
10187 (arm_coff_make_msymbol_special): New function.
10188 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10189 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10190 (coff_sym_is_thumb): Delete declaration.
10191 (arm_elf_make_msymbol_special): Declare.
10192 (arm_coff_make_msymbol_special): Declare.
10193 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10194 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10196 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10198 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10200 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10202 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10203 * gdbarch.c gdbarch.h: Regenerate.
10204 * arch-utils.c (default_print_float_info): New function.
10205 * arch-utils.h (default_print_float_info): Prototype it.
10206 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10207 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10208 (PRINT_FLOAT_INFO): Document it.
10210 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10211 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10212 (PRINT_FLOAT_INFO): Define.
10214 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10216 * win32-nat.c (_initialize_check_for_gdb_ini):
10217 Add typecast to sprintf argument to suppress a warning.
10219 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10221 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10222 to allow easier handling of pass state.
10223 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10224 that gives exception name and address.
10225 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10226 and set last_sig value to ourstatus->value.sig. Some missing
10228 (child_continue): Correctly report continue_status.
10229 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10230 TARGET_SIGNAL_0 (new default value).
10231 (child_resume): consider sig argument passed to decide if
10232 the exception should be passed to debuggee or not.
10234 2002-02-05 Michael Snyder <msnyder@redhat.com>
10236 * regcache.c (fetch_register): Call target_fetch_register
10237 only if we don't call FETCH_PSEUDO_REGISTER.
10238 (store_register): Call target_store_register only if we
10239 don't call STORE_PSEUDO_REGISTER.
10241 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10243 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10244 ELF_MAKE_MSYMBOL_SPECIAL.
10245 * gdbarch.c, gdbarch.h: Regenerate.
10246 * arch-utils.c (default_make_msymbol_special): New function.
10247 * arch-utils.h (default_make_msymbol_special): Export.
10248 * elfread.c (elf_symtab_read): Compile use of
10249 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10251 * coffread.c (coff_symtab_read): Ditto, for
10252 COFF_MAKE_MSYMBOL_SPECIAL.
10254 2002-02-05 Jim Blandy <jimb@redhat.com>
10256 * solib-svr4.c (svr4_truncate_ptr): New function.
10257 (svr4_relocate_section_addresses): Do the address arithmetic with
10258 the appropriate truncation for target addresses, even when
10259 CORE_ADDR is larger than a target address.
10261 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10263 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10266 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10268 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10271 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10273 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10275 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10277 * gdbserver/linux-low.c: Remove unused include files.
10279 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10281 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10282 (read_inferior_memory): Use it.
10283 (write_inferior_memory): Likewise.
10285 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10287 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10288 grubbing through sys_errlist.
10290 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10292 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10294 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10295 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10297 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10299 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10300 (do_sfunc, set_cmd_sfunc): New functions.
10302 * command.h (struct cmd_list_element): Add field func.
10303 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10304 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10305 * cli/cli-decode.h: Ditto.
10307 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10308 (help_all, help_cmd_list): Ditto.
10309 (find_cmd, complete_on_cmdlist): Ditto.
10310 * top.c (execute_command): Ditto.
10312 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10315 * infcmd.c (notice_args_read): Fix function signature.
10317 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10318 * cli/cli-decode.c (add_set_cmd): Ditto.
10319 * utils.c (initialize_utils): Ditto.
10320 * maint.c (_initialize_maint_cmds): Ditto.
10321 * infrun.c (_initialize_infrun): Ditto.
10322 * demangle.c (_initialize_demangler): Ditto.
10323 * remote.c (add_packet_config_cmd): Ditto.
10324 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10325 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10326 * proc-api.c (_initialize_proc_api): Ditto.
10327 * kod.c (_initialize_kod): Ditto.
10328 * valprint.c (_initialize_valprint): Ditto.
10329 * top.c (init_main): Ditto.
10330 * infcmd.c (_initialize_infcmd): Ditto.
10331 * corefile.c (_initialize_core): Ditto.
10332 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10333 * arch-utils.c (initialize_current_architecture): Ditto.
10334 (_initialize_gdbarch_utils): Ditto.
10335 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10337 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10338 * wince.c (_initialize_inftarg): Ditto.
10339 * symfile.c (_initialize_symfile): Ditto.
10340 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10341 * language.c (_initialize_language): Ditto.
10342 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10344 2002-02-04 Michael Snyder <msnyder@redhat.com>
10346 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10348 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10350 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10351 Add rules for building the register data files.
10353 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10355 * regformats/regdat.sh: Add braces to the definition of
10356 expedite_regs_${arch}.
10358 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10360 * regformats/regdef.h (struct reg): Add comment describing the
10361 requirements for offset and size fields.
10363 2002-02-04 Andreas Schwab <schwab@suse.de>
10365 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10366 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10368 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10370 * gdbarch.sh (copyright): Update years in generated header.
10371 (SMASH_TEXT_ADDRESS): Add rule.
10372 * gdbarch.h, gdbarch.c: Re-generate.
10373 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10374 * dbxread.c: Likewise.
10375 * dwarfread.c: Likewise.
10376 * elfread.c: Likewise.
10377 * somread.c: Likewise.
10379 * arm-tdep.c (arm_smash_text_address): New function.
10380 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10382 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10384 Add support for hardware watchpoints on win32 native.
10385 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10386 CONTEXT_DEBUG_REGISTERS.
10387 (dr variable): New variable. Static array containing a local copy
10388 of debug registers.
10389 (debug_registers_changed): New variable. Reflects when debug registers
10390 are changed and need to be written to inferior.
10391 (debug_registers_used): New variable. Reflects when any debug register
10392 was set, used when new threads are created.
10393 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10395 (thread_rec): Set dr array if id is the thread of current_event .
10396 (child_continue, child_resume): Change the debug registers for all
10397 threads if debug_registers_changed.
10398 (child_add_thread): Change the debug registers if debug_registers_used.
10399 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10400 Link nm.h to new nm-cygwin.h file.
10401 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10402 of hardware registers.
10404 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10406 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10407 Restore behavour broken by 2002-01-20 Andrew Cagney
10408 <ac131313@redhat.com> IEEE_FLOAT removal.
10410 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10412 * c-valprint.c (c_val_print): Pass a proper valaddr to
10413 cp_print_class_method.
10414 * valops.c (search_struct_method): If there is only one method
10415 and args is NULL, return that method.
10417 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10419 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10420 accessing tag_name directly.
10422 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10424 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10425 of accessing tag_name directly.
10427 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10430 * gdbtypes.c (replace_type): New function.
10431 * gdbtypes.h (replace_type): Add prototype.
10432 * stabsread.c (read_type): Use replace_type.
10434 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10436 * Makefile.in (memattr.o): Add missing dependencies rule.
10438 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10440 * breakpoint.c (break_at_finish_command): Really export.
10441 (break_at_finish_at_depth_command): Ditto.
10442 (tbreak_at_finish_command): Ditto.
10443 * hppa-tdep.c: Include completer.h.
10444 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10445 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10447 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10449 * utils.c (do_write): New function.
10450 (error_stream): Rewrite combining the code from error_begin and
10452 (verror): Rewrite using error_stream.
10453 (error_begin): Delete function.
10455 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10457 * utils.c (error_begin): Make static.
10458 * defs.h (error_begin): Delete declaration.
10460 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10461 (decode_line_1): Use cplusplus_error instead of error_begin,
10462 cplusplus_hint and return_to_top_level.
10463 * coffread.c (coff_symfile_read): Use error instead of error_begin
10464 and return_to_top_level.
10465 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10467 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10469 * language.h (type_error, range_error): Make string parameter
10471 * language.c (warning_pre_print): Delete extern declaration.
10472 * dwarfread.c (warning_pre_print): Ditto.
10473 * language.c (type_error, range_error): Rewrite to use verror and
10474 vwarning instead of warning_begin.
10476 2002-02-01 Michael Snyder <msnyder@redhat.com>
10478 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10479 (set_ignore_count): Move misplaced comment back where it belongs.
10481 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10483 * command.h (NO_FUNCTION): Delete macro.
10484 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10485 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10486 * tracepoint.c (_initialize_tracepoint): Ditto.
10487 * cli/cli-decode.c (add_set_cmd): Ditto.
10488 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10490 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10492 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10493 Update ``this'' pointer when calling virtual functions.
10495 2002-02-01 Michael Snyder <msnyder@redhat.com>
10497 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10498 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10500 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10502 * regformats/reg-arm.dat: New file.
10503 * regformats/reg-i386.dat: New file.
10504 * regformats/reg-ia64.dat: New file.
10505 * regformats/reg-m68k.dat: New file.
10506 * regformats/reg-mips.dat: New file.
10507 * regformats/reg-ppc.dat: New file.
10508 * regformats/reg-sh.dat: New file.
10509 * regformats/regdef.h: New file.
10510 * regformats/regdat.sh: New file.
10512 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10514 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10515 (arm_frame_args_address, arm_frame_locals_address): New functions.
10516 (arm_frame_num_args): New function.
10517 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10518 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10519 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10521 2002-01-31 Michael Snyder <msnyder@redhat.com>
10523 * breakpoint.c (break_at_finish_command): Export.
10524 (break_at_finish_at_depth_command): Export.
10525 (tbreak_at_finish_command): Export.
10526 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10527 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10528 "txbreak" commands, which are HPPA specific.
10530 * printcmd.c (disassemble_command): Remove an ancient
10531 artifact of an old merge.
10533 * symfile.h (enum overlay_debugging_state):
10534 Define enum constant values for overlay mode.
10535 * symfile.c (overlay_debugging): Use enums instead of literals.
10536 (overlay_is_mapped, overlay_auto_command,
10537 overlay_manual_command): Ditto.
10539 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10540 breakpoint_here_p, breakpoint_inserted_here_p,
10541 breakpoint_thread_match, bpstat_stop_status,
10542 describe_other_breakpoints, check_duplicates, clear_command):
10543 Coding standard fixes.
10545 * target.c (target_xfer_memory): Add spaces, coding standard.
10546 (do_xfer_memory): Add missing line to trust-readonly
10547 code: check bfd SEC_READONLY flag for section.
10549 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10551 * PROBLEMS: Fix typo, 5.1->5.1.1.
10553 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10555 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10556 data symbols, since we search based on textlow and texthigh.
10557 (find_pc_sect_symtab): Likewise.
10559 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10561 * defs.h (vwarning): Declare.
10562 * utils.c (vwarning): New function.
10563 (warning): Call vwarning.
10564 (warning_begin): Delete function.
10566 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10567 the warning message.
10568 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10571 2002-01-30 Michael Snyder <msnyder@redhat.com>
10573 * NEWS: Mention "set trust-readonly-sections" command.
10574 Mention generate-core-file command.
10576 2002-01-15 Michael Snyder <msnyder@redhat.com>
10578 * target.c: New command, "set trust-readonly-sections on".
10579 (do_xfer_memory): Honor the suggestion to trust readonly sections
10580 by reading them from the object file instead of from the target.
10581 (initialize_targets): Register command "set trust-readonly-sections".
10583 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10585 * parse.c (target_map_name_to_register): Simplify, search regs and
10586 pseudo-regs using a single loop.
10588 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10590 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10592 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10594 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10595 * config/i386/i386v42mp.mh: Add i387-nat.o .
10596 * i386v4-nat.c: Include i387-nat.h.
10597 (supply_fpregset): Use i387_supply_fsave.
10598 (fill_fpregset): Use i387_fill_fsave.
10600 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10602 * arm-tdep.c (arm_call_dummy_words): Define.
10603 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10604 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10605 (CALL_DUMMY_WORDS): Define.
10606 (arm_call_dummy_words): Declare.
10607 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10608 (arm_linux_call_dummy_words): Declare.
10610 2002-01-30 Andreas Schwab <schwab@suse.de>
10612 * m68klinux-nat.c: Fix last change to use regcache_collect
10613 instead of referencing registers[] directly.
10615 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10617 * parse.c (target_map_name_to_register): Delete code wrapped in
10618 #ifdef REGISTER_NAME_ALIAS_HOOK.
10620 2002-01-28 Michael Snyder <msnyder@redhat.com>
10622 * regcache.c (legacy_read_register_gen): Need to be able to
10623 read pseudo-register as well as real register.
10624 (legacy_write_register_gen): Ditto.
10626 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10628 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10629 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10630 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10631 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10632 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10633 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10634 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10635 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10636 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10637 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10638 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10639 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10640 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10641 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10642 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10643 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10644 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10645 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10646 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10647 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10649 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10651 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10652 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10653 (initialize_current_architecture): Update target_byte_order using
10654 information from BFD.
10655 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10656 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10658 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10660 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10661 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10663 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10664 #ifdef INVALID_FLOAT.
10665 * infcmd.c (do_registers_info): Ditto.
10666 * values.c (unpack_double): Ditto. Add comment.
10668 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10669 already commented out.
10671 2002-01-26 Andreas Schwab <schwab@suse.de>
10673 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10674 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10675 registers and add support for PTRACE_GETREGS.
10677 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10679 GDB 5.1.1 released from 5.1 branch.
10680 * NEWS: Add 5.1.1 news.
10681 * README: Sync with 5.1 branch.
10683 2002-01-23 Fred Fish <fnf@redhat.com>
10685 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10686 stabstring on initial malloc. Reallocing will copy it for us,
10689 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10691 * Makefile.in (hpread_h): Delete.
10692 (HFILES_NO_SRCDIR): Remove hpread.h.
10693 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10694 (hpread.o): Update dependencies.
10695 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10697 * hp-psymtab-read.c: Remove file.
10698 * hp-symtab-read.c: Remove file.
10699 * hpread.h: Remove file.
10701 * hpread.c: Merge all contents of hp-psymtab-read.c,
10702 hp-symtab-read.c and hpread.h into this file, as it was prior to
10705 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10706 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10707 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10708 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10710 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10712 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10713 fill_gregset): Call gdbarch_tdep() just once, assign result to
10714 variable and use that, instead of calling the function several
10717 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10719 * configure.host: Accept sparcv9 as alias for sparc64.
10720 * configure.tgt: Likewise.
10722 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10724 * solib-aix5.c (build_so_list_from_mapfile)
10725 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10726 arguments is not reversed.
10727 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10728 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10730 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10732 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10733 modified version of obsolete sh_fetch_pseudo_register.
10734 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10735 (sh4_register_read): New function.
10736 (sh_pseudo_register_write): New function. Renamed and modified
10737 version of obsolete sh_store_pseudo_register.
10738 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10739 (sh4_register_write): New function.
10740 (sh_gdbarch_init): Remove setting of gdbarch function
10741 fetch_pseudo_register and store_pseudo_register. Remove setting of
10742 register_convert_to_raw, register_convert_to_virtual,
10743 register_convertible.
10744 (sh_sh4_register_convertible): Delete. No longer needed. All is
10745 taken care by architecture specific functions
10746 register_read/register_write.
10747 (sh_sh4_register_convert_to_virtual): Make static.
10748 (sh_sh4_register_convert_to_raw): Ditto.
10750 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10752 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10753 (floatformat_is_nan, floatformat_mantissa): Ditto.
10755 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10756 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10757 builtin_type_ieee_double_little,
10758 builtin_type_ieee_double_littlebyte_bigword,
10759 builtin_type_m68881_ext, builtin_type_i960_ext,
10760 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10761 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10762 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10763 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10765 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10767 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10768 parameter. Set frameless flag if it exists and depended of
10769 whether the scanned function is frameless or not.
10770 (xstormy16_skip_prologue): If function is frameless, return
10771 result of xstormy16_scan_prologue().
10772 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10775 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10777 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10778 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10779 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10780 sh_sh4_register_byte, sh_sh4_register_raw_size,
10781 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10782 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10783 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10784 sh_store_pseudo_register, sh_do_pseudo_register): Call
10785 gdbarch_tdep() just once, assign result to variable and use that,
10786 instead of calling the function several times.
10788 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10790 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10791 macros instead of LAST_FPU_CTRL_REGNUM.
10792 (store_register): Likewise.
10794 2002-01-21 Jim Blandy <jimb@redhat.com>
10796 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10797 is up-to-date before running the program, not just when a program
10800 2002-01-21 Fred Fish <fnf@redhat.com>
10802 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10803 when we have found all instructions we are looking for.
10805 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10807 * arm-tdep.c (arm_register_name): New function.
10808 (arm_registers_names): Make static.
10809 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10810 (arm_register_name): Declare.
10811 (REGISTER_NAME): Use it.
10813 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10814 Kevin Buettner <kevinb@redhat.com>
10816 Convert arm targets to new FRAME interface.
10817 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10818 (arm_frame_find_save_regs): Delete.
10819 (arm_frame_init_saved_regs): New.
10820 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10821 Allocate extra_info as required. Convert all uses of fsr.regs
10822 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10824 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10825 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10826 (check_prologue_cache, save_prologue_cache): Likewise.
10827 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10828 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10829 (FRAME_FIND_SAVED_REGS): Delete.
10830 (arm_frame_find_saved_regs): Delete prototype.
10831 (arm_frame_init_saved_regs): New prototype.
10832 (FRAME_INIT_SAVED_REGS): Define.
10834 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10836 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10838 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10840 From Jeff Law <law@redhat.com>:
10841 * infttrace.c: Include <sys/pstat.h>.
10842 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10843 exec file if the ttrace equivalent fails.
10845 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10847 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10848 (closeLogFile): Ditto.
10850 2002-01-20 Michael Chastain <mec@shout.net>
10852 * top.c (print_gdb_version): Bump copyright year to 2002.
10854 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10856 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10857 Zannoni and Eli Zaretskii.
10859 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10861 * buildsym.c: Update copyright years.
10862 * c-typeprint.c: Likewise.
10863 * dwarf2read.c: Likewise.
10864 * f-typeprint.c: Likewise.
10865 * gdbtypes.c: Likewise.
10866 * gdbtypes.h: Likewise.
10867 * hp-symtab-read.c: Likewise.
10868 * hpread.c: Likewise.
10869 * mdebugread.c: Likewise.
10870 * p-typeprint.c: Likewise.
10872 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10874 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10875 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10876 byte-order selectable.
10877 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10878 * arch-utils.c: Ditto.
10879 (set_endian): Ditto.
10880 (set_endian_from_file): Ditto.
10881 * gdbserver/low-sim.c (create_inferior): Ditto.
10882 * gdbarch.sh: Ditto.
10883 * gdbarch.h: Re-generate.
10884 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10885 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10886 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10887 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10888 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10889 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10890 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10891 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10893 * config/mips/tm-wince.h: Remove #undef of macro
10894 TARGET_BYTE_ORDER_SELECTABLE.
10895 * config/sh/tm-wince.h: Ditto.
10897 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10899 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10900 member function fields. Add accessor macro
10901 TYPE_FN_FIELD_ARTIFICIAL.
10902 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10903 * c-typeprint.c (c_type_print_base): Skip artificial member
10906 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10908 * f-typeprint.c: Delete unused function f_type_print_args.
10909 * p-typeprint.c: Delete unused function pascal_type_print_args.
10911 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10913 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10914 comment. Add ``artificial'' to ``union field_location''.
10916 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10918 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10919 * mdebugread.c (parse_symbol): Likewise.
10920 * stabsread.c (define_symbol): Likewise.
10921 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10922 initializing TYPE_FIELD_BITPOS to n (obsolete).
10923 (hpread_doc_function_type): Likewise.
10924 * hpread.c (hpread_function_type): Likewise.
10926 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10928 * configure.in (host_makefile_frag): Only require a host makefile
10929 fragment when a native build.
10930 * configure: Re-generate.
10932 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10934 * doublest.h (floatformat_from_type): Declare.
10935 * doublest.c (floatformat_from_type): New function.
10936 (convert_typed_floating): Use.
10938 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10939 call to function floatformat_from_type.
10941 * gdbarch.sh (IEEE_FLOAT): Delete.
10942 * gdbarch.h, gdbarch.c: Re-generate.
10943 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10944 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10945 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10946 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10947 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10948 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10949 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10950 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10951 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10952 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10953 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10954 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10956 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10957 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10958 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10959 * sh-tdep.c (sh_gdbarch_init): Ditto.
10960 * mips-tdep.c (mips_gdbarch_init): Ditto.
10961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10962 * cris-tdep.c (cris_gdbarch_init): Ditto.
10964 2002-01-20 Jiri Smid <smid@suse.cz>
10966 * configure.host, configure.tgt: Support x86-64.
10967 * NEWS: Note new target x86-64.
10969 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10970 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10971 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10972 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10973 x86-64-linux-nat.o): Fix dependencies.
10975 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10977 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10978 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10979 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10980 * config/sparc/xm-sun4os4.h: Delete file.
10981 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10983 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10985 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10986 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10987 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10988 * config/i386/i386lynx.mh (XM_FILE): Delete.
10989 * config/rs6000/xm-rs6000ly.h: Delete file.
10990 * config/sparc/xm-sparclynx.h: Delete file.
10991 * config/m68k/xm-m68klynx.h: Delete file.
10992 * config/i386/xm-i386lynx.h: Delete file.
10993 * config/xm-lynx.h: Delete file.
10994 * config/djgpp/fnchange.lst: Update.
10996 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10998 * alpha-tdep.c (alpha_register_byte): New function.
10999 (alpha_register_raw_size): Ditto.
11000 (alpha_register_virtual_size): Ditto.
11001 (alpha_skip_prologue_internal): Renamed from
11002 alpha_skip_prologue.
11003 (alpha_skip_prologue): New version that calls
11004 alpha_skip_prologue_internal.
11005 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11006 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11007 second argument from alpha_skip_prologue.
11008 (REGISTER_BYTE): Use alpha_register_byte.
11009 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11010 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11011 (FRAMELESS_FUNCTION_INVOCATION): Use
11012 generic_frameless_function_invocation_not.
11013 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11014 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11016 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11018 * config/mips/xm-news-mips.h: Delete file.
11019 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11021 * config/m88k/xm-m88k.h: Delete file.
11022 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11023 * config/m88k/xm-delta88v4.h: Ditto.
11024 * config/m88k/xm-delta88.h: Ditto.
11026 * config/alpha/xm-fbsd.h: Delete file.
11027 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11029 * config/sparc/xm-sparc.h: Delete file.
11030 * Makefile.in (xm-sun4os4.h): Delete dependency.
11031 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11032 * config/sparc/xm-sun4os4.h: Ditto.
11033 * config/sparc/xm-linux.h: Ditto.
11035 * config/i386/xm-windows.h: Delete file.
11037 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11039 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11040 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11042 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11044 * alpha-tdep.c (alpha_call_dummy_words): New.
11045 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11046 (CALL_DUMMY_P): Define.
11047 (CALL_DUMMY_WORDS): Define.
11048 (SIZEOF_CALL_DUMMY_WORDS): Define.
11050 2002-01-19 Per Bothner <per@bothner.com>
11052 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11053 isn't NULL, which can happen with some gcj-3.x-produced code.
11055 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11057 * alpha-tdep.c (alpha_register_virtual_type): New function.
11058 (alpha_init_frame_pc_first): Ditto.
11059 (alpha_fix_call_dummy): Ditto.
11060 (alpha_store_struct_return): Ditto.
11061 (alpha_extract_struct_value_address): Ditto.
11062 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11063 alpha_register_virtual_type.
11064 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11065 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11066 alpha_extract_struct_value_address.
11067 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11068 (INIT_FRAME_PC): Use init_frame_pc_noop.
11069 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11071 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11073 * i386gnu-nat.c: Include "i386-tdep.h".
11074 (fetch_fpregs): Simplify code dealing with uninitialized floating
11075 point states such that it doesn't require FP7_REGNUM.
11077 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11079 * alpha-tdep.c (frame_extra_info): New.
11080 (alpha_find_saved_regs): Make static. Use
11082 (alpha_frame_init_saved_regs): New function.
11083 (alpha_frame_saved_pc): Use frame->extra_info.
11084 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11085 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11086 (init_extra_frame_info): Rename to...
11087 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11088 (alpha_print_extra_frame_info): New function.
11089 (alpha_frame_locals_address): Ditto.
11090 (alpha_frame_args_address): Ditto.
11091 (alpha_pop_frame): Use frame->extra_info.
11092 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11093 alpha_frame_args_address.
11094 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11095 (alpha_find_saved_regs): Remove prototype.
11096 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11097 (EXTRA_FRAME_INFO): Remove.
11098 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11099 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11101 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11103 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11104 (alpha_cannot_fetch_register): Ditto.
11105 (alpha_cannot_store_register): Ditto.
11106 (alpha_register_convertible): Ditto.
11107 (alpha_use_struct_convention): Ditto.
11108 * config/alpha/tm-alpha.h: Update copyright years.
11109 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11110 (INNER_THAN): Use core_addr_lessthan.
11111 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11112 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11113 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11114 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11115 (FRAME_CHAIN): Remove unnecessary cast.
11117 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11119 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11122 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11124 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11125 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11126 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11127 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11128 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11129 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11130 * x86-64-linux-nat.c: Ditto.
11132 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11134 * alpha-tdep.c (alpha_register_name): New function.
11135 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11136 (REGISTER_NAME): Define.
11138 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11140 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11142 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11144 * alpha-tdep.c: Update copyright years.
11145 (alpha_next_pc): New function.
11146 (alpha_software_single_step): Ditto.
11147 * config/alpha/tm-alpha.h: Add prototype for
11148 alpha_software_single_step.
11150 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11152 * alphabsd-nat.c: Update copyright years.
11153 (fill_gregset): Use regcache_collect.
11154 (fill_fpregset): Likewise.
11155 (fetch_inferior_registers): Only fetch integer registers
11156 if requested to do so.
11157 (store_inferior_registers): Only store integer registers
11158 if requested to do so.
11160 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11162 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11163 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11164 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11165 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11166 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11167 * config/arm/linux.mh (XDEPFILES): Delete.
11168 * config/arm/nbsd.mh (XDEPFILES): Delete.
11169 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11170 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11171 * config/i386/i386m3.mh (XDEPFILES): Delete.
11172 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11173 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11174 * config/i386/fbsd.mh (XDEPFILES): Delete.
11175 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11176 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11177 * config/i386/i386v4.mh (XDEPFILES): Delete.
11178 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11179 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11180 * config/i386/i386aix.mh (XDEPFILES): Delete.
11181 * config/i386/go32.mh (XDEPFILES): Delete.
11182 * config/i386/cygwin.mh (XDEPFILES): Delete.
11183 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11184 * config/i386/i386mach.mh (XDEPFILES): Delete.
11185 * config/i386/i386v32.mh (XDEPFILES): Delete.
11186 * config/i386/linux.mh (XDEPFILES): Delete.
11187 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11188 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11189 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11190 * config/i386/i386sco.mh (XDEPFILES): Delete.
11191 * config/i386/i386v.mh (XDEPFILES): Delete.
11192 * config/i386/nbsd.mh (XDEPFILES): Delete.
11193 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11194 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11195 * config/i386/symmetry.mh (XDEPFILES): Delete.
11196 * config/i386/obsd.mh (XDEPFILES): Delete.
11197 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11198 * config/ia64/linux.mh (XDEPFILES): Delete.
11199 * config/ia64/aix.mh (XDEPFILES): Delete.
11200 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11201 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11202 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11203 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11204 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11205 * config/m68k/linux.mh (XDEPFILES): Delete.
11206 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11207 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11208 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11209 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11210 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11211 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11212 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11213 * config/m88k/delta88.mh (XDEPFILES): Delete.
11214 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11215 * config/m88k/m88k.mh (XDEPFILES): Delete.
11216 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11217 * config/mips/linux.mh (XDEPFILES): Delete.
11218 * config/mips/irix6.mh (XDEPFILES): Delete.
11219 * config/mips/irix5.mh (XDEPFILES): Delete.
11220 * config/mips/irix4.mh (XDEPFILES): Delete.
11221 * config/mips/irix3.mh (XDEPFILES): Delete.
11222 * config/mips/decstation.mh (XDEPFILES): Delete.
11223 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11224 (NATDEPFILES): Move core-aout.o to here.
11225 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11226 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11227 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11228 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11229 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11230 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11231 * config/pa/hpux11.mh (XDEPFILES): Delete.
11232 * config/powerpc/aix.mh (XDEPFILES): Delete.
11233 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11234 * config/powerpc/linux.mh (XDEPFILES): Delete.
11235 * config/romp/rtbsd.mh: Rename XDEPFILES.
11236 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11237 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11238 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11239 * config/s390/s390.mh (XDEPFILES): Delete.
11240 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11241 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11242 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11243 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11244 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11245 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11246 * config/sparc/linux.mh (XDEPFILES): Delete.
11247 * config/vax/vaxult.mh (XDEPFILES): Delete.
11248 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11249 * Makefile.in (DEPFILES): Remove XDEPFILES.
11251 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11253 * utils.c (internal_verror): Fix comments, default is yes not no.
11254 Update queries to match. Default to quit and dump core.
11256 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11258 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11260 * defs.h, event-top.c, gdbcmd.h: Ditto.
11261 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11262 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11263 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11264 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11265 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11266 * mi/mi-main.c:Ditto.
11268 * stack.c, symfile.c: Update copyright.
11270 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11272 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11273 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11274 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11275 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11277 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11279 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11280 * gdbserver/low-lynx.c (myattach): Likewise.
11281 * gdbserver/low-nbsd.c (myattach): Likewise.
11282 * gdbserver/low-sim.c (myattach): Likewise.
11283 * gdbserver/low-sparc.c (myattach): Likewise.
11284 * gdbserver/low-sun3.c (myattach): Likewise.
11286 * gdbserver/low-linux.c (myattach): New function.
11288 * gdbserver/server.c (attach_inferior): New function.
11289 (main): Handle "--attach".
11291 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11293 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11296 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11298 * c-typeprint.c (is_type_conversion_operator): Add additional
11299 check for non-conversion operators.
11301 2002-01-15 Michael Snyder <msnyder@redhat.com>
11303 * linux-proc.c: Add "info proc" command, a la procfs.c.
11304 (read_mapping): New function, abstract and re-use code.
11305 (linux_find_memory_regions): Use new func read_mapping.
11306 (linux_info_proc_cmd): New function, implement "info proc".
11307 (_initialize_linux_proc): Add new command "info proc".
11309 2002-01-15 Michael Snyder <msnyder@redhat.com>
11311 * symfile.c (generic_load): Use bfd_map_over_sections method
11312 instead of manipulating bfd structure members directly.
11313 (add_section_size_callback): New function, bfd sections callback
11314 used by generic_load.
11315 (load_sections_callback): New function, bfd sections callback
11316 used by generic_load.
11318 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11320 [Based on work by Jim Blandy]
11321 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11322 (builtin_type_vec128): Export.
11323 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11325 (builtin_type_vec128): New builtin type for 128 bit vector
11327 (build_gdbtypes): Initialize builtin_type_v16qi and
11328 builtin_type_v8hi. Create the vec128 register builtin type
11330 (build_builtin_type_vec128): New function.
11331 (_initialize_gdbtypes): Register builtin_type_v16qi and
11332 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11333 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11334 AltiVec register to new builtin type.
11336 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11338 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11341 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11343 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11344 CLEAN_UP_REGISTER_VALUE.
11345 * regcache.c (supply_register): Update only call.
11347 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11349 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11350 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11351 a29k-*-vxworks* targets as obsolete.
11353 2002-01-14 Michael Snyder <msnyder@redhat.com>
11355 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11356 until we can resolve portability issues.
11357 * gregset.h: Remove references to fpxregs.
11358 * gcore.c (gcore_command): Initialize note_sec to NULL.
11360 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11362 * signals.c (target_signal_to_name): Rewrite. Only use
11363 signals[].name when in bounds and non-NULL.
11365 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11367 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11368 * signals.c (target_signal_to_name): Verify that SIG is within the
11369 bounds of the signals array.
11371 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11373 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11375 2002-01-13 Keith Seitz <keiths@redhat.com>
11377 * stack.c (print_frame_info_base): Print the frame's pc
11378 only if when print_frame_info_listing_hook is not defined.
11380 2002-01-13 Keith Seitz <keiths@redhat.com>
11382 * varobj.c (varobj_set_value): Make sure that there were no
11383 errors evaluating the object before attempting to set its
11385 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11386 so this offset adjustment is no longer necessary.
11387 (create_child): Don't set the error flag if the child is
11388 a CPLUS_FAKE_CHILD.
11389 (value_of_child): If value_fetch_lazy fails, return NULL
11390 so that callers will be notified that an error occurred.
11391 (c_value_of_variable): Delay check of variable's validity
11392 until later. We actually want all structs and unions to have
11394 Do not return "???" for variables which could not be evaluated.
11395 This error condition must be returned to the caller so that it
11396 can get the error condition from gdb.
11397 (cplus_name_of_child): Adjust index for vptr before figuring
11398 out the name of the child.
11399 (cplus_value_of_child): If a child's (real) parent is not valid,
11400 don't even bother trying to give a value for it. Just return
11401 an error. Change all instances in this function.
11402 (cplus_type_of_child): If our parent is one of the "fake"
11403 parents, we need to get at the type of the real parent, and
11404 derive the child's true type using this information.
11406 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11408 From 2002-01-09 John Marshall <johnm@falch.net>:
11409 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11410 sources.redhat.com, and tweak some related URLs which had
11411 suffered from linkrot.
11413 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11416 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11417 structures passed in registers.
11419 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11421 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11422 white space which prevented compilation. Reported by DSK
11423 <dsk@student.unsw.edu.au>.
11425 2002-01-11 Michael Snyder <msnyder@redhat.com>
11427 * symfile.c (build_section_addr_info_from_section_tab):
11428 Use bfd access method instead of manipulating bfd directly.
11429 (syms_from_objfile): Ditto.
11430 (simple_overlay_update_1): Ditto.
11431 (simple_overlay_update): Ditto.
11432 (generic_load): Ditto.
11433 (overlay_unmapped_address): FIXME comment, bfd access methods.
11434 (sections_overlap): FIXME comment, bfd access methods.
11435 (pc_in_mapped_range): FIXME comment, bfd access methods.
11436 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11437 (section_is_mapped): FIXME comment, bfd access methods.
11438 (section_is_overlay): FIXME comment, bfd access methods.
11440 * symfile.c (generic_load): Whitespace and long line cleanups.
11441 Remove duplicate variable, change several local variables to
11442 more appropriate data types.
11443 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11445 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11447 From Peter Schauer:
11448 * language.c (longest_local_hex_string_custom): Use phex_nz to
11449 convert NUM to a hex string.
11451 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11453 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11455 Update Copyright year.
11457 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11459 * language.c (longest_raw_hex_string): Delete unused function.
11461 2002-01-11 Petr Sorfa <petrs@caldera.com>
11463 * MAINTAINERS (write-after-approval): Add myself.
11464 * dwarf2read.c (read_tag_string_type): Handling of
11466 (read_tag_string_type): FORTRAN fix to prevent propagation of
11468 (set_cu_language): Handling of DW_LANG_Fortran95
11470 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11472 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11473 GETPID(inferior_ptid).
11474 (store_inferior_registers): Likewise.
11476 2002-01-10 Jason Merrill <jason@redhat.com>
11478 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11481 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11483 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11484 and bfd/elf32-sh-nbsd.c.
11486 2002-01-10 Michael Snyder <msnyder@redhat.com>
11488 * NEWS: Mention --pid and corefile/proc-id behavior change.
11490 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11491 * gcore.c: Include cli/cli-decode.h instead of command.h.
11493 * main.c (captured_main): Add new command line option "--pid".
11494 If the second command line argument (following the symbol-file)
11495 begins with a digit, try to attach to it before trying to open
11497 (print_gdb_help): Document the "--pid" argument.
11499 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11501 * completer.c (command_completer): New function.
11503 * completer.h <command_completer>: Add prototype.
11505 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11506 completer for the "help" command.
11508 2002-01-09 Jason Merrill <jason@redhat.com>
11510 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11512 2002-01-09 Michael Snyder <msnyder@redhat.com>
11514 * i386-linux-nat.c (fill_fpxregset): Make global.
11515 (store_fpxregset): Ditto.
11517 * gregset.h (gdb_fpxregset_t): Define.
11518 (supply_fpxregset): Prototype.
11519 (fill_fpxregset): Prototype.
11521 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11523 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11525 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11526 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11527 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11529 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11531 * MAINTAINERS: Update target maintainer rules so that any
11532 Maintainer can approve a tested patch for a maintenance-only
11535 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11537 * MAINTAINERS (write-after-approval): Add myself.
11539 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11542 2002-01-08 Michael Snyder <msnyder@redhat.com>
11544 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11545 real name of the executable, rather than the /proc name.
11547 2002-01-03 Michael Snyder <msnyder@redhat.com>
11549 Implement a "generate-core-file" command in gdb, save target state.
11550 * gcore.c: New file. Implement new command 'generate-core-file'.
11551 Save a corefile image of the current state of the inferior.
11552 * linux-proc.c: Add linux-specific code for saving corefiles.
11553 * target.h (struct target_ops): Add new target vectors for saving
11554 corefiles; to_find_memory_regions and to_make_corefile_notes.
11555 (target_find_memory_regions): New macro.
11556 (target_make_corefile_notes): New macro.
11557 * target.c (update_current_target): Inherit new target methods.
11558 (dummy_find_memory_regions): New place-holder method.
11559 (dummy_make_corefile_notes): New place-holder method.
11560 (init_dummy_target): Initialize new dummy target vectors.
11561 * exec.c (exec_set_find_memory_regions): New function.
11562 Allow the exec_ops vector for memory regions to be taken over.
11563 (exec_make_note_section): New function, target vector method.
11564 * defs.h (exec_set_find_memory_regions): Export prototype.
11565 * procfs.c (proc_find_memory_regions): New function, corefile method.
11566 (procfs_make_note_section): New function, corefile method.
11567 (init_procfs_ops): Set new target vector pointers.
11568 (find_memory_regions_callback): New function.
11569 (procfs_do_thread_registers): New function.
11570 (procfs_corefile_thread_callback): New function.
11571 * sol-thread.c (sol_find_memory_regions): New function.
11572 (sol_make_note_section): New function.
11573 (init_sol_thread_ops): Initialize new target vectors.
11574 * inftarg.c (inftarg_set_find_memory_regions): New function.
11575 Allow to_find_memory_regions vector to be taken over.
11576 (inftarg_set_make_corefile_notes): New function.
11577 Allow to_make_corefile_notes vector to be taken over.
11578 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11579 interface layer if not target_has_execution (may be a corefile).
11580 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11581 * config/sparc/sun4sol2.mh: Ditto.
11582 * config/alpha/alpha-linux.mh: Ditto.
11583 * config/arm/linux.mh: Ditto.
11584 * config/i386/x86-64linux.mh: Ditto.
11585 * config/ia64/linux.mh: Ditto.
11586 * config/m68k/linux.mh: Ditto.
11587 * config/mips/linux.mh: Ditto.
11588 * config/powerpc/linux.mh: Ditto.
11589 * config/sparc/linux.mh: Ditto.
11591 2002-01-07 Michael Snyder <msnyder@redhat.com>
11593 * arm-linux-nat.c: Remove references to regcache.c internal data
11594 (registers[] and register_valid[]).
11596 2002-01-07 Michael Snyder <msnyder@redhat.com>
11598 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11599 so that attaching to a pid will automatically read the process's
11600 symbol file and shlibs.
11601 * Makefile.in: Add rule for linux-proc.o.
11602 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11603 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11604 * config/arm/linux.mh: Ditto.
11605 * config/i386/linux.mh: Ditto.
11606 * config/i386/x86-64linux.mh: Ditto.
11607 * config/ia64/linux.mh: Ditto.
11608 * config/m68k/linux.mh: Ditto.
11609 * config/mips/linux.mh: Ditto.
11610 * config/powerpc/linux.mh: Ditto.
11611 * config/sparc/linux.mh: Ditto.
11613 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11615 * win32-nat.c: Add i386-tdep.h dependency.
11617 2002-01-07 Michael Snyder <msnyder@redhat.com>
11619 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11620 instead of bfd_get_arch_size. Don't bail out just because
11621 there's no exec_bfd.
11623 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11624 * p-valprint.c (pascal_object_print_value): Ditto.
11625 * somread.c (som_symtab_read): Ditto.
11626 * symfile.c (simple_free_overlay_region_table): Ditto.
11627 * valops.c (value_assign): Ditto.
11629 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11630 use tilde_expand and strerror for opening save-tracepoints file.
11632 * thread-db.c (thread_db_new_objfile): Indendation fix.
11634 * infptrace.c (GDB_MAX_ALLOCA): New define.
11635 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11636 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11637 can be overridden with whatever value is appropriate to the host).
11638 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11639 alloca to allocate potentially large buffer.
11640 * rs6000-nat.c (child_xfer_memory): Ditto.
11641 * symm-nat.c (child_xfer_memory): Ditto.
11642 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11644 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11646 From Nick Clifton <nickc@redhat.com>
11647 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11649 2002-01-07 Michael Snyder <msnyder@redhat.com>
11651 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11652 Don't use exec_bfd if it's NULL.
11654 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11656 * valops.c (value_arg_coerce): Fix formatting.
11658 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11660 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11661 * gnu-nat.c: Ditto.
11663 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11665 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11666 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11667 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11668 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11669 z8k-coff have not been multi-arched. Update z8k-coff build
11672 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11674 * MAINTAINERS: Mark a29k target as obsolete.
11675 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11676 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11678 * NEWS: Note that a29k targets are obsolete.
11679 * a29k-tdep.c: Mark as obsolete.
11680 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11681 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11682 a29k-*-vxworks* targets as obsolete.
11683 * remote-adapt.c: Obsolete.
11684 * remote-eb.c: Obsolete.
11685 * remote-mm.c: Obsolete.
11686 * remote-udi.c: Obsolete.
11687 * config/a29k/a29k-udi.mt: Obsolete.
11688 * config/a29k/a29k.mt: Obsolete.
11689 * config/a29k/tm-a29k.h: Obsolete.
11690 * config/a29k/tm-vx29k.h: Obsolete.
11691 * config/a29k/vx29k.mt: Obsolete.
11693 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11695 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11696 with BFD_ENDIAN_BIG.
11698 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11700 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11701 * configure, config.in: Re-generate.
11702 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11703 * defs.h: Do not include <endian.h>.
11705 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11707 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11708 * config.in: Regenerate.
11709 * configure.in: Update copyright years.
11710 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11711 * configure: Regenerate.
11712 * i386bsd-nat.c: Update copyright years.
11713 (fill_gregset): Use regcache_collect.
11714 (fetch_inferior_registers): Only fetch integer registers
11715 if requested to do so. Add support for XMM registers
11716 using PT_GETXMMREGS.
11717 (store_inferior_registers): Only store integer registers
11718 if requested to do so. Add support for XMM registers
11719 using PT_SETXMMREGS.
11720 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11721 (store_inferior_registers): Remove.
11722 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11723 (fetch_elfcore_registers): New function.
11724 (i386nbsd_elfcore_fns): New.
11725 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11726 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11728 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11729 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11730 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11731 * config/i386/tm-nbsd.h: Update copyright years.
11732 (HAVE_SSE_REGS): Define.
11733 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11734 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11735 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11736 (SIGCONTEXT_PC_OFFSET): Remove.
11737 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11739 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11741 * configure.tgt: Remove powerpc-*-macos* target.
11742 * config/m68k/xm-mpw.h: Delete file.
11743 * config/xm-mpw.h: Delete file.
11744 * ser-mac.c: Delete file.
11745 * mpw-make.sed: Delete file.
11746 * mpw-config.in: Delete file.
11747 * mac-xdep.c: Delete file.
11748 * mac-gdb.r: Delete file.
11749 * mac-defs.h: Delete file.
11750 * mac-nat.c: Delete file.
11751 * config/powerpc/macos.mh: Delete file.
11752 * config/powerpc/macos.mt: Delete file.
11753 * config/powerpc/nm-macos.h: Delete file.
11754 * config/powerpc/tm-macos.h: Delete file.
11755 * source.c (openp, open_source_file): Remove obsolete code.
11756 * top.c (gdb_readline): Ditto.
11757 * utils.c (query): Ditto.
11758 * event-top.c (display_gdb_prompt): Ditto.
11759 * Makefile.in (ser-mac.o): Delete obsolete target.
11762 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11764 * defs.h (BIG_ENDIAN): Delete macro definition.
11765 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11766 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11767 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11768 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11769 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11770 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11771 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11772 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11773 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11774 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11775 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11776 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11777 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11778 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11779 * gdbarch.c: Re-generate.
11781 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11783 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11786 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11788 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11790 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11792 * value.h (value_ptr): Delete typedef.
11794 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11796 * i386nbsd-nat.c: Update copyright years.
11797 Include i386-tdep.h.
11799 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11801 * stabsread.c: Update copyright years.
11803 From Debashis Mahata <debashis.mahata@wipro.com>:
11804 (read_struct_fields): Deal with Sun C compiler erroneous stab
11805 output for structs and unions.
11808 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11810 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11813 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11815 * cp-abi.c: Fix whitespace.
11816 (baseclass_offset): New wrapper function.
11817 * cp-abi.h (baseclass_offset): Add prototype.
11818 (struct cp_abi_ops): Add baseclass_offset pointer.
11820 * valops.c (vb_match): Move to...
11821 * gnu-v2-abi.c (vb_match): here.
11822 * valops.c (baseclass_offset): Move to...
11823 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11825 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11827 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11828 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11829 * hpacc-abi.c (init_hpacc_ops): Likewise.
11831 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11833 * valops.c (find_overload_match): Accept obj as a
11834 reference parameter. Update it before returning.
11835 * value.h (find_overload_match): Update prototype.
11836 * eval.c (evaluate_subexp_standard): Pass object to
11837 find_overload_match by reference.
11839 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11841 * valarith.c: Replace value_ptr with struct value pointer. Remove
11842 register attribute from value declarations.
11845 * scm-lang.c (scm_lookup_name): Ditto.
11847 2002-01-03 Michael Snyder <msnyder@redhat.com>
11849 Abstract the functionality of iterating over mapped memory
11850 regions into a general purpose iterator function.
11851 * procfs.c (iterate_over_mappings): New function, general purpose
11852 iterator for memory sections.
11853 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11854 (solib_mappings_callback): New function, callback for above.
11855 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11856 (info_mappings_callback): New function, callback for above.
11858 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11860 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11862 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11863 * i386-tdep.c: Include "elf-bfd.h".
11864 (process_note_abi_tag_sections): New function.
11865 (i386_gdbarch_init): Add code to recognize various OS/ABI
11868 * maint.c (_initialize_maint_cmds): Add missing \ in
11871 For older changes see ChangeLog-2001
11877 version-control: never