1 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
4 (read_tag_pointer_type): Add address class support.
5 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
6 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
8 * gdbarch.h, gdbarch.c: Regenerate.
9 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
10 (make_type_with_address_space, recursive_type_dump): Add address
12 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
13 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
14 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
16 2002-10-16 Klee Dienes <kdienes@apple.com>
18 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
19 to get the last character of a char[] buffer, not
20 name[sizeof(vptr_name)-1].
22 2002-10-14 Adam Fedor <fedor@gnu.org>
24 * symtab.h: New objc_specific struct.
25 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
26 (SYMBOL_DEMANGLED_NAME): Likewise.
28 2002-10-14 Adam Fedor <fedor@gnu.org>
30 * symfile.c (init_filename_language_table): Add ObjC file extension.
32 2002-10-14 Adam Fedor <fedor@gnu.org>
34 * utils.c (puts_filtered_tabular): New function.
35 (fprintf_symbol_filtered): Get ObjC demangled name.
36 * defs.h (puts_filtered_tabular): Declared.
38 2002-10-14 Kevin Buettner <kevinb@redhat.com>
40 * c-lang.h (c_type_print_varspec_prefix): Delete.
41 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
42 ``need_post_space'' parameter. Adjust all callers.
44 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
46 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
47 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
48 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
49 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
51 2002-10-13 Adam Fedor <fedor@gnu.org>
53 * source.c (print_source_lines): Update comments.
55 2002-10-13 Adam Fedor <fedor@gnu.org>
57 * valops.c (value_of_local): New function.
58 (value_of_this): Use it.
59 * value.h (value_of_local): Declared.
61 2002-10-13 Adam Fedor <fedor@gnu.org>
63 * parse.c: (length_of_subexp, prefixify_subexp): Handle
64 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
66 2002-10-12 Adam Fedor <fedor@gnu.org>
68 * language.c (binop_result_type): Add language_objc to case.
69 (integral_type): Likewise.
70 (character_type): Likewise.
71 (string_type): Likewise.
72 (boolean_type): Likewise.
73 (structured_type): Likewise.
74 (binop_type_check): Likewise.
76 2002-10-11 Adam Fedor <fedor@gnu.org>
78 * printcmd.c (address_info): Print 'self' for ObjC.
80 2002-10-11 Adam Fedor <fedor@gnu.org>
82 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
85 2002-10-11 Adam Fedor <fedor@gnu.org>
87 * language.h (CAST_IS_CONVERSION): Add language_objc.
89 2002-10-11 Adam Fedor <fedor@gnu.org>
91 * defs.h (enum language): Add language_objc.
93 2002-10-11 Klee Dienes <kdienes@apple.com>
95 * findvar.c (read_memory_typed_address): New function.
96 * gdbcore.h (read_memory_typed_address): Add prototype.
97 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
98 to read a value destined for a CORE_ADDR, not read_memory_integer.
99 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
100 (f77_get_dynamic_lowerbound): Ditto.
102 2002-10-11 Martin M. Hunt <hunt@redhat.com>
104 * utils.c (string_to_core_addr): After turning string into
105 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
106 which will do necessary sign-extension, etc.
108 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
110 * c-exp.y (THIS): Delete token and grammar rule.
111 (yylex): Don't return THIS.
112 * cp-valprint.c (vtbl_ptr_name_old): Delete.
113 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
114 * demangle.c (cplus_markers): Update comment. Put '$'
115 first. Remove CPLUS_MARKER.
116 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
117 * jv-exp.y (THIS): Delete token and grammar rule.
118 (yylex): Don't return THIS.
119 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
120 * objc-exp.y (THIS): Delete token and grammar rule.
121 (yylex): Don't return THIS.
122 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
123 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
124 (read_member_functions): Likewise for opname.
125 (read_tilde_fields): Use is_cplus_marker.
127 * defs.h (CPLUS_MARKER): Don't define.
128 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
129 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
130 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
131 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
132 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
134 * config/i386/tm-i386v4.h: Delete file.
135 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
136 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
137 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
138 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
139 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
140 * config/i386/i386sco5.mt (TM_FILE): Likewise.
141 * config/i386/i386v4.mt (TM_FILE): Likewise.
142 * config/i386/ncr3000.mt (TM_FILE): Likewise.
144 2002-10-10 Marko Mlinar <markom@opencores.org>
146 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
147 accidentially not commited 2002-10-09
148 * gdbarch.h, gdbarch.c: Re-generate.
150 2002-10-09 Marko Mlinar <markom@opencores.org>
152 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
153 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
154 * gdbarch.h, gdbarch.c: Re-generate.
156 2002-10-08 Petr Sorfa <petrs@caldera.com>
158 Revised and re-submitted by John Wolfe <jlw@caldera.com>
160 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
161 so we can work on more than one compilation unit at a time. This
162 helps prepare GDB to handle inter-CU die references.
163 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
164 the code to be defined before struct comp_unit_head.
165 (comp_unit_head): Added new members - offset, cu_head,
166 begin_die, next and dwarf2_abbrevs.
167 (dwarf2_abbrevs): Removed single static var; now member of
168 struct comp_unit_head.
169 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
171 (psymtab_to_symtab_1): Changed to work with the new
172 struct comp_unit_head.
173 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
174 constructs the dwarf2_abbrevs[] inside the cu_header.
175 (dwarf2_empty_abbrev_table): Now expects a ptr to a
176 dwarf2_abbrev table to clean up.
177 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
178 handling of dwarf2_abbrevs inside the cu_header.
179 (read_partial_die): Now supports the call to the new
180 dwarf2_lookup_abbrev.
181 (read_full_die): Now supports the call to the new
182 dwarf2_lookup_abbrev.
184 2002-10-06 Christopher Faylor <cgf@redhat.com>
186 * Makefile.in (install-gdbtk): Add missing continuation backslash to
187 insure that shell variables, such as "transformed_name" are propagated
188 to later shell statements in rule.
190 2002-10-06 Mark Kettenis <kettenis@gnu.org>
192 * config/i386/nm-i386sco.h: Add protection against
193 multiple-inclusion. Include "i386/nm-i386v.h".
194 (REGISTER_U_ADDR): Remove define.
195 (i386_register_u_addr): Remove prototype.
197 2002-10-04 Michael Snyder <msnyder@redhat.com>
199 * m32r-stub.c (handle_exception): Make sure exception is "trap"
200 before treating it as a single-step event.
202 2002-10-03 Adam Fedor <fedor@gnu.org>
204 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
205 (objc_demangle): Remove assignment in if statements, Replace
207 (add_msglist): Likewise.
208 (end_msglist): Likewise.
209 (complare_selectors): Likewise.
210 (selectors_info): Likewise.
211 (compare_classes): Likewise.
212 (classes_info): Likewise.
213 (print_object_command): Likewise.
214 (find_objc_msgcall_submethod): Replace PTR with void *.
215 * objc-lang.h: Remove check for __STDC__.
217 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
219 * ui-out.h (ui_out_field_fmt_int): New prototype.
220 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
221 of field width and alignment.
222 * stack.c (print_frame_info_base): When printing frame level, use
223 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
226 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
228 * MAINTAINERS: Add self to Write After Approval list.
230 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
232 * infcmd.c (interrupt_target_command_wrapper): Delete.
233 (interrupt_target_command): Make non static.
234 (nofp_registers_info): Make static.
235 * stack.c (return_command_wrapper): Delete.
236 (return_command): Make non static.
238 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
240 * event-top.c (gdb_setup_readline): New function. Code moved from
241 _initialize_event_loop().
242 (_initialize_event_loop): Call gdb_setup_readline().
244 2002-10-02 Andrew Cagney <ac131313@redhat.com>
246 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
247 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
248 * gdbarch.h, gdbarch.c: Re-generate.
250 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
253 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
255 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
256 of fill_in_vptr_fieldno.
258 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
260 * inferior.h (registers_info, stepi_command, nexti_command,
261 continue_command, interrupt_target_command): Export from infcmd.c.
262 * frame.h (args_info, selected_frame_level_changed_hook,
263 return_command): Export from stack.c.
264 * v850ice.c (stepi_command, nexti_command, continue_command): use
265 prototypes from inferior.h.
266 * tracepoint.c (registers_info, args_info, locals_info): Use
267 prototypes from frame.h and inferior.h.
268 * Makefile.in (mi-main.o): Add dependency on frame.h.
270 2002-10-02 Andrew Cagney <ac131313@redhat.com>
272 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
273 value in register 3 adjusted by ppc_gp0_regnum.
275 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
277 2002-10-02 Marko Mlinar <markom@opencores.org>
279 * MAINTAINERS: Add myself to the Write After Approval list.
281 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
283 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
284 of the section for the N64 ABI, fixed.
286 * config/mips/tm-irix6.h: Include solib.h.
288 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
290 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
293 2002-10-01 Andrew Cagney <ac131313@redhat.com>
295 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
296 and that "mi0" syntax has been removed.
298 2002-09-30 David Carlton <carlton@math.stanford.edu>
300 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
301 * ppc-sysv-tdep.c: #include "gdb_string.h".
302 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
305 2002-10-01 Andrew Cagney <ac131313@redhat.com>
307 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
308 "vrsave"'s register number.
310 2002-09-30 Andrew Cagney <ac131313@redhat.com>
312 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
313 use frame_unwind_signed_register to obtain the PC.
314 (mips_frame_chain): Handle a generic dummy frame.
315 (mips_init_extra_frame_info): When a generic dummy frame, don't
316 re-compute the frame base.
317 (mips_pop_frame): Handle generic dummy frames.
318 (mips_gdbarch_init): When generic dummy frames, set
319 use_generic_dummy_frames, push_dummy_frame to
320 generic_push_dummy_frame, pc_in_call_dummy to
321 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
322 generic_save_dummy_frame_tos.
324 2002-09-30 Andrew Cagney <ac131313@redhat.com>
326 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
327 against TOP when TOP was explictly set.
328 (generic_push_dummy_frame): Set TOP to zero.
330 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
332 * event-loop.c (start_event_loop): Rename variable 'result' to
333 'gdb_result', to avoid conflicts with upcoming intepreters changes.
335 2002-09-30 Keith Seitz <keiths@redhat.com>
337 * gdb-events.sh (selected_thread_changed): New event.
338 * gdb-events.c: Regenerated.
339 * gdb-events.h: Regenerated.
341 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
343 * MAINTAINERS: Add self to Write After Approval list.
345 2002-09-30 Fernando Nasser <fnasser@redhat.com>
347 * disasm.c: New file.
348 * disasm.h: New file.
349 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
350 (compare_lines): Ditto.
352 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
354 (do_assembly_only): Ditto.
355 (do_disassembly): Renamed to gdb_disassembly and moved to
356 disasm.c. Sdded uiout argument.
357 * Makefile.in: Add new files. Reorder SFILES list. Update
358 dependencies. Include libgdb.a later in the insight executable.
360 2002-09-29 Andrew Cagney <ac131313@redhat.com>
362 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
363 bfd/elf64-alpha-fbsd.c.
365 2002-09-29 Andrew Cagney <ac131313@redhat.com>
367 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
370 2002-09-29 Andrew Cagney <ac131313@redhat.com>
372 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
374 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
376 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
377 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
378 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
379 (S_msg_sig_post_reply): Ditto.
381 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
383 * sh-tdep.c (sh_use_struct_convention): Use definition according
385 (sh_push_arguments): Store in register with correct endianess.
386 (sh_default_store_return_value): Ditto.
387 (sh_gdbarch_init): Set sizeof long double to 8.
389 2002-09-27 Mark Kettenis <kettenis@gnu.org>
391 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
392 Fix some whitespace problems.
394 2002-09-27 David Carlton <carlton@math.stanford.edu>
396 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
397 (mcore-tdep.o): Ditto.
398 (ns32k-tdep.o): Ditto.
399 (ns32knbsd-tdep.o): Ditto.
402 * cris-tdep.c: #include "gdb_string.h"
403 * mcore-tdep.c: Ditto.
404 * ns32k-tdep.c: Ditto.
405 * ns32knbsd-tdep.c: Ditto.
409 2002-09-27 David Carlton <carlton@math.stanford.edu>
411 * config/djgpp/fnchange.lst: Add entries for
412 gdb/testsuite/gdb.c++/m-static files.
414 2002-09-27 Jim Wilson <wilson@redhat.com>
416 * MAINTAINERS: Add myself to the Write After Approval list.
418 2002-09-26 Martin M. Hunt <hunt@redhat.com>
420 * mips-tdep.c (find_proc_desc): Initialize startaddr.
423 2002-09-26 Andrew Cagney <ac131313@redhat.com>
425 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
428 2002-09-26 Andrew Cagney <ac131313@redhat.com>
430 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
431 (rs6000_struct_return_address): Delete variable.
432 (rs6000_store_struct_return): Update.
433 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
434 deprecated_extract_struct_value_address.
435 (rs6000_frame_align): New function.
436 (rs6000_gdbarch_init): Set frame_align.
438 2002-09-26 Andrew Cagney <ac131313@redhat.com>
440 From Grace Sainsbury <graces@redhat.com>:
441 * Makefile.in (gdbtk-main.o): New target.
444 (main.o): Update dependencies.
445 (gdb$(EXEEXT)): Add gdb.o.
446 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
447 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
448 (SUBDIR_GDBTK_CLEAN): Set.
449 (install-gdbtk): Install the insight binary.
450 (uninstall-gdbtk): New target.
451 (all-gdbtk, clean-gdbtk): New rule.
452 * top.c (use_windows): Default to zero.
453 * main.c: Include "main.h".
455 (struct captured_main_args): Delete.
456 (gdb_main): New function.
460 2002-09-25 Andrew Cagney <cagney@redhat.com>
462 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
463 (frame_map_regnum_to_name): New function.
464 (frame_map_name_to_regnum): New function.
465 * frame.h (frame_map_name_to_regnum): Declare.
466 (frame_map_regnum_to_name): Declare.
467 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
468 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
469 * parse.c: Do not include "builtin-regs.h".
470 (target_map_name_to_register): Delete function.
471 (write_dollar_variable): Use frame_map_name_to_regnum.
472 * parser-defs.h (target_map_name_to_register): Delete declaration.
473 * expprint.c: Include "frame.h".
474 (print_subexp): Use frame_map_regnum_to_name.
475 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
476 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
478 2002-09-25 Andrew Cagney <ac131313@redhat.com>
480 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
481 wasn't saved, and the next innermost frame is a dummy, return the
482 dummy frame's link register.
484 2002-09-24 Jim Blandy <jimb@redhat.com>
487 * main.c (captured_main): Add a `break' after the case for 'b'.
489 2002-09-24 Keith Seitz <keiths@redhat.com>
491 * varobj.c (c_type_of_child): Use get_target_type instead
494 2002-09-22 Fernando Nasser <fnasser@redhat.com>
496 * source.c (get_current_or_default_source_symtab_and_line): Remove
498 (set_default_source_symtab_and_line): New function. Attempts to
499 determine a source file to list lines from if one is not currently
501 (get_current_source_symtab_and_line): Initialize sal.pc and
503 (set_current_source_symtab_and_line): Mark argument as const.
504 * source.h: Update declarations and comments.
505 * linespec.c (decode_line_1): Replace call to removed routine above.
506 * stack.c (print_frame_info_base): Ditto.
507 * cli/cli-cmds.c (edit_command): Ditto.
508 (list_command): Ditto.
510 2002-09-22 Fernando Nasser <fnasser@redhat.com>
512 * source.c (get_current_or_default_source_symtab_and_line): Initialize
513 sal.pc and sal.end fields.
514 (get_current_or_default_source_symtab_and_line): Ditto.
515 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
516 so we do not cause a new source symtab to be searched for (reverting an
517 unintentional change from the 2002-09-20 patch).
518 * scm-lang.c (scm_unpac): Ditto.
520 2002-09-21 Andrew Cagney <cagney@redhat.com>
522 * complaints.c (symfile_explanations): Remove new-line from
523 ``isolated_message''.
524 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
525 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
527 2002-09-20 Nick Clifton <nickc@redhat.com>
529 * NEWS: Announce that V850EA ISA is no longer supported.
530 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
532 2002-09-20 David Carlton <carlton@math.stanford.edu>
534 * Makefile.in (c-lang.o): Correct dependencies.
535 (utils.o): Gather dependencies.
537 * c-lang.c: #include "gdb_string.h"
539 2002-09-20 Fernando Nasser <fnasser@redhat.com>
541 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
542 * cli/cli-cmds.c (list_command): New function. Implements the new
544 (_init_cli_cmds): Add new command definition.
545 * gdb.1: Document edit command.
546 * doc/gdb.texinfo: Document edit command.
548 2002-09-20 Fernando Nasser <fnasser@redhat.com>
550 * source.c: Make global variables current_source_symtab and
551 current_source_line static.
552 (list_command): Moved to cli/cli-cmds.c.
553 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
554 (get_first_line_listed): New accessor function.
555 (get_lines_to_list): New accessor function.
556 (get_current_source_symtab_and_line): New function. Retrieves the
557 position in the source code that we consider current.
558 (get_current_or_default_source_symtab_and_line): New function.
559 Like the above but attempts to determine a default position if one
560 is not currently defined.
561 (set_current_source_symtab_and_line): New function. Sets the source
562 code position considered current and returns the previously set one.
563 (clear_current_source_symtab_and_line): Reset stored information about
564 a current source line.
565 (_initialize_source): Remove registration for the "list" command and
567 * source.h: Add declarations for the new functions above.
568 * symtab.h: Remove declarations for the global variables mentioned
570 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
571 obtain current source line.
572 * linespec.c (decode_line_1): Ditto.
573 * macroscope.c (default_macro_scope): Ditto.
574 * scm-lang.c (scm_unpac): Ditto.
575 * stack.c (print_frame_info_base): Ditto.
576 * symfile.c (clear_symtab_users): Ditto.
577 * symtab.c (decode_line_spec): Ditto.
578 * cli/cli-cmds.c (list_command): Moved here from source.c.
579 (ambiguous_line_spec): Moved here from source.c.
580 (_init_cli_cmds): Add definition for "list" and its alias.
581 * Makefile.in: Update dependencies.
583 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
585 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
586 with what gcc thinks is correct.
588 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
590 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
591 multiple register push instruction.
593 2002-09-19 Jim Blandy <jimb@redhat.com>
595 Add support for distinct host and target character sets.
596 * charset.c, charset.h: New files.
597 * c-exp.y: #include "charset.h".
598 (yylex): Convert character and string literals to the target
599 character set, before returning them as the semantic value of the
601 * c-lang.c: #include "charset.h".
602 (c_emit_char): Use charset-specific methods to recognize
603 characters with backslash escape forms, to decide which characters
604 to print literally and which to print using numeric escape
605 sequences, and to convert target characters to host characters
607 * utils.c: #include "charset.h".
608 (no_control_char_error): New function.
609 (parse_escape): Use charset-specific methods to recognize
610 backslash escapes, parse `control character' notation, and convert
611 characters from the host character set to the target character set.
612 * configure.in: Set the default host character set.
613 Check where to find iconv, and what its argument types might be.
614 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
615 * Makefile.in (SFILES): List charset.c.
616 (COMMON_OBS): List charset.o.
617 (charset.o): New rule.
618 (charset_h): New header dependency variable.
619 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
620 (LIBICONV): New variable, set by configure.
621 (CLIBS): Include $(LIBICONV) here.
622 * aclocal.m4, config.in, configure: Regenerated.
624 2002-09-19 Joel Brobecker <brobecker@gnat.com>
626 * ada-exp.y: Add missing semicolons to end rules. Fixes a
629 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
631 * gdb_mbuild.sh: New file.
633 2002-09-19 Andrew Cagney <ac131313@redhat.com>
635 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
637 2002-09-18 Andrew Cagney <ac131313@redhat.com>
639 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
640 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
641 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
642 valops.c, value.h: Revert previous change.
644 2002-09-18 Michael Snyder <msnyder@redhat.com>
646 Preliminary support for Objective-C:
647 * defs.h (language_objc): New enum value.
648 (puts_filtered_tabular): Declaration only, exported from utils.c.
649 (skip_quoted): Delete, declared in completer.h.
650 * c-exp.y: Include completer.h.
653 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
654 New operator enum values.
655 * language.h (CAST_IS_CONVERSION): Test for language_objc.
656 * language.c (binop_result_type): Handle language_objc case.
657 (integral_type, character_type, string_type, boolean_type,
658 structured_type, binop_type_check): Ditto.
659 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
660 (struct objc_specific): Add to general_symbol_info.
661 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
662 (SYMBOL_DEMANGLED_NAME): Handle objc case.
663 * parser-defs.h (struct objc_class_str): New struct type.
664 (start_msglist, end_msglist, add_msglist): Declaration only,
665 exported from objc-lang.c.
666 * value.h (value_of_local, value_nsstring,
667 call_function_by_hand_expecting_type): Exported from valops.c.
668 * valops.c (find_function_addr): Export.
669 (call_function_by_hand_expecting_type): New function.
670 (value_of_local): New function.
671 * symfile.c (init_filename_language_table): Add ".m" extension
673 * utils.c (puts_filtered_tabular): New function.
674 (fprintf_symbol_filtered): Add objc demangling support (disabled).
675 (set/show demangle): Extend help-string to refer to ObjC.
676 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
677 * stabsread.c (symbol_reference_defined): Objective-C symbols
678 may contain colons: make allowances when scanning stabs strings
680 (objc_find_colon): New function.
681 * printcmd.c (address_info): If language == objc then print
682 "self" instead of "this".
683 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
684 OP_NSSTRING, and OP_SELF.
685 (prefixify_subexp): Ditto.
686 * source.c (print_source_lines): Mention objc in comment.
687 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
690 2002-09-18 Andrew Cagney <ac131313@redhat.com>
692 * complaints.h: Update copyright.
693 (struct complaints): Declare.
694 (struct complaint): Make `message' constant.
695 (internal_complaint): Declare.
696 (complaint): Declare.
697 (complaint_root): Delete declaration.
698 (symfile_complaints): Delete declaration.
699 (struct complaints): Add opaque declaration.
700 (clear_complaints): Add a complaints parameter.
701 * complaints.c: Update copyright.
702 (enum complaint_series): Define.
703 (complaint_root): Delete.
704 (struct complaints): Define.
705 (complaint_sentinel, symfile_complaint_book): New variables.
706 (symfile_explanations, symfile_complaints): New variables.
708 (get_complaints): New function.
709 (vcomplaint): New function.
710 (complaint): New function.
711 (internal_complaint): New function.
712 (complain): Call vcomplain with symfile_complaint.
713 (clear_complaints): Rewrite.
714 (_initialize_complaints): Use add_setshow_command.
715 * Makefile.in (complaints.o): Update dependencies.
716 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
717 to call to clear_complaints.
718 (new_symfile_objfile, reread_symbols): Ditto.
719 (oldsyms_complaint): Delete.
720 (empty_symtab_complaint, unknown_option_complaint): Delete.
721 (free_named_symtabs): Use complaint instead of complain.
723 2002-09-18 Michael Snyder <msnyder@redhat.com>
725 Contributed by Apple Computer, Inc. Merged with current sources
726 by Adam Fedor <fedor@doc.com> [cagney].
728 * objc-lang.c: First clean-up round: comments, indentation.
729 * objc-lang.h: Ditto.
730 * objc-lang.y: Ditto.
732 2002-09-18 Andrew Cagney <ac131313@redhat.com>
734 * maint.c (maintenance_internal_error): Print the parameter as the
736 (maintenance_internal_warning): New function.
737 (_initialize_maint_cmds): Add command `maint internal-warning'.
739 * defs.h (internal_warning, internal_vwarning): Declare.
740 * utils.c (struct internal_problem): Define.
741 (internal_vproblem): New function.
742 (internal_warning): New function.
743 (internal_vwarning): New function.
744 (internal_warning_problem, internal_error_problem): New variables.
745 (internal_verror): Just call internal_vproblem.
747 2002-09-18 Michael Snyder <msnyder@redhat.com>
749 * objc-lang.c: New file, support for Objective-C.
750 Preliminary check-in, not yet integrated into gdb.
751 * objc-lang.h: New file.
752 * objc-exp.y: New file.
754 2002-09-18 Andrew Cagney <ac131313@redhat.com>
756 * infrun.c (signal_stop_update): Convert definition to ISO C.
757 (signal_print_update): Ditto.
758 (signal_pass_update): Ditto.
759 * inflow.c (terminal_save_ours): Ditto.
761 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
764 * config/djgpp/fnchange.lst: Handle name clashes between
765 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
768 * i386-linux-tdep.h: Fix tipo.
770 2002-09-18 Adam Fedor <fedor@gnu.org>
772 * MAINTAINERS: Add myself to the Write After Approval list.
774 2002-09-18 Jim Blandy <jimb@redhat.com>
776 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
777 texthigh and textlow to reader-specific structs caused
778 objfile_relocate to miss them. This is fixable, but the work that
779 the change was supposed to prepare GDB for never got done anyway.
781 2002-09-18 David Carlton <carlton@math.stanford.edu>
783 * MAINTAINERS: Alphabetize Write After Approval list.
785 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
788 * values.c (value_static_field): Call read_var_value.
790 2002-09-18 Andrew Cagney <ac131313@redhat.com>
792 * valops.c (hand_function_call): Align the initial stack pointer
793 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
794 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
796 * mips-tdep.c (mips_frame_align): New function.
797 (mips_gdbarch_init): Set frame_align.
798 * gdbarch.sh (FRAME_ALIGN): New method.
799 * gdbarch.h, gdbarch.c: Re-generate.
801 2002-09-18 Michal Ludvig <mludvig@suse.cz>
803 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
806 2002-09-17 Andrew Cagney <ac131313@redhat.com>
808 * NEWS: Mention that MIPS $fp behavior changed.
809 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
810 reference to FP_REGNUM.
811 (mipsnbsd_cannot_store_register): Ditto.
812 * mips-linux-nat.c: Update copyright.
813 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
814 (mips_linux_cannot_store_register): Ditto.
815 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
816 * config/mips/tm-mips.h: Update copyright.
817 (FP_REGNUM): Delete macro.
818 (MIPS_REGISTER_NAMES): Replace "fp" with "".
819 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
820 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
821 (mips_r3041_reg_names, mips_r3051_reg_names)
822 (mips_r3081_reg_names): Replace "fp" with "".
825 2002-09-17 Theodore A. Roth <troth@verinet.com>
827 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
828 generic_read_register_dummy() (PR gdb/703).
829 (avr_push_return_address): #if 0 out unused vars.
830 (avr_gdbarch_init): Enable use of avr_push_return_address().
832 2002-09-17 Michael Snyder <msnyder@redhat.com>
834 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
835 RTE will take care of it.
837 2002-09-17 Andrew Cagney <ac131313@redhat.com>
839 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
840 invalid, return SP_REGNUM.
842 2002-09-17 Michael Snyder <msnyder@redhat.com>
844 * mips-tdep.c (mips_pop_frame): Read saved values of floating
845 point registers without sign extension.
847 2002-09-17 Andrew Cagney <cagney@redhat.com>
849 * blockframe.c (deprecated_read_register_dummy): Rename
850 generic_read_register_dummy.
851 * frame.c (frame_unwind_signed_register): New function.
852 (frame_unwind_unsigned_register): New function.
853 * frame.h (frame_unwind_signed_register): Declare.
854 (frame_unwind_unsigned_register): Declare.
855 (deprecated_read_register_dummy): Rename
856 generic_read_register_dummy.
858 * h8300-tdep.c (h8300_frame_chain): Update.
859 (h8300_frame_saved_pc): Update.
860 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
861 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
862 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
863 (s390_frame_chain): Update.
864 * v850-tdep.c (v850_find_callers_reg): Update.
865 (v850_frame_saved_pc): Update.
866 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
867 (m32r_find_callers_reg): Update.
868 (m32r_frame_saved_pc): Update.
869 * sh-tdep.c (sh_find_callers_reg): Update.
870 (sh64_get_saved_pr): Update.
871 (sh_init_extra_frame_info): Update.
872 (sh_init_extra_frame_info): Update.
873 (sh64_init_extra_frame_info): Update.
874 (sh64_init_extra_frame_info): Update.
875 * mcore-tdep.c (mcore_find_callers_reg): Update.
876 (mcore_frame_saved_pc): Update.
877 (mcore_init_extra_frame_info): Update.
878 * i386-tdep.c (i386_frame_saved_pc): Update.
879 * ia64-tdep.c (ia64_frame_saved_pc): Update.
880 (ia64_init_extra_frame_info): Update.
881 (ia64_init_extra_frame_info): Update.
882 * d10v-tdep.c (d10v_frame_saved_pc): Update.
883 * cris-tdep.c (cris_init_extra_frame_info): Update.
884 * avr-tdep.c (avr_frame_chain): Update.
885 (avr_init_extra_frame_info): Update.
886 (avr_frame_saved_pc): Update.
887 * arm-tdep.c (arm_find_callers_reg): Update.
888 (arm_init_extra_frame_info): Update.
889 (arm_frame_saved_pc): Update.
891 2002-09-17 Tom Tromey <tromey@redhat.com>
893 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
896 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
898 * MAINTAINERS: Remove "non multi-arched" text from h8300.
899 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
901 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
904 2002-09-16 Joel Brobecker <brobecker@gnat.com>
906 * osfsolib.c: Remove file, replaced by solib-osf.c.
907 * Makefile.in: Remove compilation rules for osfsolib.c.
909 2002-09-16 David Carlton <carlton@math.stanford.edu>
911 * cp-valprint.c (cp_print_class_method): Correct args to
912 check_stub_method_group.
914 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
916 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
917 `set architecture'. Unify naming convention of functions.
918 (h8300_skip_prologue): Improve prologue analysis.
919 (h8300_push_arguments): Rewritten to more closely match GCC's
920 bizarre argument-passing behavior, along with the comment describing
922 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
923 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
924 sim, remote-e7000.c, remote-hms.c and remote.c
926 2002-09-15 Mark Kettenis <kettenis@gnu.org>
928 * i386-tdep.c (gdb_print_insn_i386): Removed.
929 (i386_print_insn): New function.
930 (i386_gdbarch_init): Set print_insn to i386_print_insns.
931 (_initialize_i386_tdep): Don't initialize tm_print_insn and
934 2002-09-14 Mark Kettenis <kettenis@gnu.org>
936 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
939 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
941 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
942 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
943 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
945 2002-09-13 Christopher Faylor <cgf@redhat.com>
947 * win32-nat.c (child_create_inferior): Honor 'tty' command.
949 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
951 * gdbtypes.c (check_stub_method): Make static.
952 (check_stub_method_group): New function.
953 * gdbtypes.h: Update prototypes.
954 * cp-support.c: New file.
955 * cp-support.h: New file.
957 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
958 (update_method_name_from_physname): New function.
959 (read_member_functions): Correct method names for operators
960 and v3 constructors/destructors. Separate v2 constructors and
962 * Makefile.in (stabsread.o): Update dependencies.
963 (SFILES): Add cp-support.c.
964 (COMMON_OBS): Add cp-support.o.
965 (cp_support_h, cp-support.o): Add.
967 * cp-valprint.c (cp_print_class_method): Call
968 check_stub_method_group instead of check_stub_method. Remove
970 * p-valprint.c (pascal_object_print_class_method): Likewise.
971 * valops.c (search_struct_method): Likewise.
972 (find_method_list, value_struct_elt_for_reference): Likewise.
974 2002-09-13 Andrew Cagney <cagney@redhat.com>
976 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
977 * gdbarch.h, gdbarch.c: Regenerate.
979 2002-09-13 Andrew Cagney <ac131313@redhat.com>
981 * frame.c (find_saved_register): Delete function.
982 * frame.h (find_saved_register): Delete declaration.
985 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
987 * mips-tdep.c (read_next_frame_reg): Re-hack using
988 frame_register_unwind.
990 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
992 * mips-tdep.c (mips_get_saved_register): Re-hack using
993 frame_register_unwind.
995 2002-09-12 Joel Brobecker <brobecker@gnat.com>
997 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
998 vector. Will be useful for Interix.
999 * gdbarch.h, gdbarch.c: Regenerate.
1001 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1002 name of the malloc function by NAME_OF_MALLOC.
1004 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1006 * value.h (find_function_in_inferior): Add const keyword to
1007 one of the parameters. Allows us to invoke this function with
1009 * valops.c (find_function_in_inferior): Likewise.
1011 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1013 * exec.c (xfer_memory): Fix compilation warning with old versions
1015 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1017 2002-09-12 David Carlton <carlton@math.stanford.edu>
1019 * symtab.h: Run through gdb_indent.h.
1020 Add 2002 to Copyright year list.
1022 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1024 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1026 * MAINTAINERS: Add myself to write after approval list.
1028 2002-09-11 J. Brobecker <brobecker@gnat.com>
1030 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1032 2002-09-11 J. Brobecker <brobecker@gnat.com>
1034 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1037 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1039 * procfs.c (do_detach): Clear current signal, not just fault.
1040 Corrects problem with breakpoint trap signal leaking to detached
1043 2002-09-10 Michael Snyder <msnyder@redhat.com>
1045 * buildsym.c (finish_block): Protect against null pointer.
1047 2002-09-10 Andrew Cagney <cagney@redhat.com>
1049 * infcmd.c (default_print_registers_info): Send all output to
1050 ``file'' instead of ``gdb_stdout''.
1052 2002-09-10 Michael Snyder <msnyder@redhat.com>
1054 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1055 LONGEST, and use signed register read (addresses are sign-
1058 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1060 * event-loop.c (gdb_do_one_event): Make public.
1061 * event-loop.h (gdb_do_one_event): Declare.
1063 2002-09-10 Jeff Law <law@redhat.com>
1065 * infttrace.c (child_resume): Simplify and rework to avoid
1068 2002-09-09 Fred Fish <fnf@intrinsity.com>
1070 * printcmd.c (print_scalar_formatted): "len" is the number of
1071 target bytes, NOT the number of target bits.
1073 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1075 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1076 * top.c (init_main): Set rl_terminal_name.
1078 2002-09-08 Aidan Skinner <aidan@velvet.net>
1080 * ada-lang.c (ada_array_bound, ada_type_match,
1081 _initialize_ada_language): Fix K&R definitions.
1082 * ada-tasks.c (get_current_task): Fix K&R definitions.
1083 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1085 2002-09-07 Christopher Faylor <cgf@redhat.com>
1087 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1090 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1092 * i386-tdep.c (i386_register_virtual_type,
1093 i386_register_convertible, i386_register_convert_to_virtual,
1094 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1095 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1096 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1097 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1098 Don't set push_arguments twice.
1100 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1101 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1102 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1103 sigtramp_end to NULL.
1104 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1106 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1108 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1111 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1112 * gdbarch.h, gdbarch.c: Re-generate.
1113 * blockframe.c (find_pc_sect_partial_function): Convert to use
1114 SIGTRAMP_START_P predicate.
1116 2002-09-05 Michael Snyder <msnyder@redhat.com>
1118 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1119 generic_dummy_frame method and old method. Also distinguish
1120 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1121 (arm_extract_return_value): Use new regcache method.
1123 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1124 adjustment that doesn't conform to the ABI.
1125 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1126 saved regcache, not from current regcache.
1128 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1130 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1133 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1135 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1136 if arm_apcs_32 is false.
1138 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1140 GDB 5.3 branch created.
1142 2002-09-03 Theodore A. Roth <troth@verinet.com>
1144 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1145 generic_unwind_get_saved_register.
1147 2002-09-03 David Carlton <carlton@math.stanford.edu>
1149 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1150 argument (PR gdb/653). Update call to smash_to_method_type.
1151 (read_structure_scope): Update call to dwarf2_add_member_fn.
1153 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1155 * x86-64-linux-tdep.c: Include gdb_string.h
1156 * x86-64-linux-nat.c: Ditto.
1158 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1160 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1161 when YYDEBUG is set to 1.
1162 * c-exp.y: Likewise.
1163 * f-exp.y: Likewise.
1164 * jv-exp.y: Likewise.
1165 * m2-exp.y: Likewise.
1166 * p-exp.y: Likewise.
1168 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1170 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1172 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1173 solib_svr4_fetch_link_map_offsets to
1174 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1175 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1176 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1177 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1178 solib-svr4.o, and solib-legacy.o.
1179 * config/i386/tm-nbsd.h: Include solib.h.
1181 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1183 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1184 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1185 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1186 comment noting that this needs its own target configuration.
1187 * config/i386/nbsd.mt: New file.
1188 * config/i386/nbsdaout.mt: Remove.
1189 * config/i386/nbsdelf.mt: Ditto.
1190 * config/i386/tm-nbsdaout.h: Ditto.
1192 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1194 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1195 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1196 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1198 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1199 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1200 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1202 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1204 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1205 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1206 * i386-tdep.h (i386bsd_init_abi): New prototype.
1207 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1208 function declaration.
1209 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1210 for NetBSD-a.out or NetBSD-ELF.
1211 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1212 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1213 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1214 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1216 (i386nbsd_pc_in_sigtramp): New function.
1217 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1218 i386nbsd_pc_in_sigtramp.
1219 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1220 and i386nbsdelf_init_abi OS ABI handlers.
1221 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1222 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1224 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1226 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1227 registers if the target really has them.
1229 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1231 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1234 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1236 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1238 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1239 (alphanbsd_skip_sigtramp_frame): New functions.
1240 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1241 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1242 to alphanbsd_sigcontext_addr.
1244 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1246 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1248 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1249 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1250 nbsd_pc_in_sigtramp.
1251 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1252 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1253 * nbsd-tdep.c: Include gdb_string.h.
1254 (nbsd_pc_in_sigtramp): New function.
1255 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1256 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1257 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1258 ppcnbsd_pc_in_sigtramp.
1259 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1260 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1261 shnbsd_pc_in_sigtramp.
1262 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1263 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1264 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1266 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1268 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1269 watchpoints to NULL.
1270 (insert_breakpoints): set val field of watchpoints if NULL.
1273 2002-08-29 Jim Blandy <jimb@redhat.com>
1275 * symtab.c (lookup_symbol_aux): In the cases where we find a
1276 minimal symbol of an appropriate name and use its address to
1277 select a symtab to read and search, use `name' (as passed to us)
1278 as the demangled name when searching the symtab's global and
1279 static blocks, not the minsym's name.
1281 2002-08-29 Keith Seitz <keiths@redhat.com>
1283 * stack.c (print_frame_info_base): Always set current_source_symtab
1284 and current_source_line.
1286 2002-08-29 Donn Terry <donnte@microsoft.com>
1288 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1290 2002-08-28 Keith Seitz <keiths@redhat.com>
1292 * stack.c (select_frame): Add FIXME concerning selected-frame
1294 (select_frame_command): Send selected-frame-level-changed
1295 event notification, but only if the level actually changed.
1296 (up_silently_base): Add selected-frame-level-changed event
1298 (down_silently_base): Likewise.
1300 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1302 * Makefile.in: Update dependencies for all gdb/*.c files.
1304 2002-08-27 Tom Tromey <tromey@redhat.com>
1306 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1307 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1308 Update dependencies.
1309 * i387-tdep.c: Include gdb_string.h.
1310 * osabi.c: Likewise.
1311 * i386-linux-nat.c: Likewise.
1312 * lin-lwp.c: Likewise.
1313 * ax-gdb.c: Likewise.
1314 * signals/signals.c: Likewise.
1315 * jv-valprint.c: Likewise.
1316 * p-lang.c: Likewise.
1317 * c-valprint.c: Likewise.
1318 * cp-abi.c: Likewise.
1320 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1322 * cli/cli-script.h (copy_command_lines): Export.
1323 * breakpoint.c: Include cli/cli-script.h.
1324 * Makefile.in (breakpoint.o): Update dependencies.
1326 2002-08-26 Michael Snyder <msnyder@redhat.com>
1328 * breakpoint.c (insert_breakpoints): Protect all references
1329 to 'process_warning'. Shorten long lines.
1331 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1333 * cli/cli-script.c (copy_command_lines): New function.
1334 * defs.h (copy_command_lines): Export.
1335 * testsuite/gdb.base/commands.exp: New tests for commands
1336 attached to a temporary breakpoint, and for commands that
1337 delete the breakpoint they are attached to.
1339 2002-08-26 Michael Snyder <msnyder@redhat.com>
1341 * breakpoint.c (bpstat_stop_status): Instead of copying the
1342 pointer to the breakpoint commands struct, make a new copy
1343 of the struct and point to that.
1344 (bpstat_clear): Free the commands struct.
1345 (bpstat_clear_actions): Free the commands struct.
1346 (bpstat_do_actions): Free the command actions. Also execute
1347 the local cleanups, instead of deleting them.
1348 (delete_breakpoint): Leave the commands field of the bpstat
1349 chain alone -- it will be freed later.
1351 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1353 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1354 deleted in 2002-08-20 commit. This function is still used by
1357 2002-08-26 Keith Seitz <keiths@redhat.com>
1359 * gdb-events.sh: Add selected-frame-level-changed event.
1360 * gdb-events.c: Regenerated.
1361 * gdb-events.h: Regenerated.
1363 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1366 * inflow.c (terminal_save_ours): New function to save terminal
1368 * inferior.h (terminal_save_ours): Declare.
1369 * target.c (debug_to_terminal_save_ours): New function.
1370 (cleanup_target): Defaults to_terminal_save_ours.
1371 (update_current_target): Inherit to_terminal_save_ours.
1372 (setup_target_debug): Set to_terminal_save_ours.
1373 * target.h (target_terminal_save_ours): New to save terminal settings.
1374 (target_ops): New member to_terminal_save_ours.
1375 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1376 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1377 * inftarg.c (init_child_ops): Likewise.
1378 * m3-nat.c (init_m3_ops): Likewise.
1379 * procfs.c (init_procfs_ops): Likewise.
1380 * wince.c (init_child_ops): Likewise.
1381 * win32-nat.c (init_child_ops): Likewise.
1382 * sol-thread.c (init_sol_thread_ops): Likewise.
1384 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1386 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1387 use regcache_* functions.
1388 (i386_gdbarch_init): Set store_return_value instead of
1389 deprecated_store_return_value.
1391 * regcache.c (regcache_raw_write_signed,
1392 regcache_raw_write_unsigned): New functions.
1393 * regcache.h (regcache_raw_write_signed,
1394 regcache_raw_write_unsigned): New prototypes.
1396 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1398 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1399 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1400 source file dependencies. Cleanup corresponding generator rules.
1402 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1404 * regcache.h (register_offset_hack): Declare.
1405 (regcache_cooked_read_using_offset_hack): Declare.
1406 (regcache_cooked_write_using_offset_hack): Declare.
1408 * regcache.c (register_offset_hack): New function.
1409 (regcache_cooked_read_using_offset_hack): New function.
1410 (regcache_cooked_write_using_offset_hack): New function.
1411 (regcache_dump): Check that the registers, according to their
1412 offset, are packed hard against each other.
1413 (cooked_xfer_using_offset_hack): New function.
1415 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1417 * regcache.c (struct regcache_descr): Add field register_type.
1418 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1420 (init_regcache_descr): Initialize register_type. Pass the descr
1421 to init_legacy_regcache_descr. Use register_type instead of
1422 REGISTER_VIRTUAL_TYPE.
1423 (register_type): New function.
1424 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1425 * regcache.h (register_type): Declare.
1427 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1429 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1430 instead of deprecated_store_return_value. Fix fallout from
1431 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1433 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1435 * regcache.c (max_register_size): New function.
1436 (init_legacy_regcache_descr): Ensure that max_register_size is
1437 large enough for REGISTER_VIRTUAL_SIZE.
1438 * regcache.h (max_register_size): Declare.
1440 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1442 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1444 (e500_extract_return_value): Change type of valbuf pointer to
1447 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1449 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1452 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1453 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1454 long long) to prevent compiler warning on 64-bit systems.
1456 2002-08-23 Andrew Cagney <cagney@redhat.com>
1458 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1459 (DEPRECATED_STORE_RETURN_VALUE): New method.
1460 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1461 * gdbarch.h, gdbarch.c: Re-generate.
1463 * values.c (set_return_value): Pass current_regcache to
1465 * arch-utils.h (legacy_store_return_value): Declare.
1466 * arch-utils.c (legacy_store_return_value): New function.
1467 (legacy_extract_return_value): Update parameters.
1469 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1471 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1472 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1473 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1474 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1475 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1476 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1477 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1478 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1479 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1480 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1483 * i386-tdep.c (i386_extract_return_value): Update.
1484 * arch-utils.c (legacy_extract_return_value): Update.
1485 * frv-tdep.c (frv_gdbarch_init): Update.
1486 * cris-tdep.c (cris_gdbarch_init): Update.
1487 * d10v-tdep.c (d10v_gdbarch_init): Update.
1488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1489 * m68k-tdep.c (m68k_gdbarch_init): Update.
1490 * mcore-tdep.c (mcore_gdbarch_init): Update.
1491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1492 * s390-tdep.c (s390_gdbarch_init): Update.
1493 * sparc-tdep.c (sparc_gdbarch_init): Update.
1494 * sh-tdep.c (sh_gdbarch_init): Update.
1495 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1496 * v850-tdep.c (v850_gdbarch_init): Update.
1497 * avr-tdep.c (avr_gdbarch_init): Update.
1498 * ia64-tdep.c (ia64_gdbarch_init): Update.
1499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1500 * vax-tdep.c (vax_gdbarch_init): Update.
1501 * alpha-tdep.c (alpha_gdbarch_init): Update.
1502 * arm-tdep.c (arm_gdbarch_init): Update.
1503 * mips-tdep.c (mips_gdbarch_init): Update.
1504 * i386-tdep.c (i386_gdbarch_init): Update.
1506 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1508 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1509 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1511 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1513 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1516 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1518 * infrun.c (handle_inferior_event): Move a comment outside of a
1519 function call, in order to avoid indent reformatting this part
1520 of the code in an unreadable way.
1522 2002-08-23 Grace Sainsbury <graces@redhat.com>
1524 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1525 when breakpoints fail. Move general breakpoint error messages to
1527 * breakpoint.c (insert_breakpoints): Change warnings when
1528 breakpoints are nto inserted to specify the type. Remove call to
1529 memory_error when hardware breakpoints can't be inserted. Remove
1530 multiple calls to warning so all messages are sent to the user at
1532 (delete_breakpoints): Make insert error messsages more explicit.
1534 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1536 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1537 gdbserver/ChangeLog.
1539 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1541 * i386-tdep.c: Include "objfiles.h".
1542 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1543 skip_trampoline_code.
1544 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1545 (CPLUS_MARKER): Define to '.'.
1547 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1549 (linux_corefile_thread_callback): Increase args->num_notes.
1550 (linux_make_note_section): Initialize thread_args.num_notes, and
1551 use it to determine whether notes for any threads were created.
1553 2002-08-23 Donn Terry <donnte@microsoft.com>
1555 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1556 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1558 (write_with_trace): Conditionalize out the switch branch handling
1559 PCSHOLD if the corresponding macro is not defined. Likewise for
1560 PRSABORT and PRSTOP.
1561 This change will be needed by the Interix port.
1563 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1566 write_register wherever possible instead of manipulating the
1567 register bytes directly.
1568 Assign VALUE_CONTENTS to a variable and use that.
1569 The GPR numbers are now dependent on the architecture.
1571 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1573 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1575 (skip_prologue): Add support for BookE/e500 instructions.
1576 (e500_extract_return_value): New function.
1577 (frame_get_saved_regs): Add support for saving ev registers and
1579 (e500_store_return_value): New function.
1580 (rs6000_gdbarch_init): Move up default intializations of
1581 deprecated_extract_return_value and store_return_value. Overwrite
1582 init of store_return_value with e500 specific version.
1583 Set extract_return_value for e500.
1585 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1587 * blockframe.c (generic_call_dummy_register_unwind): Use
1588 regcache_cooked_read to catch cases in which the variable is
1589 stored in a pseudo register.
1591 2002-08-22 Andrew Cagney <cagney@redhat.com>
1593 * NEWS: Mention that the i960 has been made obsolete.
1594 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1596 (remote-nrom.o): Obsolete target.
1597 (remote-nindy.o, i960-tdep.o): Ditto.
1598 * remote-nrom.c: Make file obsolete.
1599 * remote-nindy.c, remote-vx960.c: Ditto.
1600 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1601 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1602 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1603 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1604 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1605 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1606 i960-*-vxworks* obsolete.
1607 * MAINTAINERS: Note that the i960 is obsolete.
1609 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1611 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1612 detach to allow reinitialization.
1614 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1616 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1619 2002-08-22 Jim Blandy <jimb@redhat.com>
1621 * coffread.c (coff_symfile_read): Don't try to read the line
1622 number table from disk if the image file doesn't have a symbol
1623 table; we'll never actually look at the info anyway, and Windows
1624 ships DLL's with bogus file offsets for the line number data.
1626 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1628 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1631 2002-08-21 Michael Snyder <msnyder@redhat.com>
1633 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1634 (MSYMBOL_SIZE): Replace macro with function.
1635 (DEFAULT_MIPS_TYPE): Delete unused macro.
1636 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1637 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1639 2002-08-21 Jim Blandy <jimb@redhat.com>
1641 * valops.c (value_cast): Simplify and correct logic for doing a
1642 static cast from a pointer to a base class to a pointer to a
1645 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1647 * infcmd.c (default_print_registers_info): Replace
1649 (registers_info): Use gdbarch_print_registers_info instead of
1651 * inferior.h (default_print_registers_info): Replace
1653 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1654 (DO_REGISTERS_INFO): Change to a predicate function.
1655 * gdbarch.h, gdbarch.c: Regenerate.
1657 2002-08-21 Keith Seitz <keiths@redhat.com>
1659 * gdb-events.sh: Add target-changed event.
1660 * gdb-events.c: Regenerated.
1661 * gdb-events.c: Regenerated.
1662 * valops.c (value_assign): Add target-changed event notification
1663 to inlval_register, lval_memory, and lval_reg_frame_relative.
1665 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1667 * NEWS: Add an entry regarding the improvement of the next/step
1668 operation on Alpha Tru64 multi-processor machines.
1670 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1672 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1674 * Makefile.in: Update all _h macro definitions.
1675 * Makefile.in (install-gdbtk): Move to install section.
1676 (rdi-share/libangsd.a): Move to end of file.
1678 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1680 * frame.c (frame_register_unwind): When a register, set addrp to
1681 the register's byte.
1683 2002-08-20 Michael Snyder <msnyder@redhat.com>
1685 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1686 used locally, so move them from the target machine header to here.
1687 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1688 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1690 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1692 2002-08-20 Andrew Cagney <cagney@redhat.com>
1694 * NEWS: Mention that the Apollo line was made obsolete.
1695 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1696 m68*-hp-hpux* obsolete.
1697 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1698 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1699 * buildsym.c (make_blockvector): Make static.
1700 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1701 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1702 (ALLDEPFILES): Remove dstread.c.
1703 (dstread.o): Obsolete make rule.
1704 * dstread.c: Makefile obsolete.
1706 * config/m68k/hp300hpux.mt: Ditto.
1707 * config/m68k/hp300hpux.mh: Ditto.
1708 * config/m68k/hp300bsd.mt: Ditto.
1709 * config/m68k/hp300bsd.mh: Ditto.
1710 * config/m68k/apollo68b.mt: Ditto.
1711 * config/m68k/apollo68v.mh: Ditto.
1712 * config/m68k/apollo68b.mh: Ditto.
1714 2002-08-20 Michael Snyder <msnyder@redhat.com>
1716 * mips-tdep.c (mips_in_return_stub): Make static.
1717 (mips_gdbarch_init): Set in_solib_return_trampoline.
1718 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1720 2002-08-20 Michael Snyder <msnyder@redhat.com>
1722 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1723 * gdbarch.c, gdbarch.h: Regenerate.
1724 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1726 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1728 2002-08-20 Michael Snyder <msnyder@redhat.com>
1730 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1731 (mips_gdbarch_init): Set skip_trampoline_code,
1732 in_solib_call_trampoline.
1733 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1734 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1736 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1738 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1740 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1741 vector type for ev registers.
1742 (e500_pseudo_register_read): New function.
1743 (e500_pseudo_register_write): New function.
1744 (e500_dwarf2_reg_to_regnum): New function.
1745 (PPC_UISA_NOFP_SPRS): New macro.
1746 (PPC_EV_REGS): New macro.
1747 (PPC_GPRS_PSEUDO_REGS): New macro.
1748 (registers_e500): New register set for e500.
1749 (variants): Add e500 variant.
1750 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1751 before setting architectural dependent variations. Initialize ev
1752 registers numbers. Add case for e500 architecture. Set the
1753 number of pseudo registers.
1755 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1757 * rs6000-tdep.c: Clean up comments.
1759 2002-08-20 Andrew Cagney <cagney@redhat.com>
1761 * h8300-tdep.c: Re-indent file.
1763 2002-08-20 Jim Blandy <jimb@redhat.com>
1765 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1768 2002-08-20 Keith Seitz <keiths@redhat.com>
1770 * breakpoints.c (watch_command_1): Use internal breakpoint
1771 when setting a watchpoint_scope breakpoint.
1773 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1775 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1776 (build_builtin_type_vec64i): Ditto.
1777 (build_builtin_type_vec128): Ditto.
1778 (build_builtin_type_vec128i): Ditto.
1780 2002-08-19 Michael Snyder <msnyder@redhat.com>
1782 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1783 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1784 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1785 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1786 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1787 CALL_DUMMY_ADDRESS): Delete.
1788 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1789 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1790 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1791 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1792 push_return_address.
1793 (mips_register_raw_size, mips_eabi_use_struct_convention,
1794 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1795 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1796 mips_init_extra_frame_info, mips_eabi_push_arguments,
1797 mips_n32n64_push_arguments, mips_push_return_address,
1798 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1799 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1801 2002-08-19 Michael Snyder <msnyder@redhat.com>
1803 * mips-tdep.c (mips_frame_num_args): New function.
1804 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1805 frame_saved_pc, frame_args_address, frame_locals_address,
1806 frame_num_args, and frame_args_skip.
1807 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1808 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1809 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1810 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1812 2002-08-20 Michael Snyder <msnyder@redhat.com>
1814 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1815 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1816 * mips-tdep.c (mips_store_struct_return): New function.
1817 (mips_extract_struct_value_address): New function.
1818 (mips_gdbarch_init): Set store_struct_return and
1819 extract_struct_value_address.
1821 2002-08-20 David Carlton <carlton@math.stanford.edu>
1823 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1824 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1825 (read_file_scope): Check that line_header is nonzero before
1826 decoding macro information.
1828 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1830 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1831 flag the general-purpose registers as floating-point on targets
1832 that don't support the floating-point registers.
1834 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1836 * rs6000-tdep.c (altivec_register_p): Delete.
1837 (rs6000_do_altivec_registers): Delete.
1838 (rs6000_altivec_registers_info): Delete.
1839 (rs6000_do_registers_info): Delete.
1840 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1841 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1843 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1845 * infcmd.c (do_registers_info): Print vector registers in hex
1847 (print_vector_info): Check that printing registers
1849 (print_float_info): Ditto.
1851 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1853 * mips-tdep.c (mips_gdbarch_init): Update.
1854 (mips_o32_extract_return_value): Rewrite.
1855 (mips_o32_store_return_value): Rewrite.
1856 (mips_o32_xfer_return_value): New function.
1857 (mips_xfer_register): Tweak debug print message. Allow for
1858 buf_offset when dumping the value transfered.
1860 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1862 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1863 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1864 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1865 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1866 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1868 2002-08-14 Michael Snyder <msnyder@redhat.com>
1870 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1872 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1874 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1876 (P): New macro to define a register as a pseudo register.
1877 (R, R4, R8, R16, FR32, R64, R0): Updated.
1878 (struct variant): Add new fields for number of pseudo registers
1879 and number of total registers.
1880 (tot_num_registers): New macro replacing....
1881 (num_registers): ...deleted macro.
1882 (num_registers): New function.
1883 (num_pseudo_registers): New function.
1884 (variants): Update all variants to intialize new fields correctly.
1885 Postpone initialization of number of pseudo regs and real regs.
1886 (init_variants): New function.
1887 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1890 2002-08-19 David Carlton <carlton@math.stanford.edu>
1892 * valops.c (search_struct_field): Change error message to treat
1893 return value of 0 from value_static_field as meaning that field is
1895 (value_struct_elt_for_reference): Ditto.
1896 * values.c (value_static_field): Treat an unresolved location the
1897 same as a nonexistent symbol. Fix PR gdb/635.
1898 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1899 enclosed. Fix PR gdb/574.
1900 * MAINTAINERS: Add self to Write After Approval list.
1902 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1904 * mips-tdep.c (mips_xfer_register): New function.
1905 (mips_n32n64_extract_return_value): Rewrite.
1906 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1907 instead of deprecated_extract_return_value.
1909 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1911 * rs6000-tdep.c (TDEP): Delete macro.
1912 (branch_dest): Replace use of TDEP macro with its body.
1913 (rs6000_pop_frame): Ditto.
1914 (rs6000_push_arguments): Ditto.
1915 (rs6000_skip_trampoline_code): Ditto.
1916 (rs6000_frame_saved_pc): Ditto.
1917 (rs6000_frame_chain): Ditto.
1918 (rs6000_register_name): Ditto.
1919 (rs6000_register_byte): Ditto.
1920 (rs6000_register_raw_size): Ditto.
1921 (rs6000_register_virtual_type): Ditto.
1922 (rs6000_register_convertible): Ditto.
1923 (rs6000_convert_from_func_ptr_addr): Ditto.
1925 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1927 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1929 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1930 MIPS_LINUX_JB_ELEMENT_SIZE.
1931 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1932 for MAX_REGISTER_RAW_SIZE arrays.
1933 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1934 MIPS_LINUX_JB_ELEMENT_SIZE.
1936 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1938 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1940 2002-08-19 Aidan Skinner <aidan@velvet.net>
1942 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1943 ada-valprint.c ada-tasks.c.
1944 (YYFILES): Add ada-exp.y.
1945 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1946 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1947 (ada-exp.tab.o): New target.
1949 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1951 * regcache.c (regcache_xfer_part): New function.
1952 (regcache_raw_read_part): New function.
1953 (regcache_raw_write_part): New function.
1954 (regcache_cooked_read_part): New function.
1955 (regcache_cooked_write_part): New function.
1956 * regcache.h (regcache_raw_read_part): Declare.
1957 (regcache_raw_write_part): Declare.
1958 (regcache_cooked_read_part): Declare.
1959 (regcache_cooked_write_part): Declare.
1961 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1963 * remote.c (remote_open_1): Add async_p.
1964 (remote_async_open_1): Delete.
1965 (open_remote_target): Delete.
1966 (remote_open, extended_remote_open): Update calls to remote_open_1.
1967 (remote_async_open, extended_remote_async_open): Call
1968 remote_open_1 instead of remote_async_open_1.
1970 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1972 * blockframe.c: Fix a few coding standard violations.
1974 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1976 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1978 * config/i386/tm-i386sco5.h: ... here. File removed.
1979 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1981 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1982 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1983 (TM_FILE): Set to tm-i386.h.
1984 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1985 * config/i386/tm-i386v.h: Remove file.
1986 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1987 instead of "i386/tm-i386v.h".
1988 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1989 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1991 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1992 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1995 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1997 * config/i386/nm-i386v.h: Add protection against
1999 (i386_register_u_addr): Remove prototype.
2000 (register_u_addr): New prototype.
2001 (REGISTER_U_ADDR): Redefine accordingly.
2002 * i386v-nat.c: Improve several comments.
2003 (i386_register_u_addr): Change signature and rename to
2004 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2007 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2009 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2010 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2011 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2012 deprecated_extract_return_value.
2013 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2014 rename mips_o32o64_push_arguments.
2015 (mips_gdbarch_init): Update.
2016 (mips_extract_return_value): Delete.
2017 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2018 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2019 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2020 (mips_n32n64_extract_return_value): Clone
2021 mips_extract_return_value.
2022 (mips_store_return_value): Delete.
2023 (mips_o32_store_return_value): Clone mips_store_return_value.
2024 (mips_o64_store_return_value): Clone mips_store_return_value.
2025 (mips_eabi_store_return_value): Clone mips_store_return_value.
2026 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2028 2002-08-18 Aidan Skinner <aidan@velvet.net>
2030 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2031 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2033 2002-08-18 Aidan Skinner <aidan@velvet.net>
2035 * ada-lang.c: Run through gdb_indent.sh.
2036 * ada-lang.h: Run through gdb_indent.sh.
2037 * ada-tasks.c: Run through gdb_indent.sh.
2038 * ada-typeprint.c: Run through gdb_indent.sh.
2039 * ada-valprint.c: Run through gdb_indent.sh.
2041 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2043 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2046 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2048 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2050 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2051 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2053 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2054 write_register_gen instead of write_register_bytes.
2056 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2057 i[3456]-*-osf1mk* configurations have been made obsolete.
2058 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2059 i[3456]86-*-osf1mk* hosts obsolete.
2060 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2062 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2063 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2064 config/i386/i386m3.mt, config/i386/nm-m3.h,
2065 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2066 config/i386/i386mk.mh, config/i386/i386mk.mt,
2067 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2069 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2070 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2071 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2073 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2075 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2076 (hppa_value_returned_from_stack): Declare.
2077 (hppa_extract_return_value): Declare.
2078 * config/pa/hppa.mt: New file.
2079 * configure.tgt: Recognize hppa*-*-*.
2080 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2082 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2084 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2087 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2089 * top.c (gdb_rl_operate_and_get_next): Make sure
2090 operate-and-get-next functions correctly even when the history
2091 list is completely filled.
2093 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2095 * MAINTAINERS (Target Instruction Set Architectures): Rename
2096 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2097 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2098 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2099 already listed under Host/Native.
2101 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2102 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2105 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2107 * config/ia64/ia64.mt: New file.
2108 * config/alpha/alpha.mt: New file.
2109 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2110 ia64-linux-gnu. Mention that ia64-elf is broken.
2111 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2113 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2115 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2116 generic_func_frame_valid instead of func_frame_valid.
2118 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2120 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2121 procfs appears to be broken when debugging on multi-processor
2122 machines. So enable software single stepping in order to avoid
2123 using the procfs interface to do next/step operations, using
2124 internal breakpoints instead.
2126 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2127 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2128 make this pc address equal to the value it would have if the
2129 system stepping capability was used. Also set a new flag used
2130 to ensure that we don't readjust the PC one more time later.
2132 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2133 address by DECR_PC_AFTER_BREAK when software single step is
2134 in use for this architecture, as this has already been taken
2135 care of in handle_inferior_event().
2137 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2139 * infrun.c (handle_inferior_event): Minor reformatting, to make
2140 a rather long condition expression easier to read.
2142 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2144 * Makefile.in (gdbtk.o): Move to end of file.
2145 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2146 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2147 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2148 (gdbtk-wrapper.o, gdbres.o): Ditto.
2150 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2152 * Makefile.in (copying.o): Separate out compile rule.
2153 (hpux-thread.o, procfs.o, signals.o): Ditto.
2154 (v850ice.o, z8k-tdep.o): Ditto.
2155 (tui-file.o): Move to TUI section.
2156 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2157 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2159 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2161 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2162 skip_trampoline_code, for better namespace-proofing.
2164 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2166 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2168 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2170 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2172 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2173 signal, check whether we hit a breakpoint before checking for a
2174 single step breakpoint. Otherwise, GDB fails to notice that a
2175 breakpoint has been hit when stepping onto a breakpoint.
2177 2002-08-16 Keith Seitz <keiths@redhat.com>
2179 * gdb-events.sh (clear_gdb_event_hooks): New function.
2180 * gdb-events.c: Regenerate.
2181 * gdb-events.h: Regenerate.
2183 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2185 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2186 not_a_sw_breakpoint.
2187 * breakpoint.h (bpstat_stop_status): Add parameter names.
2189 2002-08-16 Grace Sainsbury <graces@redhat.com>
2191 * remote.c (remote_insert_hw_breakpoint)
2192 (remote_remove_hw_breakpoint): Fix calculation of length field
2195 2002-08-15 Michael Snyder <msnyder@redhat.com>
2197 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2198 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2199 (supply_fpregset): Ditto.
2201 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2202 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2203 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2204 (TARGET_READ_SP): Delete.
2205 (DO_REGISTERS_INFO): Delete.
2206 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2208 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2209 from macros to functions.
2211 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2212 (mips_register_convertible, mips_register_convert_to_virtual,
2213 mips_register_convert_to_raw): Make static.
2214 (mips_read_sp): New function.
2215 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2216 (mips_do_registers_info): Make static.
2217 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2218 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2219 (mips_register_convert_from_type, mips_register_convert_to_type):
2221 (mips_gdbarch_init): Set up function_start_offset,
2222 register_virtual_size, pc_in_sigtramp.
2224 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2226 * infcmd.c (vector_info): New function.
2227 (_initialize_infcmd): Add command "info vector".
2228 (print_vector_info): New function.
2230 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2231 * gdbarch.h, gdbarch.c: Regenerate.
2233 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2235 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2236 ``print_all''. Only print vector registers when ``print_all''.
2238 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2240 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2241 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2243 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2244 Add `args' parameter.
2245 * gdbarch.h, gdbarch.c: Regenerate.
2247 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2249 * infcmd.c (float_info): Call print_float_info.
2250 (print_float_info): New function. By default, print the
2251 floating-point registers.
2253 * arch-utils.h (default_print_float_info): Delete declaration.
2254 * arch-utils.c (default_print_float_info): Delete function.
2256 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2258 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2261 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2264 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2265 * configure.host: Make i[3456]86-*-aix host obsolete.
2266 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2267 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2268 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2269 config/i386/xm-i386aix.h: Make files obsolete.
2270 * i386aix-nat.c: Make file obsolete.
2271 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2272 (i386aix-nat.o): Make target obsolete.
2274 * config/i386/nm-gnu.h: Removed.
2275 * config/i386/nm-i386gnu.h: New file.
2276 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2277 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2279 * config/i386/tm-i386gnu.h: ... here. Removed.
2280 * config/i386/xm-i386gnu.h: Removed.
2281 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2282 (NAT_FILE): Set to nm-i386gnu.h.
2283 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2284 * i386-tdep.c: New file.
2285 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2286 (i386gnu-tdep.o): Specify dependencies.
2288 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2290 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2291 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2292 Adjust a few comments to reflect reality a bit closer.
2293 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2294 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2295 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2296 target_insert_watchpoint, target_remove_watchpoint):
2298 * config/i386/nm-i386sco5.h: ... here.
2299 (kernel_u_size): Add prototype. Improve a few comments and add
2300 protection against multiple inclusion.
2302 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2305 * uw-thread.c (SP_ARG0): Define if not already defined.
2306 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2308 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2310 * config/i386/tm-i386.h: Don't include "regcache.h".
2312 * i387-tdep.h (i387_print_float_info): New prototype.
2313 * i387-tdep.c (print_i387_value, print_i387_ext,
2314 print_i387_status_word, print_i387_control_word): Add `struct
2315 ui_file *' argument and use it for output.
2316 (i387_print_float_info): Renamed from i387_float_info. Add
2317 `struct gdbarch *' and `struct ui_file *' arguments and use the
2319 * i386-tdep.c: Include "i387-tdep.h".
2320 (i386_gdbarch_init): Set print_float_info.
2321 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2322 (FLOAT_INFO): Remove define.
2324 2002-08-13 Michael Snyder <msnyder@redhat.com>
2326 * mips-tdep.c (mips_push_arguments): Rename to
2327 mips_eabi_push_arguments, and tune for EABI.
2328 (MIPS_REGS_HAVE_HOME_P): Delete.
2329 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2330 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2331 Delete references to mips_regs_have_home_p.
2333 2002-08-14 Keith Seitz <keiths@redhat.com>
2335 * Makefile.in (install-gdbtk): Create insight plugin directory.
2336 Install plugins.tcl file.
2338 2002-08-14 Keith Seitz <keiths@redhat.com>
2340 * configure.in: Move SUBDIRS to near top of the file so that
2341 --enable options may add things to it.
2342 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2343 * configure: Regenerate.
2345 2002-08-13 Michael Snyder <msnyder@redhat.com>
2347 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2348 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2349 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2351 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2353 * vax-tdep.c (vax_get_saved_register): Delete function.
2354 (vax_gdbarch_init): Update.
2355 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2356 (ns32k_gdbarch_init): Update.
2357 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2358 (alpha_gdbarch_init): Update.
2360 2002-08-13 Andrew Cagney <cagney@redhat.com>
2362 * regcache.c (init_regcache_descr): Overallocate the
2363 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2364 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2366 (set_register_cached): Add range checking assertions. Use
2369 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2371 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2372 numbers for MMX registers.
2374 2002-08-13 Andrew Cagney <cagney@redhat.com>
2376 * i386-tdep.c (i386_gdbarch_init): Use
2377 generic_unwind_get_saved_register.
2379 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2381 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2382 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2384 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2385 Delete. Add comment regarding this now-deleted target method.
2387 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2389 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2390 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2391 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2392 real PC and the page number (if it's within the memory bank window).
2393 (m68hc11_pseudo_register_write): Likewise when saving.
2394 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2395 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2396 (m68hc11_register_raw_size): And use 32-bit for it.
2397 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2398 16K memory bank is used by the prog; also use the virtual pc.
2400 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2402 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2403 (m68hc11_gdbarch_init): Install it in gdbarch.
2404 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2405 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2406 (MSYMBOL_SIZE): New for documentation.
2407 (insn_return_kind): Enum to specify how a function returns.
2408 (frame_extra_info): Cleanup and record the return mode.
2409 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2410 register in address computation.
2411 (m68hc11_get_return_insn): New to obtain the return instruction used
2413 (m68hc11_frame_init_saved_regs): Take into account the return
2414 instruction used by the function for far and interrupt functions.
2415 (m68hc11_init_extra_frame_info): Take into account page register.
2416 (m68hc11_frame_args_address): Adjust according to the return mode.
2417 (show_regs): Print page register only when it's used.
2419 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2421 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2422 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2423 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2425 (m68hc11_register_raw_size): Likewise.
2427 2002-08-13 Andrew Cagney <cagney@redhat.com>
2429 * i386-tdep.c (i386_register_name): Handle mmx registers.
2430 (mmx_regnum_p): New function.
2431 (i386_mmx_names): New array.
2432 (mmx_num_regs): New variable.
2433 (i386_pseudo_register_read): New function.
2434 (i386_pseudo_register_write): New function.
2435 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2437 * regcache.c (regcache_raw_read_unsigned): New function.
2438 (regcache_raw_read_signed): New function.
2439 * regcache.h (regcache_raw_read_unsigned): Declare.
2440 (regcache_raw_read_signed): Declare.
2442 2002-08-13 Andrew Cagney <cagney@redhat.com>
2444 * regcache.c (regcache_raw_read_as_address): Delete function.
2445 (regcache_cooked_read_signed): New function.
2446 (regcache_cooked_read_unsigned): New function.
2447 * regcache.h (regcache_cooked_read_signed): Declare.
2448 (regcache_cooked_read_unsigned): Declare.
2449 (regcache_raw_read_as_address): Delete declaration.
2451 * blockframe.c (generic_read_register_dummy): Use
2452 regcache_cooked_read_unsigned.
2453 * i386-tdep.c (i386_extract_struct_value_address): Use
2454 regcache_cooked_read_unsigned.
2456 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2459 double sizes according to ELF ABI flags.
2460 (gdbarch_tdep): Record elf_flags.
2462 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2464 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2465 (m6812_prolog): They can appear in 68HC12 function prologue.
2466 (m68hc11_frame_chain): Cleanup.
2468 2002-08-12 Andrew Cagney <cagney@redhat.com>
2470 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2472 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2473 (i386_linux_register_raw_size): Delete function.
2474 (i386_linux_init_abi): Update.
2475 * i386-tdep.c (i386_register_raw_size): Delete function.
2476 (i386_register_byte): Delete function.
2477 (i386_gdbarch_init): Update.
2478 (i386_register_size): Delete array.
2479 (i386_register_offset): Delete array.
2481 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2482 (REGISTER_RAW_SIZE): Delete macro.
2483 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2484 (REGISTER_BYTE): Delete macro.
2486 2002-08-11 Aidan Skinner <aidan@velvet.net>
2488 * ada-lang.c (ada_lookup_partial_symbol)
2489 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2490 prototype names so that grep ^func works properly.
2492 * ada-lang.c (ada_array_element_type)
2493 (ada_lookup_partial_symbol): Fix typos in parameter list.
2495 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2496 Fix prototype names so that grep ^func works properly.
2498 2002-08-10 Andrew Cagney <cagney@redhat.com>
2499 Elena Zannoni <ezannoni@redhat.com>
2500 Martin M. Hunt <hunt@redhat.com>
2502 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2503 (build_builtin_type_vec128i): Set the vector bit.
2504 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2505 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2506 (build_builtin_type_vec64): New function.
2507 (build_builtin_type_vec64i): New function.
2508 (build_gdbtypes): Initialize builtin_type_vec64 and
2509 builtin_type_vec64i.
2511 2002-08-09 Andrew Cagney <cagney@redhat.com>
2513 * regcache.c (regcache_dump): Compare the register offset
2515 * arch-utils.c (generic_register_byte): New function.
2516 * arch-utils.h (generic_register_byte): Declare.
2517 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2520 2002-08-09 Andrew Cagney <cagney@redhat.com>
2522 * regcache.c: Include "gdbcmd.h"
2523 (_initialize_regcache): Add commands "maintenance print
2524 registers", "maintenance print raw-registers" and "maintenance
2525 print cooked-registers".
2526 (enum regcache_dump_what): Define.
2527 (dump_endian_bytes): New function.
2528 (regcache_dump): New function.
2529 (regcache_print): New function.
2530 (maintenance_print_registers): New function.
2531 (maintenance_print_raw_registers): New function.
2532 (maintenance_print_cooked_registers): New function.
2533 * Makefile.in (regcache.o): Update dependencies.
2535 2002-08-09 Michael Snyder <msnyder@redhat.com>
2537 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2538 (mips_push_arguments): Correct some comments. Use paddr_nz
2539 for printing addresses in debug output. Replace static
2540 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2541 (mips_n32n64_push_arguments): New function, cloned from
2542 mips_push_arguments and tuned for the n32/n64 ABI.
2543 (mips_push_register): Buffer needs dynamic allocation.
2544 (mips_print_register): Ditto.
2545 (do_gp_register_row): Ditto.
2546 (mips_store_return_value): Ditto.
2547 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2549 2002-08-09 Don Howard <dhoward@redhat.com>
2551 * memattr.c (mem_info_command): Print special case of upper bound
2552 as max CORE_ADDR + 1.
2554 2002-08-08 Michael Snyder <msnyder@redhat.com>
2556 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2557 returns structs by ref if they're too big to fit in two registers.
2559 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2561 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2563 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2564 mips_find_saved_regs().
2565 (mips_pop_frame): Likewise.
2567 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2569 * blockframe.c (frame_saved_regs_register_unwind): Revise
2570 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2573 2002-08-09 Grace Sainsbury <graces@redhat.com>
2575 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2576 T-packets; the 'a' is not taken as a register number.
2577 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2578 (remote_stopped_data_address): New functions; add to target
2580 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2581 prototypes to match other implementations of this
2582 function. replace integer argument with pointer -- the length
2583 field in the Z-packet is the length of what is pointed to or 1 if
2584 pointer is null. Add to target vector.
2585 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2589 * remote.c (remote_wait): Add support to extract optional
2590 watchpoint information from T-packet. Ignore unrecognized
2591 optional info in T-packet.
2592 (remote_async_wait): Ditto.
2594 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2596 * cli/cli-dump.c: Change fopen modes to use binary open modes
2597 as defined in include/fopen-bin.h throughout.
2599 2002-08-08 Michael Snyder <msnyder@redhat.com>
2601 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2603 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2605 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2606 assertion failure by returning early after a warning.
2608 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2610 * mips-tdep.c (mips_find_saved_regs): Make static.
2611 (mips_frame_init_saved_regs): New function.
2612 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2613 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2614 (mips_find_saved_regs): Delete declaration.
2616 2002-08-08 Grace Sainsbury <graces@redhat.com>
2618 * remote.c (remote_wait, remote_async_wait): Change
2619 thread_num from int to ULONGEST.
2620 (unpack_varlen_hex): Change result parameter from
2621 int * to ULONGEST *.
2623 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2625 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2626 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2628 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2630 2002-08-08 Andrew Cagney <cagney@redhat.com>
2632 * gcore.c (override_derive_stack_segment): Delete variable.
2633 (preempt_derive_stack_segment): Delete function.
2634 (derive_stack_segment): Delete function.
2635 (default_derive_stack_segment): Renamed to derive_stack_segment.
2636 (override_derive_heap_segment): Delete variable.
2637 (preempt_derive_heap_segment): Delete function.
2638 (derive_heap_segment): Delete function.
2639 (default_derive_heap_segment): Rename to derive_heap_segment.
2641 2002-08-06 Michael Snyder <msnyder@redhat.com>
2643 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2644 * mips-tdep.c (mips_EABI_use_struct_convention,
2645 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2646 New functions. (mips_use_struct_convention): Delete.
2647 (mips_gdbarch_init): set use_gdbarch_convention.
2649 2002-08-06 Michael Snyder <msnyder@redhat.com>
2651 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2652 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2653 mips_o32_reg_struct_has_addr): New functions.
2654 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2656 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2658 * regcache.c (pseudo_register): Delete function.
2659 (fetch_register): Delete function.
2660 (store_register): Delete function.
2661 (regcache_raw_read, legacy_read_register_gen): Use
2662 target_fetch_registers instead of fetch_register.
2663 (legacy_write_register_gen, regcache_raw_write): Use
2664 target_store_register instead of store_register.
2665 (write_register_bytes): Ditto.
2667 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2668 (STORE_PSEUDO_REGISTER): Delete.
2669 * gdbarch.h, gdbarch.c: Regenerate.
2671 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2673 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2674 write dump file binary.
2676 2002-08-05 Michael Snyder <msnyder@redhat.com>
2678 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2679 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2680 (mips_gdbarch_init): Set N32 target to be mips64.
2682 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2684 * frame.c (find_saved_register): Break out of loop once saved
2685 register address is found. Don't mention sparc in loop comment
2688 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2690 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2691 mips_default_saved_regsize to 8.
2693 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2695 * gcore.c: Do not include <sys/procfs.h>.
2696 * Makefile.in (gcore.o): Update dependencies.
2698 2002-08-06 Andrew Cagney <cagney@redhat.com>
2700 * configure.tgt: Make arc-*-* obsolete.
2701 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2702 * MAINTAINERS: Make arc-elf obsolete.
2703 * arc-tdep.c: Make file obsolete.
2704 * config/arc/arc.mt: Ditto.
2705 * config/arc/tm-arc.h: Ditto.
2707 2002-08-05 Theodore A. Roth <troth@verinet.com>
2709 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2711 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2713 * mcore-tdep.c (mcore_gdbarch_init): Use
2714 generic_unwind_get_saved_register instead of
2715 generic_get_saved_register.
2716 * v850-tdep.c (v850_gdbarch_init): Ditto.
2717 * frv-tdep.c (frv_gdbarch_init): Ditto.
2718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2719 * s390-tdep.c (s390_gdbarch_init): Ditto.
2720 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2721 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2722 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2724 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2726 * objfiles.h: Add missing #include "symfile.h"
2728 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2730 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2732 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2733 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2736 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2738 * NEWS: Cleanup and nitpick.
2740 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2742 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2744 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2746 * Makefile.in (gdbtk-bp.o): Update dependencies.
2747 (gdbtk-register.o): Ditto.
2748 (gdbtk-varobj.o): Ditto.
2750 2002-08-03 Andrew Cagney <cagney@redhat.com>
2752 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2753 m68hc11_fetch_pseudo_register.
2754 (m68hc11_pseudo_register_write): Replace
2755 m68hc11_store_pseudo_register.
2756 (m68hc11_gdbarch_init): Update.
2758 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2760 * gdbarch.sh: Include "gdb_string.h".
2761 * gdbarch.c: Regenerate.
2763 * regcache.c: Include "gdb_string.h".
2764 * ax-general.c: Ditto.
2766 * std-regs.c: Ditto.
2767 * fbsd-proc.c: Ditto.
2770 * Makefile.in (regcache.o): Update dependencies.
2771 (thread.o, gdbarch.o): Ditto.
2772 (ax-general.o, gdbarch.o): Ditto.
2773 (varobj.o, std-regs.o): Ditto.
2774 (fbsd-proc.o): Specify dependencies.
2776 2002-08-02 Andrew Cagney <cagney@redhat.com>
2778 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2780 (regcache_cooked_write): Ditto.
2782 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2784 * regcache.c (regcache_cooked_read): New function.
2785 (regcache_cooked_write): New function.
2786 (read_register_gen): Rewrite using regcache_cooked_read.
2787 (write_register_gen): Rewrite using regcache_cooked_write.
2789 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2792 2002-08-02 Andrew Cagney <cagney@redhat.com>
2794 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2795 Replace the architecture methods register_read and register_write.
2796 * gdbarch.h, gdbarch.c: Regenerate.
2797 * regcache.c (init_regcache_descr): Update.
2798 (read_register_gen): Update.
2799 (write_register_gen): Update.
2800 (supply_register): Update comment.
2802 * sh-tdep.c (sh_gdbarch_init): Update.
2803 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2804 `regcache' and `gdbarch' parameters. Make `buffer' a void
2805 pointer. Update code.
2806 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2807 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2808 void pointer. Update code.
2809 (sh64_register_write): Delete.
2810 (sh4_register_read): Delete.
2811 (sh64_register_read): Delete.
2812 (sh4_register_write): Delete.
2813 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2814 void pointer, `to' parameter a void pointer.
2815 (sh_sh64_register_convert_to_raw): Ditto.
2817 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2819 * mips-tdep.c (mips_register_virtual_type): Use architecture
2820 invariant return values.
2822 2002-08-01 Andrew Cagney <cagney@redhat.com>
2824 * linux-proc.c: Include "gdb_string.h".
2825 * Makefile.in (linux-proc.o): Update dependency list.
2827 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2829 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2832 2002-08-01 Grace Sainsbury <graces@redhat.com>
2834 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2835 to_insert_watchpoint, to_remove_watchpoint,
2836 to_stopped_by_watchpoint, to_stopped_data_address,
2837 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2838 target vecctor. Define their corresponding macros so they call
2841 * target.c: Add default and debug versions of for
2842 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2843 to_insert_watchpoint, to_remove_watchpoint,
2844 to_stopped_by_watchpoint, to_stopped_data_address,
2845 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2847 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2849 * mips-tdep.c (mips_register_virtual_type): New function.
2850 (mips_gdbarch_init): Register mips_register_virtual_type()
2851 with gdbarch machinery.
2852 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2853 this file instead of tm-bigmips.h.
2854 (MIPS_REGSIZE): Delete this macro.
2855 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2856 multiarch version in mips-tdep.c will be found.
2858 2002-08-01 Andrew Cagney <cagney@redhat.com>
2860 * NEWS: Menion that CHILL has been made obsolete.
2862 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2863 * stabsread.c (read_range_type): Ditto.
2864 * gdbtypes.h: Ditto.
2865 * language.c (binop_type_check): Ditto.
2866 (binop_result_type): Ditto.
2867 (integral_type): Ditto.
2868 (character_type): Ditto.
2869 (string_type): Ditto.
2870 (boolean_type): Ditto.
2871 (structured_type): Ditto.
2872 (lang_bool_type): Ditto.
2873 (binop_type_check): Ditto.
2874 * language.h (_LANG_chill): Ditto.
2875 * dwarfread.c (set_cu_language): Ditto.
2876 * dwarfread.c (CHILL_PRODUCER): Ditto.
2877 * dwarfread.c (handle_producer): Ditto.
2878 * expression.h (enum exp_opcode): Ditto.
2879 * eval.c: Ditto for comments.
2880 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2881 * expprint.c (print_subexp): Ditto.
2882 (print_subexp): Ditto.
2883 * valops.c (value_cast): Ditto.
2884 (search_struct_field): Ditto.
2885 * value.h (COERCE_VARYING_ARRAY): Ditto.
2886 * symfile.c (init_filename_language_table): Ditto.
2887 (add_psymbol_with_dem_name_to_list): Ditto.
2888 * valarith.c (value_binop): Ditto.
2890 * valops.c (value_slice): Ditto.
2891 * symtab.h (union language_specific): Ditto.
2892 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2893 (SYMBOL_DEMANGLED_NAME): Ditto.
2894 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2895 * defs.h (enum language): Ditto.
2896 * symtab.c (got_symtab): Ditto.
2897 * utils.c (fprintf_symbol_filtered): Ditto.
2899 * ch-typeprint.c: Make file obsolete.
2900 * ch-valprint.c: Make file obsolete.
2901 * ch-lang.h: Make file obsolete.
2902 * ch-exp.c: Make file obsolete.
2903 * ch-lang.c: Make file obsolete.
2905 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2907 (TARGET_FLAGS_TO_PASS): Ditto.
2908 (CHILLFLAGS): Obsolete.
2910 (CHILL_FOR_TARGET): Obsolete.
2911 (CHILL_LIB): Obsolete.
2912 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2914 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2915 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2917 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2920 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2922 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2923 This does not change anything at the moment, but will be helpful
2924 later when full Ada support is integrated.
2926 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2928 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2931 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2933 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2934 and save it in a local variable. Use variable in later test.
2936 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2938 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2939 test. (Thanks to Daniel Jacobowitz.)
2941 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2943 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2944 (mips_abi_strings): Add "n64".
2945 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2947 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2949 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2950 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2952 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2954 * utils.c (host_pointer_to_address, address_to_host_pointer):
2955 Use gdb_assert() instead of explicit call to internal_error().
2957 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2959 * Makefile.in (rs6000-nat.o): Update dependencies.
2961 From Nicholas Duffek:
2962 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2963 (aix-thread.o): New rule.
2964 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2965 * config/powerpc/aix432.mh: New file.
2967 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2969 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2970 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2971 (fetch_core_registers, ppc_linux_supply_gregset)
2972 (ppc_linux_supply_fpregset): New functions.
2973 (ppc_linux_regset_core_fns): New.
2974 (_initialize_ppc_linux_tdep): Call add_core_fns.
2975 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2976 and ppc_linux_supply_gregset.
2977 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2978 (supply_fpregset): Call ppc_linux_supply_fpregset.
2979 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2981 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2983 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2985 * symtab.c (lookup_symbol): Demangle before lowercasing.
2987 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2989 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2991 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2992 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2993 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2994 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2996 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2997 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2998 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2999 (avr-tdep.o, mon960-rom.o): Ditto.
3000 (aout_stabs_gnu_h): Define.
3001 (symtab_h): Remove $(gdb_obstack_h).
3003 2002-07-30 Jim Blandy <jimb@redhat.com>
3005 Patch from David Carlton <carlton@math.stanford.edu>:
3006 * gdbinit.in: Move the `dir' commands that add GDB's own source
3007 directory to the search path to the end, so that the `gdb' source
3008 directory will be searched first.
3010 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3012 * gdb_obstack.h: New file.
3013 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3014 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3015 * objfiles.h: Include "gdb_obstack.h".
3016 * Makefile.in (gdb_obstack_h): Define.
3017 (symtab_h): Add $(gdb_obstack_h).
3018 (objfiles_h): Add $(gdb_obstack_h).
3020 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3021 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3022 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3023 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3024 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3025 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3026 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3027 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3029 * Makefile.in (bcache.o): Update dependencies.
3030 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3031 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3032 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3033 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3034 (stabsread.o, symfile.o, symmisc.o): Ditto.
3035 (symtab.o, typeprint.o, macroexp.o): Ditto.
3036 (macrotab.o, mdebugread.o): Ditto.
3037 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3038 (coff_ecoff_h, aout_aout64_h): Define.
3039 (aout_stabs_gnu_h, libaout_h): Define.
3041 2002-07-29 Andrew Cagney <cagney@redhat.com>
3043 * regcache.c (struct regcache_descr): Rename nr_registers to
3044 nr_cooked_registers. Revise comments describing the structure
3046 (init_regcache_descr): Update.
3047 (init_legacy_regcache_descr): Update.
3048 (read_register_gen, write_register_gen): When a cooked register in
3049 the raw register range, directly access the value from the raw
3052 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3054 * z8k-tdep.c: Do not include "obstack.h".
3055 * h8300-tdep.c, h8500-tdep.c: Ditto.
3056 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3057 * valprint.c, v850-tdep.c: Ditto.
3058 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3059 * mn10200-tdep.c: Ditto.
3061 * Makefile.in (z8k-tdep.o): Update dependencies.
3062 (m68hc11-tdep.o, valprint.o): Ditto.
3063 (v850-tdep.o, d10v-tdep.o): Ditto.
3064 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3065 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3066 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3067 (sh_opc_h, gdb_sim_sh_h): Define.
3068 (elf_sh_h, elf_bfd_h): Define.
3069 (opcode_m68hc11_h): Define.
3070 (OPCODES_SRC, OPCODES_DIR): define.
3071 (OPCODES): Use $(OPCODES_DIR).
3072 (gdb_sim_d10v_h): Rename sim_d10v_h.
3073 (gdb_sim_arm_h): Rename sim_arm_h.
3075 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3077 * utils.c (host_pointer_to_address, address_to_host_pointer):
3078 Change internal_error() message to indicate function responsible
3081 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3083 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3084 calls to local_hex_string_custom().
3086 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3088 * irix5-nat.c: Move IRIX shared library support from here...
3089 * solib-irix.c: ...to here. Revised substantially to work with
3090 generic solib framework.
3092 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3093 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3094 * mips-irix-tdep.c: New file.
3096 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3097 (mips-irix-tdep.o, solib-irix.o): New rules.
3098 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3100 * config/mips/irix6.mt (TDEPFILES): Likewise.
3101 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3103 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3105 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3106 disabled (via ``#if 0'') includes.
3108 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3110 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3111 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3112 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3113 Add support for the fpscr register.
3114 * rs6000-nat.c (regmap, fetch_inferior_registers)
3115 (store_inferior_registers, fetch_core_registers): Likewise.
3117 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3119 * rs6000-nat.c (language.h): Include.
3120 (special_regs): Delete this array.
3121 (regmap): New function.
3122 (fetch_register, store_register): Use regmap() to map gdb
3123 register numbers to ptrace register numbers. Also, use
3124 outputs from regmap() to make decisions regarding type of
3125 ptrace() call to make. In particular, don't compare against
3126 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3127 (fetch_inferior_registers, store_inferior_registers): Where
3128 possible, obtain register numbers from tdep struct. Don't
3129 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3130 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3131 (LAST_UISA_SP_REGNUM): Delete.
3133 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3135 * rs6000-nat.c (ppc-tdep.h): Include.
3136 (fetch_registers, store_register, fetch_core_registers): Don't
3137 access registers[] directly. Instead, use supply_register() or
3138 regcache_collect() as appropriate.
3139 (find_toc_address): Format hex address with local_hex_string().
3141 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3143 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3146 2002-07-24 Tom Tromey <tromey@redhat.com>
3148 * jv-exp.y: Marked all strings with _().
3149 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3151 (MethodInvocation, CastExpression, parse_number, yyerror,
3152 java_type_from_name, push_expression_name, yylex): Typo fixes.
3154 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3156 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3157 (tee_file_flush, tee_file_write, tee_file_fputs)
3158 (tee_file_isatty): New.
3159 * ui-file.h (tee_file_new): Add prototype.
3161 2002-07-24 Aidan Skinner <aidan@velvet.net>
3163 * ada-lang.c: Change k&r style function definitions to prototyped
3165 * ada-typeprint.c: Change k&r style function definitions to prototyped
3167 * ada-valprint.c: Change k&r style function definitions to prototyped
3170 2002-07-24 Andrew Cagney <cagney@redhat.com>
3172 * README: Remove reference to remote-bug.
3173 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3175 (m88k-nat.o): Delete rule.
3176 (m88k-tdep.o): Delete rule.
3177 (remote-bug.o): Delete rule.
3178 * MAINTAINERS: Mark as obsolete.
3179 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3180 * m88k-tdep.c: Make file obsolete.
3181 * config/m88k/m88k.mh: Ditto.
3182 * config/m88k/delta88v4.mh: Ditto.
3183 * config/m88k/delta88v4.mt: Ditto.
3184 * config/m88k/delta88.mt: Ditto.
3185 * config/m88k/delta88.mh: Ditto.
3186 * remote-bug.c: Ditto.
3187 * config/m88k/tm-delta88.h: Ditto.
3188 * config/m88k/nm-delta88v4.h: Ditto.
3189 * config/m88k/xm-delta88.h: Ditto.
3190 * config/m88k/xm-dgux.h: Ditto.
3191 * config/m88k/tm-m88k.h: Ditto.
3192 * config/m88k/nm-m88k.h: Ditto.
3193 * config/m88k/tm-delta88v4.h: Ditto.
3194 * m88k-nat.c: Ditto.
3195 * cxux-nat.c: Ditto.
3196 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3197 and m88*-*-* obsolete.
3198 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3201 2002-07-24 Andrew Cagney <cagney@redhat.com>
3203 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3204 constant. Same for local pointer variables.
3205 (extract_signed_integer): Ditto.
3206 * defs.h (extract_unsigned_integer): Update.
3207 (extract_signed_integer): Update.
3209 2002-07-24 Andrew Cagney <cagney@redhat.com>
3211 * regcache.c (regcache_raw_write): Change buf parameter to a
3212 constant void pointer.
3213 (regcache_raw_read): Change buf parameter to a void pointer.
3214 (legacy_write_register_gen): Change myaddr parameter a constant
3216 (supply_register): Change val parameter to a const void pointer.
3217 * regcache.h (regcache_raw_write): Update declaration.
3218 (regcache_raw_read): Update declaration.
3219 (supply_register): Update declaration.
3221 2002-07-24 Tom Tromey <tromey@redhat.com>
3223 * defs.h (gdb_readline_wrapper): Declare.
3224 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3225 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3226 * top.c (gdb_readline_wrapper): New function.
3227 (command_line_input): Use it.
3229 2002-07-24 Andrew Cagney <cagney@redhat.com>
3231 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3232 regcache_read and regcache_write.
3233 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3234 * regcache.c: Update.
3235 * sh-tdep.c (sh64_push_arguments): Update comment.
3236 (sh_pseudo_register_read): Update.
3237 (sh_pseudo_register_write): Update.
3238 (sh4_register_read): Update.
3239 (sh4_register_write): Update.
3240 (sh64_pseudo_register_read): Update.
3241 (sh64_pseudo_register_write): Update.
3242 (sh64_register_read): Update.
3243 (sh64_register_write): Update.
3244 * i386-tdep.c (i386_extract_return_value): Update.
3245 (i386_extract_struct_value_address): Update.
3246 (i386_extract_return_value): Update.
3247 * blockframe.c (generic_read_register_dummy): Update.
3248 (generic_call_dummy_register_unwind): Update
3249 * infrun.c (write_inferior_status_register): Update.
3251 2002-07-23 Jim Blandy <jimb@redhat.com>
3253 * parser-defs.h (expression_context_pc): Make this extern.
3254 (Thanks to Michael Snyder.)
3256 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3258 GDB 5.2.1 released from 5.2 branch.
3259 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3260 * README: Update to mention 5.2.1.
3262 2002-07-23 Mark Salter <msalter@redhat.com>
3264 * remote.c (remote_read_bytes): Fix check for error.
3266 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3268 * aix-thread.c (language.h): Include.
3269 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3270 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3271 Print newlines at end of debug messages.
3272 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3273 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3275 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3277 * aix-thread.c (ppc-tdep.h): Include.
3278 (special_register_p): New function.
3279 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3280 (store_regs_user_thread): Use register number information from
3281 gdbarch_tdep struct instead of hardcoded offsets relative to
3282 FIRST_UISA_SP_REGNUM.
3283 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3284 special_register_p() instead of using FPLAST_REGNUM and
3285 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3286 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3287 will be MQ's register number.
3289 2002-07-22 Michael Snyder <msnyder@redhat.com>
3291 * aix-thread.c (ops): Rename to aix_thread_ops.
3292 (base_ops): Rename to base_target.
3293 (ops_attach): Rename to aix_thread_attach.
3294 (ops_detach): Rename to aix_thread_detach.
3295 (ops_resume): Rename to aix_thread_detach.
3296 (ops_wait): Rename to aix_thread_wait.
3297 (ops_kill): Rename to aix_thread_kill.
3298 (init_ops): Rename to init_aix_thread_ops.
3299 (ops_fetch_register): Rename to aix_thread_fetch_register.
3300 (ops_store_register): Rename to aix_thread_store_register.
3301 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3302 (ops_thread_alive): Rename to aix_thread_thread_alive.
3303 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3304 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3305 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3306 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3307 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3308 (store_regs_lib): Rename to store_regs_user_thread.
3309 (store_regs_kern): Rename to store_regs_kernel_thread.
3311 2002-07-22 Michael Snyder <msnyder@redhat.com>
3313 * aix-thread.c (ops_prepare_to_store): Eliminate.
3314 (init_ops): Don't initialize ops.prepare_to_store.
3315 (store_regs_kern): Pre-fetch register buffers from child,
3316 because some registers may not be in the cache. Copy
3317 regs from register cache only if they are cached.
3318 (store_regs_lib): Copy regs from register cache only
3320 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3321 fill_gprs64): Ditto.
3323 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3325 * aix-thread.c (gdb_assert.h): Include.
3326 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3327 register sizes (from register cache) match size of buffer holding
3329 (fill_sprs32): Change parameter types to match those in the ptrace()
3331 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3332 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3334 2002-07-22 Michael Snyder <msnyder@redhat.com>
3336 * aix-thread.c (supply_sprs64): Cosmetic change.
3337 (supply_sprs32): Cosmetic change.
3338 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3339 (fill_sprs64): Use regcache_collect instead of read_register.
3340 (store_regs_lib): Use regcache_collect instead of
3341 read_register. Use fill_sprs32 instead of fill_sprs64,
3342 if debugging a 32-bit architecture.
3343 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3344 out of the register cache, instead of passing a pointer into
3345 the register cache directly to ptrace. Use regcache_collect
3346 insteaad of read_register.
3347 (ops_prepare_to_store): Use target_read_registers instead
3348 of read_register_bytes.
3350 2002-07-20 Aidan Skinner <aidan@velvet.net>
3352 * MAINTAINERS: Add self under write after approval.
3354 2002-07-20 Aidan Skinner <aidan@velvet.net>
3356 * ada-tasks.c: Change k&r style function definitions to prototyped
3359 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3361 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3362 * x86-64-tdep.c: Include "objfiles.h".
3363 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3364 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3366 2002-07-17 Michal Ludvig <michal@suse.cz>
3368 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3369 (update_context): Initialise cfa variable.
3371 2002-07-17 Michael Snyder <msnyder@redhat.com>
3373 * aix-thread.c: Shorten some long lines.
3374 Bring comments into line with code spec.
3376 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3378 * infrun.c: Re-indent using gdb_indent.sh.
3380 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3382 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3383 Leave the indentation temporarily untouched, to minimize the diffs.
3385 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3387 * stabsread.c: Make os9k sections of the code obsolete,
3389 * stabsread.h: Make os9k sections of the code obsolete.
3391 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3393 * linux-low.c (regsets_store_inferior_registers): Add free()
3394 at the end of a loop to prevent memory leak.
3395 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3396 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3397 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3399 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3401 2002-07-17 Jim Blandy <jimb@redhat.com>
3403 * macrocmd.c (info_macro_command): Remove newline from error
3406 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3408 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3409 (sh_gdbarch_init): Use it for sh-dsp.
3411 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3413 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3414 64-bit DWARF2 format.
3416 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3418 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3419 <sys/proc.h> when not available.
3421 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3423 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3424 * stabsread.c: Make os9k sections of the code obsolete.
3425 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3426 * config/i386/i386os9k.mt: Make file obsolete.
3427 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3428 (COMMON_OBS): Remove os9kread.o
3429 (SFILES): Remove os9kread.c.
3430 (os9kread.o, remote-os9k.o): Make target obsolete.
3431 * remote-os9k.c: Make file obsolete.
3432 * os9kread.c: Make file obsolete.
3435 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3437 * NEWS: Mention that the FR30 has been made obsolete.
3438 * fr30-tdep.c: Make file obsolete.
3439 * config/fr30/tm-fr30.h: Ditto.
3440 * config/fr30/fr30.mt: Ditto.
3441 * configure.tgt: Make fr30-*-elf obsolete.
3442 * MAINTAINERS: Make fr30-elf obsolete.
3444 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3446 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3447 found is not inside a section.
3449 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3451 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3453 (pdc_realloc): Use xrealloc() instead of realloc().
3455 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3457 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3458 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3459 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3462 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3464 * aix-thread.c (ptrace_check): Eliminate goto.
3465 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3468 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3470 * aix-thread.c (gdbcmd.h): Include.
3471 (DEBUG, DBG, DBG2, dbg): Eliminate.
3472 (debug_aix_thread): New static global.
3473 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3474 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3475 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3476 invocations to DBG and DBG2 macros to test against
3477 ``debug_aix_thread'' and call fprintf_unfiltered().
3478 (_initialize_aix_thread): Add new command "set debug aix-thread".
3480 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3482 From Gerhard Tonn <TON@de.ibm.com>:
3483 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3484 instead of supply_register.
3486 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3488 * dwarf2cfi.c: Include "gdb_assert.h".
3489 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3491 (update_context): Do not use __func__. Add missing ``break''.
3492 (update_context): Do not use __func__.
3494 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3496 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3497 and its setting. Set gdbarch instruction printing functions
3498 directly. For non-rs6000 case use new function
3499 gdb_print_insn_powerpc.
3500 (gdb_print_insn_powerpc): New function.
3502 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3504 * NEWS: Mention that the d30v has been marked obsolete.
3505 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3506 * configure.tgt: Mark d30v-*-* as obsolete.
3507 * d30v-tdep.c: Mark file as obsolete.
3508 * config/d30v/d30v.mt: Ditto.
3509 * config/d30v/tm-d30v.h: Ditto.
3511 2002-07-13 Aidan Skinner <aidan@velvet.net>
3513 * ada-tasks.c (add_task_entry): replace calls to
3514 malloc() with xmalloc
3515 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3517 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3518 ada_finish_decode_line_1, all_sals_for_line
3519 ada_breakpoint_rewrite): replace calls to free() with xfree()
3521 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3523 From Nicholas Duffek (with minor changes by Martin Hunt,
3524 Louis Hamilton, and Kevin Buettner):
3525 * aix-thread.c: New file.
3527 2002-07-12 Petr Sorfa <petrs@caldera.com>
3529 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3530 complaint for invalid attribute class or form.
3531 (read_func_scope): DW_AT_frame_base
3532 better handling of DW_AT_block*.
3533 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3534 better handling of DW_AT_block*.
3535 (read_common_block): DW_AT_location
3536 better handling of DW_AT_block*.
3537 (read_partial_die): DW_AT_location better handling
3539 (new_symbol): DW_AT_external better handling of
3540 DW_AT_block*. Proper initialization of variable
3542 (attr_form_is_block): New function that returns true
3543 if the attribute's form is of DW_FORM_block*.
3545 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3547 * valops.c (find_method_list): Remove comment about
3548 removed STATIC_MEMFUNCP argument.
3549 (value_find_oload_method_list): Likewise.
3551 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3553 From Nicholas Duffek:
3554 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3555 target_new_objfile_hook.
3557 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3559 From Nicholas Duffek:
3560 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3563 2002-07-12 Andrew Cagney <cagney@redhat.com>
3565 * MAINTAINERS: Mention --enable-sim-build-warnings.
3566 (m68hc11-elf): Disable sim build warnings.
3567 (m32r-elf): Mark as broken obsolete candidate.
3568 (x86_64-linux-gnu): Mark as buildable with -Werror.
3569 (arm-elf): Change -w to ``,'' which enables warnings but not
3572 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3574 * bcache.h: Update copyright.
3575 (struct bstring, struct bcache): Move definition to "bcache.c".
3576 Replaced by opaque declaration.
3577 (bcache_xfree): Replace free_bcache.
3578 (bcache_xmalloc, bcache_memory_used): Declare.
3580 * bcache.c: Update copyright.
3581 (struct bstring, struct bcache): Moved to here from "bcache.h".
3583 (bcache_xmalloc, bcache_memory_used): New functions.
3584 (bcache_xfree): Replace function free_bcache.
3586 * Makefile.in (objfiles.o): Add $(bcache_h).
3587 (objfiles_h): Remove $(bcache_h).
3588 (symfile.o): Add $(bcache_h).
3590 * symmisc.c: Update copyright.
3591 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3592 (print_objfile_statistics): Use bcache_memory_used.
3594 * symfile.c: Include "bcache.h".
3595 (reread_symbols): Use bcache_xfree.
3596 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3597 (add_psymbol_to_list): Pass psymbol_cache by value.
3598 (add_psymbol_with_dem_name_to_list): Ditto.
3600 * objfiles.h: Update copyright.
3601 (struct bcache): Declare opaque. Do not include "bcache.h".
3602 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3604 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3606 * objfiles.c: Include "bcache.h". Update copyright.
3607 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3609 (free_objfile): Use bcache_xfree.
3611 2002-07-11 Grace Sainsbury <graces@redhat.com>
3613 * monitor.c (monitor_fetch_register): Make name a constant.
3614 (monitor_store_register): Same.
3616 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3618 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3619 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3620 (finish_block) For non-function blocks, hash the symbol table. For
3621 function blocks, mark the symbol table as unhashed.
3622 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3623 (msymbol_hash_iw): Likewise.
3624 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3626 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3627 (lookup_minimal_symbol): Likewise for both.
3628 * symtab.h (struct block): Add `hashtable' flag. Comment the
3630 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3631 (ALL_BLOCK_SYMBOLS): Update.
3632 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3633 (struct symbol): Add `hash_next' pointer.
3634 * symtab.c (lookup_block_symbol): Search using the hash table when
3636 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3637 (search_symbols, find_addr_symbol): Likewise.
3639 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3640 (read_dst_symtab): Likewise.
3641 * jv-lang.c (get_java_class_symtab): Likewise.
3642 * mdebugread.c: Include "gdb_assert.h".
3643 (shrink_block): Assert that the block being modified is not hashed.
3644 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3645 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3647 (dump_symtab): Recognize hashed blocks.
3648 * printcmd.c (print_frame_args): Assert that function blocks do not
3649 have hashed symbol tables.
3650 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3651 (fill_in_ada_prototype, debug_print_block): Likewise.
3652 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3654 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3656 * stack.c (print_frame): Use result of frame_address_in_block()
3657 instead of fi->pc when evaluating symbols.
3658 (backtrace_command_1): Ditto.
3660 2002-07-11 Andrew Cagney <cagney@redhat.com>
3662 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3665 * arm-tdep.c (arm_register_name): Make return type constant.
3667 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3669 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3671 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3672 * s390-tdep.c (s390_fp_regnum): Ditto.
3673 (s390_read_fp): Ditto.
3674 (s390_pop_frame): Ditto.
3675 (_initialize_s390_tdep): Ditto.
3676 * remote.c (get_remote_state): Ditto.
3677 * procfs.c (mappingflags): Ditto.
3678 * memattr.c (_initialize_mem): Ditto.
3679 * mcore-tdep.c (mcore_pop_frame): Ditto.
3680 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3681 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3682 * language.c (set_case_str): Ditto.
3683 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3684 * frv-tdep.c (new_variant): Ditto.
3685 (frv_stopped_data_address): Ditto.
3686 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3687 (context_alloc): Ditto.
3688 (frame_state_alloc): Ditto.
3689 (unwind_tmp_obstack_init): Ditto.
3690 (unwind_tmp_obstack_free): Ditto.
3691 (cfi_read_fp): Ditto.
3692 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3693 (cris_pop_frame): Ditto.
3694 * c-lang.c (scanning_macro_expansion): Ditto.
3695 (finished_macro_expansion): Ditto.
3696 (c_preprocess_and_parse): Ditto.
3697 * gdbarch.sh: Ditto.
3698 * gdbarch.h, gdbarch.c: Regenerate.
3699 * config/mn10200/tm-mn10200.h: Adjust indentation.
3700 * target.c: Adjust indentation.
3701 * symtab.h: Adjust indentation.
3702 * stabsread.h: Adjust indentation.
3703 * remote-es.c: Adjust indentation.
3704 * os9kread.c: Adjust indentation.
3706 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3708 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3709 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3711 2002-07-10 Grace Sainsbury <graces@redhat.com>
3713 * NEWS: Mention m68k, mcore multi-arching.
3714 * MAINTAINERS: Change status of m68k, mcore to reflect
3717 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3719 * valops.c (find_overload_match): Free oload_syms.
3721 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3723 Define HAVE_SYS_PROC_H if sys/proc.h exists
3724 * configure.in: Add check for sys/proc.h
3725 * config.in: Regenerate.
3726 * configure: Regenerate.
3728 2002-07-09 Grace Sainsbury <graces@redhat.com>
3730 * config/m68k/tm-m68k.h: Remove macros wrapped in
3731 #if !GDB_MULTI_ARCH.
3733 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3735 * config.in, configure: Regenerate.
3737 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3739 * dwarf2cfi.c: Include "gcore.h".
3740 (execute_stack_op): Fix implementation of the
3741 DW_OP_deref and DW_OP_deref_size operators by letting do their
3742 lookup in the target.
3744 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3746 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3747 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3750 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3752 Fix PR gdb/595, gdb/602
3753 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3754 Don't call value_cast, just read the vtable pointer; update comments
3757 2002-07-05 Grace Sainsbury <graces@redhat.com>
3759 * config/mcore/tm-mcore.h: Remove file.
3760 * config/mcore/mcore.mt: Remove definition of TM_FILE
3761 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3763 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3765 * i386bsd-tdep.c: Include "gdb_string.h".
3767 2002-07-04 Grace Sainsbury <graces@redhat.com>
3769 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3770 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3772 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3773 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3774 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3775 (RETVAL_REGNUM): Move macros from tm-mcore.h
3776 (mcore_reg_struct_has_addr): New function.
3777 (mcore_gdbarch_init): Added initializations for the macros removed
3780 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3782 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3783 traditonal string branding within the ELF header.
3785 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3787 * symtab.c (remove_params): New function.
3788 (make_symbol_overload_list): Use it instead of cplus_demangle.
3789 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3791 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3793 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3795 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3797 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3798 and tdep->sigtramp_end.
3799 * i386obsd-nat.c: New file.
3800 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3802 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3803 Don't call get_current_frame().
3805 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3807 * i386-nat.c (child_post_startup_inferior): New function
3808 calling i386_cleanup_dregs if
3809 I386_USE_GENERIC_WATCHPOINTS is defined.
3810 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3811 conditional to acknowledge that i386-nat.c has its
3812 own child_post_startup_inferior function.
3814 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3816 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3817 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3818 instead of MAX_REGISTER_RAW_SIZE.
3819 (i386_extract_return_value, i386_extract_struct_value_address):
3820 Convert to use regcache.
3821 (i386_gdbarch_init): Set max_register_raw_size and
3822 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3823 Set extract_return_value and extract_struct_value_address instead
3824 of their deprecated variants.
3826 Convert i386 target to generic dummy frames.
3827 * i386-tdep.c: Include "symfile.h".
3828 (i386_frameless_signal_p): Consider a function to be frameless if
3829 the pc points at the first instruction of the function.
3830 (i386_frame_chain): Handle (generic) call dummies.
3831 (i386_frame_saved_pc): Likewise.
3832 (i386_frame_init_saved_regs): Remove code dealing with call
3833 dummies on the stack.
3834 (i386_push_dummy_frame): Removed.
3835 (i386_call_dummy_words): Removed.
3836 (i386_fix_call_dummy): Removed.
3837 (i386_push_return_address): New function.
3838 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3839 parameter, and don't call get_current_frame.
3840 (i386_pop_frame): New function.
3841 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3842 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3843 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3844 call_dummy_length to 0, set call_dummy_words to NULL, set
3845 sizeof_call_dummy_words to 0, set fix_call_dummy to
3846 generic_fix_call_dummy, set pc_in_call_dummy to
3847 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3848 generic_push_dummy_frame, set push_return_address to
3849 i386_push_return_address and set frame_chain_valid to
3850 generic_file_frame_chain_valid.
3852 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3854 * gdbarch.sh (struct regcache): Add opaque declaration.
3855 (EXTRACT_RETURN_VALUE): New architecture method.
3856 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3857 * gdbarch.h, gdbarch.c: Regenerate.
3858 * arch-utils.c (legacy_extract_return_value): New function.
3859 * arch-utils.h (legacy_extract_return_value): Declare.
3860 * values.c (value_being_returned): Re-enable code handling
3861 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3862 deprecated_grub_regcache_for_registers call to block handling
3863 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3864 (EXTRACT_RETURN_VALUE): Do not define.
3866 2002-07-03 Grace Sainsbury <graces@redhat.com>
3868 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3869 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3870 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3871 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3872 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3873 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3874 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3875 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3876 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3877 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3878 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3879 argument so the function fits the prototype in the architecture
3881 (mcore_pop_frame): Remove argument so the function fits the
3882 prototype. Use get_current_frame instead of the argument.
3883 (mcore_push_arguments): Change type of struct_return so the
3884 function can be used in the architecture vector.
3885 (mcore_store_struct_return): Add.
3886 (mcore_frame_init_saved_regs): Add.
3887 (mcore_gdbarch_init): Add function calls to replace the macros
3888 removed from tm-mcore.h
3890 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3892 * infcmd.c (print_return_value): Remove compatibility code calling
3893 deprecated_grub_regcache_for_registers.
3895 * values.c: Include "regcache.h".
3896 (value_being_returned): Update. Use
3897 deprecated_grub_regcache_for_registers to extract the register
3899 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3900 ``struct regcache''.
3901 * Makefile.in (values.o): Add dependency on $(regcache_h).
3903 * inferior.h (run_stack_dummy): Change type of second parameter to
3904 a ``struct regcache''.
3905 * valops.c (hand_function_call): Change type of retbuf to ``struct
3906 regcache''. Allocate using regcache_xmalloc, clean using
3907 make_cleanup_regcache_xfree.
3908 * infcmd.c (run_stack_dummy): Update. Use
3909 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3911 * regcache.c (do_regcache_xfree): New function.
3912 (make_cleanup_regcache_xfree): New function.
3913 * regcache.h (make_cleanup_regcache_xfree): Declare.
3915 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3917 * event-top.c (command_line_handler): Don't read past
3918 beginning of buffer.
3920 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3922 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3924 (varobj_create): Store frame_id for root.
3925 (varobj_gen_name): Use xasprintf.
3926 (varobj_update): Save and restore frame using get_frame_id() and
3928 (create_child): Use xasprintf.
3929 (new_root_variable): Initialize frame_id.
3930 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3931 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3932 to prevent memory leak.
3934 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3936 * valops.c (hand_function_call): Move declaration of retbuf to
3937 start of function, allocate using malloc, add a cleanup but before
3938 the inf_status cleanup, cleanup the buffer. Rename local variable
3939 old_chain to inf_status_cleanup.
3941 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3943 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3945 * cli/cli-decode.c (cmd_func_p): New function.
3946 (cmd_func): New function.
3948 * command.h: Add cmd_func() and cmd_func_p().
3950 2002-07-03 Grace Sainsbury <graces@redhat.com>
3952 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3953 (REGISTER_SIZE): Remove.
3954 (MAX_REGISTER_RAW_SIZE): Remove.
3955 (REGISTER_VIRTUAL_TYPE): Remove.
3956 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3957 (REGISTER_NAME): Remove.
3958 (USE_GENERIC_DUMMY_FRAMES): Remove.
3959 (CALL_DUMMY): Remove.
3960 (CALL_DUMMY_START_OFFSET): Remove.
3961 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3962 (CALL_DUMMY_LOCATION): Remove.
3963 (FIX_CALL_DUMMY): Remove.
3964 (CALL_DUMMY_ADDRESS): Remove.
3965 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3966 (SAVE_DUMMY_FRAME_TOS): Remove.
3967 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3968 (mcore_register_virtual_type): New function.
3969 (mcore_register_byte): New function.
3970 (mcore_register_size): New function.
3971 (mcore_register_name): New function.
3972 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3973 macros removed from tm-mcore.h.
3974 (mcore_dump_tdep): Add.
3975 (_initialize_mcore_tdep): Add gdbarch_register call.
3977 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3979 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3980 frameless_look_for_prologue, such that we actually call this
3983 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3985 * frame.h (frame_address_in_block): New function.
3987 * blockframe.c (frame_address_in_block): New function extracted
3988 from get_frame_block().
3989 (get_frame_block): Use frame_address_in_block().
3990 (block_innermost_frame): Use frame_address_in_block() to match
3991 the frame pc address against the block boundaries rather than
3992 the frame pc directly. This prevents a failure when a frame pc
3993 is actually a return-address pointing immediately after the end
3996 2002-07-02 Grace Sainsbury <graces@redhat.com>
3998 * MAINTAINERS: Add self under write after approval.
4000 2002-07-02 Grace Sainsbury <graces@redhat.com>
4002 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4003 used in architecture vector. The default is
4004 m68k_local_breakpoint_from_pc.
4005 (m68k_local_breakpoint_from_pc): Add.
4006 (enum): Add register numbers from tm-m68k.h.
4007 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4009 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4010 GDB_MULTI_ARCH_PARTIAL.
4011 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4012 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4014 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4015 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4016 to enum in m68k-tdep.c
4018 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4020 * solib-osf.c (open_map): Compute the list of shared libraries
4021 loaded by the inferior, rather than the list of libraries loaded
4022 by GDB itself. Otherwise, GDB ends up reading the symbols from
4023 the wrong shared libraries...
4025 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4027 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4028 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4030 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4032 (FRAMELESS_SIGNAL): Remove function.
4033 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4034 i386_linux_saved_pc_after_call): Removed.
4035 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4036 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4037 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4039 * i386-tdep.c (i386_frameless_signal_p): New function.
4040 (i386_frame_chain): Deal with frameless signals.
4041 (i386_sigtramp_saved_sp): New function.
4042 (i386_frame_saved_pc): Deal with frameless signals.
4043 (i386_saved_pc_after_call): Make sure the correct value is
4044 returned just after entry into a sigtramp.
4045 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4046 i386fbsd4_sc_sp_offset): New variables.
4047 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4048 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4049 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4050 similiar to what we already did for sc_pc_offset.
4051 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4054 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4056 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4058 * config/i386/tm-x86-64linux.h: New.
4059 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4061 * config/i386/nm-x86-64.h: Rename to ...
4062 * config/i386/nm-x86-64linux.h: ... this one.
4063 * config/i386/x86-64linux.mh: Reflect the above change.
4065 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4067 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4068 with sigcontext_addr. Add sc_sp_offset.
4069 (i386bsd_sigtramp_saved_pc): Remove prototype.
4070 (i386bsd_sicontext_addr): Add prototype.
4071 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4072 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4073 (i386_svr4_sigtramp_saved_pc): Removed.
4074 (i386_svr4_sigcontext_addr): New function.
4075 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4076 Initialize tdep->sigcontext_addr instead. Initialize
4077 tdep->sc_pc_offset and tdep->sc_sp_offset.
4078 (i386_gdbarch_init): Likewise.
4079 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4081 (i386bsd_sigtramp_saved_pc): Remove function.
4082 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4083 Initialize tdep->sigcontext_addr instead. Initialize
4085 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4086 of tdep->sigtramp_saved_pc.
4087 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4088 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4091 * i386-tdep.c (i386_frameless_function_invocation,
4092 i386_frame_num_args, i386_frame_init_saved_regs,
4093 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4094 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4095 i386_extract_return_value, i386_store_return_value,
4096 i386_extract_struct_value_address, i386_register_virtual_type,
4097 i386_register_convertible, i386_register_convert_to_virtual,
4098 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4099 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4102 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4104 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4106 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4107 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4108 this macro. Include "value.h".
4110 2002-06-30 Aidan Skinner <aidan@velvet.net>
4112 * ada-exp.tab.c: remove as it's a generated file
4113 * ada-lex.c: remove as it's a generated file
4115 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4117 * config/i386/tm-i386.h (struct frame_info, struct
4118 frame_saved_regs, struct value, struct type): Remove forward
4121 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4122 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4123 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4124 (FILL_FPXREGSET): Define.
4126 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4128 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4129 i[3456]86-*-netbsd* case.
4130 * config/i386/tm-obsd.h: Removed.
4131 * config/i386/obsd.mt: Removed.
4132 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4134 (MH_CFLAGS): Add -DYYDEBUG=0.
4136 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4137 i386nbsd_sc_pc_offset on OpenBSD too.
4139 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4140 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4141 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4143 * i386bsd-tdep.c: Include "arch-utils.h".
4144 (i386bsd_aout_in_solib_call_trampoline): New function.
4145 (i386bsd_init_abi): Set in_solib_call_trampoline to
4146 i386bsd_aout_in_solib_call_trampoline.
4147 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4148 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4150 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4152 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4153 (struct obstack, struct bcache): Add opaque declarations.
4154 * Makefile.in (macrotab_h): Update
4156 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4158 * blockframe.c (generic_find_dummy_frame): Change return type to
4159 ``struct regcache''.
4160 (struct dummy_frame): Replace field ``registers'' with regcache, a
4161 struct regcache object.
4162 (generic_find_dummy_frame): Update.
4163 (generic_push_dummy_frame): Update. Use regcache_xfree,
4164 regcache_xmalloc and regcache_cpy.
4165 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4167 (deprecated_generic_find_dummy_frame): Update.
4168 (generic_read_register_dummy): Update. Use
4169 regcache_read_as_address.
4170 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4171 (generic_get_saved_register): Update. Use regcache_read.
4173 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4175 * Makefile.in (objfiles_h): Add $(bcache_h).
4176 * objfiles.h: Include "bcache.h".
4178 * Makefile.in (symtab_h): Remove $(bcache_h).
4179 * symtab.h: Do not include "bcache.h".
4181 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4183 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4184 generic_func_frame_chain_valid.
4186 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4188 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4189 * config/i386/tm-fbsd.h: Likewise.
4191 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4193 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4194 generic_unwind_get_saved_register.
4196 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4198 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4199 * regcache.c (supply_register): Add missing argument to
4200 register_buffer call.
4202 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4204 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4205 Solaris /bin/grep does not not like it. From Peter Schauer.
4207 2002-06-26 Tom Tromey <tromey@redhat.com>
4209 * command.h (add_setshow_cmd): Declare.
4210 (add_setshow_cmd_full): Declare.
4211 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4212 returns void. Use add_setshow_cmd_full.
4213 (add_setshow_cmd_full): New function.
4214 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4215 (add_setshow_boolean_cmd): Likewise.
4217 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4219 * config/vax/tm-vax.h: Protect from multiple inclusion.
4220 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4221 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4222 * config/vax/tm-vaxbsd.h: ...here. New file.
4223 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4225 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4227 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4228 (BELIEVE_PCC_PROMOTION): Remove.
4229 (AP_REGNUM): Move to...
4230 * config/vax/nm-vax.h: ...here.
4231 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4232 (vax_breakpoint_from_pc): New function.
4233 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4234 and gdbarch_believe_pcc_promotion.
4236 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4238 * Makefile.in (vax_tdep_h): Define.
4239 (vax-tdep.o): Use $(vax_tdep_h).
4240 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4241 (vax_dump_tdep): New function.
4242 (_initialize_vax_tdep): Register vax_dump_tdep.
4243 * vax-tdep.h: Include osabi.h.
4244 (struct gdbarch_tdep): New.
4246 2002-06-26 Andrew Cagney <cagney@redhat.com>
4248 * frame.h (deprecated_generic_find_dummy_frame): Rename
4249 generic_find_dummy_frame.
4250 * blockframe.c (generic_find_dummy_frame): Make static.
4251 (deprecated_generic_find_dummy_frame): New function.
4252 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4253 generic_find_dummy_frame with deprecated_find_dummy_frame.
4254 (sh64_nofp_frame_init_saved_regs): Ditto.
4255 (sh_fp_frame_init_saved_regs): Ditto.
4256 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4257 (s390_frame_chain): Ditto.
4258 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4260 2002-06-26 Grace Sainsbury <graces@redhat.com>
4262 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4263 gdbarch vector are at the top.
4265 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4266 (FRAME_ARGS_ADDRESS): Remove.
4267 (FRAME_LOCALS_ADDRESS): Remove.
4268 (FRAME_NUM_ARGS): Remove.
4269 (FRAME_ARGS_SKIP): Remove.
4270 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4271 (m68k_gdbarch_init): Add gdbarch initializations for macros
4272 undefined in tm-m68k.h
4274 2002-06-26 Grace Sainsbury <graces@redhat.com>
4276 * monitor.h: Add the function regname to monitor_ops
4277 structure. This way NUM_REGS does not have to be a constant.
4278 * monitor.c (monitor_fetch_register): Added support for regname
4279 function. The function is called if the array regnames is NULL.
4280 (monitor_store_register): Same.
4281 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4283 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4284 cpu32bug_cmds.regname to point to new function.
4285 * abug-rom.c (abug_regname): Same as above.
4286 (init_abug_cmds): Same.
4287 * dbug-rom.c (dbug_regname): Same as above.
4288 (init_dbug_cmds): Same.
4289 * remote-est.c (est_regname): Same.
4290 (init_est_cmds): Same.
4291 * rom68k-rom.c (rom68k_regname): Same.
4292 (init_rom68k_cmds): Same.
4294 2002-06-25 Tom Tromey <tromey@redhat.com>
4296 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4298 2002-06-25 Andrew Cagney <cagney@redhat.com>
4300 * infrun.c (stop_registers): Change variable's type to ``struct
4302 (xmalloc_inferior_status): Delete function.
4303 (free_inferior_status): Delete function.
4304 (normal_stop): Use regcache_cpy.
4305 (struct inferior_status): Change type of fields ``stop_registers''
4306 and ``registers'' to ``struct regcache''.
4307 (write_inferior_status_register): Use regcache_write.
4308 (save_inferior_status): Instead of calling
4309 xmalloc_inferior_status, allocate the inf_status buffer directly.
4310 Use regcache_dup_no_passthrough and regcache_dup to save the
4312 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4313 Replace the stop_registers regcache instead of overriding it. Use
4314 regcache_xfree. Instead of calling free_inferior_status, xfree
4315 the buffer directly.
4316 (discard_inferior_status): Use regcache_xfree. Instead of calling
4317 free_inferior_status, xfree the buffer directly.
4318 (build_infrun): Use regcache_xmalloc.
4319 (_initialize_infrun): Delete redundant call to build_infrun.
4321 * Makefile.in (infcmd.o): Add $(regcache_h).
4323 * infcmd.c: Include "regcache.h".
4324 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4325 obtain the address of `stop_registers' register buffer.
4326 (print_return_value): Ditto.
4328 * inferior.h (struct regcache): Add opaque declaration.
4329 (stop_registers): Change variable's declared type to ``struct
4332 2002-06-24 Tom Tromey <tromey@redhat.com>
4334 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4335 * target.c (initialize_targets): Fixed typo in
4336 trust-readonly-sections `show' documentation.
4338 * main.c: Marked all strings with _().
4340 2002-06-24 Don Howard <dhoward@redhat.com>
4342 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4343 that means max CORE_ADDR+1.
4344 (lookup_mem_region): Ditto.
4345 (mem_info_command): Ditto.
4347 2002-06-24 Grace Sainsbury <graces@redhat.com>
4349 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4350 (REGISTER_BYTES_OK): Remove.
4351 (REGISTER_BYTES): Remove.
4352 (STORE_STRUCT_RETURN): Remove.
4353 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4354 (STORE_RETURN_VALUE): Remove.
4355 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4356 (FRAME_CHAIN): Remove.
4357 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4358 (FRAME_SAVED_PC): Remove.
4359 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4360 (m68k_store_struct_return): Add.
4361 (m68k_deprecated_extract_return_value): Add.
4362 (m68k_deprecated_extract_struct_value_address): Add.
4363 (m68k_store_return_value): Add.
4364 (m68k_frame_chain): Add.
4365 (m68k_frameless_function_invocation): Add.
4366 (m68k_frame_saved_pc): Add.
4367 (m68k_gdbarch_init): added set_gdbarch calls for new
4368 functions and deleted macros.
4370 2002-06-23 Tom Tromey <tromey@redhat.com>
4372 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4373 (ALLDEPFILES): Likewise.
4374 (udiheaders): Removed.
4375 (udip2soc.o): Likewise.
4376 (udi2go32.o): Likewise.
4378 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4380 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4382 * infrun.c (_initialize_infrun): Delete unnecessary call to
4385 * regcache.h: Update comments describing the regcache_cpy family
4387 (regcache_save, regcache_restore): Delete declaration.
4388 (regcache_save_no_passthrough): Delete declaration.
4389 (regcache_restore_no_passthrough): Delete declaration.
4390 * regcache.c (regcache_save): Delete function.
4391 (regcache_save_no_passthrough): Delete function.
4392 (regcache_restore): Delete function.
4393 (regcache_restore_no_passthrough): Delete function.
4395 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4397 * config/m68k/tm-m68k.h: Fix typo.
4398 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4399 (m68k_frame_init_saved_regs): Declare.
4401 2002-06-21 Jim Blandy <jimb@redhat.com>
4403 Remove some vestiges of Harris 88k support.
4404 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4405 register numbering quirk.
4406 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4407 odd symbols occurring in Harris 88k ELF targets.
4409 2002-06-21 Tom Tromey <tromey@redhat.com>
4411 * gdb_locale.h: New file.
4412 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4413 (defs_h): Added gdb_locale.h.
4414 * configure, config.in: Rebuilt.
4415 * configure.in (PACKAGE): Define.
4416 * defs.h: Include gdb_locale.h.
4417 * main.c (captured_main): Call setlocale, bindtextdomain,
4420 2002-06-21 Dave Brolley <brolley@redhat.com>
4422 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4423 * config/frv/frv.mt: New file.
4424 * config/frv/tm-frv.h: New file.
4425 * configure.tgt: Support frv-*-*.
4426 * Makefile.in (frv-tdep.o): New target.
4427 * frv-tdep.c: New file.
4428 * NEWS: Mention frv.
4430 2002-06-21 Dave Brolley <brolley@redhat.com>
4432 * MAINTAINERS: Add self to "Write After Approval" list.
4434 2002-06-21 Grace Sainsbury <graces@redhat.com>
4436 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4437 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4438 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4439 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4440 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4442 * m68k-tdep.c: Include arch-utils.h
4443 (m68k_register_raw_size): Add.
4444 (m68k_register_virtual_size): Add.
4445 (m68k_register_virtual_type): Add.
4446 (m68k_register_name): Add.
4447 (m68k_stack_align): Add.
4448 (m68k_register_byte): Add.
4449 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4452 2002-06-21 Grace Sainsbury <graces@redhat.com>
4454 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4455 m68k_find_saved_regs.
4456 (m68k_pop_frame): Removed saved_regs structure, and replaced
4457 references to it with frame->saved_regs.
4458 (m68k_gdbarch_init): Added function calls to initialize the
4460 (m68k_fix_call_dummy): Add.
4461 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4462 (CALL_DUMMY): Remove.
4463 (CALL_DUMMY_LENGTH): Remove.
4464 (CALL_DUMMY_START_OFFSET): Remove.
4465 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4466 (FIX_CALL_DUMMY): Remove.
4467 (PUSH_DUMMY_FRAME): Remove.
4468 (POP_FRAME): Remove.
4470 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4472 * parse.c (parse_fprintf): New function used to avoid calls to
4473 fprintf in bison parser generated debug code.
4474 * parser-defs.h: Declaration of new parse_fprintf function.
4475 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4476 Set YYDEBUG to 1 by default.
4477 Set YYFPRINTF as parse_fprintf.
4479 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4481 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4483 (pointer_encoding, enum ptr_encoding): New.
4484 (execute_cfa_program): Take care about pointer encoding.
4485 (dwarf2_build_frame_info): Only call parse_frame_info for
4486 .debug_frame and .eh_frame.
4487 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4488 fixed augmentation handling, added relative addressing,
4489 ignore duplicate FDEs. Added comments.
4490 * dwarf2cfi.c: Reindented.
4492 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4494 * event-top.c (command_handler): Don't use space_at_cmd_start
4495 unless there is sbrk() on the host. Assign time and space data
4496 to union fields of the appropriate length.
4498 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4500 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4501 x86_64_register_name. Return type changed to 'const char *'.
4502 (x86_64_register_name2nr): Rename to x86_64_register_number.
4503 (x86_64_gdbarch_init): Update to reflect the change.
4504 * x86-64-tdep.h: Ditto.
4505 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4506 (supply_fpregset): Ditto.
4508 2002-06-19 Andrew Cagney <cagney@redhat.com>
4510 * regcache.h: Update copyright.
4511 (struct regcache, struct gdbarch): Add opaque declarations.
4512 (current_regcache): Declare global variable.
4513 (regcache_read, regcache_write): Add gdbarch parameter.
4514 (regcache_save, regcache_save_no_passthrough)
4515 (regcache_restore, regcache_restore_no_passthrough)
4516 (regcache_dup, regcache_dup_no_passthrough)
4517 (regcache_cpy, regcache_cpy_no_passthrough)
4518 (deprecated_grub_regcache_for_registers)
4519 (deprecated_grub_regcache_for_register_valid)
4520 (regcache_valid_p): Add function declarations.
4522 * regcache.c: Update copyright.
4523 (regcache_descr_handle): New global variable.
4524 (struct regcache_descr): Define.
4525 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4526 (regcache_descr, xfree_regcache_descr): New functions.
4527 (struct regcache): Define.
4528 (regcache_xmalloc, regcache_xfree): New functions.
4529 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4530 (regcache_dup, regcache_dup_no_passthrough): New functions.
4531 (regcache_valid_p, regcache_read_as_address): New functions.
4532 (deprecated_grub_regcache_for_registers): New function.
4533 (deprecated_grub_regcache_for_register_valid): New function.
4534 (current_regcache): New global variable.
4535 (register_buffer): Add regcache parameter. Update calls.
4536 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4537 (read_register_gen, write_register_gen): Update register_buffer
4538 call. Test for legacy_p instead of gdbarch_register_read_p or
4539 gdbarch_register_write_p.
4540 (regcache_collect): Update register_buffer call.
4541 (build_regcache): Rewrite. Use deprecated grub functions.
4542 (regcache_save, regcache_save_no_passthrough): New functions.
4543 (regcache_restore, regcache_restore_no_passthrough): New
4545 (_initialize_regcache): Create the regcache_data_handle. Swap
4546 current_regcache global variable.
4548 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4549 parameter to regcache_read and regcache_write calls.
4550 (sh4_register_read): Ditto.
4551 (sh64_pseudo_register_read): Ditto.
4552 (sh64_register_read): Ditto.
4553 (sh_pseudo_register_write): Ditto.
4554 (sh4_register_write): Ditto.
4555 (sh64_pseudo_register_write): Ditto.
4556 (sh64_register_write): Ditto.
4558 * defs.h (XCALLOC): Define.
4560 2002-06-19 Grace Sainsbury <graces@redhat.com>
4562 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4563 * m68k-tdep.c (m68k_gdbarch_init): Added.
4564 (m68k_dump_tdep): Added.
4566 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4568 * ada-lang.c (fill_in_ada_prototype): Update comment.
4570 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4572 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4574 (mips_abi_string, mips_abi_strings): New.
4575 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4576 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4577 tdep->mips_abi_string. Honor mips_abi_string. Default to
4578 O32 if no ABI is found.
4579 (mips_dump_tdep): Use mips_abi_strings.
4580 (mips_abi_update): New function.
4581 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4582 ``set mips abi'' and ``show mips abi''. Check the size of
4585 2002-06-19 Andrew Cagney <cagney@redhat.com>
4587 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4590 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4592 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4593 current frame using only the first stack size adjustment. All
4594 subsequent size adjustments are not considered to be part of
4595 the "static" part of the current frame.
4596 Compute the address of the saved registers relative to the
4597 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4598 in use in this frame.
4600 2002-06-18 Don Howard <dhoward@redhat.com>
4602 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4603 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4604 suggesting this solution.
4606 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4608 * config/romp/xm-rtbsd.h: Delete file.
4609 * config/romp/rtbsd.mh: Delete file.
4611 2002-06-18 Keith Seitz <keiths@redhat.com>
4613 * breakpoint.c (condition_command): Post breakpoint_modify
4614 when a condition is added to an existing breakpoint.
4615 (commands_command): Likewise for commands.
4616 (set_ignore_count): Likewise for ignore counts.
4617 If no tty, do not simply return, still need to send event
4619 (ignore_command): Only print a newline if the command came
4621 Don't call breakpoints_changed, since this is now properly
4622 handled by set_ignore_count.
4624 2002-06-18 Andrew Cagney <cagney@redhat.com>
4626 * MAINTAINERS: Note that cris-elf target can be compiled with
4628 * cris-tdep.c (cris_register_name): Make return type constant.
4629 (cris_breakpoint_from_pc): Ditto.
4631 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4633 * frame.h (struct frame_info): Change type of context to
4636 2002-06-17 Andrew Cagney <cagney@redhat.com>
4638 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641 * config/mips/tm-mips.h (mips_register_name): Update.
4642 * i386-tdep.h (i386_register_name): Update.
4643 * mips-tdep.c (mips_register_name): Update
4644 * alpha-tdep.c (alpha_register_name): Update.
4645 * arch-utils.c (legacy_register_name): Update.
4646 * arch-utils.h (legacy_register_name): Update.
4647 * avr-tdep.c (avr_register_name): Update.
4648 * ia64-tdep.c (ia64_register_name): Update.
4649 * i386-tdep.c (i386_register_name): Update.
4650 * sparc-tdep.c (sparc32_register_name): Update.
4651 (sparc64_register_name): Update.
4652 (sparclite_register_name): Update.
4653 (sparclet_register_name): Update.
4654 * sh-tdep.c (sh_generic_register_name): Update.
4655 (sh_sh_register_name): Update.
4656 (sh_sh3_register_name): Update.
4657 (sh_sh3e_register_name): Update.
4658 (sh_sh_dsp_register_name): Update.
4659 (sh_sh3_dsp_register_name): Update.
4660 (sh_sh4_register_name): Update.
4661 (sh_sh64_register_name): Update.
4662 * s390-tdep.c (s390_register_name): Update.
4663 * rs6000-tdep.c (rs6000_register_name): Update.
4664 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4665 (ns32k_register_name_32382): Update.
4666 * d10v-tdep.c (d10v_ts2_register_name): Update.
4667 (d10v_ts3_register_name): Update.
4668 * xstormy16-tdep.c (xstormy16_register_name): Update.
4669 * vax-tdep.c (vax_register_name): Update.
4670 * v850-tdep.c (v850_register_name): Update.
4671 * m68hc11-tdep.c (m68hc11_register_name): Update.
4672 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4673 (am33_register_name): Update.
4675 2002-06-17 Grace Sainsbury <graces@redhat.com>
4677 * m68k-tdep.c: Reindented.
4679 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4681 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4682 list of predefined types.
4684 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4686 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4687 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4688 REGISTER_CONVERT_TO_RAW): Remove defines.
4689 (i386_register_virtual_type, i386_register_convertible,
4690 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4692 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4693 macros mentioned above.
4695 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4696 (i386lynx_saved_pc_after_call): Remove prototype.
4697 * i386ly-tdep.c: Include "i386-tdep.h".
4698 (i386lynx_saved_pc_after_call): Make static. Use
4699 read_memory_nobpt instead of read_memory. Use
4700 read_memory_unsigned_integer instead of read_memory_integer.
4701 (i386lynx_init_abi): New function.
4702 (i386lynx_coff_osabi_sniffer): New function.
4703 (_initialize_i386bsd_tdep): New function.
4705 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4706 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4707 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4708 (i386_fix_call_dummy): Remove prototype.
4709 * i386-tdep.c (i386_call_dummy_words): New variable.
4710 (i386_gdbarch_init): Adjust for removal of the
4711 macros mentioned above.
4713 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4715 * command.h (add_setshow_auto_boolean_cmd): Replace
4716 add_set_auto_boolean_cmd.
4717 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4718 add_set_auto_boolean_cmd.
4719 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4720 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4721 mask-address'' command.
4722 (show_mask_address): Add cmd parameter.
4723 * remote.c (add_packet_config_cmd): Update. Change type of
4724 set_func and show_func to cmd_sfunc_ftype.
4725 (_initialize_remote): Update `set remote Z-packet'
4726 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4727 (show_remote_protocol_e_packet_cmd): Ditto.
4728 (show_remote_protocol_E_packet_cmd): Ditto.
4729 (show_remote_protocol_P_packet_cmd): Ditto.
4730 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4731 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4732 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4733 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4734 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4735 (show_remote_protocol_Z_packet_cmd): Ditto.
4736 (show_remote_protocol_binary_download_cmd): Ditto.
4737 (show_remote_cmd): Pass NULL to all of above.
4739 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4741 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4742 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4743 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4744 POP_FRAME): Remove defines.
4745 (i386_push_arguments, i386_store_struct_return,
4746 i386_extract_return_value, i386_store_return_value,
4747 i386_extract_struct_value_address, i386_push_dummy_frame,
4748 i386_pop_frame): Renove prototypes.
4749 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4750 macros mentioned above.
4752 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4754 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4755 add_set_boolean_cmd.
4756 (add_setshow_cmd): New function.
4757 * command.h (add_setshow_boolean_cmd): Replace
4758 add_set_boolean_cmd.
4759 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4760 and ``set rdiromatzero''.
4761 * maint.c (_initialize_maint_cmds): Update commented out code.
4762 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4763 * target.c (initialize_targets): Update `set
4764 trust-readonly-sections'.
4765 * remote.c (_initialize_remote): Update `set remotebreak'.
4767 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4769 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4770 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4771 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4772 fit into multi-arch framework.
4773 (i386_breakpoint_from_pc): New function.
4774 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4777 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4778 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4779 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4780 (i386_frameless_function_invocation, i386_frame_num_args,
4781 i386_frame_init_saved_regs): Remove prototypes.
4782 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4783 macros mentioned above.
4785 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4787 * cli/cli-decode.c (set_cmd_cfunc): Update.
4788 (set_cmd_sfunc): Update.
4789 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4790 (set_cmd_sfunc, set_cmd_cfunc): Update.
4791 * cli/cli-decode.h: Update.
4793 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4795 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4796 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4798 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4800 * defs.h (auto_boolean): Declare enum.
4801 * command.h (cmd_auto_boolean): Delete enum.
4802 * mips-tdep.c (mask_address_var): Update.
4803 (mips_mask_address_p): Update.
4804 (show_mask_address): Update.
4805 * remote.c (struct packet_config): Update.
4806 (update_packet_config): Update.
4807 (show_packet_config_cmd): Update.
4808 (packet_ok): Update.
4809 (add_packet_config_cmd): Update.
4810 (_initialize_remote):
4811 * command.h: Update.
4812 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4813 (do_setshow_command): Update.
4814 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4815 * cli/cli-decode.h: Update.
4817 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4819 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4820 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4821 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4822 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4823 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4824 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4826 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4827 list of DJGPP COFF targets.
4829 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4830 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4831 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4832 (FP0_REGNUM): Remove define.
4833 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4834 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4835 (i386_register_virtual_size): Remove protoype.
4836 * i386-tdep.c (i386_register_virtual_size): Removed.
4837 (i386_extract_return_value, i386_store_return_value): Use
4838 FP0_REGNUM instead of NUM_FREGS to determine whether the
4839 floating-point registers are available.
4840 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4841 Adjust for removal of macros mentioned above.
4843 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4845 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4847 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4849 (supply_gregset, fill_gregset): Remove use of register keyword and
4850 remove declaration for regmap. Use I386_NUM_GREGS instead of
4851 NUM_REGS and NUM_FREGS.
4852 (FPREGSET_FSAVE_OFFSET): Remove.
4853 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4854 NUM_FREGS to determine whether the floating-point registers are
4857 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4858 gnu_store_registers): Replace usage of NUM_GREGS with
4861 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4862 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4863 usage of NUM_GREGS with I386_NUM_GREGS.
4865 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4867 * i386bsd-nat.c: Include "i386-tdep.h".
4868 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4871 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4872 and associated comment. They no longer make any sense, since we
4873 don't use this file anymore on Linux.
4875 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4876 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4877 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4878 elements in these arrays.
4879 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4882 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4884 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4885 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4887 2002-06-14 Andrew Cagney <cagney@redhat.com>
4889 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4890 EXTRACT_RETURN_VALUE.
4891 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4892 EXTRACT_STRUCT_VALUE_ADDRESS.
4893 * gdbarch.h, gdbarch.c: Regenerate.
4895 * values.c (value_being_returned): Handle
4896 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4897 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4899 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4900 * arm-tdep.c (arm_gdbarch_init): Update.
4901 * avr-tdep.c (avr_gdbarch_init): Update.
4902 * cris-tdep.c (cris_gdbarch_init): Update.
4903 * d10v-tdep.c (d10v_gdbarch_init): Update.
4904 * ia64-tdep.c (ia64_gdbarch_init): Update.
4905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4907 * s390-tdep.c (s390_gdbarch_init): Update.
4908 * sh-tdep.c (sh_gdbarch_init): Update.
4909 * s390-tdep.c (s390_gdbarch_init): Update.
4910 * sparc-tdep.c (sparc_gdbarch_init): Update.
4911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4912 * v850-tdep.c (v850_gdbarch_init): Update.
4913 * vax-tdep.c (vax_gdbarch_init): Update.
4914 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4917 * config/arc/tm-arc.h: Update.
4918 * config/d30v/tm-d30v.h: Update.
4919 * config/fr30/tm-fr30.h: Update.
4920 * config/h8300/tm-h8300.h: Update.
4921 * config/h8500/tm-h8500.h: Update.
4922 * config/i386/tm-i386.h: Update.
4923 * config/i386/tm-ptx.h: Update.
4924 * config/i386/tm-symmetry.h: Update.
4925 * config/i960/tm-i960.h: Update.
4926 * config/m32r/tm-m32r.h: Update.
4927 * config/m68k/tm-delta68.h: Update.
4928 * config/m68k/tm-linux.h: Update.
4929 * config/m68k/tm-m68k.h: Update.
4930 * config/m88k/tm-m88k.h: Update.
4931 * config/mcore/tm-mcore.h: Update.
4932 * config/mips/tm-mips.h: Update.
4933 * config/mn10200/tm-mn10200.h: Update.
4934 * config/pa/tm-hppa.h: Update.
4935 * config/pa/tm-hppa64.h: Update.
4936 * config/sparc/tm-sp64.h: Update.
4937 * config/sparc/tm-sparc.h: Update.
4938 * config/sparc/tm-sparclet.h: Update.
4939 * config/z8k/tm-z8k.h: Update.
4941 2002-06-14 Andrew Cagney <cagney@redhat.com>
4943 * Makefile.in (i386_linux_tdep_h): Define.
4944 (i386_tdep_h, i387_tdep_h): Define.
4945 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4946 $(i386_tdep_h) and $(i387_tdep_h).
4947 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4949 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4951 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4952 Already covered by the default.
4954 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4955 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4956 (i386_gdbarch_init): Initialize long_double_format and long_double
4959 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4960 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4962 * config/i386/i386sol2.mh: ... here.
4963 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4964 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4965 (SIGCONTEXT_PC_OFFSET): Remove define.
4966 (IN_SIGTRAMP): Remove define.
4967 * i386-sol2-tdep.c: New file.
4969 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4970 * config/i386/tm-i386nw.h: Removed.
4972 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4973 USE_STRUCT_CONVENTION): Remove defines.
4974 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4975 (get_longjmp_target): Remove prototype.
4976 (IN_SIGTRAMP): Remove define.
4977 (i386bsd_in_sigtramp): Remove prototype.
4978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4979 function. Update comment accordingly
4980 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4981 (FRAME_SAVED_PC): Remove define.
4982 (i386bsd_frame_saved_pc): Remove prototype.
4983 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4984 GET_LONGJMP_TARGET): Remove defines.
4985 (get_longjmp_target): Remove prototype.
4986 (IN_SIGTRAMP): Remove define.
4987 (i386bsd_in_sigtramp): Remove prototype.
4988 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4989 function. Update comment accordingly
4990 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4991 (FRAME_SAVED_PC): Remove define.
4992 (i386bsd_frame_saved_pc): Remove prototype.
4993 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4995 (USE_STRUCT_CONVENTION): Remove prototype.
4996 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4998 (_initialize_i386bsd_nat): Revise logic to determine some
4999 constants at compile time when compiling a native GDB. Warn if
5000 things don't match up with what we expect.
5001 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5003 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5004 to use date stored in `struct gdbarch_tdep'.
5005 (i386bsd_sigcontext_offset): Remove varaible.
5006 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5007 stored in `struct gdbarch_tdep'.
5008 (i386bsd_frame_saved_pc): Make static.
5009 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5010 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5011 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5012 i386fbsd4_sc_pc_offset): New variables.
5013 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5014 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5016 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5018 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5019 Modify the value of i386fbsd_sigtramp_start and
5020 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5021 i386fbsd_sigtramp_end.
5022 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5025 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5026 define to i386-linux-tdep.h.
5027 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5028 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5030 (i386_linux_register_name, i386_linux_register_byte,
5031 i386_linux_register_raw_size): Remove prototypes.
5032 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5033 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5034 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5035 TARGET_WRITE_PC): Remove defines.
5036 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5037 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5038 i386_linux_write_pc): Remove prototypes.
5039 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5040 (get_longjmp_target): Remove prototype.
5041 * i386-linux-tdep.h: New file.
5042 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5043 * i386-linux-tdep.c: Include "i386-tdep.h" and
5044 "i386-linux-tdep.h".
5045 (i386_linux_register_name, i386_linux_register_byte,
5046 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5047 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5049 (i386_linux_init_abi): New function.
5050 (_initialize_i386_linux_tdep): New function.
5052 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5053 (i386_saved_pc_after_call): Remove prototype.
5054 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5055 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5056 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5057 (i386_register_name, i386_stab_reg_to_regnum,
5058 i386_dwarf_reg_to_regnum): Remove prototypes.
5059 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5060 SIZEOF_SSE_REGS): Remove defines.
5061 (REGISTER_BYTES): Remove define.
5062 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5063 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5064 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5065 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5066 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5067 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5068 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5069 (get_longjmp_target): Remove prototype.
5070 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5071 (sigtramp_saved_pc): Remove define.
5072 (i386v4_sigtramp_saved_pc): Remove prototype.
5073 * config/i386/tm-go32.h (FRAME_CHAIN,
5074 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5075 (i386go32_frame_saved_pc): Remove prototype.
5076 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5077 (get_longjmp_target): Remove prototype.
5078 * i386-tdep.h: Include "osabi.h".
5079 (enum i386_abi): Removed.
5080 (enum struct_return): New enum.
5081 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5082 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5083 sc_pc_offset members.
5084 (i386_gdbarch_register_os_abi): Remove prototype.
5085 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5086 I386_SSE_NUM_REGS): New defines.
5087 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5088 I386_SSE_SIZEOF_REGS): New defines.
5089 (i386_register_name, i386_register_byte, i386_register_raw_size):
5091 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5092 (i386bsd_sigtramp_saved_pc): New prototype.
5093 * i386-tdep.c: Don't include "elf-bfd.h".
5094 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5095 i386_frame_chain, i386_saved_pc_after_call): Make static.
5096 (i386_frame_saved_pc): Rewrite to call architecture dependent
5097 function to deal with signal handlers. Make static.
5098 (i386go32_frame_saved_pc): Removed.
5099 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5101 (i386_get_longjmp_target): New function.
5102 (default_struct_convention, pcc_struct_convention,
5103 reg_struct_convention, valid_conventions, struct_convention): New
5105 (i386_use_struct_convention): New function.
5106 (i386v4_sigtramp_saved_pc): Renamed to
5107 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5108 (i386_pc_in_sigtramp): New function.
5109 (i386_abi_names): Removed.
5110 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5111 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5113 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5114 i386_gdbarch_register_os_abi): Removed.
5115 (struct i386_abi_handler): Removed.
5116 (i386_abi_handler_list): Removed.
5117 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5119 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5120 i386_nw_init_abi): New functions.
5121 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5122 Use set_gdbarch_xxx() calls instead of relying on macros for a
5124 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5125 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5126 Register the various architecture variants defined in this file.
5128 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5130 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5131 (struct main_type): Remove arg_types member. Update comments for
5133 (TYPE_ARG_TYPES): Remove.
5134 (TYPE_FN_FIELD_ARGS): Update.
5135 (smash_to_method_type): Update prototype.
5137 * c-typeprint.c (cp_type_print_method_args): Take method type
5138 instead of argument list. Use new argument layout. Simplify.
5139 (c_type_print_args): Use new argument layout. Simplify.
5140 (c_type_print_base): Update call to cp_type_print_method_args.
5141 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5142 argument; use die->type instead. Update call to
5143 smash_to_method_type.
5144 (read_structure_scope): Update call to dwarf2_add_member_fn.
5145 * gdbtypes.c (allocate_stub_method): Update comment.
5146 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5147 Use new argument layout.
5148 (check_stub_method): Use new argument layout. Don't count
5149 void as an argument.
5150 (print_arg_types): Update comments. Use new argument layout.
5151 (recursive_dump_type): Don't print arg_types member.
5152 * hpread.c (hpread_read_struct_type): Use new argument layout.
5153 (fixup_class_method_type): Likewise.
5154 (hpread_type_lookup): Likewise.
5155 * stabsread.c (read_type): Update calls to read_args and
5156 smash_to_method_type.
5157 (read_args): Use new argument layout. Simplify.
5158 * valops.c (typecmp): Use new argument layout. Update parameters
5159 and comments. Simplify.
5160 (hand_function_call): Use new argument layout.
5161 (search_struct_method): Update call to typecmp.
5162 (find_overload_match): Use new argument layout.
5164 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5166 * NEWS: Mention multithreaded debug support for gdbserver.
5168 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5170 * MAINTAINERS: Mention NEWS.
5172 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5174 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5175 (struct mips_objfile_private, compare_pdr_entries): New.
5176 (non_heuristic_proc_desc): Read the ".pdr" section if it
5179 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5181 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5182 (arm_debug): New static variable.
5183 (_initialize_arm_tdep): Add ``set debug arm'' command.
5185 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5187 * Makefile.in (sim_arm_h): Define.
5188 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5189 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5190 (arm_register_sim_regno): New function, map an internal REGNUM
5191 onto a simulator register number.
5192 (arm_gdbarch_init): Set register_sim_regno.
5194 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5196 * MAINTAINERS: Add self.
5198 2002-06-11 Jim Blandy <jimb@redhat.com>
5200 * source.c (source_info): Mention whether the symtab has
5201 information about preprocessor macros.
5203 Call the command `info macro', not `show macro'.
5204 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5206 (_initialize_macrocmd): Register `info_macro_command' in
5207 `infolist', not `showlist'.
5209 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5211 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5212 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5213 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5214 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5215 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5217 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5218 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5219 (_initialize_mips_tdep): Remove dead code.
5220 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5221 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5222 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5223 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5224 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5225 MIPS_LAST_FP_ARG_REGNUM): Remove.
5227 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5229 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5230 (unwind_tmp_obstack_free, parse_frame_info)
5231 (update_context, cfi_read_fp, cfi_write_fp)
5232 (cfi_frame_chain, cfi_init_extra_frame_info)
5233 (cfi_virtual_frame_pointer): Use the above function.
5234 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5236 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5238 * v850-tdep.c (v850_type_is_scalar): New function.
5239 (v850_use_struct_convention): Match current gcc implementation
5240 as close as possible.
5241 (v850_push_arguments): Fix stack_offset handling. Don't write
5242 struct_addr into register. This is done by v850_store_struct_return.
5243 (v850_extract_return_value): Care for structs.
5244 (v850_store_return_value): Ditto.
5245 (v850_store_struct_return): Actually write address.
5247 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5249 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5250 without debug information too.
5252 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5254 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5255 Make multi-arch pure.
5256 * gdbarch.h, gdbarch.c: Re-generate.
5257 * arm-tdep.c (arm_print_float_info): Update.
5258 * arch-utils.h (default_print_float_info): Update.
5259 * arch-utils.c (default_print_float_info): Update.
5260 * infcmd.c (float_info): Update call.
5262 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5264 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5265 the front of the initialize list.
5267 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5269 * infrun.c (struct inferior_status): Replace fields
5270 selected_frame_address and selected_level with field
5272 (save_inferior_status): Update. Use get_frame_id.
5273 (struct restore_selected_frame_args): Delete.
5274 (restore_selected_frame): Update. Use frame_find_by_id.
5275 (restore_inferior_status): Update.
5277 * breakpoint.h (struct breakpoint): Change type of
5278 watchpoint_frame to frame_id.
5279 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5280 call to get_current_frame.
5281 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5283 (watchpoint_check): Use frame_find_by_id.
5285 * frame.h (record_selected_frame): Delete declaration.
5286 * stack.c (record_selected_frame): Delete function.
5288 * frame.h (struct frame_id): Define.
5289 (get_frame_id): Declare.
5290 (frame_find_by_id): Declare.
5291 * frame.c (frame_find_by_id): New function.
5292 (get_frame_id): New function.
5294 2002-06-10 Andrey Volkov <avolkov@transas.com>
5296 * ser-e7kpc.c: Fix duplicated define and call of
5297 _initialize_ser_e7000pc
5299 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5301 * signals/signals.c (target_signal_from_host): Fix #ifdef
5303 (do_target_signal_to_host): Likewise.
5305 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5307 * mips-tdep.c (mips_find_abi_section): New function.
5308 (mips_gdbarch_init): Call it.
5310 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5312 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5313 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5314 after Andrew's 2002-06-08 gdbarch change.
5316 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5318 * i386-linux-nat.c (suppy_gregset): Don't supply
5319 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5321 (fill_gregset): Don't fetch it under the same circumstances.
5323 2002-06-09 Andrew Cagney <cagney@redhat.com>
5325 * Makefile.in (callback_h): Define.
5326 (remote_sim_h): Update path to remote-sim.h.
5327 (remote-rdp.o): Add $(callback_h).
5328 (remote-sim.o): Use $(callback_h).
5329 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5330 * remote-rdp.c: Include "gdb/callback.h".
5332 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5334 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5335 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5337 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5339 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5340 * rdi-share/serpardr.c: Ditto.
5341 * rdi-share/unixcomm.c: Ditto.
5342 * rdi-share/serdrv.c: Ditto.
5343 * rdi-share/hostchan.h: Ditto.
5344 * rdi-share/hostchan.c: Ditto.
5345 * rdi-share/host.h: Ditto.
5346 * rdi-share/devsw.c: Ditto.
5348 * objfiles.h: Change type of obj_private to void pointer.
5349 * pa64solib.c: Update copyright. Don't include "assert.h", use
5350 strcmp instead of STREQ, use LONGEST, do not use PTR
5351 * somsolib.c: Ditto.
5353 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5354 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5355 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5357 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5359 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5360 (default_get_saved_register): Delete function.
5361 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5362 generic_unwind_get_saved_register.
5363 * gdbarch.h, gdbarch.c: Re-generate.
5365 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5367 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5368 generic_func_frame_chain_valid.
5369 * gdbarch.h, gdbarch.c: Re-generate.
5370 * blockframe.c (generic_func_frame_chain_valid): Only check
5371 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5372 passing FP to PC_IN_CALL_DUMMY.
5375 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5377 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5378 (register_gdbarch_data): Initialize init_p.
5379 (gdbarch_data): Initialize data pointer using the init function.
5380 (init_gdbarch_data): Delete function.
5381 (gdbarch_update_p): Update.
5382 (initialize_non_multiarch): Update.
5383 (struct gdbarch): Add field initialized_p.
5384 * gdbarch.h, gdbarch.c: Re-generate.
5386 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5388 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5389 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5390 better do the things actually here.
5391 * x86-64-tdep.c (x86_64_register_name2nr): New.
5392 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5393 (x86_64_gdbarch_init): Respect the above change.
5394 * x86-64-tdep.h (x86_64_register_name2nr)
5395 (x86_64_register_nr2name): Add prototypes.
5396 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5398 2002-06-06 Michael Snyder <msnyder@redhat.com>
5400 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5401 Delete extra braces and re-indent.
5402 (d10v_store_return_value): Char return values
5403 must be shifted over by one byte in R0.
5404 (d10v_extract_return_value): Delete extra braces, re-indent.
5406 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5408 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5409 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5410 (d10v_integer_to_address): Rewrite.
5411 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5412 the d10v specific functions which take care of converting to the
5415 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5417 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5418 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5420 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5422 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5424 * config/tm-linux.h: Ditto.
5425 * config/alpha/tm-alphalinux.h: Ditto.
5426 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5427 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5428 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5429 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5430 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5431 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5432 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5433 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5434 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5435 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5436 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5437 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5438 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5439 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5440 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5441 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5442 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5443 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5444 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5445 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5446 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5447 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5448 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5449 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5450 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5451 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5452 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5453 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5454 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5455 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5456 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5457 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5458 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5459 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5460 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5461 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5462 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5464 2002-05-04 Aidan Skinner <aidan@velvet.net>
5466 * ada-exp.tab.c: New file
5467 * ada-exp.y: New file
5468 * ada-lang.c: New file
5469 * ada-lang.h: New file
5470 * ada-lex.c: New file
5471 * ada-lex.l: New file
5472 * ada-tasks.c: New file
5473 * ada-typeprint.c: New file
5474 * ada-valprint.c: New file
5476 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5478 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5479 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5481 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5483 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5484 insetead of ppc-linux-tdep.o.
5485 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5486 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5488 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5490 2002-05-07 Christian Groessler <chris@groessler.org>
5491 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5492 bit register contents for little endian hosts.
5494 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5496 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5499 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5501 * gdbarch.h: Regenerate.
5503 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5505 * MAINTAINERS: Add everyone to write-after-approval list.
5507 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5509 * stack.c (frame_info): Use frame_register_unwind instead of
5510 saved_regs. Mention when the SP is on the stack or in a register.
5512 * frame.h (frame_register_unwind_ftype): Define. Document.
5513 (struct frame_info): Add field register_unwind and
5514 register_unwind_cache.
5515 (frame_register_unwind): Declare.
5516 (generic_unwind_get_saved_register): Declare.
5518 * frame.c (frame_register_unwind): New function.
5519 (generic_unwind_get_saved_register): New function.
5521 * blockframe.c (generic_call_dummy_register_unwind): New function.
5522 (frame_saved_regs_register_unwind): New function.
5523 (set_unwind_by_pc): New function.
5524 (create_new_frame): New function.
5525 (get_prev_frame): New function.
5527 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5529 * a29k-share/: Delete directory.
5530 * remote-vx29k.c: Delete file.
5532 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5534 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5535 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5537 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5539 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5540 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5543 (sparcnbsd-tdep.o): New dependency lists.
5544 * NEWS: Note new UltraSPARC NetBSD native configuration.
5545 * configure.host (sparc64-*-netbsd*): New host.
5546 * configure.tgt (sparc-*-netbsdelf*)
5547 (sparc-*-netbsd*): Set gdb_target to nbsd.
5548 (sparc64-*-netbsd*): New target.
5549 * sparc64nbsd-nat.c: New file.
5550 * sparcnbsd-nat.c: New file.
5551 * sparcnbsd-tdep.c: New file.
5552 * sparcnbsd-tdep.h: New file.
5553 * config/sparc/nbsd.mt: New file.
5554 * config/sparc/nbsd64.mh: New file.
5555 * config/sparc/nbsd64.mt: New file.
5556 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5557 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5559 * config/sparc/nbsdaout.mt: Remove.
5560 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5561 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5563 * config/sparc/nbsdelf.mt: Remove.
5564 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5565 sparc-nat.c compatiblity defines.
5566 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5567 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5568 * config/sparc/tm-nbsd64.h: New file.
5569 * config/sparc/tm-nbsdaout.h: Remove.
5570 * config/sparc/xm-nbsd.h: Remove.
5572 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5574 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5575 * sparc-tdep.c: Include osabi.h.
5576 (gdbarch_tdep): Add osabi member.
5577 (_initialize_sparc_tdep): Use gdbarch_register.
5578 (sparc_gdbarch_init): Use generic OS ABI framework.
5579 (sparc_dump_tdep): New function.
5581 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5583 * corefile.c (do_captured_read_memory_integer): Return non-zero
5585 (safe_read_memory_integer): Copy result of memory read when
5586 status is non-zero. Also, add comments.
5588 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5590 * Makefile.in (ppc_tdep_h): Define.
5593 (rs6000-tdep.o): Use $(ppc_tdep_h).
5596 (ppcnbsd-tdep.o): New dependency lists.
5597 * ppc-tdep.h: Use generic OS ABI framework.
5598 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5599 (ppc_linux_init_abi): New functions.
5600 (ppc_sysv_abi_broken_use_struct_convention)
5601 (ppc_sysv_abi_use_struct_convention)
5602 (ppc_sysv_abi_push_arguments): Move to...
5603 * ppc-sysv-tdep.c: ...here.
5604 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5605 * rs6000-tdep.c (process_note_abi_tag_sections)
5606 (get_elfosabi): Remove.
5607 (rs6000_gdbarch_init): Use generic OS ABI framework.
5608 (rs6000_dump_tdep): New function.
5609 (_initialize_rs6000_tdep): Use gdbarch_register.
5610 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5611 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5612 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5613 of ppc-linux-tdep.o.
5614 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5615 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5616 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5617 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5618 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5619 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5621 2002-05-29 Jim Blandy <jimb@redhat.com>
5623 * macroscope.c (default_macro_scope): Put `void' in empty argument
5626 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5628 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5629 * arch-utils.c: Include "sim-regno.h".
5630 * gdbarch.sh: Don't include "sim-regno.h".
5631 * gdbarch.h, gdbarch.c: Regenerate.
5632 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5634 * arch-utils.h (legacy_register_sim_regno): To here.
5635 * remote-sim.c (legacy_register_sim_regno): Move function from
5637 * arch-utils.c (legacy_register_sim_regno): To here.
5639 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5641 * sim-regno.h: New file.
5642 * Makefile.in (sim_regno_h): Define.
5643 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5644 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5645 (legacy_register_sim_regno): New function.
5646 (one2one_register_sim_regno): New function.
5647 (gdbsim_fetch_register): Rewrite.
5648 (gdbsim_store_register): Only store a register when
5649 REGISTER_SIM_REGNO is valid.
5650 * d10v-tdep.c: Include "sim-regno.h".
5651 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5652 (d10v_ts3_register_sim_regno): Ditto.
5653 * gdbarch.sh: Include "sim-regno.h".
5654 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5655 * gdbarch.h, gdbarch.c: Regenerate.
5656 * arch-utils.h (default_register_sim_regno): Delete declaration.
5657 * arch-utils.c (default_register_sim_regno): Delete function.
5659 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5661 * ppcnbsd-nat.c: Rewrite.
5662 * ppcnbsd-tdep.c: New file.
5663 * ppcnbsd-tdep.h: New file.
5664 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5665 solib.o, and solib-svr4.o.
5666 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5667 nbsd-tdep.o, and corelow.o.
5669 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5671 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5672 `tr' and `sed'. Mention that `broken' targets are not expected to
5675 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5677 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5678 Let PC point right after the prologue before looking up symbols.
5680 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5682 * i386-tdep.c (i386_register_virtual_type): Return
5683 builtin_type_vec128i for SSE registers.
5685 * gdbtypes.h (builtin_type_vec128i): Declare.
5687 * gdbtypes.c (build_builtin_type_vec128i): New function.
5688 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5689 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5690 (build_gdbtypes): Initialize new builtin vector types.
5691 (_initialize_gdbtypes): Register new vector types with gdbarch.
5693 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5695 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5696 since it has been multi-arch'd.
5697 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5698 Move Alpha and VAX multi-arch news entries to same section
5699 as other multi-arch news.
5701 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5703 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5704 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5705 static. Rename some register numbers to put them in ns32k-tdep
5707 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5708 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5710 (_initialize_ns32k_tdep): Use gdbarch_register.
5711 * ns32k-tdep.h: New file.
5712 * ns32knbsd-tdep.c: New file.
5713 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5714 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5715 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5716 REGISTER_BYTES, REGISTER_BYTE): Remove.
5717 * config/ns32k/tm-ns32k.h: New file.
5718 * config/ns32k/tm-umax.h: Remove.
5720 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5722 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5723 ns32k_store_struct_return, ns32k_extract_return_value,
5724 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5726 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5727 ns32k_saved_pc_after_call.
5728 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5729 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5730 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5731 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5732 ns32k_extract_struct_value_address.
5734 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5736 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5737 ns32k_fix_call_dummy): New.
5738 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5739 ns32k_call_dummy_words.
5740 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5741 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5742 CALL_DUMMY_NARGS): Remove.
5743 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5745 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5747 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5748 ns32k_frame_saved_pc, ns32k_frame_args_address,
5749 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5750 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5751 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5752 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5753 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5754 (BREAKPOINT): Remove..
5755 (FRAME_CHAIN): Define as ns32k_frame_chain.
5756 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5757 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5758 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5759 (FRAME_FIND_SAVED_REGS): Remove.
5760 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5761 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5762 (POP_FRAME): Define as ns32k_pop_frame.
5764 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5766 * ns32k-tdep.c (ns32k_register_byte_32082,
5767 ns32k_register_byte_32382, ns32k_register_raw_size,
5768 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5770 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5771 ns32k_register_byte_32382.
5772 * config/ns32k/tm-umax.h: Update copyright years.
5773 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5774 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5775 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5776 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5777 (ns32k_get_enter_addr): Fix prototype.
5779 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5781 * ns32k-tdep.c: Update copyright years.
5782 (ns32k_register_name_32082): New function.
5783 (ns32k_register_name_32382): Ditto.
5784 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5785 (REGISTER_NAME): Define as ns32k_register_name_32382.
5786 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5787 (REGISTER_NAME): Define as ns32k_register_name_32082.
5789 2002-05-24 Jim Blandy <jimb@redhat.com>
5791 * dwarf2read.c (free_line_header): Use xfree, not free.
5793 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5795 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5796 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5798 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5800 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5802 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5804 From Ross Alexander at NEC Europe:
5805 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5807 2002-05-23 Michael Snyder <msnyder@redhat.com>
5809 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5810 for input, rather than parse_and_eval_address.
5812 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5814 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5815 * Makefile.in (sim_d10v_h): Update definition.
5817 2002-05-24 Andrew Cagney <cagney@redhat.com>
5819 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5820 change `2002-05-22 Michael Snyder' below.
5821 (d10v_push_arguments): Ditto.
5822 (d10v_extract_return_value): Ditto.
5824 2002-05-23 Jim Blandy <jimb@redhat.com>
5826 * macrotab.c (check_for_redefinition): Don't complain if the new
5827 definition is the same as the previous one. Take more arguments
5828 to allow the comparison.
5829 (macro_define_object, macro_define_function): Pass more arguments
5830 to check_for_redefinition.
5832 2002-05-22 Michael Snyder <msnyder@redhat.com>
5834 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5835 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5836 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5837 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5838 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5839 Add a temp variable to save a call (and a memory read).
5840 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5841 if possible (so that PC_IN_CALL_DUMMY will work).
5843 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5845 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5847 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5849 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5851 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5852 (dwarf2_build_frame_info): Add offset to fde->initial_location
5853 so that frames of shared libraries are mapped correctly.
5854 (execute_stack_op): Change type of 'result' from ULONGEST to
5857 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5859 * config/alpha/tm-nbsd.h: Include solib.h.
5861 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5863 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5864 assumptions about the host's byte order.
5866 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5868 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5870 * alphanbsd-tdep.c: Include solib-svr4.h.
5871 * shnbsd-tdep.c: Ditto.
5873 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5875 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5876 nbsd-tdep.h to dependency list.
5877 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5878 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5879 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5880 nbsdaout.mh and nbsdelf.mh consistently.
5881 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5882 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5883 nbsdaout.mt and nbsdelf.mh consistently.
5884 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5885 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5886 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5887 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5888 a.out shared library stuff from here...
5889 * config/nm-nbsdaout.h: ...to here.
5890 * config/tm-nbsd.h: Remove.
5891 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5892 * config/arm/nbsd.mh: Remove.
5893 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5895 * config/arm/nbsdaout.mh: New file.
5896 * config/arm/nbsdelf.mh: New file.
5897 * config/arm/nm-nbsdaout.h: New file.
5898 * config/i386/nbsd.mh: Remove.
5899 * config/i386/nbsd.mt: Remove.
5900 * config/i386/nbsdaout.mh: New file.
5901 * config/i386/nbsdaout.mt: New file.
5902 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5903 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5904 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5905 i386_register_u_addr): Remove.
5906 * config/i386/nm-nbsdaout.h: New file.
5907 * config/i386/nm-nbsdelf.h: Remove.
5908 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5909 (USE_STRUCT_CONVENTION): Remove.
5910 * config/i386/tm-nbsdaout.h: New file.
5911 * config/i386/tm-nbsdelf.h: Remove.
5912 * config/m68k/nbsd.mh: Remove.
5913 * config/m68k/nbsd.mt: Remove.
5914 * config/m68k/nbsdaout.mh: New file.
5915 * config/m68k/nbsdaout.mt: New file.
5916 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5917 * config/m68k/nm-nbsdaout.h: New file.
5918 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5919 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5920 * config/ns32k/nbsd.mh: Remove.
5921 * config/ns32k/nbsd.mt: Remove.
5922 * config/ns32k/nbsdaout.mh: New file.
5923 * config/ns32k/nbsdaout.mt: New file.
5924 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5925 * config/ns32k/nm-nbsdaout.h: New file.
5926 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5927 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5928 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5929 (SVR4_SHARED_LIBS): Remove.
5930 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5931 * config/sparc/nbsd.mh: Remove.
5932 * config/sparc/nbsd.mt: Remove.
5933 * config/sparc/nbsdaout.mh: New file.
5934 * config/sparc/nbsdaout.mt: New file.
5935 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5936 * config/sparc/nbsdelf.mt: New file.
5937 * config/sparc/nm-nbsdaout.h: New file.
5938 * config/sparc/nm-nbsdelf.h: Remove.
5939 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5940 * config/sparc/tm-nbsdaout.h: New file.
5942 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5944 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5946 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5948 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5950 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5952 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5954 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5956 * NEWS: Note new MIPS NetBSD native configuration.
5957 * configure.host (mips*-*-netbsd*): New host.
5958 * configure.tgt (mips*-*-netbsd*): New target.
5959 * mipsnbsd-nat.c: New file.
5960 * mipsnbsd-tdep.c: New file.
5961 * mipsnbsd-tdep.h: New file.
5962 * config/mips/nbsd.mh: New file.
5963 * config/mips/nbsd.mt: New file.
5964 * config/mips/nm-nbsd.h: New file.
5965 * config/mips/tm-nbsd.h: New file.
5967 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5969 * Makefile.in (SFILES): Add osabi.c.
5970 (COMMON_OBS): Add osabi.o.
5971 (osabi.o): New dependency list.
5972 * osabi.c: New file.
5973 * osabi.h: New file.
5974 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5976 * Makefile.in (alpha_tdep_h): Define and use instead of
5978 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5979 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5981 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5982 * alpha-tdep.h: Include osabi.h.
5983 (alpha_abi): Remove.
5984 (gdbarch_tdep): Use generic OS ABI framework.
5985 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5986 gdbarch_register_osabi.
5987 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5988 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5989 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5991 * Makefile.in (sh_tdep_h): Add osabi.h.
5992 * sh-tdep.h (sh_osabi): Remove.
5993 (gdbarch_tdep): Use generic OS ABI framework.
5994 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5995 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5996 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5997 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5999 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6000 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6001 gdbarch_register_osabi.
6002 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6003 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6004 (get_elfosabi): Rename to...
6005 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6006 ABI framework support routines.
6007 (arm_gdbarch_init): Use generic OS ABI framework.
6008 (arm_dump_tdep): Likewise.
6009 (_initialize_arm_tdep): Likewise.
6010 * arm-tdep.h: Include osabi.h.
6012 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6014 (arm_gdbarch_register_os_abi): Remove prototype.
6015 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6016 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6018 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6019 * mips-tdep.c: Include osabi.h.
6020 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6023 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6025 * h8300-tdep.c: Fix formatting.
6027 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6029 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6030 printing vector registers.
6032 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6034 From Fernando Nasser:
6035 * remote.c (remote_async_open_1): Re-throw the exception when the
6037 (remote_cisco_open): Ditto.
6038 (remote_open_1): Ditto.
6040 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6042 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6043 (remote_start_remote): Add uiout parameter. Pass through to
6044 remote_start_remote_dummy.
6045 (remote_open_1): Use catch_exception instead of catch_errors.
6046 (remote_async_open_1): Ditto.
6047 (remote_cisco_open): Ditto.
6049 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6051 * remote.c (remote_start_remote): Replace PTR with void pointer.
6052 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6055 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6057 * gdb_indent.sh: Allow the script to be run in the sim directory.
6059 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6061 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6062 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6064 * corelow.c (core_open): Only call set_gdbarch_from_file if
6067 2002-05-17 Andrey Volkov <avolkov@transas.com>
6069 * h8300-tdep.c: Add support of EXR register
6070 * config/h8300/tm-h8300.h: Ditto.
6072 2002-05-17 Andrey Volkov <avolkov@transas.com>
6074 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6076 2002-05-17 Andrey Volkov <avolkov@transas.com>
6078 * h8300-tdep.c: Change literal regnums to REGNO.
6080 2002-05-17 Jim Blandy <jimb@redhat.com>
6082 * NEWS: Note addition of macro support.
6084 Expand preprocessor macros in C expressions.
6085 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6086 (scan_macro_expansion, scanning_macro_expansion,
6087 finished_macro_expansion): New function declarations.
6088 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6089 variable declarations.
6090 * parser-defs.h (expression_context_pc): New declaration.
6091 * parse.c (expression_context_pc): New variable.
6092 (parse_exp_1): Set expression_context_pc, as well as
6093 expression_context_block.
6094 * c-exp.y (yylex): If we're not already reading the result of a
6095 macro expansion, try to macro-expand the next token. When we're
6096 done scanning a macro expansion, switch back to the mainline text.
6097 Commas and `if's in a macro's expansion don't terminate the input.
6098 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6099 (macro_original_text, macro_expanded_text,
6100 expression_macro_lookup_func, expression_macro_lookup_baton): New
6102 (scan_macro_expansion, scanning_macro_expansion,
6103 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6104 c_preprocess_and_parse): New functions.
6105 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6106 c_preprocess_and_parse, instead of c_parse.
6107 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6108 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6110 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6112 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6113 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6114 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6116 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6118 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6120 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6122 * Makefile.in (sh_tdep_h): Define and use.
6123 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6124 register enum): Move to...
6125 * * sh-tdep.h: ...here.
6126 * sh-tdep.c: Include sh-tdep.h.
6127 * sh3-rom.c: Likewise.
6128 * shnbsd-tdep.c: Likewise.
6130 2002-05-16 Michael Snyder <msnyder@redhat.com>
6132 * arm-tdep.c: Spelling fix in comment.
6134 2002-05-16 Jim Blandy <jimb@redhat.com>
6136 Add commands for manually expanding macros and showing their
6138 * macrocmd.c, macroscope.c, macroscope.h: New files.
6139 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6140 (macroscope_h): New variable.
6141 (HFILES_NO_SRCDIR): Add macroscope.h.
6142 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6143 (macroscope.o, macrocmd.o): New rules.
6145 Teach the Dwarf 2 reader to read macro information.
6146 * dwarf2read.c: #include "macrotab.h".
6147 (dwarf_macinfo_buffer): New variable.
6148 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6150 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6151 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6152 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6153 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6154 dwarf2_macro_spaces_in_definition): New complaints.
6155 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6156 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6157 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6158 the partial symbol table.
6159 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6160 from what's recorded in the partial symbol table.
6161 (read_file_scope): If the compilation unit has a
6162 `DW_AT_macro_info' attribute, read its macro information.
6163 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6165 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6168 * ser-tcp.c: Don't include <netinet/udp.h>.
6170 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6172 * MAINTAINERS: Update my email address.
6174 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6176 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6177 include file of the same name.
6179 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6181 * configure.tgt: Mark v850 as multi-arched.
6182 * config/v850/tm-v850.h: Remove file.
6183 * config/v850/v850.mt: Eliminate TM_FILE.
6185 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6187 * v850-tdep.c: Full multi-arch.
6188 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6189 Define GDB_MULTI_ARCH to 2.
6191 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6193 * p-exp.y (current_type): New static variable.
6194 Carries the type of the expression at the position that is parsed.
6195 (push_current_type, pop_current_type): Two new functions. Used
6196 to store/restore current_type in expression on specific tokens.
6197 (search_field): New static variable. Set to one after parsing a point
6198 as at that point only a FIELDNAME token should be searched.
6199 (FIELDNAME): New token. After a point only a token belonging to
6200 current_type type definition is allowed.
6201 (all over token rules): reset and change current_type according
6203 (exp '[' rule): insert implicit array index field if
6204 exp is a pascal string type.
6206 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6208 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6209 frame info. Use frame_info's saved_regs instead of matching member
6210 in extra_frame_info throughout.
6211 (v850_frame_init_saved_regs): New function.
6212 (v850_init_extra_frame_info): Move most functionality into
6213 v850_frame_init_saved_regs().
6214 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6215 (v850_frame_find_saved_regs): Remove declaration.
6216 (FRAME_FIND_SAVED_REGS): Remove definition.
6217 (v850_frame_init_saved_regs): Add declaration.
6218 (FRAME_INIT_SAVED_REGS): Add definition.
6220 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6222 * v850-tdep.c: Begin multi-arch'ing v850.
6223 (v850_target_architecture_hook): Remove function.
6224 (v850_gdbarch_init): New function. Add code previously in
6225 v850_target_architecture_hook().
6226 (_initialize_v850_tdep): Don't set target_architecture_hook.
6227 Call register_gdbarch_init() instead.
6229 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6231 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6232 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6233 (fixup_class_method_type): Likewise.
6235 2002-05-15 Jim Blandy <jimb@redhat.com>
6237 Add macro structures to GDB's symbol tables. Nobody puts anything
6239 * symtab.h (struct symtab): New member: `macro_table'.
6240 * buildsym.h (pending_macros): New global variable.
6241 * buildsym.c: #include "macrotab.h".
6242 (buildsym_init): Initialize `pending_macros'.
6243 (end_symtab): If we found macro information while reading a CU's
6244 debugging info, do build a symtab structure for it. Make the
6245 symtab point to the macro information, and clear the
6246 `pending_macros' pointer which held it while we were reading the
6248 (really_free_pendings): Free any pending macro table.
6249 * objfiles.h (struct objfile): New member: `macro_cache'.
6250 * objfiles.c (allocate_objfile): Set allocate and free functions
6251 for the macro cache's objstack.
6252 (free_objfile): Empty the macro cache's obstack.
6253 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6254 set new allocate and free functions for it.
6255 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6256 free functions for the macro cache's objstack. (Why is this
6257 function building its own objfile?)
6258 * symmisc.c (print_objfile_statistics): Print statistics on the
6260 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6262 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6264 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6265 (REGISTER_U_ADDR): Delete definition.
6266 (arm_register_u_addr): Delete declaration.
6268 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6270 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6271 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6273 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6275 * regcache.c (register_valid): Revise comments refering to "Not
6276 available" and "unavailable".
6277 * frame.c (frame_register_read): Ditto.
6278 * findvar.c (value_of_register): Ditto.
6280 2002-05-15 Andrew Cagney <cagney@redhat.com>
6282 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6283 (remote-sim.o): Update dependencies.
6284 (d10v-tdep.o): Specify dependencies.
6285 (sim_d10v_h): Define.
6287 2002-05-14 Jim Blandy <jimb@redhat.com>
6289 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6290 * macrotab.c (macro_lookup_inclusion, find_definition,
6291 new_macro_table): Same.
6293 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6294 not `! strcmp ()'. This is a dubious improvement.
6295 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6297 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6298 although it's not necessary, to avoid a warning.
6300 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6302 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6303 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6304 TYPE_INSTANCE_FLAGS.
6305 (struct main_type): New.
6306 (struct type): Move most members to struct main_type. Change
6307 cv_type and as_type to new type_chain member. Add instance_flags.
6308 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6309 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6310 (finish_cv_type): Remove prototype.
6311 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6313 (alloc_type_instance): New function.
6314 (smash_type): New function.
6315 (make_pointer_type, make_reference_type, make_function_type)
6316 (smash_to_member_type, smash_to_method_type): Call smash_type.
6317 (make_qualified_type): New function.
6318 (make_type_with_address_space): Call make_qualified_type.
6319 (make_cv_type): Likewise.
6320 (finish_cv_type): Remove unnecessary function.
6321 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6322 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6323 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6324 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6325 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6326 * hpread.c (hpread_read_struct_type): Likewise.
6327 * stabsread.c (read_struct_type): Likewise.
6329 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6331 * configure.tgt: Add a catch all sh* target, for cases like
6332 sh[2,3,4]-elf and sh-hms.
6334 2002-05-14 Keith Seitz <keiths@redhat.com>
6336 * event-loop.c (create_file_handler): Don't do anything but
6337 update data when we are given a fd which we are already
6340 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6342 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6343 (update_context): Use __func__ in warnings.
6345 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6347 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6348 and tcp_close to net_open and net_close.
6349 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6350 using UDP if requested. Don't try to disable Nagle on UDP
6352 * remote.c (remote_serial_open): New function. Warn about UDP.
6353 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6355 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6357 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6359 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6361 * configure.tgt: Remove sh-hms target.
6362 * MAINTAINERS: Don't list sh-hms as a separate target.
6364 2002-05-13 Jim Blandy <jimb@redhat.com>
6366 Add first preprocessor macro-expansion files.
6367 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6368 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6369 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6370 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6371 (COMMON_OBS): Add macrotab.o, macroexp.o.
6372 (macroexp.o, macrotab.o): New rules.
6374 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6376 * config/m88k/tm-m88k.h: Update copyright.
6377 (m88k_target_write_pc): Declare
6378 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6379 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6380 (SHIFT_INST_REGS): Update definition.
6381 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6382 using old definition of TARGET_WRITE_PC.
6383 * regcache.c (generic_target_write_pc): Delete code handling
6385 * gdbarch.sh (NNPC_REGNUM): Delete.
6386 * gdbarch.h, gdbarch.c: Regenerate.
6388 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6390 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6393 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6395 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6396 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6397 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6399 * c-typeprint.c (cp_type_print_method_args): Likewise.
6400 (c_type_print_args): Likewise.
6401 * d10v-tdep.c (d10v_push_arguments): Likewise.
6402 (d10v_extract_return_value): Likewise.
6403 * expprint.c (print_subexp): Likewise.
6404 * gdbtypes.c (lookup_primitive_typename): Likewise.
6405 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6406 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6407 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6408 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6409 (TYPE_VECTOR): Likewise.
6410 * hpread.c (hpread_read_struct_type)
6411 (fix_static_member_physnames, fixup_class_method_type)
6412 (hpread_type_lookup): Likewise.
6413 * mdebugread.c (parse_symbol, parse_type): Likewise.
6414 * p-lang.c (is_pascal_string_type): Likewise.
6415 * valops.c (hand_function_call): Likewise.
6416 * x86-64-tdep.c (classify_argument): Likewise.
6418 * hpread.c (hpread_read_function_type)
6419 (hpread_read_doc_function_type): Call replace_type.
6420 * dstread.c (create_new_type): Delete.
6421 (decode_dst_structure, process_dst_function): Call alloc_type.
6422 Use type access macros.
6424 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6426 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6427 the're not supported by the current architecture.
6428 (i387_fill_fxsave): Likewise.
6430 2002-05-12 Fred Fish <fnf@redhat.com>
6432 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6433 sect_index_xxx members to index the first slot in section_offsets
6434 if all of the section_offsets are zero.
6436 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6438 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6439 checked in with last change.
6441 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6443 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6444 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6447 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6449 * Makefile.in: Update dependencies.
6451 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6453 * language.c (local_hex_string_custom): Simplify. Do not depend
6454 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6456 * memattr.c (mem_info_command): Replace calls to
6457 longest_local_hex_string and longest_local_hex_string_custom.
6458 * buildsym.c (make_blockvector): Ditto.
6459 * solib.c (info_sharedlibrary_command): Ditto.
6460 * tracepoint.c (tracepoints_info): Ditto.
6461 * symtab.c (print_msymbol_info): Ditto.
6463 * language.c (local_hex_string): Delete.
6464 (local_hex_string_custom): Delete.
6465 (longest_local_hex_string): Rename to local_hex_string.
6466 (longest_local_hex_string_custom): Rename to
6467 local_hex_string_custom.
6468 * language.h (local_hex_string): Change parameter type to LONGEST.
6469 (local_hex_string_custom): Ditto.
6470 (longest_local_hex_string): Delete declaration.
6471 (longest_local_hex_string_custom): Ditto.
6473 * solib.c: Update copyright.
6474 * memattr.c: Update copyright.
6476 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6478 * arch-utils.h (legacy_register_to_value): Declare.
6479 (legacy_value_to_register): Declare.
6480 (legacy_convert_register_p): Declare.
6481 * arch-utils.c (legacy_register_to_value): New function.
6482 (legacy_value_to_register): New function.
6483 (legacy_convert_register_p): New function.
6485 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6486 (VALUE_TO_REGISTER): Define.
6487 (CONVERT_REGISTER_P): Define.
6488 * gdbarch.h, gdbarch.c: Regenerate.
6490 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6492 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6495 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6496 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6498 * Makefile.in: Update dependencies for valops.c.
6499 * valops.c: Include "gdb_assert.h".
6500 (typecmp): Skip THIS parameter to methods.
6501 (find_method_list): Remove static_memfuncp argument,
6502 update callers. Check for stub methods.
6503 (find_value_oload_method_list): Don't set *static_memfuncp.
6504 (find_overload_match): Don't check for stub methods. Assert
6505 that methods are not stubbed. Handle static methods.
6506 (value_find_oload_method_list): Remove static_memfuncp argument.
6507 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6508 to the argument list for static stub methods.
6509 * value.h (value_find_oload_method_list): Update prototype.
6511 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6513 * arch-utils.h (generic_register_size): Declare.
6514 (generic_register_raw_size, generic_register_virtual_size): Delete
6516 * arch-utils.c (generic_register_raw_size): Delete.
6517 (generic_register_size): New function.
6518 (generic_register_virtual_size): Delete.
6520 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6521 default generic_register_size.
6522 * gdbarch.h, gdbarch.c: Re-generate.
6524 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6525 register_virtual_size.
6526 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6527 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6529 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6531 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6532 * gdbarch.h, gdbarch.c: Regenerate.
6533 * gnu-v3-abi.c: Update copyright.
6534 (vtable_address_point_offset): Update.
6535 (gnuv3_rtti_type): Update.
6536 (gnuv3_baseclass_offset): Update.
6537 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6538 (init_fetch_link_map_offsets): Update.
6539 * remote.c (get_remote_state): Update.
6541 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6543 * TODO: Remove value_headof/value_from_vtable_info comment.
6544 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6545 * values.c (value_headof, value_from_vtable_info): Delete.
6546 * value.h (value_from_vtable_info): Delete prototype.
6548 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6550 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6551 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6553 (gdb_assert_h): Define.
6554 (gdb_wait_h): Define.
6555 (gdb_regex_h): Define.
6557 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6559 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6560 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6562 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6564 * nbsd-tdep.c: Fix comment.
6566 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6568 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6569 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6570 (nbsd-tdep.o): New dependency list.
6571 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6573 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6574 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6575 * nbsd-tdep.c: New file.
6576 * nbsd-tdep.h: New file.
6577 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6579 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6580 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6581 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6582 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6584 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6586 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6587 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6588 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6589 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6590 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6591 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6593 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6595 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6596 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6597 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6598 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6599 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6600 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6601 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6603 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6605 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6606 fetch_elfcore_registers to...
6607 * i386nbsd-tdep.c: ...here.
6608 (i386nbsd_use_struct_convention): Rename to...
6609 (i386nbsd_aout_use_struct_convention): ...this.
6610 (i386nbsd_supply_reg): New function.
6611 (i386nbsd_fill_reg): New function.
6612 (fetch_core_registers): Use i386nbsd_supply_reg.
6613 (fetch_elfcore_registers): Likewise.
6614 (_initialize_i386nbsd_tdep): New function.
6615 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6616 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6617 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6618 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6619 (i386nbsd_aout_use_struct_convention): ...this.
6621 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6623 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6624 (store_inferior_registers): Use shnbsd_fill_reg.
6625 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6626 sh_nbsd_supply_register): Collapse into...
6627 (shnbsd_supply_reg): ...this.
6628 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6629 (shnbsd_fill_reg): ...this.
6630 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6631 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6632 (fetch_core_registers): Use shnbsd_supply_reg.
6633 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6634 (sh_nbsd_core_fns): Rename to...
6635 (shnbsd_core_fns): ...this.
6636 (sh_nbsd_elfcore_fns): Rename to...
6637 (shnbsd_elfcore_fns): ...this.
6638 (sh_nbsd_init_abi): Rename to...
6639 (shnbsd_init_abi): ...this.
6640 (_initialize_sh_nbsd_tdep): Rename to...
6641 (_initialize_shnbsd_tdep): ...this.
6642 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6643 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6644 sh_nbsd_fill_register): Remove prototypes.
6645 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6647 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6649 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6650 (i387-nat.o): Delete dependency list.
6651 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6652 (x86-64-linux-nat.o): Likewise.
6653 * i387-nat.c: Delete file, moving contents to...
6654 * i387-tdep.c: ...here.
6655 * i387-nat.h: Rename...
6656 * i387-tdep.h: ...to this.
6657 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6658 * i386-linux-nat.c: Likewise.
6659 * i386bsd-nat.c: Likewise.
6660 * i386gnu-nat.c: Likewise.
6661 * i386nbsd-nat.c: Likewise.
6662 * i386v4-nat.c: Likewise.
6663 * x86-64-linux-nat.c: Likewise.
6664 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6665 * config/i386/go32.mh (NATDEPFILES): Likewise.
6666 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6667 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6668 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6669 * config/i386/linux.mh (NATDEPFILES): Likewise.
6670 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6672 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6673 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6675 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6677 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6678 (alphanbsd-nat.o): Remove dependency list.
6679 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6680 * alphanbsd-nat.c: Delete. Contents moved to...
6681 * alphanbsd-tdep.c: ...here.
6682 (_initialize_alphanbsd_tdep): Register core functions.
6683 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6685 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6687 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6688 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6689 (alphanbsd-nat.o): Likewise.
6690 (alphabsd-tdep.o): New dependency list.
6691 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6692 (fill_gregset): Use alphabsd_fill_reg.
6693 (supply_fpregset): Use alphabsd_supply_fpreg.
6694 (fill_fpregset): Use alphabsd_fill_fpreg.
6695 (fetch_inferior_registers): Use struct reg and struct fpreg
6696 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6697 and alphabsd_supply_fpreg.
6698 (store_inferior_registers): Use struct reg and struct fpreg
6699 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6700 and alphabsd_fill_fpreg.
6701 * alphabsd-tdep.c: New file.
6702 * alphabsd-tdep.h: New file.
6703 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6704 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6705 alphabsd_supply_fpreg.
6706 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6707 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6709 2002-05-11 Eric Christopher <echristo@redhat.com>
6711 * mips-tdep.c (mips_double_register_type): Fix thinko.
6712 (mips_single_register_type): Ditto.
6713 * MAINTAINERS: Add self.
6715 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6717 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6718 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6719 right thing on architectures with different endianness and/or
6722 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6724 From Christian Limpach <chris@Pin.LU>
6725 * configure.in: Change sed expression which comments out
6726 NATDEPFILES to also comment out continuation lines.
6727 * configure: Regenerate.
6729 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6731 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6734 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6736 * sh-tdep.c: Include correct file.
6738 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6740 New support for sh64-elf (sh5) target.
6742 * configure.tgt: For sh64-elf target, default to sh-elf.
6744 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6745 (struct gdbarch_tdep): Add new fields for new registers and ABI
6748 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6749 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6750 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6751 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6752 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6753 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6754 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6755 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6756 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6757 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6758 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6759 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6760 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6761 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6762 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6763 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6764 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6765 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6766 sign_extend, sh64_nofp_frame_init_saved_regs,
6767 sh64_init_extra_frame_info, sh64_get_saved_register,
6768 sh64_extract_struct_value_address, sh64_pop_frame,
6769 sh64_push_arguments, sh64_extract_return_value,
6770 sh64_store_return_value, sh64_show_media_regs,
6771 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6772 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6773 sh_sh64_register_virtual_type,
6774 sh_sh64_register_convert_to_virtual,
6775 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6776 sh64_register_read, sh64_pseudo_register_write,
6777 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6778 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6779 sh64_do_pseudo_register, sh_compact_do_registers_info,
6780 sh64_do_registers_info, sh_gdbarch_init): New functions.
6782 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6784 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6786 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6788 * linespec.c (decode_line_1): Check for a double quote after
6789 a filename correctly.
6791 2002-05-10 Jim Blandy <jimb@redhat.com>
6793 Properly track the size of the current objfile's .debug_line section.
6794 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6795 (DWARF_LINE_SIZE): New macro.
6796 (dwarf2_build_psymtabs_hard): Record the line section's size in
6797 the partial symbol table.
6798 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6801 2002-05-10 Petr Sorfa <petrs@caldera.com>
6803 * ia64-tdep.c: Handle breakpoints on L instruction type
6804 in MLX instruction bundle by moving the breakpoint to
6805 the third slot (X instruction type) as L holds only data.
6807 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6809 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6810 (process_one_symbol): Complain about discarding local symbols
6811 due to a misplaced N_LBRAC entry.
6813 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6815 From Daniel Berlin <dan@cgsoftware.com>
6816 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6817 decrease the depth we are at, in the case of templates.
6819 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6821 * mips-tdep.c (mips_float_register_type): New function.
6822 (mips_double_register_type): New function.
6823 (mips_print_register): Use them.
6824 (do_fp_register_row): Likewise.
6826 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6828 * signals/signals.c (signals): Remove conditional compilation around
6829 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6830 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6832 2002-05-09 Michael Snyder <msnyder@redhat.com>
6834 * remote-rdp.c (remote_rdp_can_run): Remove.
6836 2002-05-09 Tom Tromey <tromey@redhat.com>
6838 * jv-valprint.c (java_val_print): Handle `char' as a special case
6841 2002-05-09 Michael Snyder <msnyder@redhat.com>
6843 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6844 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6845 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6846 str r(0123),[sp,#nn].
6847 (arm_skip_prologue): Ditto. Also make disassembly
6848 order-independent by placing it in a loop.
6850 2002-05-06 Michael Snyder <msnyder@redhat.com>
6852 * stabsread.c (read_type): Add recognition for new attribute:
6853 "@V;" means that an array type is actually a vector.
6854 This is analogous to the vector flag that's been added to dwarf2.
6856 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6858 * i386-tdep.h (i386_abi): New enum.
6859 (struct gdbarch_tdep): Replace os_ident member with abi.
6860 (i386_gdbarch_register_os_abi): New prototype.
6861 * i386-tdep.c (i386_abi_names): New array.
6862 (process_note_abi_tag_sections): Removed.
6863 (process_note_sections): New function.
6864 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6865 (struct i386_abi_handler): New struct.
6866 (i386_abi_handler_list): New variable.
6867 (i386_gdbarch_register_os_abi): New function.
6868 (i386_gdbarch_init): Adapt for the changes given above.
6870 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6872 * gregset.h: Say "GNU/Linux".
6874 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6876 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6877 (build_gdbtypes): Build builtin_type_v2_float.
6878 (_initialize_gdbtypes): Register new builtin type.
6880 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6882 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6883 (clear_gdbarch_swap): New function.
6884 (initialize_non_multiarch): Call.
6885 (gdbarch_update_p): Before calling init(), swap out and clear the
6886 existing architecture.
6887 * gdbarch.c: Regenerate.
6889 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6891 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6894 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6896 * sh-nbsd-nat.c: Rename to...
6897 * shnbsd-nat.c: ...this.
6898 * sh-nbsd-tdep.c: Rename to...
6899 * shnbsd-tdep.c: ...this.
6900 * sh-nbsd-tdep.h: Rename to...
6901 * shnbsd-tdep.h: ...this.
6902 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6903 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6905 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6907 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6908 concatenation for command help messages.
6910 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6912 * NEWS: Note new sh*-*-netbsdelf* configuration.
6913 * configure.host: Set gdb_host_cpu to sh for all sh*.
6914 (sh*-*-netbsdelf*): New host.
6915 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6916 (sh*-*-netbsdelf*): New target.
6917 * sh-nbsd-nat.c: New file.
6918 * sh-nbsd-tdep.c: New file.
6919 * sh-nbsd-tdep.h: New file.
6920 * config/sh/nbsd.mh: New file.
6921 * config/sh/nbsd.mt: New file.
6922 * config/sh/nm-nbsd.h: New file.
6923 * config/sh/tm-nbsd.h: New file.
6925 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6927 * sh-tdep.c (sh_osabi_names): Declare.
6928 (process_note_abi_tag_sections): New function.
6929 (get_elfosabi): Ditto.
6930 (sh_gdbarch_register_os_abi): Ditto.
6931 (sh_dump_tdep): Ditto.
6932 _initialize_sh_tdep): Use gdbarch_register to register
6933 sh_gdbarch_init and sh_dump_tdep.
6934 * config/sh/tm-sh.h (sh_osabi): Declare.
6935 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6937 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6939 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6940 (thumb_scan_prologue): Ditto.
6941 (arm_find_callers_reg): Ditto.
6942 (arm_frame_chain): Ditto.
6943 (arm_init_extra_frame_info): Ditto.
6944 (arm_frame_saved_pc): Ditto.
6945 (arm_pop_frame): Ditto.
6946 (arm_push_return_address): New function.
6947 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6948 call_dummy_location, call_dummy_breakpoint_offset_p,
6949 call_dummy_breakpoint_offset, call_dummy_p,
6950 call_dummy_stack_adjust_p, call_dummy_words,
6951 sizeof_call_dummy_words, call_dummy_start_offset,
6952 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6953 call_dummy_address, push_return_address and push_dummy_frame for
6954 generic dummy frames.
6956 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6958 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6959 size computation for alloca.
6960 (sh_fp_frame_init_saved_regs): Likewise.
6962 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6964 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6965 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6966 * arm-tdep.c (arm_store_return_value): Use them.
6967 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6968 * remote-rdp.c (remote_rdp_fetch_register): Use
6969 ARM_MAX_REGISTER_RAW_SIZE.
6970 (remote_rdp_store_register): Likewise.
6972 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6974 * dwarf2cfi.c: Code cleanup, removed unused variables,
6975 added default labels to switch {} statements.
6976 * x86-64-tdep.c: Ditto.
6977 * x86-64-linux-nat.c: Ditto.
6979 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6981 * solib.h: Protect against multiple inclusion.
6983 2002-05-06 Jim Blandy <jimb@redhat.com>
6985 Add first preprocessor macro-expansion files.
6986 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6987 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6988 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6989 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6990 (COMMON_OBS): Add macrotab.o, macroexp.o.
6991 (macroexp.o, macrotab.o): New rules.
6993 Separate the job of reading the line number info statement program
6994 header (...expialidocious) out into its own function.
6995 * dwarf2read.c (struct line_head, struct filenames, struct
6996 directories): Replace with...
6997 (struct line_header): New structure, containing the full
6998 contents of the statement program header, including the
6999 include directory and file name tables.
7000 (read_file_scope): If we have line number info, instead of just
7001 calling dwarf_decode_lines to do all the work, call
7002 dwarf_decode_line_header first to get a `struct line_header'
7003 containing the data in the statement program header, and then
7004 pass that to dwarf_decode_lines, which will pick up where that
7005 left off. Be sure to clean up the `struct line_header' object.
7006 (dwarf_decode_line_header, free_line_header, add_include_dir,
7007 add_file_name): New functions.
7008 (dwarf_decode_lines): Move all the code to read the statement
7009 program header into dwarf_decode_line_header. Take the line
7010 header it built as the first argument, instead of the offset to
7011 the compilation unit's line number info. Use the new `struct
7012 line_header' type instead of the old structures. No need to do
7013 cleanups here now, since we don't allocate anything.
7014 (dwarf2_statement_list_fits_in_line_number_section,
7015 dwarf2_line_header_too_long): New complaints.
7017 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7019 * gdbtypes.c (init_vector_type): New function.
7020 (build_builtin_type_vec128): Simplify the representation of SIMD
7022 (build_gdbtypes): Initialize new builtin vector types.
7023 (_initialize_gdbtypes): Register new vector types with gdbarch.
7024 (builtin_type_v4_float, builtin_type_v4_int32,
7025 builtin_type_v8_int16, builtin_type_v16_int8,
7026 builtin_type_v2_int32, builtin_type_v4_int16,
7027 builtin_type_v8_int8): New (renamed) SIMD types.
7029 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7031 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7032 (i387_fill_fxsave): Likewise.
7034 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7036 * alpha-tdep.c (alpha_extract_return_value): Don't use
7037 non-constant array size in prototype.
7039 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7041 From Brian Taylor <briant at model dot com>:
7042 * ui-out.c (ui_out_field_core_addr): Use the function
7043 longest_local_hex_string_custom'to format addresses > 32 bits
7046 * ui-out.c (ui_out_field_core_addr): Update comment.
7048 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7050 * stack.c (select_and_print_frame): Make static. Delete the
7052 (func_command): Update call.
7053 (select_frame_command): Delete code computing the frame level.
7054 * frame.h (select_and_print_frame): Delete declaration.
7056 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7058 * sparc-tdep.c (sparc_get_saved_register): Comment why
7059 get_prev_frame call is safe.
7061 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7063 * frame.h (select_frame): Delete level parameter.
7064 * stack.c (select_frame): Update. Use frame_relative_level to
7065 obtain the frame's level.
7066 (select_and_print_frame): Update call.
7067 (select_frame_command): Ditto.
7068 (up_silently_base): Ditto.
7069 (down_silently_base): Ditto.
7070 * ocd.c (ocd_start_remote): Ditto.
7071 * remote-rdp.c (remote_rdp_open): Ditto.
7072 * remote-mips.c (mips_initialize): Ditto.
7073 (common_open): Ditto.
7074 * remote-e7000.c (e7000_start_remote): Ditto.
7075 * m3-nat.c (select_thread): Ditto.
7076 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7077 (child_get_current_exception_event): Ditto.
7078 * varobj.c (varobj_create): Ditto.
7079 (varobj_update): Ditto.
7080 (c_value_of_root): Ditto.
7081 * tracepoint.c (finish_tfind_command): Ditto.
7082 * corelow.c (core_open): Ditto.
7083 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7084 * thread.c (info_threads_command): Ditto.
7085 (switch_to_thread): Ditto.
7086 * infrun.c (normal_stop): Ditto.
7087 (restore_selected_frame): Ditto.
7088 (restore_inferior_status): Ditto.
7089 * breakpoint.c (insert_breakpoints): Ditto.
7090 (watchpoint_check): Ditto.
7091 (bpstat_stop_status): Ditto.
7092 (do_enable_breakpoint): Ditto.
7093 * blockframe.c (flush_cached_frames): Ditto.
7094 (reinit_frame_cache): Ditto.
7096 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7098 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7101 2002-05-04 Jim Blandy <jimb@redhat.com>
7103 * gdbtypes.c (replace_type): Doc fix.
7105 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7107 * valprint.c (strcat_longest): Delete commented out function.
7110 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7112 * MAINTAINERS: Mark a29k as deleted.
7113 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7114 Move new configurations to the top.
7115 * configure.tgt: Remove a29k.
7116 * config/a29k/tm-vx29k.h: Delete.
7117 * config/a29k/vx29k.mt: Delete.
7118 * config/a29k/tm-a29k.h: Delete.
7119 * config/a29k/a29k-udi.mt: Delete.
7120 * config/a29k/a29k.mt: Delete.
7121 * a29k-tdep.c: Delete.
7122 * remote-udi.c: Delete.
7123 * remote-mm.c: Delete.
7124 * remote-eb.c: Delete.
7125 * remote-adapt.c: Delete.
7126 * Makefile.in: Remove obsolete code.
7127 * config/s390/s390x.mt: Ditto.
7128 * config/s390/s390.mt: Ditto.
7129 * config/sparc/sparclynx.mh: Ditto.
7130 * config/sparc/linux.mh: Ditto.
7131 * config/pa/hppaosf.mh: Ditto.
7132 * config/pa/hppabsd.mh: Ditto.
7133 * config/ns32k/nbsd.mt: Ditto.
7134 * config/mips/vr5000.mt: Ditto.
7135 * config/m68k/sun3os4.mh: Ditto.
7136 * config/m68k/nbsd.mt: Ditto.
7137 * config/m68k/m68klynx.mh: Ditto.
7138 * config/m32r/m32r.mt: Ditto.
7139 * config/i386/x86-64linux.mt: Ditto.
7140 * config/i386/nbsdelf.mt: Ditto.
7141 * config/i386/nbsd.mt: Ditto.
7142 * config/i386/i386lynx.mh: Ditto.
7144 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7146 * target.c (debug_print_register): New function. Handle oversize
7148 (debug_to_fetch_registers): Call.
7149 (debug_to_store_registers): Call.
7151 2002-05-03 Jim Blandy <jimb@redhat.com>
7153 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7154 (read_type): Doc fix.
7155 * gdbtypes.c (replace_type): Doc fix.
7157 * stabsread.c (multiply_defined_struct): New complaint.
7158 (read_struct_type): If the type we were passed isn't empty, or
7159 incomplete, don't read the new struct type into it; complain,
7160 and return the original type unchanged. Take a new `type_code'
7161 argument, which is the type code for the new type.
7162 (read_type): Rather than storing the type's type code here, pass
7163 it as an argument to read_struct_type, and let that take care of
7164 storing it. That way, we don't overwrite the original type code,
7165 so read_struct_type can use it to decide whether we're overwriting
7166 something we shouldn't.
7167 (complain_about_struct_wipeout): New function.
7169 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7171 * gdbarch.sh: Assert that gdbarch is non-NULL.
7172 * gdbarch.c: Regenerate.
7174 2002-05-03 Jason Merrill <jason@redhat.com>
7176 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7179 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7181 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7182 (x86_64_dwarf2gdb_regno_map_length),
7183 (x86_64_dwarf2_reg_to_regnum): Added.
7184 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7185 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7186 (_initialize_x86_64_tdep): Synced with the change above.
7187 (x86_64_skip_prologue): Reformulated message.
7189 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7191 * f-exp.y: Also use new prev_lexptr variable
7192 to improve error reporting. Based on Michael Snyder
7193 2002-04-24 dated patch to c-exp.y.
7194 * jv-exp.y: Likewise.
7195 * m2-exp.y: Likewise.
7197 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7199 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7200 we are dealing with vectors.
7202 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7204 * config/m68k/tm-nbsd.h: Obvious fix,
7205 correct machine name.
7207 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7209 * p-typeprint.c (pascal_type_print_base): Add support
7210 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7212 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7214 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7215 for fondamental pascal 'char' type.
7217 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7219 * p-lang.h (is_pascal_string_type): Declaration changed,
7220 new sixth argument of type char ** added.
7221 * p-lang.c (is_pascal_string_type): Implementation
7222 changed. Args length_pos, length_size, string_pos, char_size
7223 can now be NULL. New argument arrayname set to the field
7224 name of the char array. Return value set to char array
7225 field index plus one.
7226 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7227 is_pascal_string_type function.
7229 2002-05-02 Andrew Cagney <cagney@redhat.com>
7231 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7232 <cagney@redhat.com> change.
7233 * gdbarch.c: Regenerate.
7235 2002-05-02 Andrew Cagney <cagney@redhat.com>
7237 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7238 before probing for a new one. Detect errorenous gdbarch_init
7240 * gdbarch.c: Regenerate.
7242 2002-05-01 Andrew Cagney <cagney@redhat.com>
7244 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7245 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7246 * config/v850/tm-v850.h: Ditto. Update copyright.
7248 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7250 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7253 2002-04-30 Michael Snyder <msnyder@redhat.com>
7255 * arm-tdep.c: Whitespace clean-ups.
7256 (arm_skip_prologue): Fix thinko; two lines
7257 should have been removed as part of 4/24 change.
7259 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7261 * rs6000-tdep.c: Added comment describing how fpscr register
7262 numbers were chosen.
7264 2002-04-30 Michael Snyder <msnyder@redhat.com>
7266 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7268 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7270 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7271 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7272 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7274 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7276 From Louis Hamilton <hamilton@redhat.com>:
7277 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7278 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7279 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7280 not bfd-private xcoff data, to determine wordsize.
7281 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7283 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7285 GDB 5.2 released from 5.2 branch.
7287 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7289 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7290 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7291 (x86_64_register_info_table): Added comments with register numbers.
7293 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7295 * rs6000-tdep.c (rs6000_extract_return_value,
7296 rs6000_store_return_value): Handle returning vectors.
7297 (rs6000_gdbarch_init): Use
7298 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7299 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7301 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7303 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7304 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7306 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7308 * hpread.c (hpread_psymtab_to_symtab_1,
7309 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7310 with fprintf_unfiltered (gdb_stderr,...).
7312 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7314 * remote-array.c (printf_monitor, write_monitor,
7315 array_insert_breakpoint, array_remove_breakpoint ):
7316 Replace fprintf (stderr,...
7317 with fprintf_unfiltered (gdb_stderr,....
7318 * remote-es.c: Likewise.
7319 * remote-os9k.c: Likewise.
7320 * remote-st.c: Likewise.
7322 2002-04-28 Andreas Schwab <schwab@suse.de>
7324 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7325 linux-proc.o and gcore.o.
7327 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7329 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7330 code without frame pointers.
7332 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7334 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7337 2002-04-26 Ben Elliston <bje@redhat.com>
7339 * target.c (do_xfer_memory): Correct reference to the new option
7340 "trust-readonly-sections".
7342 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7344 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7345 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7346 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7348 (read_array_type): Record the fact that this array type is really a
7349 vector (i.e. are passed in by value).
7351 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7353 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7354 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7355 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7356 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7357 * alpha-linux-tdep.c: Include frame.h.
7358 (alpha_linux_sigcontext_addr): New function.
7359 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7360 alpha_linux_sigcontext_addr.
7361 * alpha-osf1-tdep.c: Include gdbcore.h.
7362 (alpha_osf1_sigcontext_addr): New function.
7363 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7364 alpha_osf1_sigcontext_addr.
7365 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7366 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7368 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7370 * stack.c (selected_frame_level):
7371 (select_frame): Do not set selected_frame_level.
7372 * frame.h (selected_frame_level): Delete declaration.
7374 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7377 convert_from_func_ptr-addr when AIX / PowerOpen.
7379 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7381 * valops.c (hand_function_call): Call
7382 generic_save_call_dummy_addr.
7383 * frame.h (generic_save_call_dummy_addr): Declare.
7384 * blockframe.c (struct dummy_frame): Add fields call_lo and
7386 (generic_find_dummy_frame): Check for PC in range call_lo to
7387 call_hi instead of entry_point_address.
7388 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7389 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7390 (generic_save_call_dummy_addr): New function.
7392 2002-04-24 David S. Miller <davem@redhat.com>
7394 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7395 sparc_skip_prologue.
7396 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7397 information to find prologue when possible.
7398 (sparc_prologue_frameless_p): Call examine_prologue directly.
7399 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7400 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7402 (SKIP_PROLOGUE): Likewise.
7404 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7406 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7407 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7408 indicate that the condition it was testing is always true.
7409 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7410 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7411 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7413 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7415 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7416 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7417 tdep->jb_pc and tdep->jb_elt_size.
7418 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7419 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7420 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7421 * alpha-nat.c (get_longjmp_target): Remove.
7422 (JB_ELEMENT_SIZE): Ditto.
7424 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7425 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7426 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7427 to alpha_get_longjmp_target.
7428 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7429 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7430 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7432 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7434 * README: Update to GDB 5.2.
7436 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7438 * gdbarch.sh (LC_ALL): Set to `c'.
7440 2002-04-25 Theodore A. Roth <troth@verinet.com>
7442 * avr-tdep.c: Ran through gdb_indent.sh.
7444 2002-04-25 Theodore A. Roth <troth@verinet.com>
7446 * MAINTAINERS: Add myself as AVR maintainer.
7447 * NEWS: Note new target avr.
7449 2002-04-25 Theodore A. Roth <troth@verinet.com>
7451 * Makefile.in: Add support for AVR target.
7452 * configure.tgt: Add support for AVR target.
7453 * avr-tdep.c: New file
7454 * config/avr/avr.mt: New file.
7456 2002-04-25 Theodore A. Roth <troth@verinet.com>
7458 * MAINTAINERS: Add myself to write-after-approval.
7460 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7462 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7463 with fprintf_unfiltered (gdb_stderr,....
7465 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7468 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7470 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7472 * p-exp.y: Also use new prev_lexptr variable
7473 to improve error reporting. Based on Michael Snyder
7474 2002-04-24 dated patch to c-exp.y.
7476 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7478 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7479 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7480 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7482 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7484 (FUNCTION_START_OFFSET): Remove.
7485 (BREAKPOINT): Ditto.
7487 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7489 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7492 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7494 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7495 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7496 alpha_linux_pc_in_sigtramp.
7497 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7498 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7499 alpha_osf1_pc_in_sigtramp.
7500 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7501 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7502 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7503 alphafbsd_pc_in_sigtramp.
7504 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7505 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7506 alphanbsd_pc_in_sigtramp.
7507 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7508 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7510 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7512 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7514 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7516 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7518 (alphanbsd-nat.o): New dependency list.
7519 (alphanbsd-tdep.o): Ditto.
7520 * NEWS: Note new native NetBSD/alpha configuration.
7521 * alphanbsd-nat.c: New file.
7522 * alphanbsd-tdep.c: Ditto.
7523 * configure.host (alpha*-*-netbsd*): New host.
7524 * configure.tgt (alpha*-*-netbsd*): New target.
7525 * config/alpha/nbsd.mh: New file.
7526 * config/alpha/nbsd.mt: Ditto.
7527 * config/alpha/nm-nbsd.h: Ditto.
7528 * config/alpha/tm-nbsd.h: Ditto.
7530 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7532 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7533 (alpha-osf1-tdep.o): New dependency list.
7534 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7535 and skip_sigtramp_frame members.
7536 * alpha-linux-tdep.c: Include gdbcore.h.
7537 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7538 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7539 * alpha-osf1-tdep.c: New file.
7540 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7542 (alpha_frame_past_sigtramp_frame): New function.
7543 (alpha_dynamic_sigtramp_offset): Ditto.
7544 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7545 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7546 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7547 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7548 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7549 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7550 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7551 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7552 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7553 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7554 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7555 to find_solib_trampoline_target.
7556 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7557 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7558 (SKIP_TRAMPOLINE_CODE): Remove.
7559 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7560 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7561 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7562 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7563 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7564 (PROC_SIGTRAMP_MAGIC): Ditto.
7565 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7566 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7567 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7568 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7569 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7571 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7573 * NEWS: Note that Alpha targets are now multi-arch.
7575 2002-04-24 Michael Snyder <msnyder@redhat.com>
7577 * parser-defs.h (prev_lexptr): New external variable.
7578 * parse.c (parse_exp_1): Set prev_lexptr to null before
7579 calling the language-specific parser.
7580 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7581 (yyerror): Use prev_lexptr in error reporting.
7583 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7585 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7586 * gregset.h: If FILL_FPXREGSET is defined, provide
7587 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7588 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7589 is defined, call fill_fpxregset.
7591 2002-04-24 Roland McGrath <roland@frob.com>
7593 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7594 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7595 (supply_gregset, supply_fpregset): New functions.
7597 * gnu-nat.c (gnu_find_memory_regions): New function.
7598 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7599 (gnu_xfer_memory): Add a cast.
7601 2002-04-24 Michael Snyder <msnyder@redhat.com>
7603 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7604 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7605 of argument regs ("str r(0123), [r11, #-nn"]).
7606 (arm_skip_prologue): Better handling for frameless functions.
7607 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7608 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7610 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7612 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7613 NUM_PSEUDO_REGS can be used.
7615 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7617 * arch-utils.h: Update copyright.
7619 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7620 * gdbarch.h, gdbarch.c: Re-generate.
7622 * inferior.h (IN_SIGTRAMP): Delete definition.
7623 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7624 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7626 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7627 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7628 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7629 (find_proc_framesize): Ditto.
7630 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7631 (alpha_init_extra_frame_info): Ditto.
7632 * infrun.c (handle_inferior_event): Ditto.
7633 (handle_inferior_event): Ditto.
7634 (check_sigtramp2): Ditto.
7635 * blockframe.c (create_new_frame): Ditto.
7636 (get_prev_frame): Ditto.
7637 * ppc-linux-tdep.c: Update comments.
7638 * i386-linux-tdep.c: Update comments.
7639 * breakpoint.c (bpstat_what): Update comment.
7641 2002-04-24 David S. Miller <davem@redhat.com>
7643 * i960-tdep.c (register_in_window_p): New function.
7644 (i960_find_saved_register): Use it instead of
7645 REGISTER_IN_WINDOW_P.
7646 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7648 * symtab.h (find_stab_function_addr): Kill extern.
7649 * minsyms.c (find_stab_function_addr): Remove from here...
7650 * dbxread.c: ... to here, and mark it static.
7652 2002-04-20 David S. Miller <davem@redhat.com>
7654 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7655 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7657 2002-04-21 David S. Miller <davem@redhat.com>
7659 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7660 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7661 (vx_write_register): Likewise.
7663 2002-04-23 J. Brobecker <brobecker@gnat.com>
7665 * source.c (is_regular_file): New function.
7666 (openp): Check wether file to open is a regular file
7667 to avoid opening directories.
7669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7671 * findvar.c (extract_signed_integer): Cast printf argument
7672 to suppress format warning.
7673 (extract_unsigned_integer): Likewise.
7674 * infcmd.c (registers_info): Likewise.
7675 * top.c (get_prompt_1): Likewise.
7676 * valops.c (value_assign): Likewise.
7677 * valprint.c (print_decimal): Likewise.
7679 2002-04-22 H.J. Lu (hjl@gnu.org)
7681 * c-exp.y (typebase): Support
7683 [long|long long|short] [signed|unsigned] [int|]
7687 signed [long|long long|short] int
7689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7691 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7693 * vax-tdep.h: New file.
7694 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7695 Make several routines static.
7696 (vax_get_saved_register): New function.
7697 (vax_gdbarch_init): New function.
7698 (_initialize_vax_tdep): Register vax_gdbarch_init.
7699 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7700 Remove macros now under the control of gdbarch.
7702 2002-04-22 Michael Snyder <msnyder@redhat.com>
7704 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7705 Some whitespace and coding standards tweaks.
7707 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7709 * vax-tdep.c: Include regcache.h.
7710 (vax_call_dummy_words): New.
7711 (sizeof_vax_call_dummy_words): New.
7712 (vax_fix_call_dummy): New function.
7713 (vax_saved_pc_after_call): Ditto.
7714 * config/vax/tm-vax.h: Don't include regcache.h.
7715 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7716 (CALL_DUMMY): Remove.
7717 (CALL_DUMMY_WORDS): Define.
7718 (SIZEOF_CALL_DUMMY_WORDS): Define.
7719 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7721 2002-04-18 Michael Snyder <msnyder@redhat.com>
7723 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7725 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7727 * vax-tdep.c (vax_frame_chain): New function.
7728 (vax_push_dummy_frame): Ditto.
7729 (vax_pop_frame): Ditto.
7730 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7731 (FRAMELESS_FUNCTION_INVOCATION): Use
7732 generic_frameless_function_invocation_not.
7733 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7734 (POP_FRAME): Use vax_pop_frame.
7736 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7738 * vax-tdep.c (vax_store_struct_return): New function.
7739 (vax_extract_return_value): Ditto.
7740 (vax_store_return_value): Ditto.
7741 (vax_extract_struct_value_address): Ditto.
7742 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7743 vax_store_struct_return.
7744 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7745 (STORE_RETURN_VALUE): Use vax_store_return_value.
7746 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7748 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7750 * vax-tdep.c (vax_frame_saved_pc): New function.
7751 (vax_frame_args_address_correct): Ditto.
7752 (vax_frame_args_address): Ditto.
7753 (vax_frame_locals_address): Ditto.
7754 (vax_frame_num_args): Move code to be in proximity to
7755 other frame-related functions.
7756 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7757 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7758 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7759 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7760 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7762 2002-04-22 H.J. Lu (hjl@gnu.org)
7764 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7769 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7770 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7771 (FRAME_INIT_SAVED_REGS): New macro.
7773 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7775 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7777 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7779 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7781 (fetch_osf_core_registers): Likewise.
7782 (supply_gregset): Likewise.
7784 2002-04-22 J. Brobecker <brobecker@gnat.com>
7786 * symfile.h (get_section_index): Define.
7787 * symfile.c (get_section_index): New function.
7788 * mdebugread.c (SC_IS_SBSS): New macro.
7789 (SC_IS_BSS): Return true for the scBss storage class only, as
7790 the scSBss storage class refers to the .sbss section.
7791 (parse_partial_symbols): Discard the symbols which associated
7792 section does not exist.
7793 Make sure to use the .sbss section index for symbols which
7794 storage class is scBss, rather than using the .bss section index.
7796 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7798 * vax-tdep.c: Update copyright years.
7799 (vax_register_name): New function.
7800 (vax_register_byte): Ditto.
7801 (vax_register_raw_size): Ditto.
7802 (vax_register_virtual_size): Ditto.
7803 (vax_register_virtual_type): Ditto.
7804 * config/vax/tm-vax.h: Update copyright years.
7805 (REGISTER_NAMES): Remove.
7806 (REGISTER_NAME): Define.
7807 (REGISTER_BYTE): Use vax_register_byte.
7808 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7809 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7810 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7812 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7814 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7816 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7818 2002-04-21 David S. Miller <davem@redhat.com>
7820 * arch-utils.c (generic_prologue_frameless_p): Kill
7821 SKIP_PROLOGUE_FRAMELESS_P code.
7822 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7824 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7825 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7826 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7828 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7829 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7830 (sparc_gdbarch_init): Pass it to
7831 set_gdbarch_prologue_frameless_p.
7833 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7835 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7836 (alphabsd-nat.o): New dependency list.
7838 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7840 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7842 (alpha-linux-tdep.o): New dependency list.
7843 (alphafbsd-tdep.o): Likewise.
7845 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7847 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7849 * alpha-tdep.c: ...from here.
7850 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7852 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7854 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7855 prototype from here...
7856 * alpha-tdep.h: ...to here.
7858 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7860 * frame.h (selected_frame_level): Document as deprecated.
7861 (frame_relative_level): Declare.
7862 * stack.c (frame_relative_level): New function.
7863 (selected_frame_level): Document as deprecated.
7864 (select_frame): Do not set the selected_frame_level.
7866 * stack.c (frame_info, record_selected_frame): Update.
7867 (frame_command, current_frame_command): Update.
7868 (up_silently_base, up_command, down_silently_base): Update.
7869 (down_command): Update.
7870 * inflow.c (kill_command): Update.
7871 * tracepoint.c (finish_tfind_command): Update.
7872 * corelow.c (core_open): Update.
7873 * thread.c (info_threads_command): Update.
7874 (do_captured_thread_select): Update.
7875 * infcmd.c (finish_command): Update.
7876 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7878 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7880 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7882 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7884 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7887 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7889 * alphafbsd-tdep.c: Update copyright years. Include
7891 (alphafbsd_use_struct_convention): Make static.
7892 (alphafbsd_init_abi): New function.
7893 (_initialize_alphafbsd_tdep): New function.
7894 * config/alpha/tm-fbsd.h: Update copyright years.
7895 (USE_STRUCT_CONVENTION): Remove.
7897 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7899 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7900 an Alpha ABI variant.
7901 (alpha_abi_handler_list): Declare.
7902 (alpha_gdbarch_register_os_abi): New function.
7903 (alpha_gdbarch_init): Give registered ABI variant handlers a
7904 chance to tweak the gdbarch once we have set up defaults.
7905 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7907 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7909 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7910 to standard_coerce_float_to_double.
7911 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7913 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7915 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7916 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7917 from gdbarch_tdep rather than a constant.
7918 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7919 the default text address for all Alpha Unix ABIs.
7920 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7921 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7923 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7925 * alpha-tdep.h: New file. Includes several Alpha target constants
7927 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7928 let gdbarch deal with.
7929 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7930 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7932 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7933 Alpha target register names.
7934 * alphabsd-nat.c: Likewise.
7935 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7936 Alpha target register names. Make serveral routines static.
7937 (alpha_get_saved_register): New function.
7938 (alpha_abi_names): New.
7939 (process_note_abi_tag_sections): New function.
7940 (get_elfosabi): New function.
7941 (alpha_gdbarch_init): New function.
7942 (alpha_dump_tdep): New function.
7943 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7945 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7947 * frame.c (find_saved_register): Delete #ifdef
7948 HAVE_REGISTER_WINDOWS code.
7949 * config/sparc/tm-sparc.h: Update comments.
7950 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7952 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7954 * i960-tdep.c (i960_find_saved_register): New function.
7955 (i960_get_saved_register): New function.
7956 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7957 (i960_get_saved_register): Declare.
7958 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7960 2002-04-20 David S. Miller <davem@redhat.com>
7962 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7964 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7966 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7967 instead of NUM_PSEUDO_REGS.
7969 2002-04-20 David S. Miller <davem@redhat.com>
7971 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7972 GDB_MULTI_ARCH_PARTIAL
7973 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7974 define, let tm-sp64.h do it.
7976 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7978 * frame.c (find_saved_register): Avoid a NULL pointer
7979 dereference and actually walk the frame list.
7981 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7983 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7984 sorted in most most-recent-used order. Document.
7985 * gdbarch.h, gdbarch.c: Regenerate.
7987 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7989 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7991 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7992 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7993 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7996 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7999 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8000 (build_builtin_type_vec128): Ditto.
8001 (append_composite_type_field): Fix calculation of type length in
8004 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8006 * config/djgpp/README: Update.
8008 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8011 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8013 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8014 (alpha_setup_arbitrary_frame): ...to this.
8015 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8016 for alpha_setup_arbitrary_frame.
8018 2002-04-18 Andrew Cagney <cagney@redhat.com>
8020 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8021 * gdbarch.h, gdbarch.c: Regenerate.
8023 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8024 * target.h (memory_breakpoint_from_pc): Update declaration.
8025 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8027 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8028 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8029 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8030 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8031 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8032 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8033 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8034 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8035 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8036 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8037 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8038 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8040 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8042 * monitor.c (monitor_insert_breakpoint): Ditto.
8043 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8045 * config/mcore/tm-mcore.h: Update copyright.
8046 * mem-break.c: Ditto.
8047 * xstormy16-tdep.c: Ditto.
8049 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8051 * p-exp.y: Add precedence rule for '^' token.
8052 This removes the shift/reduce conflicts.
8053 Remove the comment concerning these shift/reduce conflicts.
8055 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8057 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8058 (registers_powerpc_nofp): New register set for processors
8059 without floating point unit.
8061 2002-04-18 David S. Miller <davem@redhat.com>
8063 * MAINTAINERS: Add myself to write-after-approval.
8065 2002-04-17 Michael Snyder <msnyder@redhat.com>
8067 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8069 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8071 * rs6000-tdep.c (frame_initial_stack_address): Use
8072 frame_register_read to read the alloca_reg.
8074 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8076 * frame.c (find_saved_register): Find saved registers in the next
8080 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8082 * gdbarch.sh (LANG): Set to ``c''.
8084 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8086 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8088 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8090 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8093 * hpread.c (hpread_get_lntt): Add declaration.
8094 Also fix PR gdb/391.
8096 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8098 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8099 * aclocal.m4, configure: Re-generate.
8102 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8104 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8105 instead of tm_print_insn.
8107 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8109 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8111 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8113 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8114 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8115 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8117 2002-04-12 Don Howard <dhoward@redhat.com>
8119 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8120 max_user_call_depth.
8121 (init_cmd_lists): Initialize the new value;
8122 * cli/cli-script.c (execute_user_command): Limit the call depth of
8123 user defined commands. This avoids a core-dump when user commands
8124 are infinitly recursive.
8126 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8128 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8129 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8130 from tdep struct instead of DEFAULT_LR_SAVE.
8131 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8132 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8133 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8135 2002-04-12 Michael Snyder <msnyder@redhat.com>
8137 * Remote.c: Spelling fix.
8138 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8139 If no symbol found for "sbrk", try "_sbrk".
8140 (make_output_phdrs): Use bfd_section_name.
8141 (gcore_copy_callback): Use bfd_section_name.
8142 * eval.c: Indentation fix-ups.
8143 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8144 in case it gets applied to an address that is already
8145 in the instruction space.
8146 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8147 * symfile.c: Fix indentation, long lines.
8148 * source.c: White space fix-up.
8150 2002-04-12 Andrew Cagney <cagney@redhat.com>
8152 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8153 * frame.c (frame_register_read): New function. Return non-zero on
8155 (read_relative_register_raw_bytes_for_frame): Delete.
8156 (read_relative_register_raw_bytes): Delete.
8157 * frame.h (frame_register_read): Declare.
8158 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8160 * infcmd.c (do_registers_info): Ditto.
8161 * hppa-tdep.c: Ditto.
8162 * rs6000-tdep.c: Ditto.
8163 * h8500-tdep.c: Ditto.
8164 * mips-tdep.c: Ditto.
8165 * h8300-tdep.c: Ditto.
8166 * z8k-tdep.c: Ditto.
8168 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8170 From Jimi X <jimix@watson.ibm.com>:
8171 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8174 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8176 From Jimi X <jimix@watson.ibm.com>:
8177 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8180 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8182 From Jimi X <jimix@watson.ibm.com>:
8183 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8184 register sets for these processor variants.
8186 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8188 * regformats/reg-ppc.dat: Support FPSCR.
8190 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8192 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8193 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8194 Add fpscr as an invalid/unfetchable register.
8195 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8196 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8197 (fill_fpregset): Add support for register fpscr.
8198 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8199 (fill_gregset): Account for the fact that register ``mq'' might
8201 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8202 (registers_power): Add fpscr to register set at slot 71.
8203 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8204 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8206 2002-04-11 Michael Snyder <msnyder@redhat.com>
8208 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8209 * configure: Regenerate.
8210 * config.in: Regenerate.
8211 * acconfig.h: Add define for _SYSCALL32.
8212 * core-sol2.c: Remove #define _SYSCALL32.
8213 * solib-legacy.c: Remove #define _SYSCALL32.
8215 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8217 * stack.c (select_frame): Cleanup internal error message, do not
8220 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8222 * stack.c (select_frame): Check that selected_frame and the
8223 specified level are as expected.
8224 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8226 * frame.h (struct frame_info): Add field `level'. Update
8228 Work-in-progress PR gdb/464.
8230 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8232 * maint.c (maint_print_section_info): Rename print_section_info.
8233 (print_bfd_section_info, print_objfile_section_info): Update.
8234 * inferior.h (struct gdbarch): Add opaque declaration.
8235 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8236 * gdbarch.h: Regenerate.
8238 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8240 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8241 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8242 (kernel_u_size): Added.
8243 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8244 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8246 2002-04-04 Jim Ingham <jingham@apple.com>
8248 * valarith.c (find_size_for_pointer_math): New function, either returns
8249 the size for a pointer's target, returns 1 for void *, or errors for
8251 (value_add, value_sub): use find_size_for_pointer_math.
8253 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8255 * linux-low.c (linux_look_up_symbols): New hook.
8256 (linux_target_ops): Add linux_look_up_symbols.
8257 * remote-utils.c (decode_address): New function.
8258 (look_up_one_symbol): New function.
8259 * server.c (handle_query): Call target look_up_symbols hook.
8260 * server.h (look_up_one_symbol): Add prototype.
8261 * target.h (struct target_ops): Add look_up_symbols hook.
8263 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8265 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8266 override FP_REGNUM with frame->fp. Update copyright.
8267 * parse.c (num_std_regs, std_regs): Delete.
8268 (target_map_name_to_register): Do not search std_regs. Update
8269 function description.
8270 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8271 declarations. Update copyright.
8274 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8276 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8277 after the last symbol in a block.
8279 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8281 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8282 is non zero as a found symbol.
8284 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8286 * findvar.c: Include "builtin-regs.h".
8287 (value_of_register): Call value_of_builtin_reg when applicable.
8288 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8289 (target_map_name_to_register): Call
8290 builtin_reg_map_name_to_regnum.
8291 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8292 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8293 (builtin_regs_h): Define.
8294 (builtin-regs.o): New target.
8295 (findvar.o): Add $(builtin_regs_h).
8296 * builtin-regs.c, builtin-regs.h: New files.
8297 * std-regs.c: New file.
8298 Partial fix for PR gdb/251.
8300 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8302 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8303 it's no longer required.
8305 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8307 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8309 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_software_single_step): Use
8313 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8314 and size. Use target_insert_breakpoint() and
8315 target_remove_breakpoint() to insert and remove breakpoints
8316 instead of explicit memory reads and writes.
8318 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8320 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8321 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8322 ELF_OBJECT_FORMAT ifdef.
8324 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8326 From Jimi X <jimix@watson.ibm.com>:
8327 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8329 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8331 From Jimi X <jimix@watson.ibm.com>:
8332 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8333 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8335 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8337 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8338 s/asprintf/xasprintf/.
8339 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8341 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8343 I believe Jeff Law denies responsability for this one:
8344 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8345 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8346 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8347 Work-around for PR gdb/366.
8349 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8351 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8352 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8353 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8355 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8357 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8358 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8361 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8363 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8366 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8368 * README (Reporting Bugs in GDB): Document the bug web page as the
8369 prefered way of submitting bugs.
8372 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8374 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8376 * gdbarch.h, gdbarch.c: Re-generate.
8378 2002-04-07 Andreas Schwab <schwab@suse.de>
8380 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8381 buffer to regcache_collect.
8383 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8385 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8386 * gdbarch.c, gdbarch.h: Re-generate.
8388 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8390 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8391 declaration. Fix -Werror.
8393 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8395 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8396 * gdbarch.c: Regenerate.
8398 2002-04-05 Michael Snyder <msnyder@redhat.com>
8400 * breakpoint.c (clear_command): Rewrite middle section to
8401 combine two loops with identical control conditions.
8402 Add a cleanup to eliminate a memory leak.
8403 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8405 2002-04-05 H.J. Lu (hjl@gnu.org)
8407 * solib-svr4.c (bkpt_names): Add "__start".
8409 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8411 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8412 as test for 64 bit target.
8414 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8416 * h8500-tdep.c (h8500_write_fp): Delete function.
8417 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8418 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8419 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8421 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8422 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8424 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8425 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8426 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8427 (d10v_write_fp): Delete function.
8428 * inferior.h (write_fp, generic_target_write_fp): Delete
8430 * regcache.c (generic_target_write_fp): Delete function.
8431 (write_fp): Delete function.
8432 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8433 * gdbarch.h, gdbarch.c: Regenerate.
8434 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8435 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8436 (sparc64_write_fp): Delete declaration.
8437 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8438 (h8500_write_fp): Delete declaration.
8440 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8442 * sparc-tdep.c (sparc64_write_fp): Delete.
8443 (sparc_push_dummy_frame): Replace write_fp call with code to store
8445 (sparc_gdbarch_init): Do not initialize write_fp.
8447 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8449 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8452 2002-03-29 Jim Blandy <jimb@redhat.com>
8454 * stack.c (get_selected_block): Add new argument `addr_in_block',
8455 used to return the exact code address we used to select the block,
8457 * blockframe.c (get_frame_block, get_current_block): Same.
8458 * frame.h (get_frame_block, get_current_block,
8459 get_selected_block): Update declarations.
8460 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8461 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8463 2002-04-05 Michael Snyder <msnyder@redhat.com>
8465 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8468 2002-04-05 J. Brobecker <brobecker@gnat.com>
8470 * utils.c (xfullpath): New function.
8471 * defs.h (xfullpath): Add declaration.
8472 * source.c (openp): Use xfullpath in place of gdb_realpath to
8473 avoid resolving the basename part of filenames when the
8474 associated file is a symbolic link. This fixes a potential
8475 inconsistency between the filenames known to GDB and the
8476 filenames it prints in the annotations.
8477 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8478 to be able to match a filename with either the real filename, or
8479 the name of any symbolic link to this file.
8480 (lookup_partial_symtab): Ditto.
8482 2002-04-04 Michael Snyder <msnyder@redhat.com>
8484 * breakpoint.c: Add support for hardware breakpoints in overlays.
8485 (overlay_events_enabled): New state variable.
8486 (insert_breakpoints): Use overlay_events_enabled to decide
8487 whether to attempt to set a breakpoint at the overlay load addr.
8488 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8489 (remove_breakpoint): Use overlay_events_enabled to decide
8490 whether breakpoints need to be removed from overlay load addr.
8491 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8492 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8493 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8494 disable_overlay_breakpoints): Update overlay_events_enabled.
8496 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8498 * dwarf2read.c (struct function_range): New.
8499 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8500 (check_cu_functions): New.
8501 (read_file_scope): Initialize global function lists.
8502 Call dwarf_decode_line after processing children.
8503 (read_func_scope): Add to global function list.
8504 (dwarf_decode_lines): Call check_cu_functions everywhere
8505 record_line is called. Call record_line with a linenumber
8506 of 0 to mark sequence ends.
8508 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8510 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8511 change sync with glibc.
8513 2002-04-03 Jim Blandy <jimb@redhat.com>
8515 * configure.in: Call AC_C_INLINE.
8516 * configure: Regenerated.
8518 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8520 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8521 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8523 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8525 * NEWS: Mention gcore support on FreeBSD/i386.
8527 * fbsd-proc.c: New file.
8528 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8529 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8531 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8534 2002-03-29 Jim Blandy <jimb@redhat.com>
8536 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8537 unescaped newlines in string literals, but newer ones don't. So
8540 2002-03-26 Michael Snyder <msnyder@redhat.com>
8541 Andrew Cagney <cagney@redhat.com>
8543 * cli/cli-dump.c: New file. Dump memory to file,
8544 restore file to memory.
8545 * cli/cli-dump.h: New file.
8546 * Makefile.in: Add rules, dependencies for cli-dump.o.
8547 * NEWS: Mention new commands.
8549 2002-03-28 Michael Snyder <msnyder@redhat.com>
8551 * symfile.c (symbol_file_add): Move test for null symbols to later.
8553 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8555 From veksler at il.ibm.com:
8556 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8557 the xstrduped original path.
8560 2002-03-27 Michael Snyder <msnyder@redhat.com>
8562 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8563 * infcmd.c (_initialize_infcmd): Ditto.
8564 * language.c (_initialize_language): Ditto.
8565 * symfile.c (_initialize_symfile): Ditto.
8566 * top.c (_init_main): Ditto.
8567 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8569 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8571 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8572 vector registers handling.
8573 (skip_prologue): Handle new AltiVec instructions. Fill in new
8574 fields of frame data.
8575 (frame_get_saved_regs): Fill in information for AltiVec registers.
8577 2002-03-27 Jim Blandy <jimb@redhat.com>
8579 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8580 a function; leave this macro here to invoke that function.
8581 (symbol_init_mangled_name): Declaration for that function.
8582 * symtab.c (symbol_init_mangled_name): New function.
8584 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8586 * valarith.c: Replace strerror with safe_strerror.
8587 * tracepoint.c: Ditto.
8589 * go32-nat.c: Ditto.
8593 2002-03-27 Andreas Schwab <schwab@suse.de>
8595 * event-top.c (command_line_handler): Remove useless if.
8597 2002-03-27 Andreas Jaeger <aj@suse.de>
8599 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8602 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8604 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8605 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8606 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8607 (x86_64_linux_dr_get_status, supply_gregset),
8608 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8609 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8610 (x86_64_register_info_table): Add.
8611 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8612 (x86_64_register_raw_size, x86_64_register_virtual_type),
8613 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8614 general x86_64_register_info_table.
8615 (i386_gdbarch_init): gdbarch_register_bytes is now set
8616 dynamicaly during initialization.
8617 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8618 * gdbserver/linux-x86-64-low.c: Ditto.
8620 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8622 * gdbserver/server.c (main): Call target_signal_to_host_p
8623 and target_signal_to_host on signals received from the remote.
8624 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8625 target_signal_from_host on signals sent to the remote.
8626 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8627 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8629 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8631 * signals/signals.c: Include "server.h" in gdbserver build.
8632 (target_signal_from_name): Don't use STREQ.
8633 (_initialize_signals): Likewise. Don't include function in
8636 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8638 * signals.c: Moved to...
8639 * signals/signals.c: Here.
8640 * Makefile (signals.o): Update.
8642 2002-03-26 Jeff Law (law@redhat.com)
8644 * somread.c (som_symtab_read): Remove some commented out code and
8645 updated related comments. Do not set the minimal symbol table to
8646 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8647 in a dynamic executable.
8648 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8649 where we are unable to find the minimal symbol for the given
8652 2002-03-25 Jeff Law (law@redhat.com)
8654 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8656 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8658 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8660 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8662 * command.h: Update copyright.
8663 (struct cmd_list_element): Replace definition with opaque
8665 (enum cmd_types): Document that it will eventually be moved to
8667 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8668 (MALLOCED_REPLACEMENT): Delete macro.
8669 * Makefile.in (cli_decode_h): Add $(command_h).
8670 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8671 * top.c: Include "cli/cli-decode.h".
8672 * completer.c: Include "cli/cli-decode.h".
8673 * maint.c: Include "cli/cli-decode.h".
8674 * cli/cli-decode.h: Include "command.h".
8675 (enum command_class): Delete.
8676 (enum cmd_types): Comment out.
8677 (enum cmd_auto_boolean): Delete.
8678 (enum var_types): Delete.
8680 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8682 * cli/cli-decode.c: Include "gdb_assert.h".
8683 (add_set_or_show_cmd): New static function.
8684 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8685 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8686 all fields, such as func, from the set command.
8688 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8690 * MAINTAINERS (sh-elf): Change warning flag to -w.
8692 2002-03-23 Andrew Cagney <cagney@redhat.com>
8694 * defs.h (error): Add printf format attribute.
8695 * thread-db.c (thread_from_lwp): Fix error format string.
8696 * stack.c (parse_frame_specification): Ditto.
8697 * cli/cli-decode.c (undef_cmd_error): Ditto.
8698 * scm-lang.c (scm_lookup_name): Ditto.
8699 * tracepoint.c (trace_error): Ditto.
8700 * remote-utils.c (usage): Ditto.
8701 * remote.c (compare_sections_command): Ditto.
8704 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8706 * gdbtypes.c (append_composite_type_field): New function.
8707 (init_composite_type): New function.
8708 * gdbtypes.h (append_composite_type_field): Declare.
8709 (init_composite_type): Ditto.
8711 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8713 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8715 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8716 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8717 structure returning convention for SYSV ABI case, but not
8718 for GNU/Linux, FreeBSD, or NetBSD.
8720 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8722 * symtab.h (lookup_block_symbol): Add mangled_name argument
8725 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8726 with new mangled_name argument.
8727 * linespec.c (decode_line_1): Likewise.
8728 * valops (value_of_this): Likewise.
8729 * symtab.c (lookup_transparent_type): Likewise.
8730 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8731 (lookup_symbol): If we are given a mangled name, pass it down
8732 to lookup_symbol_aux.
8733 (lookup_block_symbol): If we are given a mangled name to check
8734 against, only return symbols which match it.
8736 2002-03-22 Christopher Faylor <cgf@redhat.com>
8738 * win32-nat.c (child_create_inferior): Check for proper shell to use
8739 here, in case the user changes it on the fly.
8740 (_initialize_inftarg): Remove shell path considerations.
8742 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8744 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8745 for gdbarch_max_register_raw_size and max_register_virtual_size.
8746 Adjust copyright year.
8748 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8750 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8751 in a function to cover the entire beginning of the function
8752 as well if it does not already.
8754 2002-03-21 Tom Rix <trix@redhat.com>
8756 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8757 (rs6000_ptrace64): Renamed from ptrace64.
8759 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8761 * gdbserver/remote-utils.c (remote_open): Don't call
8762 getprotobyname, we're all using TCP here so just use
8764 * gdbserver/gdbreplay.c (remote_open): Ditto.
8766 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8768 * regcache.c (_initialize_regcache): No need to call
8769 build_regcache() at this time; it gets called whenever
8770 the gdbarch changes.
8772 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8774 * sparc-nat.c: Include sys/param.h where possible.
8776 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8779 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8780 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8781 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8783 * stabsread.c (rs6000_builtin_type): Likewise.
8784 (read_sun_floating_type): Likewise.
8786 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8788 * stabsread.c (read_member_functions): Remove skip code for duplicate
8789 constructor/destructor methods. Use standard parsing for these
8790 methods and just do not chain them to the list of methods after
8793 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8795 * coffread.c: Remove redundant static declarations. Replace
8796 occurrences of `PTR' with `void *'.
8797 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8798 * top.h (quit_cover): Likewise.
8799 * defs.h (catch_errors): Likewise.
8801 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8803 * defs.h (XMALLOC): Define.
8804 * gdb-events.sh (XMALLOC): Delete macro.
8805 * gdb-events.c, gdb-events.h: Regenerate.
8806 * gdbarch.sh (XMALLOC): Delete macro.
8807 * gdbarch.c: Regenerate.
8808 * serial.c (XMALLOC): Delete macro.
8809 * ui-file.c (XMALLOC): Ditto.
8810 * ser-unix.h (XMALLOC): Ditto.
8811 * sh-tdep.c (XMALLOC): Ditto.
8812 * ui-out.c (XMALLOC): Ditto.
8813 * utils.c (XMALLOC): Ditto.
8814 * i386-tdep.c (XMALLOC): Ditto.
8815 * gdb-events.c (XMALLOC): Ditto.
8816 * d10v-tdep.c (XMALLOC): Ditto.
8817 * cli-out.c (XMALLOC): Ditto.
8819 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8820 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8821 * ui-file.c, ui-out.c: Ditto.
8823 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8825 * command.h (struct cmd_list_element): Add field context.
8826 (set_cmd_context, get_cmd_context): Declare.
8827 * cli/cli-decode.h: Ditto.
8828 * cli/cli-decode.c (get_cmd_context): New function.
8829 (set_cmd_context): New function.
8830 (add_cmd): Initialize context.
8831 Part of fixing PR gdb/145 and PR gdb/146.
8833 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8835 * cli/cli-decode.c (cmd_type): New function.
8836 * command.h (cmd_type): Declare.
8837 * infrun.c (set_schedlock_func): Call function cmd_type.
8838 * kod.c (kod_set_os): Call cmd_type.
8839 * cris-tdep.c (cris_version_update): Use function cmd_type.
8840 (cris_mode_update, cris_abi_update): Ditto.
8842 * command.h: (execute_cmd_post_hook): Declare.
8843 (execute_cmd_pre_hook): Declare.
8844 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8845 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8846 functions. Execute pre/post hook while ensuring that afterwords
8848 * top.c (execute_command): Use execute_cmd_post_hook, and
8849 execute_cmd_pre_hook to execute pre/post commands.
8850 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8852 (hook_stop_stub): Call execute_cmd_pre_hook.
8854 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8856 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8857 set'' and this leads to a core dump. Move xstrdup of
8858 operating_system to after check that it is not NULL.
8860 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8862 * kod.c (kod_set_os): Remove unnecessary check that
8863 ``command->type'' is set_cmd.
8865 * valprint.c (set_input_radix): Use input_radix.
8866 (set_output_radix): Use output_radix.
8867 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8870 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8872 * value.h (struct value): Delete field ``substring_addr''. Change
8873 aligner fields to force_doublest_align, force_longest_align,
8874 force_core_addr_align and force_pointer_aligh.
8876 * value.h (struct value): Fix typo in above change.
8878 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8880 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8881 to fix internal_error from ``maintenance print architecture''.
8883 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8885 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8886 for gcc versions after gcc-2.8.1.
8888 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8890 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8891 for method resolution. Restore adjustment of ``this'' pointer after
8892 calling value_struct_elt, which was accidentally removed during the
8895 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8897 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8899 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8901 * value.h (value_of_register): Update.
8903 2002-03-14 Richard Henderson <rth@redhat.com>
8905 * configure.in: Detect declaration for canonicalize_file_name.
8906 * utils.c (canonicalize_file_name): Declare, if needed.
8907 (gdb_realpath): Prefer realpath if available and usable.
8908 * config.in, configure: Rebuild.
8910 2002-03-14 Richard Henderson <rth@redhat.com>
8912 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8913 a constant array bound.
8915 * MAINTAINERS: Add myself to write-after-approval.
8917 2002-03-14 Michael Snyder <msnyder@redhat.com>
8919 * symfile.c (syms_from_objfile): Return immediately if no syms.
8920 (symbol_file_add): Return immediately if no syms.
8921 (find_sym_fns): Return immediately if no syms.
8923 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8925 * gdbserver/remote-util.c (remote_open): Print remote-side's
8926 IP address when remote debugging over the network.
8928 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8930 * config/sparc/fbsd.mh: Fix copyright.
8931 * config/sparc/fbsd.mt: Likewise.
8933 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8935 * MAINTAINERS: Fix typo in name of gdb warnings option.
8936 (x86-64): Fix formating so that this can be parsed by awk.
8938 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8940 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8941 * defs.h: Include "gdb/signals.h".
8942 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8944 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8946 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8947 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8950 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8951 Don Howard <dhoward@redhat.com>
8953 * mips-tdep.c (ST0_FR): Define.
8954 (mips2_fp_compat): New function, temporarily disabled.
8955 (mips_read_fp_register_single): New function.
8956 (mips_read_fp_register_double): New function.
8957 (mips_print_register): Use them.
8958 (do_fp_register_row): Likewise.
8960 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8962 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8965 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8967 * stabsread.c (read_member_functions): Fix is_stub test for
8968 static member functions, improve comment.
8970 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8972 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8973 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8974 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8975 commands that set boolean values.
8976 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8977 (arm_rdi_resume): Always initialize PC.
8978 (arm_rdi_open): Don't use rslt as a boolean.
8979 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8980 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8981 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8982 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8984 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8986 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8987 * configure: Rebuilt.
8989 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8991 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8992 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8994 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8996 * cli/cli-decode.c (set_cmd_completer): New function.
8997 * command.h (set_cmd_completer): Declare.
8998 * cli/cli-decode.h (set_cmd_completer): Ditto.
9000 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9001 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9002 * win32-nat.c (_initialize_inftarg): Ditto.
9003 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9004 * proc-api.c (_initialize_proc_api): Ditto.
9005 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9006 * source.c (_initialize_source): Ditto.
9007 * exec.c (_initialize_exec): Ditto.
9008 * solib.c (_initialize_solib): Ditto.
9009 * top.c (init_main): Ditto.
9010 * tracepoint.c (_initialize_tracepoint): Ditto.
9011 * symfile.c (_initialize_symfile): Ditto.
9012 * printcmd.c (_initialize_printcmd): Ditto.
9013 * infcmd.c (_initialize_infcmd): Ditto.
9014 * corefile.c (_initialize_core): Ditto.
9016 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9018 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9020 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9022 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9024 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9026 * NEWS: Update headings, 5.2 has branched.
9028 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9030 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9031 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9032 (register_addr, REGISTER_RAW_SIZE): Likewise.
9033 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9034 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9036 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9038 * MAINTAINERS (x86-64): Add myself.
9039 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9040 changed value_ptr -> struct value *
9042 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9044 * configure.host (sparc64-*-freebsd): Add.
9045 * configure.tgt: Likewise.
9046 * config/sparc/fbsd.mh: New file.
9047 * config/sparc/fbsd.mt: Likewise.
9048 * config/sparc/nm-fbsd.h: Likewise.
9049 * config/sparc/tm-fbsd.h: Likewise.
9051 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9053 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9054 regformats/reg-s390x.dat.
9056 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9058 * utils.c: Add FIXME explaining true/false problem.
9060 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9062 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9064 2002-02-28 Michael Chastain <mec@shout.net>
9066 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9068 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9070 * gdbserver/linux-s390-low.c: New file.
9071 * regformats/reg-s390.dat: New file.
9072 * regformats/reg-s390x.dat: New file.
9073 * gdbserver/configure.srv: Add S/390.
9074 * gdbserver/Makefile.in: Add S/390.
9075 * configure.tgt: Enable gdbserver for S/390.
9077 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9079 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9080 first line of the doc string for "info dos", except at the end of
9081 the sentence, since the short help stops at the first period.
9083 2002-02-28 Jason Merrill <jason@redhat.com>
9085 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9087 2002-02-27 Fred Fish <fnf@redhat.com>
9089 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9090 comment (dumy -> dummy).
9092 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9094 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9096 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9098 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9100 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9102 * gdbserver/acconfig.h: New file.
9103 * gdbserver/i387-fp.c: New file.
9104 * gdbserver/i387-fp.h: New file.
9105 * gdbserver/linux-x86-64.c: New file.
9106 * regformats/reg-x86-64.dat: New file.
9107 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9108 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9109 * gdbserver/configure.in: Add support for regsets.
9110 * gdbserver/config.in: Regenerate.
9111 * gdbserver/configure: Regenerate.
9112 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9113 * gdbserver/linux-low.h: New file.
9114 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9116 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9117 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9118 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9119 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9120 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9121 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9122 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9123 "i387-fp.h". Add PTRACE_GETREGS and friends.
9124 * gdbserver/regcache.c (supply_register): New function.
9125 (supply_register_by_name): New function.
9126 (collect_register): New function.
9127 (collect_register_by_name): New function.
9129 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9131 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9132 (config.status): Add configure.srv dependency.
9133 (server_h): Add config.h dependency.
9135 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9137 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9138 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9139 * gdbserver/configure.srv: Change i386-*-linux* to use
9142 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9144 * x86-64-tdep.c: Re-indent. Update copyright date.
9146 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9148 From Michal Ludvig <mludvig@suse.cz>:
9149 * x86-64-tdep.c (value.h): Delete.
9150 (gdb_assert.h): Include.
9151 (x86_64_register_convert_to_virtual,
9152 x86_64_register_convert_to_raw ): Add check which lets only
9153 floating-point values to be converted.
9154 (value_push): Delete.
9155 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9156 (i386_gdbarch_init): Number of register_bytes fixed.
9158 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9160 * MAINTAINERS: Add x86-64 target.
9162 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9164 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9165 * osfsolib.c (solib_map_sections): Ditto.
9166 * irix5-nat.c (solib_map_sections): Ditto.
9167 * corelow.c (gdb_check_format): Ditto.
9168 * symfile.c (symfile_bfd_open): Ditto.
9169 * solib.c (solib_map_sections): Ditto.
9172 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9174 * remote.c (_initialize_remote): By default, disable ``e'' and
9175 ``E'' step out-of-range packets.
9177 2002-02-26 Andreas Schwab <schwab@suse.de>
9179 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9180 m68k_linux_frame_saved_pc.
9181 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9183 (SIGCONTEXT_PC_OFFSET): Remove.
9184 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9185 m68k_linux_sigtramp_saved_pc): New functions.
9186 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9187 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9188 (UCONTEXT_PC_OFFSET): Define.
9189 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9190 non-RT and RT signal trampolines.
9192 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9194 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9195 (TARGET_NBPG, STACK_END_ADDR): Delete
9196 (VARIABLES_INSIDE_BLOCK): Delete.
9198 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9200 * utils.c (perror_with_name): Make string parameter constant.
9201 (print_sys_errmsg): Ditto.
9203 * defs.h (perror_with_name): Update.
9204 (print_sys_errmsg): Update.
9207 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9209 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9210 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9212 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9214 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9215 if it already matches the current architecture from the exec file.
9216 Include arch-utils.h for gdbarch_info_init prototype.
9217 * Makefile.in (rs6000-nat.o): Update dependencies.
9219 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9221 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9222 list of exported variables.
9224 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9226 * gdbserver/configure.srv: New file.
9227 * gdbserver/configure.in: Use configure.srv instead
9228 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9230 * gdbserver/configure: Regenerated.
9231 * gdbserver/terminal.h: New file.
9232 * gdbserver/Makefile.in: Update for configure changes. Remove
9233 more unneeded include paths.
9235 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9237 From wiz at danbala:
9238 * config/sparc/tm-sp64.h: Fix grammar and typos.
9241 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9243 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9244 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9245 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9246 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9247 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9248 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9249 * s390-tdep.c: Ditto.
9250 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9251 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9252 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9253 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9254 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9255 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9256 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9257 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9258 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9259 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9262 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9264 * lin-thread.c: Delete file.
9265 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9266 to gdb_proc_service.h.
9267 * configure: Re-generate.
9269 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9270 * serial.c (serial_open): Delete check for "ocd".
9273 * Makefile.in (linux-thread.o): Delete target.
9274 * linux-thread.c: Delete file.
9276 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9277 renamed SH files to be consistent.
9279 * symtab.c (sort_search_symbols): Use xfree.
9281 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9283 * arm-linux-tdep.c (arm_linux_init_abi): Register
9284 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9285 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9286 definition with undef, since we don't want the sysvr4 definition.
9287 (SKIP_TRAMPOLINE_CODE): Likewise.
9289 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9291 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9293 * configure.in: (AC_CHECK_FUNCS) Added test for
9294 canonicalize_file_name Regenerated.
9295 * config.in, configure: Regenerated.
9296 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9297 defined use canonicalize_file_name.
9299 2002-02-23 Michael Chastain <mec@shout.net>
9301 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9303 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9305 * README: Remove references to cygnus.com.
9306 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9307 dot com'' form. Remove references to cygnus.com and sourceware.
9309 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9311 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9312 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9313 1003.1-2001 no longer allows "head -1".
9314 * gdb/Makefile.in (version.c): Likewise.
9315 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9316 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9317 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9319 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9321 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9322 * command.h (cmd_cfunc_eq): Declare.
9323 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9325 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9326 ``struct cmd_list_element *''.
9327 * cli/cli-cmds.c (is_complete_command): Update. Use
9329 * top.c (execute_command): Pass the command to
9330 is_complete_command.
9331 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9333 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9335 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9336 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9337 architecture defines.
9338 * s390-tdep.c (s390_gdbarch_init): Likewise.
9340 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9342 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9343 (arm_linux_push_arguments): Likewise.
9344 (arm_linux_init_abi): Register them. Also register linux-specific
9346 (find_minsym_and_objfile): Use strcmp, not STREQ.
9347 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9348 (arm_linux_call_dummy_words): Delete declaration.
9349 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9350 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9352 (LOWEST_PC): Delete.
9354 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9356 * maint.c (print_section_info): Do not prepend `0x' to filepos
9357 output, it will be handled by local_hex_string_custom.
9359 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9361 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9362 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9363 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9365 2002-02-22 Jim Blandy <jimb@redhat.com>
9367 Indicate that the bcache functions don't change the strings
9369 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9370 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9372 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9374 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9376 2002-02-21 Christopher Faylor <cgf@redhat.com>
9378 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9379 find the complete path to a loaded DLL.
9381 2002-02-21 Fred Fish <fnf@redhat.com>
9383 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9384 that marks the end of the range of a function, enter a line number
9385 entry that has a line number of zero and a PC offset that matches
9386 the end of the function. This starts a range of PC's for which no
9387 line number information is known.
9388 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9389 PC's for which no line number info is found (line number is zero)
9390 then we didn't find any valid line information.
9391 * symtab.h: Document use of zero line number entry.
9393 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9395 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9396 (have_ptrace_getvrregs): Define for run time checks.
9397 (gdb_vrregset_t): New type for Altivec register handling.
9398 (fetch_register, store_register): Fetch/store altivec register
9400 (fetch_altivec_register, store_altivec_register): New functions.
9401 (supply_vrregset, fill_vrregset): New functions.
9402 (fetch_altivec_registers, store_altivec_registers): New functions.
9403 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9406 2002-02-21 Jiri Smid <smid@suse.cz>
9408 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9410 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9412 * Makefile.in (armnbsd-nat.o): Update dependencies.
9413 * armnbsd-nat.c (supply_gregset): New function. Common code to
9414 supply the integer register set.
9415 (supply_fparegset): New function. Similar for FPA registers.
9416 (fetch_regs, fetch_fp_regs): Use them.
9417 (fetch_core_registers): Likewise.
9418 (fetch_elfcore_registers): New function.
9419 (arm_netbsd_elfcore_fns): New core-file type specification.
9420 (_initialize_arm_netbsd_nat): Register it.
9422 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9424 * armnbsd-nat.c: Include gdbcore.h.
9425 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9426 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9427 'void' to declaration, to shut up ARI.
9428 (fetch_core_registers): Make static. Rewrite using supply_register.
9429 (arm_netbsd_core_fns): New core-file type specification.
9430 (_initialize_arm_netbsd_nat): New function.
9432 2002-02-21 Christopher Faylor <cgf@redhat.com>
9434 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9437 2002-02-20 Christopher Faylor <cgf@redhat.com>
9439 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9442 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9444 * jv-exp.y (parse_number): Change type of implicit longs
9445 to builtin_type_uint64.
9447 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9449 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9450 to be an integer instead of a `union wait'.
9452 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9454 * mips-linux-nat.c: Call the operating system GNU/Linux.
9455 * mips-linux-tdep.c: Likewise.
9456 * mips-tdep.c: Likewise.
9458 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9461 * jv-exp.y (parse_number): Handle 64-bit integers.
9463 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9465 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9466 AC_STDC_HEADERS to AC_HEADER_STDC.
9467 * gdbserver/configure: Regenerated.
9469 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9471 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9473 * sparc-tdep.c (get_longjmp_target): Likewise.
9475 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9477 * News: Add news about ARM and Multi-arch. Mention the new target
9480 2002-02-19 Jim Blandy <jimb@redhat.com>
9482 * stabsread.c (error_type_complaint): Improve error message.
9484 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9486 * gdbserver/README: Update documentation.
9487 * gdbserver/configure.in: Update configury to match documentation.
9488 * gdbserver/Makefile.in: Likewise.
9489 * gdbserver/configure: Regenerated.
9490 * gdbserver/aclocal.m4: New file, generated by aclocal.
9491 * gdbserver/config.in: New file, generated by autoheader.
9493 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9495 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9498 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9500 * arm-tdep.h (enum arm_float_model): New enum.
9501 (struct gdbarch_tdep): Add fp_model.
9502 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9503 up floating-point conversions until we know the floating-point model
9504 in use by the inferior. Don't complain about being unable to
9505 determine the ABI of the inferior when we don't have one.
9506 (arm_extract_return_value): Support different floating-point models.
9507 (arm_store_return_value): Likewise.
9508 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9510 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9512 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9514 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9515 of ``current_gdbarch''.
9517 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9519 * armnbsd-nat.c : ANSIfy all function declarations.
9520 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9521 (fetch_inferior_registers): Re-implement in terms of above.
9522 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9523 (store_inferior_registers): Re-implement in terms of above.
9525 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9527 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9529 * arm-linux-tdep.c: Likewise.
9530 * config/arm/tm-linux.h: Likewise.
9532 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9534 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9535 * config/arm/nbsd.mt (TM_FILE): Delete.
9536 * config/arm/tm-nbsd.h: Delete.
9538 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9540 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9541 Initialize CALL_DUMMY_LENGTH.
9543 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9545 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9547 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9548 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9549 defines one thing and that is incorrect for this port.
9550 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9552 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9554 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9556 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9558 * win32-nat.c (display_selector): New function. Displays information
9559 about the information returned by GetThreadSelectorEntry API function.
9560 (display_selectors): New function. Displays the infomation of
9561 the selector given as argument, or of CS, DS ans FS selectors
9562 if no argument is given.
9563 ( _initialize_inftarg): Add "w32" as info prefix command.
9564 Add "info w32 selector" as command calling display_selectors.
9566 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9568 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9569 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9572 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9574 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9576 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9578 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9579 (arm_fix_call_dummy): Call it.
9580 (arm_call_dummy_breakpoint_offset): Delete.
9581 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9582 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9584 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9586 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9587 Default to func_frame_chain_valid.
9588 * gdbarch.h, gdbarch.c: Re-generate.
9589 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9591 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9593 * ppc-linux-nat.c: Update copyright.
9594 (fetch_register, store_register): Add tid parameter, don't compute
9596 (fetch_ppc_registers, store_ppc_registers): Add tid
9597 parameter. Pass it along to callees.
9598 (fetch_inferior_registers, store_inferior_registers): Compute tid
9599 here, and pass it to calleed functions.
9600 (fill_gregset, supply_fpregset): Clean up formatting.
9602 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9604 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9605 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9607 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9609 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9610 * gdbarch.c gdbarch.h: Regenerate.
9611 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9613 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9614 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9615 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9617 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9618 * arm-tdep.c (arm_get_longjmp_target): New function.
9619 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9620 this to a positive value register arm_get_longjmp_target as the
9622 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9623 (arm_linux_init_abi): Set up longjmp description in tdep.
9624 * armnbsd-nat.c (get_longjmp_target): Delete.
9625 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9626 description in tdep.
9627 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9628 (get_longjmp_target): Delete declaration.
9629 (GET_LONGJMP_TARGET): Delete.
9630 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9631 (GET_LONGJMP_TARGET): Delete.
9633 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9635 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9636 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9637 of ``current_gdbarch''.
9639 2002-02-17 Tom Tromey <tromey@redhat.com>
9641 * cli/cli-cmds.c (compare_strings): New function.
9642 (complete_command): Only print each unique item once.
9643 * completer.h (complete_line): Declare.
9644 * completer.c (complete_line): New function.
9645 (line_completion_function): Use it.
9647 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9649 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9650 * gdbarch.h, gdbarch.c: Re-generate.
9652 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9654 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9656 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9658 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9659 * valops.c (value_arg_coerce): Don't take the address of a reference
9660 to convert an argument to a reference.
9662 2002-02-15 Christopher Faylor <cgf@redhat.com>
9664 * win32-nat.c (get_image_name): New function.
9665 (handle_load_dll): Use get_image_name function.
9666 (get_child_debug_event): Avoid registering debug events until possibly
9667 execed process is started.
9668 (child_create_inferior): Allow invocation via shell so that command
9669 line redirection, etc. works ok.
9670 (_initialize_inftarg): Add new command: "set shell" to control whether
9671 a shell is used to start a process.
9673 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9675 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9676 instead of find_register_by_number.
9677 (cannot_store_register): Likewise.
9679 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9681 * dwarf2read.c: Replace fprintf (stderr, ...) by
9682 fprintf_unfiltered (gdb_stderr, ...).
9684 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9686 * gdbserver/gdbserver.1: Document --attach.
9688 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9690 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9692 * arm-tdep.c (arm_default_arm_le_breakpoint)
9693 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9694 (arm_default_thumb_be_breakpoint): New. Initialize them from
9695 traditional breakpoint defines.
9696 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9697 (arm_gdbarch_init): Initialize new breakpoint variables.
9698 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9699 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9700 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9701 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9703 (arm_netbsd_init_abi_common): ... here; new function.
9704 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9705 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9706 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9707 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9709 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9711 * arm-tdep.h (enum arm_abi): New enum.
9712 (struct gdbarch_tdep): New structure.
9713 (LOWEST_PC): Provide a default.
9714 (arm_gdbarch_register_os_abi): Declare new function.
9715 * arm-tdep.c (arm_abi_names): New array.
9716 (process_note_abi_tag_sections): New function.
9717 (get_elfosabi): New function.
9718 (arm_gdbarch_register_os_abi): New function.
9719 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9720 support for that ABI has been built in, then call the appropriate
9721 configuration routine. Use gdbarch_num_regs() to get the number
9723 (arm_dump_tdep): New function.
9724 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9725 place-holder functions.
9726 (_initialize_arm_tdep): Register them.
9727 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9729 * armnbsd-tdep.c: New file.
9730 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9731 * config/arm/nbsd.mt (TDEPFILES): Add it.
9732 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9734 * armnbsd-nat.c: Include regcache.h.
9735 * Makefile.in (armnbsd-nat.o): Update dependency list.
9737 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9739 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9741 * gdbserver/Makefile.in: Fix typos in target rules.
9743 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9745 Fix part of PR gdb/267.
9746 * linespec.c (find_methods): Handle constructors specially for now.
9748 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9750 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9752 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9753 standard_coerce_float_to_double().
9755 2002-02-14 Christopher Faylor <cgf@redhat.com>
9757 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9760 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9762 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9763 find_variant_by_name, because it confuses the multiarch
9764 framework. Return NULL if there isn't an architecture with the
9765 user supplied name, instead of forcing a different one without
9766 recording the change with the multiarch machinery.
9767 (find_variant_by_name): Delete.
9769 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9771 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9772 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9774 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9776 * stack.c (print_frame_info_base): When calling
9777 print_frame_info_listing_hook, set current_source_symtab.
9779 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9781 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9782 and remove unused $(INCLUDE_DIR).
9783 Add regcache.c to OBS.
9784 Add generated register protocol files to clean target.
9785 Update dependencies for new objects, obsolete old target code.
9787 * gdbserver/linux-low.c: Remove all platform-specific code to
9788 new files. Remove various dead code. Update to use regcache
9790 * gdbserver/remote-utils.c (fromhex): Add return statement
9792 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9794 (input_interrupt): Add integer parameter to match prototype
9795 of a signal handler.
9796 (outreg): Use register_data ().
9797 (prepare_resume_reply): Use gdbserver_expedite_regs.
9798 * gdbserver/server.c (main): Dynamically allocate own_buf because
9799 PBUFSIZ is no longer constant. Use registers_to_string () and
9800 registers_from_string ().
9801 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9802 for error (), fatal (), and warning (). Update definition of
9803 PBUFSIZ to use regcache functionality. Add include guard.
9804 * gdbserver/utils.c (fatal): Add missing ``const''.
9805 (warning): New function.
9807 * regformats/regdat.sh: Include "regcache.h" in generated files.
9808 Provide init_registers () function.
9809 * regformats/regdef.h: Add prototype for set_register_cache ().
9812 * gdbserver/linux-arm-low.c: New file.
9813 * gdbserver/linux-i386-low.c: New file.
9814 * gdbserver/linux-ia64-low.c: New file.
9815 * gdbserver/linux-m68k-low.c: New file.
9816 * gdbserver/linux-mips-low.c: New file.
9817 * gdbserver/linux-ppc-low.c: New file.
9818 * gdbserver/linux-sh-low.c: New file.
9820 * gdbserver/regcache.c: New file.
9821 * gdbserver/regcache.h: New file.
9823 * gdbserver/low-linux.c: Removed obsolete file.
9825 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9827 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9828 * config/i386/linux.mt: Likewise.
9829 * config/ia64/linux.mt: Likewise.
9830 * config/m68k/linux.mh: Likewise.
9831 * config/powerpc/linux.mh: Likewise.
9832 * config/mips/linux.mt: Likewise.
9834 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9836 * config/i386/i386lynx.mh: Mark gdbserver variables
9837 as (currently) obsolete for this target.
9838 * config/i386/nbsd.mt: Likewise.
9839 * config/i386/nbsdelf.mt: Likewise.
9840 * config/m32r/m32r.mt: Likewise.
9841 * config/m68k/m68klynx.mh: Likewise.
9842 * config/m68k/nbsd.mt: Likewise.
9843 * config/m68k/sun3os4.mh: Likewise.
9844 * config/mips/vr5000.mt: Likewise.
9845 * config/ns32k/nbsd.mt: Likewise.
9846 * config/pa/hppabsd.mh: Likewise.
9847 * config/pa/hppaosf.mh: Likewise.
9848 * config/powerpc/nbsd.mt: Likewise.
9849 * config/rs6000/rs6000lynx.mh: Likewise.
9850 * config/s390/s390.mt: Likewise.
9851 * config/s390/s390x.mt: Likewise.
9852 * config/sparc/sparclynx.mh: Likewise.
9853 * config/sparc/sun4os4.mh: Likewise.
9854 * config/i386/x86-64linux.mt: Likewise.
9855 * config/sparc/linux.mh: Likewise.
9857 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9859 * configure.tgt: Configure gdbserver only for known working
9860 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9861 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9862 SUBDIRS if it is configured. Update comment for ${nativefile}.
9863 * configure: Regenerated.
9865 2002-02-13 Michael Snyder <msnyder@redhat.com>
9867 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9869 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9870 (default_gcore_mach): Just return 0, work around a problem in bfd.
9871 (default_gcore_target): OK to return NULL if exec_bfd is null.
9872 (make_mem_sec): Use a cast, avoid a warning.
9874 * procfs.c (find_memory_regions_callback): Use a cast instead of
9875 calling host_pointer_to_address (which complains if
9876 sizeof (host pointer) != sizeof (target pointer)).
9877 (procfs_make_note_section): Avoid overflow in psargs string.
9879 * procfs.c (procfs_make_note_section): Make the default
9880 implementation return an error.
9882 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9884 * procfs.c (procfs_make_note_section): Provide a default definition
9885 (for alpha-dec-osf4.0f). Fix typos.
9887 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9889 * linux-proc.c: Add include of regcache.h.
9890 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9892 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9894 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9895 * memattr.c (create_mem_region): Disallow useless empty region.
9896 Regions are half-open intervals, so allow [A..B) [B..C) as
9899 2002-02-13 Michael Chastain <mec@shout.net>
9901 * defs.h: Kill CONST_PTR.
9902 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9903 * c-lang.c (c_builtin_types): Likewise.
9904 * ch-lang.c (ch_builtin_types): Likewise.
9905 * f-lang.c (f_builtin_types): Likewise.
9906 * language.c (unknown_builtin_types): Likewise.
9907 * m2-lang.c (m2_builtin_types): Likewise.
9908 * p-lang.c (pascal_builtin_types): Likewise.
9909 * scm-lang.c (c_builtin_types): Likewise.
9911 2002-02-13 Keith Seitz <keiths@redhat.com>
9913 * arm-tdep.h (arm_get_next_pc): Add declaration.
9915 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9917 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9918 with other related struct-returning functions.
9919 (arm_extract_struct_value_address): New function.
9920 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9921 initialize float_format, double_format and long_double_format as
9922 appropriate to the endianness of the target.
9923 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9924 (arm_use_struct_convention): Delete declaration.
9925 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9927 2002-02-13 Keith Seitz <keiths@redhat.com>
9929 * defs.h (core_addr_to_string_nz): New function.
9931 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9933 Apply missing bits of 2002-01-15 patch.
9934 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9935 (fill_fpregset): Use i387_fill_fsave.
9937 2002-02-12 Keith Seitz <keiths@redhat.com>
9939 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9940 (core_addr_to_string_nz): New function.
9942 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9944 * arm-linux-nat.c: Really include arm-tdep.h.
9945 * config/arm/tm-linux.h (struct type, struct value): Declare.
9947 2002-02-11 Michael Snyder <msnyder@redhat.com>
9949 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9950 (gcore section): Ifdef for Solaris and Unixware only.
9951 (procfs_do_thread_registers): Unixware needs one lwpstatus
9952 per thread (not one prstatus or pstatus).
9953 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9954 not over all gdb threads. For unixware, call elfcore_write_pstatus
9955 once before iterating over threads.
9957 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9959 * arm-tdep.h: New file.
9960 * arm-tdep.c: Include arm-tdep.h.
9961 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9962 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9963 (arm_print_float_info, arm_register_type, convert_to_extended)
9964 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9965 (arm_extract_return_value, arm_register_name): Make static.
9966 (arm_software_single_step): Similarly. Fix types in declaration.
9967 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9968 (arm_store_return_value, arm_store_struct_return): New functions.
9969 (arm_gdbarch_init): Register the above functions. Also register
9970 call_dummy_start_offset, sizeof_call_dummy_words,
9971 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9972 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9973 max_register_virtual_size, register_size. Set up
9974 prologue_cache.saved_regs here, rather than ...
9975 (_initialize_arm_tdep): ... here.
9976 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9978 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9979 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9980 (arm_print_float_info, arm_register_type, convert_to_extended)
9981 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9982 (arm_extract_return_value, arm_register_name): Delete declarations.
9983 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9984 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9985 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9986 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9987 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9988 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9989 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9990 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9991 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9992 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9993 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9994 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9996 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9997 * remote-rdi.c remote-rdp.c: Likewise.
9998 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9999 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10000 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10003 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10004 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10005 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10006 from non-ARM_ prefixed definitions.
10007 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10009 * remote-rdi.c remote-rdp.c: Likewise.
10010 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10012 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10014 * arm-tdep.c (arm_frameless_function_invocation)
10015 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10016 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10017 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10018 (arm_pop_frame, arm_get_next_pc): Make static.
10019 (arm_gdbarch_init): Register above in gdbarch structure.
10020 (arm_read_fp): Renamed from arm_target_read_fp.
10021 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10022 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10023 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10024 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10025 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10026 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10027 (arm_pc_is_thumb_dummy): Delete declarations.
10028 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10029 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10030 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10031 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10033 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10035 * symtab.c (compare_search_syms): New function.
10036 (sort_search_symbols): New function.
10037 (search_symbols): Sort symbols after searching rather than
10040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10042 * NEWS: Linux -> GNU/Linux.
10044 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10046 * gdbarch.sh: For for level one methods, disallow a definition
10047 when partially multi-arched. Add comments explaining rationale.
10048 * gdbarch.h: Re-generate.
10050 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10052 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10053 multi-arch partial.
10055 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10057 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10058 field. Use diff -u.
10059 * gdbarch.c: Re-generate.
10061 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10063 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10064 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10067 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10069 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10070 multi-arch partial.
10071 (PUSH_ARGUMENTS): Switch to using predefault.
10072 * gdbarch.c: Regenerate.
10074 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10076 * valops.c (PUSH_ARGUMENTS): Delete definition.
10077 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10078 partial. Default to default_push_arguments.
10079 * gdbarch.h, gdbarch.c: Regenerate.
10081 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10083 * defs.h (throw_exception): Rename return_to_top_level. Update
10085 * utils.c (error_stream, internal_verror, quit): Ditto.
10086 * top.c (throw_exception, catcher): Ditto.
10087 * sparclet-rom.c (sparclet_load): Ditto.
10088 * remote.c (interrupt_query, minitelnet): Ditto.
10089 * remote-sds.c (interrupt_query): Ditto.
10090 * remote-mips.c (mips_error, mips_kill): Ditto.
10091 * ocd.c (interrupt_query): Ditto.
10092 * monitor.c (monitor_interrupt_query): Ditto.
10093 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10094 * target.h: Update comment.
10096 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10098 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10100 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10101 default_double_format.
10102 * gdbarch.h, gdbarch.c: Re-generate.
10103 * findvar.c (floatformat_unknown): Delete variable definition.
10104 * doublest.h (floatformat_unknown): Delete variable declaration.
10106 2002-02-09 Jim Blandy <jimb@redhat.com>
10108 * stabsread.c (read_type): Add code to parse Sun's syntax for
10109 prototyped function types.
10111 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10113 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10114 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10116 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10118 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10119 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10120 now _initialize_xcoffsolib gets called again and overrides the
10121 commands from solib.c in a native configuration.
10123 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10125 * doublest.c (store_typed_floating): Don't try to return a value.
10128 2002-02-08 Jim Blandy <jimb@redhat.com>
10130 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10131 is prototyped and has no arguments, print its argument list as
10134 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10136 * MAINTAINERS (write-after-approval): Add myself.
10137 (paper-trail): I've escaped!
10139 2002-02-08 Christopher Faylor <cgf@redhat.com>
10141 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10143 (_initialize_check_for_gdb_ini): Ditto.
10145 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10147 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10148 xaprintf -> xasprintf.
10150 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10152 * win32-nat.c: Remove use of printf and sprintf functions.
10154 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10156 * arm-tdep.c (arm_frame_chain_valid): Make static.
10157 (arm_push_arguments): Likewise.
10158 (arm_gdbarch_init): New function.
10159 (_initialize_arm_tdep): Call it.
10160 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10161 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10162 (FRAME_CHAIN_VALID): Delete.
10163 (arm_frame_chain_valid): Delete declaration.
10164 (PUSH_ARGUMENTS): Delete.
10165 (arm_push_arguments): Delete declaration.
10166 (CALL_DUMMY_P): Delete.
10168 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10169 Corinna Vinschen <vinschen@redhat.com>
10171 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10172 on builtin float types.
10174 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10176 * utils.c: Include <curses.h> before "bfd.h".
10177 * tui/tui-hooks.c: Likewise.
10178 * tui/tui.c: Likewise.
10179 * tui/tuiCommand.c: Likewise.
10180 * tui/tuiData.c: Likewise.
10181 * tui/tuiDataWin.c: Likewise.
10182 * tui/tuiDisassem.c: Likewise.
10183 * tui/tuiGeneralWin.c: Likewise.
10184 * tui/tuiIO.c: Likewise.
10185 * tui/tuiLayout.c: Likewise.
10186 * tui/tuiRegs.c: Likewise.
10187 * tui/tuiSource.c: Likewise.
10188 * tui/tuiSourceWin.c: Likewise.
10189 * tui/tuiStack.c: Likewise.
10190 * tui/tuiWin.c: Likewise.
10192 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10194 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10195 to include space for pseudoregs as well. Update loops accordingly.
10196 (sh_fp_frame_init_saved_regs): Ditto.
10197 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10199 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10201 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10202 Add Richard Earnshaw to Arm maintainers.
10204 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10206 * defs.h (warning_begin): Delete declaration.
10208 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10211 2002-02-07 Michael Snyder <msnyder@redhat.com>
10213 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10214 Logic bug, remove misplaced else.
10216 2002-02-07 Klee Dienes <klee@apple.com>
10218 * fork-inferior.c (fork_inferior): Add '!' to the list of
10219 characters that need to be quoted when building a string for the
10220 shell. Quote '!' specifically with a backslash, since CSH chokes
10221 when trying to evaluate "str!str".
10223 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10225 * rdi-share/host.h: Only provide a typedef for bool if it is not
10228 2002-02-04 Michael Snyder <msnyder@redhat.com>
10230 * breakpoint.h (enum bptype): Add new overlay event bp type.
10231 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10233 * breakpoint.c (create_internal_breakpoint): New function.
10234 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10235 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10236 (create_thread_event_breakpoint): Ditto.
10237 (create_solib_event_breakpoint): Ditto.
10238 (create_overlay_event_breakpoint): New function.
10239 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10240 (update_breakpoints_after_exec): Delete and re-initialize
10241 overlay event breakpoints after an exec. Add FIXME comment
10242 about longjmp breakpoint.
10243 (print_it_typical): Ignore overlay event breakpoints.
10244 (print_one_breakpoint): Ditto.
10246 (bpstat_what): Do not stop for overlay event breakpoints.
10247 (delete_breakpoint): Don't delete overlay event breakpoints.
10248 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10249 (breakpoint_re_set): Re-create overlay event breakpoint.
10251 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10252 (overlay_manual_command): Disable overlay breakpoints.
10253 (overlay_off_command): Disable overlay breakpoints.
10255 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10257 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10258 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10259 to here from config/tm-arm.h.
10260 (coff_sym_is_thumb): Make static.
10261 (arm_elf_make_msymbol_special): New function.
10262 (arm_coff_make_msymbol_special): New function.
10263 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10264 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10265 (coff_sym_is_thumb): Delete declaration.
10266 (arm_elf_make_msymbol_special): Declare.
10267 (arm_coff_make_msymbol_special): Declare.
10268 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10269 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10271 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10273 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10275 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10277 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10278 * gdbarch.c gdbarch.h: Regenerate.
10279 * arch-utils.c (default_print_float_info): New function.
10280 * arch-utils.h (default_print_float_info): Prototype it.
10281 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10282 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10283 (PRINT_FLOAT_INFO): Document it.
10285 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10286 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10287 (PRINT_FLOAT_INFO): Define.
10289 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10291 * win32-nat.c (_initialize_check_for_gdb_ini):
10292 Add typecast to sprintf argument to suppress a warning.
10294 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10296 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10297 to allow easier handling of pass state.
10298 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10299 that gives exception name and address.
10300 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10301 and set last_sig value to ourstatus->value.sig. Some missing
10303 (child_continue): Correctly report continue_status.
10304 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10305 TARGET_SIGNAL_0 (new default value).
10306 (child_resume): consider sig argument passed to decide if
10307 the exception should be passed to debuggee or not.
10309 2002-02-05 Michael Snyder <msnyder@redhat.com>
10311 * regcache.c (fetch_register): Call target_fetch_register
10312 only if we don't call FETCH_PSEUDO_REGISTER.
10313 (store_register): Call target_store_register only if we
10314 don't call STORE_PSEUDO_REGISTER.
10316 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10318 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10319 ELF_MAKE_MSYMBOL_SPECIAL.
10320 * gdbarch.c, gdbarch.h: Regenerate.
10321 * arch-utils.c (default_make_msymbol_special): New function.
10322 * arch-utils.h (default_make_msymbol_special): Export.
10323 * elfread.c (elf_symtab_read): Compile use of
10324 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10326 * coffread.c (coff_symtab_read): Ditto, for
10327 COFF_MAKE_MSYMBOL_SPECIAL.
10329 2002-02-05 Jim Blandy <jimb@redhat.com>
10331 * solib-svr4.c (svr4_truncate_ptr): New function.
10332 (svr4_relocate_section_addresses): Do the address arithmetic with
10333 the appropriate truncation for target addresses, even when
10334 CORE_ADDR is larger than a target address.
10336 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10338 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10341 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10343 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10346 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10348 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10350 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10352 * gdbserver/linux-low.c: Remove unused include files.
10354 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10356 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10357 (read_inferior_memory): Use it.
10358 (write_inferior_memory): Likewise.
10360 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10362 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10363 grubbing through sys_errlist.
10365 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10367 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10369 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10370 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10372 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10374 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10375 (do_sfunc, set_cmd_sfunc): New functions.
10377 * command.h (struct cmd_list_element): Add field func.
10378 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10379 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10380 * cli/cli-decode.h: Ditto.
10382 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10383 (help_all, help_cmd_list): Ditto.
10384 (find_cmd, complete_on_cmdlist): Ditto.
10385 * top.c (execute_command): Ditto.
10387 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10390 * infcmd.c (notice_args_read): Fix function signature.
10392 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10393 * cli/cli-decode.c (add_set_cmd): Ditto.
10394 * utils.c (initialize_utils): Ditto.
10395 * maint.c (_initialize_maint_cmds): Ditto.
10396 * infrun.c (_initialize_infrun): Ditto.
10397 * demangle.c (_initialize_demangler): Ditto.
10398 * remote.c (add_packet_config_cmd): Ditto.
10399 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10400 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10401 * proc-api.c (_initialize_proc_api): Ditto.
10402 * kod.c (_initialize_kod): Ditto.
10403 * valprint.c (_initialize_valprint): Ditto.
10404 * top.c (init_main): Ditto.
10405 * infcmd.c (_initialize_infcmd): Ditto.
10406 * corefile.c (_initialize_core): Ditto.
10407 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10408 * arch-utils.c (initialize_current_architecture): Ditto.
10409 (_initialize_gdbarch_utils): Ditto.
10410 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10412 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10413 * wince.c (_initialize_inftarg): Ditto.
10414 * symfile.c (_initialize_symfile): Ditto.
10415 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10416 * language.c (_initialize_language): Ditto.
10417 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10419 2002-02-04 Michael Snyder <msnyder@redhat.com>
10421 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10423 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10425 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10426 Add rules for building the register data files.
10428 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10430 * regformats/regdat.sh: Add braces to the definition of
10431 expedite_regs_${arch}.
10433 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10435 * regformats/regdef.h (struct reg): Add comment describing the
10436 requirements for offset and size fields.
10438 2002-02-04 Andreas Schwab <schwab@suse.de>
10440 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10441 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10443 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10445 * gdbarch.sh (copyright): Update years in generated header.
10446 (SMASH_TEXT_ADDRESS): Add rule.
10447 * gdbarch.h, gdbarch.c: Re-generate.
10448 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10449 * dbxread.c: Likewise.
10450 * dwarfread.c: Likewise.
10451 * elfread.c: Likewise.
10452 * somread.c: Likewise.
10454 * arm-tdep.c (arm_smash_text_address): New function.
10455 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10457 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10459 Add support for hardware watchpoints on win32 native.
10460 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10461 CONTEXT_DEBUG_REGISTERS.
10462 (dr variable): New variable. Static array containing a local copy
10463 of debug registers.
10464 (debug_registers_changed): New variable. Reflects when debug registers
10465 are changed and need to be written to inferior.
10466 (debug_registers_used): New variable. Reflects when any debug register
10467 was set, used when new threads are created.
10468 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10470 (thread_rec): Set dr array if id is the thread of current_event .
10471 (child_continue, child_resume): Change the debug registers for all
10472 threads if debug_registers_changed.
10473 (child_add_thread): Change the debug registers if debug_registers_used.
10474 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10475 Link nm.h to new nm-cygwin.h file.
10476 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10477 of hardware registers.
10479 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10481 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10482 Restore behavour broken by 2002-01-20 Andrew Cagney
10483 <ac131313@redhat.com> IEEE_FLOAT removal.
10485 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10487 * c-valprint.c (c_val_print): Pass a proper valaddr to
10488 cp_print_class_method.
10489 * valops.c (search_struct_method): If there is only one method
10490 and args is NULL, return that method.
10492 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10494 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10495 accessing tag_name directly.
10497 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10499 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10500 of accessing tag_name directly.
10502 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10505 * gdbtypes.c (replace_type): New function.
10506 * gdbtypes.h (replace_type): Add prototype.
10507 * stabsread.c (read_type): Use replace_type.
10509 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10511 * Makefile.in (memattr.o): Add missing dependencies rule.
10513 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10515 * breakpoint.c (break_at_finish_command): Really export.
10516 (break_at_finish_at_depth_command): Ditto.
10517 (tbreak_at_finish_command): Ditto.
10518 * hppa-tdep.c: Include completer.h.
10519 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10520 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10522 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10524 * utils.c (do_write): New function.
10525 (error_stream): Rewrite combining the code from error_begin and
10527 (verror): Rewrite using error_stream.
10528 (error_begin): Delete function.
10530 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10532 * utils.c (error_begin): Make static.
10533 * defs.h (error_begin): Delete declaration.
10535 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10536 (decode_line_1): Use cplusplus_error instead of error_begin,
10537 cplusplus_hint and return_to_top_level.
10538 * coffread.c (coff_symfile_read): Use error instead of error_begin
10539 and return_to_top_level.
10540 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10542 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10544 * language.h (type_error, range_error): Make string parameter
10546 * language.c (warning_pre_print): Delete extern declaration.
10547 * dwarfread.c (warning_pre_print): Ditto.
10548 * language.c (type_error, range_error): Rewrite to use verror and
10549 vwarning instead of warning_begin.
10551 2002-02-01 Michael Snyder <msnyder@redhat.com>
10553 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10554 (set_ignore_count): Move misplaced comment back where it belongs.
10556 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10558 * command.h (NO_FUNCTION): Delete macro.
10559 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10560 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10561 * tracepoint.c (_initialize_tracepoint): Ditto.
10562 * cli/cli-decode.c (add_set_cmd): Ditto.
10563 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10565 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10567 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10568 Update ``this'' pointer when calling virtual functions.
10570 2002-02-01 Michael Snyder <msnyder@redhat.com>
10572 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10573 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10575 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10577 * regformats/reg-arm.dat: New file.
10578 * regformats/reg-i386.dat: New file.
10579 * regformats/reg-ia64.dat: New file.
10580 * regformats/reg-m68k.dat: New file.
10581 * regformats/reg-mips.dat: New file.
10582 * regformats/reg-ppc.dat: New file.
10583 * regformats/reg-sh.dat: New file.
10584 * regformats/regdef.h: New file.
10585 * regformats/regdat.sh: New file.
10587 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10589 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10590 (arm_frame_args_address, arm_frame_locals_address): New functions.
10591 (arm_frame_num_args): New function.
10592 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10593 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10594 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10596 2002-01-31 Michael Snyder <msnyder@redhat.com>
10598 * breakpoint.c (break_at_finish_command): Export.
10599 (break_at_finish_at_depth_command): Export.
10600 (tbreak_at_finish_command): Export.
10601 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10602 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10603 "txbreak" commands, which are HPPA specific.
10605 * printcmd.c (disassemble_command): Remove an ancient
10606 artifact of an old merge.
10608 * symfile.h (enum overlay_debugging_state):
10609 Define enum constant values for overlay mode.
10610 * symfile.c (overlay_debugging): Use enums instead of literals.
10611 (overlay_is_mapped, overlay_auto_command,
10612 overlay_manual_command): Ditto.
10614 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10615 breakpoint_here_p, breakpoint_inserted_here_p,
10616 breakpoint_thread_match, bpstat_stop_status,
10617 describe_other_breakpoints, check_duplicates, clear_command):
10618 Coding standard fixes.
10620 * target.c (target_xfer_memory): Add spaces, coding standard.
10621 (do_xfer_memory): Add missing line to trust-readonly
10622 code: check bfd SEC_READONLY flag for section.
10624 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10626 * PROBLEMS: Fix typo, 5.1->5.1.1.
10628 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10630 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10631 data symbols, since we search based on textlow and texthigh.
10632 (find_pc_sect_symtab): Likewise.
10634 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10636 * defs.h (vwarning): Declare.
10637 * utils.c (vwarning): New function.
10638 (warning): Call vwarning.
10639 (warning_begin): Delete function.
10641 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10642 the warning message.
10643 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10646 2002-01-30 Michael Snyder <msnyder@redhat.com>
10648 * NEWS: Mention "set trust-readonly-sections" command.
10649 Mention generate-core-file command.
10651 2002-01-15 Michael Snyder <msnyder@redhat.com>
10653 * target.c: New command, "set trust-readonly-sections on".
10654 (do_xfer_memory): Honor the suggestion to trust readonly sections
10655 by reading them from the object file instead of from the target.
10656 (initialize_targets): Register command "set trust-readonly-sections".
10658 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10660 * parse.c (target_map_name_to_register): Simplify, search regs and
10661 pseudo-regs using a single loop.
10663 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10665 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10667 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10669 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10670 * config/i386/i386v42mp.mh: Add i387-nat.o .
10671 * i386v4-nat.c: Include i387-nat.h.
10672 (supply_fpregset): Use i387_supply_fsave.
10673 (fill_fpregset): Use i387_fill_fsave.
10675 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10677 * arm-tdep.c (arm_call_dummy_words): Define.
10678 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10679 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10680 (CALL_DUMMY_WORDS): Define.
10681 (arm_call_dummy_words): Declare.
10682 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10683 (arm_linux_call_dummy_words): Declare.
10685 2002-01-30 Andreas Schwab <schwab@suse.de>
10687 * m68klinux-nat.c: Fix last change to use regcache_collect
10688 instead of referencing registers[] directly.
10690 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10692 * parse.c (target_map_name_to_register): Delete code wrapped in
10693 #ifdef REGISTER_NAME_ALIAS_HOOK.
10695 2002-01-28 Michael Snyder <msnyder@redhat.com>
10697 * regcache.c (legacy_read_register_gen): Need to be able to
10698 read pseudo-register as well as real register.
10699 (legacy_write_register_gen): Ditto.
10701 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10703 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10704 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10705 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10706 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10707 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10708 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10709 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10710 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10711 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10712 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10713 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10714 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10715 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10716 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10717 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10718 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10719 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10720 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10721 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10722 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10724 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10726 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10727 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10728 (initialize_current_architecture): Update target_byte_order using
10729 information from BFD.
10730 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10731 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10733 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10735 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10736 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10738 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10739 #ifdef INVALID_FLOAT.
10740 * infcmd.c (do_registers_info): Ditto.
10741 * values.c (unpack_double): Ditto. Add comment.
10743 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10744 already commented out.
10746 2002-01-26 Andreas Schwab <schwab@suse.de>
10748 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10749 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10750 registers and add support for PTRACE_GETREGS.
10752 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10754 GDB 5.1.1 released from 5.1 branch.
10755 * NEWS: Add 5.1.1 news.
10756 * README: Sync with 5.1 branch.
10758 2002-01-23 Fred Fish <fnf@redhat.com>
10760 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10761 stabstring on initial malloc. Reallocing will copy it for us,
10764 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10766 * Makefile.in (hpread_h): Delete.
10767 (HFILES_NO_SRCDIR): Remove hpread.h.
10768 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10769 (hpread.o): Update dependencies.
10770 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10772 * hp-psymtab-read.c: Remove file.
10773 * hp-symtab-read.c: Remove file.
10774 * hpread.h: Remove file.
10776 * hpread.c: Merge all contents of hp-psymtab-read.c,
10777 hp-symtab-read.c and hpread.h into this file, as it was prior to
10780 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10781 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10782 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10783 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10785 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10787 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10788 fill_gregset): Call gdbarch_tdep() just once, assign result to
10789 variable and use that, instead of calling the function several
10792 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10794 * configure.host: Accept sparcv9 as alias for sparc64.
10795 * configure.tgt: Likewise.
10797 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10799 * solib-aix5.c (build_so_list_from_mapfile)
10800 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10801 arguments is not reversed.
10802 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10803 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10805 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10807 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10808 modified version of obsolete sh_fetch_pseudo_register.
10809 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10810 (sh4_register_read): New function.
10811 (sh_pseudo_register_write): New function. Renamed and modified
10812 version of obsolete sh_store_pseudo_register.
10813 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10814 (sh4_register_write): New function.
10815 (sh_gdbarch_init): Remove setting of gdbarch function
10816 fetch_pseudo_register and store_pseudo_register. Remove setting of
10817 register_convert_to_raw, register_convert_to_virtual,
10818 register_convertible.
10819 (sh_sh4_register_convertible): Delete. No longer needed. All is
10820 taken care by architecture specific functions
10821 register_read/register_write.
10822 (sh_sh4_register_convert_to_virtual): Make static.
10823 (sh_sh4_register_convert_to_raw): Ditto.
10825 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10827 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10828 (floatformat_is_nan, floatformat_mantissa): Ditto.
10830 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10831 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10832 builtin_type_ieee_double_little,
10833 builtin_type_ieee_double_littlebyte_bigword,
10834 builtin_type_m68881_ext, builtin_type_i960_ext,
10835 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10836 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10837 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10838 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10840 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10842 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10843 parameter. Set frameless flag if it exists and depended of
10844 whether the scanned function is frameless or not.
10845 (xstormy16_skip_prologue): If function is frameless, return
10846 result of xstormy16_scan_prologue().
10847 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10850 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10852 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10853 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10854 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10855 sh_sh4_register_byte, sh_sh4_register_raw_size,
10856 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10857 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10858 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10859 sh_store_pseudo_register, sh_do_pseudo_register): Call
10860 gdbarch_tdep() just once, assign result to variable and use that,
10861 instead of calling the function several times.
10863 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10865 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10866 macros instead of LAST_FPU_CTRL_REGNUM.
10867 (store_register): Likewise.
10869 2002-01-21 Jim Blandy <jimb@redhat.com>
10871 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10872 is up-to-date before running the program, not just when a program
10875 2002-01-21 Fred Fish <fnf@redhat.com>
10877 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10878 when we have found all instructions we are looking for.
10880 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10882 * arm-tdep.c (arm_register_name): New function.
10883 (arm_registers_names): Make static.
10884 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10885 (arm_register_name): Declare.
10886 (REGISTER_NAME): Use it.
10888 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10889 Kevin Buettner <kevinb@redhat.com>
10891 Convert arm targets to new FRAME interface.
10892 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10893 (arm_frame_find_save_regs): Delete.
10894 (arm_frame_init_saved_regs): New.
10895 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10896 Allocate extra_info as required. Convert all uses of fsr.regs
10897 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10899 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10900 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10901 (check_prologue_cache, save_prologue_cache): Likewise.
10902 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10903 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10904 (FRAME_FIND_SAVED_REGS): Delete.
10905 (arm_frame_find_saved_regs): Delete prototype.
10906 (arm_frame_init_saved_regs): New prototype.
10907 (FRAME_INIT_SAVED_REGS): Define.
10909 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10911 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10913 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10915 From Jeff Law <law@redhat.com>:
10916 * infttrace.c: Include <sys/pstat.h>.
10917 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10918 exec file if the ttrace equivalent fails.
10920 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10922 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10923 (closeLogFile): Ditto.
10925 2002-01-20 Michael Chastain <mec@shout.net>
10927 * top.c (print_gdb_version): Bump copyright year to 2002.
10929 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10931 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10932 Zannoni and Eli Zaretskii.
10934 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10936 * buildsym.c: Update copyright years.
10937 * c-typeprint.c: Likewise.
10938 * dwarf2read.c: Likewise.
10939 * f-typeprint.c: Likewise.
10940 * gdbtypes.c: Likewise.
10941 * gdbtypes.h: Likewise.
10942 * hp-symtab-read.c: Likewise.
10943 * hpread.c: Likewise.
10944 * mdebugread.c: Likewise.
10945 * p-typeprint.c: Likewise.
10947 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10949 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10950 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10951 byte-order selectable.
10952 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10953 * arch-utils.c: Ditto.
10954 (set_endian): Ditto.
10955 (set_endian_from_file): Ditto.
10956 * gdbserver/low-sim.c (create_inferior): Ditto.
10957 * gdbarch.sh: Ditto.
10958 * gdbarch.h: Re-generate.
10959 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10960 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10961 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10962 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10963 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10964 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10965 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10966 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10968 * config/mips/tm-wince.h: Remove #undef of macro
10969 TARGET_BYTE_ORDER_SELECTABLE.
10970 * config/sh/tm-wince.h: Ditto.
10972 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10974 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10975 member function fields. Add accessor macro
10976 TYPE_FN_FIELD_ARTIFICIAL.
10977 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10978 * c-typeprint.c (c_type_print_base): Skip artificial member
10981 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10983 * f-typeprint.c: Delete unused function f_type_print_args.
10984 * p-typeprint.c: Delete unused function pascal_type_print_args.
10986 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10988 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10989 comment. Add ``artificial'' to ``union field_location''.
10991 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10993 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10994 * mdebugread.c (parse_symbol): Likewise.
10995 * stabsread.c (define_symbol): Likewise.
10996 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10997 initializing TYPE_FIELD_BITPOS to n (obsolete).
10998 (hpread_doc_function_type): Likewise.
10999 * hpread.c (hpread_function_type): Likewise.
11001 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11003 * configure.in (host_makefile_frag): Only require a host makefile
11004 fragment when a native build.
11005 * configure: Re-generate.
11007 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11009 * doublest.h (floatformat_from_type): Declare.
11010 * doublest.c (floatformat_from_type): New function.
11011 (convert_typed_floating): Use.
11013 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11014 call to function floatformat_from_type.
11016 * gdbarch.sh (IEEE_FLOAT): Delete.
11017 * gdbarch.h, gdbarch.c: Re-generate.
11018 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11019 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11020 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11021 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11022 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11023 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11024 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11025 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11026 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11027 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11028 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11029 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11031 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11032 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11033 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11034 * sh-tdep.c (sh_gdbarch_init): Ditto.
11035 * mips-tdep.c (mips_gdbarch_init): Ditto.
11036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11037 * cris-tdep.c (cris_gdbarch_init): Ditto.
11039 2002-01-20 Jiri Smid <smid@suse.cz>
11041 * configure.host, configure.tgt: Support x86-64.
11042 * NEWS: Note new target x86-64.
11044 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11045 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11046 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11047 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11048 x86-64-linux-nat.o): Fix dependencies.
11050 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11052 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11053 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11054 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11055 * config/sparc/xm-sun4os4.h: Delete file.
11056 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11058 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11060 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11061 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11062 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11063 * config/i386/i386lynx.mh (XM_FILE): Delete.
11064 * config/rs6000/xm-rs6000ly.h: Delete file.
11065 * config/sparc/xm-sparclynx.h: Delete file.
11066 * config/m68k/xm-m68klynx.h: Delete file.
11067 * config/i386/xm-i386lynx.h: Delete file.
11068 * config/xm-lynx.h: Delete file.
11069 * config/djgpp/fnchange.lst: Update.
11071 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11073 * alpha-tdep.c (alpha_register_byte): New function.
11074 (alpha_register_raw_size): Ditto.
11075 (alpha_register_virtual_size): Ditto.
11076 (alpha_skip_prologue_internal): Renamed from
11077 alpha_skip_prologue.
11078 (alpha_skip_prologue): New version that calls
11079 alpha_skip_prologue_internal.
11080 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11081 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11082 second argument from alpha_skip_prologue.
11083 (REGISTER_BYTE): Use alpha_register_byte.
11084 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11085 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11086 (FRAMELESS_FUNCTION_INVOCATION): Use
11087 generic_frameless_function_invocation_not.
11088 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11089 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11091 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11093 * config/mips/xm-news-mips.h: Delete file.
11094 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11096 * config/m88k/xm-m88k.h: Delete file.
11097 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11098 * config/m88k/xm-delta88v4.h: Ditto.
11099 * config/m88k/xm-delta88.h: Ditto.
11101 * config/alpha/xm-fbsd.h: Delete file.
11102 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11104 * config/sparc/xm-sparc.h: Delete file.
11105 * Makefile.in (xm-sun4os4.h): Delete dependency.
11106 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11107 * config/sparc/xm-sun4os4.h: Ditto.
11108 * config/sparc/xm-linux.h: Ditto.
11110 * config/i386/xm-windows.h: Delete file.
11112 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11114 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11115 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11117 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11119 * alpha-tdep.c (alpha_call_dummy_words): New.
11120 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11121 (CALL_DUMMY_P): Define.
11122 (CALL_DUMMY_WORDS): Define.
11123 (SIZEOF_CALL_DUMMY_WORDS): Define.
11125 2002-01-19 Per Bothner <per@bothner.com>
11127 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11128 isn't NULL, which can happen with some gcj-3.x-produced code.
11130 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11132 * alpha-tdep.c (alpha_register_virtual_type): New function.
11133 (alpha_init_frame_pc_first): Ditto.
11134 (alpha_fix_call_dummy): Ditto.
11135 (alpha_store_struct_return): Ditto.
11136 (alpha_extract_struct_value_address): Ditto.
11137 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11138 alpha_register_virtual_type.
11139 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11140 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11141 alpha_extract_struct_value_address.
11142 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11143 (INIT_FRAME_PC): Use init_frame_pc_noop.
11144 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11146 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11148 * i386gnu-nat.c: Include "i386-tdep.h".
11149 (fetch_fpregs): Simplify code dealing with uninitialized floating
11150 point states such that it doesn't require FP7_REGNUM.
11152 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11154 * alpha-tdep.c (frame_extra_info): New.
11155 (alpha_find_saved_regs): Make static. Use
11157 (alpha_frame_init_saved_regs): New function.
11158 (alpha_frame_saved_pc): Use frame->extra_info.
11159 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11160 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11161 (init_extra_frame_info): Rename to...
11162 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11163 (alpha_print_extra_frame_info): New function.
11164 (alpha_frame_locals_address): Ditto.
11165 (alpha_frame_args_address): Ditto.
11166 (alpha_pop_frame): Use frame->extra_info.
11167 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11168 alpha_frame_args_address.
11169 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11170 (alpha_find_saved_regs): Remove prototype.
11171 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11172 (EXTRA_FRAME_INFO): Remove.
11173 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11174 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11176 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11178 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11179 (alpha_cannot_fetch_register): Ditto.
11180 (alpha_cannot_store_register): Ditto.
11181 (alpha_register_convertible): Ditto.
11182 (alpha_use_struct_convention): Ditto.
11183 * config/alpha/tm-alpha.h: Update copyright years.
11184 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11185 (INNER_THAN): Use core_addr_lessthan.
11186 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11187 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11188 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11189 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11190 (FRAME_CHAIN): Remove unnecessary cast.
11192 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11194 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11197 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11199 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11200 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11201 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11202 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11203 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11204 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11205 * x86-64-linux-nat.c: Ditto.
11207 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11209 * alpha-tdep.c (alpha_register_name): New function.
11210 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11211 (REGISTER_NAME): Define.
11213 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11215 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11217 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11219 * alpha-tdep.c: Update copyright years.
11220 (alpha_next_pc): New function.
11221 (alpha_software_single_step): Ditto.
11222 * config/alpha/tm-alpha.h: Add prototype for
11223 alpha_software_single_step.
11225 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11227 * alphabsd-nat.c: Update copyright years.
11228 (fill_gregset): Use regcache_collect.
11229 (fill_fpregset): Likewise.
11230 (fetch_inferior_registers): Only fetch integer registers
11231 if requested to do so.
11232 (store_inferior_registers): Only store integer registers
11233 if requested to do so.
11235 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11237 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11238 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11239 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11240 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11241 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11242 * config/arm/linux.mh (XDEPFILES): Delete.
11243 * config/arm/nbsd.mh (XDEPFILES): Delete.
11244 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11245 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11246 * config/i386/i386m3.mh (XDEPFILES): Delete.
11247 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11248 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11249 * config/i386/fbsd.mh (XDEPFILES): Delete.
11250 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11251 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11252 * config/i386/i386v4.mh (XDEPFILES): Delete.
11253 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11254 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11255 * config/i386/i386aix.mh (XDEPFILES): Delete.
11256 * config/i386/go32.mh (XDEPFILES): Delete.
11257 * config/i386/cygwin.mh (XDEPFILES): Delete.
11258 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11259 * config/i386/i386mach.mh (XDEPFILES): Delete.
11260 * config/i386/i386v32.mh (XDEPFILES): Delete.
11261 * config/i386/linux.mh (XDEPFILES): Delete.
11262 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11263 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11264 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11265 * config/i386/i386sco.mh (XDEPFILES): Delete.
11266 * config/i386/i386v.mh (XDEPFILES): Delete.
11267 * config/i386/nbsd.mh (XDEPFILES): Delete.
11268 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11269 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11270 * config/i386/symmetry.mh (XDEPFILES): Delete.
11271 * config/i386/obsd.mh (XDEPFILES): Delete.
11272 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11273 * config/ia64/linux.mh (XDEPFILES): Delete.
11274 * config/ia64/aix.mh (XDEPFILES): Delete.
11275 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11276 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11277 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11278 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11279 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11280 * config/m68k/linux.mh (XDEPFILES): Delete.
11281 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11282 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11283 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11284 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11285 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11286 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11287 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11288 * config/m88k/delta88.mh (XDEPFILES): Delete.
11289 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11290 * config/m88k/m88k.mh (XDEPFILES): Delete.
11291 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11292 * config/mips/linux.mh (XDEPFILES): Delete.
11293 * config/mips/irix6.mh (XDEPFILES): Delete.
11294 * config/mips/irix5.mh (XDEPFILES): Delete.
11295 * config/mips/irix4.mh (XDEPFILES): Delete.
11296 * config/mips/irix3.mh (XDEPFILES): Delete.
11297 * config/mips/decstation.mh (XDEPFILES): Delete.
11298 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11299 (NATDEPFILES): Move core-aout.o to here.
11300 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11301 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11302 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11303 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11304 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11305 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11306 * config/pa/hpux11.mh (XDEPFILES): Delete.
11307 * config/powerpc/aix.mh (XDEPFILES): Delete.
11308 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11309 * config/powerpc/linux.mh (XDEPFILES): Delete.
11310 * config/romp/rtbsd.mh: Rename XDEPFILES.
11311 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11312 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11313 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11314 * config/s390/s390.mh (XDEPFILES): Delete.
11315 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11316 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11317 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11318 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11319 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11320 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11321 * config/sparc/linux.mh (XDEPFILES): Delete.
11322 * config/vax/vaxult.mh (XDEPFILES): Delete.
11323 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11324 * Makefile.in (DEPFILES): Remove XDEPFILES.
11326 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11328 * utils.c (internal_verror): Fix comments, default is yes not no.
11329 Update queries to match. Default to quit and dump core.
11331 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11333 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11335 * defs.h, event-top.c, gdbcmd.h: Ditto.
11336 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11337 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11338 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11339 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11340 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11341 * mi/mi-main.c:Ditto.
11343 * stack.c, symfile.c: Update copyright.
11345 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11347 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11348 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11349 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11350 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11352 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11354 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11355 * gdbserver/low-lynx.c (myattach): Likewise.
11356 * gdbserver/low-nbsd.c (myattach): Likewise.
11357 * gdbserver/low-sim.c (myattach): Likewise.
11358 * gdbserver/low-sparc.c (myattach): Likewise.
11359 * gdbserver/low-sun3.c (myattach): Likewise.
11361 * gdbserver/low-linux.c (myattach): New function.
11363 * gdbserver/server.c (attach_inferior): New function.
11364 (main): Handle "--attach".
11366 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11368 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11371 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11373 * c-typeprint.c (is_type_conversion_operator): Add additional
11374 check for non-conversion operators.
11376 2002-01-15 Michael Snyder <msnyder@redhat.com>
11378 * linux-proc.c: Add "info proc" command, a la procfs.c.
11379 (read_mapping): New function, abstract and re-use code.
11380 (linux_find_memory_regions): Use new func read_mapping.
11381 (linux_info_proc_cmd): New function, implement "info proc".
11382 (_initialize_linux_proc): Add new command "info proc".
11384 2002-01-15 Michael Snyder <msnyder@redhat.com>
11386 * symfile.c (generic_load): Use bfd_map_over_sections method
11387 instead of manipulating bfd structure members directly.
11388 (add_section_size_callback): New function, bfd sections callback
11389 used by generic_load.
11390 (load_sections_callback): New function, bfd sections callback
11391 used by generic_load.
11393 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11395 [Based on work by Jim Blandy]
11396 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11397 (builtin_type_vec128): Export.
11398 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11400 (builtin_type_vec128): New builtin type for 128 bit vector
11402 (build_gdbtypes): Initialize builtin_type_v16qi and
11403 builtin_type_v8hi. Create the vec128 register builtin type
11405 (build_builtin_type_vec128): New function.
11406 (_initialize_gdbtypes): Register builtin_type_v16qi and
11407 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11408 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11409 AltiVec register to new builtin type.
11411 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11413 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11416 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11418 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11419 CLEAN_UP_REGISTER_VALUE.
11420 * regcache.c (supply_register): Update only call.
11422 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11424 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11425 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11426 a29k-*-vxworks* targets as obsolete.
11428 2002-01-14 Michael Snyder <msnyder@redhat.com>
11430 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11431 until we can resolve portability issues.
11432 * gregset.h: Remove references to fpxregs.
11433 * gcore.c (gcore_command): Initialize note_sec to NULL.
11435 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11437 * signals.c (target_signal_to_name): Rewrite. Only use
11438 signals[].name when in bounds and non-NULL.
11440 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11442 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11443 * signals.c (target_signal_to_name): Verify that SIG is within the
11444 bounds of the signals array.
11446 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11448 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11450 2002-01-13 Keith Seitz <keiths@redhat.com>
11452 * stack.c (print_frame_info_base): Print the frame's pc
11453 only if when print_frame_info_listing_hook is not defined.
11455 2002-01-13 Keith Seitz <keiths@redhat.com>
11457 * varobj.c (varobj_set_value): Make sure that there were no
11458 errors evaluating the object before attempting to set its
11460 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11461 so this offset adjustment is no longer necessary.
11462 (create_child): Don't set the error flag if the child is
11463 a CPLUS_FAKE_CHILD.
11464 (value_of_child): If value_fetch_lazy fails, return NULL
11465 so that callers will be notified that an error occurred.
11466 (c_value_of_variable): Delay check of variable's validity
11467 until later. We actually want all structs and unions to have
11469 Do not return "???" for variables which could not be evaluated.
11470 This error condition must be returned to the caller so that it
11471 can get the error condition from gdb.
11472 (cplus_name_of_child): Adjust index for vptr before figuring
11473 out the name of the child.
11474 (cplus_value_of_child): If a child's (real) parent is not valid,
11475 don't even bother trying to give a value for it. Just return
11476 an error. Change all instances in this function.
11477 (cplus_type_of_child): If our parent is one of the "fake"
11478 parents, we need to get at the type of the real parent, and
11479 derive the child's true type using this information.
11481 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11483 From 2002-01-09 John Marshall <johnm@falch.net>:
11484 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11485 sources.redhat.com, and tweak some related URLs which had
11486 suffered from linkrot.
11488 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11491 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11492 structures passed in registers.
11494 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11496 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11497 white space which prevented compilation. Reported by DSK
11498 <dsk@student.unsw.edu.au>.
11500 2002-01-11 Michael Snyder <msnyder@redhat.com>
11502 * symfile.c (build_section_addr_info_from_section_tab):
11503 Use bfd access method instead of manipulating bfd directly.
11504 (syms_from_objfile): Ditto.
11505 (simple_overlay_update_1): Ditto.
11506 (simple_overlay_update): Ditto.
11507 (generic_load): Ditto.
11508 (overlay_unmapped_address): FIXME comment, bfd access methods.
11509 (sections_overlap): FIXME comment, bfd access methods.
11510 (pc_in_mapped_range): FIXME comment, bfd access methods.
11511 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11512 (section_is_mapped): FIXME comment, bfd access methods.
11513 (section_is_overlay): FIXME comment, bfd access methods.
11515 * symfile.c (generic_load): Whitespace and long line cleanups.
11516 Remove duplicate variable, change several local variables to
11517 more appropriate data types.
11518 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11520 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11522 From Peter Schauer:
11523 * language.c (longest_local_hex_string_custom): Use phex_nz to
11524 convert NUM to a hex string.
11526 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11528 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11530 Update Copyright year.
11532 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11534 * language.c (longest_raw_hex_string): Delete unused function.
11536 2002-01-11 Petr Sorfa <petrs@caldera.com>
11538 * MAINTAINERS (write-after-approval): Add myself.
11539 * dwarf2read.c (read_tag_string_type): Handling of
11541 (read_tag_string_type): FORTRAN fix to prevent propagation of
11543 (set_cu_language): Handling of DW_LANG_Fortran95
11545 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11547 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11548 GETPID(inferior_ptid).
11549 (store_inferior_registers): Likewise.
11551 2002-01-10 Jason Merrill <jason@redhat.com>
11553 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11556 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11558 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11559 and bfd/elf32-sh-nbsd.c.
11561 2002-01-10 Michael Snyder <msnyder@redhat.com>
11563 * NEWS: Mention --pid and corefile/proc-id behavior change.
11565 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11566 * gcore.c: Include cli/cli-decode.h instead of command.h.
11568 * main.c (captured_main): Add new command line option "--pid".
11569 If the second command line argument (following the symbol-file)
11570 begins with a digit, try to attach to it before trying to open
11572 (print_gdb_help): Document the "--pid" argument.
11574 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11576 * completer.c (command_completer): New function.
11578 * completer.h <command_completer>: Add prototype.
11580 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11581 completer for the "help" command.
11583 2002-01-09 Jason Merrill <jason@redhat.com>
11585 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11587 2002-01-09 Michael Snyder <msnyder@redhat.com>
11589 * i386-linux-nat.c (fill_fpxregset): Make global.
11590 (store_fpxregset): Ditto.
11592 * gregset.h (gdb_fpxregset_t): Define.
11593 (supply_fpxregset): Prototype.
11594 (fill_fpxregset): Prototype.
11596 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11598 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11600 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11601 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11602 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11604 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11606 * MAINTAINERS: Update target maintainer rules so that any
11607 Maintainer can approve a tested patch for a maintenance-only
11610 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11612 * MAINTAINERS (write-after-approval): Add myself.
11614 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11617 2002-01-08 Michael Snyder <msnyder@redhat.com>
11619 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11620 real name of the executable, rather than the /proc name.
11622 2002-01-03 Michael Snyder <msnyder@redhat.com>
11624 Implement a "generate-core-file" command in gdb, save target state.
11625 * gcore.c: New file. Implement new command 'generate-core-file'.
11626 Save a corefile image of the current state of the inferior.
11627 * linux-proc.c: Add linux-specific code for saving corefiles.
11628 * target.h (struct target_ops): Add new target vectors for saving
11629 corefiles; to_find_memory_regions and to_make_corefile_notes.
11630 (target_find_memory_regions): New macro.
11631 (target_make_corefile_notes): New macro.
11632 * target.c (update_current_target): Inherit new target methods.
11633 (dummy_find_memory_regions): New place-holder method.
11634 (dummy_make_corefile_notes): New place-holder method.
11635 (init_dummy_target): Initialize new dummy target vectors.
11636 * exec.c (exec_set_find_memory_regions): New function.
11637 Allow the exec_ops vector for memory regions to be taken over.
11638 (exec_make_note_section): New function, target vector method.
11639 * defs.h (exec_set_find_memory_regions): Export prototype.
11640 * procfs.c (proc_find_memory_regions): New function, corefile method.
11641 (procfs_make_note_section): New function, corefile method.
11642 (init_procfs_ops): Set new target vector pointers.
11643 (find_memory_regions_callback): New function.
11644 (procfs_do_thread_registers): New function.
11645 (procfs_corefile_thread_callback): New function.
11646 * sol-thread.c (sol_find_memory_regions): New function.
11647 (sol_make_note_section): New function.
11648 (init_sol_thread_ops): Initialize new target vectors.
11649 * inftarg.c (inftarg_set_find_memory_regions): New function.
11650 Allow to_find_memory_regions vector to be taken over.
11651 (inftarg_set_make_corefile_notes): New function.
11652 Allow to_make_corefile_notes vector to be taken over.
11653 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11654 interface layer if not target_has_execution (may be a corefile).
11655 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11656 * config/sparc/sun4sol2.mh: Ditto.
11657 * config/alpha/alpha-linux.mh: Ditto.
11658 * config/arm/linux.mh: Ditto.
11659 * config/i386/x86-64linux.mh: Ditto.
11660 * config/ia64/linux.mh: Ditto.
11661 * config/m68k/linux.mh: Ditto.
11662 * config/mips/linux.mh: Ditto.
11663 * config/powerpc/linux.mh: Ditto.
11664 * config/sparc/linux.mh: Ditto.
11666 2002-01-07 Michael Snyder <msnyder@redhat.com>
11668 * arm-linux-nat.c: Remove references to regcache.c internal data
11669 (registers[] and register_valid[]).
11671 2002-01-07 Michael Snyder <msnyder@redhat.com>
11673 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11674 so that attaching to a pid will automatically read the process's
11675 symbol file and shlibs.
11676 * Makefile.in: Add rule for linux-proc.o.
11677 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11678 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11679 * config/arm/linux.mh: Ditto.
11680 * config/i386/linux.mh: Ditto.
11681 * config/i386/x86-64linux.mh: Ditto.
11682 * config/ia64/linux.mh: Ditto.
11683 * config/m68k/linux.mh: Ditto.
11684 * config/mips/linux.mh: Ditto.
11685 * config/powerpc/linux.mh: Ditto.
11686 * config/sparc/linux.mh: Ditto.
11688 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11690 * win32-nat.c: Add i386-tdep.h dependency.
11692 2002-01-07 Michael Snyder <msnyder@redhat.com>
11694 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11695 instead of bfd_get_arch_size. Don't bail out just because
11696 there's no exec_bfd.
11698 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11699 * p-valprint.c (pascal_object_print_value): Ditto.
11700 * somread.c (som_symtab_read): Ditto.
11701 * symfile.c (simple_free_overlay_region_table): Ditto.
11702 * valops.c (value_assign): Ditto.
11704 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11705 use tilde_expand and strerror for opening save-tracepoints file.
11707 * thread-db.c (thread_db_new_objfile): Indendation fix.
11709 * infptrace.c (GDB_MAX_ALLOCA): New define.
11710 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11711 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11712 can be overridden with whatever value is appropriate to the host).
11713 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11714 alloca to allocate potentially large buffer.
11715 * rs6000-nat.c (child_xfer_memory): Ditto.
11716 * symm-nat.c (child_xfer_memory): Ditto.
11717 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11719 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11721 From Nick Clifton <nickc@redhat.com>
11722 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11724 2002-01-07 Michael Snyder <msnyder@redhat.com>
11726 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11727 Don't use exec_bfd if it's NULL.
11729 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11731 * valops.c (value_arg_coerce): Fix formatting.
11733 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11735 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11736 * gnu-nat.c: Ditto.
11738 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11740 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11741 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11742 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11743 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11744 z8k-coff have not been multi-arched. Update z8k-coff build
11747 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11749 * MAINTAINERS: Mark a29k target as obsolete.
11750 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11751 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11753 * NEWS: Note that a29k targets are obsolete.
11754 * a29k-tdep.c: Mark as obsolete.
11755 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11756 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11757 a29k-*-vxworks* targets as obsolete.
11758 * remote-adapt.c: Obsolete.
11759 * remote-eb.c: Obsolete.
11760 * remote-mm.c: Obsolete.
11761 * remote-udi.c: Obsolete.
11762 * config/a29k/a29k-udi.mt: Obsolete.
11763 * config/a29k/a29k.mt: Obsolete.
11764 * config/a29k/tm-a29k.h: Obsolete.
11765 * config/a29k/tm-vx29k.h: Obsolete.
11766 * config/a29k/vx29k.mt: Obsolete.
11768 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11770 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11771 with BFD_ENDIAN_BIG.
11773 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11775 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11776 * configure, config.in: Re-generate.
11777 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11778 * defs.h: Do not include <endian.h>.
11780 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11782 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11783 * config.in: Regenerate.
11784 * configure.in: Update copyright years.
11785 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11786 * configure: Regenerate.
11787 * i386bsd-nat.c: Update copyright years.
11788 (fill_gregset): Use regcache_collect.
11789 (fetch_inferior_registers): Only fetch integer registers
11790 if requested to do so. Add support for XMM registers
11791 using PT_GETXMMREGS.
11792 (store_inferior_registers): Only store integer registers
11793 if requested to do so. Add support for XMM registers
11794 using PT_SETXMMREGS.
11795 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11796 (store_inferior_registers): Remove.
11797 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11798 (fetch_elfcore_registers): New function.
11799 (i386nbsd_elfcore_fns): New.
11800 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11801 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11803 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11804 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11805 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11806 * config/i386/tm-nbsd.h: Update copyright years.
11807 (HAVE_SSE_REGS): Define.
11808 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11809 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11810 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11811 (SIGCONTEXT_PC_OFFSET): Remove.
11812 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11814 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11816 * configure.tgt: Remove powerpc-*-macos* target.
11817 * config/m68k/xm-mpw.h: Delete file.
11818 * config/xm-mpw.h: Delete file.
11819 * ser-mac.c: Delete file.
11820 * mpw-make.sed: Delete file.
11821 * mpw-config.in: Delete file.
11822 * mac-xdep.c: Delete file.
11823 * mac-gdb.r: Delete file.
11824 * mac-defs.h: Delete file.
11825 * mac-nat.c: Delete file.
11826 * config/powerpc/macos.mh: Delete file.
11827 * config/powerpc/macos.mt: Delete file.
11828 * config/powerpc/nm-macos.h: Delete file.
11829 * config/powerpc/tm-macos.h: Delete file.
11830 * source.c (openp, open_source_file): Remove obsolete code.
11831 * top.c (gdb_readline): Ditto.
11832 * utils.c (query): Ditto.
11833 * event-top.c (display_gdb_prompt): Ditto.
11834 * Makefile.in (ser-mac.o): Delete obsolete target.
11837 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11839 * defs.h (BIG_ENDIAN): Delete macro definition.
11840 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11841 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11842 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11843 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11844 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11845 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11846 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11847 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11848 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11849 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11850 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11851 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11852 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11853 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11854 * gdbarch.c: Re-generate.
11856 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11858 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11861 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11863 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11865 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11867 * value.h (value_ptr): Delete typedef.
11869 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11871 * i386nbsd-nat.c: Update copyright years.
11872 Include i386-tdep.h.
11874 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11876 * stabsread.c: Update copyright years.
11878 From Debashis Mahata <debashis.mahata@wipro.com>:
11879 (read_struct_fields): Deal with Sun C compiler erroneous stab
11880 output for structs and unions.
11883 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11885 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11888 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11890 * cp-abi.c: Fix whitespace.
11891 (baseclass_offset): New wrapper function.
11892 * cp-abi.h (baseclass_offset): Add prototype.
11893 (struct cp_abi_ops): Add baseclass_offset pointer.
11895 * valops.c (vb_match): Move to...
11896 * gnu-v2-abi.c (vb_match): here.
11897 * valops.c (baseclass_offset): Move to...
11898 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11900 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11902 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11903 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11904 * hpacc-abi.c (init_hpacc_ops): Likewise.
11906 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11908 * valops.c (find_overload_match): Accept obj as a
11909 reference parameter. Update it before returning.
11910 * value.h (find_overload_match): Update prototype.
11911 * eval.c (evaluate_subexp_standard): Pass object to
11912 find_overload_match by reference.
11914 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11916 * valarith.c: Replace value_ptr with struct value pointer. Remove
11917 register attribute from value declarations.
11920 * scm-lang.c (scm_lookup_name): Ditto.
11922 2002-01-03 Michael Snyder <msnyder@redhat.com>
11924 Abstract the functionality of iterating over mapped memory
11925 regions into a general purpose iterator function.
11926 * procfs.c (iterate_over_mappings): New function, general purpose
11927 iterator for memory sections.
11928 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11929 (solib_mappings_callback): New function, callback for above.
11930 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11931 (info_mappings_callback): New function, callback for above.
11933 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11935 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11937 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11938 * i386-tdep.c: Include "elf-bfd.h".
11939 (process_note_abi_tag_sections): New function.
11940 (i386_gdbarch_init): Add code to recognize various OS/ABI
11943 * maint.c (_initialize_maint_cmds): Add missing \ in
11946 For older changes see ChangeLog-2001
11952 version-control: never