1 2002-10-16 Klee Dienes <kdienes@apple.com>
3 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
4 to get the last character of a char[] buffer, not
5 name[sizeof(vptr_name)-1].
7 2002-10-14 Adam Fedor <fedor@gnu.org>
9 * symtab.h: New objc_specific struct.
10 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
11 (SYMBOL_DEMANGLED_NAME): Likewise.
13 2002-10-14 Adam Fedor <fedor@gnu.org>
15 * symfile.c (init_filename_language_table): Add ObjC file extension.
17 2002-10-14 Adam Fedor <fedor@gnu.org>
19 * utils.c (puts_filtered_tabular): New function.
20 (fprintf_symbol_filtered): Get ObjC demangled name.
21 * defs.h (puts_filtered_tabular): Declared.
23 2002-10-14 Kevin Buettner <kevinb@redhat.com>
25 * c-lang.h (c_type_print_varspec_prefix): Delete.
26 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
27 ``need_post_space'' parameter. Adjust all callers.
29 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
31 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
32 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
33 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
34 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
36 2002-10-13 Adam Fedor <fedor@gnu.org>
38 * source.c (print_source_lines): Update comments.
40 2002-10-13 Adam Fedor <fedor@gnu.org>
42 * valops.c (value_of_local): New function.
43 (value_of_this): Use it.
44 * value.h (value_of_local): Declared.
46 2002-10-13 Adam Fedor <fedor@gnu.org>
48 * parse.c: (length_of_subexp, prefixify_subexp): Handle
49 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
51 2002-10-12 Adam Fedor <fedor@gnu.org>
53 * language.c (binop_result_type): Add language_objc to case.
54 (integral_type): Likewise.
55 (character_type): Likewise.
56 (string_type): Likewise.
57 (boolean_type): Likewise.
58 (structured_type): Likewise.
59 (binop_type_check): Likewise.
61 2002-10-11 Adam Fedor <fedor@gnu.org>
63 * printcmd.c (address_info): Print 'self' for ObjC.
65 2002-10-11 Adam Fedor <fedor@gnu.org>
67 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
70 2002-10-11 Adam Fedor <fedor@gnu.org>
72 * language.h (CAST_IS_CONVERSION): Add language_objc.
74 2002-10-11 Adam Fedor <fedor@gnu.org>
76 * defs.h (enum language): Add language_objc.
78 2002-10-11 Klee Dienes <kdienes@apple.com>
80 * findvar.c (read_memory_typed_address): New function.
81 * gdbcore.h (read_memory_typed_address): Add prototype.
82 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
83 to read a value destined for a CORE_ADDR, not read_memory_integer.
84 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
85 (f77_get_dynamic_lowerbound): Ditto.
87 2002-10-11 Martin M. Hunt <hunt@redhat.com>
89 * utils.c (string_to_core_addr): After turning string into
90 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
91 which will do necessary sign-extension, etc.
93 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
95 * c-exp.y (THIS): Delete token and grammar rule.
96 (yylex): Don't return THIS.
97 * cp-valprint.c (vtbl_ptr_name_old): Delete.
98 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
99 * demangle.c (cplus_markers): Update comment. Put '$'
100 first. Remove CPLUS_MARKER.
101 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
102 * jv-exp.y (THIS): Delete token and grammar rule.
103 (yylex): Don't return THIS.
104 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
105 * objc-exp.y (THIS): Delete token and grammar rule.
106 (yylex): Don't return THIS.
107 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
108 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
109 (read_member_functions): Likewise for opname.
110 (read_tilde_fields): Use is_cplus_marker.
112 * defs.h (CPLUS_MARKER): Don't define.
113 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
114 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
115 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
116 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
117 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
119 * config/i386/tm-i386v4.h: Delete file.
120 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
121 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
122 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
123 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
124 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
125 * config/i386/i386sco5.mt (TM_FILE): Likewise.
126 * config/i386/i386v4.mt (TM_FILE): Likewise.
127 * config/i386/ncr3000.mt (TM_FILE): Likewise.
129 2002-10-10 Marko Mlinar <markom@opencores.org>
131 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
132 accidentially not commited 2002-10-09
133 * gdbarch.h, gdbarch.c: Re-generate.
135 2002-10-09 Marko Mlinar <markom@opencores.org>
137 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
138 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
139 * gdbarch.h, gdbarch.c: Re-generate.
141 2002-10-08 Petr Sorfa <petrs@caldera.com>
143 Revised and re-submitted by John Wolfe <jlw@caldera.com>
145 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
146 so we can work on more than one compilation unit at a time. This
147 helps prepare GDB to handle inter-CU die references.
148 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
149 the code to be defined before struct comp_unit_head.
150 (comp_unit_head): Added new members - offset, cu_head,
151 begin_die, next and dwarf2_abbrevs.
152 (dwarf2_abbrevs): Removed single static var; now member of
153 struct comp_unit_head.
154 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
156 (psymtab_to_symtab_1): Changed to work with the new
157 struct comp_unit_head.
158 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
159 constructs the dwarf2_abbrevs[] inside the cu_header.
160 (dwarf2_empty_abbrev_table): Now expects a ptr to a
161 dwarf2_abbrev table to clean up.
162 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
163 handling of dwarf2_abbrevs inside the cu_header.
164 (read_partial_die): Now supports the call to the new
165 dwarf2_lookup_abbrev.
166 (read_full_die): Now supports the call to the new
167 dwarf2_lookup_abbrev.
169 2002-10-06 Christopher Faylor <cgf@redhat.com>
171 * Makefile.in (install-gdbtk): Add missing continuation backslash to
172 insure that shell variables, such as "transformed_name" are propagated
173 to later shell statements in rule.
175 2002-10-06 Mark Kettenis <kettenis@gnu.org>
177 * config/i386/nm-i386sco.h: Add protection against
178 multiple-inclusion. Include "i386/nm-i386v.h".
179 (REGISTER_U_ADDR): Remove define.
180 (i386_register_u_addr): Remove prototype.
182 2002-10-04 Michael Snyder <msnyder@redhat.com>
184 * m32r-stub.c (handle_exception): Make sure exception is "trap"
185 before treating it as a single-step event.
187 2002-10-03 Adam Fedor <fedor@gnu.org>
189 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
190 (objc_demangle): Remove assignment in if statements, Replace
192 (add_msglist): Likewise.
193 (end_msglist): Likewise.
194 (complare_selectors): Likewise.
195 (selectors_info): Likewise.
196 (compare_classes): Likewise.
197 (classes_info): Likewise.
198 (print_object_command): Likewise.
199 (find_objc_msgcall_submethod): Replace PTR with void *.
200 * objc-lang.h: Remove check for __STDC__.
202 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
204 * ui-out.h (ui_out_field_fmt_int): New prototype.
205 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
206 of field width and alignment.
207 * stack.c (print_frame_info_base): When printing frame level, use
208 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
211 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
213 * MAINTAINERS: Add self to Write After Approval list.
215 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
217 * infcmd.c (interrupt_target_command_wrapper): Delete.
218 (interrupt_target_command): Make non static.
219 (nofp_registers_info): Make static.
220 * stack.c (return_command_wrapper): Delete.
221 (return_command): Make non static.
223 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
225 * event-top.c (gdb_setup_readline): New function. Code moved from
226 _initialize_event_loop().
227 (_initialize_event_loop): Call gdb_setup_readline().
229 2002-10-02 Andrew Cagney <ac131313@redhat.com>
231 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
232 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
233 * gdbarch.h, gdbarch.c: Re-generate.
235 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
238 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
240 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
241 of fill_in_vptr_fieldno.
243 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
245 * inferior.h (registers_info, stepi_command, nexti_command,
246 continue_command, interrupt_target_command): Export from infcmd.c.
247 * frame.h (args_info, selected_frame_level_changed_hook,
248 return_command): Export from stack.c.
249 * v850ice.c (stepi_command, nexti_command, continue_command): use
250 prototypes from inferior.h.
251 * tracepoint.c (registers_info, args_info, locals_info): Use
252 prototypes from frame.h and inferior.h.
253 * Makefile.in (mi-main.o): Add dependency on frame.h.
255 2002-10-02 Andrew Cagney <ac131313@redhat.com>
257 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
258 value in register 3 adjusted by ppc_gp0_regnum.
260 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
262 2002-10-02 Marko Mlinar <markom@opencores.org>
264 * MAINTAINERS: Add myself to the Write After Approval list.
266 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
268 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
269 of the section for the N64 ABI, fixed.
271 * config/mips/tm-irix6.h: Include solib.h.
273 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
275 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
278 2002-10-01 Andrew Cagney <ac131313@redhat.com>
280 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
281 and that "mi0" syntax has been removed.
283 2002-09-30 David Carlton <carlton@math.stanford.edu>
285 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
286 * ppc-sysv-tdep.c: #include "gdb_string.h".
287 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
290 2002-10-01 Andrew Cagney <ac131313@redhat.com>
292 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
293 "vrsave"'s register number.
295 2002-09-30 Andrew Cagney <ac131313@redhat.com>
297 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
298 use frame_unwind_signed_register to obtain the PC.
299 (mips_frame_chain): Handle a generic dummy frame.
300 (mips_init_extra_frame_info): When a generic dummy frame, don't
301 re-compute the frame base.
302 (mips_pop_frame): Handle generic dummy frames.
303 (mips_gdbarch_init): When generic dummy frames, set
304 use_generic_dummy_frames, push_dummy_frame to
305 generic_push_dummy_frame, pc_in_call_dummy to
306 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
307 generic_save_dummy_frame_tos.
309 2002-09-30 Andrew Cagney <ac131313@redhat.com>
311 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
312 against TOP when TOP was explictly set.
313 (generic_push_dummy_frame): Set TOP to zero.
315 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
317 * event-loop.c (start_event_loop): Rename variable 'result' to
318 'gdb_result', to avoid conflicts with upcoming intepreters changes.
320 2002-09-30 Keith Seitz <keiths@redhat.com>
322 * gdb-events.sh (selected_thread_changed): New event.
323 * gdb-events.c: Regenerated.
324 * gdb-events.h: Regenerated.
326 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
328 * MAINTAINERS: Add self to Write After Approval list.
330 2002-09-30 Fernando Nasser <fnasser@redhat.com>
332 * disasm.c: New file.
333 * disasm.h: New file.
334 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
335 (compare_lines): Ditto.
337 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
339 (do_assembly_only): Ditto.
340 (do_disassembly): Renamed to gdb_disassembly and moved to
341 disasm.c. Sdded uiout argument.
342 * Makefile.in: Add new files. Reorder SFILES list. Update
343 dependencies. Include libgdb.a later in the insight executable.
345 2002-09-29 Andrew Cagney <ac131313@redhat.com>
347 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
348 bfd/elf64-alpha-fbsd.c.
350 2002-09-29 Andrew Cagney <ac131313@redhat.com>
352 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
355 2002-09-29 Andrew Cagney <ac131313@redhat.com>
357 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
359 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
361 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
362 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
363 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
364 (S_msg_sig_post_reply): Ditto.
366 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
368 * sh-tdep.c (sh_use_struct_convention): Use definition according
370 (sh_push_arguments): Store in register with correct endianess.
371 (sh_default_store_return_value): Ditto.
372 (sh_gdbarch_init): Set sizeof long double to 8.
374 2002-09-27 Mark Kettenis <kettenis@gnu.org>
376 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
377 Fix some whitespace problems.
379 2002-09-27 David Carlton <carlton@math.stanford.edu>
381 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
382 (mcore-tdep.o): Ditto.
383 (ns32k-tdep.o): Ditto.
384 (ns32knbsd-tdep.o): Ditto.
387 * cris-tdep.c: #include "gdb_string.h"
388 * mcore-tdep.c: Ditto.
389 * ns32k-tdep.c: Ditto.
390 * ns32knbsd-tdep.c: Ditto.
394 2002-09-27 David Carlton <carlton@math.stanford.edu>
396 * config/djgpp/fnchange.lst: Add entries for
397 gdb/testsuite/gdb.c++/m-static files.
399 2002-09-27 Jim Wilson <wilson@redhat.com>
401 * MAINTAINERS: Add myself to the Write After Approval list.
403 2002-09-26 Martin M. Hunt <hunt@redhat.com>
405 * mips-tdep.c (find_proc_desc): Initialize startaddr.
408 2002-09-26 Andrew Cagney <ac131313@redhat.com>
410 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
413 2002-09-26 Andrew Cagney <ac131313@redhat.com>
415 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
416 (rs6000_struct_return_address): Delete variable.
417 (rs6000_store_struct_return): Update.
418 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
419 deprecated_extract_struct_value_address.
420 (rs6000_frame_align): New function.
421 (rs6000_gdbarch_init): Set frame_align.
423 2002-09-26 Andrew Cagney <ac131313@redhat.com>
425 From Grace Sainsbury <graces@redhat.com>:
426 * Makefile.in (gdbtk-main.o): New target.
429 (main.o): Update dependencies.
430 (gdb$(EXEEXT)): Add gdb.o.
431 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
432 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
433 (SUBDIR_GDBTK_CLEAN): Set.
434 (install-gdbtk): Install the insight binary.
435 (uninstall-gdbtk): New target.
436 (all-gdbtk, clean-gdbtk): New rule.
437 * top.c (use_windows): Default to zero.
438 * main.c: Include "main.h".
440 (struct captured_main_args): Delete.
441 (gdb_main): New function.
445 2002-09-25 Andrew Cagney <cagney@redhat.com>
447 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
448 (frame_map_regnum_to_name): New function.
449 (frame_map_name_to_regnum): New function.
450 * frame.h (frame_map_name_to_regnum): Declare.
451 (frame_map_regnum_to_name): Declare.
452 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
453 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
454 * parse.c: Do not include "builtin-regs.h".
455 (target_map_name_to_register): Delete function.
456 (write_dollar_variable): Use frame_map_name_to_regnum.
457 * parser-defs.h (target_map_name_to_register): Delete declaration.
458 * expprint.c: Include "frame.h".
459 (print_subexp): Use frame_map_regnum_to_name.
460 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
461 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
463 2002-09-25 Andrew Cagney <ac131313@redhat.com>
465 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
466 wasn't saved, and the next innermost frame is a dummy, return the
467 dummy frame's link register.
469 2002-09-24 Jim Blandy <jimb@redhat.com>
472 * main.c (captured_main): Add a `break' after the case for 'b'.
474 2002-09-24 Keith Seitz <keiths@redhat.com>
476 * varobj.c (c_type_of_child): Use get_target_type instead
479 2002-09-22 Fernando Nasser <fnasser@redhat.com>
481 * source.c (get_current_or_default_source_symtab_and_line): Remove
483 (set_default_source_symtab_and_line): New function. Attempts to
484 determine a source file to list lines from if one is not currently
486 (get_current_source_symtab_and_line): Initialize sal.pc and
488 (set_current_source_symtab_and_line): Mark argument as const.
489 * source.h: Update declarations and comments.
490 * linespec.c (decode_line_1): Replace call to removed routine above.
491 * stack.c (print_frame_info_base): Ditto.
492 * cli/cli-cmds.c (edit_command): Ditto.
493 (list_command): Ditto.
495 2002-09-22 Fernando Nasser <fnasser@redhat.com>
497 * source.c (get_current_or_default_source_symtab_and_line): Initialize
498 sal.pc and sal.end fields.
499 (get_current_or_default_source_symtab_and_line): Ditto.
500 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
501 so we do not cause a new source symtab to be searched for (reverting an
502 unintentional change from the 2002-09-20 patch).
503 * scm-lang.c (scm_unpac): Ditto.
505 2002-09-21 Andrew Cagney <cagney@redhat.com>
507 * complaints.c (symfile_explanations): Remove new-line from
508 ``isolated_message''.
509 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
510 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
512 2002-09-20 Nick Clifton <nickc@redhat.com>
514 * NEWS: Announce that V850EA ISA is no longer supported.
515 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
517 2002-09-20 David Carlton <carlton@math.stanford.edu>
519 * Makefile.in (c-lang.o): Correct dependencies.
520 (utils.o): Gather dependencies.
522 * c-lang.c: #include "gdb_string.h"
524 2002-09-20 Fernando Nasser <fnasser@redhat.com>
526 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
527 * cli/cli-cmds.c (list_command): New function. Implements the new
529 (_init_cli_cmds): Add new command definition.
530 * gdb.1: Document edit command.
531 * doc/gdb.texinfo: Document edit command.
533 2002-09-20 Fernando Nasser <fnasser@redhat.com>
535 * source.c: Make global variables current_source_symtab and
536 current_source_line static.
537 (list_command): Moved to cli/cli-cmds.c.
538 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
539 (get_first_line_listed): New accessor function.
540 (get_lines_to_list): New accessor function.
541 (get_current_source_symtab_and_line): New function. Retrieves the
542 position in the source code that we consider current.
543 (get_current_or_default_source_symtab_and_line): New function.
544 Like the above but attempts to determine a default position if one
545 is not currently defined.
546 (set_current_source_symtab_and_line): New function. Sets the source
547 code position considered current and returns the previously set one.
548 (clear_current_source_symtab_and_line): Reset stored information about
549 a current source line.
550 (_initialize_source): Remove registration for the "list" command and
552 * source.h: Add declarations for the new functions above.
553 * symtab.h: Remove declarations for the global variables mentioned
555 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
556 obtain current source line.
557 * linespec.c (decode_line_1): Ditto.
558 * macroscope.c (default_macro_scope): Ditto.
559 * scm-lang.c (scm_unpac): Ditto.
560 * stack.c (print_frame_info_base): Ditto.
561 * symfile.c (clear_symtab_users): Ditto.
562 * symtab.c (decode_line_spec): Ditto.
563 * cli/cli-cmds.c (list_command): Moved here from source.c.
564 (ambiguous_line_spec): Moved here from source.c.
565 (_init_cli_cmds): Add definition for "list" and its alias.
566 * Makefile.in: Update dependencies.
568 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
570 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
571 with what gcc thinks is correct.
573 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
575 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
576 multiple register push instruction.
578 2002-09-19 Jim Blandy <jimb@redhat.com>
580 Add support for distinct host and target character sets.
581 * charset.c, charset.h: New files.
582 * c-exp.y: #include "charset.h".
583 (yylex): Convert character and string literals to the target
584 character set, before returning them as the semantic value of the
586 * c-lang.c: #include "charset.h".
587 (c_emit_char): Use charset-specific methods to recognize
588 characters with backslash escape forms, to decide which characters
589 to print literally and which to print using numeric escape
590 sequences, and to convert target characters to host characters
592 * utils.c: #include "charset.h".
593 (no_control_char_error): New function.
594 (parse_escape): Use charset-specific methods to recognize
595 backslash escapes, parse `control character' notation, and convert
596 characters from the host character set to the target character set.
597 * configure.in: Set the default host character set.
598 Check where to find iconv, and what its argument types might be.
599 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
600 * Makefile.in (SFILES): List charset.c.
601 (COMMON_OBS): List charset.o.
602 (charset.o): New rule.
603 (charset_h): New header dependency variable.
604 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
605 (LIBICONV): New variable, set by configure.
606 (CLIBS): Include $(LIBICONV) here.
607 * aclocal.m4, config.in, configure: Regenerated.
609 2002-09-19 Joel Brobecker <brobecker@gnat.com>
611 * ada-exp.y: Add missing semicolons to end rules. Fixes a
614 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
616 * gdb_mbuild.sh: New file.
618 2002-09-19 Andrew Cagney <ac131313@redhat.com>
620 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
622 2002-09-18 Andrew Cagney <ac131313@redhat.com>
624 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
625 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
626 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
627 valops.c, value.h: Revert previous change.
629 2002-09-18 Michael Snyder <msnyder@redhat.com>
631 Preliminary support for Objective-C:
632 * defs.h (language_objc): New enum value.
633 (puts_filtered_tabular): Declaration only, exported from utils.c.
634 (skip_quoted): Delete, declared in completer.h.
635 * c-exp.y: Include completer.h.
638 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
639 New operator enum values.
640 * language.h (CAST_IS_CONVERSION): Test for language_objc.
641 * language.c (binop_result_type): Handle language_objc case.
642 (integral_type, character_type, string_type, boolean_type,
643 structured_type, binop_type_check): Ditto.
644 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
645 (struct objc_specific): Add to general_symbol_info.
646 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
647 (SYMBOL_DEMANGLED_NAME): Handle objc case.
648 * parser-defs.h (struct objc_class_str): New struct type.
649 (start_msglist, end_msglist, add_msglist): Declaration only,
650 exported from objc-lang.c.
651 * value.h (value_of_local, value_nsstring,
652 call_function_by_hand_expecting_type): Exported from valops.c.
653 * valops.c (find_function_addr): Export.
654 (call_function_by_hand_expecting_type): New function.
655 (value_of_local): New function.
656 * symfile.c (init_filename_language_table): Add ".m" extension
658 * utils.c (puts_filtered_tabular): New function.
659 (fprintf_symbol_filtered): Add objc demangling support (disabled).
660 (set/show demangle): Extend help-string to refer to ObjC.
661 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
662 * stabsread.c (symbol_reference_defined): Objective-C symbols
663 may contain colons: make allowances when scanning stabs strings
665 (objc_find_colon): New function.
666 * printcmd.c (address_info): If language == objc then print
667 "self" instead of "this".
668 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
669 OP_NSSTRING, and OP_SELF.
670 (prefixify_subexp): Ditto.
671 * source.c (print_source_lines): Mention objc in comment.
672 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
675 2002-09-18 Andrew Cagney <ac131313@redhat.com>
677 * complaints.h: Update copyright.
678 (struct complaints): Declare.
679 (struct complaint): Make `message' constant.
680 (internal_complaint): Declare.
681 (complaint): Declare.
682 (complaint_root): Delete declaration.
683 (symfile_complaints): Delete declaration.
684 (struct complaints): Add opaque declaration.
685 (clear_complaints): Add a complaints parameter.
686 * complaints.c: Update copyright.
687 (enum complaint_series): Define.
688 (complaint_root): Delete.
689 (struct complaints): Define.
690 (complaint_sentinel, symfile_complaint_book): New variables.
691 (symfile_explanations, symfile_complaints): New variables.
693 (get_complaints): New function.
694 (vcomplaint): New function.
695 (complaint): New function.
696 (internal_complaint): New function.
697 (complain): Call vcomplain with symfile_complaint.
698 (clear_complaints): Rewrite.
699 (_initialize_complaints): Use add_setshow_command.
700 * Makefile.in (complaints.o): Update dependencies.
701 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
702 to call to clear_complaints.
703 (new_symfile_objfile, reread_symbols): Ditto.
704 (oldsyms_complaint): Delete.
705 (empty_symtab_complaint, unknown_option_complaint): Delete.
706 (free_named_symtabs): Use complaint instead of complain.
708 2002-09-18 Michael Snyder <msnyder@redhat.com>
710 Contributed by Apple Computer, Inc. Merged with current sources
711 by Adam Fedor <fedor@doc.com> [cagney].
713 * objc-lang.c: First clean-up round: comments, indentation.
714 * objc-lang.h: Ditto.
715 * objc-lang.y: Ditto.
717 2002-09-18 Andrew Cagney <ac131313@redhat.com>
719 * maint.c (maintenance_internal_error): Print the parameter as the
721 (maintenance_internal_warning): New function.
722 (_initialize_maint_cmds): Add command `maint internal-warning'.
724 * defs.h (internal_warning, internal_vwarning): Declare.
725 * utils.c (struct internal_problem): Define.
726 (internal_vproblem): New function.
727 (internal_warning): New function.
728 (internal_vwarning): New function.
729 (internal_warning_problem, internal_error_problem): New variables.
730 (internal_verror): Just call internal_vproblem.
732 2002-09-18 Michael Snyder <msnyder@redhat.com>
734 * objc-lang.c: New file, support for Objective-C.
735 Preliminary check-in, not yet integrated into gdb.
736 * objc-lang.h: New file.
737 * objc-exp.y: New file.
739 2002-09-18 Andrew Cagney <ac131313@redhat.com>
741 * infrun.c (signal_stop_update): Convert definition to ISO C.
742 (signal_print_update): Ditto.
743 (signal_pass_update): Ditto.
744 * inflow.c (terminal_save_ours): Ditto.
746 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
749 * config/djgpp/fnchange.lst: Handle name clashes between
750 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
753 * i386-linux-tdep.h: Fix tipo.
755 2002-09-18 Adam Fedor <fedor@gnu.org>
757 * MAINTAINERS: Add myself to the Write After Approval list.
759 2002-09-18 Jim Blandy <jimb@redhat.com>
761 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
762 texthigh and textlow to reader-specific structs caused
763 objfile_relocate to miss them. This is fixable, but the work that
764 the change was supposed to prepare GDB for never got done anyway.
766 2002-09-18 David Carlton <carlton@math.stanford.edu>
768 * MAINTAINERS: Alphabetize Write After Approval list.
770 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
773 * values.c (value_static_field): Call read_var_value.
775 2002-09-18 Andrew Cagney <ac131313@redhat.com>
777 * valops.c (hand_function_call): Align the initial stack pointer
778 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
779 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
781 * mips-tdep.c (mips_frame_align): New function.
782 (mips_gdbarch_init): Set frame_align.
783 * gdbarch.sh (FRAME_ALIGN): New method.
784 * gdbarch.h, gdbarch.c: Re-generate.
786 2002-09-18 Michal Ludvig <mludvig@suse.cz>
788 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
791 2002-09-17 Andrew Cagney <ac131313@redhat.com>
793 * NEWS: Mention that MIPS $fp behavior changed.
794 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
795 reference to FP_REGNUM.
796 (mipsnbsd_cannot_store_register): Ditto.
797 * mips-linux-nat.c: Update copyright.
798 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
799 (mips_linux_cannot_store_register): Ditto.
800 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
801 * config/mips/tm-mips.h: Update copyright.
802 (FP_REGNUM): Delete macro.
803 (MIPS_REGISTER_NAMES): Replace "fp" with "".
804 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
805 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
806 (mips_r3041_reg_names, mips_r3051_reg_names)
807 (mips_r3081_reg_names): Replace "fp" with "".
810 2002-09-17 Theodore A. Roth <troth@verinet.com>
812 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
813 generic_read_register_dummy() (PR gdb/703).
814 (avr_push_return_address): #if 0 out unused vars.
815 (avr_gdbarch_init): Enable use of avr_push_return_address().
817 2002-09-17 Michael Snyder <msnyder@redhat.com>
819 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
820 RTE will take care of it.
822 2002-09-17 Andrew Cagney <ac131313@redhat.com>
824 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
825 invalid, return SP_REGNUM.
827 2002-09-17 Michael Snyder <msnyder@redhat.com>
829 * mips-tdep.c (mips_pop_frame): Read saved values of floating
830 point registers without sign extension.
832 2002-09-17 Andrew Cagney <cagney@redhat.com>
834 * blockframe.c (deprecated_read_register_dummy): Rename
835 generic_read_register_dummy.
836 * frame.c (frame_unwind_signed_register): New function.
837 (frame_unwind_unsigned_register): New function.
838 * frame.h (frame_unwind_signed_register): Declare.
839 (frame_unwind_unsigned_register): Declare.
840 (deprecated_read_register_dummy): Rename
841 generic_read_register_dummy.
843 * h8300-tdep.c (h8300_frame_chain): Update.
844 (h8300_frame_saved_pc): Update.
845 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
846 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
847 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
848 (s390_frame_chain): Update.
849 * v850-tdep.c (v850_find_callers_reg): Update.
850 (v850_frame_saved_pc): Update.
851 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
852 (m32r_find_callers_reg): Update.
853 (m32r_frame_saved_pc): Update.
854 * sh-tdep.c (sh_find_callers_reg): Update.
855 (sh64_get_saved_pr): Update.
856 (sh_init_extra_frame_info): Update.
857 (sh_init_extra_frame_info): Update.
858 (sh64_init_extra_frame_info): Update.
859 (sh64_init_extra_frame_info): Update.
860 * mcore-tdep.c (mcore_find_callers_reg): Update.
861 (mcore_frame_saved_pc): Update.
862 (mcore_init_extra_frame_info): Update.
863 * i386-tdep.c (i386_frame_saved_pc): Update.
864 * ia64-tdep.c (ia64_frame_saved_pc): Update.
865 (ia64_init_extra_frame_info): Update.
866 (ia64_init_extra_frame_info): Update.
867 * d10v-tdep.c (d10v_frame_saved_pc): Update.
868 * cris-tdep.c (cris_init_extra_frame_info): Update.
869 * avr-tdep.c (avr_frame_chain): Update.
870 (avr_init_extra_frame_info): Update.
871 (avr_frame_saved_pc): Update.
872 * arm-tdep.c (arm_find_callers_reg): Update.
873 (arm_init_extra_frame_info): Update.
874 (arm_frame_saved_pc): Update.
876 2002-09-17 Tom Tromey <tromey@redhat.com>
878 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
881 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
883 * MAINTAINERS: Remove "non multi-arched" text from h8300.
884 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
886 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
889 2002-09-16 Joel Brobecker <brobecker@gnat.com>
891 * osfsolib.c: Remove file, replaced by solib-osf.c.
892 * Makefile.in: Remove compilation rules for osfsolib.c.
894 2002-09-16 David Carlton <carlton@math.stanford.edu>
896 * cp-valprint.c (cp_print_class_method): Correct args to
897 check_stub_method_group.
899 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
901 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
902 `set architecture'. Unify naming convention of functions.
903 (h8300_skip_prologue): Improve prologue analysis.
904 (h8300_push_arguments): Rewritten to more closely match GCC's
905 bizarre argument-passing behavior, along with the comment describing
907 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
908 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
909 sim, remote-e7000.c, remote-hms.c and remote.c
911 2002-09-15 Mark Kettenis <kettenis@gnu.org>
913 * i386-tdep.c (gdb_print_insn_i386): Removed.
914 (i386_print_insn): New function.
915 (i386_gdbarch_init): Set print_insn to i386_print_insns.
916 (_initialize_i386_tdep): Don't initialize tm_print_insn and
919 2002-09-14 Mark Kettenis <kettenis@gnu.org>
921 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
924 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
926 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
927 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
928 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
930 2002-09-13 Christopher Faylor <cgf@redhat.com>
932 * win32-nat.c (child_create_inferior): Honor 'tty' command.
934 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
936 * gdbtypes.c (check_stub_method): Make static.
937 (check_stub_method_group): New function.
938 * gdbtypes.h: Update prototypes.
939 * cp-support.c: New file.
940 * cp-support.h: New file.
942 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
943 (update_method_name_from_physname): New function.
944 (read_member_functions): Correct method names for operators
945 and v3 constructors/destructors. Separate v2 constructors and
947 * Makefile.in (stabsread.o): Update dependencies.
948 (SFILES): Add cp-support.c.
949 (COMMON_OBS): Add cp-support.o.
950 (cp_support_h, cp-support.o): Add.
952 * cp-valprint.c (cp_print_class_method): Call
953 check_stub_method_group instead of check_stub_method. Remove
955 * p-valprint.c (pascal_object_print_class_method): Likewise.
956 * valops.c (search_struct_method): Likewise.
957 (find_method_list, value_struct_elt_for_reference): Likewise.
959 2002-09-13 Andrew Cagney <cagney@redhat.com>
961 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
962 * gdbarch.h, gdbarch.c: Regenerate.
964 2002-09-13 Andrew Cagney <ac131313@redhat.com>
966 * frame.c (find_saved_register): Delete function.
967 * frame.h (find_saved_register): Delete declaration.
970 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
972 * mips-tdep.c (read_next_frame_reg): Re-hack using
973 frame_register_unwind.
975 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
977 * mips-tdep.c (mips_get_saved_register): Re-hack using
978 frame_register_unwind.
980 2002-09-12 Joel Brobecker <brobecker@gnat.com>
982 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
983 vector. Will be useful for Interix.
984 * gdbarch.h, gdbarch.c: Regenerate.
986 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
987 name of the malloc function by NAME_OF_MALLOC.
989 2002-09-12 Joel Brobecker <brobecker@gnat.com>
991 * value.h (find_function_in_inferior): Add const keyword to
992 one of the parameters. Allows us to invoke this function with
994 * valops.c (find_function_in_inferior): Likewise.
996 2002-09-12 Joel Brobecker <brobecker@gnat.com>
998 * exec.c (xfer_memory): Fix compilation warning with old versions
1000 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1002 2002-09-12 David Carlton <carlton@math.stanford.edu>
1004 * symtab.h: Run through gdb_indent.h.
1005 Add 2002 to Copyright year list.
1007 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1009 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1011 * MAINTAINERS: Add myself to write after approval list.
1013 2002-09-11 J. Brobecker <brobecker@gnat.com>
1015 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1017 2002-09-11 J. Brobecker <brobecker@gnat.com>
1019 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1022 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1024 * procfs.c (do_detach): Clear current signal, not just fault.
1025 Corrects problem with breakpoint trap signal leaking to detached
1028 2002-09-10 Michael Snyder <msnyder@redhat.com>
1030 * buildsym.c (finish_block): Protect against null pointer.
1032 2002-09-10 Andrew Cagney <cagney@redhat.com>
1034 * infcmd.c (default_print_registers_info): Send all output to
1035 ``file'' instead of ``gdb_stdout''.
1037 2002-09-10 Michael Snyder <msnyder@redhat.com>
1039 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1040 LONGEST, and use signed register read (addresses are sign-
1043 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1045 * event-loop.c (gdb_do_one_event): Make public.
1046 * event-loop.h (gdb_do_one_event): Declare.
1048 2002-09-10 Jeff Law <law@redhat.com>
1050 * infttrace.c (child_resume): Simplify and rework to avoid
1053 2002-09-09 Fred Fish <fnf@intrinsity.com>
1055 * printcmd.c (print_scalar_formatted): "len" is the number of
1056 target bytes, NOT the number of target bits.
1058 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1060 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1061 * top.c (init_main): Set rl_terminal_name.
1063 2002-09-08 Aidan Skinner <aidan@velvet.net>
1065 * ada-lang.c (ada_array_bound, ada_type_match,
1066 _initialize_ada_language): Fix K&R definitions.
1067 * ada-tasks.c (get_current_task): Fix K&R definitions.
1068 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1070 2002-09-07 Christopher Faylor <cgf@redhat.com>
1072 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1075 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1077 * i386-tdep.c (i386_register_virtual_type,
1078 i386_register_convertible, i386_register_convert_to_virtual,
1079 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1080 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1081 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1082 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1083 Don't set push_arguments twice.
1085 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1086 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1087 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1088 sigtramp_end to NULL.
1089 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1091 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1093 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1096 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098 * blockframe.c (find_pc_sect_partial_function): Convert to use
1099 SIGTRAMP_START_P predicate.
1101 2002-09-05 Michael Snyder <msnyder@redhat.com>
1103 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1104 generic_dummy_frame method and old method. Also distinguish
1105 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1106 (arm_extract_return_value): Use new regcache method.
1108 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1109 adjustment that doesn't conform to the ABI.
1110 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1111 saved regcache, not from current regcache.
1113 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1115 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1118 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1120 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1121 if arm_apcs_32 is false.
1123 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1125 GDB 5.3 branch created.
1127 2002-09-03 Theodore A. Roth <troth@verinet.com>
1129 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1130 generic_unwind_get_saved_register.
1132 2002-09-03 David Carlton <carlton@math.stanford.edu>
1134 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1135 argument (PR gdb/653). Update call to smash_to_method_type.
1136 (read_structure_scope): Update call to dwarf2_add_member_fn.
1138 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1140 * x86-64-linux-tdep.c: Include gdb_string.h
1141 * x86-64-linux-nat.c: Ditto.
1143 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1145 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1146 when YYDEBUG is set to 1.
1147 * c-exp.y: Likewise.
1148 * f-exp.y: Likewise.
1149 * jv-exp.y: Likewise.
1150 * m2-exp.y: Likewise.
1151 * p-exp.y: Likewise.
1153 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1155 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1157 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1158 solib_svr4_fetch_link_map_offsets to
1159 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1160 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1161 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1162 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1163 solib-svr4.o, and solib-legacy.o.
1164 * config/i386/tm-nbsd.h: Include solib.h.
1166 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1168 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1169 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1170 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1171 comment noting that this needs its own target configuration.
1172 * config/i386/nbsd.mt: New file.
1173 * config/i386/nbsdaout.mt: Remove.
1174 * config/i386/nbsdelf.mt: Ditto.
1175 * config/i386/tm-nbsdaout.h: Ditto.
1177 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1179 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1180 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1181 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1183 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1184 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1185 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1187 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1189 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1190 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1191 * i386-tdep.h (i386bsd_init_abi): New prototype.
1192 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1193 function declaration.
1194 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1195 for NetBSD-a.out or NetBSD-ELF.
1196 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1197 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1198 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1199 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1201 (i386nbsd_pc_in_sigtramp): New function.
1202 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1203 i386nbsd_pc_in_sigtramp.
1204 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1205 and i386nbsdelf_init_abi OS ABI handlers.
1206 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1207 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1209 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1211 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1212 registers if the target really has them.
1214 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1216 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1219 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1221 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1223 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1224 (alphanbsd_skip_sigtramp_frame): New functions.
1225 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1226 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1227 to alphanbsd_sigcontext_addr.
1229 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1231 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1233 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1234 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1235 nbsd_pc_in_sigtramp.
1236 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1237 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1238 * nbsd-tdep.c: Include gdb_string.h.
1239 (nbsd_pc_in_sigtramp): New function.
1240 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1241 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1242 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1243 ppcnbsd_pc_in_sigtramp.
1244 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1245 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1246 shnbsd_pc_in_sigtramp.
1247 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1248 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1249 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1251 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1253 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1254 watchpoints to NULL.
1255 (insert_breakpoints): set val field of watchpoints if NULL.
1258 2002-08-29 Jim Blandy <jimb@redhat.com>
1260 * symtab.c (lookup_symbol_aux): In the cases where we find a
1261 minimal symbol of an appropriate name and use its address to
1262 select a symtab to read and search, use `name' (as passed to us)
1263 as the demangled name when searching the symtab's global and
1264 static blocks, not the minsym's name.
1266 2002-08-29 Keith Seitz <keiths@redhat.com>
1268 * stack.c (print_frame_info_base): Always set current_source_symtab
1269 and current_source_line.
1271 2002-08-29 Donn Terry <donnte@microsoft.com>
1273 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1275 2002-08-28 Keith Seitz <keiths@redhat.com>
1277 * stack.c (select_frame): Add FIXME concerning selected-frame
1279 (select_frame_command): Send selected-frame-level-changed
1280 event notification, but only if the level actually changed.
1281 (up_silently_base): Add selected-frame-level-changed event
1283 (down_silently_base): Likewise.
1285 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1287 * Makefile.in: Update dependencies for all gdb/*.c files.
1289 2002-08-27 Tom Tromey <tromey@redhat.com>
1291 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1292 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1293 Update dependencies.
1294 * i387-tdep.c: Include gdb_string.h.
1295 * osabi.c: Likewise.
1296 * i386-linux-nat.c: Likewise.
1297 * lin-lwp.c: Likewise.
1298 * ax-gdb.c: Likewise.
1299 * signals/signals.c: Likewise.
1300 * jv-valprint.c: Likewise.
1301 * p-lang.c: Likewise.
1302 * c-valprint.c: Likewise.
1303 * cp-abi.c: Likewise.
1305 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1307 * cli/cli-script.h (copy_command_lines): Export.
1308 * breakpoint.c: Include cli/cli-script.h.
1309 * Makefile.in (breakpoint.o): Update dependencies.
1311 2002-08-26 Michael Snyder <msnyder@redhat.com>
1313 * breakpoint.c (insert_breakpoints): Protect all references
1314 to 'process_warning'. Shorten long lines.
1316 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1318 * cli/cli-script.c (copy_command_lines): New function.
1319 * defs.h (copy_command_lines): Export.
1320 * testsuite/gdb.base/commands.exp: New tests for commands
1321 attached to a temporary breakpoint, and for commands that
1322 delete the breakpoint they are attached to.
1324 2002-08-26 Michael Snyder <msnyder@redhat.com>
1326 * breakpoint.c (bpstat_stop_status): Instead of copying the
1327 pointer to the breakpoint commands struct, make a new copy
1328 of the struct and point to that.
1329 (bpstat_clear): Free the commands struct.
1330 (bpstat_clear_actions): Free the commands struct.
1331 (bpstat_do_actions): Free the command actions. Also execute
1332 the local cleanups, instead of deleting them.
1333 (delete_breakpoint): Leave the commands field of the bpstat
1334 chain alone -- it will be freed later.
1336 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1338 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1339 deleted in 2002-08-20 commit. This function is still used by
1342 2002-08-26 Keith Seitz <keiths@redhat.com>
1344 * gdb-events.sh: Add selected-frame-level-changed event.
1345 * gdb-events.c: Regenerated.
1346 * gdb-events.h: Regenerated.
1348 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1351 * inflow.c (terminal_save_ours): New function to save terminal
1353 * inferior.h (terminal_save_ours): Declare.
1354 * target.c (debug_to_terminal_save_ours): New function.
1355 (cleanup_target): Defaults to_terminal_save_ours.
1356 (update_current_target): Inherit to_terminal_save_ours.
1357 (setup_target_debug): Set to_terminal_save_ours.
1358 * target.h (target_terminal_save_ours): New to save terminal settings.
1359 (target_ops): New member to_terminal_save_ours.
1360 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1361 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1362 * inftarg.c (init_child_ops): Likewise.
1363 * m3-nat.c (init_m3_ops): Likewise.
1364 * procfs.c (init_procfs_ops): Likewise.
1365 * wince.c (init_child_ops): Likewise.
1366 * win32-nat.c (init_child_ops): Likewise.
1367 * sol-thread.c (init_sol_thread_ops): Likewise.
1369 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1371 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1372 use regcache_* functions.
1373 (i386_gdbarch_init): Set store_return_value instead of
1374 deprecated_store_return_value.
1376 * regcache.c (regcache_raw_write_signed,
1377 regcache_raw_write_unsigned): New functions.
1378 * regcache.h (regcache_raw_write_signed,
1379 regcache_raw_write_unsigned): New prototypes.
1381 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1383 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1384 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1385 source file dependencies. Cleanup corresponding generator rules.
1387 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1389 * regcache.h (register_offset_hack): Declare.
1390 (regcache_cooked_read_using_offset_hack): Declare.
1391 (regcache_cooked_write_using_offset_hack): Declare.
1393 * regcache.c (register_offset_hack): New function.
1394 (regcache_cooked_read_using_offset_hack): New function.
1395 (regcache_cooked_write_using_offset_hack): New function.
1396 (regcache_dump): Check that the registers, according to their
1397 offset, are packed hard against each other.
1398 (cooked_xfer_using_offset_hack): New function.
1400 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1402 * regcache.c (struct regcache_descr): Add field register_type.
1403 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1405 (init_regcache_descr): Initialize register_type. Pass the descr
1406 to init_legacy_regcache_descr. Use register_type instead of
1407 REGISTER_VIRTUAL_TYPE.
1408 (register_type): New function.
1409 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1410 * regcache.h (register_type): Declare.
1412 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1414 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1415 instead of deprecated_store_return_value. Fix fallout from
1416 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1418 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1420 * regcache.c (max_register_size): New function.
1421 (init_legacy_regcache_descr): Ensure that max_register_size is
1422 large enough for REGISTER_VIRTUAL_SIZE.
1423 * regcache.h (max_register_size): Declare.
1425 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1427 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1429 (e500_extract_return_value): Change type of valbuf pointer to
1432 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1434 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1437 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1438 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1439 long long) to prevent compiler warning on 64-bit systems.
1441 2002-08-23 Andrew Cagney <cagney@redhat.com>
1443 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1444 (DEPRECATED_STORE_RETURN_VALUE): New method.
1445 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1446 * gdbarch.h, gdbarch.c: Re-generate.
1448 * values.c (set_return_value): Pass current_regcache to
1450 * arch-utils.h (legacy_store_return_value): Declare.
1451 * arch-utils.c (legacy_store_return_value): New function.
1452 (legacy_extract_return_value): Update parameters.
1454 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1456 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1457 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1458 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1459 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1460 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1461 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1462 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1463 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1464 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1465 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1468 * i386-tdep.c (i386_extract_return_value): Update.
1469 * arch-utils.c (legacy_extract_return_value): Update.
1470 * frv-tdep.c (frv_gdbarch_init): Update.
1471 * cris-tdep.c (cris_gdbarch_init): Update.
1472 * d10v-tdep.c (d10v_gdbarch_init): Update.
1473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1474 * m68k-tdep.c (m68k_gdbarch_init): Update.
1475 * mcore-tdep.c (mcore_gdbarch_init): Update.
1476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1477 * s390-tdep.c (s390_gdbarch_init): Update.
1478 * sparc-tdep.c (sparc_gdbarch_init): Update.
1479 * sh-tdep.c (sh_gdbarch_init): Update.
1480 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1481 * v850-tdep.c (v850_gdbarch_init): Update.
1482 * avr-tdep.c (avr_gdbarch_init): Update.
1483 * ia64-tdep.c (ia64_gdbarch_init): Update.
1484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1485 * vax-tdep.c (vax_gdbarch_init): Update.
1486 * alpha-tdep.c (alpha_gdbarch_init): Update.
1487 * arm-tdep.c (arm_gdbarch_init): Update.
1488 * mips-tdep.c (mips_gdbarch_init): Update.
1489 * i386-tdep.c (i386_gdbarch_init): Update.
1491 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1493 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1494 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1496 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1498 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1501 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1503 * infrun.c (handle_inferior_event): Move a comment outside of a
1504 function call, in order to avoid indent reformatting this part
1505 of the code in an unreadable way.
1507 2002-08-23 Grace Sainsbury <graces@redhat.com>
1509 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1510 when breakpoints fail. Move general breakpoint error messages to
1512 * breakpoint.c (insert_breakpoints): Change warnings when
1513 breakpoints are nto inserted to specify the type. Remove call to
1514 memory_error when hardware breakpoints can't be inserted. Remove
1515 multiple calls to warning so all messages are sent to the user at
1517 (delete_breakpoints): Make insert error messsages more explicit.
1519 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1521 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1522 gdbserver/ChangeLog.
1524 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1526 * i386-tdep.c: Include "objfiles.h".
1527 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1528 skip_trampoline_code.
1529 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1530 (CPLUS_MARKER): Define to '.'.
1532 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1534 (linux_corefile_thread_callback): Increase args->num_notes.
1535 (linux_make_note_section): Initialize thread_args.num_notes, and
1536 use it to determine whether notes for any threads were created.
1538 2002-08-23 Donn Terry <donnte@microsoft.com>
1540 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1541 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1543 (write_with_trace): Conditionalize out the switch branch handling
1544 PCSHOLD if the corresponding macro is not defined. Likewise for
1545 PRSABORT and PRSTOP.
1546 This change will be needed by the Interix port.
1548 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1551 write_register wherever possible instead of manipulating the
1552 register bytes directly.
1553 Assign VALUE_CONTENTS to a variable and use that.
1554 The GPR numbers are now dependent on the architecture.
1556 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1558 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1560 (skip_prologue): Add support for BookE/e500 instructions.
1561 (e500_extract_return_value): New function.
1562 (frame_get_saved_regs): Add support for saving ev registers and
1564 (e500_store_return_value): New function.
1565 (rs6000_gdbarch_init): Move up default intializations of
1566 deprecated_extract_return_value and store_return_value. Overwrite
1567 init of store_return_value with e500 specific version.
1568 Set extract_return_value for e500.
1570 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1572 * blockframe.c (generic_call_dummy_register_unwind): Use
1573 regcache_cooked_read to catch cases in which the variable is
1574 stored in a pseudo register.
1576 2002-08-22 Andrew Cagney <cagney@redhat.com>
1578 * NEWS: Mention that the i960 has been made obsolete.
1579 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1581 (remote-nrom.o): Obsolete target.
1582 (remote-nindy.o, i960-tdep.o): Ditto.
1583 * remote-nrom.c: Make file obsolete.
1584 * remote-nindy.c, remote-vx960.c: Ditto.
1585 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1586 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1587 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1588 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1589 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1590 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1591 i960-*-vxworks* obsolete.
1592 * MAINTAINERS: Note that the i960 is obsolete.
1594 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1596 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1597 detach to allow reinitialization.
1599 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1601 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1604 2002-08-22 Jim Blandy <jimb@redhat.com>
1606 * coffread.c (coff_symfile_read): Don't try to read the line
1607 number table from disk if the image file doesn't have a symbol
1608 table; we'll never actually look at the info anyway, and Windows
1609 ships DLL's with bogus file offsets for the line number data.
1611 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1613 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1616 2002-08-21 Michael Snyder <msnyder@redhat.com>
1618 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1619 (MSYMBOL_SIZE): Replace macro with function.
1620 (DEFAULT_MIPS_TYPE): Delete unused macro.
1621 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1622 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1624 2002-08-21 Jim Blandy <jimb@redhat.com>
1626 * valops.c (value_cast): Simplify and correct logic for doing a
1627 static cast from a pointer to a base class to a pointer to a
1630 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1632 * infcmd.c (default_print_registers_info): Replace
1634 (registers_info): Use gdbarch_print_registers_info instead of
1636 * inferior.h (default_print_registers_info): Replace
1638 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1639 (DO_REGISTERS_INFO): Change to a predicate function.
1640 * gdbarch.h, gdbarch.c: Regenerate.
1642 2002-08-21 Keith Seitz <keiths@redhat.com>
1644 * gdb-events.sh: Add target-changed event.
1645 * gdb-events.c: Regenerated.
1646 * gdb-events.c: Regenerated.
1647 * valops.c (value_assign): Add target-changed event notification
1648 to inlval_register, lval_memory, and lval_reg_frame_relative.
1650 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1652 * NEWS: Add an entry regarding the improvement of the next/step
1653 operation on Alpha Tru64 multi-processor machines.
1655 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1657 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1659 * Makefile.in: Update all _h macro definitions.
1660 * Makefile.in (install-gdbtk): Move to install section.
1661 (rdi-share/libangsd.a): Move to end of file.
1663 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1665 * frame.c (frame_register_unwind): When a register, set addrp to
1666 the register's byte.
1668 2002-08-20 Michael Snyder <msnyder@redhat.com>
1670 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1671 used locally, so move them from the target machine header to here.
1672 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1673 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1675 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1677 2002-08-20 Andrew Cagney <cagney@redhat.com>
1679 * NEWS: Mention that the Apollo line was made obsolete.
1680 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1681 m68*-hp-hpux* obsolete.
1682 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1683 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1684 * buildsym.c (make_blockvector): Make static.
1685 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1686 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1687 (ALLDEPFILES): Remove dstread.c.
1688 (dstread.o): Obsolete make rule.
1689 * dstread.c: Makefile obsolete.
1691 * config/m68k/hp300hpux.mt: Ditto.
1692 * config/m68k/hp300hpux.mh: Ditto.
1693 * config/m68k/hp300bsd.mt: Ditto.
1694 * config/m68k/hp300bsd.mh: Ditto.
1695 * config/m68k/apollo68b.mt: Ditto.
1696 * config/m68k/apollo68v.mh: Ditto.
1697 * config/m68k/apollo68b.mh: Ditto.
1699 2002-08-20 Michael Snyder <msnyder@redhat.com>
1701 * mips-tdep.c (mips_in_return_stub): Make static.
1702 (mips_gdbarch_init): Set in_solib_return_trampoline.
1703 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1705 2002-08-20 Michael Snyder <msnyder@redhat.com>
1707 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1708 * gdbarch.c, gdbarch.h: Regenerate.
1709 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1711 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1713 2002-08-20 Michael Snyder <msnyder@redhat.com>
1715 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1716 (mips_gdbarch_init): Set skip_trampoline_code,
1717 in_solib_call_trampoline.
1718 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1719 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1721 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1723 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1725 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1726 vector type for ev registers.
1727 (e500_pseudo_register_read): New function.
1728 (e500_pseudo_register_write): New function.
1729 (e500_dwarf2_reg_to_regnum): New function.
1730 (PPC_UISA_NOFP_SPRS): New macro.
1731 (PPC_EV_REGS): New macro.
1732 (PPC_GPRS_PSEUDO_REGS): New macro.
1733 (registers_e500): New register set for e500.
1734 (variants): Add e500 variant.
1735 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1736 before setting architectural dependent variations. Initialize ev
1737 registers numbers. Add case for e500 architecture. Set the
1738 number of pseudo registers.
1740 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1742 * rs6000-tdep.c: Clean up comments.
1744 2002-08-20 Andrew Cagney <cagney@redhat.com>
1746 * h8300-tdep.c: Re-indent file.
1748 2002-08-20 Jim Blandy <jimb@redhat.com>
1750 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1753 2002-08-20 Keith Seitz <keiths@redhat.com>
1755 * breakpoints.c (watch_command_1): Use internal breakpoint
1756 when setting a watchpoint_scope breakpoint.
1758 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1760 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1761 (build_builtin_type_vec64i): Ditto.
1762 (build_builtin_type_vec128): Ditto.
1763 (build_builtin_type_vec128i): Ditto.
1765 2002-08-19 Michael Snyder <msnyder@redhat.com>
1767 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1768 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1769 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1770 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1771 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1772 CALL_DUMMY_ADDRESS): Delete.
1773 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1774 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1775 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1776 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1777 push_return_address.
1778 (mips_register_raw_size, mips_eabi_use_struct_convention,
1779 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1780 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1781 mips_init_extra_frame_info, mips_eabi_push_arguments,
1782 mips_n32n64_push_arguments, mips_push_return_address,
1783 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1784 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1786 2002-08-19 Michael Snyder <msnyder@redhat.com>
1788 * mips-tdep.c (mips_frame_num_args): New function.
1789 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1790 frame_saved_pc, frame_args_address, frame_locals_address,
1791 frame_num_args, and frame_args_skip.
1792 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1793 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1794 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1795 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1797 2002-08-20 Michael Snyder <msnyder@redhat.com>
1799 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1800 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1801 * mips-tdep.c (mips_store_struct_return): New function.
1802 (mips_extract_struct_value_address): New function.
1803 (mips_gdbarch_init): Set store_struct_return and
1804 extract_struct_value_address.
1806 2002-08-20 David Carlton <carlton@math.stanford.edu>
1808 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1809 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1810 (read_file_scope): Check that line_header is nonzero before
1811 decoding macro information.
1813 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1815 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1816 flag the general-purpose registers as floating-point on targets
1817 that don't support the floating-point registers.
1819 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1821 * rs6000-tdep.c (altivec_register_p): Delete.
1822 (rs6000_do_altivec_registers): Delete.
1823 (rs6000_altivec_registers_info): Delete.
1824 (rs6000_do_registers_info): Delete.
1825 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1826 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1828 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1830 * infcmd.c (do_registers_info): Print vector registers in hex
1832 (print_vector_info): Check that printing registers
1834 (print_float_info): Ditto.
1836 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1838 * mips-tdep.c (mips_gdbarch_init): Update.
1839 (mips_o32_extract_return_value): Rewrite.
1840 (mips_o32_store_return_value): Rewrite.
1841 (mips_o32_xfer_return_value): New function.
1842 (mips_xfer_register): Tweak debug print message. Allow for
1843 buf_offset when dumping the value transfered.
1845 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1847 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1848 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1849 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1850 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1851 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1853 2002-08-14 Michael Snyder <msnyder@redhat.com>
1855 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1857 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1859 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1861 (P): New macro to define a register as a pseudo register.
1862 (R, R4, R8, R16, FR32, R64, R0): Updated.
1863 (struct variant): Add new fields for number of pseudo registers
1864 and number of total registers.
1865 (tot_num_registers): New macro replacing....
1866 (num_registers): ...deleted macro.
1867 (num_registers): New function.
1868 (num_pseudo_registers): New function.
1869 (variants): Update all variants to intialize new fields correctly.
1870 Postpone initialization of number of pseudo regs and real regs.
1871 (init_variants): New function.
1872 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1875 2002-08-19 David Carlton <carlton@math.stanford.edu>
1877 * valops.c (search_struct_field): Change error message to treat
1878 return value of 0 from value_static_field as meaning that field is
1880 (value_struct_elt_for_reference): Ditto.
1881 * values.c (value_static_field): Treat an unresolved location the
1882 same as a nonexistent symbol. Fix PR gdb/635.
1883 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1884 enclosed. Fix PR gdb/574.
1885 * MAINTAINERS: Add self to Write After Approval list.
1887 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1889 * mips-tdep.c (mips_xfer_register): New function.
1890 (mips_n32n64_extract_return_value): Rewrite.
1891 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1892 instead of deprecated_extract_return_value.
1894 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1896 * rs6000-tdep.c (TDEP): Delete macro.
1897 (branch_dest): Replace use of TDEP macro with its body.
1898 (rs6000_pop_frame): Ditto.
1899 (rs6000_push_arguments): Ditto.
1900 (rs6000_skip_trampoline_code): Ditto.
1901 (rs6000_frame_saved_pc): Ditto.
1902 (rs6000_frame_chain): Ditto.
1903 (rs6000_register_name): Ditto.
1904 (rs6000_register_byte): Ditto.
1905 (rs6000_register_raw_size): Ditto.
1906 (rs6000_register_virtual_type): Ditto.
1907 (rs6000_register_convertible): Ditto.
1908 (rs6000_convert_from_func_ptr_addr): Ditto.
1910 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1912 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1914 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1915 MIPS_LINUX_JB_ELEMENT_SIZE.
1916 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1917 for MAX_REGISTER_RAW_SIZE arrays.
1918 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1919 MIPS_LINUX_JB_ELEMENT_SIZE.
1921 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1923 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1925 2002-08-19 Aidan Skinner <aidan@velvet.net>
1927 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1928 ada-valprint.c ada-tasks.c.
1929 (YYFILES): Add ada-exp.y.
1930 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1931 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1932 (ada-exp.tab.o): New target.
1934 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1936 * regcache.c (regcache_xfer_part): New function.
1937 (regcache_raw_read_part): New function.
1938 (regcache_raw_write_part): New function.
1939 (regcache_cooked_read_part): New function.
1940 (regcache_cooked_write_part): New function.
1941 * regcache.h (regcache_raw_read_part): Declare.
1942 (regcache_raw_write_part): Declare.
1943 (regcache_cooked_read_part): Declare.
1944 (regcache_cooked_write_part): Declare.
1946 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1948 * remote.c (remote_open_1): Add async_p.
1949 (remote_async_open_1): Delete.
1950 (open_remote_target): Delete.
1951 (remote_open, extended_remote_open): Update calls to remote_open_1.
1952 (remote_async_open, extended_remote_async_open): Call
1953 remote_open_1 instead of remote_async_open_1.
1955 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1957 * blockframe.c: Fix a few coding standard violations.
1959 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1961 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1963 * config/i386/tm-i386sco5.h: ... here. File removed.
1964 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1966 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1967 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1968 (TM_FILE): Set to tm-i386.h.
1969 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1970 * config/i386/tm-i386v.h: Remove file.
1971 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1972 instead of "i386/tm-i386v.h".
1973 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1974 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1976 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1977 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1980 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1982 * config/i386/nm-i386v.h: Add protection against
1984 (i386_register_u_addr): Remove prototype.
1985 (register_u_addr): New prototype.
1986 (REGISTER_U_ADDR): Redefine accordingly.
1987 * i386v-nat.c: Improve several comments.
1988 (i386_register_u_addr): Change signature and rename to
1989 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1992 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1994 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1995 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1996 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1997 deprecated_extract_return_value.
1998 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1999 rename mips_o32o64_push_arguments.
2000 (mips_gdbarch_init): Update.
2001 (mips_extract_return_value): Delete.
2002 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2003 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2004 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2005 (mips_n32n64_extract_return_value): Clone
2006 mips_extract_return_value.
2007 (mips_store_return_value): Delete.
2008 (mips_o32_store_return_value): Clone mips_store_return_value.
2009 (mips_o64_store_return_value): Clone mips_store_return_value.
2010 (mips_eabi_store_return_value): Clone mips_store_return_value.
2011 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2013 2002-08-18 Aidan Skinner <aidan@velvet.net>
2015 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2016 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2018 2002-08-18 Aidan Skinner <aidan@velvet.net>
2020 * ada-lang.c: Run through gdb_indent.sh.
2021 * ada-lang.h: Run through gdb_indent.sh.
2022 * ada-tasks.c: Run through gdb_indent.sh.
2023 * ada-typeprint.c: Run through gdb_indent.sh.
2024 * ada-valprint.c: Run through gdb_indent.sh.
2026 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2028 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2031 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2033 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2035 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2036 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2038 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2039 write_register_gen instead of write_register_bytes.
2041 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2042 i[3456]-*-osf1mk* configurations have been made obsolete.
2043 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2044 i[3456]86-*-osf1mk* hosts obsolete.
2045 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2047 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2048 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2049 config/i386/i386m3.mt, config/i386/nm-m3.h,
2050 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2051 config/i386/i386mk.mh, config/i386/i386mk.mt,
2052 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2054 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2055 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2056 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2058 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2060 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2061 (hppa_value_returned_from_stack): Declare.
2062 (hppa_extract_return_value): Declare.
2063 * config/pa/hppa.mt: New file.
2064 * configure.tgt: Recognize hppa*-*-*.
2065 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2067 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2069 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2072 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2074 * top.c (gdb_rl_operate_and_get_next): Make sure
2075 operate-and-get-next functions correctly even when the history
2076 list is completely filled.
2078 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2080 * MAINTAINERS (Target Instruction Set Architectures): Rename
2081 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2082 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2083 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2084 already listed under Host/Native.
2086 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2087 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2090 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2092 * config/ia64/ia64.mt: New file.
2093 * config/alpha/alpha.mt: New file.
2094 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2095 ia64-linux-gnu. Mention that ia64-elf is broken.
2096 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2098 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2100 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2101 generic_func_frame_valid instead of func_frame_valid.
2103 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2105 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2106 procfs appears to be broken when debugging on multi-processor
2107 machines. So enable software single stepping in order to avoid
2108 using the procfs interface to do next/step operations, using
2109 internal breakpoints instead.
2111 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2112 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2113 make this pc address equal to the value it would have if the
2114 system stepping capability was used. Also set a new flag used
2115 to ensure that we don't readjust the PC one more time later.
2117 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2118 address by DECR_PC_AFTER_BREAK when software single step is
2119 in use for this architecture, as this has already been taken
2120 care of in handle_inferior_event().
2122 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2124 * infrun.c (handle_inferior_event): Minor reformatting, to make
2125 a rather long condition expression easier to read.
2127 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2129 * Makefile.in (gdbtk.o): Move to end of file.
2130 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2131 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2132 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2133 (gdbtk-wrapper.o, gdbres.o): Ditto.
2135 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2137 * Makefile.in (copying.o): Separate out compile rule.
2138 (hpux-thread.o, procfs.o, signals.o): Ditto.
2139 (v850ice.o, z8k-tdep.o): Ditto.
2140 (tui-file.o): Move to TUI section.
2141 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2142 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2144 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2146 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2147 skip_trampoline_code, for better namespace-proofing.
2149 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2151 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2153 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2155 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2157 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2158 signal, check whether we hit a breakpoint before checking for a
2159 single step breakpoint. Otherwise, GDB fails to notice that a
2160 breakpoint has been hit when stepping onto a breakpoint.
2162 2002-08-16 Keith Seitz <keiths@redhat.com>
2164 * gdb-events.sh (clear_gdb_event_hooks): New function.
2165 * gdb-events.c: Regenerate.
2166 * gdb-events.h: Regenerate.
2168 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2170 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2171 not_a_sw_breakpoint.
2172 * breakpoint.h (bpstat_stop_status): Add parameter names.
2174 2002-08-16 Grace Sainsbury <graces@redhat.com>
2176 * remote.c (remote_insert_hw_breakpoint)
2177 (remote_remove_hw_breakpoint): Fix calculation of length field
2180 2002-08-15 Michael Snyder <msnyder@redhat.com>
2182 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2183 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2184 (supply_fpregset): Ditto.
2186 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2187 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2188 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2189 (TARGET_READ_SP): Delete.
2190 (DO_REGISTERS_INFO): Delete.
2191 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2193 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2194 from macros to functions.
2196 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2197 (mips_register_convertible, mips_register_convert_to_virtual,
2198 mips_register_convert_to_raw): Make static.
2199 (mips_read_sp): New function.
2200 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2201 (mips_do_registers_info): Make static.
2202 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2203 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2204 (mips_register_convert_from_type, mips_register_convert_to_type):
2206 (mips_gdbarch_init): Set up function_start_offset,
2207 register_virtual_size, pc_in_sigtramp.
2209 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2211 * infcmd.c (vector_info): New function.
2212 (_initialize_infcmd): Add command "info vector".
2213 (print_vector_info): New function.
2215 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2216 * gdbarch.h, gdbarch.c: Regenerate.
2218 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2220 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2221 ``print_all''. Only print vector registers when ``print_all''.
2223 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2225 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2226 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2228 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2229 Add `args' parameter.
2230 * gdbarch.h, gdbarch.c: Regenerate.
2232 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2234 * infcmd.c (float_info): Call print_float_info.
2235 (print_float_info): New function. By default, print the
2236 floating-point registers.
2238 * arch-utils.h (default_print_float_info): Delete declaration.
2239 * arch-utils.c (default_print_float_info): Delete function.
2241 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2243 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2246 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2249 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2250 * configure.host: Make i[3456]86-*-aix host obsolete.
2251 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2252 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2253 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2254 config/i386/xm-i386aix.h: Make files obsolete.
2255 * i386aix-nat.c: Make file obsolete.
2256 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2257 (i386aix-nat.o): Make target obsolete.
2259 * config/i386/nm-gnu.h: Removed.
2260 * config/i386/nm-i386gnu.h: New file.
2261 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2262 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2264 * config/i386/tm-i386gnu.h: ... here. Removed.
2265 * config/i386/xm-i386gnu.h: Removed.
2266 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2267 (NAT_FILE): Set to nm-i386gnu.h.
2268 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2269 * i386-tdep.c: New file.
2270 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2271 (i386gnu-tdep.o): Specify dependencies.
2273 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2275 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2276 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2277 Adjust a few comments to reflect reality a bit closer.
2278 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2279 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2280 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2281 target_insert_watchpoint, target_remove_watchpoint):
2283 * config/i386/nm-i386sco5.h: ... here.
2284 (kernel_u_size): Add prototype. Improve a few comments and add
2285 protection against multiple inclusion.
2287 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2290 * uw-thread.c (SP_ARG0): Define if not already defined.
2291 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2293 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2295 * config/i386/tm-i386.h: Don't include "regcache.h".
2297 * i387-tdep.h (i387_print_float_info): New prototype.
2298 * i387-tdep.c (print_i387_value, print_i387_ext,
2299 print_i387_status_word, print_i387_control_word): Add `struct
2300 ui_file *' argument and use it for output.
2301 (i387_print_float_info): Renamed from i387_float_info. Add
2302 `struct gdbarch *' and `struct ui_file *' arguments and use the
2304 * i386-tdep.c: Include "i387-tdep.h".
2305 (i386_gdbarch_init): Set print_float_info.
2306 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2307 (FLOAT_INFO): Remove define.
2309 2002-08-13 Michael Snyder <msnyder@redhat.com>
2311 * mips-tdep.c (mips_push_arguments): Rename to
2312 mips_eabi_push_arguments, and tune for EABI.
2313 (MIPS_REGS_HAVE_HOME_P): Delete.
2314 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2315 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2316 Delete references to mips_regs_have_home_p.
2318 2002-08-14 Keith Seitz <keiths@redhat.com>
2320 * Makefile.in (install-gdbtk): Create insight plugin directory.
2321 Install plugins.tcl file.
2323 2002-08-14 Keith Seitz <keiths@redhat.com>
2325 * configure.in: Move SUBDIRS to near top of the file so that
2326 --enable options may add things to it.
2327 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2328 * configure: Regenerate.
2330 2002-08-13 Michael Snyder <msnyder@redhat.com>
2332 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2333 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2334 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2336 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2338 * vax-tdep.c (vax_get_saved_register): Delete function.
2339 (vax_gdbarch_init): Update.
2340 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2341 (ns32k_gdbarch_init): Update.
2342 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2343 (alpha_gdbarch_init): Update.
2345 2002-08-13 Andrew Cagney <cagney@redhat.com>
2347 * regcache.c (init_regcache_descr): Overallocate the
2348 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2349 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2351 (set_register_cached): Add range checking assertions. Use
2354 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2356 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2357 numbers for MMX registers.
2359 2002-08-13 Andrew Cagney <cagney@redhat.com>
2361 * i386-tdep.c (i386_gdbarch_init): Use
2362 generic_unwind_get_saved_register.
2364 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2366 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2367 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2369 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2370 Delete. Add comment regarding this now-deleted target method.
2372 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2374 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2375 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2376 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2377 real PC and the page number (if it's within the memory bank window).
2378 (m68hc11_pseudo_register_write): Likewise when saving.
2379 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2380 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2381 (m68hc11_register_raw_size): And use 32-bit for it.
2382 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2383 16K memory bank is used by the prog; also use the virtual pc.
2385 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2387 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2388 (m68hc11_gdbarch_init): Install it in gdbarch.
2389 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2390 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2391 (MSYMBOL_SIZE): New for documentation.
2392 (insn_return_kind): Enum to specify how a function returns.
2393 (frame_extra_info): Cleanup and record the return mode.
2394 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2395 register in address computation.
2396 (m68hc11_get_return_insn): New to obtain the return instruction used
2398 (m68hc11_frame_init_saved_regs): Take into account the return
2399 instruction used by the function for far and interrupt functions.
2400 (m68hc11_init_extra_frame_info): Take into account page register.
2401 (m68hc11_frame_args_address): Adjust according to the return mode.
2402 (show_regs): Print page register only when it's used.
2404 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2406 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2407 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2408 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2410 (m68hc11_register_raw_size): Likewise.
2412 2002-08-13 Andrew Cagney <cagney@redhat.com>
2414 * i386-tdep.c (i386_register_name): Handle mmx registers.
2415 (mmx_regnum_p): New function.
2416 (i386_mmx_names): New array.
2417 (mmx_num_regs): New variable.
2418 (i386_pseudo_register_read): New function.
2419 (i386_pseudo_register_write): New function.
2420 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2422 * regcache.c (regcache_raw_read_unsigned): New function.
2423 (regcache_raw_read_signed): New function.
2424 * regcache.h (regcache_raw_read_unsigned): Declare.
2425 (regcache_raw_read_signed): Declare.
2427 2002-08-13 Andrew Cagney <cagney@redhat.com>
2429 * regcache.c (regcache_raw_read_as_address): Delete function.
2430 (regcache_cooked_read_signed): New function.
2431 (regcache_cooked_read_unsigned): New function.
2432 * regcache.h (regcache_cooked_read_signed): Declare.
2433 (regcache_cooked_read_unsigned): Declare.
2434 (regcache_raw_read_as_address): Delete declaration.
2436 * blockframe.c (generic_read_register_dummy): Use
2437 regcache_cooked_read_unsigned.
2438 * i386-tdep.c (i386_extract_struct_value_address): Use
2439 regcache_cooked_read_unsigned.
2441 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2444 double sizes according to ELF ABI flags.
2445 (gdbarch_tdep): Record elf_flags.
2447 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2449 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2450 (m6812_prolog): They can appear in 68HC12 function prologue.
2451 (m68hc11_frame_chain): Cleanup.
2453 2002-08-12 Andrew Cagney <cagney@redhat.com>
2455 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2457 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2458 (i386_linux_register_raw_size): Delete function.
2459 (i386_linux_init_abi): Update.
2460 * i386-tdep.c (i386_register_raw_size): Delete function.
2461 (i386_register_byte): Delete function.
2462 (i386_gdbarch_init): Update.
2463 (i386_register_size): Delete array.
2464 (i386_register_offset): Delete array.
2466 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2467 (REGISTER_RAW_SIZE): Delete macro.
2468 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2469 (REGISTER_BYTE): Delete macro.
2471 2002-08-11 Aidan Skinner <aidan@velvet.net>
2473 * ada-lang.c (ada_lookup_partial_symbol)
2474 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2475 prototype names so that grep ^func works properly.
2477 * ada-lang.c (ada_array_element_type)
2478 (ada_lookup_partial_symbol): Fix typos in parameter list.
2480 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2481 Fix prototype names so that grep ^func works properly.
2483 2002-08-10 Andrew Cagney <cagney@redhat.com>
2484 Elena Zannoni <ezannoni@redhat.com>
2485 Martin M. Hunt <hunt@redhat.com>
2487 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2488 (build_builtin_type_vec128i): Set the vector bit.
2489 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2490 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2491 (build_builtin_type_vec64): New function.
2492 (build_builtin_type_vec64i): New function.
2493 (build_gdbtypes): Initialize builtin_type_vec64 and
2494 builtin_type_vec64i.
2496 2002-08-09 Andrew Cagney <cagney@redhat.com>
2498 * regcache.c (regcache_dump): Compare the register offset
2500 * arch-utils.c (generic_register_byte): New function.
2501 * arch-utils.h (generic_register_byte): Declare.
2502 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2503 * gdbarch.h, gdbarch.c: Regenerate.
2505 2002-08-09 Andrew Cagney <cagney@redhat.com>
2507 * regcache.c: Include "gdbcmd.h"
2508 (_initialize_regcache): Add commands "maintenance print
2509 registers", "maintenance print raw-registers" and "maintenance
2510 print cooked-registers".
2511 (enum regcache_dump_what): Define.
2512 (dump_endian_bytes): New function.
2513 (regcache_dump): New function.
2514 (regcache_print): New function.
2515 (maintenance_print_registers): New function.
2516 (maintenance_print_raw_registers): New function.
2517 (maintenance_print_cooked_registers): New function.
2518 * Makefile.in (regcache.o): Update dependencies.
2520 2002-08-09 Michael Snyder <msnyder@redhat.com>
2522 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2523 (mips_push_arguments): Correct some comments. Use paddr_nz
2524 for printing addresses in debug output. Replace static
2525 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2526 (mips_n32n64_push_arguments): New function, cloned from
2527 mips_push_arguments and tuned for the n32/n64 ABI.
2528 (mips_push_register): Buffer needs dynamic allocation.
2529 (mips_print_register): Ditto.
2530 (do_gp_register_row): Ditto.
2531 (mips_store_return_value): Ditto.
2532 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2534 2002-08-09 Don Howard <dhoward@redhat.com>
2536 * memattr.c (mem_info_command): Print special case of upper bound
2537 as max CORE_ADDR + 1.
2539 2002-08-08 Michael Snyder <msnyder@redhat.com>
2541 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2542 returns structs by ref if they're too big to fit in two registers.
2544 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2546 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2548 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2549 mips_find_saved_regs().
2550 (mips_pop_frame): Likewise.
2552 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2554 * blockframe.c (frame_saved_regs_register_unwind): Revise
2555 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2558 2002-08-09 Grace Sainsbury <graces@redhat.com>
2560 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2561 T-packets; the 'a' is not taken as a register number.
2562 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2563 (remote_stopped_data_address): New functions; add to target
2565 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2566 prototypes to match other implementations of this
2567 function. replace integer argument with pointer -- the length
2568 field in the Z-packet is the length of what is pointed to or 1 if
2569 pointer is null. Add to target vector.
2570 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2574 * remote.c (remote_wait): Add support to extract optional
2575 watchpoint information from T-packet. Ignore unrecognized
2576 optional info in T-packet.
2577 (remote_async_wait): Ditto.
2579 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2581 * cli/cli-dump.c: Change fopen modes to use binary open modes
2582 as defined in include/fopen-bin.h throughout.
2584 2002-08-08 Michael Snyder <msnyder@redhat.com>
2586 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2588 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2590 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2591 assertion failure by returning early after a warning.
2593 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2595 * mips-tdep.c (mips_find_saved_regs): Make static.
2596 (mips_frame_init_saved_regs): New function.
2597 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2598 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2599 (mips_find_saved_regs): Delete declaration.
2601 2002-08-08 Grace Sainsbury <graces@redhat.com>
2603 * remote.c (remote_wait, remote_async_wait): Change
2604 thread_num from int to ULONGEST.
2605 (unpack_varlen_hex): Change result parameter from
2606 int * to ULONGEST *.
2608 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2610 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2611 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2613 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2615 2002-08-08 Andrew Cagney <cagney@redhat.com>
2617 * gcore.c (override_derive_stack_segment): Delete variable.
2618 (preempt_derive_stack_segment): Delete function.
2619 (derive_stack_segment): Delete function.
2620 (default_derive_stack_segment): Renamed to derive_stack_segment.
2621 (override_derive_heap_segment): Delete variable.
2622 (preempt_derive_heap_segment): Delete function.
2623 (derive_heap_segment): Delete function.
2624 (default_derive_heap_segment): Rename to derive_heap_segment.
2626 2002-08-06 Michael Snyder <msnyder@redhat.com>
2628 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2629 * mips-tdep.c (mips_EABI_use_struct_convention,
2630 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2631 New functions. (mips_use_struct_convention): Delete.
2632 (mips_gdbarch_init): set use_gdbarch_convention.
2634 2002-08-06 Michael Snyder <msnyder@redhat.com>
2636 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2637 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2638 mips_o32_reg_struct_has_addr): New functions.
2639 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2641 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2643 * regcache.c (pseudo_register): Delete function.
2644 (fetch_register): Delete function.
2645 (store_register): Delete function.
2646 (regcache_raw_read, legacy_read_register_gen): Use
2647 target_fetch_registers instead of fetch_register.
2648 (legacy_write_register_gen, regcache_raw_write): Use
2649 target_store_register instead of store_register.
2650 (write_register_bytes): Ditto.
2652 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2653 (STORE_PSEUDO_REGISTER): Delete.
2654 * gdbarch.h, gdbarch.c: Regenerate.
2656 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2658 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2659 write dump file binary.
2661 2002-08-05 Michael Snyder <msnyder@redhat.com>
2663 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2664 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2665 (mips_gdbarch_init): Set N32 target to be mips64.
2667 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2669 * frame.c (find_saved_register): Break out of loop once saved
2670 register address is found. Don't mention sparc in loop comment
2673 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2675 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2676 mips_default_saved_regsize to 8.
2678 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2680 * gcore.c: Do not include <sys/procfs.h>.
2681 * Makefile.in (gcore.o): Update dependencies.
2683 2002-08-06 Andrew Cagney <cagney@redhat.com>
2685 * configure.tgt: Make arc-*-* obsolete.
2686 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2687 * MAINTAINERS: Make arc-elf obsolete.
2688 * arc-tdep.c: Make file obsolete.
2689 * config/arc/arc.mt: Ditto.
2690 * config/arc/tm-arc.h: Ditto.
2692 2002-08-05 Theodore A. Roth <troth@verinet.com>
2694 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2696 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2698 * mcore-tdep.c (mcore_gdbarch_init): Use
2699 generic_unwind_get_saved_register instead of
2700 generic_get_saved_register.
2701 * v850-tdep.c (v850_gdbarch_init): Ditto.
2702 * frv-tdep.c (frv_gdbarch_init): Ditto.
2703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2704 * s390-tdep.c (s390_gdbarch_init): Ditto.
2705 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2706 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2707 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2709 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2711 * objfiles.h: Add missing #include "symfile.h"
2713 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2715 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2717 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2718 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2721 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2723 * NEWS: Cleanup and nitpick.
2725 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2727 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2729 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2731 * Makefile.in (gdbtk-bp.o): Update dependencies.
2732 (gdbtk-register.o): Ditto.
2733 (gdbtk-varobj.o): Ditto.
2735 2002-08-03 Andrew Cagney <cagney@redhat.com>
2737 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2738 m68hc11_fetch_pseudo_register.
2739 (m68hc11_pseudo_register_write): Replace
2740 m68hc11_store_pseudo_register.
2741 (m68hc11_gdbarch_init): Update.
2743 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2745 * gdbarch.sh: Include "gdb_string.h".
2746 * gdbarch.c: Regenerate.
2748 * regcache.c: Include "gdb_string.h".
2749 * ax-general.c: Ditto.
2751 * std-regs.c: Ditto.
2752 * fbsd-proc.c: Ditto.
2755 * Makefile.in (regcache.o): Update dependencies.
2756 (thread.o, gdbarch.o): Ditto.
2757 (ax-general.o, gdbarch.o): Ditto.
2758 (varobj.o, std-regs.o): Ditto.
2759 (fbsd-proc.o): Specify dependencies.
2761 2002-08-02 Andrew Cagney <cagney@redhat.com>
2763 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2765 (regcache_cooked_write): Ditto.
2767 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2769 * regcache.c (regcache_cooked_read): New function.
2770 (regcache_cooked_write): New function.
2771 (read_register_gen): Rewrite using regcache_cooked_read.
2772 (write_register_gen): Rewrite using regcache_cooked_write.
2774 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2777 2002-08-02 Andrew Cagney <cagney@redhat.com>
2779 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2780 Replace the architecture methods register_read and register_write.
2781 * gdbarch.h, gdbarch.c: Regenerate.
2782 * regcache.c (init_regcache_descr): Update.
2783 (read_register_gen): Update.
2784 (write_register_gen): Update.
2785 (supply_register): Update comment.
2787 * sh-tdep.c (sh_gdbarch_init): Update.
2788 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2789 `regcache' and `gdbarch' parameters. Make `buffer' a void
2790 pointer. Update code.
2791 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2792 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2793 void pointer. Update code.
2794 (sh64_register_write): Delete.
2795 (sh4_register_read): Delete.
2796 (sh64_register_read): Delete.
2797 (sh4_register_write): Delete.
2798 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2799 void pointer, `to' parameter a void pointer.
2800 (sh_sh64_register_convert_to_raw): Ditto.
2802 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2804 * mips-tdep.c (mips_register_virtual_type): Use architecture
2805 invariant return values.
2807 2002-08-01 Andrew Cagney <cagney@redhat.com>
2809 * linux-proc.c: Include "gdb_string.h".
2810 * Makefile.in (linux-proc.o): Update dependency list.
2812 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2814 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2817 2002-08-01 Grace Sainsbury <graces@redhat.com>
2819 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2820 to_insert_watchpoint, to_remove_watchpoint,
2821 to_stopped_by_watchpoint, to_stopped_data_address,
2822 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2823 target vecctor. Define their corresponding macros so they call
2826 * target.c: Add default and debug versions of for
2827 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2828 to_insert_watchpoint, to_remove_watchpoint,
2829 to_stopped_by_watchpoint, to_stopped_data_address,
2830 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2832 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2834 * mips-tdep.c (mips_register_virtual_type): New function.
2835 (mips_gdbarch_init): Register mips_register_virtual_type()
2836 with gdbarch machinery.
2837 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2838 this file instead of tm-bigmips.h.
2839 (MIPS_REGSIZE): Delete this macro.
2840 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2841 multiarch version in mips-tdep.c will be found.
2843 2002-08-01 Andrew Cagney <cagney@redhat.com>
2845 * NEWS: Menion that CHILL has been made obsolete.
2847 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2848 * stabsread.c (read_range_type): Ditto.
2849 * gdbtypes.h: Ditto.
2850 * language.c (binop_type_check): Ditto.
2851 (binop_result_type): Ditto.
2852 (integral_type): Ditto.
2853 (character_type): Ditto.
2854 (string_type): Ditto.
2855 (boolean_type): Ditto.
2856 (structured_type): Ditto.
2857 (lang_bool_type): Ditto.
2858 (binop_type_check): Ditto.
2859 * language.h (_LANG_chill): Ditto.
2860 * dwarfread.c (set_cu_language): Ditto.
2861 * dwarfread.c (CHILL_PRODUCER): Ditto.
2862 * dwarfread.c (handle_producer): Ditto.
2863 * expression.h (enum exp_opcode): Ditto.
2864 * eval.c: Ditto for comments.
2865 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2866 * expprint.c (print_subexp): Ditto.
2867 (print_subexp): Ditto.
2868 * valops.c (value_cast): Ditto.
2869 (search_struct_field): Ditto.
2870 * value.h (COERCE_VARYING_ARRAY): Ditto.
2871 * symfile.c (init_filename_language_table): Ditto.
2872 (add_psymbol_with_dem_name_to_list): Ditto.
2873 * valarith.c (value_binop): Ditto.
2875 * valops.c (value_slice): Ditto.
2876 * symtab.h (union language_specific): Ditto.
2877 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2878 (SYMBOL_DEMANGLED_NAME): Ditto.
2879 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2880 * defs.h (enum language): Ditto.
2881 * symtab.c (got_symtab): Ditto.
2882 * utils.c (fprintf_symbol_filtered): Ditto.
2884 * ch-typeprint.c: Make file obsolete.
2885 * ch-valprint.c: Make file obsolete.
2886 * ch-lang.h: Make file obsolete.
2887 * ch-exp.c: Make file obsolete.
2888 * ch-lang.c: Make file obsolete.
2890 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2892 (TARGET_FLAGS_TO_PASS): Ditto.
2893 (CHILLFLAGS): Obsolete.
2895 (CHILL_FOR_TARGET): Obsolete.
2896 (CHILL_LIB): Obsolete.
2897 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2899 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2900 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2902 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2905 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2907 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2908 This does not change anything at the moment, but will be helpful
2909 later when full Ada support is integrated.
2911 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2913 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2916 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2918 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2919 and save it in a local variable. Use variable in later test.
2921 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2923 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2924 test. (Thanks to Daniel Jacobowitz.)
2926 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2928 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2929 (mips_abi_strings): Add "n64".
2930 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2932 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2934 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2935 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2937 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2939 * utils.c (host_pointer_to_address, address_to_host_pointer):
2940 Use gdb_assert() instead of explicit call to internal_error().
2942 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2944 * Makefile.in (rs6000-nat.o): Update dependencies.
2946 From Nicholas Duffek:
2947 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2948 (aix-thread.o): New rule.
2949 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2950 * config/powerpc/aix432.mh: New file.
2952 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2954 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2955 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2956 (fetch_core_registers, ppc_linux_supply_gregset)
2957 (ppc_linux_supply_fpregset): New functions.
2958 (ppc_linux_regset_core_fns): New.
2959 (_initialize_ppc_linux_tdep): Call add_core_fns.
2960 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2961 and ppc_linux_supply_gregset.
2962 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2963 (supply_fpregset): Call ppc_linux_supply_fpregset.
2964 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2966 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2968 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2970 * symtab.c (lookup_symbol): Demangle before lowercasing.
2972 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2974 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2976 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2977 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2978 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2979 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2981 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2982 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2983 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2984 (avr-tdep.o, mon960-rom.o): Ditto.
2985 (aout_stabs_gnu_h): Define.
2986 (symtab_h): Remove $(gdb_obstack_h).
2988 2002-07-30 Jim Blandy <jimb@redhat.com>
2990 Patch from David Carlton <carlton@math.stanford.edu>:
2991 * gdbinit.in: Move the `dir' commands that add GDB's own source
2992 directory to the search path to the end, so that the `gdb' source
2993 directory will be searched first.
2995 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2997 * gdb_obstack.h: New file.
2998 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2999 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3000 * objfiles.h: Include "gdb_obstack.h".
3001 * Makefile.in (gdb_obstack_h): Define.
3002 (symtab_h): Add $(gdb_obstack_h).
3003 (objfiles_h): Add $(gdb_obstack_h).
3005 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3006 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3007 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3008 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3009 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3010 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3011 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3012 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3014 * Makefile.in (bcache.o): Update dependencies.
3015 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3016 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3017 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3018 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3019 (stabsread.o, symfile.o, symmisc.o): Ditto.
3020 (symtab.o, typeprint.o, macroexp.o): Ditto.
3021 (macrotab.o, mdebugread.o): Ditto.
3022 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3023 (coff_ecoff_h, aout_aout64_h): Define.
3024 (aout_stabs_gnu_h, libaout_h): Define.
3026 2002-07-29 Andrew Cagney <cagney@redhat.com>
3028 * regcache.c (struct regcache_descr): Rename nr_registers to
3029 nr_cooked_registers. Revise comments describing the structure
3031 (init_regcache_descr): Update.
3032 (init_legacy_regcache_descr): Update.
3033 (read_register_gen, write_register_gen): When a cooked register in
3034 the raw register range, directly access the value from the raw
3037 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3039 * z8k-tdep.c: Do not include "obstack.h".
3040 * h8300-tdep.c, h8500-tdep.c: Ditto.
3041 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3042 * valprint.c, v850-tdep.c: Ditto.
3043 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3044 * mn10200-tdep.c: Ditto.
3046 * Makefile.in (z8k-tdep.o): Update dependencies.
3047 (m68hc11-tdep.o, valprint.o): Ditto.
3048 (v850-tdep.o, d10v-tdep.o): Ditto.
3049 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3050 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3051 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3052 (sh_opc_h, gdb_sim_sh_h): Define.
3053 (elf_sh_h, elf_bfd_h): Define.
3054 (opcode_m68hc11_h): Define.
3055 (OPCODES_SRC, OPCODES_DIR): define.
3056 (OPCODES): Use $(OPCODES_DIR).
3057 (gdb_sim_d10v_h): Rename sim_d10v_h.
3058 (gdb_sim_arm_h): Rename sim_arm_h.
3060 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3062 * utils.c (host_pointer_to_address, address_to_host_pointer):
3063 Change internal_error() message to indicate function responsible
3066 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3068 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3069 calls to local_hex_string_custom().
3071 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3073 * irix5-nat.c: Move IRIX shared library support from here...
3074 * solib-irix.c: ...to here. Revised substantially to work with
3075 generic solib framework.
3077 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3078 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3079 * mips-irix-tdep.c: New file.
3081 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3082 (mips-irix-tdep.o, solib-irix.o): New rules.
3083 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3085 * config/mips/irix6.mt (TDEPFILES): Likewise.
3086 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3088 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3090 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3091 disabled (via ``#if 0'') includes.
3093 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3095 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3096 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3097 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3098 Add support for the fpscr register.
3099 * rs6000-nat.c (regmap, fetch_inferior_registers)
3100 (store_inferior_registers, fetch_core_registers): Likewise.
3102 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3104 * rs6000-nat.c (language.h): Include.
3105 (special_regs): Delete this array.
3106 (regmap): New function.
3107 (fetch_register, store_register): Use regmap() to map gdb
3108 register numbers to ptrace register numbers. Also, use
3109 outputs from regmap() to make decisions regarding type of
3110 ptrace() call to make. In particular, don't compare against
3111 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3112 (fetch_inferior_registers, store_inferior_registers): Where
3113 possible, obtain register numbers from tdep struct. Don't
3114 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3115 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3116 (LAST_UISA_SP_REGNUM): Delete.
3118 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3120 * rs6000-nat.c (ppc-tdep.h): Include.
3121 (fetch_registers, store_register, fetch_core_registers): Don't
3122 access registers[] directly. Instead, use supply_register() or
3123 regcache_collect() as appropriate.
3124 (find_toc_address): Format hex address with local_hex_string().
3126 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3128 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3131 2002-07-24 Tom Tromey <tromey@redhat.com>
3133 * jv-exp.y: Marked all strings with _().
3134 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3136 (MethodInvocation, CastExpression, parse_number, yyerror,
3137 java_type_from_name, push_expression_name, yylex): Typo fixes.
3139 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3141 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3142 (tee_file_flush, tee_file_write, tee_file_fputs)
3143 (tee_file_isatty): New.
3144 * ui-file.h (tee_file_new): Add prototype.
3146 2002-07-24 Aidan Skinner <aidan@velvet.net>
3148 * ada-lang.c: Change k&r style function definitions to prototyped
3150 * ada-typeprint.c: Change k&r style function definitions to prototyped
3152 * ada-valprint.c: Change k&r style function definitions to prototyped
3155 2002-07-24 Andrew Cagney <cagney@redhat.com>
3157 * README: Remove reference to remote-bug.
3158 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3160 (m88k-nat.o): Delete rule.
3161 (m88k-tdep.o): Delete rule.
3162 (remote-bug.o): Delete rule.
3163 * MAINTAINERS: Mark as obsolete.
3164 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3165 * m88k-tdep.c: Make file obsolete.
3166 * config/m88k/m88k.mh: Ditto.
3167 * config/m88k/delta88v4.mh: Ditto.
3168 * config/m88k/delta88v4.mt: Ditto.
3169 * config/m88k/delta88.mt: Ditto.
3170 * config/m88k/delta88.mh: Ditto.
3171 * remote-bug.c: Ditto.
3172 * config/m88k/tm-delta88.h: Ditto.
3173 * config/m88k/nm-delta88v4.h: Ditto.
3174 * config/m88k/xm-delta88.h: Ditto.
3175 * config/m88k/xm-dgux.h: Ditto.
3176 * config/m88k/tm-m88k.h: Ditto.
3177 * config/m88k/nm-m88k.h: Ditto.
3178 * config/m88k/tm-delta88v4.h: Ditto.
3179 * m88k-nat.c: Ditto.
3180 * cxux-nat.c: Ditto.
3181 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3182 and m88*-*-* obsolete.
3183 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3186 2002-07-24 Andrew Cagney <cagney@redhat.com>
3188 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3189 constant. Same for local pointer variables.
3190 (extract_signed_integer): Ditto.
3191 * defs.h (extract_unsigned_integer): Update.
3192 (extract_signed_integer): Update.
3194 2002-07-24 Andrew Cagney <cagney@redhat.com>
3196 * regcache.c (regcache_raw_write): Change buf parameter to a
3197 constant void pointer.
3198 (regcache_raw_read): Change buf parameter to a void pointer.
3199 (legacy_write_register_gen): Change myaddr parameter a constant
3201 (supply_register): Change val parameter to a const void pointer.
3202 * regcache.h (regcache_raw_write): Update declaration.
3203 (regcache_raw_read): Update declaration.
3204 (supply_register): Update declaration.
3206 2002-07-24 Tom Tromey <tromey@redhat.com>
3208 * defs.h (gdb_readline_wrapper): Declare.
3209 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3210 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3211 * top.c (gdb_readline_wrapper): New function.
3212 (command_line_input): Use it.
3214 2002-07-24 Andrew Cagney <cagney@redhat.com>
3216 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3217 regcache_read and regcache_write.
3218 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3219 * regcache.c: Update.
3220 * sh-tdep.c (sh64_push_arguments): Update comment.
3221 (sh_pseudo_register_read): Update.
3222 (sh_pseudo_register_write): Update.
3223 (sh4_register_read): Update.
3224 (sh4_register_write): Update.
3225 (sh64_pseudo_register_read): Update.
3226 (sh64_pseudo_register_write): Update.
3227 (sh64_register_read): Update.
3228 (sh64_register_write): Update.
3229 * i386-tdep.c (i386_extract_return_value): Update.
3230 (i386_extract_struct_value_address): Update.
3231 (i386_extract_return_value): Update.
3232 * blockframe.c (generic_read_register_dummy): Update.
3233 (generic_call_dummy_register_unwind): Update
3234 * infrun.c (write_inferior_status_register): Update.
3236 2002-07-23 Jim Blandy <jimb@redhat.com>
3238 * parser-defs.h (expression_context_pc): Make this extern.
3239 (Thanks to Michael Snyder.)
3241 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3243 GDB 5.2.1 released from 5.2 branch.
3244 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3245 * README: Update to mention 5.2.1.
3247 2002-07-23 Mark Salter <msalter@redhat.com>
3249 * remote.c (remote_read_bytes): Fix check for error.
3251 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3253 * aix-thread.c (language.h): Include.
3254 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3255 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3256 Print newlines at end of debug messages.
3257 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3258 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3260 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3262 * aix-thread.c (ppc-tdep.h): Include.
3263 (special_register_p): New function.
3264 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3265 (store_regs_user_thread): Use register number information from
3266 gdbarch_tdep struct instead of hardcoded offsets relative to
3267 FIRST_UISA_SP_REGNUM.
3268 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3269 special_register_p() instead of using FPLAST_REGNUM and
3270 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3271 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3272 will be MQ's register number.
3274 2002-07-22 Michael Snyder <msnyder@redhat.com>
3276 * aix-thread.c (ops): Rename to aix_thread_ops.
3277 (base_ops): Rename to base_target.
3278 (ops_attach): Rename to aix_thread_attach.
3279 (ops_detach): Rename to aix_thread_detach.
3280 (ops_resume): Rename to aix_thread_detach.
3281 (ops_wait): Rename to aix_thread_wait.
3282 (ops_kill): Rename to aix_thread_kill.
3283 (init_ops): Rename to init_aix_thread_ops.
3284 (ops_fetch_register): Rename to aix_thread_fetch_register.
3285 (ops_store_register): Rename to aix_thread_store_register.
3286 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3287 (ops_thread_alive): Rename to aix_thread_thread_alive.
3288 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3289 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3290 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3291 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3292 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3293 (store_regs_lib): Rename to store_regs_user_thread.
3294 (store_regs_kern): Rename to store_regs_kernel_thread.
3296 2002-07-22 Michael Snyder <msnyder@redhat.com>
3298 * aix-thread.c (ops_prepare_to_store): Eliminate.
3299 (init_ops): Don't initialize ops.prepare_to_store.
3300 (store_regs_kern): Pre-fetch register buffers from child,
3301 because some registers may not be in the cache. Copy
3302 regs from register cache only if they are cached.
3303 (store_regs_lib): Copy regs from register cache only
3305 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3306 fill_gprs64): Ditto.
3308 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3310 * aix-thread.c (gdb_assert.h): Include.
3311 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3312 register sizes (from register cache) match size of buffer holding
3314 (fill_sprs32): Change parameter types to match those in the ptrace()
3316 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3317 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3319 2002-07-22 Michael Snyder <msnyder@redhat.com>
3321 * aix-thread.c (supply_sprs64): Cosmetic change.
3322 (supply_sprs32): Cosmetic change.
3323 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3324 (fill_sprs64): Use regcache_collect instead of read_register.
3325 (store_regs_lib): Use regcache_collect instead of
3326 read_register. Use fill_sprs32 instead of fill_sprs64,
3327 if debugging a 32-bit architecture.
3328 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3329 out of the register cache, instead of passing a pointer into
3330 the register cache directly to ptrace. Use regcache_collect
3331 insteaad of read_register.
3332 (ops_prepare_to_store): Use target_read_registers instead
3333 of read_register_bytes.
3335 2002-07-20 Aidan Skinner <aidan@velvet.net>
3337 * MAINTAINERS: Add self under write after approval.
3339 2002-07-20 Aidan Skinner <aidan@velvet.net>
3341 * ada-tasks.c: Change k&r style function definitions to prototyped
3344 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3346 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3347 * x86-64-tdep.c: Include "objfiles.h".
3348 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3349 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3351 2002-07-17 Michal Ludvig <michal@suse.cz>
3353 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3354 (update_context): Initialise cfa variable.
3356 2002-07-17 Michael Snyder <msnyder@redhat.com>
3358 * aix-thread.c: Shorten some long lines.
3359 Bring comments into line with code spec.
3361 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3363 * infrun.c: Re-indent using gdb_indent.sh.
3365 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3367 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3368 Leave the indentation temporarily untouched, to minimize the diffs.
3370 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3372 * stabsread.c: Make os9k sections of the code obsolete,
3374 * stabsread.h: Make os9k sections of the code obsolete.
3376 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3378 * linux-low.c (regsets_store_inferior_registers): Add free()
3379 at the end of a loop to prevent memory leak.
3380 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3381 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3382 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3384 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3386 2002-07-17 Jim Blandy <jimb@redhat.com>
3388 * macrocmd.c (info_macro_command): Remove newline from error
3391 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3393 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3394 (sh_gdbarch_init): Use it for sh-dsp.
3396 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3398 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3399 64-bit DWARF2 format.
3401 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3403 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3404 <sys/proc.h> when not available.
3406 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3408 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3409 * stabsread.c: Make os9k sections of the code obsolete.
3410 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3411 * config/i386/i386os9k.mt: Make file obsolete.
3412 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3413 (COMMON_OBS): Remove os9kread.o
3414 (SFILES): Remove os9kread.c.
3415 (os9kread.o, remote-os9k.o): Make target obsolete.
3416 * remote-os9k.c: Make file obsolete.
3417 * os9kread.c: Make file obsolete.
3420 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3422 * NEWS: Mention that the FR30 has been made obsolete.
3423 * fr30-tdep.c: Make file obsolete.
3424 * config/fr30/tm-fr30.h: Ditto.
3425 * config/fr30/fr30.mt: Ditto.
3426 * configure.tgt: Make fr30-*-elf obsolete.
3427 * MAINTAINERS: Make fr30-elf obsolete.
3429 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3431 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3432 found is not inside a section.
3434 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3436 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3438 (pdc_realloc): Use xrealloc() instead of realloc().
3440 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3442 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3443 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3444 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3447 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3449 * aix-thread.c (ptrace_check): Eliminate goto.
3450 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3453 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3455 * aix-thread.c (gdbcmd.h): Include.
3456 (DEBUG, DBG, DBG2, dbg): Eliminate.
3457 (debug_aix_thread): New static global.
3458 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3459 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3460 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3461 invocations to DBG and DBG2 macros to test against
3462 ``debug_aix_thread'' and call fprintf_unfiltered().
3463 (_initialize_aix_thread): Add new command "set debug aix-thread".
3465 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3467 From Gerhard Tonn <TON@de.ibm.com>:
3468 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3469 instead of supply_register.
3471 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3473 * dwarf2cfi.c: Include "gdb_assert.h".
3474 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3476 (update_context): Do not use __func__. Add missing ``break''.
3477 (update_context): Do not use __func__.
3479 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3481 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3482 and its setting. Set gdbarch instruction printing functions
3483 directly. For non-rs6000 case use new function
3484 gdb_print_insn_powerpc.
3485 (gdb_print_insn_powerpc): New function.
3487 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3489 * NEWS: Mention that the d30v has been marked obsolete.
3490 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3491 * configure.tgt: Mark d30v-*-* as obsolete.
3492 * d30v-tdep.c: Mark file as obsolete.
3493 * config/d30v/d30v.mt: Ditto.
3494 * config/d30v/tm-d30v.h: Ditto.
3496 2002-07-13 Aidan Skinner <aidan@velvet.net>
3498 * ada-tasks.c (add_task_entry): replace calls to
3499 malloc() with xmalloc
3500 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3502 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3503 ada_finish_decode_line_1, all_sals_for_line
3504 ada_breakpoint_rewrite): replace calls to free() with xfree()
3506 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3508 From Nicholas Duffek (with minor changes by Martin Hunt,
3509 Louis Hamilton, and Kevin Buettner):
3510 * aix-thread.c: New file.
3512 2002-07-12 Petr Sorfa <petrs@caldera.com>
3514 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3515 complaint for invalid attribute class or form.
3516 (read_func_scope): DW_AT_frame_base
3517 better handling of DW_AT_block*.
3518 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3519 better handling of DW_AT_block*.
3520 (read_common_block): DW_AT_location
3521 better handling of DW_AT_block*.
3522 (read_partial_die): DW_AT_location better handling
3524 (new_symbol): DW_AT_external better handling of
3525 DW_AT_block*. Proper initialization of variable
3527 (attr_form_is_block): New function that returns true
3528 if the attribute's form is of DW_FORM_block*.
3530 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3532 * valops.c (find_method_list): Remove comment about
3533 removed STATIC_MEMFUNCP argument.
3534 (value_find_oload_method_list): Likewise.
3536 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3538 From Nicholas Duffek:
3539 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3540 target_new_objfile_hook.
3542 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3544 From Nicholas Duffek:
3545 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3548 2002-07-12 Andrew Cagney <cagney@redhat.com>
3550 * MAINTAINERS: Mention --enable-sim-build-warnings.
3551 (m68hc11-elf): Disable sim build warnings.
3552 (m32r-elf): Mark as broken obsolete candidate.
3553 (x86_64-linux-gnu): Mark as buildable with -Werror.
3554 (arm-elf): Change -w to ``,'' which enables warnings but not
3557 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3559 * bcache.h: Update copyright.
3560 (struct bstring, struct bcache): Move definition to "bcache.c".
3561 Replaced by opaque declaration.
3562 (bcache_xfree): Replace free_bcache.
3563 (bcache_xmalloc, bcache_memory_used): Declare.
3565 * bcache.c: Update copyright.
3566 (struct bstring, struct bcache): Moved to here from "bcache.h".
3568 (bcache_xmalloc, bcache_memory_used): New functions.
3569 (bcache_xfree): Replace function free_bcache.
3571 * Makefile.in (objfiles.o): Add $(bcache_h).
3572 (objfiles_h): Remove $(bcache_h).
3573 (symfile.o): Add $(bcache_h).
3575 * symmisc.c: Update copyright.
3576 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3577 (print_objfile_statistics): Use bcache_memory_used.
3579 * symfile.c: Include "bcache.h".
3580 (reread_symbols): Use bcache_xfree.
3581 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3582 (add_psymbol_to_list): Pass psymbol_cache by value.
3583 (add_psymbol_with_dem_name_to_list): Ditto.
3585 * objfiles.h: Update copyright.
3586 (struct bcache): Declare opaque. Do not include "bcache.h".
3587 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3589 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3591 * objfiles.c: Include "bcache.h". Update copyright.
3592 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3594 (free_objfile): Use bcache_xfree.
3596 2002-07-11 Grace Sainsbury <graces@redhat.com>
3598 * monitor.c (monitor_fetch_register): Make name a constant.
3599 (monitor_store_register): Same.
3601 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3603 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3604 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3605 (finish_block) For non-function blocks, hash the symbol table. For
3606 function blocks, mark the symbol table as unhashed.
3607 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3608 (msymbol_hash_iw): Likewise.
3609 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3611 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3612 (lookup_minimal_symbol): Likewise for both.
3613 * symtab.h (struct block): Add `hashtable' flag. Comment the
3615 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3616 (ALL_BLOCK_SYMBOLS): Update.
3617 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3618 (struct symbol): Add `hash_next' pointer.
3619 * symtab.c (lookup_block_symbol): Search using the hash table when
3621 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3622 (search_symbols, find_addr_symbol): Likewise.
3624 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3625 (read_dst_symtab): Likewise.
3626 * jv-lang.c (get_java_class_symtab): Likewise.
3627 * mdebugread.c: Include "gdb_assert.h".
3628 (shrink_block): Assert that the block being modified is not hashed.
3629 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3630 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3632 (dump_symtab): Recognize hashed blocks.
3633 * printcmd.c (print_frame_args): Assert that function blocks do not
3634 have hashed symbol tables.
3635 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3636 (fill_in_ada_prototype, debug_print_block): Likewise.
3637 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3639 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3641 * stack.c (print_frame): Use result of frame_address_in_block()
3642 instead of fi->pc when evaluating symbols.
3643 (backtrace_command_1): Ditto.
3645 2002-07-11 Andrew Cagney <cagney@redhat.com>
3647 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3650 * arm-tdep.c (arm_register_name): Make return type constant.
3652 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3654 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3656 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3657 * s390-tdep.c (s390_fp_regnum): Ditto.
3658 (s390_read_fp): Ditto.
3659 (s390_pop_frame): Ditto.
3660 (_initialize_s390_tdep): Ditto.
3661 * remote.c (get_remote_state): Ditto.
3662 * procfs.c (mappingflags): Ditto.
3663 * memattr.c (_initialize_mem): Ditto.
3664 * mcore-tdep.c (mcore_pop_frame): Ditto.
3665 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3666 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3667 * language.c (set_case_str): Ditto.
3668 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3669 * frv-tdep.c (new_variant): Ditto.
3670 (frv_stopped_data_address): Ditto.
3671 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3672 (context_alloc): Ditto.
3673 (frame_state_alloc): Ditto.
3674 (unwind_tmp_obstack_init): Ditto.
3675 (unwind_tmp_obstack_free): Ditto.
3676 (cfi_read_fp): Ditto.
3677 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3678 (cris_pop_frame): Ditto.
3679 * c-lang.c (scanning_macro_expansion): Ditto.
3680 (finished_macro_expansion): Ditto.
3681 (c_preprocess_and_parse): Ditto.
3682 * gdbarch.sh: Ditto.
3683 * gdbarch.h, gdbarch.c: Regenerate.
3684 * config/mn10200/tm-mn10200.h: Adjust indentation.
3685 * target.c: Adjust indentation.
3686 * symtab.h: Adjust indentation.
3687 * stabsread.h: Adjust indentation.
3688 * remote-es.c: Adjust indentation.
3689 * os9kread.c: Adjust indentation.
3691 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3693 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3694 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3696 2002-07-10 Grace Sainsbury <graces@redhat.com>
3698 * NEWS: Mention m68k, mcore multi-arching.
3699 * MAINTAINERS: Change status of m68k, mcore to reflect
3702 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3704 * valops.c (find_overload_match): Free oload_syms.
3706 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3708 Define HAVE_SYS_PROC_H if sys/proc.h exists
3709 * configure.in: Add check for sys/proc.h
3710 * config.in: Regenerate.
3711 * configure: Regenerate.
3713 2002-07-09 Grace Sainsbury <graces@redhat.com>
3715 * config/m68k/tm-m68k.h: Remove macros wrapped in
3716 #if !GDB_MULTI_ARCH.
3718 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3720 * config.in, configure: Regenerate.
3722 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3724 * dwarf2cfi.c: Include "gcore.h".
3725 (execute_stack_op): Fix implementation of the
3726 DW_OP_deref and DW_OP_deref_size operators by letting do their
3727 lookup in the target.
3729 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3731 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3732 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3735 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3737 Fix PR gdb/595, gdb/602
3738 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3739 Don't call value_cast, just read the vtable pointer; update comments
3742 2002-07-05 Grace Sainsbury <graces@redhat.com>
3744 * config/mcore/tm-mcore.h: Remove file.
3745 * config/mcore/mcore.mt: Remove definition of TM_FILE
3746 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3748 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3750 * i386bsd-tdep.c: Include "gdb_string.h".
3752 2002-07-04 Grace Sainsbury <graces@redhat.com>
3754 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3755 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3757 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3758 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3759 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3760 (RETVAL_REGNUM): Move macros from tm-mcore.h
3761 (mcore_reg_struct_has_addr): New function.
3762 (mcore_gdbarch_init): Added initializations for the macros removed
3765 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3767 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3768 traditonal string branding within the ELF header.
3770 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3772 * symtab.c (remove_params): New function.
3773 (make_symbol_overload_list): Use it instead of cplus_demangle.
3774 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3776 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3778 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3780 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3782 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3783 and tdep->sigtramp_end.
3784 * i386obsd-nat.c: New file.
3785 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3787 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3788 Don't call get_current_frame().
3790 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3792 * i386-nat.c (child_post_startup_inferior): New function
3793 calling i386_cleanup_dregs if
3794 I386_USE_GENERIC_WATCHPOINTS is defined.
3795 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3796 conditional to acknowledge that i386-nat.c has its
3797 own child_post_startup_inferior function.
3799 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3801 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3802 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3803 instead of MAX_REGISTER_RAW_SIZE.
3804 (i386_extract_return_value, i386_extract_struct_value_address):
3805 Convert to use regcache.
3806 (i386_gdbarch_init): Set max_register_raw_size and
3807 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3808 Set extract_return_value and extract_struct_value_address instead
3809 of their deprecated variants.
3811 Convert i386 target to generic dummy frames.
3812 * i386-tdep.c: Include "symfile.h".
3813 (i386_frameless_signal_p): Consider a function to be frameless if
3814 the pc points at the first instruction of the function.
3815 (i386_frame_chain): Handle (generic) call dummies.
3816 (i386_frame_saved_pc): Likewise.
3817 (i386_frame_init_saved_regs): Remove code dealing with call
3818 dummies on the stack.
3819 (i386_push_dummy_frame): Removed.
3820 (i386_call_dummy_words): Removed.
3821 (i386_fix_call_dummy): Removed.
3822 (i386_push_return_address): New function.
3823 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3824 parameter, and don't call get_current_frame.
3825 (i386_pop_frame): New function.
3826 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3827 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3828 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3829 call_dummy_length to 0, set call_dummy_words to NULL, set
3830 sizeof_call_dummy_words to 0, set fix_call_dummy to
3831 generic_fix_call_dummy, set pc_in_call_dummy to
3832 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3833 generic_push_dummy_frame, set push_return_address to
3834 i386_push_return_address and set frame_chain_valid to
3835 generic_file_frame_chain_valid.
3837 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3839 * gdbarch.sh (struct regcache): Add opaque declaration.
3840 (EXTRACT_RETURN_VALUE): New architecture method.
3841 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3842 * gdbarch.h, gdbarch.c: Regenerate.
3843 * arch-utils.c (legacy_extract_return_value): New function.
3844 * arch-utils.h (legacy_extract_return_value): Declare.
3845 * values.c (value_being_returned): Re-enable code handling
3846 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3847 deprecated_grub_regcache_for_registers call to block handling
3848 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3849 (EXTRACT_RETURN_VALUE): Do not define.
3851 2002-07-03 Grace Sainsbury <graces@redhat.com>
3853 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3854 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3855 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3856 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3857 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3858 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3859 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3860 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3861 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3862 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3863 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3864 argument so the function fits the prototype in the architecture
3866 (mcore_pop_frame): Remove argument so the function fits the
3867 prototype. Use get_current_frame instead of the argument.
3868 (mcore_push_arguments): Change type of struct_return so the
3869 function can be used in the architecture vector.
3870 (mcore_store_struct_return): Add.
3871 (mcore_frame_init_saved_regs): Add.
3872 (mcore_gdbarch_init): Add function calls to replace the macros
3873 removed from tm-mcore.h
3875 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3877 * infcmd.c (print_return_value): Remove compatibility code calling
3878 deprecated_grub_regcache_for_registers.
3880 * values.c: Include "regcache.h".
3881 (value_being_returned): Update. Use
3882 deprecated_grub_regcache_for_registers to extract the register
3884 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3885 ``struct regcache''.
3886 * Makefile.in (values.o): Add dependency on $(regcache_h).
3888 * inferior.h (run_stack_dummy): Change type of second parameter to
3889 a ``struct regcache''.
3890 * valops.c (hand_function_call): Change type of retbuf to ``struct
3891 regcache''. Allocate using regcache_xmalloc, clean using
3892 make_cleanup_regcache_xfree.
3893 * infcmd.c (run_stack_dummy): Update. Use
3894 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3896 * regcache.c (do_regcache_xfree): New function.
3897 (make_cleanup_regcache_xfree): New function.
3898 * regcache.h (make_cleanup_regcache_xfree): Declare.
3900 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3902 * event-top.c (command_line_handler): Don't read past
3903 beginning of buffer.
3905 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3907 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3909 (varobj_create): Store frame_id for root.
3910 (varobj_gen_name): Use xasprintf.
3911 (varobj_update): Save and restore frame using get_frame_id() and
3913 (create_child): Use xasprintf.
3914 (new_root_variable): Initialize frame_id.
3915 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3916 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3917 to prevent memory leak.
3919 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3921 * valops.c (hand_function_call): Move declaration of retbuf to
3922 start of function, allocate using malloc, add a cleanup but before
3923 the inf_status cleanup, cleanup the buffer. Rename local variable
3924 old_chain to inf_status_cleanup.
3926 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3928 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3930 * cli/cli-decode.c (cmd_func_p): New function.
3931 (cmd_func): New function.
3933 * command.h: Add cmd_func() and cmd_func_p().
3935 2002-07-03 Grace Sainsbury <graces@redhat.com>
3937 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3938 (REGISTER_SIZE): Remove.
3939 (MAX_REGISTER_RAW_SIZE): Remove.
3940 (REGISTER_VIRTUAL_TYPE): Remove.
3941 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3942 (REGISTER_NAME): Remove.
3943 (USE_GENERIC_DUMMY_FRAMES): Remove.
3944 (CALL_DUMMY): Remove.
3945 (CALL_DUMMY_START_OFFSET): Remove.
3946 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3947 (CALL_DUMMY_LOCATION): Remove.
3948 (FIX_CALL_DUMMY): Remove.
3949 (CALL_DUMMY_ADDRESS): Remove.
3950 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3951 (SAVE_DUMMY_FRAME_TOS): Remove.
3952 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3953 (mcore_register_virtual_type): New function.
3954 (mcore_register_byte): New function.
3955 (mcore_register_size): New function.
3956 (mcore_register_name): New function.
3957 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3958 macros removed from tm-mcore.h.
3959 (mcore_dump_tdep): Add.
3960 (_initialize_mcore_tdep): Add gdbarch_register call.
3962 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3964 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3965 frameless_look_for_prologue, such that we actually call this
3968 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3970 * frame.h (frame_address_in_block): New function.
3972 * blockframe.c (frame_address_in_block): New function extracted
3973 from get_frame_block().
3974 (get_frame_block): Use frame_address_in_block().
3975 (block_innermost_frame): Use frame_address_in_block() to match
3976 the frame pc address against the block boundaries rather than
3977 the frame pc directly. This prevents a failure when a frame pc
3978 is actually a return-address pointing immediately after the end
3981 2002-07-02 Grace Sainsbury <graces@redhat.com>
3983 * MAINTAINERS: Add self under write after approval.
3985 2002-07-02 Grace Sainsbury <graces@redhat.com>
3987 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3988 used in architecture vector. The default is
3989 m68k_local_breakpoint_from_pc.
3990 (m68k_local_breakpoint_from_pc): Add.
3991 (enum): Add register numbers from tm-m68k.h.
3992 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3994 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3995 GDB_MULTI_ARCH_PARTIAL.
3996 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3997 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3999 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4000 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4001 to enum in m68k-tdep.c
4003 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4005 * solib-osf.c (open_map): Compute the list of shared libraries
4006 loaded by the inferior, rather than the list of libraries loaded
4007 by GDB itself. Otherwise, GDB ends up reading the symbols from
4008 the wrong shared libraries...
4010 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4012 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4013 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4015 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4017 (FRAMELESS_SIGNAL): Remove function.
4018 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4019 i386_linux_saved_pc_after_call): Removed.
4020 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4021 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4022 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4024 * i386-tdep.c (i386_frameless_signal_p): New function.
4025 (i386_frame_chain): Deal with frameless signals.
4026 (i386_sigtramp_saved_sp): New function.
4027 (i386_frame_saved_pc): Deal with frameless signals.
4028 (i386_saved_pc_after_call): Make sure the correct value is
4029 returned just after entry into a sigtramp.
4030 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4031 i386fbsd4_sc_sp_offset): New variables.
4032 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4033 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4034 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4035 similiar to what we already did for sc_pc_offset.
4036 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4039 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4041 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4043 * config/i386/tm-x86-64linux.h: New.
4044 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4046 * config/i386/nm-x86-64.h: Rename to ...
4047 * config/i386/nm-x86-64linux.h: ... this one.
4048 * config/i386/x86-64linux.mh: Reflect the above change.
4050 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4052 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4053 with sigcontext_addr. Add sc_sp_offset.
4054 (i386bsd_sigtramp_saved_pc): Remove prototype.
4055 (i386bsd_sicontext_addr): Add prototype.
4056 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4057 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4058 (i386_svr4_sigtramp_saved_pc): Removed.
4059 (i386_svr4_sigcontext_addr): New function.
4060 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4061 Initialize tdep->sigcontext_addr instead. Initialize
4062 tdep->sc_pc_offset and tdep->sc_sp_offset.
4063 (i386_gdbarch_init): Likewise.
4064 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4066 (i386bsd_sigtramp_saved_pc): Remove function.
4067 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4068 Initialize tdep->sigcontext_addr instead. Initialize
4070 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4071 of tdep->sigtramp_saved_pc.
4072 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4073 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4076 * i386-tdep.c (i386_frameless_function_invocation,
4077 i386_frame_num_args, i386_frame_init_saved_regs,
4078 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4079 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4080 i386_extract_return_value, i386_store_return_value,
4081 i386_extract_struct_value_address, i386_register_virtual_type,
4082 i386_register_convertible, i386_register_convert_to_virtual,
4083 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4084 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4087 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4089 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4091 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4092 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4093 this macro. Include "value.h".
4095 2002-06-30 Aidan Skinner <aidan@velvet.net>
4097 * ada-exp.tab.c: remove as it's a generated file
4098 * ada-lex.c: remove as it's a generated file
4100 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4102 * config/i386/tm-i386.h (struct frame_info, struct
4103 frame_saved_regs, struct value, struct type): Remove forward
4106 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4107 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4108 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4109 (FILL_FPXREGSET): Define.
4111 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4113 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4114 i[3456]86-*-netbsd* case.
4115 * config/i386/tm-obsd.h: Removed.
4116 * config/i386/obsd.mt: Removed.
4117 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4119 (MH_CFLAGS): Add -DYYDEBUG=0.
4121 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4122 i386nbsd_sc_pc_offset on OpenBSD too.
4124 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4125 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4126 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4128 * i386bsd-tdep.c: Include "arch-utils.h".
4129 (i386bsd_aout_in_solib_call_trampoline): New function.
4130 (i386bsd_init_abi): Set in_solib_call_trampoline to
4131 i386bsd_aout_in_solib_call_trampoline.
4132 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4133 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4135 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4137 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4138 (struct obstack, struct bcache): Add opaque declarations.
4139 * Makefile.in (macrotab_h): Update
4141 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4143 * blockframe.c (generic_find_dummy_frame): Change return type to
4144 ``struct regcache''.
4145 (struct dummy_frame): Replace field ``registers'' with regcache, a
4146 struct regcache object.
4147 (generic_find_dummy_frame): Update.
4148 (generic_push_dummy_frame): Update. Use regcache_xfree,
4149 regcache_xmalloc and regcache_cpy.
4150 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4152 (deprecated_generic_find_dummy_frame): Update.
4153 (generic_read_register_dummy): Update. Use
4154 regcache_read_as_address.
4155 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4156 (generic_get_saved_register): Update. Use regcache_read.
4158 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4160 * Makefile.in (objfiles_h): Add $(bcache_h).
4161 * objfiles.h: Include "bcache.h".
4163 * Makefile.in (symtab_h): Remove $(bcache_h).
4164 * symtab.h: Do not include "bcache.h".
4166 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4168 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4169 generic_func_frame_chain_valid.
4171 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4173 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4174 * config/i386/tm-fbsd.h: Likewise.
4176 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4178 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4179 generic_unwind_get_saved_register.
4181 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4183 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4184 * regcache.c (supply_register): Add missing argument to
4185 register_buffer call.
4187 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4189 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4190 Solaris /bin/grep does not not like it. From Peter Schauer.
4192 2002-06-26 Tom Tromey <tromey@redhat.com>
4194 * command.h (add_setshow_cmd): Declare.
4195 (add_setshow_cmd_full): Declare.
4196 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4197 returns void. Use add_setshow_cmd_full.
4198 (add_setshow_cmd_full): New function.
4199 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4200 (add_setshow_boolean_cmd): Likewise.
4202 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4204 * config/vax/tm-vax.h: Protect from multiple inclusion.
4205 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4206 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4207 * config/vax/tm-vaxbsd.h: ...here. New file.
4208 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4210 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4212 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4213 (BELIEVE_PCC_PROMOTION): Remove.
4214 (AP_REGNUM): Move to...
4215 * config/vax/nm-vax.h: ...here.
4216 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4217 (vax_breakpoint_from_pc): New function.
4218 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4219 and gdbarch_believe_pcc_promotion.
4221 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4223 * Makefile.in (vax_tdep_h): Define.
4224 (vax-tdep.o): Use $(vax_tdep_h).
4225 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4226 (vax_dump_tdep): New function.
4227 (_initialize_vax_tdep): Register vax_dump_tdep.
4228 * vax-tdep.h: Include osabi.h.
4229 (struct gdbarch_tdep): New.
4231 2002-06-26 Andrew Cagney <cagney@redhat.com>
4233 * frame.h (deprecated_generic_find_dummy_frame): Rename
4234 generic_find_dummy_frame.
4235 * blockframe.c (generic_find_dummy_frame): Make static.
4236 (deprecated_generic_find_dummy_frame): New function.
4237 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4238 generic_find_dummy_frame with deprecated_find_dummy_frame.
4239 (sh64_nofp_frame_init_saved_regs): Ditto.
4240 (sh_fp_frame_init_saved_regs): Ditto.
4241 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4242 (s390_frame_chain): Ditto.
4243 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4245 2002-06-26 Grace Sainsbury <graces@redhat.com>
4247 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4248 gdbarch vector are at the top.
4250 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4251 (FRAME_ARGS_ADDRESS): Remove.
4252 (FRAME_LOCALS_ADDRESS): Remove.
4253 (FRAME_NUM_ARGS): Remove.
4254 (FRAME_ARGS_SKIP): Remove.
4255 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4256 (m68k_gdbarch_init): Add gdbarch initializations for macros
4257 undefined in tm-m68k.h
4259 2002-06-26 Grace Sainsbury <graces@redhat.com>
4261 * monitor.h: Add the function regname to monitor_ops
4262 structure. This way NUM_REGS does not have to be a constant.
4263 * monitor.c (monitor_fetch_register): Added support for regname
4264 function. The function is called if the array regnames is NULL.
4265 (monitor_store_register): Same.
4266 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4268 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4269 cpu32bug_cmds.regname to point to new function.
4270 * abug-rom.c (abug_regname): Same as above.
4271 (init_abug_cmds): Same.
4272 * dbug-rom.c (dbug_regname): Same as above.
4273 (init_dbug_cmds): Same.
4274 * remote-est.c (est_regname): Same.
4275 (init_est_cmds): Same.
4276 * rom68k-rom.c (rom68k_regname): Same.
4277 (init_rom68k_cmds): Same.
4279 2002-06-25 Tom Tromey <tromey@redhat.com>
4281 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4283 2002-06-25 Andrew Cagney <cagney@redhat.com>
4285 * infrun.c (stop_registers): Change variable's type to ``struct
4287 (xmalloc_inferior_status): Delete function.
4288 (free_inferior_status): Delete function.
4289 (normal_stop): Use regcache_cpy.
4290 (struct inferior_status): Change type of fields ``stop_registers''
4291 and ``registers'' to ``struct regcache''.
4292 (write_inferior_status_register): Use regcache_write.
4293 (save_inferior_status): Instead of calling
4294 xmalloc_inferior_status, allocate the inf_status buffer directly.
4295 Use regcache_dup_no_passthrough and regcache_dup to save the
4297 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4298 Replace the stop_registers regcache instead of overriding it. Use
4299 regcache_xfree. Instead of calling free_inferior_status, xfree
4300 the buffer directly.
4301 (discard_inferior_status): Use regcache_xfree. Instead of calling
4302 free_inferior_status, xfree the buffer directly.
4303 (build_infrun): Use regcache_xmalloc.
4304 (_initialize_infrun): Delete redundant call to build_infrun.
4306 * Makefile.in (infcmd.o): Add $(regcache_h).
4308 * infcmd.c: Include "regcache.h".
4309 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4310 obtain the address of `stop_registers' register buffer.
4311 (print_return_value): Ditto.
4313 * inferior.h (struct regcache): Add opaque declaration.
4314 (stop_registers): Change variable's declared type to ``struct
4317 2002-06-24 Tom Tromey <tromey@redhat.com>
4319 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4320 * target.c (initialize_targets): Fixed typo in
4321 trust-readonly-sections `show' documentation.
4323 * main.c: Marked all strings with _().
4325 2002-06-24 Don Howard <dhoward@redhat.com>
4327 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4328 that means max CORE_ADDR+1.
4329 (lookup_mem_region): Ditto.
4330 (mem_info_command): Ditto.
4332 2002-06-24 Grace Sainsbury <graces@redhat.com>
4334 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4335 (REGISTER_BYTES_OK): Remove.
4336 (REGISTER_BYTES): Remove.
4337 (STORE_STRUCT_RETURN): Remove.
4338 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4339 (STORE_RETURN_VALUE): Remove.
4340 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4341 (FRAME_CHAIN): Remove.
4342 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4343 (FRAME_SAVED_PC): Remove.
4344 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4345 (m68k_store_struct_return): Add.
4346 (m68k_deprecated_extract_return_value): Add.
4347 (m68k_deprecated_extract_struct_value_address): Add.
4348 (m68k_store_return_value): Add.
4349 (m68k_frame_chain): Add.
4350 (m68k_frameless_function_invocation): Add.
4351 (m68k_frame_saved_pc): Add.
4352 (m68k_gdbarch_init): added set_gdbarch calls for new
4353 functions and deleted macros.
4355 2002-06-23 Tom Tromey <tromey@redhat.com>
4357 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4358 (ALLDEPFILES): Likewise.
4359 (udiheaders): Removed.
4360 (udip2soc.o): Likewise.
4361 (udi2go32.o): Likewise.
4363 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4365 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4367 * infrun.c (_initialize_infrun): Delete unnecessary call to
4370 * regcache.h: Update comments describing the regcache_cpy family
4372 (regcache_save, regcache_restore): Delete declaration.
4373 (regcache_save_no_passthrough): Delete declaration.
4374 (regcache_restore_no_passthrough): Delete declaration.
4375 * regcache.c (regcache_save): Delete function.
4376 (regcache_save_no_passthrough): Delete function.
4377 (regcache_restore): Delete function.
4378 (regcache_restore_no_passthrough): Delete function.
4380 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4382 * config/m68k/tm-m68k.h: Fix typo.
4383 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4384 (m68k_frame_init_saved_regs): Declare.
4386 2002-06-21 Jim Blandy <jimb@redhat.com>
4388 Remove some vestiges of Harris 88k support.
4389 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4390 register numbering quirk.
4391 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4392 odd symbols occurring in Harris 88k ELF targets.
4394 2002-06-21 Tom Tromey <tromey@redhat.com>
4396 * gdb_locale.h: New file.
4397 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4398 (defs_h): Added gdb_locale.h.
4399 * configure, config.in: Rebuilt.
4400 * configure.in (PACKAGE): Define.
4401 * defs.h: Include gdb_locale.h.
4402 * main.c (captured_main): Call setlocale, bindtextdomain,
4405 2002-06-21 Dave Brolley <brolley@redhat.com>
4407 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4408 * config/frv/frv.mt: New file.
4409 * config/frv/tm-frv.h: New file.
4410 * configure.tgt: Support frv-*-*.
4411 * Makefile.in (frv-tdep.o): New target.
4412 * frv-tdep.c: New file.
4413 * NEWS: Mention frv.
4415 2002-06-21 Dave Brolley <brolley@redhat.com>
4417 * MAINTAINERS: Add self to "Write After Approval" list.
4419 2002-06-21 Grace Sainsbury <graces@redhat.com>
4421 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4422 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4423 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4424 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4425 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4427 * m68k-tdep.c: Include arch-utils.h
4428 (m68k_register_raw_size): Add.
4429 (m68k_register_virtual_size): Add.
4430 (m68k_register_virtual_type): Add.
4431 (m68k_register_name): Add.
4432 (m68k_stack_align): Add.
4433 (m68k_register_byte): Add.
4434 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4437 2002-06-21 Grace Sainsbury <graces@redhat.com>
4439 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4440 m68k_find_saved_regs.
4441 (m68k_pop_frame): Removed saved_regs structure, and replaced
4442 references to it with frame->saved_regs.
4443 (m68k_gdbarch_init): Added function calls to initialize the
4445 (m68k_fix_call_dummy): Add.
4446 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4447 (CALL_DUMMY): Remove.
4448 (CALL_DUMMY_LENGTH): Remove.
4449 (CALL_DUMMY_START_OFFSET): Remove.
4450 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4451 (FIX_CALL_DUMMY): Remove.
4452 (PUSH_DUMMY_FRAME): Remove.
4453 (POP_FRAME): Remove.
4455 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4457 * parse.c (parse_fprintf): New function used to avoid calls to
4458 fprintf in bison parser generated debug code.
4459 * parser-defs.h: Declaration of new parse_fprintf function.
4460 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4461 Set YYDEBUG to 1 by default.
4462 Set YYFPRINTF as parse_fprintf.
4464 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4466 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4468 (pointer_encoding, enum ptr_encoding): New.
4469 (execute_cfa_program): Take care about pointer encoding.
4470 (dwarf2_build_frame_info): Only call parse_frame_info for
4471 .debug_frame and .eh_frame.
4472 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4473 fixed augmentation handling, added relative addressing,
4474 ignore duplicate FDEs. Added comments.
4475 * dwarf2cfi.c: Reindented.
4477 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4479 * event-top.c (command_handler): Don't use space_at_cmd_start
4480 unless there is sbrk() on the host. Assign time and space data
4481 to union fields of the appropriate length.
4483 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4485 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4486 x86_64_register_name. Return type changed to 'const char *'.
4487 (x86_64_register_name2nr): Rename to x86_64_register_number.
4488 (x86_64_gdbarch_init): Update to reflect the change.
4489 * x86-64-tdep.h: Ditto.
4490 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4491 (supply_fpregset): Ditto.
4493 2002-06-19 Andrew Cagney <cagney@redhat.com>
4495 * regcache.h: Update copyright.
4496 (struct regcache, struct gdbarch): Add opaque declarations.
4497 (current_regcache): Declare global variable.
4498 (regcache_read, regcache_write): Add gdbarch parameter.
4499 (regcache_save, regcache_save_no_passthrough)
4500 (regcache_restore, regcache_restore_no_passthrough)
4501 (regcache_dup, regcache_dup_no_passthrough)
4502 (regcache_cpy, regcache_cpy_no_passthrough)
4503 (deprecated_grub_regcache_for_registers)
4504 (deprecated_grub_regcache_for_register_valid)
4505 (regcache_valid_p): Add function declarations.
4507 * regcache.c: Update copyright.
4508 (regcache_descr_handle): New global variable.
4509 (struct regcache_descr): Define.
4510 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4511 (regcache_descr, xfree_regcache_descr): New functions.
4512 (struct regcache): Define.
4513 (regcache_xmalloc, regcache_xfree): New functions.
4514 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4515 (regcache_dup, regcache_dup_no_passthrough): New functions.
4516 (regcache_valid_p, regcache_read_as_address): New functions.
4517 (deprecated_grub_regcache_for_registers): New function.
4518 (deprecated_grub_regcache_for_register_valid): New function.
4519 (current_regcache): New global variable.
4520 (register_buffer): Add regcache parameter. Update calls.
4521 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4522 (read_register_gen, write_register_gen): Update register_buffer
4523 call. Test for legacy_p instead of gdbarch_register_read_p or
4524 gdbarch_register_write_p.
4525 (regcache_collect): Update register_buffer call.
4526 (build_regcache): Rewrite. Use deprecated grub functions.
4527 (regcache_save, regcache_save_no_passthrough): New functions.
4528 (regcache_restore, regcache_restore_no_passthrough): New
4530 (_initialize_regcache): Create the regcache_data_handle. Swap
4531 current_regcache global variable.
4533 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4534 parameter to regcache_read and regcache_write calls.
4535 (sh4_register_read): Ditto.
4536 (sh64_pseudo_register_read): Ditto.
4537 (sh64_register_read): Ditto.
4538 (sh_pseudo_register_write): Ditto.
4539 (sh4_register_write): Ditto.
4540 (sh64_pseudo_register_write): Ditto.
4541 (sh64_register_write): Ditto.
4543 * defs.h (XCALLOC): Define.
4545 2002-06-19 Grace Sainsbury <graces@redhat.com>
4547 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4548 * m68k-tdep.c (m68k_gdbarch_init): Added.
4549 (m68k_dump_tdep): Added.
4551 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4553 * ada-lang.c (fill_in_ada_prototype): Update comment.
4555 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4557 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4559 (mips_abi_string, mips_abi_strings): New.
4560 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4561 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4562 tdep->mips_abi_string. Honor mips_abi_string. Default to
4563 O32 if no ABI is found.
4564 (mips_dump_tdep): Use mips_abi_strings.
4565 (mips_abi_update): New function.
4566 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4567 ``set mips abi'' and ``show mips abi''. Check the size of
4570 2002-06-19 Andrew Cagney <cagney@redhat.com>
4572 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4575 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4577 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4578 current frame using only the first stack size adjustment. All
4579 subsequent size adjustments are not considered to be part of
4580 the "static" part of the current frame.
4581 Compute the address of the saved registers relative to the
4582 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4583 in use in this frame.
4585 2002-06-18 Don Howard <dhoward@redhat.com>
4587 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4588 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4589 suggesting this solution.
4591 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4593 * config/romp/xm-rtbsd.h: Delete file.
4594 * config/romp/rtbsd.mh: Delete file.
4596 2002-06-18 Keith Seitz <keiths@redhat.com>
4598 * breakpoint.c (condition_command): Post breakpoint_modify
4599 when a condition is added to an existing breakpoint.
4600 (commands_command): Likewise for commands.
4601 (set_ignore_count): Likewise for ignore counts.
4602 If no tty, do not simply return, still need to send event
4604 (ignore_command): Only print a newline if the command came
4606 Don't call breakpoints_changed, since this is now properly
4607 handled by set_ignore_count.
4609 2002-06-18 Andrew Cagney <cagney@redhat.com>
4611 * MAINTAINERS: Note that cris-elf target can be compiled with
4613 * cris-tdep.c (cris_register_name): Make return type constant.
4614 (cris_breakpoint_from_pc): Ditto.
4616 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4618 * frame.h (struct frame_info): Change type of context to
4621 2002-06-17 Andrew Cagney <cagney@redhat.com>
4623 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4625 * gdbarch.h, gdbarch.c: Regenerate.
4626 * config/mips/tm-mips.h (mips_register_name): Update.
4627 * i386-tdep.h (i386_register_name): Update.
4628 * mips-tdep.c (mips_register_name): Update
4629 * alpha-tdep.c (alpha_register_name): Update.
4630 * arch-utils.c (legacy_register_name): Update.
4631 * arch-utils.h (legacy_register_name): Update.
4632 * avr-tdep.c (avr_register_name): Update.
4633 * ia64-tdep.c (ia64_register_name): Update.
4634 * i386-tdep.c (i386_register_name): Update.
4635 * sparc-tdep.c (sparc32_register_name): Update.
4636 (sparc64_register_name): Update.
4637 (sparclite_register_name): Update.
4638 (sparclet_register_name): Update.
4639 * sh-tdep.c (sh_generic_register_name): Update.
4640 (sh_sh_register_name): Update.
4641 (sh_sh3_register_name): Update.
4642 (sh_sh3e_register_name): Update.
4643 (sh_sh_dsp_register_name): Update.
4644 (sh_sh3_dsp_register_name): Update.
4645 (sh_sh4_register_name): Update.
4646 (sh_sh64_register_name): Update.
4647 * s390-tdep.c (s390_register_name): Update.
4648 * rs6000-tdep.c (rs6000_register_name): Update.
4649 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4650 (ns32k_register_name_32382): Update.
4651 * d10v-tdep.c (d10v_ts2_register_name): Update.
4652 (d10v_ts3_register_name): Update.
4653 * xstormy16-tdep.c (xstormy16_register_name): Update.
4654 * vax-tdep.c (vax_register_name): Update.
4655 * v850-tdep.c (v850_register_name): Update.
4656 * m68hc11-tdep.c (m68hc11_register_name): Update.
4657 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4658 (am33_register_name): Update.
4660 2002-06-17 Grace Sainsbury <graces@redhat.com>
4662 * m68k-tdep.c: Reindented.
4664 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4666 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4667 list of predefined types.
4669 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4671 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4672 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4673 REGISTER_CONVERT_TO_RAW): Remove defines.
4674 (i386_register_virtual_type, i386_register_convertible,
4675 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4677 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4678 macros mentioned above.
4680 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4681 (i386lynx_saved_pc_after_call): Remove prototype.
4682 * i386ly-tdep.c: Include "i386-tdep.h".
4683 (i386lynx_saved_pc_after_call): Make static. Use
4684 read_memory_nobpt instead of read_memory. Use
4685 read_memory_unsigned_integer instead of read_memory_integer.
4686 (i386lynx_init_abi): New function.
4687 (i386lynx_coff_osabi_sniffer): New function.
4688 (_initialize_i386bsd_tdep): New function.
4690 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4691 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4692 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4693 (i386_fix_call_dummy): Remove prototype.
4694 * i386-tdep.c (i386_call_dummy_words): New variable.
4695 (i386_gdbarch_init): Adjust for removal of the
4696 macros mentioned above.
4698 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4700 * command.h (add_setshow_auto_boolean_cmd): Replace
4701 add_set_auto_boolean_cmd.
4702 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4703 add_set_auto_boolean_cmd.
4704 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4705 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4706 mask-address'' command.
4707 (show_mask_address): Add cmd parameter.
4708 * remote.c (add_packet_config_cmd): Update. Change type of
4709 set_func and show_func to cmd_sfunc_ftype.
4710 (_initialize_remote): Update `set remote Z-packet'
4711 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4712 (show_remote_protocol_e_packet_cmd): Ditto.
4713 (show_remote_protocol_E_packet_cmd): Ditto.
4714 (show_remote_protocol_P_packet_cmd): Ditto.
4715 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4716 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4717 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4718 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4719 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4720 (show_remote_protocol_Z_packet_cmd): Ditto.
4721 (show_remote_protocol_binary_download_cmd): Ditto.
4722 (show_remote_cmd): Pass NULL to all of above.
4724 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4726 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4727 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4728 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4729 POP_FRAME): Remove defines.
4730 (i386_push_arguments, i386_store_struct_return,
4731 i386_extract_return_value, i386_store_return_value,
4732 i386_extract_struct_value_address, i386_push_dummy_frame,
4733 i386_pop_frame): Renove prototypes.
4734 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4735 macros mentioned above.
4737 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4739 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4740 add_set_boolean_cmd.
4741 (add_setshow_cmd): New function.
4742 * command.h (add_setshow_boolean_cmd): Replace
4743 add_set_boolean_cmd.
4744 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4745 and ``set rdiromatzero''.
4746 * maint.c (_initialize_maint_cmds): Update commented out code.
4747 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4748 * target.c (initialize_targets): Update `set
4749 trust-readonly-sections'.
4750 * remote.c (_initialize_remote): Update `set remotebreak'.
4752 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4754 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4755 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4756 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4757 fit into multi-arch framework.
4758 (i386_breakpoint_from_pc): New function.
4759 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4762 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4763 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4764 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4765 (i386_frameless_function_invocation, i386_frame_num_args,
4766 i386_frame_init_saved_regs): Remove prototypes.
4767 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4768 macros mentioned above.
4770 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4772 * cli/cli-decode.c (set_cmd_cfunc): Update.
4773 (set_cmd_sfunc): Update.
4774 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4775 (set_cmd_sfunc, set_cmd_cfunc): Update.
4776 * cli/cli-decode.h: Update.
4778 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4780 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4781 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4783 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4785 * defs.h (auto_boolean): Declare enum.
4786 * command.h (cmd_auto_boolean): Delete enum.
4787 * mips-tdep.c (mask_address_var): Update.
4788 (mips_mask_address_p): Update.
4789 (show_mask_address): Update.
4790 * remote.c (struct packet_config): Update.
4791 (update_packet_config): Update.
4792 (show_packet_config_cmd): Update.
4793 (packet_ok): Update.
4794 (add_packet_config_cmd): Update.
4795 (_initialize_remote):
4796 * command.h: Update.
4797 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4798 (do_setshow_command): Update.
4799 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4800 * cli/cli-decode.h: Update.
4802 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4804 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4805 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4806 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4807 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4808 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4809 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4811 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4812 list of DJGPP COFF targets.
4814 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4815 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4816 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4817 (FP0_REGNUM): Remove define.
4818 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4819 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4820 (i386_register_virtual_size): Remove protoype.
4821 * i386-tdep.c (i386_register_virtual_size): Removed.
4822 (i386_extract_return_value, i386_store_return_value): Use
4823 FP0_REGNUM instead of NUM_FREGS to determine whether the
4824 floating-point registers are available.
4825 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4826 Adjust for removal of macros mentioned above.
4828 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4830 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4832 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4834 (supply_gregset, fill_gregset): Remove use of register keyword and
4835 remove declaration for regmap. Use I386_NUM_GREGS instead of
4836 NUM_REGS and NUM_FREGS.
4837 (FPREGSET_FSAVE_OFFSET): Remove.
4838 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4839 NUM_FREGS to determine whether the floating-point registers are
4842 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4843 gnu_store_registers): Replace usage of NUM_GREGS with
4846 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4847 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4848 usage of NUM_GREGS with I386_NUM_GREGS.
4850 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4852 * i386bsd-nat.c: Include "i386-tdep.h".
4853 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4856 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4857 and associated comment. They no longer make any sense, since we
4858 don't use this file anymore on Linux.
4860 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4861 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4862 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4863 elements in these arrays.
4864 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4867 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4869 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4870 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4872 2002-06-14 Andrew Cagney <cagney@redhat.com>
4874 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4875 EXTRACT_RETURN_VALUE.
4876 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4877 EXTRACT_STRUCT_VALUE_ADDRESS.
4878 * gdbarch.h, gdbarch.c: Regenerate.
4880 * values.c (value_being_returned): Handle
4881 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4882 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4884 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4885 * arm-tdep.c (arm_gdbarch_init): Update.
4886 * avr-tdep.c (avr_gdbarch_init): Update.
4887 * cris-tdep.c (cris_gdbarch_init): Update.
4888 * d10v-tdep.c (d10v_gdbarch_init): Update.
4889 * ia64-tdep.c (ia64_gdbarch_init): Update.
4890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4892 * s390-tdep.c (s390_gdbarch_init): Update.
4893 * sh-tdep.c (sh_gdbarch_init): Update.
4894 * s390-tdep.c (s390_gdbarch_init): Update.
4895 * sparc-tdep.c (sparc_gdbarch_init): Update.
4896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4897 * v850-tdep.c (v850_gdbarch_init): Update.
4898 * vax-tdep.c (vax_gdbarch_init): Update.
4899 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4902 * config/arc/tm-arc.h: Update.
4903 * config/d30v/tm-d30v.h: Update.
4904 * config/fr30/tm-fr30.h: Update.
4905 * config/h8300/tm-h8300.h: Update.
4906 * config/h8500/tm-h8500.h: Update.
4907 * config/i386/tm-i386.h: Update.
4908 * config/i386/tm-ptx.h: Update.
4909 * config/i386/tm-symmetry.h: Update.
4910 * config/i960/tm-i960.h: Update.
4911 * config/m32r/tm-m32r.h: Update.
4912 * config/m68k/tm-delta68.h: Update.
4913 * config/m68k/tm-linux.h: Update.
4914 * config/m68k/tm-m68k.h: Update.
4915 * config/m88k/tm-m88k.h: Update.
4916 * config/mcore/tm-mcore.h: Update.
4917 * config/mips/tm-mips.h: Update.
4918 * config/mn10200/tm-mn10200.h: Update.
4919 * config/pa/tm-hppa.h: Update.
4920 * config/pa/tm-hppa64.h: Update.
4921 * config/sparc/tm-sp64.h: Update.
4922 * config/sparc/tm-sparc.h: Update.
4923 * config/sparc/tm-sparclet.h: Update.
4924 * config/z8k/tm-z8k.h: Update.
4926 2002-06-14 Andrew Cagney <cagney@redhat.com>
4928 * Makefile.in (i386_linux_tdep_h): Define.
4929 (i386_tdep_h, i387_tdep_h): Define.
4930 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4931 $(i386_tdep_h) and $(i387_tdep_h).
4932 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4934 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4936 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4937 Already covered by the default.
4939 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4940 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4941 (i386_gdbarch_init): Initialize long_double_format and long_double
4944 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4945 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4947 * config/i386/i386sol2.mh: ... here.
4948 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4949 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4950 (SIGCONTEXT_PC_OFFSET): Remove define.
4951 (IN_SIGTRAMP): Remove define.
4952 * i386-sol2-tdep.c: New file.
4954 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4955 * config/i386/tm-i386nw.h: Removed.
4957 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4958 USE_STRUCT_CONVENTION): Remove defines.
4959 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4960 (get_longjmp_target): Remove prototype.
4961 (IN_SIGTRAMP): Remove define.
4962 (i386bsd_in_sigtramp): Remove prototype.
4963 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4964 function. Update comment accordingly
4965 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4966 (FRAME_SAVED_PC): Remove define.
4967 (i386bsd_frame_saved_pc): Remove prototype.
4968 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4969 GET_LONGJMP_TARGET): Remove defines.
4970 (get_longjmp_target): Remove prototype.
4971 (IN_SIGTRAMP): Remove define.
4972 (i386bsd_in_sigtramp): Remove prototype.
4973 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4974 function. Update comment accordingly
4975 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4976 (FRAME_SAVED_PC): Remove define.
4977 (i386bsd_frame_saved_pc): Remove prototype.
4978 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4980 (USE_STRUCT_CONVENTION): Remove prototype.
4981 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4983 (_initialize_i386bsd_nat): Revise logic to determine some
4984 constants at compile time when compiling a native GDB. Warn if
4985 things don't match up with what we expect.
4986 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4988 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4989 to use date stored in `struct gdbarch_tdep'.
4990 (i386bsd_sigcontext_offset): Remove varaible.
4991 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4992 stored in `struct gdbarch_tdep'.
4993 (i386bsd_frame_saved_pc): Make static.
4994 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4995 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4996 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4997 i386fbsd4_sc_pc_offset): New variables.
4998 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4999 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5001 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5003 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5004 Modify the value of i386fbsd_sigtramp_start and
5005 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5006 i386fbsd_sigtramp_end.
5007 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5010 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5011 define to i386-linux-tdep.h.
5012 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5013 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5015 (i386_linux_register_name, i386_linux_register_byte,
5016 i386_linux_register_raw_size): Remove prototypes.
5017 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5018 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5019 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5020 TARGET_WRITE_PC): Remove defines.
5021 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5022 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5023 i386_linux_write_pc): Remove prototypes.
5024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5025 (get_longjmp_target): Remove prototype.
5026 * i386-linux-tdep.h: New file.
5027 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5028 * i386-linux-tdep.c: Include "i386-tdep.h" and
5029 "i386-linux-tdep.h".
5030 (i386_linux_register_name, i386_linux_register_byte,
5031 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5032 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5034 (i386_linux_init_abi): New function.
5035 (_initialize_i386_linux_tdep): New function.
5037 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5038 (i386_saved_pc_after_call): Remove prototype.
5039 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5040 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5041 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5042 (i386_register_name, i386_stab_reg_to_regnum,
5043 i386_dwarf_reg_to_regnum): Remove prototypes.
5044 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5045 SIZEOF_SSE_REGS): Remove defines.
5046 (REGISTER_BYTES): Remove define.
5047 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5048 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5049 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5050 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5051 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5052 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5053 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5054 (get_longjmp_target): Remove prototype.
5055 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5056 (sigtramp_saved_pc): Remove define.
5057 (i386v4_sigtramp_saved_pc): Remove prototype.
5058 * config/i386/tm-go32.h (FRAME_CHAIN,
5059 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5060 (i386go32_frame_saved_pc): Remove prototype.
5061 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5062 (get_longjmp_target): Remove prototype.
5063 * i386-tdep.h: Include "osabi.h".
5064 (enum i386_abi): Removed.
5065 (enum struct_return): New enum.
5066 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5067 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5068 sc_pc_offset members.
5069 (i386_gdbarch_register_os_abi): Remove prototype.
5070 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5071 I386_SSE_NUM_REGS): New defines.
5072 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5073 I386_SSE_SIZEOF_REGS): New defines.
5074 (i386_register_name, i386_register_byte, i386_register_raw_size):
5076 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5077 (i386bsd_sigtramp_saved_pc): New prototype.
5078 * i386-tdep.c: Don't include "elf-bfd.h".
5079 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5080 i386_frame_chain, i386_saved_pc_after_call): Make static.
5081 (i386_frame_saved_pc): Rewrite to call architecture dependent
5082 function to deal with signal handlers. Make static.
5083 (i386go32_frame_saved_pc): Removed.
5084 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5086 (i386_get_longjmp_target): New function.
5087 (default_struct_convention, pcc_struct_convention,
5088 reg_struct_convention, valid_conventions, struct_convention): New
5090 (i386_use_struct_convention): New function.
5091 (i386v4_sigtramp_saved_pc): Renamed to
5092 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5093 (i386_pc_in_sigtramp): New function.
5094 (i386_abi_names): Removed.
5095 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5096 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5098 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5099 i386_gdbarch_register_os_abi): Removed.
5100 (struct i386_abi_handler): Removed.
5101 (i386_abi_handler_list): Removed.
5102 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5104 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5105 i386_nw_init_abi): New functions.
5106 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5107 Use set_gdbarch_xxx() calls instead of relying on macros for a
5109 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5110 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5111 Register the various architecture variants defined in this file.
5113 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5115 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5116 (struct main_type): Remove arg_types member. Update comments for
5118 (TYPE_ARG_TYPES): Remove.
5119 (TYPE_FN_FIELD_ARGS): Update.
5120 (smash_to_method_type): Update prototype.
5122 * c-typeprint.c (cp_type_print_method_args): Take method type
5123 instead of argument list. Use new argument layout. Simplify.
5124 (c_type_print_args): Use new argument layout. Simplify.
5125 (c_type_print_base): Update call to cp_type_print_method_args.
5126 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5127 argument; use die->type instead. Update call to
5128 smash_to_method_type.
5129 (read_structure_scope): Update call to dwarf2_add_member_fn.
5130 * gdbtypes.c (allocate_stub_method): Update comment.
5131 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5132 Use new argument layout.
5133 (check_stub_method): Use new argument layout. Don't count
5134 void as an argument.
5135 (print_arg_types): Update comments. Use new argument layout.
5136 (recursive_dump_type): Don't print arg_types member.
5137 * hpread.c (hpread_read_struct_type): Use new argument layout.
5138 (fixup_class_method_type): Likewise.
5139 (hpread_type_lookup): Likewise.
5140 * stabsread.c (read_type): Update calls to read_args and
5141 smash_to_method_type.
5142 (read_args): Use new argument layout. Simplify.
5143 * valops.c (typecmp): Use new argument layout. Update parameters
5144 and comments. Simplify.
5145 (hand_function_call): Use new argument layout.
5146 (search_struct_method): Update call to typecmp.
5147 (find_overload_match): Use new argument layout.
5149 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5151 * NEWS: Mention multithreaded debug support for gdbserver.
5153 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5155 * MAINTAINERS: Mention NEWS.
5157 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5159 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5160 (struct mips_objfile_private, compare_pdr_entries): New.
5161 (non_heuristic_proc_desc): Read the ".pdr" section if it
5164 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5166 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5167 (arm_debug): New static variable.
5168 (_initialize_arm_tdep): Add ``set debug arm'' command.
5170 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5172 * Makefile.in (sim_arm_h): Define.
5173 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5174 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5175 (arm_register_sim_regno): New function, map an internal REGNUM
5176 onto a simulator register number.
5177 (arm_gdbarch_init): Set register_sim_regno.
5179 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5181 * MAINTAINERS: Add self.
5183 2002-06-11 Jim Blandy <jimb@redhat.com>
5185 * source.c (source_info): Mention whether the symtab has
5186 information about preprocessor macros.
5188 Call the command `info macro', not `show macro'.
5189 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5191 (_initialize_macrocmd): Register `info_macro_command' in
5192 `infolist', not `showlist'.
5194 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5196 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5197 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5198 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5199 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5200 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5202 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5203 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5204 (_initialize_mips_tdep): Remove dead code.
5205 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5206 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5207 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5208 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5209 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5210 MIPS_LAST_FP_ARG_REGNUM): Remove.
5212 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5214 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5215 (unwind_tmp_obstack_free, parse_frame_info)
5216 (update_context, cfi_read_fp, cfi_write_fp)
5217 (cfi_frame_chain, cfi_init_extra_frame_info)
5218 (cfi_virtual_frame_pointer): Use the above function.
5219 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5221 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5223 * v850-tdep.c (v850_type_is_scalar): New function.
5224 (v850_use_struct_convention): Match current gcc implementation
5225 as close as possible.
5226 (v850_push_arguments): Fix stack_offset handling. Don't write
5227 struct_addr into register. This is done by v850_store_struct_return.
5228 (v850_extract_return_value): Care for structs.
5229 (v850_store_return_value): Ditto.
5230 (v850_store_struct_return): Actually write address.
5232 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5234 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5235 without debug information too.
5237 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5239 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5240 Make multi-arch pure.
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242 * arm-tdep.c (arm_print_float_info): Update.
5243 * arch-utils.h (default_print_float_info): Update.
5244 * arch-utils.c (default_print_float_info): Update.
5245 * infcmd.c (float_info): Update call.
5247 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5249 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5250 the front of the initialize list.
5252 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5254 * infrun.c (struct inferior_status): Replace fields
5255 selected_frame_address and selected_level with field
5257 (save_inferior_status): Update. Use get_frame_id.
5258 (struct restore_selected_frame_args): Delete.
5259 (restore_selected_frame): Update. Use frame_find_by_id.
5260 (restore_inferior_status): Update.
5262 * breakpoint.h (struct breakpoint): Change type of
5263 watchpoint_frame to frame_id.
5264 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5265 call to get_current_frame.
5266 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5268 (watchpoint_check): Use frame_find_by_id.
5270 * frame.h (record_selected_frame): Delete declaration.
5271 * stack.c (record_selected_frame): Delete function.
5273 * frame.h (struct frame_id): Define.
5274 (get_frame_id): Declare.
5275 (frame_find_by_id): Declare.
5276 * frame.c (frame_find_by_id): New function.
5277 (get_frame_id): New function.
5279 2002-06-10 Andrey Volkov <avolkov@transas.com>
5281 * ser-e7kpc.c: Fix duplicated define and call of
5282 _initialize_ser_e7000pc
5284 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5286 * signals/signals.c (target_signal_from_host): Fix #ifdef
5288 (do_target_signal_to_host): Likewise.
5290 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5292 * mips-tdep.c (mips_find_abi_section): New function.
5293 (mips_gdbarch_init): Call it.
5295 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5297 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5298 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5299 after Andrew's 2002-06-08 gdbarch change.
5301 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5303 * i386-linux-nat.c (suppy_gregset): Don't supply
5304 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5306 (fill_gregset): Don't fetch it under the same circumstances.
5308 2002-06-09 Andrew Cagney <cagney@redhat.com>
5310 * Makefile.in (callback_h): Define.
5311 (remote_sim_h): Update path to remote-sim.h.
5312 (remote-rdp.o): Add $(callback_h).
5313 (remote-sim.o): Use $(callback_h).
5314 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5315 * remote-rdp.c: Include "gdb/callback.h".
5317 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5319 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5320 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5322 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5324 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5325 * rdi-share/serpardr.c: Ditto.
5326 * rdi-share/unixcomm.c: Ditto.
5327 * rdi-share/serdrv.c: Ditto.
5328 * rdi-share/hostchan.h: Ditto.
5329 * rdi-share/hostchan.c: Ditto.
5330 * rdi-share/host.h: Ditto.
5331 * rdi-share/devsw.c: Ditto.
5333 * objfiles.h: Change type of obj_private to void pointer.
5334 * pa64solib.c: Update copyright. Don't include "assert.h", use
5335 strcmp instead of STREQ, use LONGEST, do not use PTR
5336 * somsolib.c: Ditto.
5338 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5339 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5340 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5342 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5344 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5345 (default_get_saved_register): Delete function.
5346 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5347 generic_unwind_get_saved_register.
5348 * gdbarch.h, gdbarch.c: Re-generate.
5350 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5352 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5353 generic_func_frame_chain_valid.
5354 * gdbarch.h, gdbarch.c: Re-generate.
5355 * blockframe.c (generic_func_frame_chain_valid): Only check
5356 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5357 passing FP to PC_IN_CALL_DUMMY.
5360 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5362 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5363 (register_gdbarch_data): Initialize init_p.
5364 (gdbarch_data): Initialize data pointer using the init function.
5365 (init_gdbarch_data): Delete function.
5366 (gdbarch_update_p): Update.
5367 (initialize_non_multiarch): Update.
5368 (struct gdbarch): Add field initialized_p.
5369 * gdbarch.h, gdbarch.c: Re-generate.
5371 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5373 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5374 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5375 better do the things actually here.
5376 * x86-64-tdep.c (x86_64_register_name2nr): New.
5377 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5378 (x86_64_gdbarch_init): Respect the above change.
5379 * x86-64-tdep.h (x86_64_register_name2nr)
5380 (x86_64_register_nr2name): Add prototypes.
5381 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5383 2002-06-06 Michael Snyder <msnyder@redhat.com>
5385 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5386 Delete extra braces and re-indent.
5387 (d10v_store_return_value): Char return values
5388 must be shifted over by one byte in R0.
5389 (d10v_extract_return_value): Delete extra braces, re-indent.
5391 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5393 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5394 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5395 (d10v_integer_to_address): Rewrite.
5396 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5397 the d10v specific functions which take care of converting to the
5400 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5402 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5403 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5405 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5407 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5409 * config/tm-linux.h: Ditto.
5410 * config/alpha/tm-alphalinux.h: Ditto.
5411 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5412 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5413 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5414 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5415 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5416 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5417 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5418 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5419 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5420 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5421 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5422 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5423 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5424 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5425 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5426 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5427 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5428 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5429 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5430 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5431 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5432 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5433 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5434 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5435 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5436 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5437 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5438 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5439 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5440 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5441 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5442 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5443 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5444 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5445 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5446 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5447 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5449 2002-05-04 Aidan Skinner <aidan@velvet.net>
5451 * ada-exp.tab.c: New file
5452 * ada-exp.y: New file
5453 * ada-lang.c: New file
5454 * ada-lang.h: New file
5455 * ada-lex.c: New file
5456 * ada-lex.l: New file
5457 * ada-tasks.c: New file
5458 * ada-typeprint.c: New file
5459 * ada-valprint.c: New file
5461 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5463 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5464 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5466 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5468 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5469 insetead of ppc-linux-tdep.o.
5470 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5471 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5473 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5475 2002-05-07 Christian Groessler <chris@groessler.org>
5476 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5477 bit register contents for little endian hosts.
5479 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5481 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5484 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5486 * gdbarch.h: Regenerate.
5488 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5490 * MAINTAINERS: Add everyone to write-after-approval list.
5492 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5494 * stack.c (frame_info): Use frame_register_unwind instead of
5495 saved_regs. Mention when the SP is on the stack or in a register.
5497 * frame.h (frame_register_unwind_ftype): Define. Document.
5498 (struct frame_info): Add field register_unwind and
5499 register_unwind_cache.
5500 (frame_register_unwind): Declare.
5501 (generic_unwind_get_saved_register): Declare.
5503 * frame.c (frame_register_unwind): New function.
5504 (generic_unwind_get_saved_register): New function.
5506 * blockframe.c (generic_call_dummy_register_unwind): New function.
5507 (frame_saved_regs_register_unwind): New function.
5508 (set_unwind_by_pc): New function.
5509 (create_new_frame): New function.
5510 (get_prev_frame): New function.
5512 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5514 * a29k-share/: Delete directory.
5515 * remote-vx29k.c: Delete file.
5517 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5519 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5520 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5522 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5524 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5525 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5528 (sparcnbsd-tdep.o): New dependency lists.
5529 * NEWS: Note new UltraSPARC NetBSD native configuration.
5530 * configure.host (sparc64-*-netbsd*): New host.
5531 * configure.tgt (sparc-*-netbsdelf*)
5532 (sparc-*-netbsd*): Set gdb_target to nbsd.
5533 (sparc64-*-netbsd*): New target.
5534 * sparc64nbsd-nat.c: New file.
5535 * sparcnbsd-nat.c: New file.
5536 * sparcnbsd-tdep.c: New file.
5537 * sparcnbsd-tdep.h: New file.
5538 * config/sparc/nbsd.mt: New file.
5539 * config/sparc/nbsd64.mh: New file.
5540 * config/sparc/nbsd64.mt: New file.
5541 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5542 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5544 * config/sparc/nbsdaout.mt: Remove.
5545 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5546 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5548 * config/sparc/nbsdelf.mt: Remove.
5549 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5550 sparc-nat.c compatiblity defines.
5551 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5552 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5553 * config/sparc/tm-nbsd64.h: New file.
5554 * config/sparc/tm-nbsdaout.h: Remove.
5555 * config/sparc/xm-nbsd.h: Remove.
5557 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5559 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5560 * sparc-tdep.c: Include osabi.h.
5561 (gdbarch_tdep): Add osabi member.
5562 (_initialize_sparc_tdep): Use gdbarch_register.
5563 (sparc_gdbarch_init): Use generic OS ABI framework.
5564 (sparc_dump_tdep): New function.
5566 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5568 * corefile.c (do_captured_read_memory_integer): Return non-zero
5570 (safe_read_memory_integer): Copy result of memory read when
5571 status is non-zero. Also, add comments.
5573 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5575 * Makefile.in (ppc_tdep_h): Define.
5578 (rs6000-tdep.o): Use $(ppc_tdep_h).
5581 (ppcnbsd-tdep.o): New dependency lists.
5582 * ppc-tdep.h: Use generic OS ABI framework.
5583 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5584 (ppc_linux_init_abi): New functions.
5585 (ppc_sysv_abi_broken_use_struct_convention)
5586 (ppc_sysv_abi_use_struct_convention)
5587 (ppc_sysv_abi_push_arguments): Move to...
5588 * ppc-sysv-tdep.c: ...here.
5589 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5590 * rs6000-tdep.c (process_note_abi_tag_sections)
5591 (get_elfosabi): Remove.
5592 (rs6000_gdbarch_init): Use generic OS ABI framework.
5593 (rs6000_dump_tdep): New function.
5594 (_initialize_rs6000_tdep): Use gdbarch_register.
5595 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5596 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5597 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5598 of ppc-linux-tdep.o.
5599 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5600 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5601 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5602 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5603 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5604 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5606 2002-05-29 Jim Blandy <jimb@redhat.com>
5608 * macroscope.c (default_macro_scope): Put `void' in empty argument
5611 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5613 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5614 * arch-utils.c: Include "sim-regno.h".
5615 * gdbarch.sh: Don't include "sim-regno.h".
5616 * gdbarch.h, gdbarch.c: Regenerate.
5617 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5619 * arch-utils.h (legacy_register_sim_regno): To here.
5620 * remote-sim.c (legacy_register_sim_regno): Move function from
5622 * arch-utils.c (legacy_register_sim_regno): To here.
5624 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5626 * sim-regno.h: New file.
5627 * Makefile.in (sim_regno_h): Define.
5628 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5629 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5630 (legacy_register_sim_regno): New function.
5631 (one2one_register_sim_regno): New function.
5632 (gdbsim_fetch_register): Rewrite.
5633 (gdbsim_store_register): Only store a register when
5634 REGISTER_SIM_REGNO is valid.
5635 * d10v-tdep.c: Include "sim-regno.h".
5636 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5637 (d10v_ts3_register_sim_regno): Ditto.
5638 * gdbarch.sh: Include "sim-regno.h".
5639 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5640 * gdbarch.h, gdbarch.c: Regenerate.
5641 * arch-utils.h (default_register_sim_regno): Delete declaration.
5642 * arch-utils.c (default_register_sim_regno): Delete function.
5644 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5646 * ppcnbsd-nat.c: Rewrite.
5647 * ppcnbsd-tdep.c: New file.
5648 * ppcnbsd-tdep.h: New file.
5649 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5650 solib.o, and solib-svr4.o.
5651 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5652 nbsd-tdep.o, and corelow.o.
5654 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5656 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5657 `tr' and `sed'. Mention that `broken' targets are not expected to
5660 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5662 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5663 Let PC point right after the prologue before looking up symbols.
5665 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5667 * i386-tdep.c (i386_register_virtual_type): Return
5668 builtin_type_vec128i for SSE registers.
5670 * gdbtypes.h (builtin_type_vec128i): Declare.
5672 * gdbtypes.c (build_builtin_type_vec128i): New function.
5673 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5674 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5675 (build_gdbtypes): Initialize new builtin vector types.
5676 (_initialize_gdbtypes): Register new vector types with gdbarch.
5678 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5680 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5681 since it has been multi-arch'd.
5682 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5683 Move Alpha and VAX multi-arch news entries to same section
5684 as other multi-arch news.
5686 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5688 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5689 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5690 static. Rename some register numbers to put them in ns32k-tdep
5692 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5693 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5695 (_initialize_ns32k_tdep): Use gdbarch_register.
5696 * ns32k-tdep.h: New file.
5697 * ns32knbsd-tdep.c: New file.
5698 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5699 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5700 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5701 REGISTER_BYTES, REGISTER_BYTE): Remove.
5702 * config/ns32k/tm-ns32k.h: New file.
5703 * config/ns32k/tm-umax.h: Remove.
5705 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5707 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5708 ns32k_store_struct_return, ns32k_extract_return_value,
5709 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5711 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5712 ns32k_saved_pc_after_call.
5713 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5714 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5715 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5716 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5717 ns32k_extract_struct_value_address.
5719 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5721 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5722 ns32k_fix_call_dummy): New.
5723 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5724 ns32k_call_dummy_words.
5725 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5726 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5727 CALL_DUMMY_NARGS): Remove.
5728 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5730 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5732 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5733 ns32k_frame_saved_pc, ns32k_frame_args_address,
5734 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5735 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5736 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5737 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5738 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5739 (BREAKPOINT): Remove..
5740 (FRAME_CHAIN): Define as ns32k_frame_chain.
5741 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5742 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5743 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5744 (FRAME_FIND_SAVED_REGS): Remove.
5745 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5746 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5747 (POP_FRAME): Define as ns32k_pop_frame.
5749 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5751 * ns32k-tdep.c (ns32k_register_byte_32082,
5752 ns32k_register_byte_32382, ns32k_register_raw_size,
5753 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5755 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5756 ns32k_register_byte_32382.
5757 * config/ns32k/tm-umax.h: Update copyright years.
5758 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5759 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5760 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5761 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5762 (ns32k_get_enter_addr): Fix prototype.
5764 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5766 * ns32k-tdep.c: Update copyright years.
5767 (ns32k_register_name_32082): New function.
5768 (ns32k_register_name_32382): Ditto.
5769 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5770 (REGISTER_NAME): Define as ns32k_register_name_32382.
5771 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5772 (REGISTER_NAME): Define as ns32k_register_name_32082.
5774 2002-05-24 Jim Blandy <jimb@redhat.com>
5776 * dwarf2read.c (free_line_header): Use xfree, not free.
5778 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5780 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5781 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5783 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5785 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5787 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5789 From Ross Alexander at NEC Europe:
5790 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5792 2002-05-23 Michael Snyder <msnyder@redhat.com>
5794 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5795 for input, rather than parse_and_eval_address.
5797 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5799 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5800 * Makefile.in (sim_d10v_h): Update definition.
5802 2002-05-24 Andrew Cagney <cagney@redhat.com>
5804 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5805 change `2002-05-22 Michael Snyder' below.
5806 (d10v_push_arguments): Ditto.
5807 (d10v_extract_return_value): Ditto.
5809 2002-05-23 Jim Blandy <jimb@redhat.com>
5811 * macrotab.c (check_for_redefinition): Don't complain if the new
5812 definition is the same as the previous one. Take more arguments
5813 to allow the comparison.
5814 (macro_define_object, macro_define_function): Pass more arguments
5815 to check_for_redefinition.
5817 2002-05-22 Michael Snyder <msnyder@redhat.com>
5819 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5820 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5821 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5822 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5823 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5824 Add a temp variable to save a call (and a memory read).
5825 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5826 if possible (so that PC_IN_CALL_DUMMY will work).
5828 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5830 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5832 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5834 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5836 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5837 (dwarf2_build_frame_info): Add offset to fde->initial_location
5838 so that frames of shared libraries are mapped correctly.
5839 (execute_stack_op): Change type of 'result' from ULONGEST to
5842 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5844 * config/alpha/tm-nbsd.h: Include solib.h.
5846 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5848 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5849 assumptions about the host's byte order.
5851 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5853 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5855 * alphanbsd-tdep.c: Include solib-svr4.h.
5856 * shnbsd-tdep.c: Ditto.
5858 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5860 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5861 nbsd-tdep.h to dependency list.
5862 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5863 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5864 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5865 nbsdaout.mh and nbsdelf.mh consistently.
5866 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5867 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5868 nbsdaout.mt and nbsdelf.mh consistently.
5869 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5870 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5871 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5872 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5873 a.out shared library stuff from here...
5874 * config/nm-nbsdaout.h: ...to here.
5875 * config/tm-nbsd.h: Remove.
5876 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5877 * config/arm/nbsd.mh: Remove.
5878 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5880 * config/arm/nbsdaout.mh: New file.
5881 * config/arm/nbsdelf.mh: New file.
5882 * config/arm/nm-nbsdaout.h: New file.
5883 * config/i386/nbsd.mh: Remove.
5884 * config/i386/nbsd.mt: Remove.
5885 * config/i386/nbsdaout.mh: New file.
5886 * config/i386/nbsdaout.mt: New file.
5887 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5888 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5889 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5890 i386_register_u_addr): Remove.
5891 * config/i386/nm-nbsdaout.h: New file.
5892 * config/i386/nm-nbsdelf.h: Remove.
5893 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5894 (USE_STRUCT_CONVENTION): Remove.
5895 * config/i386/tm-nbsdaout.h: New file.
5896 * config/i386/tm-nbsdelf.h: Remove.
5897 * config/m68k/nbsd.mh: Remove.
5898 * config/m68k/nbsd.mt: Remove.
5899 * config/m68k/nbsdaout.mh: New file.
5900 * config/m68k/nbsdaout.mt: New file.
5901 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5902 * config/m68k/nm-nbsdaout.h: New file.
5903 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5904 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5905 * config/ns32k/nbsd.mh: Remove.
5906 * config/ns32k/nbsd.mt: Remove.
5907 * config/ns32k/nbsdaout.mh: New file.
5908 * config/ns32k/nbsdaout.mt: New file.
5909 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5910 * config/ns32k/nm-nbsdaout.h: New file.
5911 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5912 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5913 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5914 (SVR4_SHARED_LIBS): Remove.
5915 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5916 * config/sparc/nbsd.mh: Remove.
5917 * config/sparc/nbsd.mt: Remove.
5918 * config/sparc/nbsdaout.mh: New file.
5919 * config/sparc/nbsdaout.mt: New file.
5920 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5921 * config/sparc/nbsdelf.mt: New file.
5922 * config/sparc/nm-nbsdaout.h: New file.
5923 * config/sparc/nm-nbsdelf.h: Remove.
5924 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5925 * config/sparc/tm-nbsdaout.h: New file.
5927 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5929 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5931 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5933 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5935 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5937 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5939 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5941 * NEWS: Note new MIPS NetBSD native configuration.
5942 * configure.host (mips*-*-netbsd*): New host.
5943 * configure.tgt (mips*-*-netbsd*): New target.
5944 * mipsnbsd-nat.c: New file.
5945 * mipsnbsd-tdep.c: New file.
5946 * mipsnbsd-tdep.h: New file.
5947 * config/mips/nbsd.mh: New file.
5948 * config/mips/nbsd.mt: New file.
5949 * config/mips/nm-nbsd.h: New file.
5950 * config/mips/tm-nbsd.h: New file.
5952 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5954 * Makefile.in (SFILES): Add osabi.c.
5955 (COMMON_OBS): Add osabi.o.
5956 (osabi.o): New dependency list.
5957 * osabi.c: New file.
5958 * osabi.h: New file.
5959 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5961 * Makefile.in (alpha_tdep_h): Define and use instead of
5963 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5964 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5966 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5967 * alpha-tdep.h: Include osabi.h.
5968 (alpha_abi): Remove.
5969 (gdbarch_tdep): Use generic OS ABI framework.
5970 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5971 gdbarch_register_osabi.
5972 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5973 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5974 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5976 * Makefile.in (sh_tdep_h): Add osabi.h.
5977 * sh-tdep.h (sh_osabi): Remove.
5978 (gdbarch_tdep): Use generic OS ABI framework.
5979 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5980 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5981 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5982 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5984 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5985 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5986 gdbarch_register_osabi.
5987 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5988 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5989 (get_elfosabi): Rename to...
5990 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5991 ABI framework support routines.
5992 (arm_gdbarch_init): Use generic OS ABI framework.
5993 (arm_dump_tdep): Likewise.
5994 (_initialize_arm_tdep): Likewise.
5995 * arm-tdep.h: Include osabi.h.
5997 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5999 (arm_gdbarch_register_os_abi): Remove prototype.
6000 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6001 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6003 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6004 * mips-tdep.c: Include osabi.h.
6005 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6008 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6010 * h8300-tdep.c: Fix formatting.
6012 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6014 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6015 printing vector registers.
6017 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6019 From Fernando Nasser:
6020 * remote.c (remote_async_open_1): Re-throw the exception when the
6022 (remote_cisco_open): Ditto.
6023 (remote_open_1): Ditto.
6025 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6027 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6028 (remote_start_remote): Add uiout parameter. Pass through to
6029 remote_start_remote_dummy.
6030 (remote_open_1): Use catch_exception instead of catch_errors.
6031 (remote_async_open_1): Ditto.
6032 (remote_cisco_open): Ditto.
6034 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6036 * remote.c (remote_start_remote): Replace PTR with void pointer.
6037 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6040 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6042 * gdb_indent.sh: Allow the script to be run in the sim directory.
6044 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6046 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6047 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6049 * corelow.c (core_open): Only call set_gdbarch_from_file if
6052 2002-05-17 Andrey Volkov <avolkov@transas.com>
6054 * h8300-tdep.c: Add support of EXR register
6055 * config/h8300/tm-h8300.h: Ditto.
6057 2002-05-17 Andrey Volkov <avolkov@transas.com>
6059 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6061 2002-05-17 Andrey Volkov <avolkov@transas.com>
6063 * h8300-tdep.c: Change literal regnums to REGNO.
6065 2002-05-17 Jim Blandy <jimb@redhat.com>
6067 * NEWS: Note addition of macro support.
6069 Expand preprocessor macros in C expressions.
6070 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6071 (scan_macro_expansion, scanning_macro_expansion,
6072 finished_macro_expansion): New function declarations.
6073 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6074 variable declarations.
6075 * parser-defs.h (expression_context_pc): New declaration.
6076 * parse.c (expression_context_pc): New variable.
6077 (parse_exp_1): Set expression_context_pc, as well as
6078 expression_context_block.
6079 * c-exp.y (yylex): If we're not already reading the result of a
6080 macro expansion, try to macro-expand the next token. When we're
6081 done scanning a macro expansion, switch back to the mainline text.
6082 Commas and `if's in a macro's expansion don't terminate the input.
6083 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6084 (macro_original_text, macro_expanded_text,
6085 expression_macro_lookup_func, expression_macro_lookup_baton): New
6087 (scan_macro_expansion, scanning_macro_expansion,
6088 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6089 c_preprocess_and_parse): New functions.
6090 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6091 c_preprocess_and_parse, instead of c_parse.
6092 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6093 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6095 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6097 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6098 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6099 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6101 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6103 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6105 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6107 * Makefile.in (sh_tdep_h): Define and use.
6108 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6109 register enum): Move to...
6110 * * sh-tdep.h: ...here.
6111 * sh-tdep.c: Include sh-tdep.h.
6112 * sh3-rom.c: Likewise.
6113 * shnbsd-tdep.c: Likewise.
6115 2002-05-16 Michael Snyder <msnyder@redhat.com>
6117 * arm-tdep.c: Spelling fix in comment.
6119 2002-05-16 Jim Blandy <jimb@redhat.com>
6121 Add commands for manually expanding macros and showing their
6123 * macrocmd.c, macroscope.c, macroscope.h: New files.
6124 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6125 (macroscope_h): New variable.
6126 (HFILES_NO_SRCDIR): Add macroscope.h.
6127 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6128 (macroscope.o, macrocmd.o): New rules.
6130 Teach the Dwarf 2 reader to read macro information.
6131 * dwarf2read.c: #include "macrotab.h".
6132 (dwarf_macinfo_buffer): New variable.
6133 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6135 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6136 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6137 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6138 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6139 dwarf2_macro_spaces_in_definition): New complaints.
6140 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6141 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6142 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6143 the partial symbol table.
6144 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6145 from what's recorded in the partial symbol table.
6146 (read_file_scope): If the compilation unit has a
6147 `DW_AT_macro_info' attribute, read its macro information.
6148 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6150 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6153 * ser-tcp.c: Don't include <netinet/udp.h>.
6155 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6157 * MAINTAINERS: Update my email address.
6159 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6161 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6162 include file of the same name.
6164 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6166 * configure.tgt: Mark v850 as multi-arched.
6167 * config/v850/tm-v850.h: Remove file.
6168 * config/v850/v850.mt: Eliminate TM_FILE.
6170 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6172 * v850-tdep.c: Full multi-arch.
6173 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6174 Define GDB_MULTI_ARCH to 2.
6176 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6178 * p-exp.y (current_type): New static variable.
6179 Carries the type of the expression at the position that is parsed.
6180 (push_current_type, pop_current_type): Two new functions. Used
6181 to store/restore current_type in expression on specific tokens.
6182 (search_field): New static variable. Set to one after parsing a point
6183 as at that point only a FIELDNAME token should be searched.
6184 (FIELDNAME): New token. After a point only a token belonging to
6185 current_type type definition is allowed.
6186 (all over token rules): reset and change current_type according
6188 (exp '[' rule): insert implicit array index field if
6189 exp is a pascal string type.
6191 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6193 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6194 frame info. Use frame_info's saved_regs instead of matching member
6195 in extra_frame_info throughout.
6196 (v850_frame_init_saved_regs): New function.
6197 (v850_init_extra_frame_info): Move most functionality into
6198 v850_frame_init_saved_regs().
6199 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6200 (v850_frame_find_saved_regs): Remove declaration.
6201 (FRAME_FIND_SAVED_REGS): Remove definition.
6202 (v850_frame_init_saved_regs): Add declaration.
6203 (FRAME_INIT_SAVED_REGS): Add definition.
6205 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6207 * v850-tdep.c: Begin multi-arch'ing v850.
6208 (v850_target_architecture_hook): Remove function.
6209 (v850_gdbarch_init): New function. Add code previously in
6210 v850_target_architecture_hook().
6211 (_initialize_v850_tdep): Don't set target_architecture_hook.
6212 Call register_gdbarch_init() instead.
6214 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6216 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6217 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6218 (fixup_class_method_type): Likewise.
6220 2002-05-15 Jim Blandy <jimb@redhat.com>
6222 Add macro structures to GDB's symbol tables. Nobody puts anything
6224 * symtab.h (struct symtab): New member: `macro_table'.
6225 * buildsym.h (pending_macros): New global variable.
6226 * buildsym.c: #include "macrotab.h".
6227 (buildsym_init): Initialize `pending_macros'.
6228 (end_symtab): If we found macro information while reading a CU's
6229 debugging info, do build a symtab structure for it. Make the
6230 symtab point to the macro information, and clear the
6231 `pending_macros' pointer which held it while we were reading the
6233 (really_free_pendings): Free any pending macro table.
6234 * objfiles.h (struct objfile): New member: `macro_cache'.
6235 * objfiles.c (allocate_objfile): Set allocate and free functions
6236 for the macro cache's objstack.
6237 (free_objfile): Empty the macro cache's obstack.
6238 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6239 set new allocate and free functions for it.
6240 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6241 free functions for the macro cache's objstack. (Why is this
6242 function building its own objfile?)
6243 * symmisc.c (print_objfile_statistics): Print statistics on the
6245 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6247 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6249 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6250 (REGISTER_U_ADDR): Delete definition.
6251 (arm_register_u_addr): Delete declaration.
6253 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6255 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6256 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6258 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6260 * regcache.c (register_valid): Revise comments refering to "Not
6261 available" and "unavailable".
6262 * frame.c (frame_register_read): Ditto.
6263 * findvar.c (value_of_register): Ditto.
6265 2002-05-15 Andrew Cagney <cagney@redhat.com>
6267 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6268 (remote-sim.o): Update dependencies.
6269 (d10v-tdep.o): Specify dependencies.
6270 (sim_d10v_h): Define.
6272 2002-05-14 Jim Blandy <jimb@redhat.com>
6274 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6275 * macrotab.c (macro_lookup_inclusion, find_definition,
6276 new_macro_table): Same.
6278 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6279 not `! strcmp ()'. This is a dubious improvement.
6280 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6282 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6283 although it's not necessary, to avoid a warning.
6285 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6287 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6288 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6289 TYPE_INSTANCE_FLAGS.
6290 (struct main_type): New.
6291 (struct type): Move most members to struct main_type. Change
6292 cv_type and as_type to new type_chain member. Add instance_flags.
6293 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6294 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6295 (finish_cv_type): Remove prototype.
6296 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6298 (alloc_type_instance): New function.
6299 (smash_type): New function.
6300 (make_pointer_type, make_reference_type, make_function_type)
6301 (smash_to_member_type, smash_to_method_type): Call smash_type.
6302 (make_qualified_type): New function.
6303 (make_type_with_address_space): Call make_qualified_type.
6304 (make_cv_type): Likewise.
6305 (finish_cv_type): Remove unnecessary function.
6306 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6307 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6308 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6309 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6310 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6311 * hpread.c (hpread_read_struct_type): Likewise.
6312 * stabsread.c (read_struct_type): Likewise.
6314 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6316 * configure.tgt: Add a catch all sh* target, for cases like
6317 sh[2,3,4]-elf and sh-hms.
6319 2002-05-14 Keith Seitz <keiths@redhat.com>
6321 * event-loop.c (create_file_handler): Don't do anything but
6322 update data when we are given a fd which we are already
6325 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6327 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6328 (update_context): Use __func__ in warnings.
6330 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6332 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6333 and tcp_close to net_open and net_close.
6334 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6335 using UDP if requested. Don't try to disable Nagle on UDP
6337 * remote.c (remote_serial_open): New function. Warn about UDP.
6338 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6340 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6342 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6344 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6346 * configure.tgt: Remove sh-hms target.
6347 * MAINTAINERS: Don't list sh-hms as a separate target.
6349 2002-05-13 Jim Blandy <jimb@redhat.com>
6351 Add first preprocessor macro-expansion files.
6352 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6353 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6354 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6355 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6356 (COMMON_OBS): Add macrotab.o, macroexp.o.
6357 (macroexp.o, macrotab.o): New rules.
6359 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6361 * config/m88k/tm-m88k.h: Update copyright.
6362 (m88k_target_write_pc): Declare
6363 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6364 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6365 (SHIFT_INST_REGS): Update definition.
6366 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6367 using old definition of TARGET_WRITE_PC.
6368 * regcache.c (generic_target_write_pc): Delete code handling
6370 * gdbarch.sh (NNPC_REGNUM): Delete.
6371 * gdbarch.h, gdbarch.c: Regenerate.
6373 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6375 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6378 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6380 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6381 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6382 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6384 * c-typeprint.c (cp_type_print_method_args): Likewise.
6385 (c_type_print_args): Likewise.
6386 * d10v-tdep.c (d10v_push_arguments): Likewise.
6387 (d10v_extract_return_value): Likewise.
6388 * expprint.c (print_subexp): Likewise.
6389 * gdbtypes.c (lookup_primitive_typename): Likewise.
6390 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6391 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6392 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6393 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6394 (TYPE_VECTOR): Likewise.
6395 * hpread.c (hpread_read_struct_type)
6396 (fix_static_member_physnames, fixup_class_method_type)
6397 (hpread_type_lookup): Likewise.
6398 * mdebugread.c (parse_symbol, parse_type): Likewise.
6399 * p-lang.c (is_pascal_string_type): Likewise.
6400 * valops.c (hand_function_call): Likewise.
6401 * x86-64-tdep.c (classify_argument): Likewise.
6403 * hpread.c (hpread_read_function_type)
6404 (hpread_read_doc_function_type): Call replace_type.
6405 * dstread.c (create_new_type): Delete.
6406 (decode_dst_structure, process_dst_function): Call alloc_type.
6407 Use type access macros.
6409 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6411 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6412 the're not supported by the current architecture.
6413 (i387_fill_fxsave): Likewise.
6415 2002-05-12 Fred Fish <fnf@redhat.com>
6417 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6418 sect_index_xxx members to index the first slot in section_offsets
6419 if all of the section_offsets are zero.
6421 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6423 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6424 checked in with last change.
6426 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6428 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6429 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6432 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6434 * Makefile.in: Update dependencies.
6436 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6438 * language.c (local_hex_string_custom): Simplify. Do not depend
6439 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6441 * memattr.c (mem_info_command): Replace calls to
6442 longest_local_hex_string and longest_local_hex_string_custom.
6443 * buildsym.c (make_blockvector): Ditto.
6444 * solib.c (info_sharedlibrary_command): Ditto.
6445 * tracepoint.c (tracepoints_info): Ditto.
6446 * symtab.c (print_msymbol_info): Ditto.
6448 * language.c (local_hex_string): Delete.
6449 (local_hex_string_custom): Delete.
6450 (longest_local_hex_string): Rename to local_hex_string.
6451 (longest_local_hex_string_custom): Rename to
6452 local_hex_string_custom.
6453 * language.h (local_hex_string): Change parameter type to LONGEST.
6454 (local_hex_string_custom): Ditto.
6455 (longest_local_hex_string): Delete declaration.
6456 (longest_local_hex_string_custom): Ditto.
6458 * solib.c: Update copyright.
6459 * memattr.c: Update copyright.
6461 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6463 * arch-utils.h (legacy_register_to_value): Declare.
6464 (legacy_value_to_register): Declare.
6465 (legacy_convert_register_p): Declare.
6466 * arch-utils.c (legacy_register_to_value): New function.
6467 (legacy_value_to_register): New function.
6468 (legacy_convert_register_p): New function.
6470 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6471 (VALUE_TO_REGISTER): Define.
6472 (CONVERT_REGISTER_P): Define.
6473 * gdbarch.h, gdbarch.c: Regenerate.
6475 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6477 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6480 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6481 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6483 * Makefile.in: Update dependencies for valops.c.
6484 * valops.c: Include "gdb_assert.h".
6485 (typecmp): Skip THIS parameter to methods.
6486 (find_method_list): Remove static_memfuncp argument,
6487 update callers. Check for stub methods.
6488 (find_value_oload_method_list): Don't set *static_memfuncp.
6489 (find_overload_match): Don't check for stub methods. Assert
6490 that methods are not stubbed. Handle static methods.
6491 (value_find_oload_method_list): Remove static_memfuncp argument.
6492 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6493 to the argument list for static stub methods.
6494 * value.h (value_find_oload_method_list): Update prototype.
6496 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6498 * arch-utils.h (generic_register_size): Declare.
6499 (generic_register_raw_size, generic_register_virtual_size): Delete
6501 * arch-utils.c (generic_register_raw_size): Delete.
6502 (generic_register_size): New function.
6503 (generic_register_virtual_size): Delete.
6505 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6506 default generic_register_size.
6507 * gdbarch.h, gdbarch.c: Re-generate.
6509 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6510 register_virtual_size.
6511 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6514 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6516 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6517 * gdbarch.h, gdbarch.c: Regenerate.
6518 * gnu-v3-abi.c: Update copyright.
6519 (vtable_address_point_offset): Update.
6520 (gnuv3_rtti_type): Update.
6521 (gnuv3_baseclass_offset): Update.
6522 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6523 (init_fetch_link_map_offsets): Update.
6524 * remote.c (get_remote_state): Update.
6526 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6528 * TODO: Remove value_headof/value_from_vtable_info comment.
6529 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6530 * values.c (value_headof, value_from_vtable_info): Delete.
6531 * value.h (value_from_vtable_info): Delete prototype.
6533 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6535 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6536 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6538 (gdb_assert_h): Define.
6539 (gdb_wait_h): Define.
6540 (gdb_regex_h): Define.
6542 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6544 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6545 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6547 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6549 * nbsd-tdep.c: Fix comment.
6551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6553 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6554 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6555 (nbsd-tdep.o): New dependency list.
6556 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6558 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6559 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6560 * nbsd-tdep.c: New file.
6561 * nbsd-tdep.h: New file.
6562 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6564 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6565 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6566 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6567 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6569 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6571 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6572 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6573 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6574 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6575 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6576 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6578 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6580 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6581 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6582 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6583 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6584 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6585 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6586 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6588 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6590 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6591 fetch_elfcore_registers to...
6592 * i386nbsd-tdep.c: ...here.
6593 (i386nbsd_use_struct_convention): Rename to...
6594 (i386nbsd_aout_use_struct_convention): ...this.
6595 (i386nbsd_supply_reg): New function.
6596 (i386nbsd_fill_reg): New function.
6597 (fetch_core_registers): Use i386nbsd_supply_reg.
6598 (fetch_elfcore_registers): Likewise.
6599 (_initialize_i386nbsd_tdep): New function.
6600 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6601 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6602 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6603 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6604 (i386nbsd_aout_use_struct_convention): ...this.
6606 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6608 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6609 (store_inferior_registers): Use shnbsd_fill_reg.
6610 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6611 sh_nbsd_supply_register): Collapse into...
6612 (shnbsd_supply_reg): ...this.
6613 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6614 (shnbsd_fill_reg): ...this.
6615 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6616 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6617 (fetch_core_registers): Use shnbsd_supply_reg.
6618 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6619 (sh_nbsd_core_fns): Rename to...
6620 (shnbsd_core_fns): ...this.
6621 (sh_nbsd_elfcore_fns): Rename to...
6622 (shnbsd_elfcore_fns): ...this.
6623 (sh_nbsd_init_abi): Rename to...
6624 (shnbsd_init_abi): ...this.
6625 (_initialize_sh_nbsd_tdep): Rename to...
6626 (_initialize_shnbsd_tdep): ...this.
6627 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6628 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6629 sh_nbsd_fill_register): Remove prototypes.
6630 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6632 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6634 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6635 (i387-nat.o): Delete dependency list.
6636 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6637 (x86-64-linux-nat.o): Likewise.
6638 * i387-nat.c: Delete file, moving contents to...
6639 * i387-tdep.c: ...here.
6640 * i387-nat.h: Rename...
6641 * i387-tdep.h: ...to this.
6642 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6643 * i386-linux-nat.c: Likewise.
6644 * i386bsd-nat.c: Likewise.
6645 * i386gnu-nat.c: Likewise.
6646 * i386nbsd-nat.c: Likewise.
6647 * i386v4-nat.c: Likewise.
6648 * x86-64-linux-nat.c: Likewise.
6649 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6650 * config/i386/go32.mh (NATDEPFILES): Likewise.
6651 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6652 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6653 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6654 * config/i386/linux.mh (NATDEPFILES): Likewise.
6655 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6656 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6657 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6658 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6660 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6662 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6663 (alphanbsd-nat.o): Remove dependency list.
6664 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6665 * alphanbsd-nat.c: Delete. Contents moved to...
6666 * alphanbsd-tdep.c: ...here.
6667 (_initialize_alphanbsd_tdep): Register core functions.
6668 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6670 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6672 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6673 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6674 (alphanbsd-nat.o): Likewise.
6675 (alphabsd-tdep.o): New dependency list.
6676 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6677 (fill_gregset): Use alphabsd_fill_reg.
6678 (supply_fpregset): Use alphabsd_supply_fpreg.
6679 (fill_fpregset): Use alphabsd_fill_fpreg.
6680 (fetch_inferior_registers): Use struct reg and struct fpreg
6681 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6682 and alphabsd_supply_fpreg.
6683 (store_inferior_registers): Use struct reg and struct fpreg
6684 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6685 and alphabsd_fill_fpreg.
6686 * alphabsd-tdep.c: New file.
6687 * alphabsd-tdep.h: New file.
6688 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6689 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6690 alphabsd_supply_fpreg.
6691 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6692 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6694 2002-05-11 Eric Christopher <echristo@redhat.com>
6696 * mips-tdep.c (mips_double_register_type): Fix thinko.
6697 (mips_single_register_type): Ditto.
6698 * MAINTAINERS: Add self.
6700 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6702 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6703 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6704 right thing on architectures with different endianness and/or
6707 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6709 From Christian Limpach <chris@Pin.LU>
6710 * configure.in: Change sed expression which comments out
6711 NATDEPFILES to also comment out continuation lines.
6712 * configure: Regenerate.
6714 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6716 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6719 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6721 * sh-tdep.c: Include correct file.
6723 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6725 New support for sh64-elf (sh5) target.
6727 * configure.tgt: For sh64-elf target, default to sh-elf.
6729 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6730 (struct gdbarch_tdep): Add new fields for new registers and ABI
6733 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6734 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6735 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6736 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6737 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6738 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6739 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6740 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6741 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6742 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6743 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6744 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6745 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6746 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6747 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6748 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6749 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6750 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6751 sign_extend, sh64_nofp_frame_init_saved_regs,
6752 sh64_init_extra_frame_info, sh64_get_saved_register,
6753 sh64_extract_struct_value_address, sh64_pop_frame,
6754 sh64_push_arguments, sh64_extract_return_value,
6755 sh64_store_return_value, sh64_show_media_regs,
6756 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6757 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6758 sh_sh64_register_virtual_type,
6759 sh_sh64_register_convert_to_virtual,
6760 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6761 sh64_register_read, sh64_pseudo_register_write,
6762 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6763 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6764 sh64_do_pseudo_register, sh_compact_do_registers_info,
6765 sh64_do_registers_info, sh_gdbarch_init): New functions.
6767 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6769 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6771 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6773 * linespec.c (decode_line_1): Check for a double quote after
6774 a filename correctly.
6776 2002-05-10 Jim Blandy <jimb@redhat.com>
6778 Properly track the size of the current objfile's .debug_line section.
6779 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6780 (DWARF_LINE_SIZE): New macro.
6781 (dwarf2_build_psymtabs_hard): Record the line section's size in
6782 the partial symbol table.
6783 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6786 2002-05-10 Petr Sorfa <petrs@caldera.com>
6788 * ia64-tdep.c: Handle breakpoints on L instruction type
6789 in MLX instruction bundle by moving the breakpoint to
6790 the third slot (X instruction type) as L holds only data.
6792 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6794 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6795 (process_one_symbol): Complain about discarding local symbols
6796 due to a misplaced N_LBRAC entry.
6798 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6800 From Daniel Berlin <dan@cgsoftware.com>
6801 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6802 decrease the depth we are at, in the case of templates.
6804 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6806 * mips-tdep.c (mips_float_register_type): New function.
6807 (mips_double_register_type): New function.
6808 (mips_print_register): Use them.
6809 (do_fp_register_row): Likewise.
6811 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6813 * signals/signals.c (signals): Remove conditional compilation around
6814 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6815 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6817 2002-05-09 Michael Snyder <msnyder@redhat.com>
6819 * remote-rdp.c (remote_rdp_can_run): Remove.
6821 2002-05-09 Tom Tromey <tromey@redhat.com>
6823 * jv-valprint.c (java_val_print): Handle `char' as a special case
6826 2002-05-09 Michael Snyder <msnyder@redhat.com>
6828 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6829 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6830 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6831 str r(0123),[sp,#nn].
6832 (arm_skip_prologue): Ditto. Also make disassembly
6833 order-independent by placing it in a loop.
6835 2002-05-06 Michael Snyder <msnyder@redhat.com>
6837 * stabsread.c (read_type): Add recognition for new attribute:
6838 "@V;" means that an array type is actually a vector.
6839 This is analogous to the vector flag that's been added to dwarf2.
6841 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6843 * i386-tdep.h (i386_abi): New enum.
6844 (struct gdbarch_tdep): Replace os_ident member with abi.
6845 (i386_gdbarch_register_os_abi): New prototype.
6846 * i386-tdep.c (i386_abi_names): New array.
6847 (process_note_abi_tag_sections): Removed.
6848 (process_note_sections): New function.
6849 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6850 (struct i386_abi_handler): New struct.
6851 (i386_abi_handler_list): New variable.
6852 (i386_gdbarch_register_os_abi): New function.
6853 (i386_gdbarch_init): Adapt for the changes given above.
6855 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6857 * gregset.h: Say "GNU/Linux".
6859 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6861 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6862 (build_gdbtypes): Build builtin_type_v2_float.
6863 (_initialize_gdbtypes): Register new builtin type.
6865 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6867 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6868 (clear_gdbarch_swap): New function.
6869 (initialize_non_multiarch): Call.
6870 (gdbarch_update_p): Before calling init(), swap out and clear the
6871 existing architecture.
6872 * gdbarch.c: Regenerate.
6874 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6876 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6879 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6881 * sh-nbsd-nat.c: Rename to...
6882 * shnbsd-nat.c: ...this.
6883 * sh-nbsd-tdep.c: Rename to...
6884 * shnbsd-tdep.c: ...this.
6885 * sh-nbsd-tdep.h: Rename to...
6886 * shnbsd-tdep.h: ...this.
6887 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6888 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6890 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6892 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6893 concatenation for command help messages.
6895 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6897 * NEWS: Note new sh*-*-netbsdelf* configuration.
6898 * configure.host: Set gdb_host_cpu to sh for all sh*.
6899 (sh*-*-netbsdelf*): New host.
6900 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6901 (sh*-*-netbsdelf*): New target.
6902 * sh-nbsd-nat.c: New file.
6903 * sh-nbsd-tdep.c: New file.
6904 * sh-nbsd-tdep.h: New file.
6905 * config/sh/nbsd.mh: New file.
6906 * config/sh/nbsd.mt: New file.
6907 * config/sh/nm-nbsd.h: New file.
6908 * config/sh/tm-nbsd.h: New file.
6910 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6912 * sh-tdep.c (sh_osabi_names): Declare.
6913 (process_note_abi_tag_sections): New function.
6914 (get_elfosabi): Ditto.
6915 (sh_gdbarch_register_os_abi): Ditto.
6916 (sh_dump_tdep): Ditto.
6917 _initialize_sh_tdep): Use gdbarch_register to register
6918 sh_gdbarch_init and sh_dump_tdep.
6919 * config/sh/tm-sh.h (sh_osabi): Declare.
6920 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6922 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6924 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6925 (thumb_scan_prologue): Ditto.
6926 (arm_find_callers_reg): Ditto.
6927 (arm_frame_chain): Ditto.
6928 (arm_init_extra_frame_info): Ditto.
6929 (arm_frame_saved_pc): Ditto.
6930 (arm_pop_frame): Ditto.
6931 (arm_push_return_address): New function.
6932 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6933 call_dummy_location, call_dummy_breakpoint_offset_p,
6934 call_dummy_breakpoint_offset, call_dummy_p,
6935 call_dummy_stack_adjust_p, call_dummy_words,
6936 sizeof_call_dummy_words, call_dummy_start_offset,
6937 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6938 call_dummy_address, push_return_address and push_dummy_frame for
6939 generic dummy frames.
6941 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6943 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6944 size computation for alloca.
6945 (sh_fp_frame_init_saved_regs): Likewise.
6947 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6949 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6950 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6951 * arm-tdep.c (arm_store_return_value): Use them.
6952 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6953 * remote-rdp.c (remote_rdp_fetch_register): Use
6954 ARM_MAX_REGISTER_RAW_SIZE.
6955 (remote_rdp_store_register): Likewise.
6957 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6959 * dwarf2cfi.c: Code cleanup, removed unused variables,
6960 added default labels to switch {} statements.
6961 * x86-64-tdep.c: Ditto.
6962 * x86-64-linux-nat.c: Ditto.
6964 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6966 * solib.h: Protect against multiple inclusion.
6968 2002-05-06 Jim Blandy <jimb@redhat.com>
6970 Add first preprocessor macro-expansion files.
6971 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6972 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6973 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6974 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6975 (COMMON_OBS): Add macrotab.o, macroexp.o.
6976 (macroexp.o, macrotab.o): New rules.
6978 Separate the job of reading the line number info statement program
6979 header (...expialidocious) out into its own function.
6980 * dwarf2read.c (struct line_head, struct filenames, struct
6981 directories): Replace with...
6982 (struct line_header): New structure, containing the full
6983 contents of the statement program header, including the
6984 include directory and file name tables.
6985 (read_file_scope): If we have line number info, instead of just
6986 calling dwarf_decode_lines to do all the work, call
6987 dwarf_decode_line_header first to get a `struct line_header'
6988 containing the data in the statement program header, and then
6989 pass that to dwarf_decode_lines, which will pick up where that
6990 left off. Be sure to clean up the `struct line_header' object.
6991 (dwarf_decode_line_header, free_line_header, add_include_dir,
6992 add_file_name): New functions.
6993 (dwarf_decode_lines): Move all the code to read the statement
6994 program header into dwarf_decode_line_header. Take the line
6995 header it built as the first argument, instead of the offset to
6996 the compilation unit's line number info. Use the new `struct
6997 line_header' type instead of the old structures. No need to do
6998 cleanups here now, since we don't allocate anything.
6999 (dwarf2_statement_list_fits_in_line_number_section,
7000 dwarf2_line_header_too_long): New complaints.
7002 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7004 * gdbtypes.c (init_vector_type): New function.
7005 (build_builtin_type_vec128): Simplify the representation of SIMD
7007 (build_gdbtypes): Initialize new builtin vector types.
7008 (_initialize_gdbtypes): Register new vector types with gdbarch.
7009 (builtin_type_v4_float, builtin_type_v4_int32,
7010 builtin_type_v8_int16, builtin_type_v16_int8,
7011 builtin_type_v2_int32, builtin_type_v4_int16,
7012 builtin_type_v8_int8): New (renamed) SIMD types.
7014 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7016 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7017 (i387_fill_fxsave): Likewise.
7019 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7021 * alpha-tdep.c (alpha_extract_return_value): Don't use
7022 non-constant array size in prototype.
7024 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7026 From Brian Taylor <briant at model dot com>:
7027 * ui-out.c (ui_out_field_core_addr): Use the function
7028 longest_local_hex_string_custom'to format addresses > 32 bits
7031 * ui-out.c (ui_out_field_core_addr): Update comment.
7033 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7035 * stack.c (select_and_print_frame): Make static. Delete the
7037 (func_command): Update call.
7038 (select_frame_command): Delete code computing the frame level.
7039 * frame.h (select_and_print_frame): Delete declaration.
7041 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7043 * sparc-tdep.c (sparc_get_saved_register): Comment why
7044 get_prev_frame call is safe.
7046 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7048 * frame.h (select_frame): Delete level parameter.
7049 * stack.c (select_frame): Update. Use frame_relative_level to
7050 obtain the frame's level.
7051 (select_and_print_frame): Update call.
7052 (select_frame_command): Ditto.
7053 (up_silently_base): Ditto.
7054 (down_silently_base): Ditto.
7055 * ocd.c (ocd_start_remote): Ditto.
7056 * remote-rdp.c (remote_rdp_open): Ditto.
7057 * remote-mips.c (mips_initialize): Ditto.
7058 (common_open): Ditto.
7059 * remote-e7000.c (e7000_start_remote): Ditto.
7060 * m3-nat.c (select_thread): Ditto.
7061 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7062 (child_get_current_exception_event): Ditto.
7063 * varobj.c (varobj_create): Ditto.
7064 (varobj_update): Ditto.
7065 (c_value_of_root): Ditto.
7066 * tracepoint.c (finish_tfind_command): Ditto.
7067 * corelow.c (core_open): Ditto.
7068 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7069 * thread.c (info_threads_command): Ditto.
7070 (switch_to_thread): Ditto.
7071 * infrun.c (normal_stop): Ditto.
7072 (restore_selected_frame): Ditto.
7073 (restore_inferior_status): Ditto.
7074 * breakpoint.c (insert_breakpoints): Ditto.
7075 (watchpoint_check): Ditto.
7076 (bpstat_stop_status): Ditto.
7077 (do_enable_breakpoint): Ditto.
7078 * blockframe.c (flush_cached_frames): Ditto.
7079 (reinit_frame_cache): Ditto.
7081 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7083 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7086 2002-05-04 Jim Blandy <jimb@redhat.com>
7088 * gdbtypes.c (replace_type): Doc fix.
7090 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7092 * valprint.c (strcat_longest): Delete commented out function.
7095 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7097 * MAINTAINERS: Mark a29k as deleted.
7098 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7099 Move new configurations to the top.
7100 * configure.tgt: Remove a29k.
7101 * config/a29k/tm-vx29k.h: Delete.
7102 * config/a29k/vx29k.mt: Delete.
7103 * config/a29k/tm-a29k.h: Delete.
7104 * config/a29k/a29k-udi.mt: Delete.
7105 * config/a29k/a29k.mt: Delete.
7106 * a29k-tdep.c: Delete.
7107 * remote-udi.c: Delete.
7108 * remote-mm.c: Delete.
7109 * remote-eb.c: Delete.
7110 * remote-adapt.c: Delete.
7111 * Makefile.in: Remove obsolete code.
7112 * config/s390/s390x.mt: Ditto.
7113 * config/s390/s390.mt: Ditto.
7114 * config/sparc/sparclynx.mh: Ditto.
7115 * config/sparc/linux.mh: Ditto.
7116 * config/pa/hppaosf.mh: Ditto.
7117 * config/pa/hppabsd.mh: Ditto.
7118 * config/ns32k/nbsd.mt: Ditto.
7119 * config/mips/vr5000.mt: Ditto.
7120 * config/m68k/sun3os4.mh: Ditto.
7121 * config/m68k/nbsd.mt: Ditto.
7122 * config/m68k/m68klynx.mh: Ditto.
7123 * config/m32r/m32r.mt: Ditto.
7124 * config/i386/x86-64linux.mt: Ditto.
7125 * config/i386/nbsdelf.mt: Ditto.
7126 * config/i386/nbsd.mt: Ditto.
7127 * config/i386/i386lynx.mh: Ditto.
7129 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7131 * target.c (debug_print_register): New function. Handle oversize
7133 (debug_to_fetch_registers): Call.
7134 (debug_to_store_registers): Call.
7136 2002-05-03 Jim Blandy <jimb@redhat.com>
7138 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7139 (read_type): Doc fix.
7140 * gdbtypes.c (replace_type): Doc fix.
7142 * stabsread.c (multiply_defined_struct): New complaint.
7143 (read_struct_type): If the type we were passed isn't empty, or
7144 incomplete, don't read the new struct type into it; complain,
7145 and return the original type unchanged. Take a new `type_code'
7146 argument, which is the type code for the new type.
7147 (read_type): Rather than storing the type's type code here, pass
7148 it as an argument to read_struct_type, and let that take care of
7149 storing it. That way, we don't overwrite the original type code,
7150 so read_struct_type can use it to decide whether we're overwriting
7151 something we shouldn't.
7152 (complain_about_struct_wipeout): New function.
7154 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7156 * gdbarch.sh: Assert that gdbarch is non-NULL.
7157 * gdbarch.c: Regenerate.
7159 2002-05-03 Jason Merrill <jason@redhat.com>
7161 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7164 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7166 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7167 (x86_64_dwarf2gdb_regno_map_length),
7168 (x86_64_dwarf2_reg_to_regnum): Added.
7169 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7170 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7171 (_initialize_x86_64_tdep): Synced with the change above.
7172 (x86_64_skip_prologue): Reformulated message.
7174 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7176 * f-exp.y: Also use new prev_lexptr variable
7177 to improve error reporting. Based on Michael Snyder
7178 2002-04-24 dated patch to c-exp.y.
7179 * jv-exp.y: Likewise.
7180 * m2-exp.y: Likewise.
7182 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7184 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7185 we are dealing with vectors.
7187 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7189 * config/m68k/tm-nbsd.h: Obvious fix,
7190 correct machine name.
7192 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7194 * p-typeprint.c (pascal_type_print_base): Add support
7195 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7197 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7199 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7200 for fondamental pascal 'char' type.
7202 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7204 * p-lang.h (is_pascal_string_type): Declaration changed,
7205 new sixth argument of type char ** added.
7206 * p-lang.c (is_pascal_string_type): Implementation
7207 changed. Args length_pos, length_size, string_pos, char_size
7208 can now be NULL. New argument arrayname set to the field
7209 name of the char array. Return value set to char array
7210 field index plus one.
7211 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7212 is_pascal_string_type function.
7214 2002-05-02 Andrew Cagney <cagney@redhat.com>
7216 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7217 <cagney@redhat.com> change.
7218 * gdbarch.c: Regenerate.
7220 2002-05-02 Andrew Cagney <cagney@redhat.com>
7222 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7223 before probing for a new one. Detect errorenous gdbarch_init
7225 * gdbarch.c: Regenerate.
7227 2002-05-01 Andrew Cagney <cagney@redhat.com>
7229 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7230 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7231 * config/v850/tm-v850.h: Ditto. Update copyright.
7233 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7235 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7238 2002-04-30 Michael Snyder <msnyder@redhat.com>
7240 * arm-tdep.c: Whitespace clean-ups.
7241 (arm_skip_prologue): Fix thinko; two lines
7242 should have been removed as part of 4/24 change.
7244 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7246 * rs6000-tdep.c: Added comment describing how fpscr register
7247 numbers were chosen.
7249 2002-04-30 Michael Snyder <msnyder@redhat.com>
7251 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7253 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7255 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7256 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7257 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7259 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7261 From Louis Hamilton <hamilton@redhat.com>:
7262 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7263 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7264 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7265 not bfd-private xcoff data, to determine wordsize.
7266 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7268 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7270 GDB 5.2 released from 5.2 branch.
7272 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7274 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7275 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7276 (x86_64_register_info_table): Added comments with register numbers.
7278 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7280 * rs6000-tdep.c (rs6000_extract_return_value,
7281 rs6000_store_return_value): Handle returning vectors.
7282 (rs6000_gdbarch_init): Use
7283 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7284 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7286 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7288 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7289 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7291 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7293 * hpread.c (hpread_psymtab_to_symtab_1,
7294 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7295 with fprintf_unfiltered (gdb_stderr,...).
7297 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7299 * remote-array.c (printf_monitor, write_monitor,
7300 array_insert_breakpoint, array_remove_breakpoint ):
7301 Replace fprintf (stderr,...
7302 with fprintf_unfiltered (gdb_stderr,....
7303 * remote-es.c: Likewise.
7304 * remote-os9k.c: Likewise.
7305 * remote-st.c: Likewise.
7307 2002-04-28 Andreas Schwab <schwab@suse.de>
7309 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7310 linux-proc.o and gcore.o.
7312 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7314 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7315 code without frame pointers.
7317 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7319 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7322 2002-04-26 Ben Elliston <bje@redhat.com>
7324 * target.c (do_xfer_memory): Correct reference to the new option
7325 "trust-readonly-sections".
7327 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7329 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7330 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7331 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7333 (read_array_type): Record the fact that this array type is really a
7334 vector (i.e. are passed in by value).
7336 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7338 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7339 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7340 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7341 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7342 * alpha-linux-tdep.c: Include frame.h.
7343 (alpha_linux_sigcontext_addr): New function.
7344 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7345 alpha_linux_sigcontext_addr.
7346 * alpha-osf1-tdep.c: Include gdbcore.h.
7347 (alpha_osf1_sigcontext_addr): New function.
7348 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7349 alpha_osf1_sigcontext_addr.
7350 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7351 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7353 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7355 * stack.c (selected_frame_level):
7356 (select_frame): Do not set selected_frame_level.
7357 * frame.h (selected_frame_level): Delete declaration.
7359 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7361 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7362 convert_from_func_ptr-addr when AIX / PowerOpen.
7364 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7366 * valops.c (hand_function_call): Call
7367 generic_save_call_dummy_addr.
7368 * frame.h (generic_save_call_dummy_addr): Declare.
7369 * blockframe.c (struct dummy_frame): Add fields call_lo and
7371 (generic_find_dummy_frame): Check for PC in range call_lo to
7372 call_hi instead of entry_point_address.
7373 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7374 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7375 (generic_save_call_dummy_addr): New function.
7377 2002-04-24 David S. Miller <davem@redhat.com>
7379 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7380 sparc_skip_prologue.
7381 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7382 information to find prologue when possible.
7383 (sparc_prologue_frameless_p): Call examine_prologue directly.
7384 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7385 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7387 (SKIP_PROLOGUE): Likewise.
7389 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7391 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7392 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7393 indicate that the condition it was testing is always true.
7394 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7395 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7396 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7398 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7400 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7401 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7402 tdep->jb_pc and tdep->jb_elt_size.
7403 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7404 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7405 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7406 * alpha-nat.c (get_longjmp_target): Remove.
7407 (JB_ELEMENT_SIZE): Ditto.
7409 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7410 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7411 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7412 to alpha_get_longjmp_target.
7413 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7414 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7415 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7417 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7419 * README: Update to GDB 5.2.
7421 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7423 * gdbarch.sh (LC_ALL): Set to `c'.
7425 2002-04-25 Theodore A. Roth <troth@verinet.com>
7427 * avr-tdep.c: Ran through gdb_indent.sh.
7429 2002-04-25 Theodore A. Roth <troth@verinet.com>
7431 * MAINTAINERS: Add myself as AVR maintainer.
7432 * NEWS: Note new target avr.
7434 2002-04-25 Theodore A. Roth <troth@verinet.com>
7436 * Makefile.in: Add support for AVR target.
7437 * configure.tgt: Add support for AVR target.
7438 * avr-tdep.c: New file
7439 * config/avr/avr.mt: New file.
7441 2002-04-25 Theodore A. Roth <troth@verinet.com>
7443 * MAINTAINERS: Add myself to write-after-approval.
7445 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7447 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7448 with fprintf_unfiltered (gdb_stderr,....
7450 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7453 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7455 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7457 * p-exp.y: Also use new prev_lexptr variable
7458 to improve error reporting. Based on Michael Snyder
7459 2002-04-24 dated patch to c-exp.y.
7461 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7463 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7464 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7465 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7467 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7469 (FUNCTION_START_OFFSET): Remove.
7470 (BREAKPOINT): Ditto.
7472 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7474 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7477 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7479 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7480 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7481 alpha_linux_pc_in_sigtramp.
7482 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7483 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7484 alpha_osf1_pc_in_sigtramp.
7485 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7486 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7487 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7488 alphafbsd_pc_in_sigtramp.
7489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7490 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7491 alphanbsd_pc_in_sigtramp.
7492 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7493 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7495 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7497 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7499 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7501 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7503 (alphanbsd-nat.o): New dependency list.
7504 (alphanbsd-tdep.o): Ditto.
7505 * NEWS: Note new native NetBSD/alpha configuration.
7506 * alphanbsd-nat.c: New file.
7507 * alphanbsd-tdep.c: Ditto.
7508 * configure.host (alpha*-*-netbsd*): New host.
7509 * configure.tgt (alpha*-*-netbsd*): New target.
7510 * config/alpha/nbsd.mh: New file.
7511 * config/alpha/nbsd.mt: Ditto.
7512 * config/alpha/nm-nbsd.h: Ditto.
7513 * config/alpha/tm-nbsd.h: Ditto.
7515 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7517 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7518 (alpha-osf1-tdep.o): New dependency list.
7519 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7520 and skip_sigtramp_frame members.
7521 * alpha-linux-tdep.c: Include gdbcore.h.
7522 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7523 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7524 * alpha-osf1-tdep.c: New file.
7525 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7527 (alpha_frame_past_sigtramp_frame): New function.
7528 (alpha_dynamic_sigtramp_offset): Ditto.
7529 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7530 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7531 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7532 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7533 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7534 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7535 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7536 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7537 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7538 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7539 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7540 to find_solib_trampoline_target.
7541 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7542 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7543 (SKIP_TRAMPOLINE_CODE): Remove.
7544 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7545 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7546 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7547 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7548 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7549 (PROC_SIGTRAMP_MAGIC): Ditto.
7550 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7551 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7552 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7553 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7554 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7556 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7558 * NEWS: Note that Alpha targets are now multi-arch.
7560 2002-04-24 Michael Snyder <msnyder@redhat.com>
7562 * parser-defs.h (prev_lexptr): New external variable.
7563 * parse.c (parse_exp_1): Set prev_lexptr to null before
7564 calling the language-specific parser.
7565 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7566 (yyerror): Use prev_lexptr in error reporting.
7568 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7570 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7571 * gregset.h: If FILL_FPXREGSET is defined, provide
7572 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7573 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7574 is defined, call fill_fpxregset.
7576 2002-04-24 Roland McGrath <roland@frob.com>
7578 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7579 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7580 (supply_gregset, supply_fpregset): New functions.
7582 * gnu-nat.c (gnu_find_memory_regions): New function.
7583 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7584 (gnu_xfer_memory): Add a cast.
7586 2002-04-24 Michael Snyder <msnyder@redhat.com>
7588 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7589 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7590 of argument regs ("str r(0123), [r11, #-nn"]).
7591 (arm_skip_prologue): Better handling for frameless functions.
7592 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7593 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7595 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7597 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7598 NUM_PSEUDO_REGS can be used.
7600 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7602 * arch-utils.h: Update copyright.
7604 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7605 * gdbarch.h, gdbarch.c: Re-generate.
7607 * inferior.h (IN_SIGTRAMP): Delete definition.
7608 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7609 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7611 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7612 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7613 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7614 (find_proc_framesize): Ditto.
7615 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7616 (alpha_init_extra_frame_info): Ditto.
7617 * infrun.c (handle_inferior_event): Ditto.
7618 (handle_inferior_event): Ditto.
7619 (check_sigtramp2): Ditto.
7620 * blockframe.c (create_new_frame): Ditto.
7621 (get_prev_frame): Ditto.
7622 * ppc-linux-tdep.c: Update comments.
7623 * i386-linux-tdep.c: Update comments.
7624 * breakpoint.c (bpstat_what): Update comment.
7626 2002-04-24 David S. Miller <davem@redhat.com>
7628 * i960-tdep.c (register_in_window_p): New function.
7629 (i960_find_saved_register): Use it instead of
7630 REGISTER_IN_WINDOW_P.
7631 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7633 * symtab.h (find_stab_function_addr): Kill extern.
7634 * minsyms.c (find_stab_function_addr): Remove from here...
7635 * dbxread.c: ... to here, and mark it static.
7637 2002-04-20 David S. Miller <davem@redhat.com>
7639 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7640 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7642 2002-04-21 David S. Miller <davem@redhat.com>
7644 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7645 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7646 (vx_write_register): Likewise.
7648 2002-04-23 J. Brobecker <brobecker@gnat.com>
7650 * source.c (is_regular_file): New function.
7651 (openp): Check wether file to open is a regular file
7652 to avoid opening directories.
7654 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7656 * findvar.c (extract_signed_integer): Cast printf argument
7657 to suppress format warning.
7658 (extract_unsigned_integer): Likewise.
7659 * infcmd.c (registers_info): Likewise.
7660 * top.c (get_prompt_1): Likewise.
7661 * valops.c (value_assign): Likewise.
7662 * valprint.c (print_decimal): Likewise.
7664 2002-04-22 H.J. Lu (hjl@gnu.org)
7666 * c-exp.y (typebase): Support
7668 [long|long long|short] [signed|unsigned] [int|]
7672 signed [long|long long|short] int
7674 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7676 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7678 * vax-tdep.h: New file.
7679 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7680 Make several routines static.
7681 (vax_get_saved_register): New function.
7682 (vax_gdbarch_init): New function.
7683 (_initialize_vax_tdep): Register vax_gdbarch_init.
7684 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7685 Remove macros now under the control of gdbarch.
7687 2002-04-22 Michael Snyder <msnyder@redhat.com>
7689 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7690 Some whitespace and coding standards tweaks.
7692 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7694 * vax-tdep.c: Include regcache.h.
7695 (vax_call_dummy_words): New.
7696 (sizeof_vax_call_dummy_words): New.
7697 (vax_fix_call_dummy): New function.
7698 (vax_saved_pc_after_call): Ditto.
7699 * config/vax/tm-vax.h: Don't include regcache.h.
7700 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7701 (CALL_DUMMY): Remove.
7702 (CALL_DUMMY_WORDS): Define.
7703 (SIZEOF_CALL_DUMMY_WORDS): Define.
7704 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7706 2002-04-18 Michael Snyder <msnyder@redhat.com>
7708 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7710 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7712 * vax-tdep.c (vax_frame_chain): New function.
7713 (vax_push_dummy_frame): Ditto.
7714 (vax_pop_frame): Ditto.
7715 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7716 (FRAMELESS_FUNCTION_INVOCATION): Use
7717 generic_frameless_function_invocation_not.
7718 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7719 (POP_FRAME): Use vax_pop_frame.
7721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7723 * vax-tdep.c (vax_store_struct_return): New function.
7724 (vax_extract_return_value): Ditto.
7725 (vax_store_return_value): Ditto.
7726 (vax_extract_struct_value_address): Ditto.
7727 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7728 vax_store_struct_return.
7729 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7730 (STORE_RETURN_VALUE): Use vax_store_return_value.
7731 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7733 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7735 * vax-tdep.c (vax_frame_saved_pc): New function.
7736 (vax_frame_args_address_correct): Ditto.
7737 (vax_frame_args_address): Ditto.
7738 (vax_frame_locals_address): Ditto.
7739 (vax_frame_num_args): Move code to be in proximity to
7740 other frame-related functions.
7741 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7742 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7743 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7744 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7745 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7747 2002-04-22 H.J. Lu (hjl@gnu.org)
7749 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7752 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7754 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7755 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7756 (FRAME_INIT_SAVED_REGS): New macro.
7758 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7760 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7762 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7764 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7766 (fetch_osf_core_registers): Likewise.
7767 (supply_gregset): Likewise.
7769 2002-04-22 J. Brobecker <brobecker@gnat.com>
7771 * symfile.h (get_section_index): Define.
7772 * symfile.c (get_section_index): New function.
7773 * mdebugread.c (SC_IS_SBSS): New macro.
7774 (SC_IS_BSS): Return true for the scBss storage class only, as
7775 the scSBss storage class refers to the .sbss section.
7776 (parse_partial_symbols): Discard the symbols which associated
7777 section does not exist.
7778 Make sure to use the .sbss section index for symbols which
7779 storage class is scBss, rather than using the .bss section index.
7781 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7783 * vax-tdep.c: Update copyright years.
7784 (vax_register_name): New function.
7785 (vax_register_byte): Ditto.
7786 (vax_register_raw_size): Ditto.
7787 (vax_register_virtual_size): Ditto.
7788 (vax_register_virtual_type): Ditto.
7789 * config/vax/tm-vax.h: Update copyright years.
7790 (REGISTER_NAMES): Remove.
7791 (REGISTER_NAME): Define.
7792 (REGISTER_BYTE): Use vax_register_byte.
7793 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7794 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7795 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7797 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7799 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7801 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7803 2002-04-21 David S. Miller <davem@redhat.com>
7805 * arch-utils.c (generic_prologue_frameless_p): Kill
7806 SKIP_PROLOGUE_FRAMELESS_P code.
7807 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7809 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7810 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7811 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7813 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7814 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7815 (sparc_gdbarch_init): Pass it to
7816 set_gdbarch_prologue_frameless_p.
7818 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7820 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7821 (alphabsd-nat.o): New dependency list.
7823 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7825 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7827 (alpha-linux-tdep.o): New dependency list.
7828 (alphafbsd-tdep.o): Likewise.
7830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7832 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7834 * alpha-tdep.c: ...from here.
7835 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7839 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7840 prototype from here...
7841 * alpha-tdep.h: ...to here.
7843 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7845 * frame.h (selected_frame_level): Document as deprecated.
7846 (frame_relative_level): Declare.
7847 * stack.c (frame_relative_level): New function.
7848 (selected_frame_level): Document as deprecated.
7849 (select_frame): Do not set the selected_frame_level.
7851 * stack.c (frame_info, record_selected_frame): Update.
7852 (frame_command, current_frame_command): Update.
7853 (up_silently_base, up_command, down_silently_base): Update.
7854 (down_command): Update.
7855 * inflow.c (kill_command): Update.
7856 * tracepoint.c (finish_tfind_command): Update.
7857 * corelow.c (core_open): Update.
7858 * thread.c (info_threads_command): Update.
7859 (do_captured_thread_select): Update.
7860 * infcmd.c (finish_command): Update.
7861 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7865 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7867 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7869 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7874 * alphafbsd-tdep.c: Update copyright years. Include
7876 (alphafbsd_use_struct_convention): Make static.
7877 (alphafbsd_init_abi): New function.
7878 (_initialize_alphafbsd_tdep): New function.
7879 * config/alpha/tm-fbsd.h: Update copyright years.
7880 (USE_STRUCT_CONVENTION): Remove.
7882 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7884 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7885 an Alpha ABI variant.
7886 (alpha_abi_handler_list): Declare.
7887 (alpha_gdbarch_register_os_abi): New function.
7888 (alpha_gdbarch_init): Give registered ABI variant handlers a
7889 chance to tweak the gdbarch once we have set up defaults.
7890 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7892 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7894 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7895 to standard_coerce_float_to_double.
7896 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7898 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7900 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7901 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7902 from gdbarch_tdep rather than a constant.
7903 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7904 the default text address for all Alpha Unix ABIs.
7905 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7906 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7908 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7910 * alpha-tdep.h: New file. Includes several Alpha target constants
7912 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7913 let gdbarch deal with.
7914 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7915 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7917 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7918 Alpha target register names.
7919 * alphabsd-nat.c: Likewise.
7920 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7921 Alpha target register names. Make serveral routines static.
7922 (alpha_get_saved_register): New function.
7923 (alpha_abi_names): New.
7924 (process_note_abi_tag_sections): New function.
7925 (get_elfosabi): New function.
7926 (alpha_gdbarch_init): New function.
7927 (alpha_dump_tdep): New function.
7928 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7930 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7932 * frame.c (find_saved_register): Delete #ifdef
7933 HAVE_REGISTER_WINDOWS code.
7934 * config/sparc/tm-sparc.h: Update comments.
7935 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7937 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7939 * i960-tdep.c (i960_find_saved_register): New function.
7940 (i960_get_saved_register): New function.
7941 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7942 (i960_get_saved_register): Declare.
7943 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7945 2002-04-20 David S. Miller <davem@redhat.com>
7947 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7949 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7951 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7952 instead of NUM_PSEUDO_REGS.
7954 2002-04-20 David S. Miller <davem@redhat.com>
7956 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7957 GDB_MULTI_ARCH_PARTIAL
7958 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7959 define, let tm-sp64.h do it.
7961 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7963 * frame.c (find_saved_register): Avoid a NULL pointer
7964 dereference and actually walk the frame list.
7966 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7968 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7969 sorted in most most-recent-used order. Document.
7970 * gdbarch.h, gdbarch.c: Regenerate.
7972 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7974 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7976 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7977 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7978 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7981 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7984 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7985 (build_builtin_type_vec128): Ditto.
7986 (append_composite_type_field): Fix calculation of type length in
7989 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7991 * config/djgpp/README: Update.
7993 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7996 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7998 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7999 (alpha_setup_arbitrary_frame): ...to this.
8000 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8001 for alpha_setup_arbitrary_frame.
8003 2002-04-18 Andrew Cagney <cagney@redhat.com>
8005 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8006 * gdbarch.h, gdbarch.c: Regenerate.
8008 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8009 * target.h (memory_breakpoint_from_pc): Update declaration.
8010 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8012 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8013 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8014 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8015 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8016 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8017 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8018 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8019 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8020 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8021 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8022 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8023 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8025 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8027 * monitor.c (monitor_insert_breakpoint): Ditto.
8028 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8030 * config/mcore/tm-mcore.h: Update copyright.
8031 * mem-break.c: Ditto.
8032 * xstormy16-tdep.c: Ditto.
8034 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8036 * p-exp.y: Add precedence rule for '^' token.
8037 This removes the shift/reduce conflicts.
8038 Remove the comment concerning these shift/reduce conflicts.
8040 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8042 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8043 (registers_powerpc_nofp): New register set for processors
8044 without floating point unit.
8046 2002-04-18 David S. Miller <davem@redhat.com>
8048 * MAINTAINERS: Add myself to write-after-approval.
8050 2002-04-17 Michael Snyder <msnyder@redhat.com>
8052 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8054 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8056 * rs6000-tdep.c (frame_initial_stack_address): Use
8057 frame_register_read to read the alloca_reg.
8059 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8061 * frame.c (find_saved_register): Find saved registers in the next
8065 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8067 * gdbarch.sh (LANG): Set to ``c''.
8069 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8071 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8073 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8075 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8078 * hpread.c (hpread_get_lntt): Add declaration.
8079 Also fix PR gdb/391.
8081 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8083 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8084 * aclocal.m4, configure: Re-generate.
8087 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8089 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8090 instead of tm_print_insn.
8092 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8094 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8096 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8098 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8099 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8100 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8102 2002-04-12 Don Howard <dhoward@redhat.com>
8104 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8105 max_user_call_depth.
8106 (init_cmd_lists): Initialize the new value;
8107 * cli/cli-script.c (execute_user_command): Limit the call depth of
8108 user defined commands. This avoids a core-dump when user commands
8109 are infinitly recursive.
8111 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8113 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8114 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8115 from tdep struct instead of DEFAULT_LR_SAVE.
8116 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8117 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8118 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8120 2002-04-12 Michael Snyder <msnyder@redhat.com>
8122 * Remote.c: Spelling fix.
8123 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8124 If no symbol found for "sbrk", try "_sbrk".
8125 (make_output_phdrs): Use bfd_section_name.
8126 (gcore_copy_callback): Use bfd_section_name.
8127 * eval.c: Indentation fix-ups.
8128 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8129 in case it gets applied to an address that is already
8130 in the instruction space.
8131 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8132 * symfile.c: Fix indentation, long lines.
8133 * source.c: White space fix-up.
8135 2002-04-12 Andrew Cagney <cagney@redhat.com>
8137 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8138 * frame.c (frame_register_read): New function. Return non-zero on
8140 (read_relative_register_raw_bytes_for_frame): Delete.
8141 (read_relative_register_raw_bytes): Delete.
8142 * frame.h (frame_register_read): Declare.
8143 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8145 * infcmd.c (do_registers_info): Ditto.
8146 * hppa-tdep.c: Ditto.
8147 * rs6000-tdep.c: Ditto.
8148 * h8500-tdep.c: Ditto.
8149 * mips-tdep.c: Ditto.
8150 * h8300-tdep.c: Ditto.
8151 * z8k-tdep.c: Ditto.
8153 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8155 From Jimi X <jimix@watson.ibm.com>:
8156 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8159 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8161 From Jimi X <jimix@watson.ibm.com>:
8162 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8165 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8167 From Jimi X <jimix@watson.ibm.com>:
8168 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8169 register sets for these processor variants.
8171 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8173 * regformats/reg-ppc.dat: Support FPSCR.
8175 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8177 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8178 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8179 Add fpscr as an invalid/unfetchable register.
8180 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8181 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8182 (fill_fpregset): Add support for register fpscr.
8183 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8184 (fill_gregset): Account for the fact that register ``mq'' might
8186 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8187 (registers_power): Add fpscr to register set at slot 71.
8188 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8189 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8191 2002-04-11 Michael Snyder <msnyder@redhat.com>
8193 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8194 * configure: Regenerate.
8195 * config.in: Regenerate.
8196 * acconfig.h: Add define for _SYSCALL32.
8197 * core-sol2.c: Remove #define _SYSCALL32.
8198 * solib-legacy.c: Remove #define _SYSCALL32.
8200 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8202 * stack.c (select_frame): Cleanup internal error message, do not
8205 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8207 * stack.c (select_frame): Check that selected_frame and the
8208 specified level are as expected.
8209 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8211 * frame.h (struct frame_info): Add field `level'. Update
8213 Work-in-progress PR gdb/464.
8215 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8217 * maint.c (maint_print_section_info): Rename print_section_info.
8218 (print_bfd_section_info, print_objfile_section_info): Update.
8219 * inferior.h (struct gdbarch): Add opaque declaration.
8220 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8221 * gdbarch.h: Regenerate.
8223 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8225 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8226 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8227 (kernel_u_size): Added.
8228 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8229 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8231 2002-04-04 Jim Ingham <jingham@apple.com>
8233 * valarith.c (find_size_for_pointer_math): New function, either returns
8234 the size for a pointer's target, returns 1 for void *, or errors for
8236 (value_add, value_sub): use find_size_for_pointer_math.
8238 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8240 * linux-low.c (linux_look_up_symbols): New hook.
8241 (linux_target_ops): Add linux_look_up_symbols.
8242 * remote-utils.c (decode_address): New function.
8243 (look_up_one_symbol): New function.
8244 * server.c (handle_query): Call target look_up_symbols hook.
8245 * server.h (look_up_one_symbol): Add prototype.
8246 * target.h (struct target_ops): Add look_up_symbols hook.
8248 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8250 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8251 override FP_REGNUM with frame->fp. Update copyright.
8252 * parse.c (num_std_regs, std_regs): Delete.
8253 (target_map_name_to_register): Do not search std_regs. Update
8254 function description.
8255 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8256 declarations. Update copyright.
8259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8261 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8262 after the last symbol in a block.
8264 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8266 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8267 is non zero as a found symbol.
8269 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8271 * findvar.c: Include "builtin-regs.h".
8272 (value_of_register): Call value_of_builtin_reg when applicable.
8273 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8274 (target_map_name_to_register): Call
8275 builtin_reg_map_name_to_regnum.
8276 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8277 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8278 (builtin_regs_h): Define.
8279 (builtin-regs.o): New target.
8280 (findvar.o): Add $(builtin_regs_h).
8281 * builtin-regs.c, builtin-regs.h: New files.
8282 * std-regs.c: New file.
8283 Partial fix for PR gdb/251.
8285 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8287 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8288 it's no longer required.
8290 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8292 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8294 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8296 From Jimi X <jimix@watson.ibm.com>:
8297 * rs6000-tdep.c (rs6000_software_single_step): Use
8298 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8299 and size. Use target_insert_breakpoint() and
8300 target_remove_breakpoint() to insert and remove breakpoints
8301 instead of explicit memory reads and writes.
8303 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8305 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8306 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8307 ELF_OBJECT_FORMAT ifdef.
8309 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8314 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8316 From Jimi X <jimix@watson.ibm.com>:
8317 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8318 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8320 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8322 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8323 s/asprintf/xasprintf/.
8324 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8326 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8328 I believe Jeff Law denies responsability for this one:
8329 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8330 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8331 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8332 Work-around for PR gdb/366.
8334 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8336 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8337 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8338 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8340 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8342 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8343 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8346 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8348 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8351 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8353 * README (Reporting Bugs in GDB): Document the bug web page as the
8354 prefered way of submitting bugs.
8357 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8359 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8361 * gdbarch.h, gdbarch.c: Re-generate.
8363 2002-04-07 Andreas Schwab <schwab@suse.de>
8365 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8366 buffer to regcache_collect.
8368 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8370 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8371 * gdbarch.c, gdbarch.h: Re-generate.
8373 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8375 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8376 declaration. Fix -Werror.
8378 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8380 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8381 * gdbarch.c: Regenerate.
8383 2002-04-05 Michael Snyder <msnyder@redhat.com>
8385 * breakpoint.c (clear_command): Rewrite middle section to
8386 combine two loops with identical control conditions.
8387 Add a cleanup to eliminate a memory leak.
8388 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8390 2002-04-05 H.J. Lu (hjl@gnu.org)
8392 * solib-svr4.c (bkpt_names): Add "__start".
8394 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8396 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8397 as test for 64 bit target.
8399 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8401 * h8500-tdep.c (h8500_write_fp): Delete function.
8402 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8403 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8404 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8406 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8407 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8409 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8410 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8411 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8412 (d10v_write_fp): Delete function.
8413 * inferior.h (write_fp, generic_target_write_fp): Delete
8415 * regcache.c (generic_target_write_fp): Delete function.
8416 (write_fp): Delete function.
8417 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8418 * gdbarch.h, gdbarch.c: Regenerate.
8419 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8420 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8421 (sparc64_write_fp): Delete declaration.
8422 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8423 (h8500_write_fp): Delete declaration.
8425 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8427 * sparc-tdep.c (sparc64_write_fp): Delete.
8428 (sparc_push_dummy_frame): Replace write_fp call with code to store
8430 (sparc_gdbarch_init): Do not initialize write_fp.
8432 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8434 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8437 2002-03-29 Jim Blandy <jimb@redhat.com>
8439 * stack.c (get_selected_block): Add new argument `addr_in_block',
8440 used to return the exact code address we used to select the block,
8442 * blockframe.c (get_frame_block, get_current_block): Same.
8443 * frame.h (get_frame_block, get_current_block,
8444 get_selected_block): Update declarations.
8445 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8446 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8448 2002-04-05 Michael Snyder <msnyder@redhat.com>
8450 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8453 2002-04-05 J. Brobecker <brobecker@gnat.com>
8455 * utils.c (xfullpath): New function.
8456 * defs.h (xfullpath): Add declaration.
8457 * source.c (openp): Use xfullpath in place of gdb_realpath to
8458 avoid resolving the basename part of filenames when the
8459 associated file is a symbolic link. This fixes a potential
8460 inconsistency between the filenames known to GDB and the
8461 filenames it prints in the annotations.
8462 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8463 to be able to match a filename with either the real filename, or
8464 the name of any symbolic link to this file.
8465 (lookup_partial_symtab): Ditto.
8467 2002-04-04 Michael Snyder <msnyder@redhat.com>
8469 * breakpoint.c: Add support for hardware breakpoints in overlays.
8470 (overlay_events_enabled): New state variable.
8471 (insert_breakpoints): Use overlay_events_enabled to decide
8472 whether to attempt to set a breakpoint at the overlay load addr.
8473 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8474 (remove_breakpoint): Use overlay_events_enabled to decide
8475 whether breakpoints need to be removed from overlay load addr.
8476 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8477 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8478 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8479 disable_overlay_breakpoints): Update overlay_events_enabled.
8481 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8483 * dwarf2read.c (struct function_range): New.
8484 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8485 (check_cu_functions): New.
8486 (read_file_scope): Initialize global function lists.
8487 Call dwarf_decode_line after processing children.
8488 (read_func_scope): Add to global function list.
8489 (dwarf_decode_lines): Call check_cu_functions everywhere
8490 record_line is called. Call record_line with a linenumber
8491 of 0 to mark sequence ends.
8493 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8495 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8496 change sync with glibc.
8498 2002-04-03 Jim Blandy <jimb@redhat.com>
8500 * configure.in: Call AC_C_INLINE.
8501 * configure: Regenerated.
8503 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8505 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8506 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8508 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8510 * NEWS: Mention gcore support on FreeBSD/i386.
8512 * fbsd-proc.c: New file.
8513 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8514 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8516 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8519 2002-03-29 Jim Blandy <jimb@redhat.com>
8521 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8522 unescaped newlines in string literals, but newer ones don't. So
8525 2002-03-26 Michael Snyder <msnyder@redhat.com>
8526 Andrew Cagney <cagney@redhat.com>
8528 * cli/cli-dump.c: New file. Dump memory to file,
8529 restore file to memory.
8530 * cli/cli-dump.h: New file.
8531 * Makefile.in: Add rules, dependencies for cli-dump.o.
8532 * NEWS: Mention new commands.
8534 2002-03-28 Michael Snyder <msnyder@redhat.com>
8536 * symfile.c (symbol_file_add): Move test for null symbols to later.
8538 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8540 From veksler at il.ibm.com:
8541 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8542 the xstrduped original path.
8545 2002-03-27 Michael Snyder <msnyder@redhat.com>
8547 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8548 * infcmd.c (_initialize_infcmd): Ditto.
8549 * language.c (_initialize_language): Ditto.
8550 * symfile.c (_initialize_symfile): Ditto.
8551 * top.c (_init_main): Ditto.
8552 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8554 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8556 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8557 vector registers handling.
8558 (skip_prologue): Handle new AltiVec instructions. Fill in new
8559 fields of frame data.
8560 (frame_get_saved_regs): Fill in information for AltiVec registers.
8562 2002-03-27 Jim Blandy <jimb@redhat.com>
8564 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8565 a function; leave this macro here to invoke that function.
8566 (symbol_init_mangled_name): Declaration for that function.
8567 * symtab.c (symbol_init_mangled_name): New function.
8569 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8571 * valarith.c: Replace strerror with safe_strerror.
8572 * tracepoint.c: Ditto.
8574 * go32-nat.c: Ditto.
8578 2002-03-27 Andreas Schwab <schwab@suse.de>
8580 * event-top.c (command_line_handler): Remove useless if.
8582 2002-03-27 Andreas Jaeger <aj@suse.de>
8584 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8587 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8589 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8590 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8591 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8592 (x86_64_linux_dr_get_status, supply_gregset),
8593 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8594 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8595 (x86_64_register_info_table): Add.
8596 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8597 (x86_64_register_raw_size, x86_64_register_virtual_type),
8598 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8599 general x86_64_register_info_table.
8600 (i386_gdbarch_init): gdbarch_register_bytes is now set
8601 dynamicaly during initialization.
8602 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8603 * gdbserver/linux-x86-64-low.c: Ditto.
8605 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8607 * gdbserver/server.c (main): Call target_signal_to_host_p
8608 and target_signal_to_host on signals received from the remote.
8609 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8610 target_signal_from_host on signals sent to the remote.
8611 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8612 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8614 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8616 * signals/signals.c: Include "server.h" in gdbserver build.
8617 (target_signal_from_name): Don't use STREQ.
8618 (_initialize_signals): Likewise. Don't include function in
8621 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8623 * signals.c: Moved to...
8624 * signals/signals.c: Here.
8625 * Makefile (signals.o): Update.
8627 2002-03-26 Jeff Law (law@redhat.com)
8629 * somread.c (som_symtab_read): Remove some commented out code and
8630 updated related comments. Do not set the minimal symbol table to
8631 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8632 in a dynamic executable.
8633 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8634 where we are unable to find the minimal symbol for the given
8637 2002-03-25 Jeff Law (law@redhat.com)
8639 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8641 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8643 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8645 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8647 * command.h: Update copyright.
8648 (struct cmd_list_element): Replace definition with opaque
8650 (enum cmd_types): Document that it will eventually be moved to
8652 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8653 (MALLOCED_REPLACEMENT): Delete macro.
8654 * Makefile.in (cli_decode_h): Add $(command_h).
8655 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8656 * top.c: Include "cli/cli-decode.h".
8657 * completer.c: Include "cli/cli-decode.h".
8658 * maint.c: Include "cli/cli-decode.h".
8659 * cli/cli-decode.h: Include "command.h".
8660 (enum command_class): Delete.
8661 (enum cmd_types): Comment out.
8662 (enum cmd_auto_boolean): Delete.
8663 (enum var_types): Delete.
8665 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8667 * cli/cli-decode.c: Include "gdb_assert.h".
8668 (add_set_or_show_cmd): New static function.
8669 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8670 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8671 all fields, such as func, from the set command.
8673 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8675 * MAINTAINERS (sh-elf): Change warning flag to -w.
8677 2002-03-23 Andrew Cagney <cagney@redhat.com>
8679 * defs.h (error): Add printf format attribute.
8680 * thread-db.c (thread_from_lwp): Fix error format string.
8681 * stack.c (parse_frame_specification): Ditto.
8682 * cli/cli-decode.c (undef_cmd_error): Ditto.
8683 * scm-lang.c (scm_lookup_name): Ditto.
8684 * tracepoint.c (trace_error): Ditto.
8685 * remote-utils.c (usage): Ditto.
8686 * remote.c (compare_sections_command): Ditto.
8689 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8691 * gdbtypes.c (append_composite_type_field): New function.
8692 (init_composite_type): New function.
8693 * gdbtypes.h (append_composite_type_field): Declare.
8694 (init_composite_type): Ditto.
8696 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8698 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8700 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8701 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8702 structure returning convention for SYSV ABI case, but not
8703 for GNU/Linux, FreeBSD, or NetBSD.
8705 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8707 * symtab.h (lookup_block_symbol): Add mangled_name argument
8710 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8711 with new mangled_name argument.
8712 * linespec.c (decode_line_1): Likewise.
8713 * valops (value_of_this): Likewise.
8714 * symtab.c (lookup_transparent_type): Likewise.
8715 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8716 (lookup_symbol): If we are given a mangled name, pass it down
8717 to lookup_symbol_aux.
8718 (lookup_block_symbol): If we are given a mangled name to check
8719 against, only return symbols which match it.
8721 2002-03-22 Christopher Faylor <cgf@redhat.com>
8723 * win32-nat.c (child_create_inferior): Check for proper shell to use
8724 here, in case the user changes it on the fly.
8725 (_initialize_inftarg): Remove shell path considerations.
8727 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8729 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8730 for gdbarch_max_register_raw_size and max_register_virtual_size.
8731 Adjust copyright year.
8733 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8735 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8736 in a function to cover the entire beginning of the function
8737 as well if it does not already.
8739 2002-03-21 Tom Rix <trix@redhat.com>
8741 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8742 (rs6000_ptrace64): Renamed from ptrace64.
8744 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8746 * gdbserver/remote-utils.c (remote_open): Don't call
8747 getprotobyname, we're all using TCP here so just use
8749 * gdbserver/gdbreplay.c (remote_open): Ditto.
8751 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8753 * regcache.c (_initialize_regcache): No need to call
8754 build_regcache() at this time; it gets called whenever
8755 the gdbarch changes.
8757 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8759 * sparc-nat.c: Include sys/param.h where possible.
8761 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8764 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8765 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8766 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8768 * stabsread.c (rs6000_builtin_type): Likewise.
8769 (read_sun_floating_type): Likewise.
8771 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8773 * stabsread.c (read_member_functions): Remove skip code for duplicate
8774 constructor/destructor methods. Use standard parsing for these
8775 methods and just do not chain them to the list of methods after
8778 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8780 * coffread.c: Remove redundant static declarations. Replace
8781 occurrences of `PTR' with `void *'.
8782 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8783 * top.h (quit_cover): Likewise.
8784 * defs.h (catch_errors): Likewise.
8786 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8788 * defs.h (XMALLOC): Define.
8789 * gdb-events.sh (XMALLOC): Delete macro.
8790 * gdb-events.c, gdb-events.h: Regenerate.
8791 * gdbarch.sh (XMALLOC): Delete macro.
8792 * gdbarch.c: Regenerate.
8793 * serial.c (XMALLOC): Delete macro.
8794 * ui-file.c (XMALLOC): Ditto.
8795 * ser-unix.h (XMALLOC): Ditto.
8796 * sh-tdep.c (XMALLOC): Ditto.
8797 * ui-out.c (XMALLOC): Ditto.
8798 * utils.c (XMALLOC): Ditto.
8799 * i386-tdep.c (XMALLOC): Ditto.
8800 * gdb-events.c (XMALLOC): Ditto.
8801 * d10v-tdep.c (XMALLOC): Ditto.
8802 * cli-out.c (XMALLOC): Ditto.
8804 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8805 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8806 * ui-file.c, ui-out.c: Ditto.
8808 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8810 * command.h (struct cmd_list_element): Add field context.
8811 (set_cmd_context, get_cmd_context): Declare.
8812 * cli/cli-decode.h: Ditto.
8813 * cli/cli-decode.c (get_cmd_context): New function.
8814 (set_cmd_context): New function.
8815 (add_cmd): Initialize context.
8816 Part of fixing PR gdb/145 and PR gdb/146.
8818 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8820 * cli/cli-decode.c (cmd_type): New function.
8821 * command.h (cmd_type): Declare.
8822 * infrun.c (set_schedlock_func): Call function cmd_type.
8823 * kod.c (kod_set_os): Call cmd_type.
8824 * cris-tdep.c (cris_version_update): Use function cmd_type.
8825 (cris_mode_update, cris_abi_update): Ditto.
8827 * command.h: (execute_cmd_post_hook): Declare.
8828 (execute_cmd_pre_hook): Declare.
8829 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8830 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8831 functions. Execute pre/post hook while ensuring that afterwords
8833 * top.c (execute_command): Use execute_cmd_post_hook, and
8834 execute_cmd_pre_hook to execute pre/post commands.
8835 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8837 (hook_stop_stub): Call execute_cmd_pre_hook.
8839 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8841 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8842 set'' and this leads to a core dump. Move xstrdup of
8843 operating_system to after check that it is not NULL.
8845 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8847 * kod.c (kod_set_os): Remove unnecessary check that
8848 ``command->type'' is set_cmd.
8850 * valprint.c (set_input_radix): Use input_radix.
8851 (set_output_radix): Use output_radix.
8852 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8855 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8857 * value.h (struct value): Delete field ``substring_addr''. Change
8858 aligner fields to force_doublest_align, force_longest_align,
8859 force_core_addr_align and force_pointer_aligh.
8861 * value.h (struct value): Fix typo in above change.
8863 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8865 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8866 to fix internal_error from ``maintenance print architecture''.
8868 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8870 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8871 for gcc versions after gcc-2.8.1.
8873 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8875 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8876 for method resolution. Restore adjustment of ``this'' pointer after
8877 calling value_struct_elt, which was accidentally removed during the
8880 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8882 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8884 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8886 * value.h (value_of_register): Update.
8888 2002-03-14 Richard Henderson <rth@redhat.com>
8890 * configure.in: Detect declaration for canonicalize_file_name.
8891 * utils.c (canonicalize_file_name): Declare, if needed.
8892 (gdb_realpath): Prefer realpath if available and usable.
8893 * config.in, configure: Rebuild.
8895 2002-03-14 Richard Henderson <rth@redhat.com>
8897 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8898 a constant array bound.
8900 * MAINTAINERS: Add myself to write-after-approval.
8902 2002-03-14 Michael Snyder <msnyder@redhat.com>
8904 * symfile.c (syms_from_objfile): Return immediately if no syms.
8905 (symbol_file_add): Return immediately if no syms.
8906 (find_sym_fns): Return immediately if no syms.
8908 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8910 * gdbserver/remote-util.c (remote_open): Print remote-side's
8911 IP address when remote debugging over the network.
8913 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8915 * config/sparc/fbsd.mh: Fix copyright.
8916 * config/sparc/fbsd.mt: Likewise.
8918 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8920 * MAINTAINERS: Fix typo in name of gdb warnings option.
8921 (x86-64): Fix formating so that this can be parsed by awk.
8923 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8925 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8926 * defs.h: Include "gdb/signals.h".
8927 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8929 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8931 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8932 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8935 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8936 Don Howard <dhoward@redhat.com>
8938 * mips-tdep.c (ST0_FR): Define.
8939 (mips2_fp_compat): New function, temporarily disabled.
8940 (mips_read_fp_register_single): New function.
8941 (mips_read_fp_register_double): New function.
8942 (mips_print_register): Use them.
8943 (do_fp_register_row): Likewise.
8945 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8947 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8950 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8952 * stabsread.c (read_member_functions): Fix is_stub test for
8953 static member functions, improve comment.
8955 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8957 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8958 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8959 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8960 commands that set boolean values.
8961 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8962 (arm_rdi_resume): Always initialize PC.
8963 (arm_rdi_open): Don't use rslt as a boolean.
8964 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8965 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8966 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8967 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8969 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8971 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8972 * configure: Rebuilt.
8974 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8976 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8977 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8979 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8981 * cli/cli-decode.c (set_cmd_completer): New function.
8982 * command.h (set_cmd_completer): Declare.
8983 * cli/cli-decode.h (set_cmd_completer): Ditto.
8985 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8986 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8987 * win32-nat.c (_initialize_inftarg): Ditto.
8988 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8989 * proc-api.c (_initialize_proc_api): Ditto.
8990 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8991 * source.c (_initialize_source): Ditto.
8992 * exec.c (_initialize_exec): Ditto.
8993 * solib.c (_initialize_solib): Ditto.
8994 * top.c (init_main): Ditto.
8995 * tracepoint.c (_initialize_tracepoint): Ditto.
8996 * symfile.c (_initialize_symfile): Ditto.
8997 * printcmd.c (_initialize_printcmd): Ditto.
8998 * infcmd.c (_initialize_infcmd): Ditto.
8999 * corefile.c (_initialize_core): Ditto.
9001 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9003 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9005 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9007 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9009 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9011 * NEWS: Update headings, 5.2 has branched.
9013 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9015 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9016 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9017 (register_addr, REGISTER_RAW_SIZE): Likewise.
9018 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9019 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9021 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9023 * MAINTAINERS (x86-64): Add myself.
9024 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9025 changed value_ptr -> struct value *
9027 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9029 * configure.host (sparc64-*-freebsd): Add.
9030 * configure.tgt: Likewise.
9031 * config/sparc/fbsd.mh: New file.
9032 * config/sparc/fbsd.mt: Likewise.
9033 * config/sparc/nm-fbsd.h: Likewise.
9034 * config/sparc/tm-fbsd.h: Likewise.
9036 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9038 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9039 regformats/reg-s390x.dat.
9041 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9043 * utils.c: Add FIXME explaining true/false problem.
9045 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9047 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9049 2002-02-28 Michael Chastain <mec@shout.net>
9051 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9053 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9055 * gdbserver/linux-s390-low.c: New file.
9056 * regformats/reg-s390.dat: New file.
9057 * regformats/reg-s390x.dat: New file.
9058 * gdbserver/configure.srv: Add S/390.
9059 * gdbserver/Makefile.in: Add S/390.
9060 * configure.tgt: Enable gdbserver for S/390.
9062 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9064 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9065 first line of the doc string for "info dos", except at the end of
9066 the sentence, since the short help stops at the first period.
9068 2002-02-28 Jason Merrill <jason@redhat.com>
9070 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9072 2002-02-27 Fred Fish <fnf@redhat.com>
9074 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9075 comment (dumy -> dummy).
9077 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9079 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9081 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9083 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9085 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9087 * gdbserver/acconfig.h: New file.
9088 * gdbserver/i387-fp.c: New file.
9089 * gdbserver/i387-fp.h: New file.
9090 * gdbserver/linux-x86-64.c: New file.
9091 * regformats/reg-x86-64.dat: New file.
9092 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9093 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9094 * gdbserver/configure.in: Add support for regsets.
9095 * gdbserver/config.in: Regenerate.
9096 * gdbserver/configure: Regenerate.
9097 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9098 * gdbserver/linux-low.h: New file.
9099 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9101 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9102 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9103 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9104 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9105 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9106 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9107 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9108 "i387-fp.h". Add PTRACE_GETREGS and friends.
9109 * gdbserver/regcache.c (supply_register): New function.
9110 (supply_register_by_name): New function.
9111 (collect_register): New function.
9112 (collect_register_by_name): New function.
9114 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9116 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9117 (config.status): Add configure.srv dependency.
9118 (server_h): Add config.h dependency.
9120 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9122 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9123 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9124 * gdbserver/configure.srv: Change i386-*-linux* to use
9127 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9129 * x86-64-tdep.c: Re-indent. Update copyright date.
9131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9133 From Michal Ludvig <mludvig@suse.cz>:
9134 * x86-64-tdep.c (value.h): Delete.
9135 (gdb_assert.h): Include.
9136 (x86_64_register_convert_to_virtual,
9137 x86_64_register_convert_to_raw ): Add check which lets only
9138 floating-point values to be converted.
9139 (value_push): Delete.
9140 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9141 (i386_gdbarch_init): Number of register_bytes fixed.
9143 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9145 * MAINTAINERS: Add x86-64 target.
9147 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9149 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9150 * osfsolib.c (solib_map_sections): Ditto.
9151 * irix5-nat.c (solib_map_sections): Ditto.
9152 * corelow.c (gdb_check_format): Ditto.
9153 * symfile.c (symfile_bfd_open): Ditto.
9154 * solib.c (solib_map_sections): Ditto.
9157 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9159 * remote.c (_initialize_remote): By default, disable ``e'' and
9160 ``E'' step out-of-range packets.
9162 2002-02-26 Andreas Schwab <schwab@suse.de>
9164 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9165 m68k_linux_frame_saved_pc.
9166 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9168 (SIGCONTEXT_PC_OFFSET): Remove.
9169 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9170 m68k_linux_sigtramp_saved_pc): New functions.
9171 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9172 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9173 (UCONTEXT_PC_OFFSET): Define.
9174 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9175 non-RT and RT signal trampolines.
9177 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9179 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9180 (TARGET_NBPG, STACK_END_ADDR): Delete
9181 (VARIABLES_INSIDE_BLOCK): Delete.
9183 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9185 * utils.c (perror_with_name): Make string parameter constant.
9186 (print_sys_errmsg): Ditto.
9188 * defs.h (perror_with_name): Update.
9189 (print_sys_errmsg): Update.
9192 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9194 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9195 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9197 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9199 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9200 if it already matches the current architecture from the exec file.
9201 Include arch-utils.h for gdbarch_info_init prototype.
9202 * Makefile.in (rs6000-nat.o): Update dependencies.
9204 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9206 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9207 list of exported variables.
9209 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9211 * gdbserver/configure.srv: New file.
9212 * gdbserver/configure.in: Use configure.srv instead
9213 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9215 * gdbserver/configure: Regenerated.
9216 * gdbserver/terminal.h: New file.
9217 * gdbserver/Makefile.in: Update for configure changes. Remove
9218 more unneeded include paths.
9220 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9222 From wiz at danbala:
9223 * config/sparc/tm-sp64.h: Fix grammar and typos.
9226 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9228 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9229 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9230 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9231 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9232 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9233 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9234 * s390-tdep.c: Ditto.
9235 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9236 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9237 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9238 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9239 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9240 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9241 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9242 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9243 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9244 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9247 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9249 * lin-thread.c: Delete file.
9250 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9251 to gdb_proc_service.h.
9252 * configure: Re-generate.
9254 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9255 * serial.c (serial_open): Delete check for "ocd".
9258 * Makefile.in (linux-thread.o): Delete target.
9259 * linux-thread.c: Delete file.
9261 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9262 renamed SH files to be consistent.
9264 * symtab.c (sort_search_symbols): Use xfree.
9266 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9268 * arm-linux-tdep.c (arm_linux_init_abi): Register
9269 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9270 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9271 definition with undef, since we don't want the sysvr4 definition.
9272 (SKIP_TRAMPOLINE_CODE): Likewise.
9274 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9276 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9278 * configure.in: (AC_CHECK_FUNCS) Added test for
9279 canonicalize_file_name Regenerated.
9280 * config.in, configure: Regenerated.
9281 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9282 defined use canonicalize_file_name.
9284 2002-02-23 Michael Chastain <mec@shout.net>
9286 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9288 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9290 * README: Remove references to cygnus.com.
9291 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9292 dot com'' form. Remove references to cygnus.com and sourceware.
9294 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9296 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9297 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9298 1003.1-2001 no longer allows "head -1".
9299 * gdb/Makefile.in (version.c): Likewise.
9300 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9301 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9302 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9304 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9306 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9307 * command.h (cmd_cfunc_eq): Declare.
9308 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9310 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9311 ``struct cmd_list_element *''.
9312 * cli/cli-cmds.c (is_complete_command): Update. Use
9314 * top.c (execute_command): Pass the command to
9315 is_complete_command.
9316 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9318 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9320 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9321 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9322 architecture defines.
9323 * s390-tdep.c (s390_gdbarch_init): Likewise.
9325 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9327 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9328 (arm_linux_push_arguments): Likewise.
9329 (arm_linux_init_abi): Register them. Also register linux-specific
9331 (find_minsym_and_objfile): Use strcmp, not STREQ.
9332 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9333 (arm_linux_call_dummy_words): Delete declaration.
9334 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9335 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9337 (LOWEST_PC): Delete.
9339 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9341 * maint.c (print_section_info): Do not prepend `0x' to filepos
9342 output, it will be handled by local_hex_string_custom.
9344 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9346 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9347 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9348 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9350 2002-02-22 Jim Blandy <jimb@redhat.com>
9352 Indicate that the bcache functions don't change the strings
9354 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9355 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9357 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9359 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9361 2002-02-21 Christopher Faylor <cgf@redhat.com>
9363 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9364 find the complete path to a loaded DLL.
9366 2002-02-21 Fred Fish <fnf@redhat.com>
9368 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9369 that marks the end of the range of a function, enter a line number
9370 entry that has a line number of zero and a PC offset that matches
9371 the end of the function. This starts a range of PC's for which no
9372 line number information is known.
9373 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9374 PC's for which no line number info is found (line number is zero)
9375 then we didn't find any valid line information.
9376 * symtab.h: Document use of zero line number entry.
9378 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9380 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9381 (have_ptrace_getvrregs): Define for run time checks.
9382 (gdb_vrregset_t): New type for Altivec register handling.
9383 (fetch_register, store_register): Fetch/store altivec register
9385 (fetch_altivec_register, store_altivec_register): New functions.
9386 (supply_vrregset, fill_vrregset): New functions.
9387 (fetch_altivec_registers, store_altivec_registers): New functions.
9388 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9391 2002-02-21 Jiri Smid <smid@suse.cz>
9393 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9395 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9397 * Makefile.in (armnbsd-nat.o): Update dependencies.
9398 * armnbsd-nat.c (supply_gregset): New function. Common code to
9399 supply the integer register set.
9400 (supply_fparegset): New function. Similar for FPA registers.
9401 (fetch_regs, fetch_fp_regs): Use them.
9402 (fetch_core_registers): Likewise.
9403 (fetch_elfcore_registers): New function.
9404 (arm_netbsd_elfcore_fns): New core-file type specification.
9405 (_initialize_arm_netbsd_nat): Register it.
9407 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9409 * armnbsd-nat.c: Include gdbcore.h.
9410 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9411 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9412 'void' to declaration, to shut up ARI.
9413 (fetch_core_registers): Make static. Rewrite using supply_register.
9414 (arm_netbsd_core_fns): New core-file type specification.
9415 (_initialize_arm_netbsd_nat): New function.
9417 2002-02-21 Christopher Faylor <cgf@redhat.com>
9419 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9422 2002-02-20 Christopher Faylor <cgf@redhat.com>
9424 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9427 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9429 * jv-exp.y (parse_number): Change type of implicit longs
9430 to builtin_type_uint64.
9432 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9434 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9435 to be an integer instead of a `union wait'.
9437 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9439 * mips-linux-nat.c: Call the operating system GNU/Linux.
9440 * mips-linux-tdep.c: Likewise.
9441 * mips-tdep.c: Likewise.
9443 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9446 * jv-exp.y (parse_number): Handle 64-bit integers.
9448 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9450 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9451 AC_STDC_HEADERS to AC_HEADER_STDC.
9452 * gdbserver/configure: Regenerated.
9454 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9456 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9458 * sparc-tdep.c (get_longjmp_target): Likewise.
9460 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9462 * News: Add news about ARM and Multi-arch. Mention the new target
9465 2002-02-19 Jim Blandy <jimb@redhat.com>
9467 * stabsread.c (error_type_complaint): Improve error message.
9469 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9471 * gdbserver/README: Update documentation.
9472 * gdbserver/configure.in: Update configury to match documentation.
9473 * gdbserver/Makefile.in: Likewise.
9474 * gdbserver/configure: Regenerated.
9475 * gdbserver/aclocal.m4: New file, generated by aclocal.
9476 * gdbserver/config.in: New file, generated by autoheader.
9478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9480 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9485 * arm-tdep.h (enum arm_float_model): New enum.
9486 (struct gdbarch_tdep): Add fp_model.
9487 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9488 up floating-point conversions until we know the floating-point model
9489 in use by the inferior. Don't complain about being unable to
9490 determine the ABI of the inferior when we don't have one.
9491 (arm_extract_return_value): Support different floating-point models.
9492 (arm_store_return_value): Likewise.
9493 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9495 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9497 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9499 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9500 of ``current_gdbarch''.
9502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9504 * armnbsd-nat.c : ANSIfy all function declarations.
9505 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9506 (fetch_inferior_registers): Re-implement in terms of above.
9507 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9508 (store_inferior_registers): Re-implement in terms of above.
9510 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9512 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9514 * arm-linux-tdep.c: Likewise.
9515 * config/arm/tm-linux.h: Likewise.
9517 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9519 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9520 * config/arm/nbsd.mt (TM_FILE): Delete.
9521 * config/arm/tm-nbsd.h: Delete.
9523 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9525 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9526 Initialize CALL_DUMMY_LENGTH.
9528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9530 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9532 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9533 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9534 defines one thing and that is incorrect for this port.
9535 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9537 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9539 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9541 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9543 * win32-nat.c (display_selector): New function. Displays information
9544 about the information returned by GetThreadSelectorEntry API function.
9545 (display_selectors): New function. Displays the infomation of
9546 the selector given as argument, or of CS, DS ans FS selectors
9547 if no argument is given.
9548 ( _initialize_inftarg): Add "w32" as info prefix command.
9549 Add "info w32 selector" as command calling display_selectors.
9551 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9553 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9554 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9557 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9559 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9561 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9563 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9564 (arm_fix_call_dummy): Call it.
9565 (arm_call_dummy_breakpoint_offset): Delete.
9566 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9567 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9569 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9571 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9572 Default to func_frame_chain_valid.
9573 * gdbarch.h, gdbarch.c: Re-generate.
9574 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9576 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9578 * ppc-linux-nat.c: Update copyright.
9579 (fetch_register, store_register): Add tid parameter, don't compute
9581 (fetch_ppc_registers, store_ppc_registers): Add tid
9582 parameter. Pass it along to callees.
9583 (fetch_inferior_registers, store_inferior_registers): Compute tid
9584 here, and pass it to calleed functions.
9585 (fill_gregset, supply_fpregset): Clean up formatting.
9587 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9589 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9594 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9595 * gdbarch.c gdbarch.h: Regenerate.
9596 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9598 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9599 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9600 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9602 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9603 * arm-tdep.c (arm_get_longjmp_target): New function.
9604 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9605 this to a positive value register arm_get_longjmp_target as the
9607 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9608 (arm_linux_init_abi): Set up longjmp description in tdep.
9609 * armnbsd-nat.c (get_longjmp_target): Delete.
9610 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9611 description in tdep.
9612 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9613 (get_longjmp_target): Delete declaration.
9614 (GET_LONGJMP_TARGET): Delete.
9615 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9616 (GET_LONGJMP_TARGET): Delete.
9618 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9620 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9621 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9622 of ``current_gdbarch''.
9624 2002-02-17 Tom Tromey <tromey@redhat.com>
9626 * cli/cli-cmds.c (compare_strings): New function.
9627 (complete_command): Only print each unique item once.
9628 * completer.h (complete_line): Declare.
9629 * completer.c (complete_line): New function.
9630 (line_completion_function): Use it.
9632 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9634 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9635 * gdbarch.h, gdbarch.c: Re-generate.
9637 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9639 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9641 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9643 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9644 * valops.c (value_arg_coerce): Don't take the address of a reference
9645 to convert an argument to a reference.
9647 2002-02-15 Christopher Faylor <cgf@redhat.com>
9649 * win32-nat.c (get_image_name): New function.
9650 (handle_load_dll): Use get_image_name function.
9651 (get_child_debug_event): Avoid registering debug events until possibly
9652 execed process is started.
9653 (child_create_inferior): Allow invocation via shell so that command
9654 line redirection, etc. works ok.
9655 (_initialize_inftarg): Add new command: "set shell" to control whether
9656 a shell is used to start a process.
9658 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9660 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9661 instead of find_register_by_number.
9662 (cannot_store_register): Likewise.
9664 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9666 * dwarf2read.c: Replace fprintf (stderr, ...) by
9667 fprintf_unfiltered (gdb_stderr, ...).
9669 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9671 * gdbserver/gdbserver.1: Document --attach.
9673 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9675 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9677 * arm-tdep.c (arm_default_arm_le_breakpoint)
9678 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9679 (arm_default_thumb_be_breakpoint): New. Initialize them from
9680 traditional breakpoint defines.
9681 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9682 (arm_gdbarch_init): Initialize new breakpoint variables.
9683 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9684 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9685 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9686 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9688 (arm_netbsd_init_abi_common): ... here; new function.
9689 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9690 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9691 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9692 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9694 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9696 * arm-tdep.h (enum arm_abi): New enum.
9697 (struct gdbarch_tdep): New structure.
9698 (LOWEST_PC): Provide a default.
9699 (arm_gdbarch_register_os_abi): Declare new function.
9700 * arm-tdep.c (arm_abi_names): New array.
9701 (process_note_abi_tag_sections): New function.
9702 (get_elfosabi): New function.
9703 (arm_gdbarch_register_os_abi): New function.
9704 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9705 support for that ABI has been built in, then call the appropriate
9706 configuration routine. Use gdbarch_num_regs() to get the number
9708 (arm_dump_tdep): New function.
9709 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9710 place-holder functions.
9711 (_initialize_arm_tdep): Register them.
9712 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9714 * armnbsd-tdep.c: New file.
9715 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9716 * config/arm/nbsd.mt (TDEPFILES): Add it.
9717 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9719 * armnbsd-nat.c: Include regcache.h.
9720 * Makefile.in (armnbsd-nat.o): Update dependency list.
9722 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9724 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9726 * gdbserver/Makefile.in: Fix typos in target rules.
9728 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9730 Fix part of PR gdb/267.
9731 * linespec.c (find_methods): Handle constructors specially for now.
9733 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9735 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9737 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9738 standard_coerce_float_to_double().
9740 2002-02-14 Christopher Faylor <cgf@redhat.com>
9742 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9745 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9747 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9748 find_variant_by_name, because it confuses the multiarch
9749 framework. Return NULL if there isn't an architecture with the
9750 user supplied name, instead of forcing a different one without
9751 recording the change with the multiarch machinery.
9752 (find_variant_by_name): Delete.
9754 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9756 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9757 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9759 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9761 * stack.c (print_frame_info_base): When calling
9762 print_frame_info_listing_hook, set current_source_symtab.
9764 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9766 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9767 and remove unused $(INCLUDE_DIR).
9768 Add regcache.c to OBS.
9769 Add generated register protocol files to clean target.
9770 Update dependencies for new objects, obsolete old target code.
9772 * gdbserver/linux-low.c: Remove all platform-specific code to
9773 new files. Remove various dead code. Update to use regcache
9775 * gdbserver/remote-utils.c (fromhex): Add return statement
9777 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9779 (input_interrupt): Add integer parameter to match prototype
9780 of a signal handler.
9781 (outreg): Use register_data ().
9782 (prepare_resume_reply): Use gdbserver_expedite_regs.
9783 * gdbserver/server.c (main): Dynamically allocate own_buf because
9784 PBUFSIZ is no longer constant. Use registers_to_string () and
9785 registers_from_string ().
9786 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9787 for error (), fatal (), and warning (). Update definition of
9788 PBUFSIZ to use regcache functionality. Add include guard.
9789 * gdbserver/utils.c (fatal): Add missing ``const''.
9790 (warning): New function.
9792 * regformats/regdat.sh: Include "regcache.h" in generated files.
9793 Provide init_registers () function.
9794 * regformats/regdef.h: Add prototype for set_register_cache ().
9797 * gdbserver/linux-arm-low.c: New file.
9798 * gdbserver/linux-i386-low.c: New file.
9799 * gdbserver/linux-ia64-low.c: New file.
9800 * gdbserver/linux-m68k-low.c: New file.
9801 * gdbserver/linux-mips-low.c: New file.
9802 * gdbserver/linux-ppc-low.c: New file.
9803 * gdbserver/linux-sh-low.c: New file.
9805 * gdbserver/regcache.c: New file.
9806 * gdbserver/regcache.h: New file.
9808 * gdbserver/low-linux.c: Removed obsolete file.
9810 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9812 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9813 * config/i386/linux.mt: Likewise.
9814 * config/ia64/linux.mt: Likewise.
9815 * config/m68k/linux.mh: Likewise.
9816 * config/powerpc/linux.mh: Likewise.
9817 * config/mips/linux.mt: Likewise.
9819 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9821 * config/i386/i386lynx.mh: Mark gdbserver variables
9822 as (currently) obsolete for this target.
9823 * config/i386/nbsd.mt: Likewise.
9824 * config/i386/nbsdelf.mt: Likewise.
9825 * config/m32r/m32r.mt: Likewise.
9826 * config/m68k/m68klynx.mh: Likewise.
9827 * config/m68k/nbsd.mt: Likewise.
9828 * config/m68k/sun3os4.mh: Likewise.
9829 * config/mips/vr5000.mt: Likewise.
9830 * config/ns32k/nbsd.mt: Likewise.
9831 * config/pa/hppabsd.mh: Likewise.
9832 * config/pa/hppaosf.mh: Likewise.
9833 * config/powerpc/nbsd.mt: Likewise.
9834 * config/rs6000/rs6000lynx.mh: Likewise.
9835 * config/s390/s390.mt: Likewise.
9836 * config/s390/s390x.mt: Likewise.
9837 * config/sparc/sparclynx.mh: Likewise.
9838 * config/sparc/sun4os4.mh: Likewise.
9839 * config/i386/x86-64linux.mt: Likewise.
9840 * config/sparc/linux.mh: Likewise.
9842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9844 * configure.tgt: Configure gdbserver only for known working
9845 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9846 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9847 SUBDIRS if it is configured. Update comment for ${nativefile}.
9848 * configure: Regenerated.
9850 2002-02-13 Michael Snyder <msnyder@redhat.com>
9852 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9854 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9855 (default_gcore_mach): Just return 0, work around a problem in bfd.
9856 (default_gcore_target): OK to return NULL if exec_bfd is null.
9857 (make_mem_sec): Use a cast, avoid a warning.
9859 * procfs.c (find_memory_regions_callback): Use a cast instead of
9860 calling host_pointer_to_address (which complains if
9861 sizeof (host pointer) != sizeof (target pointer)).
9862 (procfs_make_note_section): Avoid overflow in psargs string.
9864 * procfs.c (procfs_make_note_section): Make the default
9865 implementation return an error.
9867 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9869 * procfs.c (procfs_make_note_section): Provide a default definition
9870 (for alpha-dec-osf4.0f). Fix typos.
9872 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9874 * linux-proc.c: Add include of regcache.h.
9875 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9877 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9879 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9880 * memattr.c (create_mem_region): Disallow useless empty region.
9881 Regions are half-open intervals, so allow [A..B) [B..C) as
9884 2002-02-13 Michael Chastain <mec@shout.net>
9886 * defs.h: Kill CONST_PTR.
9887 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9888 * c-lang.c (c_builtin_types): Likewise.
9889 * ch-lang.c (ch_builtin_types): Likewise.
9890 * f-lang.c (f_builtin_types): Likewise.
9891 * language.c (unknown_builtin_types): Likewise.
9892 * m2-lang.c (m2_builtin_types): Likewise.
9893 * p-lang.c (pascal_builtin_types): Likewise.
9894 * scm-lang.c (c_builtin_types): Likewise.
9896 2002-02-13 Keith Seitz <keiths@redhat.com>
9898 * arm-tdep.h (arm_get_next_pc): Add declaration.
9900 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9902 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9903 with other related struct-returning functions.
9904 (arm_extract_struct_value_address): New function.
9905 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9906 initialize float_format, double_format and long_double_format as
9907 appropriate to the endianness of the target.
9908 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9909 (arm_use_struct_convention): Delete declaration.
9910 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9912 2002-02-13 Keith Seitz <keiths@redhat.com>
9914 * defs.h (core_addr_to_string_nz): New function.
9916 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9918 Apply missing bits of 2002-01-15 patch.
9919 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9920 (fill_fpregset): Use i387_fill_fsave.
9922 2002-02-12 Keith Seitz <keiths@redhat.com>
9924 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9925 (core_addr_to_string_nz): New function.
9927 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9929 * arm-linux-nat.c: Really include arm-tdep.h.
9930 * config/arm/tm-linux.h (struct type, struct value): Declare.
9932 2002-02-11 Michael Snyder <msnyder@redhat.com>
9934 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9935 (gcore section): Ifdef for Solaris and Unixware only.
9936 (procfs_do_thread_registers): Unixware needs one lwpstatus
9937 per thread (not one prstatus or pstatus).
9938 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9939 not over all gdb threads. For unixware, call elfcore_write_pstatus
9940 once before iterating over threads.
9942 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9944 * arm-tdep.h: New file.
9945 * arm-tdep.c: Include arm-tdep.h.
9946 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9947 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9948 (arm_print_float_info, arm_register_type, convert_to_extended)
9949 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9950 (arm_extract_return_value, arm_register_name): Make static.
9951 (arm_software_single_step): Similarly. Fix types in declaration.
9952 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9953 (arm_store_return_value, arm_store_struct_return): New functions.
9954 (arm_gdbarch_init): Register the above functions. Also register
9955 call_dummy_start_offset, sizeof_call_dummy_words,
9956 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9957 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9958 max_register_virtual_size, register_size. Set up
9959 prologue_cache.saved_regs here, rather than ...
9960 (_initialize_arm_tdep): ... here.
9961 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9963 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9964 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9965 (arm_print_float_info, arm_register_type, convert_to_extended)
9966 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9967 (arm_extract_return_value, arm_register_name): Delete declarations.
9968 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9969 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9970 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9971 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9972 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9973 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9974 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9975 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9976 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9977 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9978 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9979 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9981 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9982 * remote-rdi.c remote-rdp.c: Likewise.
9983 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9984 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9985 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9988 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9989 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9990 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9991 from non-ARM_ prefixed definitions.
9992 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9994 * remote-rdi.c remote-rdp.c: Likewise.
9995 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9997 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9999 * arm-tdep.c (arm_frameless_function_invocation)
10000 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10001 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10002 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10003 (arm_pop_frame, arm_get_next_pc): Make static.
10004 (arm_gdbarch_init): Register above in gdbarch structure.
10005 (arm_read_fp): Renamed from arm_target_read_fp.
10006 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10007 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10008 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10009 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10010 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10011 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10012 (arm_pc_is_thumb_dummy): Delete declarations.
10013 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10014 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10015 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10016 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10018 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10020 * symtab.c (compare_search_syms): New function.
10021 (sort_search_symbols): New function.
10022 (search_symbols): Sort symbols after searching rather than
10025 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10027 * NEWS: Linux -> GNU/Linux.
10029 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10031 * gdbarch.sh: For for level one methods, disallow a definition
10032 when partially multi-arched. Add comments explaining rationale.
10033 * gdbarch.h: Re-generate.
10035 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10037 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10038 multi-arch partial.
10040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10042 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10043 field. Use diff -u.
10044 * gdbarch.c: Re-generate.
10046 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10048 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10049 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10052 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10054 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10055 multi-arch partial.
10056 (PUSH_ARGUMENTS): Switch to using predefault.
10057 * gdbarch.c: Regenerate.
10059 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10061 * valops.c (PUSH_ARGUMENTS): Delete definition.
10062 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10063 partial. Default to default_push_arguments.
10064 * gdbarch.h, gdbarch.c: Regenerate.
10066 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10068 * defs.h (throw_exception): Rename return_to_top_level. Update
10070 * utils.c (error_stream, internal_verror, quit): Ditto.
10071 * top.c (throw_exception, catcher): Ditto.
10072 * sparclet-rom.c (sparclet_load): Ditto.
10073 * remote.c (interrupt_query, minitelnet): Ditto.
10074 * remote-sds.c (interrupt_query): Ditto.
10075 * remote-mips.c (mips_error, mips_kill): Ditto.
10076 * ocd.c (interrupt_query): Ditto.
10077 * monitor.c (monitor_interrupt_query): Ditto.
10078 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10079 * target.h: Update comment.
10081 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10083 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10085 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10086 default_double_format.
10087 * gdbarch.h, gdbarch.c: Re-generate.
10088 * findvar.c (floatformat_unknown): Delete variable definition.
10089 * doublest.h (floatformat_unknown): Delete variable declaration.
10091 2002-02-09 Jim Blandy <jimb@redhat.com>
10093 * stabsread.c (read_type): Add code to parse Sun's syntax for
10094 prototyped function types.
10096 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10098 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10099 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10101 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10103 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10104 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10105 now _initialize_xcoffsolib gets called again and overrides the
10106 commands from solib.c in a native configuration.
10108 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10110 * doublest.c (store_typed_floating): Don't try to return a value.
10113 2002-02-08 Jim Blandy <jimb@redhat.com>
10115 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10116 is prototyped and has no arguments, print its argument list as
10119 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10121 * MAINTAINERS (write-after-approval): Add myself.
10122 (paper-trail): I've escaped!
10124 2002-02-08 Christopher Faylor <cgf@redhat.com>
10126 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10128 (_initialize_check_for_gdb_ini): Ditto.
10130 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10132 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10133 xaprintf -> xasprintf.
10135 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10137 * win32-nat.c: Remove use of printf and sprintf functions.
10139 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10141 * arm-tdep.c (arm_frame_chain_valid): Make static.
10142 (arm_push_arguments): Likewise.
10143 (arm_gdbarch_init): New function.
10144 (_initialize_arm_tdep): Call it.
10145 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10146 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10147 (FRAME_CHAIN_VALID): Delete.
10148 (arm_frame_chain_valid): Delete declaration.
10149 (PUSH_ARGUMENTS): Delete.
10150 (arm_push_arguments): Delete declaration.
10151 (CALL_DUMMY_P): Delete.
10153 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10154 Corinna Vinschen <vinschen@redhat.com>
10156 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10157 on builtin float types.
10159 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10161 * utils.c: Include <curses.h> before "bfd.h".
10162 * tui/tui-hooks.c: Likewise.
10163 * tui/tui.c: Likewise.
10164 * tui/tuiCommand.c: Likewise.
10165 * tui/tuiData.c: Likewise.
10166 * tui/tuiDataWin.c: Likewise.
10167 * tui/tuiDisassem.c: Likewise.
10168 * tui/tuiGeneralWin.c: Likewise.
10169 * tui/tuiIO.c: Likewise.
10170 * tui/tuiLayout.c: Likewise.
10171 * tui/tuiRegs.c: Likewise.
10172 * tui/tuiSource.c: Likewise.
10173 * tui/tuiSourceWin.c: Likewise.
10174 * tui/tuiStack.c: Likewise.
10175 * tui/tuiWin.c: Likewise.
10177 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10179 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10180 to include space for pseudoregs as well. Update loops accordingly.
10181 (sh_fp_frame_init_saved_regs): Ditto.
10182 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10184 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10186 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10187 Add Richard Earnshaw to Arm maintainers.
10189 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10191 * defs.h (warning_begin): Delete declaration.
10193 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10196 2002-02-07 Michael Snyder <msnyder@redhat.com>
10198 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10199 Logic bug, remove misplaced else.
10201 2002-02-07 Klee Dienes <klee@apple.com>
10203 * fork-inferior.c (fork_inferior): Add '!' to the list of
10204 characters that need to be quoted when building a string for the
10205 shell. Quote '!' specifically with a backslash, since CSH chokes
10206 when trying to evaluate "str!str".
10208 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10210 * rdi-share/host.h: Only provide a typedef for bool if it is not
10213 2002-02-04 Michael Snyder <msnyder@redhat.com>
10215 * breakpoint.h (enum bptype): Add new overlay event bp type.
10216 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10218 * breakpoint.c (create_internal_breakpoint): New function.
10219 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10220 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10221 (create_thread_event_breakpoint): Ditto.
10222 (create_solib_event_breakpoint): Ditto.
10223 (create_overlay_event_breakpoint): New function.
10224 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10225 (update_breakpoints_after_exec): Delete and re-initialize
10226 overlay event breakpoints after an exec. Add FIXME comment
10227 about longjmp breakpoint.
10228 (print_it_typical): Ignore overlay event breakpoints.
10229 (print_one_breakpoint): Ditto.
10231 (bpstat_what): Do not stop for overlay event breakpoints.
10232 (delete_breakpoint): Don't delete overlay event breakpoints.
10233 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10234 (breakpoint_re_set): Re-create overlay event breakpoint.
10236 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10237 (overlay_manual_command): Disable overlay breakpoints.
10238 (overlay_off_command): Disable overlay breakpoints.
10240 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10242 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10243 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10244 to here from config/tm-arm.h.
10245 (coff_sym_is_thumb): Make static.
10246 (arm_elf_make_msymbol_special): New function.
10247 (arm_coff_make_msymbol_special): New function.
10248 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10249 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10250 (coff_sym_is_thumb): Delete declaration.
10251 (arm_elf_make_msymbol_special): Declare.
10252 (arm_coff_make_msymbol_special): Declare.
10253 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10254 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10256 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10258 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10260 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10262 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10263 * gdbarch.c gdbarch.h: Regenerate.
10264 * arch-utils.c (default_print_float_info): New function.
10265 * arch-utils.h (default_print_float_info): Prototype it.
10266 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10267 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10268 (PRINT_FLOAT_INFO): Document it.
10270 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10271 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10272 (PRINT_FLOAT_INFO): Define.
10274 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10276 * win32-nat.c (_initialize_check_for_gdb_ini):
10277 Add typecast to sprintf argument to suppress a warning.
10279 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10281 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10282 to allow easier handling of pass state.
10283 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10284 that gives exception name and address.
10285 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10286 and set last_sig value to ourstatus->value.sig. Some missing
10288 (child_continue): Correctly report continue_status.
10289 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10290 TARGET_SIGNAL_0 (new default value).
10291 (child_resume): consider sig argument passed to decide if
10292 the exception should be passed to debuggee or not.
10294 2002-02-05 Michael Snyder <msnyder@redhat.com>
10296 * regcache.c (fetch_register): Call target_fetch_register
10297 only if we don't call FETCH_PSEUDO_REGISTER.
10298 (store_register): Call target_store_register only if we
10299 don't call STORE_PSEUDO_REGISTER.
10301 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10303 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10304 ELF_MAKE_MSYMBOL_SPECIAL.
10305 * gdbarch.c, gdbarch.h: Regenerate.
10306 * arch-utils.c (default_make_msymbol_special): New function.
10307 * arch-utils.h (default_make_msymbol_special): Export.
10308 * elfread.c (elf_symtab_read): Compile use of
10309 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10311 * coffread.c (coff_symtab_read): Ditto, for
10312 COFF_MAKE_MSYMBOL_SPECIAL.
10314 2002-02-05 Jim Blandy <jimb@redhat.com>
10316 * solib-svr4.c (svr4_truncate_ptr): New function.
10317 (svr4_relocate_section_addresses): Do the address arithmetic with
10318 the appropriate truncation for target addresses, even when
10319 CORE_ADDR is larger than a target address.
10321 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10323 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10326 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10328 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10331 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10333 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10335 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10337 * gdbserver/linux-low.c: Remove unused include files.
10339 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10341 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10342 (read_inferior_memory): Use it.
10343 (write_inferior_memory): Likewise.
10345 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10347 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10348 grubbing through sys_errlist.
10350 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10352 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10354 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10355 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10357 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10359 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10360 (do_sfunc, set_cmd_sfunc): New functions.
10362 * command.h (struct cmd_list_element): Add field func.
10363 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10364 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10365 * cli/cli-decode.h: Ditto.
10367 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10368 (help_all, help_cmd_list): Ditto.
10369 (find_cmd, complete_on_cmdlist): Ditto.
10370 * top.c (execute_command): Ditto.
10372 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10375 * infcmd.c (notice_args_read): Fix function signature.
10377 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10378 * cli/cli-decode.c (add_set_cmd): Ditto.
10379 * utils.c (initialize_utils): Ditto.
10380 * maint.c (_initialize_maint_cmds): Ditto.
10381 * infrun.c (_initialize_infrun): Ditto.
10382 * demangle.c (_initialize_demangler): Ditto.
10383 * remote.c (add_packet_config_cmd): Ditto.
10384 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10385 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10386 * proc-api.c (_initialize_proc_api): Ditto.
10387 * kod.c (_initialize_kod): Ditto.
10388 * valprint.c (_initialize_valprint): Ditto.
10389 * top.c (init_main): Ditto.
10390 * infcmd.c (_initialize_infcmd): Ditto.
10391 * corefile.c (_initialize_core): Ditto.
10392 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10393 * arch-utils.c (initialize_current_architecture): Ditto.
10394 (_initialize_gdbarch_utils): Ditto.
10395 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10397 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10398 * wince.c (_initialize_inftarg): Ditto.
10399 * symfile.c (_initialize_symfile): Ditto.
10400 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10401 * language.c (_initialize_language): Ditto.
10402 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10404 2002-02-04 Michael Snyder <msnyder@redhat.com>
10406 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10408 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10410 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10411 Add rules for building the register data files.
10413 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10415 * regformats/regdat.sh: Add braces to the definition of
10416 expedite_regs_${arch}.
10418 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10420 * regformats/regdef.h (struct reg): Add comment describing the
10421 requirements for offset and size fields.
10423 2002-02-04 Andreas Schwab <schwab@suse.de>
10425 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10426 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10428 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10430 * gdbarch.sh (copyright): Update years in generated header.
10431 (SMASH_TEXT_ADDRESS): Add rule.
10432 * gdbarch.h, gdbarch.c: Re-generate.
10433 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10434 * dbxread.c: Likewise.
10435 * dwarfread.c: Likewise.
10436 * elfread.c: Likewise.
10437 * somread.c: Likewise.
10439 * arm-tdep.c (arm_smash_text_address): New function.
10440 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10442 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10444 Add support for hardware watchpoints on win32 native.
10445 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10446 CONTEXT_DEBUG_REGISTERS.
10447 (dr variable): New variable. Static array containing a local copy
10448 of debug registers.
10449 (debug_registers_changed): New variable. Reflects when debug registers
10450 are changed and need to be written to inferior.
10451 (debug_registers_used): New variable. Reflects when any debug register
10452 was set, used when new threads are created.
10453 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10455 (thread_rec): Set dr array if id is the thread of current_event .
10456 (child_continue, child_resume): Change the debug registers for all
10457 threads if debug_registers_changed.
10458 (child_add_thread): Change the debug registers if debug_registers_used.
10459 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10460 Link nm.h to new nm-cygwin.h file.
10461 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10462 of hardware registers.
10464 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10466 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10467 Restore behavour broken by 2002-01-20 Andrew Cagney
10468 <ac131313@redhat.com> IEEE_FLOAT removal.
10470 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10472 * c-valprint.c (c_val_print): Pass a proper valaddr to
10473 cp_print_class_method.
10474 * valops.c (search_struct_method): If there is only one method
10475 and args is NULL, return that method.
10477 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10479 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10480 accessing tag_name directly.
10482 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10484 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10485 of accessing tag_name directly.
10487 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10490 * gdbtypes.c (replace_type): New function.
10491 * gdbtypes.h (replace_type): Add prototype.
10492 * stabsread.c (read_type): Use replace_type.
10494 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10496 * Makefile.in (memattr.o): Add missing dependencies rule.
10498 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10500 * breakpoint.c (break_at_finish_command): Really export.
10501 (break_at_finish_at_depth_command): Ditto.
10502 (tbreak_at_finish_command): Ditto.
10503 * hppa-tdep.c: Include completer.h.
10504 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10505 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10507 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10509 * utils.c (do_write): New function.
10510 (error_stream): Rewrite combining the code from error_begin and
10512 (verror): Rewrite using error_stream.
10513 (error_begin): Delete function.
10515 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10517 * utils.c (error_begin): Make static.
10518 * defs.h (error_begin): Delete declaration.
10520 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10521 (decode_line_1): Use cplusplus_error instead of error_begin,
10522 cplusplus_hint and return_to_top_level.
10523 * coffread.c (coff_symfile_read): Use error instead of error_begin
10524 and return_to_top_level.
10525 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10527 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10529 * language.h (type_error, range_error): Make string parameter
10531 * language.c (warning_pre_print): Delete extern declaration.
10532 * dwarfread.c (warning_pre_print): Ditto.
10533 * language.c (type_error, range_error): Rewrite to use verror and
10534 vwarning instead of warning_begin.
10536 2002-02-01 Michael Snyder <msnyder@redhat.com>
10538 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10539 (set_ignore_count): Move misplaced comment back where it belongs.
10541 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10543 * command.h (NO_FUNCTION): Delete macro.
10544 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10545 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10546 * tracepoint.c (_initialize_tracepoint): Ditto.
10547 * cli/cli-decode.c (add_set_cmd): Ditto.
10548 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10550 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10552 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10553 Update ``this'' pointer when calling virtual functions.
10555 2002-02-01 Michael Snyder <msnyder@redhat.com>
10557 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10558 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10560 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10562 * regformats/reg-arm.dat: New file.
10563 * regformats/reg-i386.dat: New file.
10564 * regformats/reg-ia64.dat: New file.
10565 * regformats/reg-m68k.dat: New file.
10566 * regformats/reg-mips.dat: New file.
10567 * regformats/reg-ppc.dat: New file.
10568 * regformats/reg-sh.dat: New file.
10569 * regformats/regdef.h: New file.
10570 * regformats/regdat.sh: New file.
10572 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10574 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10575 (arm_frame_args_address, arm_frame_locals_address): New functions.
10576 (arm_frame_num_args): New function.
10577 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10578 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10579 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10581 2002-01-31 Michael Snyder <msnyder@redhat.com>
10583 * breakpoint.c (break_at_finish_command): Export.
10584 (break_at_finish_at_depth_command): Export.
10585 (tbreak_at_finish_command): Export.
10586 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10587 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10588 "txbreak" commands, which are HPPA specific.
10590 * printcmd.c (disassemble_command): Remove an ancient
10591 artifact of an old merge.
10593 * symfile.h (enum overlay_debugging_state):
10594 Define enum constant values for overlay mode.
10595 * symfile.c (overlay_debugging): Use enums instead of literals.
10596 (overlay_is_mapped, overlay_auto_command,
10597 overlay_manual_command): Ditto.
10599 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10600 breakpoint_here_p, breakpoint_inserted_here_p,
10601 breakpoint_thread_match, bpstat_stop_status,
10602 describe_other_breakpoints, check_duplicates, clear_command):
10603 Coding standard fixes.
10605 * target.c (target_xfer_memory): Add spaces, coding standard.
10606 (do_xfer_memory): Add missing line to trust-readonly
10607 code: check bfd SEC_READONLY flag for section.
10609 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10611 * PROBLEMS: Fix typo, 5.1->5.1.1.
10613 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10615 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10616 data symbols, since we search based on textlow and texthigh.
10617 (find_pc_sect_symtab): Likewise.
10619 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10621 * defs.h (vwarning): Declare.
10622 * utils.c (vwarning): New function.
10623 (warning): Call vwarning.
10624 (warning_begin): Delete function.
10626 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10627 the warning message.
10628 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10631 2002-01-30 Michael Snyder <msnyder@redhat.com>
10633 * NEWS: Mention "set trust-readonly-sections" command.
10634 Mention generate-core-file command.
10636 2002-01-15 Michael Snyder <msnyder@redhat.com>
10638 * target.c: New command, "set trust-readonly-sections on".
10639 (do_xfer_memory): Honor the suggestion to trust readonly sections
10640 by reading them from the object file instead of from the target.
10641 (initialize_targets): Register command "set trust-readonly-sections".
10643 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10645 * parse.c (target_map_name_to_register): Simplify, search regs and
10646 pseudo-regs using a single loop.
10648 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10650 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10652 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10654 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10655 * config/i386/i386v42mp.mh: Add i387-nat.o .
10656 * i386v4-nat.c: Include i387-nat.h.
10657 (supply_fpregset): Use i387_supply_fsave.
10658 (fill_fpregset): Use i387_fill_fsave.
10660 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10662 * arm-tdep.c (arm_call_dummy_words): Define.
10663 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10664 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10665 (CALL_DUMMY_WORDS): Define.
10666 (arm_call_dummy_words): Declare.
10667 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10668 (arm_linux_call_dummy_words): Declare.
10670 2002-01-30 Andreas Schwab <schwab@suse.de>
10672 * m68klinux-nat.c: Fix last change to use regcache_collect
10673 instead of referencing registers[] directly.
10675 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10677 * parse.c (target_map_name_to_register): Delete code wrapped in
10678 #ifdef REGISTER_NAME_ALIAS_HOOK.
10680 2002-01-28 Michael Snyder <msnyder@redhat.com>
10682 * regcache.c (legacy_read_register_gen): Need to be able to
10683 read pseudo-register as well as real register.
10684 (legacy_write_register_gen): Ditto.
10686 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10688 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10689 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10690 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10691 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10692 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10693 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10694 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10695 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10696 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10697 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10698 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10699 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10700 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10701 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10702 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10703 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10704 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10705 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10706 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10707 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10709 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10711 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10712 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10713 (initialize_current_architecture): Update target_byte_order using
10714 information from BFD.
10715 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10716 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10718 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10720 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10721 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10723 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10724 #ifdef INVALID_FLOAT.
10725 * infcmd.c (do_registers_info): Ditto.
10726 * values.c (unpack_double): Ditto. Add comment.
10728 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10729 already commented out.
10731 2002-01-26 Andreas Schwab <schwab@suse.de>
10733 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10734 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10735 registers and add support for PTRACE_GETREGS.
10737 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10739 GDB 5.1.1 released from 5.1 branch.
10740 * NEWS: Add 5.1.1 news.
10741 * README: Sync with 5.1 branch.
10743 2002-01-23 Fred Fish <fnf@redhat.com>
10745 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10746 stabstring on initial malloc. Reallocing will copy it for us,
10749 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10751 * Makefile.in (hpread_h): Delete.
10752 (HFILES_NO_SRCDIR): Remove hpread.h.
10753 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10754 (hpread.o): Update dependencies.
10755 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10757 * hp-psymtab-read.c: Remove file.
10758 * hp-symtab-read.c: Remove file.
10759 * hpread.h: Remove file.
10761 * hpread.c: Merge all contents of hp-psymtab-read.c,
10762 hp-symtab-read.c and hpread.h into this file, as it was prior to
10765 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10766 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10767 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10768 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10770 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10772 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10773 fill_gregset): Call gdbarch_tdep() just once, assign result to
10774 variable and use that, instead of calling the function several
10777 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10779 * configure.host: Accept sparcv9 as alias for sparc64.
10780 * configure.tgt: Likewise.
10782 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10784 * solib-aix5.c (build_so_list_from_mapfile)
10785 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10786 arguments is not reversed.
10787 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10788 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10790 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10792 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10793 modified version of obsolete sh_fetch_pseudo_register.
10794 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10795 (sh4_register_read): New function.
10796 (sh_pseudo_register_write): New function. Renamed and modified
10797 version of obsolete sh_store_pseudo_register.
10798 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10799 (sh4_register_write): New function.
10800 (sh_gdbarch_init): Remove setting of gdbarch function
10801 fetch_pseudo_register and store_pseudo_register. Remove setting of
10802 register_convert_to_raw, register_convert_to_virtual,
10803 register_convertible.
10804 (sh_sh4_register_convertible): Delete. No longer needed. All is
10805 taken care by architecture specific functions
10806 register_read/register_write.
10807 (sh_sh4_register_convert_to_virtual): Make static.
10808 (sh_sh4_register_convert_to_raw): Ditto.
10810 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10812 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10813 (floatformat_is_nan, floatformat_mantissa): Ditto.
10815 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10816 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10817 builtin_type_ieee_double_little,
10818 builtin_type_ieee_double_littlebyte_bigword,
10819 builtin_type_m68881_ext, builtin_type_i960_ext,
10820 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10821 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10822 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10823 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10825 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10827 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10828 parameter. Set frameless flag if it exists and depended of
10829 whether the scanned function is frameless or not.
10830 (xstormy16_skip_prologue): If function is frameless, return
10831 result of xstormy16_scan_prologue().
10832 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10835 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10837 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10838 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10839 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10840 sh_sh4_register_byte, sh_sh4_register_raw_size,
10841 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10842 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10843 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10844 sh_store_pseudo_register, sh_do_pseudo_register): Call
10845 gdbarch_tdep() just once, assign result to variable and use that,
10846 instead of calling the function several times.
10848 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10850 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10851 macros instead of LAST_FPU_CTRL_REGNUM.
10852 (store_register): Likewise.
10854 2002-01-21 Jim Blandy <jimb@redhat.com>
10856 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10857 is up-to-date before running the program, not just when a program
10860 2002-01-21 Fred Fish <fnf@redhat.com>
10862 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10863 when we have found all instructions we are looking for.
10865 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10867 * arm-tdep.c (arm_register_name): New function.
10868 (arm_registers_names): Make static.
10869 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10870 (arm_register_name): Declare.
10871 (REGISTER_NAME): Use it.
10873 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10874 Kevin Buettner <kevinb@redhat.com>
10876 Convert arm targets to new FRAME interface.
10877 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10878 (arm_frame_find_save_regs): Delete.
10879 (arm_frame_init_saved_regs): New.
10880 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10881 Allocate extra_info as required. Convert all uses of fsr.regs
10882 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10884 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10885 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10886 (check_prologue_cache, save_prologue_cache): Likewise.
10887 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10888 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10889 (FRAME_FIND_SAVED_REGS): Delete.
10890 (arm_frame_find_saved_regs): Delete prototype.
10891 (arm_frame_init_saved_regs): New prototype.
10892 (FRAME_INIT_SAVED_REGS): Define.
10894 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10896 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10898 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10900 From Jeff Law <law@redhat.com>:
10901 * infttrace.c: Include <sys/pstat.h>.
10902 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10903 exec file if the ttrace equivalent fails.
10905 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10907 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10908 (closeLogFile): Ditto.
10910 2002-01-20 Michael Chastain <mec@shout.net>
10912 * top.c (print_gdb_version): Bump copyright year to 2002.
10914 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10916 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10917 Zannoni and Eli Zaretskii.
10919 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10921 * buildsym.c: Update copyright years.
10922 * c-typeprint.c: Likewise.
10923 * dwarf2read.c: Likewise.
10924 * f-typeprint.c: Likewise.
10925 * gdbtypes.c: Likewise.
10926 * gdbtypes.h: Likewise.
10927 * hp-symtab-read.c: Likewise.
10928 * hpread.c: Likewise.
10929 * mdebugread.c: Likewise.
10930 * p-typeprint.c: Likewise.
10932 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10934 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10935 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10936 byte-order selectable.
10937 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10938 * arch-utils.c: Ditto.
10939 (set_endian): Ditto.
10940 (set_endian_from_file): Ditto.
10941 * gdbserver/low-sim.c (create_inferior): Ditto.
10942 * gdbarch.sh: Ditto.
10943 * gdbarch.h: Re-generate.
10944 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10945 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10946 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10947 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10948 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10949 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10950 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10951 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10953 * config/mips/tm-wince.h: Remove #undef of macro
10954 TARGET_BYTE_ORDER_SELECTABLE.
10955 * config/sh/tm-wince.h: Ditto.
10957 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10959 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10960 member function fields. Add accessor macro
10961 TYPE_FN_FIELD_ARTIFICIAL.
10962 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10963 * c-typeprint.c (c_type_print_base): Skip artificial member
10966 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10968 * f-typeprint.c: Delete unused function f_type_print_args.
10969 * p-typeprint.c: Delete unused function pascal_type_print_args.
10971 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10973 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10974 comment. Add ``artificial'' to ``union field_location''.
10976 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10978 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10979 * mdebugread.c (parse_symbol): Likewise.
10980 * stabsread.c (define_symbol): Likewise.
10981 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10982 initializing TYPE_FIELD_BITPOS to n (obsolete).
10983 (hpread_doc_function_type): Likewise.
10984 * hpread.c (hpread_function_type): Likewise.
10986 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10988 * configure.in (host_makefile_frag): Only require a host makefile
10989 fragment when a native build.
10990 * configure: Re-generate.
10992 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10994 * doublest.h (floatformat_from_type): Declare.
10995 * doublest.c (floatformat_from_type): New function.
10996 (convert_typed_floating): Use.
10998 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10999 call to function floatformat_from_type.
11001 * gdbarch.sh (IEEE_FLOAT): Delete.
11002 * gdbarch.h, gdbarch.c: Re-generate.
11003 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11004 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11005 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11006 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11007 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11008 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11009 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11010 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11011 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11012 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11013 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11014 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11016 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11017 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11018 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11019 * sh-tdep.c (sh_gdbarch_init): Ditto.
11020 * mips-tdep.c (mips_gdbarch_init): Ditto.
11021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11022 * cris-tdep.c (cris_gdbarch_init): Ditto.
11024 2002-01-20 Jiri Smid <smid@suse.cz>
11026 * configure.host, configure.tgt: Support x86-64.
11027 * NEWS: Note new target x86-64.
11029 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11030 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11031 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11032 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11033 x86-64-linux-nat.o): Fix dependencies.
11035 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11037 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11038 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11039 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11040 * config/sparc/xm-sun4os4.h: Delete file.
11041 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11043 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11045 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11046 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11047 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11048 * config/i386/i386lynx.mh (XM_FILE): Delete.
11049 * config/rs6000/xm-rs6000ly.h: Delete file.
11050 * config/sparc/xm-sparclynx.h: Delete file.
11051 * config/m68k/xm-m68klynx.h: Delete file.
11052 * config/i386/xm-i386lynx.h: Delete file.
11053 * config/xm-lynx.h: Delete file.
11054 * config/djgpp/fnchange.lst: Update.
11056 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11058 * alpha-tdep.c (alpha_register_byte): New function.
11059 (alpha_register_raw_size): Ditto.
11060 (alpha_register_virtual_size): Ditto.
11061 (alpha_skip_prologue_internal): Renamed from
11062 alpha_skip_prologue.
11063 (alpha_skip_prologue): New version that calls
11064 alpha_skip_prologue_internal.
11065 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11066 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11067 second argument from alpha_skip_prologue.
11068 (REGISTER_BYTE): Use alpha_register_byte.
11069 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11070 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11071 (FRAMELESS_FUNCTION_INVOCATION): Use
11072 generic_frameless_function_invocation_not.
11073 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11074 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11078 * config/mips/xm-news-mips.h: Delete file.
11079 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11081 * config/m88k/xm-m88k.h: Delete file.
11082 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11083 * config/m88k/xm-delta88v4.h: Ditto.
11084 * config/m88k/xm-delta88.h: Ditto.
11086 * config/alpha/xm-fbsd.h: Delete file.
11087 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11089 * config/sparc/xm-sparc.h: Delete file.
11090 * Makefile.in (xm-sun4os4.h): Delete dependency.
11091 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11092 * config/sparc/xm-sun4os4.h: Ditto.
11093 * config/sparc/xm-linux.h: Ditto.
11095 * config/i386/xm-windows.h: Delete file.
11097 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11099 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11100 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11102 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11104 * alpha-tdep.c (alpha_call_dummy_words): New.
11105 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11106 (CALL_DUMMY_P): Define.
11107 (CALL_DUMMY_WORDS): Define.
11108 (SIZEOF_CALL_DUMMY_WORDS): Define.
11110 2002-01-19 Per Bothner <per@bothner.com>
11112 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11113 isn't NULL, which can happen with some gcj-3.x-produced code.
11115 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11117 * alpha-tdep.c (alpha_register_virtual_type): New function.
11118 (alpha_init_frame_pc_first): Ditto.
11119 (alpha_fix_call_dummy): Ditto.
11120 (alpha_store_struct_return): Ditto.
11121 (alpha_extract_struct_value_address): Ditto.
11122 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11123 alpha_register_virtual_type.
11124 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11125 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11126 alpha_extract_struct_value_address.
11127 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11128 (INIT_FRAME_PC): Use init_frame_pc_noop.
11129 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11131 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11133 * i386gnu-nat.c: Include "i386-tdep.h".
11134 (fetch_fpregs): Simplify code dealing with uninitialized floating
11135 point states such that it doesn't require FP7_REGNUM.
11137 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11139 * alpha-tdep.c (frame_extra_info): New.
11140 (alpha_find_saved_regs): Make static. Use
11142 (alpha_frame_init_saved_regs): New function.
11143 (alpha_frame_saved_pc): Use frame->extra_info.
11144 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11145 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11146 (init_extra_frame_info): Rename to...
11147 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11148 (alpha_print_extra_frame_info): New function.
11149 (alpha_frame_locals_address): Ditto.
11150 (alpha_frame_args_address): Ditto.
11151 (alpha_pop_frame): Use frame->extra_info.
11152 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11153 alpha_frame_args_address.
11154 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11155 (alpha_find_saved_regs): Remove prototype.
11156 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11157 (EXTRA_FRAME_INFO): Remove.
11158 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11159 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11161 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11163 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11164 (alpha_cannot_fetch_register): Ditto.
11165 (alpha_cannot_store_register): Ditto.
11166 (alpha_register_convertible): Ditto.
11167 (alpha_use_struct_convention): Ditto.
11168 * config/alpha/tm-alpha.h: Update copyright years.
11169 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11170 (INNER_THAN): Use core_addr_lessthan.
11171 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11172 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11173 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11174 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11175 (FRAME_CHAIN): Remove unnecessary cast.
11177 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11179 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11182 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11184 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11185 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11186 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11187 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11188 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11189 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11190 * x86-64-linux-nat.c: Ditto.
11192 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11194 * alpha-tdep.c (alpha_register_name): New function.
11195 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11196 (REGISTER_NAME): Define.
11198 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11200 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11202 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11204 * alpha-tdep.c: Update copyright years.
11205 (alpha_next_pc): New function.
11206 (alpha_software_single_step): Ditto.
11207 * config/alpha/tm-alpha.h: Add prototype for
11208 alpha_software_single_step.
11210 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11212 * alphabsd-nat.c: Update copyright years.
11213 (fill_gregset): Use regcache_collect.
11214 (fill_fpregset): Likewise.
11215 (fetch_inferior_registers): Only fetch integer registers
11216 if requested to do so.
11217 (store_inferior_registers): Only store integer registers
11218 if requested to do so.
11220 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11222 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11223 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11224 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11225 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11226 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11227 * config/arm/linux.mh (XDEPFILES): Delete.
11228 * config/arm/nbsd.mh (XDEPFILES): Delete.
11229 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11230 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11231 * config/i386/i386m3.mh (XDEPFILES): Delete.
11232 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11233 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11234 * config/i386/fbsd.mh (XDEPFILES): Delete.
11235 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11236 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11237 * config/i386/i386v4.mh (XDEPFILES): Delete.
11238 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11239 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11240 * config/i386/i386aix.mh (XDEPFILES): Delete.
11241 * config/i386/go32.mh (XDEPFILES): Delete.
11242 * config/i386/cygwin.mh (XDEPFILES): Delete.
11243 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11244 * config/i386/i386mach.mh (XDEPFILES): Delete.
11245 * config/i386/i386v32.mh (XDEPFILES): Delete.
11246 * config/i386/linux.mh (XDEPFILES): Delete.
11247 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11248 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11249 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11250 * config/i386/i386sco.mh (XDEPFILES): Delete.
11251 * config/i386/i386v.mh (XDEPFILES): Delete.
11252 * config/i386/nbsd.mh (XDEPFILES): Delete.
11253 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11254 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11255 * config/i386/symmetry.mh (XDEPFILES): Delete.
11256 * config/i386/obsd.mh (XDEPFILES): Delete.
11257 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11258 * config/ia64/linux.mh (XDEPFILES): Delete.
11259 * config/ia64/aix.mh (XDEPFILES): Delete.
11260 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11261 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11262 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11263 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11264 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11265 * config/m68k/linux.mh (XDEPFILES): Delete.
11266 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11267 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11268 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11269 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11270 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11271 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11272 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11273 * config/m88k/delta88.mh (XDEPFILES): Delete.
11274 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11275 * config/m88k/m88k.mh (XDEPFILES): Delete.
11276 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11277 * config/mips/linux.mh (XDEPFILES): Delete.
11278 * config/mips/irix6.mh (XDEPFILES): Delete.
11279 * config/mips/irix5.mh (XDEPFILES): Delete.
11280 * config/mips/irix4.mh (XDEPFILES): Delete.
11281 * config/mips/irix3.mh (XDEPFILES): Delete.
11282 * config/mips/decstation.mh (XDEPFILES): Delete.
11283 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11284 (NATDEPFILES): Move core-aout.o to here.
11285 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11286 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11287 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11288 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11289 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11290 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11291 * config/pa/hpux11.mh (XDEPFILES): Delete.
11292 * config/powerpc/aix.mh (XDEPFILES): Delete.
11293 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11294 * config/powerpc/linux.mh (XDEPFILES): Delete.
11295 * config/romp/rtbsd.mh: Rename XDEPFILES.
11296 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11297 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11298 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11299 * config/s390/s390.mh (XDEPFILES): Delete.
11300 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11301 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11302 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11303 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11304 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11305 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11306 * config/sparc/linux.mh (XDEPFILES): Delete.
11307 * config/vax/vaxult.mh (XDEPFILES): Delete.
11308 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11309 * Makefile.in (DEPFILES): Remove XDEPFILES.
11311 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11313 * utils.c (internal_verror): Fix comments, default is yes not no.
11314 Update queries to match. Default to quit and dump core.
11316 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11318 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11320 * defs.h, event-top.c, gdbcmd.h: Ditto.
11321 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11322 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11323 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11324 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11325 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11326 * mi/mi-main.c:Ditto.
11328 * stack.c, symfile.c: Update copyright.
11330 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11332 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11333 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11334 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11335 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11337 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11339 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11340 * gdbserver/low-lynx.c (myattach): Likewise.
11341 * gdbserver/low-nbsd.c (myattach): Likewise.
11342 * gdbserver/low-sim.c (myattach): Likewise.
11343 * gdbserver/low-sparc.c (myattach): Likewise.
11344 * gdbserver/low-sun3.c (myattach): Likewise.
11346 * gdbserver/low-linux.c (myattach): New function.
11348 * gdbserver/server.c (attach_inferior): New function.
11349 (main): Handle "--attach".
11351 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11353 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11356 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11358 * c-typeprint.c (is_type_conversion_operator): Add additional
11359 check for non-conversion operators.
11361 2002-01-15 Michael Snyder <msnyder@redhat.com>
11363 * linux-proc.c: Add "info proc" command, a la procfs.c.
11364 (read_mapping): New function, abstract and re-use code.
11365 (linux_find_memory_regions): Use new func read_mapping.
11366 (linux_info_proc_cmd): New function, implement "info proc".
11367 (_initialize_linux_proc): Add new command "info proc".
11369 2002-01-15 Michael Snyder <msnyder@redhat.com>
11371 * symfile.c (generic_load): Use bfd_map_over_sections method
11372 instead of manipulating bfd structure members directly.
11373 (add_section_size_callback): New function, bfd sections callback
11374 used by generic_load.
11375 (load_sections_callback): New function, bfd sections callback
11376 used by generic_load.
11378 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11380 [Based on work by Jim Blandy]
11381 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11382 (builtin_type_vec128): Export.
11383 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11385 (builtin_type_vec128): New builtin type for 128 bit vector
11387 (build_gdbtypes): Initialize builtin_type_v16qi and
11388 builtin_type_v8hi. Create the vec128 register builtin type
11390 (build_builtin_type_vec128): New function.
11391 (_initialize_gdbtypes): Register builtin_type_v16qi and
11392 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11393 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11394 AltiVec register to new builtin type.
11396 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11398 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11401 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11404 CLEAN_UP_REGISTER_VALUE.
11405 * regcache.c (supply_register): Update only call.
11407 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11409 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11410 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11411 a29k-*-vxworks* targets as obsolete.
11413 2002-01-14 Michael Snyder <msnyder@redhat.com>
11415 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11416 until we can resolve portability issues.
11417 * gregset.h: Remove references to fpxregs.
11418 * gcore.c (gcore_command): Initialize note_sec to NULL.
11420 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11422 * signals.c (target_signal_to_name): Rewrite. Only use
11423 signals[].name when in bounds and non-NULL.
11425 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11427 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11428 * signals.c (target_signal_to_name): Verify that SIG is within the
11429 bounds of the signals array.
11431 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11433 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11435 2002-01-13 Keith Seitz <keiths@redhat.com>
11437 * stack.c (print_frame_info_base): Print the frame's pc
11438 only if when print_frame_info_listing_hook is not defined.
11440 2002-01-13 Keith Seitz <keiths@redhat.com>
11442 * varobj.c (varobj_set_value): Make sure that there were no
11443 errors evaluating the object before attempting to set its
11445 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11446 so this offset adjustment is no longer necessary.
11447 (create_child): Don't set the error flag if the child is
11448 a CPLUS_FAKE_CHILD.
11449 (value_of_child): If value_fetch_lazy fails, return NULL
11450 so that callers will be notified that an error occurred.
11451 (c_value_of_variable): Delay check of variable's validity
11452 until later. We actually want all structs and unions to have
11454 Do not return "???" for variables which could not be evaluated.
11455 This error condition must be returned to the caller so that it
11456 can get the error condition from gdb.
11457 (cplus_name_of_child): Adjust index for vptr before figuring
11458 out the name of the child.
11459 (cplus_value_of_child): If a child's (real) parent is not valid,
11460 don't even bother trying to give a value for it. Just return
11461 an error. Change all instances in this function.
11462 (cplus_type_of_child): If our parent is one of the "fake"
11463 parents, we need to get at the type of the real parent, and
11464 derive the child's true type using this information.
11466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11468 From 2002-01-09 John Marshall <johnm@falch.net>:
11469 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11470 sources.redhat.com, and tweak some related URLs which had
11471 suffered from linkrot.
11473 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11476 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11477 structures passed in registers.
11479 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11481 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11482 white space which prevented compilation. Reported by DSK
11483 <dsk@student.unsw.edu.au>.
11485 2002-01-11 Michael Snyder <msnyder@redhat.com>
11487 * symfile.c (build_section_addr_info_from_section_tab):
11488 Use bfd access method instead of manipulating bfd directly.
11489 (syms_from_objfile): Ditto.
11490 (simple_overlay_update_1): Ditto.
11491 (simple_overlay_update): Ditto.
11492 (generic_load): Ditto.
11493 (overlay_unmapped_address): FIXME comment, bfd access methods.
11494 (sections_overlap): FIXME comment, bfd access methods.
11495 (pc_in_mapped_range): FIXME comment, bfd access methods.
11496 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11497 (section_is_mapped): FIXME comment, bfd access methods.
11498 (section_is_overlay): FIXME comment, bfd access methods.
11500 * symfile.c (generic_load): Whitespace and long line cleanups.
11501 Remove duplicate variable, change several local variables to
11502 more appropriate data types.
11503 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11505 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11507 From Peter Schauer:
11508 * language.c (longest_local_hex_string_custom): Use phex_nz to
11509 convert NUM to a hex string.
11511 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11513 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11515 Update Copyright year.
11517 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11519 * language.c (longest_raw_hex_string): Delete unused function.
11521 2002-01-11 Petr Sorfa <petrs@caldera.com>
11523 * MAINTAINERS (write-after-approval): Add myself.
11524 * dwarf2read.c (read_tag_string_type): Handling of
11526 (read_tag_string_type): FORTRAN fix to prevent propagation of
11528 (set_cu_language): Handling of DW_LANG_Fortran95
11530 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11532 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11533 GETPID(inferior_ptid).
11534 (store_inferior_registers): Likewise.
11536 2002-01-10 Jason Merrill <jason@redhat.com>
11538 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11541 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11543 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11544 and bfd/elf32-sh-nbsd.c.
11546 2002-01-10 Michael Snyder <msnyder@redhat.com>
11548 * NEWS: Mention --pid and corefile/proc-id behavior change.
11550 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11551 * gcore.c: Include cli/cli-decode.h instead of command.h.
11553 * main.c (captured_main): Add new command line option "--pid".
11554 If the second command line argument (following the symbol-file)
11555 begins with a digit, try to attach to it before trying to open
11557 (print_gdb_help): Document the "--pid" argument.
11559 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11561 * completer.c (command_completer): New function.
11563 * completer.h <command_completer>: Add prototype.
11565 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11566 completer for the "help" command.
11568 2002-01-09 Jason Merrill <jason@redhat.com>
11570 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11572 2002-01-09 Michael Snyder <msnyder@redhat.com>
11574 * i386-linux-nat.c (fill_fpxregset): Make global.
11575 (store_fpxregset): Ditto.
11577 * gregset.h (gdb_fpxregset_t): Define.
11578 (supply_fpxregset): Prototype.
11579 (fill_fpxregset): Prototype.
11581 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11583 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11585 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11586 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11587 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11589 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11591 * MAINTAINERS: Update target maintainer rules so that any
11592 Maintainer can approve a tested patch for a maintenance-only
11595 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11597 * MAINTAINERS (write-after-approval): Add myself.
11599 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11602 2002-01-08 Michael Snyder <msnyder@redhat.com>
11604 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11605 real name of the executable, rather than the /proc name.
11607 2002-01-03 Michael Snyder <msnyder@redhat.com>
11609 Implement a "generate-core-file" command in gdb, save target state.
11610 * gcore.c: New file. Implement new command 'generate-core-file'.
11611 Save a corefile image of the current state of the inferior.
11612 * linux-proc.c: Add linux-specific code for saving corefiles.
11613 * target.h (struct target_ops): Add new target vectors for saving
11614 corefiles; to_find_memory_regions and to_make_corefile_notes.
11615 (target_find_memory_regions): New macro.
11616 (target_make_corefile_notes): New macro.
11617 * target.c (update_current_target): Inherit new target methods.
11618 (dummy_find_memory_regions): New place-holder method.
11619 (dummy_make_corefile_notes): New place-holder method.
11620 (init_dummy_target): Initialize new dummy target vectors.
11621 * exec.c (exec_set_find_memory_regions): New function.
11622 Allow the exec_ops vector for memory regions to be taken over.
11623 (exec_make_note_section): New function, target vector method.
11624 * defs.h (exec_set_find_memory_regions): Export prototype.
11625 * procfs.c (proc_find_memory_regions): New function, corefile method.
11626 (procfs_make_note_section): New function, corefile method.
11627 (init_procfs_ops): Set new target vector pointers.
11628 (find_memory_regions_callback): New function.
11629 (procfs_do_thread_registers): New function.
11630 (procfs_corefile_thread_callback): New function.
11631 * sol-thread.c (sol_find_memory_regions): New function.
11632 (sol_make_note_section): New function.
11633 (init_sol_thread_ops): Initialize new target vectors.
11634 * inftarg.c (inftarg_set_find_memory_regions): New function.
11635 Allow to_find_memory_regions vector to be taken over.
11636 (inftarg_set_make_corefile_notes): New function.
11637 Allow to_make_corefile_notes vector to be taken over.
11638 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11639 interface layer if not target_has_execution (may be a corefile).
11640 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11641 * config/sparc/sun4sol2.mh: Ditto.
11642 * config/alpha/alpha-linux.mh: Ditto.
11643 * config/arm/linux.mh: Ditto.
11644 * config/i386/x86-64linux.mh: Ditto.
11645 * config/ia64/linux.mh: Ditto.
11646 * config/m68k/linux.mh: Ditto.
11647 * config/mips/linux.mh: Ditto.
11648 * config/powerpc/linux.mh: Ditto.
11649 * config/sparc/linux.mh: Ditto.
11651 2002-01-07 Michael Snyder <msnyder@redhat.com>
11653 * arm-linux-nat.c: Remove references to regcache.c internal data
11654 (registers[] and register_valid[]).
11656 2002-01-07 Michael Snyder <msnyder@redhat.com>
11658 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11659 so that attaching to a pid will automatically read the process's
11660 symbol file and shlibs.
11661 * Makefile.in: Add rule for linux-proc.o.
11662 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11663 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11664 * config/arm/linux.mh: Ditto.
11665 * config/i386/linux.mh: Ditto.
11666 * config/i386/x86-64linux.mh: Ditto.
11667 * config/ia64/linux.mh: Ditto.
11668 * config/m68k/linux.mh: Ditto.
11669 * config/mips/linux.mh: Ditto.
11670 * config/powerpc/linux.mh: Ditto.
11671 * config/sparc/linux.mh: Ditto.
11673 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11675 * win32-nat.c: Add i386-tdep.h dependency.
11677 2002-01-07 Michael Snyder <msnyder@redhat.com>
11679 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11680 instead of bfd_get_arch_size. Don't bail out just because
11681 there's no exec_bfd.
11683 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11684 * p-valprint.c (pascal_object_print_value): Ditto.
11685 * somread.c (som_symtab_read): Ditto.
11686 * symfile.c (simple_free_overlay_region_table): Ditto.
11687 * valops.c (value_assign): Ditto.
11689 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11690 use tilde_expand and strerror for opening save-tracepoints file.
11692 * thread-db.c (thread_db_new_objfile): Indendation fix.
11694 * infptrace.c (GDB_MAX_ALLOCA): New define.
11695 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11696 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11697 can be overridden with whatever value is appropriate to the host).
11698 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11699 alloca to allocate potentially large buffer.
11700 * rs6000-nat.c (child_xfer_memory): Ditto.
11701 * symm-nat.c (child_xfer_memory): Ditto.
11702 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11704 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11706 From Nick Clifton <nickc@redhat.com>
11707 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11709 2002-01-07 Michael Snyder <msnyder@redhat.com>
11711 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11712 Don't use exec_bfd if it's NULL.
11714 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11716 * valops.c (value_arg_coerce): Fix formatting.
11718 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11720 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11721 * gnu-nat.c: Ditto.
11723 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11725 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11726 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11727 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11728 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11729 z8k-coff have not been multi-arched. Update z8k-coff build
11732 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11734 * MAINTAINERS: Mark a29k target as obsolete.
11735 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11736 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11738 * NEWS: Note that a29k targets are obsolete.
11739 * a29k-tdep.c: Mark as obsolete.
11740 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11741 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11742 a29k-*-vxworks* targets as obsolete.
11743 * remote-adapt.c: Obsolete.
11744 * remote-eb.c: Obsolete.
11745 * remote-mm.c: Obsolete.
11746 * remote-udi.c: Obsolete.
11747 * config/a29k/a29k-udi.mt: Obsolete.
11748 * config/a29k/a29k.mt: Obsolete.
11749 * config/a29k/tm-a29k.h: Obsolete.
11750 * config/a29k/tm-vx29k.h: Obsolete.
11751 * config/a29k/vx29k.mt: Obsolete.
11753 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11755 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11756 with BFD_ENDIAN_BIG.
11758 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11760 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11761 * configure, config.in: Re-generate.
11762 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11763 * defs.h: Do not include <endian.h>.
11765 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11767 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11768 * config.in: Regenerate.
11769 * configure.in: Update copyright years.
11770 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11771 * configure: Regenerate.
11772 * i386bsd-nat.c: Update copyright years.
11773 (fill_gregset): Use regcache_collect.
11774 (fetch_inferior_registers): Only fetch integer registers
11775 if requested to do so. Add support for XMM registers
11776 using PT_GETXMMREGS.
11777 (store_inferior_registers): Only store integer registers
11778 if requested to do so. Add support for XMM registers
11779 using PT_SETXMMREGS.
11780 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11781 (store_inferior_registers): Remove.
11782 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11783 (fetch_elfcore_registers): New function.
11784 (i386nbsd_elfcore_fns): New.
11785 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11786 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11788 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11789 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11790 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11791 * config/i386/tm-nbsd.h: Update copyright years.
11792 (HAVE_SSE_REGS): Define.
11793 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11794 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11795 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11796 (SIGCONTEXT_PC_OFFSET): Remove.
11797 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11799 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11801 * configure.tgt: Remove powerpc-*-macos* target.
11802 * config/m68k/xm-mpw.h: Delete file.
11803 * config/xm-mpw.h: Delete file.
11804 * ser-mac.c: Delete file.
11805 * mpw-make.sed: Delete file.
11806 * mpw-config.in: Delete file.
11807 * mac-xdep.c: Delete file.
11808 * mac-gdb.r: Delete file.
11809 * mac-defs.h: Delete file.
11810 * mac-nat.c: Delete file.
11811 * config/powerpc/macos.mh: Delete file.
11812 * config/powerpc/macos.mt: Delete file.
11813 * config/powerpc/nm-macos.h: Delete file.
11814 * config/powerpc/tm-macos.h: Delete file.
11815 * source.c (openp, open_source_file): Remove obsolete code.
11816 * top.c (gdb_readline): Ditto.
11817 * utils.c (query): Ditto.
11818 * event-top.c (display_gdb_prompt): Ditto.
11819 * Makefile.in (ser-mac.o): Delete obsolete target.
11822 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11824 * defs.h (BIG_ENDIAN): Delete macro definition.
11825 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11826 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11827 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11828 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11829 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11830 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11831 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11832 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11833 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11834 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11835 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11836 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11837 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11838 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11839 * gdbarch.c: Re-generate.
11841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11843 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11846 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11848 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11850 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11852 * value.h (value_ptr): Delete typedef.
11854 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11856 * i386nbsd-nat.c: Update copyright years.
11857 Include i386-tdep.h.
11859 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11861 * stabsread.c: Update copyright years.
11863 From Debashis Mahata <debashis.mahata@wipro.com>:
11864 (read_struct_fields): Deal with Sun C compiler erroneous stab
11865 output for structs and unions.
11868 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11870 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11873 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11875 * cp-abi.c: Fix whitespace.
11876 (baseclass_offset): New wrapper function.
11877 * cp-abi.h (baseclass_offset): Add prototype.
11878 (struct cp_abi_ops): Add baseclass_offset pointer.
11880 * valops.c (vb_match): Move to...
11881 * gnu-v2-abi.c (vb_match): here.
11882 * valops.c (baseclass_offset): Move to...
11883 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11885 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11887 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11888 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11889 * hpacc-abi.c (init_hpacc_ops): Likewise.
11891 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11893 * valops.c (find_overload_match): Accept obj as a
11894 reference parameter. Update it before returning.
11895 * value.h (find_overload_match): Update prototype.
11896 * eval.c (evaluate_subexp_standard): Pass object to
11897 find_overload_match by reference.
11899 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11901 * valarith.c: Replace value_ptr with struct value pointer. Remove
11902 register attribute from value declarations.
11905 * scm-lang.c (scm_lookup_name): Ditto.
11907 2002-01-03 Michael Snyder <msnyder@redhat.com>
11909 Abstract the functionality of iterating over mapped memory
11910 regions into a general purpose iterator function.
11911 * procfs.c (iterate_over_mappings): New function, general purpose
11912 iterator for memory sections.
11913 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11914 (solib_mappings_callback): New function, callback for above.
11915 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11916 (info_mappings_callback): New function, callback for above.
11918 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11920 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11922 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11923 * i386-tdep.c: Include "elf-bfd.h".
11924 (process_note_abi_tag_sections): New function.
11925 (i386_gdbarch_init): Add code to recognize various OS/ABI
11928 * maint.c (_initialize_maint_cmds): Add missing \ in
11931 For older changes see ChangeLog-2001
11937 version-control: never