1 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3 * symtab.h (address_class): Rename
4 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
5 * hpread.c (hpread_process_one_debug_symbol): Ditto.
6 * printcmd.c (address_info): Ditto.
7 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
9 2002-10-20 Mark Kettenis <kettenis@gnu.org>
11 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
12 DBREG_DRX macro to acces debug registers.
14 * Makefile.in (i386obsd-tdep.o): New target.
16 * solib-sunos.c: Include "bcache.h" and "regcache.h".
17 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
19 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
20 * config/i386/obsd.mt: New file.
21 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
22 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
23 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
24 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
25 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
26 * i386obsd-tdep.c: New file.
28 2002-10-19 Adam Fedor <fedor@gnu.org>
30 * objc-exp.y (name_not_typename): Fix invalid comment.
32 2002-10-20 Mark Kettenis <kettenis@gnu.org>
34 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
35 to allocate partial syms and macro byte caches.
37 2002-10-18 David Carlton <carlton@math.stanford.edu>
39 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
41 2002-10-18 Adam Fedor <fedor@gnu.org>
43 * stabsread.c (find_name_end): New function.
44 (define_symbol): Use it.
46 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
48 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
49 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
50 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
51 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
53 2002-10-17 David Carlton <carlton@math.stanford.edu>
55 * symfile.h: Add opaque declaration for struct obstack.
56 Declare obsavestring to take a const char *.
57 * symfile.c (obsavestring): Make first argument a const char *.
59 2002-10-16 Adam Fedor <fedor@gnu.org>
61 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
62 names when matching breakpoints in current file.
64 2002-10-16 Kevin Buettner <kevinb@redhat.com>
66 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
67 (read_tag_pointer_type): Add address class support.
68 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
69 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
71 * gdbarch.h, gdbarch.c: Regenerate.
72 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
73 (make_type_with_address_space, recursive_type_dump): Add address
75 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
76 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
77 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
79 2002-10-16 Klee Dienes <kdienes@apple.com>
81 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
82 to get the last character of a char[] buffer, not
83 name[sizeof(vptr_name)-1].
85 2002-10-14 Adam Fedor <fedor@gnu.org>
87 * symtab.h: New objc_specific struct.
88 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
89 (SYMBOL_DEMANGLED_NAME): Likewise.
91 2002-10-14 Adam Fedor <fedor@gnu.org>
93 * symfile.c (init_filename_language_table): Add ObjC file extension.
95 2002-10-14 Adam Fedor <fedor@gnu.org>
97 * utils.c (puts_filtered_tabular): New function.
98 (fprintf_symbol_filtered): Get ObjC demangled name.
99 * defs.h (puts_filtered_tabular): Declared.
101 2002-10-14 Kevin Buettner <kevinb@redhat.com>
103 * c-lang.h (c_type_print_varspec_prefix): Delete.
104 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
105 ``need_post_space'' parameter. Adjust all callers.
107 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
109 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
110 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
111 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
112 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
114 2002-10-13 Adam Fedor <fedor@gnu.org>
116 * source.c (print_source_lines): Update comments.
118 2002-10-13 Adam Fedor <fedor@gnu.org>
120 * valops.c (value_of_local): New function.
121 (value_of_this): Use it.
122 * value.h (value_of_local): Declared.
124 2002-10-13 Adam Fedor <fedor@gnu.org>
126 * parse.c: (length_of_subexp, prefixify_subexp): Handle
127 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
129 2002-10-12 Adam Fedor <fedor@gnu.org>
131 * language.c (binop_result_type): Add language_objc to case.
132 (integral_type): Likewise.
133 (character_type): Likewise.
134 (string_type): Likewise.
135 (boolean_type): Likewise.
136 (structured_type): Likewise.
137 (binop_type_check): Likewise.
139 2002-10-11 Adam Fedor <fedor@gnu.org>
141 * printcmd.c (address_info): Print 'self' for ObjC.
143 2002-10-11 Adam Fedor <fedor@gnu.org>
145 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
148 2002-10-11 Adam Fedor <fedor@gnu.org>
150 * language.h (CAST_IS_CONVERSION): Add language_objc.
152 2002-10-11 Adam Fedor <fedor@gnu.org>
154 * defs.h (enum language): Add language_objc.
156 2002-10-11 Klee Dienes <kdienes@apple.com>
158 * findvar.c (read_memory_typed_address): New function.
159 * gdbcore.h (read_memory_typed_address): Add prototype.
160 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
161 to read a value destined for a CORE_ADDR, not read_memory_integer.
162 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
163 (f77_get_dynamic_lowerbound): Ditto.
165 2002-10-11 Martin M. Hunt <hunt@redhat.com>
167 * utils.c (string_to_core_addr): After turning string into
168 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
169 which will do necessary sign-extension, etc.
171 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
173 * c-exp.y (THIS): Delete token and grammar rule.
174 (yylex): Don't return THIS.
175 * cp-valprint.c (vtbl_ptr_name_old): Delete.
176 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
177 * demangle.c (cplus_markers): Update comment. Put '$'
178 first. Remove CPLUS_MARKER.
179 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
180 * jv-exp.y (THIS): Delete token and grammar rule.
181 (yylex): Don't return THIS.
182 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
183 * objc-exp.y (THIS): Delete token and grammar rule.
184 (yylex): Don't return THIS.
185 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
186 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
187 (read_member_functions): Likewise for opname.
188 (read_tilde_fields): Use is_cplus_marker.
190 * defs.h (CPLUS_MARKER): Don't define.
191 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
192 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
193 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
194 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
195 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
197 * config/i386/tm-i386v4.h: Delete file.
198 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
199 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
200 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
201 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
202 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
203 * config/i386/i386sco5.mt (TM_FILE): Likewise.
204 * config/i386/i386v4.mt (TM_FILE): Likewise.
205 * config/i386/ncr3000.mt (TM_FILE): Likewise.
207 2002-10-10 Marko Mlinar <markom@opencores.org>
209 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
210 accidentially not commited 2002-10-09
211 * gdbarch.h, gdbarch.c: Re-generate.
213 2002-10-09 Marko Mlinar <markom@opencores.org>
215 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
216 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
217 * gdbarch.h, gdbarch.c: Re-generate.
219 2002-10-08 Petr Sorfa <petrs@caldera.com>
221 Revised and re-submitted by John Wolfe <jlw@caldera.com>
223 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
224 so we can work on more than one compilation unit at a time. This
225 helps prepare GDB to handle inter-CU die references.
226 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
227 the code to be defined before struct comp_unit_head.
228 (comp_unit_head): Added new members - offset, cu_head,
229 begin_die, next and dwarf2_abbrevs.
230 (dwarf2_abbrevs): Removed single static var; now member of
231 struct comp_unit_head.
232 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
234 (psymtab_to_symtab_1): Changed to work with the new
235 struct comp_unit_head.
236 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
237 constructs the dwarf2_abbrevs[] inside the cu_header.
238 (dwarf2_empty_abbrev_table): Now expects a ptr to a
239 dwarf2_abbrev table to clean up.
240 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
241 handling of dwarf2_abbrevs inside the cu_header.
242 (read_partial_die): Now supports the call to the new
243 dwarf2_lookup_abbrev.
244 (read_full_die): Now supports the call to the new
245 dwarf2_lookup_abbrev.
247 2002-10-06 Christopher Faylor <cgf@redhat.com>
249 * Makefile.in (install-gdbtk): Add missing continuation backslash to
250 insure that shell variables, such as "transformed_name" are propagated
251 to later shell statements in rule.
253 2002-10-06 Mark Kettenis <kettenis@gnu.org>
255 * config/i386/nm-i386sco.h: Add protection against
256 multiple-inclusion. Include "i386/nm-i386v.h".
257 (REGISTER_U_ADDR): Remove define.
258 (i386_register_u_addr): Remove prototype.
260 2002-10-04 Michael Snyder <msnyder@redhat.com>
262 * m32r-stub.c (handle_exception): Make sure exception is "trap"
263 before treating it as a single-step event.
265 2002-10-03 Adam Fedor <fedor@gnu.org>
267 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
268 (objc_demangle): Remove assignment in if statements, Replace
270 (add_msglist): Likewise.
271 (end_msglist): Likewise.
272 (complare_selectors): Likewise.
273 (selectors_info): Likewise.
274 (compare_classes): Likewise.
275 (classes_info): Likewise.
276 (print_object_command): Likewise.
277 (find_objc_msgcall_submethod): Replace PTR with void *.
278 * objc-lang.h: Remove check for __STDC__.
280 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
282 * ui-out.h (ui_out_field_fmt_int): New prototype.
283 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
284 of field width and alignment.
285 * stack.c (print_frame_info_base): When printing frame level, use
286 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
289 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
291 * MAINTAINERS: Add self to Write After Approval list.
293 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
295 * infcmd.c (interrupt_target_command_wrapper): Delete.
296 (interrupt_target_command): Make non static.
297 (nofp_registers_info): Make static.
298 * stack.c (return_command_wrapper): Delete.
299 (return_command): Make non static.
301 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
303 * event-top.c (gdb_setup_readline): New function. Code moved from
304 _initialize_event_loop().
305 (_initialize_event_loop): Call gdb_setup_readline().
307 2002-10-02 Andrew Cagney <ac131313@redhat.com>
309 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
310 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
311 * gdbarch.h, gdbarch.c: Re-generate.
313 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
316 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
318 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
319 of fill_in_vptr_fieldno.
321 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
323 * inferior.h (registers_info, stepi_command, nexti_command,
324 continue_command, interrupt_target_command): Export from infcmd.c.
325 * frame.h (args_info, selected_frame_level_changed_hook,
326 return_command): Export from stack.c.
327 * v850ice.c (stepi_command, nexti_command, continue_command): use
328 prototypes from inferior.h.
329 * tracepoint.c (registers_info, args_info, locals_info): Use
330 prototypes from frame.h and inferior.h.
331 * Makefile.in (mi-main.o): Add dependency on frame.h.
333 2002-10-02 Andrew Cagney <ac131313@redhat.com>
335 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
336 value in register 3 adjusted by ppc_gp0_regnum.
338 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
340 2002-10-02 Marko Mlinar <markom@opencores.org>
342 * MAINTAINERS: Add myself to the Write After Approval list.
344 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
346 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
347 of the section for the N64 ABI, fixed.
349 * config/mips/tm-irix6.h: Include solib.h.
351 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
353 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
356 2002-10-01 Andrew Cagney <ac131313@redhat.com>
358 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
359 and that "mi0" syntax has been removed.
361 2002-09-30 David Carlton <carlton@math.stanford.edu>
363 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
364 * ppc-sysv-tdep.c: #include "gdb_string.h".
365 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
368 2002-10-01 Andrew Cagney <ac131313@redhat.com>
370 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
371 "vrsave"'s register number.
373 2002-09-30 Andrew Cagney <ac131313@redhat.com>
375 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
376 use frame_unwind_signed_register to obtain the PC.
377 (mips_frame_chain): Handle a generic dummy frame.
378 (mips_init_extra_frame_info): When a generic dummy frame, don't
379 re-compute the frame base.
380 (mips_pop_frame): Handle generic dummy frames.
381 (mips_gdbarch_init): When generic dummy frames, set
382 use_generic_dummy_frames, push_dummy_frame to
383 generic_push_dummy_frame, pc_in_call_dummy to
384 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
385 generic_save_dummy_frame_tos.
387 2002-09-30 Andrew Cagney <ac131313@redhat.com>
389 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
390 against TOP when TOP was explictly set.
391 (generic_push_dummy_frame): Set TOP to zero.
393 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
395 * event-loop.c (start_event_loop): Rename variable 'result' to
396 'gdb_result', to avoid conflicts with upcoming intepreters changes.
398 2002-09-30 Keith Seitz <keiths@redhat.com>
400 * gdb-events.sh (selected_thread_changed): New event.
401 * gdb-events.c: Regenerated.
402 * gdb-events.h: Regenerated.
404 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
406 * MAINTAINERS: Add self to Write After Approval list.
408 2002-09-30 Fernando Nasser <fnasser@redhat.com>
410 * disasm.c: New file.
411 * disasm.h: New file.
412 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
413 (compare_lines): Ditto.
415 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
417 (do_assembly_only): Ditto.
418 (do_disassembly): Renamed to gdb_disassembly and moved to
419 disasm.c. Sdded uiout argument.
420 * Makefile.in: Add new files. Reorder SFILES list. Update
421 dependencies. Include libgdb.a later in the insight executable.
423 2002-09-29 Andrew Cagney <ac131313@redhat.com>
425 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
426 bfd/elf64-alpha-fbsd.c.
428 2002-09-29 Andrew Cagney <ac131313@redhat.com>
430 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
433 2002-09-29 Andrew Cagney <ac131313@redhat.com>
435 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
437 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
439 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
440 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
441 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
442 (S_msg_sig_post_reply): Ditto.
444 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
446 * sh-tdep.c (sh_use_struct_convention): Use definition according
448 (sh_push_arguments): Store in register with correct endianess.
449 (sh_default_store_return_value): Ditto.
450 (sh_gdbarch_init): Set sizeof long double to 8.
452 2002-09-27 Mark Kettenis <kettenis@gnu.org>
454 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
455 Fix some whitespace problems.
457 2002-09-27 David Carlton <carlton@math.stanford.edu>
459 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
460 (mcore-tdep.o): Ditto.
461 (ns32k-tdep.o): Ditto.
462 (ns32knbsd-tdep.o): Ditto.
465 * cris-tdep.c: #include "gdb_string.h"
466 * mcore-tdep.c: Ditto.
467 * ns32k-tdep.c: Ditto.
468 * ns32knbsd-tdep.c: Ditto.
472 2002-09-27 David Carlton <carlton@math.stanford.edu>
474 * config/djgpp/fnchange.lst: Add entries for
475 gdb/testsuite/gdb.c++/m-static files.
477 2002-09-27 Jim Wilson <wilson@redhat.com>
479 * MAINTAINERS: Add myself to the Write After Approval list.
481 2002-09-26 Martin M. Hunt <hunt@redhat.com>
483 * mips-tdep.c (find_proc_desc): Initialize startaddr.
486 2002-09-26 Andrew Cagney <ac131313@redhat.com>
488 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
491 2002-09-26 Andrew Cagney <ac131313@redhat.com>
493 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
494 (rs6000_struct_return_address): Delete variable.
495 (rs6000_store_struct_return): Update.
496 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
497 deprecated_extract_struct_value_address.
498 (rs6000_frame_align): New function.
499 (rs6000_gdbarch_init): Set frame_align.
501 2002-09-26 Andrew Cagney <ac131313@redhat.com>
503 From Grace Sainsbury <graces@redhat.com>:
504 * Makefile.in (gdbtk-main.o): New target.
507 (main.o): Update dependencies.
508 (gdb$(EXEEXT)): Add gdb.o.
509 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
510 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
511 (SUBDIR_GDBTK_CLEAN): Set.
512 (install-gdbtk): Install the insight binary.
513 (uninstall-gdbtk): New target.
514 (all-gdbtk, clean-gdbtk): New rule.
515 * top.c (use_windows): Default to zero.
516 * main.c: Include "main.h".
518 (struct captured_main_args): Delete.
519 (gdb_main): New function.
523 2002-09-25 Andrew Cagney <cagney@redhat.com>
525 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
526 (frame_map_regnum_to_name): New function.
527 (frame_map_name_to_regnum): New function.
528 * frame.h (frame_map_name_to_regnum): Declare.
529 (frame_map_regnum_to_name): Declare.
530 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
531 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
532 * parse.c: Do not include "builtin-regs.h".
533 (target_map_name_to_register): Delete function.
534 (write_dollar_variable): Use frame_map_name_to_regnum.
535 * parser-defs.h (target_map_name_to_register): Delete declaration.
536 * expprint.c: Include "frame.h".
537 (print_subexp): Use frame_map_regnum_to_name.
538 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
539 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
541 2002-09-25 Andrew Cagney <ac131313@redhat.com>
543 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
544 wasn't saved, and the next innermost frame is a dummy, return the
545 dummy frame's link register.
547 2002-09-24 Jim Blandy <jimb@redhat.com>
550 * main.c (captured_main): Add a `break' after the case for 'b'.
552 2002-09-24 Keith Seitz <keiths@redhat.com>
554 * varobj.c (c_type_of_child): Use get_target_type instead
557 2002-09-22 Fernando Nasser <fnasser@redhat.com>
559 * source.c (get_current_or_default_source_symtab_and_line): Remove
561 (set_default_source_symtab_and_line): New function. Attempts to
562 determine a source file to list lines from if one is not currently
564 (get_current_source_symtab_and_line): Initialize sal.pc and
566 (set_current_source_symtab_and_line): Mark argument as const.
567 * source.h: Update declarations and comments.
568 * linespec.c (decode_line_1): Replace call to removed routine above.
569 * stack.c (print_frame_info_base): Ditto.
570 * cli/cli-cmds.c (edit_command): Ditto.
571 (list_command): Ditto.
573 2002-09-22 Fernando Nasser <fnasser@redhat.com>
575 * source.c (get_current_or_default_source_symtab_and_line): Initialize
576 sal.pc and sal.end fields.
577 (get_current_or_default_source_symtab_and_line): Ditto.
578 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
579 so we do not cause a new source symtab to be searched for (reverting an
580 unintentional change from the 2002-09-20 patch).
581 * scm-lang.c (scm_unpac): Ditto.
583 2002-09-21 Andrew Cagney <cagney@redhat.com>
585 * complaints.c (symfile_explanations): Remove new-line from
586 ``isolated_message''.
587 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
588 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
590 2002-09-20 Nick Clifton <nickc@redhat.com>
592 * NEWS: Announce that V850EA ISA is no longer supported.
593 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
595 2002-09-20 David Carlton <carlton@math.stanford.edu>
597 * Makefile.in (c-lang.o): Correct dependencies.
598 (utils.o): Gather dependencies.
600 * c-lang.c: #include "gdb_string.h"
602 2002-09-20 Fernando Nasser <fnasser@redhat.com>
604 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
605 * cli/cli-cmds.c (list_command): New function. Implements the new
607 (_init_cli_cmds): Add new command definition.
608 * gdb.1: Document edit command.
609 * doc/gdb.texinfo: Document edit command.
611 2002-09-20 Fernando Nasser <fnasser@redhat.com>
613 * source.c: Make global variables current_source_symtab and
614 current_source_line static.
615 (list_command): Moved to cli/cli-cmds.c.
616 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
617 (get_first_line_listed): New accessor function.
618 (get_lines_to_list): New accessor function.
619 (get_current_source_symtab_and_line): New function. Retrieves the
620 position in the source code that we consider current.
621 (get_current_or_default_source_symtab_and_line): New function.
622 Like the above but attempts to determine a default position if one
623 is not currently defined.
624 (set_current_source_symtab_and_line): New function. Sets the source
625 code position considered current and returns the previously set one.
626 (clear_current_source_symtab_and_line): Reset stored information about
627 a current source line.
628 (_initialize_source): Remove registration for the "list" command and
630 * source.h: Add declarations for the new functions above.
631 * symtab.h: Remove declarations for the global variables mentioned
633 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
634 obtain current source line.
635 * linespec.c (decode_line_1): Ditto.
636 * macroscope.c (default_macro_scope): Ditto.
637 * scm-lang.c (scm_unpac): Ditto.
638 * stack.c (print_frame_info_base): Ditto.
639 * symfile.c (clear_symtab_users): Ditto.
640 * symtab.c (decode_line_spec): Ditto.
641 * cli/cli-cmds.c (list_command): Moved here from source.c.
642 (ambiguous_line_spec): Moved here from source.c.
643 (_init_cli_cmds): Add definition for "list" and its alias.
644 * Makefile.in: Update dependencies.
646 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
648 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
649 with what gcc thinks is correct.
651 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
653 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
654 multiple register push instruction.
656 2002-09-19 Jim Blandy <jimb@redhat.com>
658 Add support for distinct host and target character sets.
659 * charset.c, charset.h: New files.
660 * c-exp.y: #include "charset.h".
661 (yylex): Convert character and string literals to the target
662 character set, before returning them as the semantic value of the
664 * c-lang.c: #include "charset.h".
665 (c_emit_char): Use charset-specific methods to recognize
666 characters with backslash escape forms, to decide which characters
667 to print literally and which to print using numeric escape
668 sequences, and to convert target characters to host characters
670 * utils.c: #include "charset.h".
671 (no_control_char_error): New function.
672 (parse_escape): Use charset-specific methods to recognize
673 backslash escapes, parse `control character' notation, and convert
674 characters from the host character set to the target character set.
675 * configure.in: Set the default host character set.
676 Check where to find iconv, and what its argument types might be.
677 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
678 * Makefile.in (SFILES): List charset.c.
679 (COMMON_OBS): List charset.o.
680 (charset.o): New rule.
681 (charset_h): New header dependency variable.
682 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
683 (LIBICONV): New variable, set by configure.
684 (CLIBS): Include $(LIBICONV) here.
685 * aclocal.m4, config.in, configure: Regenerated.
687 2002-09-19 Joel Brobecker <brobecker@gnat.com>
689 * ada-exp.y: Add missing semicolons to end rules. Fixes a
692 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
694 * gdb_mbuild.sh: New file.
696 2002-09-19 Andrew Cagney <ac131313@redhat.com>
698 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
700 2002-09-18 Andrew Cagney <ac131313@redhat.com>
702 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
703 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
704 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
705 valops.c, value.h: Revert previous change.
707 2002-09-18 Michael Snyder <msnyder@redhat.com>
709 Preliminary support for Objective-C:
710 * defs.h (language_objc): New enum value.
711 (puts_filtered_tabular): Declaration only, exported from utils.c.
712 (skip_quoted): Delete, declared in completer.h.
713 * c-exp.y: Include completer.h.
716 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
717 New operator enum values.
718 * language.h (CAST_IS_CONVERSION): Test for language_objc.
719 * language.c (binop_result_type): Handle language_objc case.
720 (integral_type, character_type, string_type, boolean_type,
721 structured_type, binop_type_check): Ditto.
722 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
723 (struct objc_specific): Add to general_symbol_info.
724 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
725 (SYMBOL_DEMANGLED_NAME): Handle objc case.
726 * parser-defs.h (struct objc_class_str): New struct type.
727 (start_msglist, end_msglist, add_msglist): Declaration only,
728 exported from objc-lang.c.
729 * value.h (value_of_local, value_nsstring,
730 call_function_by_hand_expecting_type): Exported from valops.c.
731 * valops.c (find_function_addr): Export.
732 (call_function_by_hand_expecting_type): New function.
733 (value_of_local): New function.
734 * symfile.c (init_filename_language_table): Add ".m" extension
736 * utils.c (puts_filtered_tabular): New function.
737 (fprintf_symbol_filtered): Add objc demangling support (disabled).
738 (set/show demangle): Extend help-string to refer to ObjC.
739 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
740 * stabsread.c (symbol_reference_defined): Objective-C symbols
741 may contain colons: make allowances when scanning stabs strings
743 (objc_find_colon): New function.
744 * printcmd.c (address_info): If language == objc then print
745 "self" instead of "this".
746 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
747 OP_NSSTRING, and OP_SELF.
748 (prefixify_subexp): Ditto.
749 * source.c (print_source_lines): Mention objc in comment.
750 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
753 2002-09-18 Andrew Cagney <ac131313@redhat.com>
755 * complaints.h: Update copyright.
756 (struct complaints): Declare.
757 (struct complaint): Make `message' constant.
758 (internal_complaint): Declare.
759 (complaint): Declare.
760 (complaint_root): Delete declaration.
761 (symfile_complaints): Delete declaration.
762 (struct complaints): Add opaque declaration.
763 (clear_complaints): Add a complaints parameter.
764 * complaints.c: Update copyright.
765 (enum complaint_series): Define.
766 (complaint_root): Delete.
767 (struct complaints): Define.
768 (complaint_sentinel, symfile_complaint_book): New variables.
769 (symfile_explanations, symfile_complaints): New variables.
771 (get_complaints): New function.
772 (vcomplaint): New function.
773 (complaint): New function.
774 (internal_complaint): New function.
775 (complain): Call vcomplain with symfile_complaint.
776 (clear_complaints): Rewrite.
777 (_initialize_complaints): Use add_setshow_command.
778 * Makefile.in (complaints.o): Update dependencies.
779 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
780 to call to clear_complaints.
781 (new_symfile_objfile, reread_symbols): Ditto.
782 (oldsyms_complaint): Delete.
783 (empty_symtab_complaint, unknown_option_complaint): Delete.
784 (free_named_symtabs): Use complaint instead of complain.
786 2002-09-18 Michael Snyder <msnyder@redhat.com>
788 Contributed by Apple Computer, Inc. Merged with current sources
789 by Adam Fedor <fedor@doc.com> [cagney].
791 * objc-lang.c: First clean-up round: comments, indentation.
792 * objc-lang.h: Ditto.
793 * objc-lang.y: Ditto.
795 2002-09-18 Andrew Cagney <ac131313@redhat.com>
797 * maint.c (maintenance_internal_error): Print the parameter as the
799 (maintenance_internal_warning): New function.
800 (_initialize_maint_cmds): Add command `maint internal-warning'.
802 * defs.h (internal_warning, internal_vwarning): Declare.
803 * utils.c (struct internal_problem): Define.
804 (internal_vproblem): New function.
805 (internal_warning): New function.
806 (internal_vwarning): New function.
807 (internal_warning_problem, internal_error_problem): New variables.
808 (internal_verror): Just call internal_vproblem.
810 2002-09-18 Michael Snyder <msnyder@redhat.com>
812 * objc-lang.c: New file, support for Objective-C.
813 Preliminary check-in, not yet integrated into gdb.
814 * objc-lang.h: New file.
815 * objc-exp.y: New file.
817 2002-09-18 Andrew Cagney <ac131313@redhat.com>
819 * infrun.c (signal_stop_update): Convert definition to ISO C.
820 (signal_print_update): Ditto.
821 (signal_pass_update): Ditto.
822 * inflow.c (terminal_save_ours): Ditto.
824 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
827 * config/djgpp/fnchange.lst: Handle name clashes between
828 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
831 * i386-linux-tdep.h: Fix tipo.
833 2002-09-18 Adam Fedor <fedor@gnu.org>
835 * MAINTAINERS: Add myself to the Write After Approval list.
837 2002-09-18 Jim Blandy <jimb@redhat.com>
839 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
840 texthigh and textlow to reader-specific structs caused
841 objfile_relocate to miss them. This is fixable, but the work that
842 the change was supposed to prepare GDB for never got done anyway.
844 2002-09-18 David Carlton <carlton@math.stanford.edu>
846 * MAINTAINERS: Alphabetize Write After Approval list.
848 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
851 * values.c (value_static_field): Call read_var_value.
853 2002-09-18 Andrew Cagney <ac131313@redhat.com>
855 * valops.c (hand_function_call): Align the initial stack pointer
856 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
857 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
859 * mips-tdep.c (mips_frame_align): New function.
860 (mips_gdbarch_init): Set frame_align.
861 * gdbarch.sh (FRAME_ALIGN): New method.
862 * gdbarch.h, gdbarch.c: Re-generate.
864 2002-09-18 Michal Ludvig <mludvig@suse.cz>
866 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
869 2002-09-17 Andrew Cagney <ac131313@redhat.com>
871 * NEWS: Mention that MIPS $fp behavior changed.
872 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
873 reference to FP_REGNUM.
874 (mipsnbsd_cannot_store_register): Ditto.
875 * mips-linux-nat.c: Update copyright.
876 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
877 (mips_linux_cannot_store_register): Ditto.
878 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
879 * config/mips/tm-mips.h: Update copyright.
880 (FP_REGNUM): Delete macro.
881 (MIPS_REGISTER_NAMES): Replace "fp" with "".
882 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
883 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
884 (mips_r3041_reg_names, mips_r3051_reg_names)
885 (mips_r3081_reg_names): Replace "fp" with "".
888 2002-09-17 Theodore A. Roth <troth@verinet.com>
890 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
891 generic_read_register_dummy() (PR gdb/703).
892 (avr_push_return_address): #if 0 out unused vars.
893 (avr_gdbarch_init): Enable use of avr_push_return_address().
895 2002-09-17 Michael Snyder <msnyder@redhat.com>
897 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
898 RTE will take care of it.
900 2002-09-17 Andrew Cagney <ac131313@redhat.com>
902 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
903 invalid, return SP_REGNUM.
905 2002-09-17 Michael Snyder <msnyder@redhat.com>
907 * mips-tdep.c (mips_pop_frame): Read saved values of floating
908 point registers without sign extension.
910 2002-09-17 Andrew Cagney <cagney@redhat.com>
912 * blockframe.c (deprecated_read_register_dummy): Rename
913 generic_read_register_dummy.
914 * frame.c (frame_unwind_signed_register): New function.
915 (frame_unwind_unsigned_register): New function.
916 * frame.h (frame_unwind_signed_register): Declare.
917 (frame_unwind_unsigned_register): Declare.
918 (deprecated_read_register_dummy): Rename
919 generic_read_register_dummy.
921 * h8300-tdep.c (h8300_frame_chain): Update.
922 (h8300_frame_saved_pc): Update.
923 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
924 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
925 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
926 (s390_frame_chain): Update.
927 * v850-tdep.c (v850_find_callers_reg): Update.
928 (v850_frame_saved_pc): Update.
929 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
930 (m32r_find_callers_reg): Update.
931 (m32r_frame_saved_pc): Update.
932 * sh-tdep.c (sh_find_callers_reg): Update.
933 (sh64_get_saved_pr): Update.
934 (sh_init_extra_frame_info): Update.
935 (sh_init_extra_frame_info): Update.
936 (sh64_init_extra_frame_info): Update.
937 (sh64_init_extra_frame_info): Update.
938 * mcore-tdep.c (mcore_find_callers_reg): Update.
939 (mcore_frame_saved_pc): Update.
940 (mcore_init_extra_frame_info): Update.
941 * i386-tdep.c (i386_frame_saved_pc): Update.
942 * ia64-tdep.c (ia64_frame_saved_pc): Update.
943 (ia64_init_extra_frame_info): Update.
944 (ia64_init_extra_frame_info): Update.
945 * d10v-tdep.c (d10v_frame_saved_pc): Update.
946 * cris-tdep.c (cris_init_extra_frame_info): Update.
947 * avr-tdep.c (avr_frame_chain): Update.
948 (avr_init_extra_frame_info): Update.
949 (avr_frame_saved_pc): Update.
950 * arm-tdep.c (arm_find_callers_reg): Update.
951 (arm_init_extra_frame_info): Update.
952 (arm_frame_saved_pc): Update.
954 2002-09-17 Tom Tromey <tromey@redhat.com>
956 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
959 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
961 * MAINTAINERS: Remove "non multi-arched" text from h8300.
962 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
964 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
967 2002-09-16 Joel Brobecker <brobecker@gnat.com>
969 * osfsolib.c: Remove file, replaced by solib-osf.c.
970 * Makefile.in: Remove compilation rules for osfsolib.c.
972 2002-09-16 David Carlton <carlton@math.stanford.edu>
974 * cp-valprint.c (cp_print_class_method): Correct args to
975 check_stub_method_group.
977 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
979 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
980 `set architecture'. Unify naming convention of functions.
981 (h8300_skip_prologue): Improve prologue analysis.
982 (h8300_push_arguments): Rewritten to more closely match GCC's
983 bizarre argument-passing behavior, along with the comment describing
985 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
986 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
987 sim, remote-e7000.c, remote-hms.c and remote.c
989 2002-09-15 Mark Kettenis <kettenis@gnu.org>
991 * i386-tdep.c (gdb_print_insn_i386): Removed.
992 (i386_print_insn): New function.
993 (i386_gdbarch_init): Set print_insn to i386_print_insns.
994 (_initialize_i386_tdep): Don't initialize tm_print_insn and
997 2002-09-14 Mark Kettenis <kettenis@gnu.org>
999 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1002 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1004 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1005 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1006 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1008 2002-09-13 Christopher Faylor <cgf@redhat.com>
1010 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1012 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1014 * gdbtypes.c (check_stub_method): Make static.
1015 (check_stub_method_group): New function.
1016 * gdbtypes.h: Update prototypes.
1017 * cp-support.c: New file.
1018 * cp-support.h: New file.
1020 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1021 (update_method_name_from_physname): New function.
1022 (read_member_functions): Correct method names for operators
1023 and v3 constructors/destructors. Separate v2 constructors and
1025 * Makefile.in (stabsread.o): Update dependencies.
1026 (SFILES): Add cp-support.c.
1027 (COMMON_OBS): Add cp-support.o.
1028 (cp_support_h, cp-support.o): Add.
1030 * cp-valprint.c (cp_print_class_method): Call
1031 check_stub_method_group instead of check_stub_method. Remove
1033 * p-valprint.c (pascal_object_print_class_method): Likewise.
1034 * valops.c (search_struct_method): Likewise.
1035 (find_method_list, value_struct_elt_for_reference): Likewise.
1037 2002-09-13 Andrew Cagney <cagney@redhat.com>
1039 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1040 * gdbarch.h, gdbarch.c: Regenerate.
1042 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1044 * frame.c (find_saved_register): Delete function.
1045 * frame.h (find_saved_register): Delete declaration.
1048 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1050 * mips-tdep.c (read_next_frame_reg): Re-hack using
1051 frame_register_unwind.
1053 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1055 * mips-tdep.c (mips_get_saved_register): Re-hack using
1056 frame_register_unwind.
1058 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1060 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1061 vector. Will be useful for Interix.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1064 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1065 name of the malloc function by NAME_OF_MALLOC.
1067 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1069 * value.h (find_function_in_inferior): Add const keyword to
1070 one of the parameters. Allows us to invoke this function with
1072 * valops.c (find_function_in_inferior): Likewise.
1074 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1076 * exec.c (xfer_memory): Fix compilation warning with old versions
1078 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1080 2002-09-12 David Carlton <carlton@math.stanford.edu>
1082 * symtab.h: Run through gdb_indent.h.
1083 Add 2002 to Copyright year list.
1085 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1087 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1089 * MAINTAINERS: Add myself to write after approval list.
1091 2002-09-11 J. Brobecker <brobecker@gnat.com>
1093 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1095 2002-09-11 J. Brobecker <brobecker@gnat.com>
1097 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1100 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1102 * procfs.c (do_detach): Clear current signal, not just fault.
1103 Corrects problem with breakpoint trap signal leaking to detached
1106 2002-09-10 Michael Snyder <msnyder@redhat.com>
1108 * buildsym.c (finish_block): Protect against null pointer.
1110 2002-09-10 Andrew Cagney <cagney@redhat.com>
1112 * infcmd.c (default_print_registers_info): Send all output to
1113 ``file'' instead of ``gdb_stdout''.
1115 2002-09-10 Michael Snyder <msnyder@redhat.com>
1117 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1118 LONGEST, and use signed register read (addresses are sign-
1121 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1123 * event-loop.c (gdb_do_one_event): Make public.
1124 * event-loop.h (gdb_do_one_event): Declare.
1126 2002-09-10 Jeff Law <law@redhat.com>
1128 * infttrace.c (child_resume): Simplify and rework to avoid
1131 2002-09-09 Fred Fish <fnf@intrinsity.com>
1133 * printcmd.c (print_scalar_formatted): "len" is the number of
1134 target bytes, NOT the number of target bits.
1136 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1138 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1139 * top.c (init_main): Set rl_terminal_name.
1141 2002-09-08 Aidan Skinner <aidan@velvet.net>
1143 * ada-lang.c (ada_array_bound, ada_type_match,
1144 _initialize_ada_language): Fix K&R definitions.
1145 * ada-tasks.c (get_current_task): Fix K&R definitions.
1146 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1148 2002-09-07 Christopher Faylor <cgf@redhat.com>
1150 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1153 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1155 * i386-tdep.c (i386_register_virtual_type,
1156 i386_register_convertible, i386_register_convert_to_virtual,
1157 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1158 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1159 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1160 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1161 Don't set push_arguments twice.
1163 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1164 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1165 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1166 sigtramp_end to NULL.
1167 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1169 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1171 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1174 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1175 * gdbarch.h, gdbarch.c: Re-generate.
1176 * blockframe.c (find_pc_sect_partial_function): Convert to use
1177 SIGTRAMP_START_P predicate.
1179 2002-09-05 Michael Snyder <msnyder@redhat.com>
1181 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1182 generic_dummy_frame method and old method. Also distinguish
1183 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1184 (arm_extract_return_value): Use new regcache method.
1186 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1187 adjustment that doesn't conform to the ABI.
1188 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1189 saved regcache, not from current regcache.
1191 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1193 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1196 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1198 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1199 if arm_apcs_32 is false.
1201 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1203 GDB 5.3 branch created.
1205 2002-09-03 Theodore A. Roth <troth@verinet.com>
1207 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1208 generic_unwind_get_saved_register.
1210 2002-09-03 David Carlton <carlton@math.stanford.edu>
1212 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1213 argument (PR gdb/653). Update call to smash_to_method_type.
1214 (read_structure_scope): Update call to dwarf2_add_member_fn.
1216 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1218 * x86-64-linux-tdep.c: Include gdb_string.h
1219 * x86-64-linux-nat.c: Ditto.
1221 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1223 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1224 when YYDEBUG is set to 1.
1225 * c-exp.y: Likewise.
1226 * f-exp.y: Likewise.
1227 * jv-exp.y: Likewise.
1228 * m2-exp.y: Likewise.
1229 * p-exp.y: Likewise.
1231 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1233 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1235 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1236 solib_svr4_fetch_link_map_offsets to
1237 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1238 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1239 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1240 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1241 solib-svr4.o, and solib-legacy.o.
1242 * config/i386/tm-nbsd.h: Include solib.h.
1244 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1246 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1247 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1248 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1249 comment noting that this needs its own target configuration.
1250 * config/i386/nbsd.mt: New file.
1251 * config/i386/nbsdaout.mt: Remove.
1252 * config/i386/nbsdelf.mt: Ditto.
1253 * config/i386/tm-nbsdaout.h: Ditto.
1255 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1257 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1258 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1259 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1261 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1262 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1263 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1265 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1267 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1268 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1269 * i386-tdep.h (i386bsd_init_abi): New prototype.
1270 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1271 function declaration.
1272 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1273 for NetBSD-a.out or NetBSD-ELF.
1274 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1275 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1276 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1277 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1279 (i386nbsd_pc_in_sigtramp): New function.
1280 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1281 i386nbsd_pc_in_sigtramp.
1282 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1283 and i386nbsdelf_init_abi OS ABI handlers.
1284 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1285 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1287 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1289 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1290 registers if the target really has them.
1292 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1294 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1297 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1299 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1301 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1302 (alphanbsd_skip_sigtramp_frame): New functions.
1303 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1304 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1305 to alphanbsd_sigcontext_addr.
1307 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1309 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1311 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1312 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1313 nbsd_pc_in_sigtramp.
1314 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1315 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1316 * nbsd-tdep.c: Include gdb_string.h.
1317 (nbsd_pc_in_sigtramp): New function.
1318 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1319 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1320 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1321 ppcnbsd_pc_in_sigtramp.
1322 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1323 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1324 shnbsd_pc_in_sigtramp.
1325 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1326 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1327 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1329 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1331 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1332 watchpoints to NULL.
1333 (insert_breakpoints): set val field of watchpoints if NULL.
1336 2002-08-29 Jim Blandy <jimb@redhat.com>
1338 * symtab.c (lookup_symbol_aux): In the cases where we find a
1339 minimal symbol of an appropriate name and use its address to
1340 select a symtab to read and search, use `name' (as passed to us)
1341 as the demangled name when searching the symtab's global and
1342 static blocks, not the minsym's name.
1344 2002-08-29 Keith Seitz <keiths@redhat.com>
1346 * stack.c (print_frame_info_base): Always set current_source_symtab
1347 and current_source_line.
1349 2002-08-29 Donn Terry <donnte@microsoft.com>
1351 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1353 2002-08-28 Keith Seitz <keiths@redhat.com>
1355 * stack.c (select_frame): Add FIXME concerning selected-frame
1357 (select_frame_command): Send selected-frame-level-changed
1358 event notification, but only if the level actually changed.
1359 (up_silently_base): Add selected-frame-level-changed event
1361 (down_silently_base): Likewise.
1363 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1365 * Makefile.in: Update dependencies for all gdb/*.c files.
1367 2002-08-27 Tom Tromey <tromey@redhat.com>
1369 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1370 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1371 Update dependencies.
1372 * i387-tdep.c: Include gdb_string.h.
1373 * osabi.c: Likewise.
1374 * i386-linux-nat.c: Likewise.
1375 * lin-lwp.c: Likewise.
1376 * ax-gdb.c: Likewise.
1377 * signals/signals.c: Likewise.
1378 * jv-valprint.c: Likewise.
1379 * p-lang.c: Likewise.
1380 * c-valprint.c: Likewise.
1381 * cp-abi.c: Likewise.
1383 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1385 * cli/cli-script.h (copy_command_lines): Export.
1386 * breakpoint.c: Include cli/cli-script.h.
1387 * Makefile.in (breakpoint.o): Update dependencies.
1389 2002-08-26 Michael Snyder <msnyder@redhat.com>
1391 * breakpoint.c (insert_breakpoints): Protect all references
1392 to 'process_warning'. Shorten long lines.
1394 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1396 * cli/cli-script.c (copy_command_lines): New function.
1397 * defs.h (copy_command_lines): Export.
1398 * testsuite/gdb.base/commands.exp: New tests for commands
1399 attached to a temporary breakpoint, and for commands that
1400 delete the breakpoint they are attached to.
1402 2002-08-26 Michael Snyder <msnyder@redhat.com>
1404 * breakpoint.c (bpstat_stop_status): Instead of copying the
1405 pointer to the breakpoint commands struct, make a new copy
1406 of the struct and point to that.
1407 (bpstat_clear): Free the commands struct.
1408 (bpstat_clear_actions): Free the commands struct.
1409 (bpstat_do_actions): Free the command actions. Also execute
1410 the local cleanups, instead of deleting them.
1411 (delete_breakpoint): Leave the commands field of the bpstat
1412 chain alone -- it will be freed later.
1414 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1416 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1417 deleted in 2002-08-20 commit. This function is still used by
1420 2002-08-26 Keith Seitz <keiths@redhat.com>
1422 * gdb-events.sh: Add selected-frame-level-changed event.
1423 * gdb-events.c: Regenerated.
1424 * gdb-events.h: Regenerated.
1426 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1429 * inflow.c (terminal_save_ours): New function to save terminal
1431 * inferior.h (terminal_save_ours): Declare.
1432 * target.c (debug_to_terminal_save_ours): New function.
1433 (cleanup_target): Defaults to_terminal_save_ours.
1434 (update_current_target): Inherit to_terminal_save_ours.
1435 (setup_target_debug): Set to_terminal_save_ours.
1436 * target.h (target_terminal_save_ours): New to save terminal settings.
1437 (target_ops): New member to_terminal_save_ours.
1438 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1439 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1440 * inftarg.c (init_child_ops): Likewise.
1441 * m3-nat.c (init_m3_ops): Likewise.
1442 * procfs.c (init_procfs_ops): Likewise.
1443 * wince.c (init_child_ops): Likewise.
1444 * win32-nat.c (init_child_ops): Likewise.
1445 * sol-thread.c (init_sol_thread_ops): Likewise.
1447 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1449 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1450 use regcache_* functions.
1451 (i386_gdbarch_init): Set store_return_value instead of
1452 deprecated_store_return_value.
1454 * regcache.c (regcache_raw_write_signed,
1455 regcache_raw_write_unsigned): New functions.
1456 * regcache.h (regcache_raw_write_signed,
1457 regcache_raw_write_unsigned): New prototypes.
1459 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1461 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1462 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1463 source file dependencies. Cleanup corresponding generator rules.
1465 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1467 * regcache.h (register_offset_hack): Declare.
1468 (regcache_cooked_read_using_offset_hack): Declare.
1469 (regcache_cooked_write_using_offset_hack): Declare.
1471 * regcache.c (register_offset_hack): New function.
1472 (regcache_cooked_read_using_offset_hack): New function.
1473 (regcache_cooked_write_using_offset_hack): New function.
1474 (regcache_dump): Check that the registers, according to their
1475 offset, are packed hard against each other.
1476 (cooked_xfer_using_offset_hack): New function.
1478 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1480 * regcache.c (struct regcache_descr): Add field register_type.
1481 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1483 (init_regcache_descr): Initialize register_type. Pass the descr
1484 to init_legacy_regcache_descr. Use register_type instead of
1485 REGISTER_VIRTUAL_TYPE.
1486 (register_type): New function.
1487 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1488 * regcache.h (register_type): Declare.
1490 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1492 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1493 instead of deprecated_store_return_value. Fix fallout from
1494 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1496 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1498 * regcache.c (max_register_size): New function.
1499 (init_legacy_regcache_descr): Ensure that max_register_size is
1500 large enough for REGISTER_VIRTUAL_SIZE.
1501 * regcache.h (max_register_size): Declare.
1503 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1505 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1507 (e500_extract_return_value): Change type of valbuf pointer to
1510 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1512 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1515 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1516 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1517 long long) to prevent compiler warning on 64-bit systems.
1519 2002-08-23 Andrew Cagney <cagney@redhat.com>
1521 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1522 (DEPRECATED_STORE_RETURN_VALUE): New method.
1523 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1524 * gdbarch.h, gdbarch.c: Re-generate.
1526 * values.c (set_return_value): Pass current_regcache to
1528 * arch-utils.h (legacy_store_return_value): Declare.
1529 * arch-utils.c (legacy_store_return_value): New function.
1530 (legacy_extract_return_value): Update parameters.
1532 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1534 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1535 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1536 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1537 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1538 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1539 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1540 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1541 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1542 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1543 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1546 * i386-tdep.c (i386_extract_return_value): Update.
1547 * arch-utils.c (legacy_extract_return_value): Update.
1548 * frv-tdep.c (frv_gdbarch_init): Update.
1549 * cris-tdep.c (cris_gdbarch_init): Update.
1550 * d10v-tdep.c (d10v_gdbarch_init): Update.
1551 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1552 * m68k-tdep.c (m68k_gdbarch_init): Update.
1553 * mcore-tdep.c (mcore_gdbarch_init): Update.
1554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1555 * s390-tdep.c (s390_gdbarch_init): Update.
1556 * sparc-tdep.c (sparc_gdbarch_init): Update.
1557 * sh-tdep.c (sh_gdbarch_init): Update.
1558 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1559 * v850-tdep.c (v850_gdbarch_init): Update.
1560 * avr-tdep.c (avr_gdbarch_init): Update.
1561 * ia64-tdep.c (ia64_gdbarch_init): Update.
1562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1563 * vax-tdep.c (vax_gdbarch_init): Update.
1564 * alpha-tdep.c (alpha_gdbarch_init): Update.
1565 * arm-tdep.c (arm_gdbarch_init): Update.
1566 * mips-tdep.c (mips_gdbarch_init): Update.
1567 * i386-tdep.c (i386_gdbarch_init): Update.
1569 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1571 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1572 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1574 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1576 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1579 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1581 * infrun.c (handle_inferior_event): Move a comment outside of a
1582 function call, in order to avoid indent reformatting this part
1583 of the code in an unreadable way.
1585 2002-08-23 Grace Sainsbury <graces@redhat.com>
1587 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1588 when breakpoints fail. Move general breakpoint error messages to
1590 * breakpoint.c (insert_breakpoints): Change warnings when
1591 breakpoints are nto inserted to specify the type. Remove call to
1592 memory_error when hardware breakpoints can't be inserted. Remove
1593 multiple calls to warning so all messages are sent to the user at
1595 (delete_breakpoints): Make insert error messsages more explicit.
1597 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1599 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1600 gdbserver/ChangeLog.
1602 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1604 * i386-tdep.c: Include "objfiles.h".
1605 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1606 skip_trampoline_code.
1607 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1608 (CPLUS_MARKER): Define to '.'.
1610 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1612 (linux_corefile_thread_callback): Increase args->num_notes.
1613 (linux_make_note_section): Initialize thread_args.num_notes, and
1614 use it to determine whether notes for any threads were created.
1616 2002-08-23 Donn Terry <donnte@microsoft.com>
1618 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1619 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1621 (write_with_trace): Conditionalize out the switch branch handling
1622 PCSHOLD if the corresponding macro is not defined. Likewise for
1623 PRSABORT and PRSTOP.
1624 This change will be needed by the Interix port.
1626 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1628 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1629 write_register wherever possible instead of manipulating the
1630 register bytes directly.
1631 Assign VALUE_CONTENTS to a variable and use that.
1632 The GPR numbers are now dependent on the architecture.
1634 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1636 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1638 (skip_prologue): Add support for BookE/e500 instructions.
1639 (e500_extract_return_value): New function.
1640 (frame_get_saved_regs): Add support for saving ev registers and
1642 (e500_store_return_value): New function.
1643 (rs6000_gdbarch_init): Move up default intializations of
1644 deprecated_extract_return_value and store_return_value. Overwrite
1645 init of store_return_value with e500 specific version.
1646 Set extract_return_value for e500.
1648 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1650 * blockframe.c (generic_call_dummy_register_unwind): Use
1651 regcache_cooked_read to catch cases in which the variable is
1652 stored in a pseudo register.
1654 2002-08-22 Andrew Cagney <cagney@redhat.com>
1656 * NEWS: Mention that the i960 has been made obsolete.
1657 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1659 (remote-nrom.o): Obsolete target.
1660 (remote-nindy.o, i960-tdep.o): Ditto.
1661 * remote-nrom.c: Make file obsolete.
1662 * remote-nindy.c, remote-vx960.c: Ditto.
1663 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1664 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1665 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1666 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1667 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1668 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1669 i960-*-vxworks* obsolete.
1670 * MAINTAINERS: Note that the i960 is obsolete.
1672 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1674 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1675 detach to allow reinitialization.
1677 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1679 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1682 2002-08-22 Jim Blandy <jimb@redhat.com>
1684 * coffread.c (coff_symfile_read): Don't try to read the line
1685 number table from disk if the image file doesn't have a symbol
1686 table; we'll never actually look at the info anyway, and Windows
1687 ships DLL's with bogus file offsets for the line number data.
1689 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1691 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1694 2002-08-21 Michael Snyder <msnyder@redhat.com>
1696 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1697 (MSYMBOL_SIZE): Replace macro with function.
1698 (DEFAULT_MIPS_TYPE): Delete unused macro.
1699 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1700 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1702 2002-08-21 Jim Blandy <jimb@redhat.com>
1704 * valops.c (value_cast): Simplify and correct logic for doing a
1705 static cast from a pointer to a base class to a pointer to a
1708 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1710 * infcmd.c (default_print_registers_info): Replace
1712 (registers_info): Use gdbarch_print_registers_info instead of
1714 * inferior.h (default_print_registers_info): Replace
1716 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1717 (DO_REGISTERS_INFO): Change to a predicate function.
1718 * gdbarch.h, gdbarch.c: Regenerate.
1720 2002-08-21 Keith Seitz <keiths@redhat.com>
1722 * gdb-events.sh: Add target-changed event.
1723 * gdb-events.c: Regenerated.
1724 * gdb-events.c: Regenerated.
1725 * valops.c (value_assign): Add target-changed event notification
1726 to inlval_register, lval_memory, and lval_reg_frame_relative.
1728 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1730 * NEWS: Add an entry regarding the improvement of the next/step
1731 operation on Alpha Tru64 multi-processor machines.
1733 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1735 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1737 * Makefile.in: Update all _h macro definitions.
1738 * Makefile.in (install-gdbtk): Move to install section.
1739 (rdi-share/libangsd.a): Move to end of file.
1741 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1743 * frame.c (frame_register_unwind): When a register, set addrp to
1744 the register's byte.
1746 2002-08-20 Michael Snyder <msnyder@redhat.com>
1748 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1749 used locally, so move them from the target machine header to here.
1750 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1751 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1753 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1755 2002-08-20 Andrew Cagney <cagney@redhat.com>
1757 * NEWS: Mention that the Apollo line was made obsolete.
1758 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1759 m68*-hp-hpux* obsolete.
1760 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1761 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1762 * buildsym.c (make_blockvector): Make static.
1763 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1764 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1765 (ALLDEPFILES): Remove dstread.c.
1766 (dstread.o): Obsolete make rule.
1767 * dstread.c: Makefile obsolete.
1769 * config/m68k/hp300hpux.mt: Ditto.
1770 * config/m68k/hp300hpux.mh: Ditto.
1771 * config/m68k/hp300bsd.mt: Ditto.
1772 * config/m68k/hp300bsd.mh: Ditto.
1773 * config/m68k/apollo68b.mt: Ditto.
1774 * config/m68k/apollo68v.mh: Ditto.
1775 * config/m68k/apollo68b.mh: Ditto.
1777 2002-08-20 Michael Snyder <msnyder@redhat.com>
1779 * mips-tdep.c (mips_in_return_stub): Make static.
1780 (mips_gdbarch_init): Set in_solib_return_trampoline.
1781 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1783 2002-08-20 Michael Snyder <msnyder@redhat.com>
1785 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1786 * gdbarch.c, gdbarch.h: Regenerate.
1787 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1789 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1791 2002-08-20 Michael Snyder <msnyder@redhat.com>
1793 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1794 (mips_gdbarch_init): Set skip_trampoline_code,
1795 in_solib_call_trampoline.
1796 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1797 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1799 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1801 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1803 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1804 vector type for ev registers.
1805 (e500_pseudo_register_read): New function.
1806 (e500_pseudo_register_write): New function.
1807 (e500_dwarf2_reg_to_regnum): New function.
1808 (PPC_UISA_NOFP_SPRS): New macro.
1809 (PPC_EV_REGS): New macro.
1810 (PPC_GPRS_PSEUDO_REGS): New macro.
1811 (registers_e500): New register set for e500.
1812 (variants): Add e500 variant.
1813 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1814 before setting architectural dependent variations. Initialize ev
1815 registers numbers. Add case for e500 architecture. Set the
1816 number of pseudo registers.
1818 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1820 * rs6000-tdep.c: Clean up comments.
1822 2002-08-20 Andrew Cagney <cagney@redhat.com>
1824 * h8300-tdep.c: Re-indent file.
1826 2002-08-20 Jim Blandy <jimb@redhat.com>
1828 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1831 2002-08-20 Keith Seitz <keiths@redhat.com>
1833 * breakpoints.c (watch_command_1): Use internal breakpoint
1834 when setting a watchpoint_scope breakpoint.
1836 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1838 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1839 (build_builtin_type_vec64i): Ditto.
1840 (build_builtin_type_vec128): Ditto.
1841 (build_builtin_type_vec128i): Ditto.
1843 2002-08-19 Michael Snyder <msnyder@redhat.com>
1845 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1846 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1847 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1848 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1849 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1850 CALL_DUMMY_ADDRESS): Delete.
1851 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1852 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1853 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1854 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1855 push_return_address.
1856 (mips_register_raw_size, mips_eabi_use_struct_convention,
1857 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1858 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1859 mips_init_extra_frame_info, mips_eabi_push_arguments,
1860 mips_n32n64_push_arguments, mips_push_return_address,
1861 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1862 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1864 2002-08-19 Michael Snyder <msnyder@redhat.com>
1866 * mips-tdep.c (mips_frame_num_args): New function.
1867 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1868 frame_saved_pc, frame_args_address, frame_locals_address,
1869 frame_num_args, and frame_args_skip.
1870 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1871 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1872 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1873 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1875 2002-08-20 Michael Snyder <msnyder@redhat.com>
1877 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1878 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1879 * mips-tdep.c (mips_store_struct_return): New function.
1880 (mips_extract_struct_value_address): New function.
1881 (mips_gdbarch_init): Set store_struct_return and
1882 extract_struct_value_address.
1884 2002-08-20 David Carlton <carlton@math.stanford.edu>
1886 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1887 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1888 (read_file_scope): Check that line_header is nonzero before
1889 decoding macro information.
1891 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1893 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1894 flag the general-purpose registers as floating-point on targets
1895 that don't support the floating-point registers.
1897 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1899 * rs6000-tdep.c (altivec_register_p): Delete.
1900 (rs6000_do_altivec_registers): Delete.
1901 (rs6000_altivec_registers_info): Delete.
1902 (rs6000_do_registers_info): Delete.
1903 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1904 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1906 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1908 * infcmd.c (do_registers_info): Print vector registers in hex
1910 (print_vector_info): Check that printing registers
1912 (print_float_info): Ditto.
1914 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1916 * mips-tdep.c (mips_gdbarch_init): Update.
1917 (mips_o32_extract_return_value): Rewrite.
1918 (mips_o32_store_return_value): Rewrite.
1919 (mips_o32_xfer_return_value): New function.
1920 (mips_xfer_register): Tweak debug print message. Allow for
1921 buf_offset when dumping the value transfered.
1923 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1925 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1926 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1927 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1928 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1929 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1931 2002-08-14 Michael Snyder <msnyder@redhat.com>
1933 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1935 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1937 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1939 (P): New macro to define a register as a pseudo register.
1940 (R, R4, R8, R16, FR32, R64, R0): Updated.
1941 (struct variant): Add new fields for number of pseudo registers
1942 and number of total registers.
1943 (tot_num_registers): New macro replacing....
1944 (num_registers): ...deleted macro.
1945 (num_registers): New function.
1946 (num_pseudo_registers): New function.
1947 (variants): Update all variants to intialize new fields correctly.
1948 Postpone initialization of number of pseudo regs and real regs.
1949 (init_variants): New function.
1950 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1953 2002-08-19 David Carlton <carlton@math.stanford.edu>
1955 * valops.c (search_struct_field): Change error message to treat
1956 return value of 0 from value_static_field as meaning that field is
1958 (value_struct_elt_for_reference): Ditto.
1959 * values.c (value_static_field): Treat an unresolved location the
1960 same as a nonexistent symbol. Fix PR gdb/635.
1961 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1962 enclosed. Fix PR gdb/574.
1963 * MAINTAINERS: Add self to Write After Approval list.
1965 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1967 * mips-tdep.c (mips_xfer_register): New function.
1968 (mips_n32n64_extract_return_value): Rewrite.
1969 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1970 instead of deprecated_extract_return_value.
1972 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1974 * rs6000-tdep.c (TDEP): Delete macro.
1975 (branch_dest): Replace use of TDEP macro with its body.
1976 (rs6000_pop_frame): Ditto.
1977 (rs6000_push_arguments): Ditto.
1978 (rs6000_skip_trampoline_code): Ditto.
1979 (rs6000_frame_saved_pc): Ditto.
1980 (rs6000_frame_chain): Ditto.
1981 (rs6000_register_name): Ditto.
1982 (rs6000_register_byte): Ditto.
1983 (rs6000_register_raw_size): Ditto.
1984 (rs6000_register_virtual_type): Ditto.
1985 (rs6000_register_convertible): Ditto.
1986 (rs6000_convert_from_func_ptr_addr): Ditto.
1988 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1990 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1992 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1993 MIPS_LINUX_JB_ELEMENT_SIZE.
1994 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1995 for MAX_REGISTER_RAW_SIZE arrays.
1996 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1997 MIPS_LINUX_JB_ELEMENT_SIZE.
1999 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2001 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2003 2002-08-19 Aidan Skinner <aidan@velvet.net>
2005 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2006 ada-valprint.c ada-tasks.c.
2007 (YYFILES): Add ada-exp.y.
2008 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2009 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2010 (ada-exp.tab.o): New target.
2012 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2014 * regcache.c (regcache_xfer_part): New function.
2015 (regcache_raw_read_part): New function.
2016 (regcache_raw_write_part): New function.
2017 (regcache_cooked_read_part): New function.
2018 (regcache_cooked_write_part): New function.
2019 * regcache.h (regcache_raw_read_part): Declare.
2020 (regcache_raw_write_part): Declare.
2021 (regcache_cooked_read_part): Declare.
2022 (regcache_cooked_write_part): Declare.
2024 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2026 * remote.c (remote_open_1): Add async_p.
2027 (remote_async_open_1): Delete.
2028 (open_remote_target): Delete.
2029 (remote_open, extended_remote_open): Update calls to remote_open_1.
2030 (remote_async_open, extended_remote_async_open): Call
2031 remote_open_1 instead of remote_async_open_1.
2033 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2035 * blockframe.c: Fix a few coding standard violations.
2037 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2039 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2041 * config/i386/tm-i386sco5.h: ... here. File removed.
2042 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2044 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2045 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2046 (TM_FILE): Set to tm-i386.h.
2047 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2048 * config/i386/tm-i386v.h: Remove file.
2049 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2050 instead of "i386/tm-i386v.h".
2051 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2052 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2054 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2055 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2058 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2060 * config/i386/nm-i386v.h: Add protection against
2062 (i386_register_u_addr): Remove prototype.
2063 (register_u_addr): New prototype.
2064 (REGISTER_U_ADDR): Redefine accordingly.
2065 * i386v-nat.c: Improve several comments.
2066 (i386_register_u_addr): Change signature and rename to
2067 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2070 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2072 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2073 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2074 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2075 deprecated_extract_return_value.
2076 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2077 rename mips_o32o64_push_arguments.
2078 (mips_gdbarch_init): Update.
2079 (mips_extract_return_value): Delete.
2080 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2081 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2082 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2083 (mips_n32n64_extract_return_value): Clone
2084 mips_extract_return_value.
2085 (mips_store_return_value): Delete.
2086 (mips_o32_store_return_value): Clone mips_store_return_value.
2087 (mips_o64_store_return_value): Clone mips_store_return_value.
2088 (mips_eabi_store_return_value): Clone mips_store_return_value.
2089 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2091 2002-08-18 Aidan Skinner <aidan@velvet.net>
2093 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2094 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2096 2002-08-18 Aidan Skinner <aidan@velvet.net>
2098 * ada-lang.c: Run through gdb_indent.sh.
2099 * ada-lang.h: Run through gdb_indent.sh.
2100 * ada-tasks.c: Run through gdb_indent.sh.
2101 * ada-typeprint.c: Run through gdb_indent.sh.
2102 * ada-valprint.c: Run through gdb_indent.sh.
2104 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2106 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2109 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2111 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2113 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2114 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2116 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2117 write_register_gen instead of write_register_bytes.
2119 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2120 i[3456]-*-osf1mk* configurations have been made obsolete.
2121 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2122 i[3456]86-*-osf1mk* hosts obsolete.
2123 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2125 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2126 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2127 config/i386/i386m3.mt, config/i386/nm-m3.h,
2128 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2129 config/i386/i386mk.mh, config/i386/i386mk.mt,
2130 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2132 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2133 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2134 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2136 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2138 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2139 (hppa_value_returned_from_stack): Declare.
2140 (hppa_extract_return_value): Declare.
2141 * config/pa/hppa.mt: New file.
2142 * configure.tgt: Recognize hppa*-*-*.
2143 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2145 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2147 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2150 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2152 * top.c (gdb_rl_operate_and_get_next): Make sure
2153 operate-and-get-next functions correctly even when the history
2154 list is completely filled.
2156 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2158 * MAINTAINERS (Target Instruction Set Architectures): Rename
2159 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2160 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2161 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2162 already listed under Host/Native.
2164 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2165 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2168 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2170 * config/ia64/ia64.mt: New file.
2171 * config/alpha/alpha.mt: New file.
2172 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2173 ia64-linux-gnu. Mention that ia64-elf is broken.
2174 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2176 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2178 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2179 generic_func_frame_valid instead of func_frame_valid.
2181 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2183 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2184 procfs appears to be broken when debugging on multi-processor
2185 machines. So enable software single stepping in order to avoid
2186 using the procfs interface to do next/step operations, using
2187 internal breakpoints instead.
2189 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2190 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2191 make this pc address equal to the value it would have if the
2192 system stepping capability was used. Also set a new flag used
2193 to ensure that we don't readjust the PC one more time later.
2195 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2196 address by DECR_PC_AFTER_BREAK when software single step is
2197 in use for this architecture, as this has already been taken
2198 care of in handle_inferior_event().
2200 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2202 * infrun.c (handle_inferior_event): Minor reformatting, to make
2203 a rather long condition expression easier to read.
2205 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2207 * Makefile.in (gdbtk.o): Move to end of file.
2208 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2209 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2210 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2211 (gdbtk-wrapper.o, gdbres.o): Ditto.
2213 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2215 * Makefile.in (copying.o): Separate out compile rule.
2216 (hpux-thread.o, procfs.o, signals.o): Ditto.
2217 (v850ice.o, z8k-tdep.o): Ditto.
2218 (tui-file.o): Move to TUI section.
2219 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2220 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2222 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2224 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2225 skip_trampoline_code, for better namespace-proofing.
2227 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2229 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2231 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2233 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2235 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2236 signal, check whether we hit a breakpoint before checking for a
2237 single step breakpoint. Otherwise, GDB fails to notice that a
2238 breakpoint has been hit when stepping onto a breakpoint.
2240 2002-08-16 Keith Seitz <keiths@redhat.com>
2242 * gdb-events.sh (clear_gdb_event_hooks): New function.
2243 * gdb-events.c: Regenerate.
2244 * gdb-events.h: Regenerate.
2246 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2248 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2249 not_a_sw_breakpoint.
2250 * breakpoint.h (bpstat_stop_status): Add parameter names.
2252 2002-08-16 Grace Sainsbury <graces@redhat.com>
2254 * remote.c (remote_insert_hw_breakpoint)
2255 (remote_remove_hw_breakpoint): Fix calculation of length field
2258 2002-08-15 Michael Snyder <msnyder@redhat.com>
2260 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2261 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2262 (supply_fpregset): Ditto.
2264 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2265 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2266 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2267 (TARGET_READ_SP): Delete.
2268 (DO_REGISTERS_INFO): Delete.
2269 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2271 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2272 from macros to functions.
2274 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2275 (mips_register_convertible, mips_register_convert_to_virtual,
2276 mips_register_convert_to_raw): Make static.
2277 (mips_read_sp): New function.
2278 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2279 (mips_do_registers_info): Make static.
2280 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2281 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2282 (mips_register_convert_from_type, mips_register_convert_to_type):
2284 (mips_gdbarch_init): Set up function_start_offset,
2285 register_virtual_size, pc_in_sigtramp.
2287 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2289 * infcmd.c (vector_info): New function.
2290 (_initialize_infcmd): Add command "info vector".
2291 (print_vector_info): New function.
2293 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2294 * gdbarch.h, gdbarch.c: Regenerate.
2296 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2298 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2299 ``print_all''. Only print vector registers when ``print_all''.
2301 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2303 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2304 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2306 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2307 Add `args' parameter.
2308 * gdbarch.h, gdbarch.c: Regenerate.
2310 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2312 * infcmd.c (float_info): Call print_float_info.
2313 (print_float_info): New function. By default, print the
2314 floating-point registers.
2316 * arch-utils.h (default_print_float_info): Delete declaration.
2317 * arch-utils.c (default_print_float_info): Delete function.
2319 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2321 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2324 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2327 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2328 * configure.host: Make i[3456]86-*-aix host obsolete.
2329 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2330 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2331 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2332 config/i386/xm-i386aix.h: Make files obsolete.
2333 * i386aix-nat.c: Make file obsolete.
2334 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2335 (i386aix-nat.o): Make target obsolete.
2337 * config/i386/nm-gnu.h: Removed.
2338 * config/i386/nm-i386gnu.h: New file.
2339 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2340 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2342 * config/i386/tm-i386gnu.h: ... here. Removed.
2343 * config/i386/xm-i386gnu.h: Removed.
2344 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2345 (NAT_FILE): Set to nm-i386gnu.h.
2346 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2347 * i386-tdep.c: New file.
2348 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2349 (i386gnu-tdep.o): Specify dependencies.
2351 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2353 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2354 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2355 Adjust a few comments to reflect reality a bit closer.
2356 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2357 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2358 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2359 target_insert_watchpoint, target_remove_watchpoint):
2361 * config/i386/nm-i386sco5.h: ... here.
2362 (kernel_u_size): Add prototype. Improve a few comments and add
2363 protection against multiple inclusion.
2365 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2368 * uw-thread.c (SP_ARG0): Define if not already defined.
2369 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2371 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2373 * config/i386/tm-i386.h: Don't include "regcache.h".
2375 * i387-tdep.h (i387_print_float_info): New prototype.
2376 * i387-tdep.c (print_i387_value, print_i387_ext,
2377 print_i387_status_word, print_i387_control_word): Add `struct
2378 ui_file *' argument and use it for output.
2379 (i387_print_float_info): Renamed from i387_float_info. Add
2380 `struct gdbarch *' and `struct ui_file *' arguments and use the
2382 * i386-tdep.c: Include "i387-tdep.h".
2383 (i386_gdbarch_init): Set print_float_info.
2384 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2385 (FLOAT_INFO): Remove define.
2387 2002-08-13 Michael Snyder <msnyder@redhat.com>
2389 * mips-tdep.c (mips_push_arguments): Rename to
2390 mips_eabi_push_arguments, and tune for EABI.
2391 (MIPS_REGS_HAVE_HOME_P): Delete.
2392 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2393 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2394 Delete references to mips_regs_have_home_p.
2396 2002-08-14 Keith Seitz <keiths@redhat.com>
2398 * Makefile.in (install-gdbtk): Create insight plugin directory.
2399 Install plugins.tcl file.
2401 2002-08-14 Keith Seitz <keiths@redhat.com>
2403 * configure.in: Move SUBDIRS to near top of the file so that
2404 --enable options may add things to it.
2405 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2406 * configure: Regenerate.
2408 2002-08-13 Michael Snyder <msnyder@redhat.com>
2410 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2411 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2412 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2414 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2416 * vax-tdep.c (vax_get_saved_register): Delete function.
2417 (vax_gdbarch_init): Update.
2418 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2419 (ns32k_gdbarch_init): Update.
2420 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2421 (alpha_gdbarch_init): Update.
2423 2002-08-13 Andrew Cagney <cagney@redhat.com>
2425 * regcache.c (init_regcache_descr): Overallocate the
2426 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2427 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2429 (set_register_cached): Add range checking assertions. Use
2432 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2434 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2435 numbers for MMX registers.
2437 2002-08-13 Andrew Cagney <cagney@redhat.com>
2439 * i386-tdep.c (i386_gdbarch_init): Use
2440 generic_unwind_get_saved_register.
2442 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2444 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2445 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2447 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2448 Delete. Add comment regarding this now-deleted target method.
2450 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2452 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2453 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2454 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2455 real PC and the page number (if it's within the memory bank window).
2456 (m68hc11_pseudo_register_write): Likewise when saving.
2457 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2458 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2459 (m68hc11_register_raw_size): And use 32-bit for it.
2460 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2461 16K memory bank is used by the prog; also use the virtual pc.
2463 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2465 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2466 (m68hc11_gdbarch_init): Install it in gdbarch.
2467 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2468 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2469 (MSYMBOL_SIZE): New for documentation.
2470 (insn_return_kind): Enum to specify how a function returns.
2471 (frame_extra_info): Cleanup and record the return mode.
2472 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2473 register in address computation.
2474 (m68hc11_get_return_insn): New to obtain the return instruction used
2476 (m68hc11_frame_init_saved_regs): Take into account the return
2477 instruction used by the function for far and interrupt functions.
2478 (m68hc11_init_extra_frame_info): Take into account page register.
2479 (m68hc11_frame_args_address): Adjust according to the return mode.
2480 (show_regs): Print page register only when it's used.
2482 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2484 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2485 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2486 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2488 (m68hc11_register_raw_size): Likewise.
2490 2002-08-13 Andrew Cagney <cagney@redhat.com>
2492 * i386-tdep.c (i386_register_name): Handle mmx registers.
2493 (mmx_regnum_p): New function.
2494 (i386_mmx_names): New array.
2495 (mmx_num_regs): New variable.
2496 (i386_pseudo_register_read): New function.
2497 (i386_pseudo_register_write): New function.
2498 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2500 * regcache.c (regcache_raw_read_unsigned): New function.
2501 (regcache_raw_read_signed): New function.
2502 * regcache.h (regcache_raw_read_unsigned): Declare.
2503 (regcache_raw_read_signed): Declare.
2505 2002-08-13 Andrew Cagney <cagney@redhat.com>
2507 * regcache.c (regcache_raw_read_as_address): Delete function.
2508 (regcache_cooked_read_signed): New function.
2509 (regcache_cooked_read_unsigned): New function.
2510 * regcache.h (regcache_cooked_read_signed): Declare.
2511 (regcache_cooked_read_unsigned): Declare.
2512 (regcache_raw_read_as_address): Delete declaration.
2514 * blockframe.c (generic_read_register_dummy): Use
2515 regcache_cooked_read_unsigned.
2516 * i386-tdep.c (i386_extract_struct_value_address): Use
2517 regcache_cooked_read_unsigned.
2519 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2522 double sizes according to ELF ABI flags.
2523 (gdbarch_tdep): Record elf_flags.
2525 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2527 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2528 (m6812_prolog): They can appear in 68HC12 function prologue.
2529 (m68hc11_frame_chain): Cleanup.
2531 2002-08-12 Andrew Cagney <cagney@redhat.com>
2533 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2535 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2536 (i386_linux_register_raw_size): Delete function.
2537 (i386_linux_init_abi): Update.
2538 * i386-tdep.c (i386_register_raw_size): Delete function.
2539 (i386_register_byte): Delete function.
2540 (i386_gdbarch_init): Update.
2541 (i386_register_size): Delete array.
2542 (i386_register_offset): Delete array.
2544 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2545 (REGISTER_RAW_SIZE): Delete macro.
2546 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2547 (REGISTER_BYTE): Delete macro.
2549 2002-08-11 Aidan Skinner <aidan@velvet.net>
2551 * ada-lang.c (ada_lookup_partial_symbol)
2552 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2553 prototype names so that grep ^func works properly.
2555 * ada-lang.c (ada_array_element_type)
2556 (ada_lookup_partial_symbol): Fix typos in parameter list.
2558 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2559 Fix prototype names so that grep ^func works properly.
2561 2002-08-10 Andrew Cagney <cagney@redhat.com>
2562 Elena Zannoni <ezannoni@redhat.com>
2563 Martin M. Hunt <hunt@redhat.com>
2565 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2566 (build_builtin_type_vec128i): Set the vector bit.
2567 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2568 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2569 (build_builtin_type_vec64): New function.
2570 (build_builtin_type_vec64i): New function.
2571 (build_gdbtypes): Initialize builtin_type_vec64 and
2572 builtin_type_vec64i.
2574 2002-08-09 Andrew Cagney <cagney@redhat.com>
2576 * regcache.c (regcache_dump): Compare the register offset
2578 * arch-utils.c (generic_register_byte): New function.
2579 * arch-utils.h (generic_register_byte): Declare.
2580 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2581 * gdbarch.h, gdbarch.c: Regenerate.
2583 2002-08-09 Andrew Cagney <cagney@redhat.com>
2585 * regcache.c: Include "gdbcmd.h"
2586 (_initialize_regcache): Add commands "maintenance print
2587 registers", "maintenance print raw-registers" and "maintenance
2588 print cooked-registers".
2589 (enum regcache_dump_what): Define.
2590 (dump_endian_bytes): New function.
2591 (regcache_dump): New function.
2592 (regcache_print): New function.
2593 (maintenance_print_registers): New function.
2594 (maintenance_print_raw_registers): New function.
2595 (maintenance_print_cooked_registers): New function.
2596 * Makefile.in (regcache.o): Update dependencies.
2598 2002-08-09 Michael Snyder <msnyder@redhat.com>
2600 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2601 (mips_push_arguments): Correct some comments. Use paddr_nz
2602 for printing addresses in debug output. Replace static
2603 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2604 (mips_n32n64_push_arguments): New function, cloned from
2605 mips_push_arguments and tuned for the n32/n64 ABI.
2606 (mips_push_register): Buffer needs dynamic allocation.
2607 (mips_print_register): Ditto.
2608 (do_gp_register_row): Ditto.
2609 (mips_store_return_value): Ditto.
2610 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2612 2002-08-09 Don Howard <dhoward@redhat.com>
2614 * memattr.c (mem_info_command): Print special case of upper bound
2615 as max CORE_ADDR + 1.
2617 2002-08-08 Michael Snyder <msnyder@redhat.com>
2619 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2620 returns structs by ref if they're too big to fit in two registers.
2622 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2624 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2626 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2627 mips_find_saved_regs().
2628 (mips_pop_frame): Likewise.
2630 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2632 * blockframe.c (frame_saved_regs_register_unwind): Revise
2633 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2636 2002-08-09 Grace Sainsbury <graces@redhat.com>
2638 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2639 T-packets; the 'a' is not taken as a register number.
2640 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2641 (remote_stopped_data_address): New functions; add to target
2643 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2644 prototypes to match other implementations of this
2645 function. replace integer argument with pointer -- the length
2646 field in the Z-packet is the length of what is pointed to or 1 if
2647 pointer is null. Add to target vector.
2648 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2652 * remote.c (remote_wait): Add support to extract optional
2653 watchpoint information from T-packet. Ignore unrecognized
2654 optional info in T-packet.
2655 (remote_async_wait): Ditto.
2657 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2659 * cli/cli-dump.c: Change fopen modes to use binary open modes
2660 as defined in include/fopen-bin.h throughout.
2662 2002-08-08 Michael Snyder <msnyder@redhat.com>
2664 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2666 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2668 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2669 assertion failure by returning early after a warning.
2671 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2673 * mips-tdep.c (mips_find_saved_regs): Make static.
2674 (mips_frame_init_saved_regs): New function.
2675 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2676 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2677 (mips_find_saved_regs): Delete declaration.
2679 2002-08-08 Grace Sainsbury <graces@redhat.com>
2681 * remote.c (remote_wait, remote_async_wait): Change
2682 thread_num from int to ULONGEST.
2683 (unpack_varlen_hex): Change result parameter from
2684 int * to ULONGEST *.
2686 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2688 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2689 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2691 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2693 2002-08-08 Andrew Cagney <cagney@redhat.com>
2695 * gcore.c (override_derive_stack_segment): Delete variable.
2696 (preempt_derive_stack_segment): Delete function.
2697 (derive_stack_segment): Delete function.
2698 (default_derive_stack_segment): Renamed to derive_stack_segment.
2699 (override_derive_heap_segment): Delete variable.
2700 (preempt_derive_heap_segment): Delete function.
2701 (derive_heap_segment): Delete function.
2702 (default_derive_heap_segment): Rename to derive_heap_segment.
2704 2002-08-06 Michael Snyder <msnyder@redhat.com>
2706 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2707 * mips-tdep.c (mips_EABI_use_struct_convention,
2708 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2709 New functions. (mips_use_struct_convention): Delete.
2710 (mips_gdbarch_init): set use_gdbarch_convention.
2712 2002-08-06 Michael Snyder <msnyder@redhat.com>
2714 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2715 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2716 mips_o32_reg_struct_has_addr): New functions.
2717 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2719 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2721 * regcache.c (pseudo_register): Delete function.
2722 (fetch_register): Delete function.
2723 (store_register): Delete function.
2724 (regcache_raw_read, legacy_read_register_gen): Use
2725 target_fetch_registers instead of fetch_register.
2726 (legacy_write_register_gen, regcache_raw_write): Use
2727 target_store_register instead of store_register.
2728 (write_register_bytes): Ditto.
2730 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2731 (STORE_PSEUDO_REGISTER): Delete.
2732 * gdbarch.h, gdbarch.c: Regenerate.
2734 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2736 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2737 write dump file binary.
2739 2002-08-05 Michael Snyder <msnyder@redhat.com>
2741 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2742 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2743 (mips_gdbarch_init): Set N32 target to be mips64.
2745 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2747 * frame.c (find_saved_register): Break out of loop once saved
2748 register address is found. Don't mention sparc in loop comment
2751 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2753 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2754 mips_default_saved_regsize to 8.
2756 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2758 * gcore.c: Do not include <sys/procfs.h>.
2759 * Makefile.in (gcore.o): Update dependencies.
2761 2002-08-06 Andrew Cagney <cagney@redhat.com>
2763 * configure.tgt: Make arc-*-* obsolete.
2764 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2765 * MAINTAINERS: Make arc-elf obsolete.
2766 * arc-tdep.c: Make file obsolete.
2767 * config/arc/arc.mt: Ditto.
2768 * config/arc/tm-arc.h: Ditto.
2770 2002-08-05 Theodore A. Roth <troth@verinet.com>
2772 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2774 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2776 * mcore-tdep.c (mcore_gdbarch_init): Use
2777 generic_unwind_get_saved_register instead of
2778 generic_get_saved_register.
2779 * v850-tdep.c (v850_gdbarch_init): Ditto.
2780 * frv-tdep.c (frv_gdbarch_init): Ditto.
2781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2782 * s390-tdep.c (s390_gdbarch_init): Ditto.
2783 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2784 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2785 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2787 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2789 * objfiles.h: Add missing #include "symfile.h"
2791 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2793 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2795 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2796 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2799 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2801 * NEWS: Cleanup and nitpick.
2803 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2805 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2807 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2809 * Makefile.in (gdbtk-bp.o): Update dependencies.
2810 (gdbtk-register.o): Ditto.
2811 (gdbtk-varobj.o): Ditto.
2813 2002-08-03 Andrew Cagney <cagney@redhat.com>
2815 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2816 m68hc11_fetch_pseudo_register.
2817 (m68hc11_pseudo_register_write): Replace
2818 m68hc11_store_pseudo_register.
2819 (m68hc11_gdbarch_init): Update.
2821 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2823 * gdbarch.sh: Include "gdb_string.h".
2824 * gdbarch.c: Regenerate.
2826 * regcache.c: Include "gdb_string.h".
2827 * ax-general.c: Ditto.
2829 * std-regs.c: Ditto.
2830 * fbsd-proc.c: Ditto.
2833 * Makefile.in (regcache.o): Update dependencies.
2834 (thread.o, gdbarch.o): Ditto.
2835 (ax-general.o, gdbarch.o): Ditto.
2836 (varobj.o, std-regs.o): Ditto.
2837 (fbsd-proc.o): Specify dependencies.
2839 2002-08-02 Andrew Cagney <cagney@redhat.com>
2841 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2843 (regcache_cooked_write): Ditto.
2845 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2847 * regcache.c (regcache_cooked_read): New function.
2848 (regcache_cooked_write): New function.
2849 (read_register_gen): Rewrite using regcache_cooked_read.
2850 (write_register_gen): Rewrite using regcache_cooked_write.
2852 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2855 2002-08-02 Andrew Cagney <cagney@redhat.com>
2857 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2858 Replace the architecture methods register_read and register_write.
2859 * gdbarch.h, gdbarch.c: Regenerate.
2860 * regcache.c (init_regcache_descr): Update.
2861 (read_register_gen): Update.
2862 (write_register_gen): Update.
2863 (supply_register): Update comment.
2865 * sh-tdep.c (sh_gdbarch_init): Update.
2866 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2867 `regcache' and `gdbarch' parameters. Make `buffer' a void
2868 pointer. Update code.
2869 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2870 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2871 void pointer. Update code.
2872 (sh64_register_write): Delete.
2873 (sh4_register_read): Delete.
2874 (sh64_register_read): Delete.
2875 (sh4_register_write): Delete.
2876 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2877 void pointer, `to' parameter a void pointer.
2878 (sh_sh64_register_convert_to_raw): Ditto.
2880 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2882 * mips-tdep.c (mips_register_virtual_type): Use architecture
2883 invariant return values.
2885 2002-08-01 Andrew Cagney <cagney@redhat.com>
2887 * linux-proc.c: Include "gdb_string.h".
2888 * Makefile.in (linux-proc.o): Update dependency list.
2890 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2892 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2895 2002-08-01 Grace Sainsbury <graces@redhat.com>
2897 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2898 to_insert_watchpoint, to_remove_watchpoint,
2899 to_stopped_by_watchpoint, to_stopped_data_address,
2900 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2901 target vecctor. Define their corresponding macros so they call
2904 * target.c: Add default and debug versions of for
2905 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2906 to_insert_watchpoint, to_remove_watchpoint,
2907 to_stopped_by_watchpoint, to_stopped_data_address,
2908 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2910 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2912 * mips-tdep.c (mips_register_virtual_type): New function.
2913 (mips_gdbarch_init): Register mips_register_virtual_type()
2914 with gdbarch machinery.
2915 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2916 this file instead of tm-bigmips.h.
2917 (MIPS_REGSIZE): Delete this macro.
2918 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2919 multiarch version in mips-tdep.c will be found.
2921 2002-08-01 Andrew Cagney <cagney@redhat.com>
2923 * NEWS: Menion that CHILL has been made obsolete.
2925 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2926 * stabsread.c (read_range_type): Ditto.
2927 * gdbtypes.h: Ditto.
2928 * language.c (binop_type_check): Ditto.
2929 (binop_result_type): Ditto.
2930 (integral_type): Ditto.
2931 (character_type): Ditto.
2932 (string_type): Ditto.
2933 (boolean_type): Ditto.
2934 (structured_type): Ditto.
2935 (lang_bool_type): Ditto.
2936 (binop_type_check): Ditto.
2937 * language.h (_LANG_chill): Ditto.
2938 * dwarfread.c (set_cu_language): Ditto.
2939 * dwarfread.c (CHILL_PRODUCER): Ditto.
2940 * dwarfread.c (handle_producer): Ditto.
2941 * expression.h (enum exp_opcode): Ditto.
2942 * eval.c: Ditto for comments.
2943 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2944 * expprint.c (print_subexp): Ditto.
2945 (print_subexp): Ditto.
2946 * valops.c (value_cast): Ditto.
2947 (search_struct_field): Ditto.
2948 * value.h (COERCE_VARYING_ARRAY): Ditto.
2949 * symfile.c (init_filename_language_table): Ditto.
2950 (add_psymbol_with_dem_name_to_list): Ditto.
2951 * valarith.c (value_binop): Ditto.
2953 * valops.c (value_slice): Ditto.
2954 * symtab.h (union language_specific): Ditto.
2955 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2956 (SYMBOL_DEMANGLED_NAME): Ditto.
2957 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2958 * defs.h (enum language): Ditto.
2959 * symtab.c (got_symtab): Ditto.
2960 * utils.c (fprintf_symbol_filtered): Ditto.
2962 * ch-typeprint.c: Make file obsolete.
2963 * ch-valprint.c: Make file obsolete.
2964 * ch-lang.h: Make file obsolete.
2965 * ch-exp.c: Make file obsolete.
2966 * ch-lang.c: Make file obsolete.
2968 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2970 (TARGET_FLAGS_TO_PASS): Ditto.
2971 (CHILLFLAGS): Obsolete.
2973 (CHILL_FOR_TARGET): Obsolete.
2974 (CHILL_LIB): Obsolete.
2975 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2977 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2978 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2980 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2983 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2985 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2986 This does not change anything at the moment, but will be helpful
2987 later when full Ada support is integrated.
2989 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2991 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2994 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2996 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2997 and save it in a local variable. Use variable in later test.
2999 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3001 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3002 test. (Thanks to Daniel Jacobowitz.)
3004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3006 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3007 (mips_abi_strings): Add "n64".
3008 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3010 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3012 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3013 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3015 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3017 * utils.c (host_pointer_to_address, address_to_host_pointer):
3018 Use gdb_assert() instead of explicit call to internal_error().
3020 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3022 * Makefile.in (rs6000-nat.o): Update dependencies.
3024 From Nicholas Duffek:
3025 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3026 (aix-thread.o): New rule.
3027 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3028 * config/powerpc/aix432.mh: New file.
3030 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3032 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3033 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3034 (fetch_core_registers, ppc_linux_supply_gregset)
3035 (ppc_linux_supply_fpregset): New functions.
3036 (ppc_linux_regset_core_fns): New.
3037 (_initialize_ppc_linux_tdep): Call add_core_fns.
3038 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3039 and ppc_linux_supply_gregset.
3040 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3041 (supply_fpregset): Call ppc_linux_supply_fpregset.
3042 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3044 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3046 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3048 * symtab.c (lookup_symbol): Demangle before lowercasing.
3050 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3052 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3054 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3055 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3056 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3057 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3059 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3060 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3061 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3062 (avr-tdep.o, mon960-rom.o): Ditto.
3063 (aout_stabs_gnu_h): Define.
3064 (symtab_h): Remove $(gdb_obstack_h).
3066 2002-07-30 Jim Blandy <jimb@redhat.com>
3068 Patch from David Carlton <carlton@math.stanford.edu>:
3069 * gdbinit.in: Move the `dir' commands that add GDB's own source
3070 directory to the search path to the end, so that the `gdb' source
3071 directory will be searched first.
3073 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3075 * gdb_obstack.h: New file.
3076 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3077 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3078 * objfiles.h: Include "gdb_obstack.h".
3079 * Makefile.in (gdb_obstack_h): Define.
3080 (symtab_h): Add $(gdb_obstack_h).
3081 (objfiles_h): Add $(gdb_obstack_h).
3083 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3084 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3085 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3086 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3087 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3088 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3089 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3090 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3092 * Makefile.in (bcache.o): Update dependencies.
3093 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3094 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3095 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3096 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3097 (stabsread.o, symfile.o, symmisc.o): Ditto.
3098 (symtab.o, typeprint.o, macroexp.o): Ditto.
3099 (macrotab.o, mdebugread.o): Ditto.
3100 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3101 (coff_ecoff_h, aout_aout64_h): Define.
3102 (aout_stabs_gnu_h, libaout_h): Define.
3104 2002-07-29 Andrew Cagney <cagney@redhat.com>
3106 * regcache.c (struct regcache_descr): Rename nr_registers to
3107 nr_cooked_registers. Revise comments describing the structure
3109 (init_regcache_descr): Update.
3110 (init_legacy_regcache_descr): Update.
3111 (read_register_gen, write_register_gen): When a cooked register in
3112 the raw register range, directly access the value from the raw
3115 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3117 * z8k-tdep.c: Do not include "obstack.h".
3118 * h8300-tdep.c, h8500-tdep.c: Ditto.
3119 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3120 * valprint.c, v850-tdep.c: Ditto.
3121 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3122 * mn10200-tdep.c: Ditto.
3124 * Makefile.in (z8k-tdep.o): Update dependencies.
3125 (m68hc11-tdep.o, valprint.o): Ditto.
3126 (v850-tdep.o, d10v-tdep.o): Ditto.
3127 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3128 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3129 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3130 (sh_opc_h, gdb_sim_sh_h): Define.
3131 (elf_sh_h, elf_bfd_h): Define.
3132 (opcode_m68hc11_h): Define.
3133 (OPCODES_SRC, OPCODES_DIR): define.
3134 (OPCODES): Use $(OPCODES_DIR).
3135 (gdb_sim_d10v_h): Rename sim_d10v_h.
3136 (gdb_sim_arm_h): Rename sim_arm_h.
3138 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3140 * utils.c (host_pointer_to_address, address_to_host_pointer):
3141 Change internal_error() message to indicate function responsible
3144 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3146 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3147 calls to local_hex_string_custom().
3149 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3151 * irix5-nat.c: Move IRIX shared library support from here...
3152 * solib-irix.c: ...to here. Revised substantially to work with
3153 generic solib framework.
3155 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3156 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3157 * mips-irix-tdep.c: New file.
3159 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3160 (mips-irix-tdep.o, solib-irix.o): New rules.
3161 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3163 * config/mips/irix6.mt (TDEPFILES): Likewise.
3164 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3166 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3168 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3169 disabled (via ``#if 0'') includes.
3171 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3173 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3174 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3175 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3176 Add support for the fpscr register.
3177 * rs6000-nat.c (regmap, fetch_inferior_registers)
3178 (store_inferior_registers, fetch_core_registers): Likewise.
3180 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3182 * rs6000-nat.c (language.h): Include.
3183 (special_regs): Delete this array.
3184 (regmap): New function.
3185 (fetch_register, store_register): Use regmap() to map gdb
3186 register numbers to ptrace register numbers. Also, use
3187 outputs from regmap() to make decisions regarding type of
3188 ptrace() call to make. In particular, don't compare against
3189 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3190 (fetch_inferior_registers, store_inferior_registers): Where
3191 possible, obtain register numbers from tdep struct. Don't
3192 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3193 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3194 (LAST_UISA_SP_REGNUM): Delete.
3196 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3198 * rs6000-nat.c (ppc-tdep.h): Include.
3199 (fetch_registers, store_register, fetch_core_registers): Don't
3200 access registers[] directly. Instead, use supply_register() or
3201 regcache_collect() as appropriate.
3202 (find_toc_address): Format hex address with local_hex_string().
3204 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3206 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3209 2002-07-24 Tom Tromey <tromey@redhat.com>
3211 * jv-exp.y: Marked all strings with _().
3212 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3214 (MethodInvocation, CastExpression, parse_number, yyerror,
3215 java_type_from_name, push_expression_name, yylex): Typo fixes.
3217 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3219 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3220 (tee_file_flush, tee_file_write, tee_file_fputs)
3221 (tee_file_isatty): New.
3222 * ui-file.h (tee_file_new): Add prototype.
3224 2002-07-24 Aidan Skinner <aidan@velvet.net>
3226 * ada-lang.c: Change k&r style function definitions to prototyped
3228 * ada-typeprint.c: Change k&r style function definitions to prototyped
3230 * ada-valprint.c: Change k&r style function definitions to prototyped
3233 2002-07-24 Andrew Cagney <cagney@redhat.com>
3235 * README: Remove reference to remote-bug.
3236 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3238 (m88k-nat.o): Delete rule.
3239 (m88k-tdep.o): Delete rule.
3240 (remote-bug.o): Delete rule.
3241 * MAINTAINERS: Mark as obsolete.
3242 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3243 * m88k-tdep.c: Make file obsolete.
3244 * config/m88k/m88k.mh: Ditto.
3245 * config/m88k/delta88v4.mh: Ditto.
3246 * config/m88k/delta88v4.mt: Ditto.
3247 * config/m88k/delta88.mt: Ditto.
3248 * config/m88k/delta88.mh: Ditto.
3249 * remote-bug.c: Ditto.
3250 * config/m88k/tm-delta88.h: Ditto.
3251 * config/m88k/nm-delta88v4.h: Ditto.
3252 * config/m88k/xm-delta88.h: Ditto.
3253 * config/m88k/xm-dgux.h: Ditto.
3254 * config/m88k/tm-m88k.h: Ditto.
3255 * config/m88k/nm-m88k.h: Ditto.
3256 * config/m88k/tm-delta88v4.h: Ditto.
3257 * m88k-nat.c: Ditto.
3258 * cxux-nat.c: Ditto.
3259 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3260 and m88*-*-* obsolete.
3261 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3264 2002-07-24 Andrew Cagney <cagney@redhat.com>
3266 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3267 constant. Same for local pointer variables.
3268 (extract_signed_integer): Ditto.
3269 * defs.h (extract_unsigned_integer): Update.
3270 (extract_signed_integer): Update.
3272 2002-07-24 Andrew Cagney <cagney@redhat.com>
3274 * regcache.c (regcache_raw_write): Change buf parameter to a
3275 constant void pointer.
3276 (regcache_raw_read): Change buf parameter to a void pointer.
3277 (legacy_write_register_gen): Change myaddr parameter a constant
3279 (supply_register): Change val parameter to a const void pointer.
3280 * regcache.h (regcache_raw_write): Update declaration.
3281 (regcache_raw_read): Update declaration.
3282 (supply_register): Update declaration.
3284 2002-07-24 Tom Tromey <tromey@redhat.com>
3286 * defs.h (gdb_readline_wrapper): Declare.
3287 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3288 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3289 * top.c (gdb_readline_wrapper): New function.
3290 (command_line_input): Use it.
3292 2002-07-24 Andrew Cagney <cagney@redhat.com>
3294 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3295 regcache_read and regcache_write.
3296 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3297 * regcache.c: Update.
3298 * sh-tdep.c (sh64_push_arguments): Update comment.
3299 (sh_pseudo_register_read): Update.
3300 (sh_pseudo_register_write): Update.
3301 (sh4_register_read): Update.
3302 (sh4_register_write): Update.
3303 (sh64_pseudo_register_read): Update.
3304 (sh64_pseudo_register_write): Update.
3305 (sh64_register_read): Update.
3306 (sh64_register_write): Update.
3307 * i386-tdep.c (i386_extract_return_value): Update.
3308 (i386_extract_struct_value_address): Update.
3309 (i386_extract_return_value): Update.
3310 * blockframe.c (generic_read_register_dummy): Update.
3311 (generic_call_dummy_register_unwind): Update
3312 * infrun.c (write_inferior_status_register): Update.
3314 2002-07-23 Jim Blandy <jimb@redhat.com>
3316 * parser-defs.h (expression_context_pc): Make this extern.
3317 (Thanks to Michael Snyder.)
3319 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3321 GDB 5.2.1 released from 5.2 branch.
3322 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3323 * README: Update to mention 5.2.1.
3325 2002-07-23 Mark Salter <msalter@redhat.com>
3327 * remote.c (remote_read_bytes): Fix check for error.
3329 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3331 * aix-thread.c (language.h): Include.
3332 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3333 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3334 Print newlines at end of debug messages.
3335 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3336 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3338 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3340 * aix-thread.c (ppc-tdep.h): Include.
3341 (special_register_p): New function.
3342 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3343 (store_regs_user_thread): Use register number information from
3344 gdbarch_tdep struct instead of hardcoded offsets relative to
3345 FIRST_UISA_SP_REGNUM.
3346 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3347 special_register_p() instead of using FPLAST_REGNUM and
3348 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3349 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3350 will be MQ's register number.
3352 2002-07-22 Michael Snyder <msnyder@redhat.com>
3354 * aix-thread.c (ops): Rename to aix_thread_ops.
3355 (base_ops): Rename to base_target.
3356 (ops_attach): Rename to aix_thread_attach.
3357 (ops_detach): Rename to aix_thread_detach.
3358 (ops_resume): Rename to aix_thread_detach.
3359 (ops_wait): Rename to aix_thread_wait.
3360 (ops_kill): Rename to aix_thread_kill.
3361 (init_ops): Rename to init_aix_thread_ops.
3362 (ops_fetch_register): Rename to aix_thread_fetch_register.
3363 (ops_store_register): Rename to aix_thread_store_register.
3364 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3365 (ops_thread_alive): Rename to aix_thread_thread_alive.
3366 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3367 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3368 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3369 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3370 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3371 (store_regs_lib): Rename to store_regs_user_thread.
3372 (store_regs_kern): Rename to store_regs_kernel_thread.
3374 2002-07-22 Michael Snyder <msnyder@redhat.com>
3376 * aix-thread.c (ops_prepare_to_store): Eliminate.
3377 (init_ops): Don't initialize ops.prepare_to_store.
3378 (store_regs_kern): Pre-fetch register buffers from child,
3379 because some registers may not be in the cache. Copy
3380 regs from register cache only if they are cached.
3381 (store_regs_lib): Copy regs from register cache only
3383 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3384 fill_gprs64): Ditto.
3386 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3388 * aix-thread.c (gdb_assert.h): Include.
3389 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3390 register sizes (from register cache) match size of buffer holding
3392 (fill_sprs32): Change parameter types to match those in the ptrace()
3394 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3395 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3397 2002-07-22 Michael Snyder <msnyder@redhat.com>
3399 * aix-thread.c (supply_sprs64): Cosmetic change.
3400 (supply_sprs32): Cosmetic change.
3401 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3402 (fill_sprs64): Use regcache_collect instead of read_register.
3403 (store_regs_lib): Use regcache_collect instead of
3404 read_register. Use fill_sprs32 instead of fill_sprs64,
3405 if debugging a 32-bit architecture.
3406 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3407 out of the register cache, instead of passing a pointer into
3408 the register cache directly to ptrace. Use regcache_collect
3409 insteaad of read_register.
3410 (ops_prepare_to_store): Use target_read_registers instead
3411 of read_register_bytes.
3413 2002-07-20 Aidan Skinner <aidan@velvet.net>
3415 * MAINTAINERS: Add self under write after approval.
3417 2002-07-20 Aidan Skinner <aidan@velvet.net>
3419 * ada-tasks.c: Change k&r style function definitions to prototyped
3422 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3424 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3425 * x86-64-tdep.c: Include "objfiles.h".
3426 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3427 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3429 2002-07-17 Michal Ludvig <michal@suse.cz>
3431 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3432 (update_context): Initialise cfa variable.
3434 2002-07-17 Michael Snyder <msnyder@redhat.com>
3436 * aix-thread.c: Shorten some long lines.
3437 Bring comments into line with code spec.
3439 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3441 * infrun.c: Re-indent using gdb_indent.sh.
3443 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3445 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3446 Leave the indentation temporarily untouched, to minimize the diffs.
3448 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3450 * stabsread.c: Make os9k sections of the code obsolete,
3452 * stabsread.h: Make os9k sections of the code obsolete.
3454 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3456 * linux-low.c (regsets_store_inferior_registers): Add free()
3457 at the end of a loop to prevent memory leak.
3458 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3459 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3460 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3462 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3464 2002-07-17 Jim Blandy <jimb@redhat.com>
3466 * macrocmd.c (info_macro_command): Remove newline from error
3469 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3471 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3472 (sh_gdbarch_init): Use it for sh-dsp.
3474 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3476 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3477 64-bit DWARF2 format.
3479 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3481 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3482 <sys/proc.h> when not available.
3484 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3486 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3487 * stabsread.c: Make os9k sections of the code obsolete.
3488 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3489 * config/i386/i386os9k.mt: Make file obsolete.
3490 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3491 (COMMON_OBS): Remove os9kread.o
3492 (SFILES): Remove os9kread.c.
3493 (os9kread.o, remote-os9k.o): Make target obsolete.
3494 * remote-os9k.c: Make file obsolete.
3495 * os9kread.c: Make file obsolete.
3498 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3500 * NEWS: Mention that the FR30 has been made obsolete.
3501 * fr30-tdep.c: Make file obsolete.
3502 * config/fr30/tm-fr30.h: Ditto.
3503 * config/fr30/fr30.mt: Ditto.
3504 * configure.tgt: Make fr30-*-elf obsolete.
3505 * MAINTAINERS: Make fr30-elf obsolete.
3507 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3509 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3510 found is not inside a section.
3512 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3514 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3516 (pdc_realloc): Use xrealloc() instead of realloc().
3518 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3520 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3521 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3522 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3525 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3527 * aix-thread.c (ptrace_check): Eliminate goto.
3528 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3531 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3533 * aix-thread.c (gdbcmd.h): Include.
3534 (DEBUG, DBG, DBG2, dbg): Eliminate.
3535 (debug_aix_thread): New static global.
3536 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3537 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3538 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3539 invocations to DBG and DBG2 macros to test against
3540 ``debug_aix_thread'' and call fprintf_unfiltered().
3541 (_initialize_aix_thread): Add new command "set debug aix-thread".
3543 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3545 From Gerhard Tonn <TON@de.ibm.com>:
3546 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3547 instead of supply_register.
3549 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3551 * dwarf2cfi.c: Include "gdb_assert.h".
3552 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3554 (update_context): Do not use __func__. Add missing ``break''.
3555 (update_context): Do not use __func__.
3557 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3559 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3560 and its setting. Set gdbarch instruction printing functions
3561 directly. For non-rs6000 case use new function
3562 gdb_print_insn_powerpc.
3563 (gdb_print_insn_powerpc): New function.
3565 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3567 * NEWS: Mention that the d30v has been marked obsolete.
3568 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3569 * configure.tgt: Mark d30v-*-* as obsolete.
3570 * d30v-tdep.c: Mark file as obsolete.
3571 * config/d30v/d30v.mt: Ditto.
3572 * config/d30v/tm-d30v.h: Ditto.
3574 2002-07-13 Aidan Skinner <aidan@velvet.net>
3576 * ada-tasks.c (add_task_entry): replace calls to
3577 malloc() with xmalloc
3578 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3580 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3581 ada_finish_decode_line_1, all_sals_for_line
3582 ada_breakpoint_rewrite): replace calls to free() with xfree()
3584 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3586 From Nicholas Duffek (with minor changes by Martin Hunt,
3587 Louis Hamilton, and Kevin Buettner):
3588 * aix-thread.c: New file.
3590 2002-07-12 Petr Sorfa <petrs@caldera.com>
3592 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3593 complaint for invalid attribute class or form.
3594 (read_func_scope): DW_AT_frame_base
3595 better handling of DW_AT_block*.
3596 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3597 better handling of DW_AT_block*.
3598 (read_common_block): DW_AT_location
3599 better handling of DW_AT_block*.
3600 (read_partial_die): DW_AT_location better handling
3602 (new_symbol): DW_AT_external better handling of
3603 DW_AT_block*. Proper initialization of variable
3605 (attr_form_is_block): New function that returns true
3606 if the attribute's form is of DW_FORM_block*.
3608 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3610 * valops.c (find_method_list): Remove comment about
3611 removed STATIC_MEMFUNCP argument.
3612 (value_find_oload_method_list): Likewise.
3614 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3616 From Nicholas Duffek:
3617 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3618 target_new_objfile_hook.
3620 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3622 From Nicholas Duffek:
3623 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3626 2002-07-12 Andrew Cagney <cagney@redhat.com>
3628 * MAINTAINERS: Mention --enable-sim-build-warnings.
3629 (m68hc11-elf): Disable sim build warnings.
3630 (m32r-elf): Mark as broken obsolete candidate.
3631 (x86_64-linux-gnu): Mark as buildable with -Werror.
3632 (arm-elf): Change -w to ``,'' which enables warnings but not
3635 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3637 * bcache.h: Update copyright.
3638 (struct bstring, struct bcache): Move definition to "bcache.c".
3639 Replaced by opaque declaration.
3640 (bcache_xfree): Replace free_bcache.
3641 (bcache_xmalloc, bcache_memory_used): Declare.
3643 * bcache.c: Update copyright.
3644 (struct bstring, struct bcache): Moved to here from "bcache.h".
3646 (bcache_xmalloc, bcache_memory_used): New functions.
3647 (bcache_xfree): Replace function free_bcache.
3649 * Makefile.in (objfiles.o): Add $(bcache_h).
3650 (objfiles_h): Remove $(bcache_h).
3651 (symfile.o): Add $(bcache_h).
3653 * symmisc.c: Update copyright.
3654 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3655 (print_objfile_statistics): Use bcache_memory_used.
3657 * symfile.c: Include "bcache.h".
3658 (reread_symbols): Use bcache_xfree.
3659 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3660 (add_psymbol_to_list): Pass psymbol_cache by value.
3661 (add_psymbol_with_dem_name_to_list): Ditto.
3663 * objfiles.h: Update copyright.
3664 (struct bcache): Declare opaque. Do not include "bcache.h".
3665 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3667 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3669 * objfiles.c: Include "bcache.h". Update copyright.
3670 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3672 (free_objfile): Use bcache_xfree.
3674 2002-07-11 Grace Sainsbury <graces@redhat.com>
3676 * monitor.c (monitor_fetch_register): Make name a constant.
3677 (monitor_store_register): Same.
3679 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3681 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3682 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3683 (finish_block) For non-function blocks, hash the symbol table. For
3684 function blocks, mark the symbol table as unhashed.
3685 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3686 (msymbol_hash_iw): Likewise.
3687 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3689 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3690 (lookup_minimal_symbol): Likewise for both.
3691 * symtab.h (struct block): Add `hashtable' flag. Comment the
3693 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3694 (ALL_BLOCK_SYMBOLS): Update.
3695 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3696 (struct symbol): Add `hash_next' pointer.
3697 * symtab.c (lookup_block_symbol): Search using the hash table when
3699 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3700 (search_symbols, find_addr_symbol): Likewise.
3702 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3703 (read_dst_symtab): Likewise.
3704 * jv-lang.c (get_java_class_symtab): Likewise.
3705 * mdebugread.c: Include "gdb_assert.h".
3706 (shrink_block): Assert that the block being modified is not hashed.
3707 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3708 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3710 (dump_symtab): Recognize hashed blocks.
3711 * printcmd.c (print_frame_args): Assert that function blocks do not
3712 have hashed symbol tables.
3713 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3714 (fill_in_ada_prototype, debug_print_block): Likewise.
3715 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3717 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3719 * stack.c (print_frame): Use result of frame_address_in_block()
3720 instead of fi->pc when evaluating symbols.
3721 (backtrace_command_1): Ditto.
3723 2002-07-11 Andrew Cagney <cagney@redhat.com>
3725 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3728 * arm-tdep.c (arm_register_name): Make return type constant.
3730 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3732 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3734 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3735 * s390-tdep.c (s390_fp_regnum): Ditto.
3736 (s390_read_fp): Ditto.
3737 (s390_pop_frame): Ditto.
3738 (_initialize_s390_tdep): Ditto.
3739 * remote.c (get_remote_state): Ditto.
3740 * procfs.c (mappingflags): Ditto.
3741 * memattr.c (_initialize_mem): Ditto.
3742 * mcore-tdep.c (mcore_pop_frame): Ditto.
3743 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3744 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3745 * language.c (set_case_str): Ditto.
3746 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3747 * frv-tdep.c (new_variant): Ditto.
3748 (frv_stopped_data_address): Ditto.
3749 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3750 (context_alloc): Ditto.
3751 (frame_state_alloc): Ditto.
3752 (unwind_tmp_obstack_init): Ditto.
3753 (unwind_tmp_obstack_free): Ditto.
3754 (cfi_read_fp): Ditto.
3755 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3756 (cris_pop_frame): Ditto.
3757 * c-lang.c (scanning_macro_expansion): Ditto.
3758 (finished_macro_expansion): Ditto.
3759 (c_preprocess_and_parse): Ditto.
3760 * gdbarch.sh: Ditto.
3761 * gdbarch.h, gdbarch.c: Regenerate.
3762 * config/mn10200/tm-mn10200.h: Adjust indentation.
3763 * target.c: Adjust indentation.
3764 * symtab.h: Adjust indentation.
3765 * stabsread.h: Adjust indentation.
3766 * remote-es.c: Adjust indentation.
3767 * os9kread.c: Adjust indentation.
3769 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3771 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3772 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3774 2002-07-10 Grace Sainsbury <graces@redhat.com>
3776 * NEWS: Mention m68k, mcore multi-arching.
3777 * MAINTAINERS: Change status of m68k, mcore to reflect
3780 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3782 * valops.c (find_overload_match): Free oload_syms.
3784 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3786 Define HAVE_SYS_PROC_H if sys/proc.h exists
3787 * configure.in: Add check for sys/proc.h
3788 * config.in: Regenerate.
3789 * configure: Regenerate.
3791 2002-07-09 Grace Sainsbury <graces@redhat.com>
3793 * config/m68k/tm-m68k.h: Remove macros wrapped in
3794 #if !GDB_MULTI_ARCH.
3796 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3798 * config.in, configure: Regenerate.
3800 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3802 * dwarf2cfi.c: Include "gcore.h".
3803 (execute_stack_op): Fix implementation of the
3804 DW_OP_deref and DW_OP_deref_size operators by letting do their
3805 lookup in the target.
3807 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3809 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3810 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3813 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3815 Fix PR gdb/595, gdb/602
3816 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3817 Don't call value_cast, just read the vtable pointer; update comments
3820 2002-07-05 Grace Sainsbury <graces@redhat.com>
3822 * config/mcore/tm-mcore.h: Remove file.
3823 * config/mcore/mcore.mt: Remove definition of TM_FILE
3824 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3826 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3828 * i386bsd-tdep.c: Include "gdb_string.h".
3830 2002-07-04 Grace Sainsbury <graces@redhat.com>
3832 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3833 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3835 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3836 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3837 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3838 (RETVAL_REGNUM): Move macros from tm-mcore.h
3839 (mcore_reg_struct_has_addr): New function.
3840 (mcore_gdbarch_init): Added initializations for the macros removed
3843 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3845 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3846 traditonal string branding within the ELF header.
3848 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3850 * symtab.c (remove_params): New function.
3851 (make_symbol_overload_list): Use it instead of cplus_demangle.
3852 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3854 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3856 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3858 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3860 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3861 and tdep->sigtramp_end.
3862 * i386obsd-nat.c: New file.
3863 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3865 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3866 Don't call get_current_frame().
3868 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3870 * i386-nat.c (child_post_startup_inferior): New function
3871 calling i386_cleanup_dregs if
3872 I386_USE_GENERIC_WATCHPOINTS is defined.
3873 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3874 conditional to acknowledge that i386-nat.c has its
3875 own child_post_startup_inferior function.
3877 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3879 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3880 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3881 instead of MAX_REGISTER_RAW_SIZE.
3882 (i386_extract_return_value, i386_extract_struct_value_address):
3883 Convert to use regcache.
3884 (i386_gdbarch_init): Set max_register_raw_size and
3885 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3886 Set extract_return_value and extract_struct_value_address instead
3887 of their deprecated variants.
3889 Convert i386 target to generic dummy frames.
3890 * i386-tdep.c: Include "symfile.h".
3891 (i386_frameless_signal_p): Consider a function to be frameless if
3892 the pc points at the first instruction of the function.
3893 (i386_frame_chain): Handle (generic) call dummies.
3894 (i386_frame_saved_pc): Likewise.
3895 (i386_frame_init_saved_regs): Remove code dealing with call
3896 dummies on the stack.
3897 (i386_push_dummy_frame): Removed.
3898 (i386_call_dummy_words): Removed.
3899 (i386_fix_call_dummy): Removed.
3900 (i386_push_return_address): New function.
3901 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3902 parameter, and don't call get_current_frame.
3903 (i386_pop_frame): New function.
3904 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3905 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3906 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3907 call_dummy_length to 0, set call_dummy_words to NULL, set
3908 sizeof_call_dummy_words to 0, set fix_call_dummy to
3909 generic_fix_call_dummy, set pc_in_call_dummy to
3910 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3911 generic_push_dummy_frame, set push_return_address to
3912 i386_push_return_address and set frame_chain_valid to
3913 generic_file_frame_chain_valid.
3915 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3917 * gdbarch.sh (struct regcache): Add opaque declaration.
3918 (EXTRACT_RETURN_VALUE): New architecture method.
3919 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3920 * gdbarch.h, gdbarch.c: Regenerate.
3921 * arch-utils.c (legacy_extract_return_value): New function.
3922 * arch-utils.h (legacy_extract_return_value): Declare.
3923 * values.c (value_being_returned): Re-enable code handling
3924 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3925 deprecated_grub_regcache_for_registers call to block handling
3926 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3927 (EXTRACT_RETURN_VALUE): Do not define.
3929 2002-07-03 Grace Sainsbury <graces@redhat.com>
3931 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3932 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3933 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3934 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3935 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3936 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3937 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3938 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3939 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3940 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3941 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3942 argument so the function fits the prototype in the architecture
3944 (mcore_pop_frame): Remove argument so the function fits the
3945 prototype. Use get_current_frame instead of the argument.
3946 (mcore_push_arguments): Change type of struct_return so the
3947 function can be used in the architecture vector.
3948 (mcore_store_struct_return): Add.
3949 (mcore_frame_init_saved_regs): Add.
3950 (mcore_gdbarch_init): Add function calls to replace the macros
3951 removed from tm-mcore.h
3953 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3955 * infcmd.c (print_return_value): Remove compatibility code calling
3956 deprecated_grub_regcache_for_registers.
3958 * values.c: Include "regcache.h".
3959 (value_being_returned): Update. Use
3960 deprecated_grub_regcache_for_registers to extract the register
3962 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3963 ``struct regcache''.
3964 * Makefile.in (values.o): Add dependency on $(regcache_h).
3966 * inferior.h (run_stack_dummy): Change type of second parameter to
3967 a ``struct regcache''.
3968 * valops.c (hand_function_call): Change type of retbuf to ``struct
3969 regcache''. Allocate using regcache_xmalloc, clean using
3970 make_cleanup_regcache_xfree.
3971 * infcmd.c (run_stack_dummy): Update. Use
3972 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3974 * regcache.c (do_regcache_xfree): New function.
3975 (make_cleanup_regcache_xfree): New function.
3976 * regcache.h (make_cleanup_regcache_xfree): Declare.
3978 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3980 * event-top.c (command_line_handler): Don't read past
3981 beginning of buffer.
3983 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3985 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3987 (varobj_create): Store frame_id for root.
3988 (varobj_gen_name): Use xasprintf.
3989 (varobj_update): Save and restore frame using get_frame_id() and
3991 (create_child): Use xasprintf.
3992 (new_root_variable): Initialize frame_id.
3993 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3994 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3995 to prevent memory leak.
3997 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3999 * valops.c (hand_function_call): Move declaration of retbuf to
4000 start of function, allocate using malloc, add a cleanup but before
4001 the inf_status cleanup, cleanup the buffer. Rename local variable
4002 old_chain to inf_status_cleanup.
4004 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4006 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4008 * cli/cli-decode.c (cmd_func_p): New function.
4009 (cmd_func): New function.
4011 * command.h: Add cmd_func() and cmd_func_p().
4013 2002-07-03 Grace Sainsbury <graces@redhat.com>
4015 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4016 (REGISTER_SIZE): Remove.
4017 (MAX_REGISTER_RAW_SIZE): Remove.
4018 (REGISTER_VIRTUAL_TYPE): Remove.
4019 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4020 (REGISTER_NAME): Remove.
4021 (USE_GENERIC_DUMMY_FRAMES): Remove.
4022 (CALL_DUMMY): Remove.
4023 (CALL_DUMMY_START_OFFSET): Remove.
4024 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4025 (CALL_DUMMY_LOCATION): Remove.
4026 (FIX_CALL_DUMMY): Remove.
4027 (CALL_DUMMY_ADDRESS): Remove.
4028 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4029 (SAVE_DUMMY_FRAME_TOS): Remove.
4030 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4031 (mcore_register_virtual_type): New function.
4032 (mcore_register_byte): New function.
4033 (mcore_register_size): New function.
4034 (mcore_register_name): New function.
4035 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4036 macros removed from tm-mcore.h.
4037 (mcore_dump_tdep): Add.
4038 (_initialize_mcore_tdep): Add gdbarch_register call.
4040 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4042 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4043 frameless_look_for_prologue, such that we actually call this
4046 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4048 * frame.h (frame_address_in_block): New function.
4050 * blockframe.c (frame_address_in_block): New function extracted
4051 from get_frame_block().
4052 (get_frame_block): Use frame_address_in_block().
4053 (block_innermost_frame): Use frame_address_in_block() to match
4054 the frame pc address against the block boundaries rather than
4055 the frame pc directly. This prevents a failure when a frame pc
4056 is actually a return-address pointing immediately after the end
4059 2002-07-02 Grace Sainsbury <graces@redhat.com>
4061 * MAINTAINERS: Add self under write after approval.
4063 2002-07-02 Grace Sainsbury <graces@redhat.com>
4065 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4066 used in architecture vector. The default is
4067 m68k_local_breakpoint_from_pc.
4068 (m68k_local_breakpoint_from_pc): Add.
4069 (enum): Add register numbers from tm-m68k.h.
4070 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4072 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4073 GDB_MULTI_ARCH_PARTIAL.
4074 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4075 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4077 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4078 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4079 to enum in m68k-tdep.c
4081 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4083 * solib-osf.c (open_map): Compute the list of shared libraries
4084 loaded by the inferior, rather than the list of libraries loaded
4085 by GDB itself. Otherwise, GDB ends up reading the symbols from
4086 the wrong shared libraries...
4088 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4090 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4091 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4093 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4095 (FRAMELESS_SIGNAL): Remove function.
4096 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4097 i386_linux_saved_pc_after_call): Removed.
4098 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4099 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4100 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4102 * i386-tdep.c (i386_frameless_signal_p): New function.
4103 (i386_frame_chain): Deal with frameless signals.
4104 (i386_sigtramp_saved_sp): New function.
4105 (i386_frame_saved_pc): Deal with frameless signals.
4106 (i386_saved_pc_after_call): Make sure the correct value is
4107 returned just after entry into a sigtramp.
4108 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4109 i386fbsd4_sc_sp_offset): New variables.
4110 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4111 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4112 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4113 similiar to what we already did for sc_pc_offset.
4114 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4117 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4119 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4121 * config/i386/tm-x86-64linux.h: New.
4122 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4124 * config/i386/nm-x86-64.h: Rename to ...
4125 * config/i386/nm-x86-64linux.h: ... this one.
4126 * config/i386/x86-64linux.mh: Reflect the above change.
4128 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4130 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4131 with sigcontext_addr. Add sc_sp_offset.
4132 (i386bsd_sigtramp_saved_pc): Remove prototype.
4133 (i386bsd_sicontext_addr): Add prototype.
4134 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4135 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4136 (i386_svr4_sigtramp_saved_pc): Removed.
4137 (i386_svr4_sigcontext_addr): New function.
4138 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4139 Initialize tdep->sigcontext_addr instead. Initialize
4140 tdep->sc_pc_offset and tdep->sc_sp_offset.
4141 (i386_gdbarch_init): Likewise.
4142 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4144 (i386bsd_sigtramp_saved_pc): Remove function.
4145 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4146 Initialize tdep->sigcontext_addr instead. Initialize
4148 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4149 of tdep->sigtramp_saved_pc.
4150 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4151 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4154 * i386-tdep.c (i386_frameless_function_invocation,
4155 i386_frame_num_args, i386_frame_init_saved_regs,
4156 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4157 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4158 i386_extract_return_value, i386_store_return_value,
4159 i386_extract_struct_value_address, i386_register_virtual_type,
4160 i386_register_convertible, i386_register_convert_to_virtual,
4161 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4162 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4165 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4167 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4169 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4170 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4171 this macro. Include "value.h".
4173 2002-06-30 Aidan Skinner <aidan@velvet.net>
4175 * ada-exp.tab.c: remove as it's a generated file
4176 * ada-lex.c: remove as it's a generated file
4178 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4180 * config/i386/tm-i386.h (struct frame_info, struct
4181 frame_saved_regs, struct value, struct type): Remove forward
4184 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4185 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4186 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4187 (FILL_FPXREGSET): Define.
4189 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4191 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4192 i[3456]86-*-netbsd* case.
4193 * config/i386/tm-obsd.h: Removed.
4194 * config/i386/obsd.mt: Removed.
4195 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4197 (MH_CFLAGS): Add -DYYDEBUG=0.
4199 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4200 i386nbsd_sc_pc_offset on OpenBSD too.
4202 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4203 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4204 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4206 * i386bsd-tdep.c: Include "arch-utils.h".
4207 (i386bsd_aout_in_solib_call_trampoline): New function.
4208 (i386bsd_init_abi): Set in_solib_call_trampoline to
4209 i386bsd_aout_in_solib_call_trampoline.
4210 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4211 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4213 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4215 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4216 (struct obstack, struct bcache): Add opaque declarations.
4217 * Makefile.in (macrotab_h): Update
4219 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4221 * blockframe.c (generic_find_dummy_frame): Change return type to
4222 ``struct regcache''.
4223 (struct dummy_frame): Replace field ``registers'' with regcache, a
4224 struct regcache object.
4225 (generic_find_dummy_frame): Update.
4226 (generic_push_dummy_frame): Update. Use regcache_xfree,
4227 regcache_xmalloc and regcache_cpy.
4228 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4230 (deprecated_generic_find_dummy_frame): Update.
4231 (generic_read_register_dummy): Update. Use
4232 regcache_read_as_address.
4233 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4234 (generic_get_saved_register): Update. Use regcache_read.
4236 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4238 * Makefile.in (objfiles_h): Add $(bcache_h).
4239 * objfiles.h: Include "bcache.h".
4241 * Makefile.in (symtab_h): Remove $(bcache_h).
4242 * symtab.h: Do not include "bcache.h".
4244 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4246 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4247 generic_func_frame_chain_valid.
4249 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4251 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4252 * config/i386/tm-fbsd.h: Likewise.
4254 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4256 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4257 generic_unwind_get_saved_register.
4259 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4261 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4262 * regcache.c (supply_register): Add missing argument to
4263 register_buffer call.
4265 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4267 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4268 Solaris /bin/grep does not not like it. From Peter Schauer.
4270 2002-06-26 Tom Tromey <tromey@redhat.com>
4272 * command.h (add_setshow_cmd): Declare.
4273 (add_setshow_cmd_full): Declare.
4274 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4275 returns void. Use add_setshow_cmd_full.
4276 (add_setshow_cmd_full): New function.
4277 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4278 (add_setshow_boolean_cmd): Likewise.
4280 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4282 * config/vax/tm-vax.h: Protect from multiple inclusion.
4283 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4284 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4285 * config/vax/tm-vaxbsd.h: ...here. New file.
4286 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4288 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4290 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4291 (BELIEVE_PCC_PROMOTION): Remove.
4292 (AP_REGNUM): Move to...
4293 * config/vax/nm-vax.h: ...here.
4294 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4295 (vax_breakpoint_from_pc): New function.
4296 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4297 and gdbarch_believe_pcc_promotion.
4299 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4301 * Makefile.in (vax_tdep_h): Define.
4302 (vax-tdep.o): Use $(vax_tdep_h).
4303 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4304 (vax_dump_tdep): New function.
4305 (_initialize_vax_tdep): Register vax_dump_tdep.
4306 * vax-tdep.h: Include osabi.h.
4307 (struct gdbarch_tdep): New.
4309 2002-06-26 Andrew Cagney <cagney@redhat.com>
4311 * frame.h (deprecated_generic_find_dummy_frame): Rename
4312 generic_find_dummy_frame.
4313 * blockframe.c (generic_find_dummy_frame): Make static.
4314 (deprecated_generic_find_dummy_frame): New function.
4315 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4316 generic_find_dummy_frame with deprecated_find_dummy_frame.
4317 (sh64_nofp_frame_init_saved_regs): Ditto.
4318 (sh_fp_frame_init_saved_regs): Ditto.
4319 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4320 (s390_frame_chain): Ditto.
4321 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4323 2002-06-26 Grace Sainsbury <graces@redhat.com>
4325 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4326 gdbarch vector are at the top.
4328 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4329 (FRAME_ARGS_ADDRESS): Remove.
4330 (FRAME_LOCALS_ADDRESS): Remove.
4331 (FRAME_NUM_ARGS): Remove.
4332 (FRAME_ARGS_SKIP): Remove.
4333 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4334 (m68k_gdbarch_init): Add gdbarch initializations for macros
4335 undefined in tm-m68k.h
4337 2002-06-26 Grace Sainsbury <graces@redhat.com>
4339 * monitor.h: Add the function regname to monitor_ops
4340 structure. This way NUM_REGS does not have to be a constant.
4341 * monitor.c (monitor_fetch_register): Added support for regname
4342 function. The function is called if the array regnames is NULL.
4343 (monitor_store_register): Same.
4344 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4346 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4347 cpu32bug_cmds.regname to point to new function.
4348 * abug-rom.c (abug_regname): Same as above.
4349 (init_abug_cmds): Same.
4350 * dbug-rom.c (dbug_regname): Same as above.
4351 (init_dbug_cmds): Same.
4352 * remote-est.c (est_regname): Same.
4353 (init_est_cmds): Same.
4354 * rom68k-rom.c (rom68k_regname): Same.
4355 (init_rom68k_cmds): Same.
4357 2002-06-25 Tom Tromey <tromey@redhat.com>
4359 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4361 2002-06-25 Andrew Cagney <cagney@redhat.com>
4363 * infrun.c (stop_registers): Change variable's type to ``struct
4365 (xmalloc_inferior_status): Delete function.
4366 (free_inferior_status): Delete function.
4367 (normal_stop): Use regcache_cpy.
4368 (struct inferior_status): Change type of fields ``stop_registers''
4369 and ``registers'' to ``struct regcache''.
4370 (write_inferior_status_register): Use regcache_write.
4371 (save_inferior_status): Instead of calling
4372 xmalloc_inferior_status, allocate the inf_status buffer directly.
4373 Use regcache_dup_no_passthrough and regcache_dup to save the
4375 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4376 Replace the stop_registers regcache instead of overriding it. Use
4377 regcache_xfree. Instead of calling free_inferior_status, xfree
4378 the buffer directly.
4379 (discard_inferior_status): Use regcache_xfree. Instead of calling
4380 free_inferior_status, xfree the buffer directly.
4381 (build_infrun): Use regcache_xmalloc.
4382 (_initialize_infrun): Delete redundant call to build_infrun.
4384 * Makefile.in (infcmd.o): Add $(regcache_h).
4386 * infcmd.c: Include "regcache.h".
4387 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4388 obtain the address of `stop_registers' register buffer.
4389 (print_return_value): Ditto.
4391 * inferior.h (struct regcache): Add opaque declaration.
4392 (stop_registers): Change variable's declared type to ``struct
4395 2002-06-24 Tom Tromey <tromey@redhat.com>
4397 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4398 * target.c (initialize_targets): Fixed typo in
4399 trust-readonly-sections `show' documentation.
4401 * main.c: Marked all strings with _().
4403 2002-06-24 Don Howard <dhoward@redhat.com>
4405 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4406 that means max CORE_ADDR+1.
4407 (lookup_mem_region): Ditto.
4408 (mem_info_command): Ditto.
4410 2002-06-24 Grace Sainsbury <graces@redhat.com>
4412 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4413 (REGISTER_BYTES_OK): Remove.
4414 (REGISTER_BYTES): Remove.
4415 (STORE_STRUCT_RETURN): Remove.
4416 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4417 (STORE_RETURN_VALUE): Remove.
4418 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4419 (FRAME_CHAIN): Remove.
4420 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4421 (FRAME_SAVED_PC): Remove.
4422 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4423 (m68k_store_struct_return): Add.
4424 (m68k_deprecated_extract_return_value): Add.
4425 (m68k_deprecated_extract_struct_value_address): Add.
4426 (m68k_store_return_value): Add.
4427 (m68k_frame_chain): Add.
4428 (m68k_frameless_function_invocation): Add.
4429 (m68k_frame_saved_pc): Add.
4430 (m68k_gdbarch_init): added set_gdbarch calls for new
4431 functions and deleted macros.
4433 2002-06-23 Tom Tromey <tromey@redhat.com>
4435 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4436 (ALLDEPFILES): Likewise.
4437 (udiheaders): Removed.
4438 (udip2soc.o): Likewise.
4439 (udi2go32.o): Likewise.
4441 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4443 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4445 * infrun.c (_initialize_infrun): Delete unnecessary call to
4448 * regcache.h: Update comments describing the regcache_cpy family
4450 (regcache_save, regcache_restore): Delete declaration.
4451 (regcache_save_no_passthrough): Delete declaration.
4452 (regcache_restore_no_passthrough): Delete declaration.
4453 * regcache.c (regcache_save): Delete function.
4454 (regcache_save_no_passthrough): Delete function.
4455 (regcache_restore): Delete function.
4456 (regcache_restore_no_passthrough): Delete function.
4458 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4460 * config/m68k/tm-m68k.h: Fix typo.
4461 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4462 (m68k_frame_init_saved_regs): Declare.
4464 2002-06-21 Jim Blandy <jimb@redhat.com>
4466 Remove some vestiges of Harris 88k support.
4467 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4468 register numbering quirk.
4469 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4470 odd symbols occurring in Harris 88k ELF targets.
4472 2002-06-21 Tom Tromey <tromey@redhat.com>
4474 * gdb_locale.h: New file.
4475 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4476 (defs_h): Added gdb_locale.h.
4477 * configure, config.in: Rebuilt.
4478 * configure.in (PACKAGE): Define.
4479 * defs.h: Include gdb_locale.h.
4480 * main.c (captured_main): Call setlocale, bindtextdomain,
4483 2002-06-21 Dave Brolley <brolley@redhat.com>
4485 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4486 * config/frv/frv.mt: New file.
4487 * config/frv/tm-frv.h: New file.
4488 * configure.tgt: Support frv-*-*.
4489 * Makefile.in (frv-tdep.o): New target.
4490 * frv-tdep.c: New file.
4491 * NEWS: Mention frv.
4493 2002-06-21 Dave Brolley <brolley@redhat.com>
4495 * MAINTAINERS: Add self to "Write After Approval" list.
4497 2002-06-21 Grace Sainsbury <graces@redhat.com>
4499 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4500 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4501 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4502 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4503 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4505 * m68k-tdep.c: Include arch-utils.h
4506 (m68k_register_raw_size): Add.
4507 (m68k_register_virtual_size): Add.
4508 (m68k_register_virtual_type): Add.
4509 (m68k_register_name): Add.
4510 (m68k_stack_align): Add.
4511 (m68k_register_byte): Add.
4512 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4515 2002-06-21 Grace Sainsbury <graces@redhat.com>
4517 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4518 m68k_find_saved_regs.
4519 (m68k_pop_frame): Removed saved_regs structure, and replaced
4520 references to it with frame->saved_regs.
4521 (m68k_gdbarch_init): Added function calls to initialize the
4523 (m68k_fix_call_dummy): Add.
4524 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4525 (CALL_DUMMY): Remove.
4526 (CALL_DUMMY_LENGTH): Remove.
4527 (CALL_DUMMY_START_OFFSET): Remove.
4528 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4529 (FIX_CALL_DUMMY): Remove.
4530 (PUSH_DUMMY_FRAME): Remove.
4531 (POP_FRAME): Remove.
4533 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4535 * parse.c (parse_fprintf): New function used to avoid calls to
4536 fprintf in bison parser generated debug code.
4537 * parser-defs.h: Declaration of new parse_fprintf function.
4538 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4539 Set YYDEBUG to 1 by default.
4540 Set YYFPRINTF as parse_fprintf.
4542 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4544 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4546 (pointer_encoding, enum ptr_encoding): New.
4547 (execute_cfa_program): Take care about pointer encoding.
4548 (dwarf2_build_frame_info): Only call parse_frame_info for
4549 .debug_frame and .eh_frame.
4550 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4551 fixed augmentation handling, added relative addressing,
4552 ignore duplicate FDEs. Added comments.
4553 * dwarf2cfi.c: Reindented.
4555 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4557 * event-top.c (command_handler): Don't use space_at_cmd_start
4558 unless there is sbrk() on the host. Assign time and space data
4559 to union fields of the appropriate length.
4561 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4563 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4564 x86_64_register_name. Return type changed to 'const char *'.
4565 (x86_64_register_name2nr): Rename to x86_64_register_number.
4566 (x86_64_gdbarch_init): Update to reflect the change.
4567 * x86-64-tdep.h: Ditto.
4568 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4569 (supply_fpregset): Ditto.
4571 2002-06-19 Andrew Cagney <cagney@redhat.com>
4573 * regcache.h: Update copyright.
4574 (struct regcache, struct gdbarch): Add opaque declarations.
4575 (current_regcache): Declare global variable.
4576 (regcache_read, regcache_write): Add gdbarch parameter.
4577 (regcache_save, regcache_save_no_passthrough)
4578 (regcache_restore, regcache_restore_no_passthrough)
4579 (regcache_dup, regcache_dup_no_passthrough)
4580 (regcache_cpy, regcache_cpy_no_passthrough)
4581 (deprecated_grub_regcache_for_registers)
4582 (deprecated_grub_regcache_for_register_valid)
4583 (regcache_valid_p): Add function declarations.
4585 * regcache.c: Update copyright.
4586 (regcache_descr_handle): New global variable.
4587 (struct regcache_descr): Define.
4588 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4589 (regcache_descr, xfree_regcache_descr): New functions.
4590 (struct regcache): Define.
4591 (regcache_xmalloc, regcache_xfree): New functions.
4592 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4593 (regcache_dup, regcache_dup_no_passthrough): New functions.
4594 (regcache_valid_p, regcache_read_as_address): New functions.
4595 (deprecated_grub_regcache_for_registers): New function.
4596 (deprecated_grub_regcache_for_register_valid): New function.
4597 (current_regcache): New global variable.
4598 (register_buffer): Add regcache parameter. Update calls.
4599 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4600 (read_register_gen, write_register_gen): Update register_buffer
4601 call. Test for legacy_p instead of gdbarch_register_read_p or
4602 gdbarch_register_write_p.
4603 (regcache_collect): Update register_buffer call.
4604 (build_regcache): Rewrite. Use deprecated grub functions.
4605 (regcache_save, regcache_save_no_passthrough): New functions.
4606 (regcache_restore, regcache_restore_no_passthrough): New
4608 (_initialize_regcache): Create the regcache_data_handle. Swap
4609 current_regcache global variable.
4611 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4612 parameter to regcache_read and regcache_write calls.
4613 (sh4_register_read): Ditto.
4614 (sh64_pseudo_register_read): Ditto.
4615 (sh64_register_read): Ditto.
4616 (sh_pseudo_register_write): Ditto.
4617 (sh4_register_write): Ditto.
4618 (sh64_pseudo_register_write): Ditto.
4619 (sh64_register_write): Ditto.
4621 * defs.h (XCALLOC): Define.
4623 2002-06-19 Grace Sainsbury <graces@redhat.com>
4625 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4626 * m68k-tdep.c (m68k_gdbarch_init): Added.
4627 (m68k_dump_tdep): Added.
4629 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4631 * ada-lang.c (fill_in_ada_prototype): Update comment.
4633 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4635 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4637 (mips_abi_string, mips_abi_strings): New.
4638 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4639 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4640 tdep->mips_abi_string. Honor mips_abi_string. Default to
4641 O32 if no ABI is found.
4642 (mips_dump_tdep): Use mips_abi_strings.
4643 (mips_abi_update): New function.
4644 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4645 ``set mips abi'' and ``show mips abi''. Check the size of
4648 2002-06-19 Andrew Cagney <cagney@redhat.com>
4650 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4653 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4655 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4656 current frame using only the first stack size adjustment. All
4657 subsequent size adjustments are not considered to be part of
4658 the "static" part of the current frame.
4659 Compute the address of the saved registers relative to the
4660 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4661 in use in this frame.
4663 2002-06-18 Don Howard <dhoward@redhat.com>
4665 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4666 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4667 suggesting this solution.
4669 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4671 * config/romp/xm-rtbsd.h: Delete file.
4672 * config/romp/rtbsd.mh: Delete file.
4674 2002-06-18 Keith Seitz <keiths@redhat.com>
4676 * breakpoint.c (condition_command): Post breakpoint_modify
4677 when a condition is added to an existing breakpoint.
4678 (commands_command): Likewise for commands.
4679 (set_ignore_count): Likewise for ignore counts.
4680 If no tty, do not simply return, still need to send event
4682 (ignore_command): Only print a newline if the command came
4684 Don't call breakpoints_changed, since this is now properly
4685 handled by set_ignore_count.
4687 2002-06-18 Andrew Cagney <cagney@redhat.com>
4689 * MAINTAINERS: Note that cris-elf target can be compiled with
4691 * cris-tdep.c (cris_register_name): Make return type constant.
4692 (cris_breakpoint_from_pc): Ditto.
4694 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4696 * frame.h (struct frame_info): Change type of context to
4699 2002-06-17 Andrew Cagney <cagney@redhat.com>
4701 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4703 * gdbarch.h, gdbarch.c: Regenerate.
4704 * config/mips/tm-mips.h (mips_register_name): Update.
4705 * i386-tdep.h (i386_register_name): Update.
4706 * mips-tdep.c (mips_register_name): Update
4707 * alpha-tdep.c (alpha_register_name): Update.
4708 * arch-utils.c (legacy_register_name): Update.
4709 * arch-utils.h (legacy_register_name): Update.
4710 * avr-tdep.c (avr_register_name): Update.
4711 * ia64-tdep.c (ia64_register_name): Update.
4712 * i386-tdep.c (i386_register_name): Update.
4713 * sparc-tdep.c (sparc32_register_name): Update.
4714 (sparc64_register_name): Update.
4715 (sparclite_register_name): Update.
4716 (sparclet_register_name): Update.
4717 * sh-tdep.c (sh_generic_register_name): Update.
4718 (sh_sh_register_name): Update.
4719 (sh_sh3_register_name): Update.
4720 (sh_sh3e_register_name): Update.
4721 (sh_sh_dsp_register_name): Update.
4722 (sh_sh3_dsp_register_name): Update.
4723 (sh_sh4_register_name): Update.
4724 (sh_sh64_register_name): Update.
4725 * s390-tdep.c (s390_register_name): Update.
4726 * rs6000-tdep.c (rs6000_register_name): Update.
4727 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4728 (ns32k_register_name_32382): Update.
4729 * d10v-tdep.c (d10v_ts2_register_name): Update.
4730 (d10v_ts3_register_name): Update.
4731 * xstormy16-tdep.c (xstormy16_register_name): Update.
4732 * vax-tdep.c (vax_register_name): Update.
4733 * v850-tdep.c (v850_register_name): Update.
4734 * m68hc11-tdep.c (m68hc11_register_name): Update.
4735 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4736 (am33_register_name): Update.
4738 2002-06-17 Grace Sainsbury <graces@redhat.com>
4740 * m68k-tdep.c: Reindented.
4742 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4744 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4745 list of predefined types.
4747 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4749 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4750 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4751 REGISTER_CONVERT_TO_RAW): Remove defines.
4752 (i386_register_virtual_type, i386_register_convertible,
4753 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4755 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4756 macros mentioned above.
4758 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4759 (i386lynx_saved_pc_after_call): Remove prototype.
4760 * i386ly-tdep.c: Include "i386-tdep.h".
4761 (i386lynx_saved_pc_after_call): Make static. Use
4762 read_memory_nobpt instead of read_memory. Use
4763 read_memory_unsigned_integer instead of read_memory_integer.
4764 (i386lynx_init_abi): New function.
4765 (i386lynx_coff_osabi_sniffer): New function.
4766 (_initialize_i386bsd_tdep): New function.
4768 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4769 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4770 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4771 (i386_fix_call_dummy): Remove prototype.
4772 * i386-tdep.c (i386_call_dummy_words): New variable.
4773 (i386_gdbarch_init): Adjust for removal of the
4774 macros mentioned above.
4776 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4778 * command.h (add_setshow_auto_boolean_cmd): Replace
4779 add_set_auto_boolean_cmd.
4780 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4781 add_set_auto_boolean_cmd.
4782 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4783 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4784 mask-address'' command.
4785 (show_mask_address): Add cmd parameter.
4786 * remote.c (add_packet_config_cmd): Update. Change type of
4787 set_func and show_func to cmd_sfunc_ftype.
4788 (_initialize_remote): Update `set remote Z-packet'
4789 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4790 (show_remote_protocol_e_packet_cmd): Ditto.
4791 (show_remote_protocol_E_packet_cmd): Ditto.
4792 (show_remote_protocol_P_packet_cmd): Ditto.
4793 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4794 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4795 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4796 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4797 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4798 (show_remote_protocol_Z_packet_cmd): Ditto.
4799 (show_remote_protocol_binary_download_cmd): Ditto.
4800 (show_remote_cmd): Pass NULL to all of above.
4802 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4804 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4805 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4806 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4807 POP_FRAME): Remove defines.
4808 (i386_push_arguments, i386_store_struct_return,
4809 i386_extract_return_value, i386_store_return_value,
4810 i386_extract_struct_value_address, i386_push_dummy_frame,
4811 i386_pop_frame): Renove prototypes.
4812 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4813 macros mentioned above.
4815 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4817 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4818 add_set_boolean_cmd.
4819 (add_setshow_cmd): New function.
4820 * command.h (add_setshow_boolean_cmd): Replace
4821 add_set_boolean_cmd.
4822 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4823 and ``set rdiromatzero''.
4824 * maint.c (_initialize_maint_cmds): Update commented out code.
4825 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4826 * target.c (initialize_targets): Update `set
4827 trust-readonly-sections'.
4828 * remote.c (_initialize_remote): Update `set remotebreak'.
4830 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4832 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4833 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4834 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4835 fit into multi-arch framework.
4836 (i386_breakpoint_from_pc): New function.
4837 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4840 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4841 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4842 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4843 (i386_frameless_function_invocation, i386_frame_num_args,
4844 i386_frame_init_saved_regs): Remove prototypes.
4845 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4846 macros mentioned above.
4848 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4850 * cli/cli-decode.c (set_cmd_cfunc): Update.
4851 (set_cmd_sfunc): Update.
4852 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4853 (set_cmd_sfunc, set_cmd_cfunc): Update.
4854 * cli/cli-decode.h: Update.
4856 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4858 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4859 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4861 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4863 * defs.h (auto_boolean): Declare enum.
4864 * command.h (cmd_auto_boolean): Delete enum.
4865 * mips-tdep.c (mask_address_var): Update.
4866 (mips_mask_address_p): Update.
4867 (show_mask_address): Update.
4868 * remote.c (struct packet_config): Update.
4869 (update_packet_config): Update.
4870 (show_packet_config_cmd): Update.
4871 (packet_ok): Update.
4872 (add_packet_config_cmd): Update.
4873 (_initialize_remote):
4874 * command.h: Update.
4875 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4876 (do_setshow_command): Update.
4877 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4878 * cli/cli-decode.h: Update.
4880 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4882 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4883 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4884 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4885 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4886 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4887 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4889 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4890 list of DJGPP COFF targets.
4892 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4893 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4894 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4895 (FP0_REGNUM): Remove define.
4896 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4897 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4898 (i386_register_virtual_size): Remove protoype.
4899 * i386-tdep.c (i386_register_virtual_size): Removed.
4900 (i386_extract_return_value, i386_store_return_value): Use
4901 FP0_REGNUM instead of NUM_FREGS to determine whether the
4902 floating-point registers are available.
4903 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4904 Adjust for removal of macros mentioned above.
4906 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4908 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4910 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4912 (supply_gregset, fill_gregset): Remove use of register keyword and
4913 remove declaration for regmap. Use I386_NUM_GREGS instead of
4914 NUM_REGS and NUM_FREGS.
4915 (FPREGSET_FSAVE_OFFSET): Remove.
4916 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4917 NUM_FREGS to determine whether the floating-point registers are
4920 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4921 gnu_store_registers): Replace usage of NUM_GREGS with
4924 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4925 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4926 usage of NUM_GREGS with I386_NUM_GREGS.
4928 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4930 * i386bsd-nat.c: Include "i386-tdep.h".
4931 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4934 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4935 and associated comment. They no longer make any sense, since we
4936 don't use this file anymore on Linux.
4938 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4939 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4940 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4941 elements in these arrays.
4942 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4945 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4947 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4948 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4950 2002-06-14 Andrew Cagney <cagney@redhat.com>
4952 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4953 EXTRACT_RETURN_VALUE.
4954 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4955 EXTRACT_STRUCT_VALUE_ADDRESS.
4956 * gdbarch.h, gdbarch.c: Regenerate.
4958 * values.c (value_being_returned): Handle
4959 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4960 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4962 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4963 * arm-tdep.c (arm_gdbarch_init): Update.
4964 * avr-tdep.c (avr_gdbarch_init): Update.
4965 * cris-tdep.c (cris_gdbarch_init): Update.
4966 * d10v-tdep.c (d10v_gdbarch_init): Update.
4967 * ia64-tdep.c (ia64_gdbarch_init): Update.
4968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4970 * s390-tdep.c (s390_gdbarch_init): Update.
4971 * sh-tdep.c (sh_gdbarch_init): Update.
4972 * s390-tdep.c (s390_gdbarch_init): Update.
4973 * sparc-tdep.c (sparc_gdbarch_init): Update.
4974 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4975 * v850-tdep.c (v850_gdbarch_init): Update.
4976 * vax-tdep.c (vax_gdbarch_init): Update.
4977 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4980 * config/arc/tm-arc.h: Update.
4981 * config/d30v/tm-d30v.h: Update.
4982 * config/fr30/tm-fr30.h: Update.
4983 * config/h8300/tm-h8300.h: Update.
4984 * config/h8500/tm-h8500.h: Update.
4985 * config/i386/tm-i386.h: Update.
4986 * config/i386/tm-ptx.h: Update.
4987 * config/i386/tm-symmetry.h: Update.
4988 * config/i960/tm-i960.h: Update.
4989 * config/m32r/tm-m32r.h: Update.
4990 * config/m68k/tm-delta68.h: Update.
4991 * config/m68k/tm-linux.h: Update.
4992 * config/m68k/tm-m68k.h: Update.
4993 * config/m88k/tm-m88k.h: Update.
4994 * config/mcore/tm-mcore.h: Update.
4995 * config/mips/tm-mips.h: Update.
4996 * config/mn10200/tm-mn10200.h: Update.
4997 * config/pa/tm-hppa.h: Update.
4998 * config/pa/tm-hppa64.h: Update.
4999 * config/sparc/tm-sp64.h: Update.
5000 * config/sparc/tm-sparc.h: Update.
5001 * config/sparc/tm-sparclet.h: Update.
5002 * config/z8k/tm-z8k.h: Update.
5004 2002-06-14 Andrew Cagney <cagney@redhat.com>
5006 * Makefile.in (i386_linux_tdep_h): Define.
5007 (i386_tdep_h, i387_tdep_h): Define.
5008 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5009 $(i386_tdep_h) and $(i387_tdep_h).
5010 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5012 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5014 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5015 Already covered by the default.
5017 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5018 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5019 (i386_gdbarch_init): Initialize long_double_format and long_double
5022 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5023 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5025 * config/i386/i386sol2.mh: ... here.
5026 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5027 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5028 (SIGCONTEXT_PC_OFFSET): Remove define.
5029 (IN_SIGTRAMP): Remove define.
5030 * i386-sol2-tdep.c: New file.
5032 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5033 * config/i386/tm-i386nw.h: Removed.
5035 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5036 USE_STRUCT_CONVENTION): Remove defines.
5037 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5038 (get_longjmp_target): Remove prototype.
5039 (IN_SIGTRAMP): Remove define.
5040 (i386bsd_in_sigtramp): Remove prototype.
5041 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5042 function. Update comment accordingly
5043 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5044 (FRAME_SAVED_PC): Remove define.
5045 (i386bsd_frame_saved_pc): Remove prototype.
5046 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5047 GET_LONGJMP_TARGET): Remove defines.
5048 (get_longjmp_target): Remove prototype.
5049 (IN_SIGTRAMP): Remove define.
5050 (i386bsd_in_sigtramp): Remove prototype.
5051 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5052 function. Update comment accordingly
5053 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5054 (FRAME_SAVED_PC): Remove define.
5055 (i386bsd_frame_saved_pc): Remove prototype.
5056 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5058 (USE_STRUCT_CONVENTION): Remove prototype.
5059 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5061 (_initialize_i386bsd_nat): Revise logic to determine some
5062 constants at compile time when compiling a native GDB. Warn if
5063 things don't match up with what we expect.
5064 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5066 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5067 to use date stored in `struct gdbarch_tdep'.
5068 (i386bsd_sigcontext_offset): Remove varaible.
5069 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5070 stored in `struct gdbarch_tdep'.
5071 (i386bsd_frame_saved_pc): Make static.
5072 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5073 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5074 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5075 i386fbsd4_sc_pc_offset): New variables.
5076 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5077 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5079 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5081 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5082 Modify the value of i386fbsd_sigtramp_start and
5083 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5084 i386fbsd_sigtramp_end.
5085 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5088 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5089 define to i386-linux-tdep.h.
5090 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5091 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5093 (i386_linux_register_name, i386_linux_register_byte,
5094 i386_linux_register_raw_size): Remove prototypes.
5095 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5096 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5097 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5098 TARGET_WRITE_PC): Remove defines.
5099 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5100 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5101 i386_linux_write_pc): Remove prototypes.
5102 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5103 (get_longjmp_target): Remove prototype.
5104 * i386-linux-tdep.h: New file.
5105 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5106 * i386-linux-tdep.c: Include "i386-tdep.h" and
5107 "i386-linux-tdep.h".
5108 (i386_linux_register_name, i386_linux_register_byte,
5109 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5110 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5112 (i386_linux_init_abi): New function.
5113 (_initialize_i386_linux_tdep): New function.
5115 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5116 (i386_saved_pc_after_call): Remove prototype.
5117 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5118 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5119 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5120 (i386_register_name, i386_stab_reg_to_regnum,
5121 i386_dwarf_reg_to_regnum): Remove prototypes.
5122 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5123 SIZEOF_SSE_REGS): Remove defines.
5124 (REGISTER_BYTES): Remove define.
5125 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5126 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5127 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5128 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5129 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5130 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5131 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5132 (get_longjmp_target): Remove prototype.
5133 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5134 (sigtramp_saved_pc): Remove define.
5135 (i386v4_sigtramp_saved_pc): Remove prototype.
5136 * config/i386/tm-go32.h (FRAME_CHAIN,
5137 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5138 (i386go32_frame_saved_pc): Remove prototype.
5139 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5140 (get_longjmp_target): Remove prototype.
5141 * i386-tdep.h: Include "osabi.h".
5142 (enum i386_abi): Removed.
5143 (enum struct_return): New enum.
5144 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5145 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5146 sc_pc_offset members.
5147 (i386_gdbarch_register_os_abi): Remove prototype.
5148 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5149 I386_SSE_NUM_REGS): New defines.
5150 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5151 I386_SSE_SIZEOF_REGS): New defines.
5152 (i386_register_name, i386_register_byte, i386_register_raw_size):
5154 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5155 (i386bsd_sigtramp_saved_pc): New prototype.
5156 * i386-tdep.c: Don't include "elf-bfd.h".
5157 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5158 i386_frame_chain, i386_saved_pc_after_call): Make static.
5159 (i386_frame_saved_pc): Rewrite to call architecture dependent
5160 function to deal with signal handlers. Make static.
5161 (i386go32_frame_saved_pc): Removed.
5162 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5164 (i386_get_longjmp_target): New function.
5165 (default_struct_convention, pcc_struct_convention,
5166 reg_struct_convention, valid_conventions, struct_convention): New
5168 (i386_use_struct_convention): New function.
5169 (i386v4_sigtramp_saved_pc): Renamed to
5170 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5171 (i386_pc_in_sigtramp): New function.
5172 (i386_abi_names): Removed.
5173 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5174 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5176 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5177 i386_gdbarch_register_os_abi): Removed.
5178 (struct i386_abi_handler): Removed.
5179 (i386_abi_handler_list): Removed.
5180 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5182 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5183 i386_nw_init_abi): New functions.
5184 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5185 Use set_gdbarch_xxx() calls instead of relying on macros for a
5187 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5188 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5189 Register the various architecture variants defined in this file.
5191 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5193 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5194 (struct main_type): Remove arg_types member. Update comments for
5196 (TYPE_ARG_TYPES): Remove.
5197 (TYPE_FN_FIELD_ARGS): Update.
5198 (smash_to_method_type): Update prototype.
5200 * c-typeprint.c (cp_type_print_method_args): Take method type
5201 instead of argument list. Use new argument layout. Simplify.
5202 (c_type_print_args): Use new argument layout. Simplify.
5203 (c_type_print_base): Update call to cp_type_print_method_args.
5204 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5205 argument; use die->type instead. Update call to
5206 smash_to_method_type.
5207 (read_structure_scope): Update call to dwarf2_add_member_fn.
5208 * gdbtypes.c (allocate_stub_method): Update comment.
5209 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5210 Use new argument layout.
5211 (check_stub_method): Use new argument layout. Don't count
5212 void as an argument.
5213 (print_arg_types): Update comments. Use new argument layout.
5214 (recursive_dump_type): Don't print arg_types member.
5215 * hpread.c (hpread_read_struct_type): Use new argument layout.
5216 (fixup_class_method_type): Likewise.
5217 (hpread_type_lookup): Likewise.
5218 * stabsread.c (read_type): Update calls to read_args and
5219 smash_to_method_type.
5220 (read_args): Use new argument layout. Simplify.
5221 * valops.c (typecmp): Use new argument layout. Update parameters
5222 and comments. Simplify.
5223 (hand_function_call): Use new argument layout.
5224 (search_struct_method): Update call to typecmp.
5225 (find_overload_match): Use new argument layout.
5227 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5229 * NEWS: Mention multithreaded debug support for gdbserver.
5231 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5233 * MAINTAINERS: Mention NEWS.
5235 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5237 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5238 (struct mips_objfile_private, compare_pdr_entries): New.
5239 (non_heuristic_proc_desc): Read the ".pdr" section if it
5242 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5244 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5245 (arm_debug): New static variable.
5246 (_initialize_arm_tdep): Add ``set debug arm'' command.
5248 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5250 * Makefile.in (sim_arm_h): Define.
5251 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5252 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5253 (arm_register_sim_regno): New function, map an internal REGNUM
5254 onto a simulator register number.
5255 (arm_gdbarch_init): Set register_sim_regno.
5257 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5259 * MAINTAINERS: Add self.
5261 2002-06-11 Jim Blandy <jimb@redhat.com>
5263 * source.c (source_info): Mention whether the symtab has
5264 information about preprocessor macros.
5266 Call the command `info macro', not `show macro'.
5267 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5269 (_initialize_macrocmd): Register `info_macro_command' in
5270 `infolist', not `showlist'.
5272 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5274 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5275 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5276 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5277 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5278 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5280 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5281 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5282 (_initialize_mips_tdep): Remove dead code.
5283 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5284 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5285 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5286 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5287 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5288 MIPS_LAST_FP_ARG_REGNUM): Remove.
5290 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5292 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5293 (unwind_tmp_obstack_free, parse_frame_info)
5294 (update_context, cfi_read_fp, cfi_write_fp)
5295 (cfi_frame_chain, cfi_init_extra_frame_info)
5296 (cfi_virtual_frame_pointer): Use the above function.
5297 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5299 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5301 * v850-tdep.c (v850_type_is_scalar): New function.
5302 (v850_use_struct_convention): Match current gcc implementation
5303 as close as possible.
5304 (v850_push_arguments): Fix stack_offset handling. Don't write
5305 struct_addr into register. This is done by v850_store_struct_return.
5306 (v850_extract_return_value): Care for structs.
5307 (v850_store_return_value): Ditto.
5308 (v850_store_struct_return): Actually write address.
5310 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5312 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5313 without debug information too.
5315 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5317 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5318 Make multi-arch pure.
5319 * gdbarch.h, gdbarch.c: Re-generate.
5320 * arm-tdep.c (arm_print_float_info): Update.
5321 * arch-utils.h (default_print_float_info): Update.
5322 * arch-utils.c (default_print_float_info): Update.
5323 * infcmd.c (float_info): Update call.
5325 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5327 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5328 the front of the initialize list.
5330 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5332 * infrun.c (struct inferior_status): Replace fields
5333 selected_frame_address and selected_level with field
5335 (save_inferior_status): Update. Use get_frame_id.
5336 (struct restore_selected_frame_args): Delete.
5337 (restore_selected_frame): Update. Use frame_find_by_id.
5338 (restore_inferior_status): Update.
5340 * breakpoint.h (struct breakpoint): Change type of
5341 watchpoint_frame to frame_id.
5342 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5343 call to get_current_frame.
5344 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5346 (watchpoint_check): Use frame_find_by_id.
5348 * frame.h (record_selected_frame): Delete declaration.
5349 * stack.c (record_selected_frame): Delete function.
5351 * frame.h (struct frame_id): Define.
5352 (get_frame_id): Declare.
5353 (frame_find_by_id): Declare.
5354 * frame.c (frame_find_by_id): New function.
5355 (get_frame_id): New function.
5357 2002-06-10 Andrey Volkov <avolkov@transas.com>
5359 * ser-e7kpc.c: Fix duplicated define and call of
5360 _initialize_ser_e7000pc
5362 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5364 * signals/signals.c (target_signal_from_host): Fix #ifdef
5366 (do_target_signal_to_host): Likewise.
5368 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5370 * mips-tdep.c (mips_find_abi_section): New function.
5371 (mips_gdbarch_init): Call it.
5373 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5375 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5376 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5377 after Andrew's 2002-06-08 gdbarch change.
5379 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5381 * i386-linux-nat.c (suppy_gregset): Don't supply
5382 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5384 (fill_gregset): Don't fetch it under the same circumstances.
5386 2002-06-09 Andrew Cagney <cagney@redhat.com>
5388 * Makefile.in (callback_h): Define.
5389 (remote_sim_h): Update path to remote-sim.h.
5390 (remote-rdp.o): Add $(callback_h).
5391 (remote-sim.o): Use $(callback_h).
5392 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5393 * remote-rdp.c: Include "gdb/callback.h".
5395 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5397 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5398 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5400 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5402 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5403 * rdi-share/serpardr.c: Ditto.
5404 * rdi-share/unixcomm.c: Ditto.
5405 * rdi-share/serdrv.c: Ditto.
5406 * rdi-share/hostchan.h: Ditto.
5407 * rdi-share/hostchan.c: Ditto.
5408 * rdi-share/host.h: Ditto.
5409 * rdi-share/devsw.c: Ditto.
5411 * objfiles.h: Change type of obj_private to void pointer.
5412 * pa64solib.c: Update copyright. Don't include "assert.h", use
5413 strcmp instead of STREQ, use LONGEST, do not use PTR
5414 * somsolib.c: Ditto.
5416 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5417 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5418 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5420 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5422 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5423 (default_get_saved_register): Delete function.
5424 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5425 generic_unwind_get_saved_register.
5426 * gdbarch.h, gdbarch.c: Re-generate.
5428 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5430 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5431 generic_func_frame_chain_valid.
5432 * gdbarch.h, gdbarch.c: Re-generate.
5433 * blockframe.c (generic_func_frame_chain_valid): Only check
5434 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5435 passing FP to PC_IN_CALL_DUMMY.
5438 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5440 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5441 (register_gdbarch_data): Initialize init_p.
5442 (gdbarch_data): Initialize data pointer using the init function.
5443 (init_gdbarch_data): Delete function.
5444 (gdbarch_update_p): Update.
5445 (initialize_non_multiarch): Update.
5446 (struct gdbarch): Add field initialized_p.
5447 * gdbarch.h, gdbarch.c: Re-generate.
5449 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5451 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5452 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5453 better do the things actually here.
5454 * x86-64-tdep.c (x86_64_register_name2nr): New.
5455 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5456 (x86_64_gdbarch_init): Respect the above change.
5457 * x86-64-tdep.h (x86_64_register_name2nr)
5458 (x86_64_register_nr2name): Add prototypes.
5459 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5461 2002-06-06 Michael Snyder <msnyder@redhat.com>
5463 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5464 Delete extra braces and re-indent.
5465 (d10v_store_return_value): Char return values
5466 must be shifted over by one byte in R0.
5467 (d10v_extract_return_value): Delete extra braces, re-indent.
5469 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5471 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5472 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5473 (d10v_integer_to_address): Rewrite.
5474 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5475 the d10v specific functions which take care of converting to the
5478 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5480 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5481 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5483 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5485 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5487 * config/tm-linux.h: Ditto.
5488 * config/alpha/tm-alphalinux.h: Ditto.
5489 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5490 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5491 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5492 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5493 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5494 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5495 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5496 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5497 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5498 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5499 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5500 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5501 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5502 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5503 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5504 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5505 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5506 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5507 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5508 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5509 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5510 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5511 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5512 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5513 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5514 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5515 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5516 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5517 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5518 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5519 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5520 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5521 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5522 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5523 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5524 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5525 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5527 2002-05-04 Aidan Skinner <aidan@velvet.net>
5529 * ada-exp.tab.c: New file
5530 * ada-exp.y: New file
5531 * ada-lang.c: New file
5532 * ada-lang.h: New file
5533 * ada-lex.c: New file
5534 * ada-lex.l: New file
5535 * ada-tasks.c: New file
5536 * ada-typeprint.c: New file
5537 * ada-valprint.c: New file
5539 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5541 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5542 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5544 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5546 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5547 insetead of ppc-linux-tdep.o.
5548 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5549 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5551 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5553 2002-05-07 Christian Groessler <chris@groessler.org>
5554 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5555 bit register contents for little endian hosts.
5557 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5559 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5562 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5564 * gdbarch.h: Regenerate.
5566 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5568 * MAINTAINERS: Add everyone to write-after-approval list.
5570 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5572 * stack.c (frame_info): Use frame_register_unwind instead of
5573 saved_regs. Mention when the SP is on the stack or in a register.
5575 * frame.h (frame_register_unwind_ftype): Define. Document.
5576 (struct frame_info): Add field register_unwind and
5577 register_unwind_cache.
5578 (frame_register_unwind): Declare.
5579 (generic_unwind_get_saved_register): Declare.
5581 * frame.c (frame_register_unwind): New function.
5582 (generic_unwind_get_saved_register): New function.
5584 * blockframe.c (generic_call_dummy_register_unwind): New function.
5585 (frame_saved_regs_register_unwind): New function.
5586 (set_unwind_by_pc): New function.
5587 (create_new_frame): New function.
5588 (get_prev_frame): New function.
5590 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5592 * a29k-share/: Delete directory.
5593 * remote-vx29k.c: Delete file.
5595 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5597 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5598 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5600 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5602 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5603 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5606 (sparcnbsd-tdep.o): New dependency lists.
5607 * NEWS: Note new UltraSPARC NetBSD native configuration.
5608 * configure.host (sparc64-*-netbsd*): New host.
5609 * configure.tgt (sparc-*-netbsdelf*)
5610 (sparc-*-netbsd*): Set gdb_target to nbsd.
5611 (sparc64-*-netbsd*): New target.
5612 * sparc64nbsd-nat.c: New file.
5613 * sparcnbsd-nat.c: New file.
5614 * sparcnbsd-tdep.c: New file.
5615 * sparcnbsd-tdep.h: New file.
5616 * config/sparc/nbsd.mt: New file.
5617 * config/sparc/nbsd64.mh: New file.
5618 * config/sparc/nbsd64.mt: New file.
5619 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5620 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5622 * config/sparc/nbsdaout.mt: Remove.
5623 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5624 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5626 * config/sparc/nbsdelf.mt: Remove.
5627 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5628 sparc-nat.c compatiblity defines.
5629 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5630 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5631 * config/sparc/tm-nbsd64.h: New file.
5632 * config/sparc/tm-nbsdaout.h: Remove.
5633 * config/sparc/xm-nbsd.h: Remove.
5635 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5637 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5638 * sparc-tdep.c: Include osabi.h.
5639 (gdbarch_tdep): Add osabi member.
5640 (_initialize_sparc_tdep): Use gdbarch_register.
5641 (sparc_gdbarch_init): Use generic OS ABI framework.
5642 (sparc_dump_tdep): New function.
5644 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5646 * corefile.c (do_captured_read_memory_integer): Return non-zero
5648 (safe_read_memory_integer): Copy result of memory read when
5649 status is non-zero. Also, add comments.
5651 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5653 * Makefile.in (ppc_tdep_h): Define.
5656 (rs6000-tdep.o): Use $(ppc_tdep_h).
5659 (ppcnbsd-tdep.o): New dependency lists.
5660 * ppc-tdep.h: Use generic OS ABI framework.
5661 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5662 (ppc_linux_init_abi): New functions.
5663 (ppc_sysv_abi_broken_use_struct_convention)
5664 (ppc_sysv_abi_use_struct_convention)
5665 (ppc_sysv_abi_push_arguments): Move to...
5666 * ppc-sysv-tdep.c: ...here.
5667 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5668 * rs6000-tdep.c (process_note_abi_tag_sections)
5669 (get_elfosabi): Remove.
5670 (rs6000_gdbarch_init): Use generic OS ABI framework.
5671 (rs6000_dump_tdep): New function.
5672 (_initialize_rs6000_tdep): Use gdbarch_register.
5673 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5674 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5675 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5676 of ppc-linux-tdep.o.
5677 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5678 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5679 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5680 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5681 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5682 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5684 2002-05-29 Jim Blandy <jimb@redhat.com>
5686 * macroscope.c (default_macro_scope): Put `void' in empty argument
5689 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5691 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5692 * arch-utils.c: Include "sim-regno.h".
5693 * gdbarch.sh: Don't include "sim-regno.h".
5694 * gdbarch.h, gdbarch.c: Regenerate.
5695 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5697 * arch-utils.h (legacy_register_sim_regno): To here.
5698 * remote-sim.c (legacy_register_sim_regno): Move function from
5700 * arch-utils.c (legacy_register_sim_regno): To here.
5702 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5704 * sim-regno.h: New file.
5705 * Makefile.in (sim_regno_h): Define.
5706 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5707 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5708 (legacy_register_sim_regno): New function.
5709 (one2one_register_sim_regno): New function.
5710 (gdbsim_fetch_register): Rewrite.
5711 (gdbsim_store_register): Only store a register when
5712 REGISTER_SIM_REGNO is valid.
5713 * d10v-tdep.c: Include "sim-regno.h".
5714 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5715 (d10v_ts3_register_sim_regno): Ditto.
5716 * gdbarch.sh: Include "sim-regno.h".
5717 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5719 * arch-utils.h (default_register_sim_regno): Delete declaration.
5720 * arch-utils.c (default_register_sim_regno): Delete function.
5722 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5724 * ppcnbsd-nat.c: Rewrite.
5725 * ppcnbsd-tdep.c: New file.
5726 * ppcnbsd-tdep.h: New file.
5727 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5728 solib.o, and solib-svr4.o.
5729 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5730 nbsd-tdep.o, and corelow.o.
5732 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5734 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5735 `tr' and `sed'. Mention that `broken' targets are not expected to
5738 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5740 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5741 Let PC point right after the prologue before looking up symbols.
5743 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5745 * i386-tdep.c (i386_register_virtual_type): Return
5746 builtin_type_vec128i for SSE registers.
5748 * gdbtypes.h (builtin_type_vec128i): Declare.
5750 * gdbtypes.c (build_builtin_type_vec128i): New function.
5751 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5752 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5753 (build_gdbtypes): Initialize new builtin vector types.
5754 (_initialize_gdbtypes): Register new vector types with gdbarch.
5756 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5758 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5759 since it has been multi-arch'd.
5760 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5761 Move Alpha and VAX multi-arch news entries to same section
5762 as other multi-arch news.
5764 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5766 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5767 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5768 static. Rename some register numbers to put them in ns32k-tdep
5770 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5771 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5773 (_initialize_ns32k_tdep): Use gdbarch_register.
5774 * ns32k-tdep.h: New file.
5775 * ns32knbsd-tdep.c: New file.
5776 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5777 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5778 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5779 REGISTER_BYTES, REGISTER_BYTE): Remove.
5780 * config/ns32k/tm-ns32k.h: New file.
5781 * config/ns32k/tm-umax.h: Remove.
5783 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5785 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5786 ns32k_store_struct_return, ns32k_extract_return_value,
5787 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5789 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5790 ns32k_saved_pc_after_call.
5791 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5792 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5793 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5794 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5795 ns32k_extract_struct_value_address.
5797 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5799 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5800 ns32k_fix_call_dummy): New.
5801 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5802 ns32k_call_dummy_words.
5803 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5804 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5805 CALL_DUMMY_NARGS): Remove.
5806 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5808 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5810 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5811 ns32k_frame_saved_pc, ns32k_frame_args_address,
5812 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5813 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5814 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5815 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5816 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5817 (BREAKPOINT): Remove..
5818 (FRAME_CHAIN): Define as ns32k_frame_chain.
5819 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5820 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5821 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5822 (FRAME_FIND_SAVED_REGS): Remove.
5823 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5824 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5825 (POP_FRAME): Define as ns32k_pop_frame.
5827 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5829 * ns32k-tdep.c (ns32k_register_byte_32082,
5830 ns32k_register_byte_32382, ns32k_register_raw_size,
5831 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5833 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5834 ns32k_register_byte_32382.
5835 * config/ns32k/tm-umax.h: Update copyright years.
5836 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5837 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5838 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5839 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5840 (ns32k_get_enter_addr): Fix prototype.
5842 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5844 * ns32k-tdep.c: Update copyright years.
5845 (ns32k_register_name_32082): New function.
5846 (ns32k_register_name_32382): Ditto.
5847 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5848 (REGISTER_NAME): Define as ns32k_register_name_32382.
5849 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5850 (REGISTER_NAME): Define as ns32k_register_name_32082.
5852 2002-05-24 Jim Blandy <jimb@redhat.com>
5854 * dwarf2read.c (free_line_header): Use xfree, not free.
5856 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5858 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5859 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5861 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5863 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5865 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5867 From Ross Alexander at NEC Europe:
5868 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5870 2002-05-23 Michael Snyder <msnyder@redhat.com>
5872 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5873 for input, rather than parse_and_eval_address.
5875 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5877 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5878 * Makefile.in (sim_d10v_h): Update definition.
5880 2002-05-24 Andrew Cagney <cagney@redhat.com>
5882 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5883 change `2002-05-22 Michael Snyder' below.
5884 (d10v_push_arguments): Ditto.
5885 (d10v_extract_return_value): Ditto.
5887 2002-05-23 Jim Blandy <jimb@redhat.com>
5889 * macrotab.c (check_for_redefinition): Don't complain if the new
5890 definition is the same as the previous one. Take more arguments
5891 to allow the comparison.
5892 (macro_define_object, macro_define_function): Pass more arguments
5893 to check_for_redefinition.
5895 2002-05-22 Michael Snyder <msnyder@redhat.com>
5897 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5898 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5899 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5900 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5901 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5902 Add a temp variable to save a call (and a memory read).
5903 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5904 if possible (so that PC_IN_CALL_DUMMY will work).
5906 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5908 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5910 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5912 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5914 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5915 (dwarf2_build_frame_info): Add offset to fde->initial_location
5916 so that frames of shared libraries are mapped correctly.
5917 (execute_stack_op): Change type of 'result' from ULONGEST to
5920 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5922 * config/alpha/tm-nbsd.h: Include solib.h.
5924 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5926 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5927 assumptions about the host's byte order.
5929 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5931 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5933 * alphanbsd-tdep.c: Include solib-svr4.h.
5934 * shnbsd-tdep.c: Ditto.
5936 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5938 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5939 nbsd-tdep.h to dependency list.
5940 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5941 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5942 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5943 nbsdaout.mh and nbsdelf.mh consistently.
5944 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5945 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5946 nbsdaout.mt and nbsdelf.mh consistently.
5947 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5948 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5949 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5950 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5951 a.out shared library stuff from here...
5952 * config/nm-nbsdaout.h: ...to here.
5953 * config/tm-nbsd.h: Remove.
5954 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5955 * config/arm/nbsd.mh: Remove.
5956 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5958 * config/arm/nbsdaout.mh: New file.
5959 * config/arm/nbsdelf.mh: New file.
5960 * config/arm/nm-nbsdaout.h: New file.
5961 * config/i386/nbsd.mh: Remove.
5962 * config/i386/nbsd.mt: Remove.
5963 * config/i386/nbsdaout.mh: New file.
5964 * config/i386/nbsdaout.mt: New file.
5965 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5966 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5967 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5968 i386_register_u_addr): Remove.
5969 * config/i386/nm-nbsdaout.h: New file.
5970 * config/i386/nm-nbsdelf.h: Remove.
5971 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5972 (USE_STRUCT_CONVENTION): Remove.
5973 * config/i386/tm-nbsdaout.h: New file.
5974 * config/i386/tm-nbsdelf.h: Remove.
5975 * config/m68k/nbsd.mh: Remove.
5976 * config/m68k/nbsd.mt: Remove.
5977 * config/m68k/nbsdaout.mh: New file.
5978 * config/m68k/nbsdaout.mt: New file.
5979 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5980 * config/m68k/nm-nbsdaout.h: New file.
5981 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5982 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5983 * config/ns32k/nbsd.mh: Remove.
5984 * config/ns32k/nbsd.mt: Remove.
5985 * config/ns32k/nbsdaout.mh: New file.
5986 * config/ns32k/nbsdaout.mt: New file.
5987 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5988 * config/ns32k/nm-nbsdaout.h: New file.
5989 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5990 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5991 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5992 (SVR4_SHARED_LIBS): Remove.
5993 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5994 * config/sparc/nbsd.mh: Remove.
5995 * config/sparc/nbsd.mt: Remove.
5996 * config/sparc/nbsdaout.mh: New file.
5997 * config/sparc/nbsdaout.mt: New file.
5998 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5999 * config/sparc/nbsdelf.mt: New file.
6000 * config/sparc/nm-nbsdaout.h: New file.
6001 * config/sparc/nm-nbsdelf.h: Remove.
6002 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6003 * config/sparc/tm-nbsdaout.h: New file.
6005 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6007 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6009 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6011 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6013 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6015 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6017 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6019 * NEWS: Note new MIPS NetBSD native configuration.
6020 * configure.host (mips*-*-netbsd*): New host.
6021 * configure.tgt (mips*-*-netbsd*): New target.
6022 * mipsnbsd-nat.c: New file.
6023 * mipsnbsd-tdep.c: New file.
6024 * mipsnbsd-tdep.h: New file.
6025 * config/mips/nbsd.mh: New file.
6026 * config/mips/nbsd.mt: New file.
6027 * config/mips/nm-nbsd.h: New file.
6028 * config/mips/tm-nbsd.h: New file.
6030 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6032 * Makefile.in (SFILES): Add osabi.c.
6033 (COMMON_OBS): Add osabi.o.
6034 (osabi.o): New dependency list.
6035 * osabi.c: New file.
6036 * osabi.h: New file.
6037 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6039 * Makefile.in (alpha_tdep_h): Define and use instead of
6041 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6042 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6044 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6045 * alpha-tdep.h: Include osabi.h.
6046 (alpha_abi): Remove.
6047 (gdbarch_tdep): Use generic OS ABI framework.
6048 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6049 gdbarch_register_osabi.
6050 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6051 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6052 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6054 * Makefile.in (sh_tdep_h): Add osabi.h.
6055 * sh-tdep.h (sh_osabi): Remove.
6056 (gdbarch_tdep): Use generic OS ABI framework.
6057 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6058 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6059 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6060 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6062 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6063 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6064 gdbarch_register_osabi.
6065 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6066 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6067 (get_elfosabi): Rename to...
6068 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6069 ABI framework support routines.
6070 (arm_gdbarch_init): Use generic OS ABI framework.
6071 (arm_dump_tdep): Likewise.
6072 (_initialize_arm_tdep): Likewise.
6073 * arm-tdep.h: Include osabi.h.
6075 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6077 (arm_gdbarch_register_os_abi): Remove prototype.
6078 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6079 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6081 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6082 * mips-tdep.c: Include osabi.h.
6083 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6086 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6088 * h8300-tdep.c: Fix formatting.
6090 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6092 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6093 printing vector registers.
6095 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6097 From Fernando Nasser:
6098 * remote.c (remote_async_open_1): Re-throw the exception when the
6100 (remote_cisco_open): Ditto.
6101 (remote_open_1): Ditto.
6103 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6105 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6106 (remote_start_remote): Add uiout parameter. Pass through to
6107 remote_start_remote_dummy.
6108 (remote_open_1): Use catch_exception instead of catch_errors.
6109 (remote_async_open_1): Ditto.
6110 (remote_cisco_open): Ditto.
6112 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6114 * remote.c (remote_start_remote): Replace PTR with void pointer.
6115 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6118 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6120 * gdb_indent.sh: Allow the script to be run in the sim directory.
6122 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6124 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6125 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6127 * corelow.c (core_open): Only call set_gdbarch_from_file if
6130 2002-05-17 Andrey Volkov <avolkov@transas.com>
6132 * h8300-tdep.c: Add support of EXR register
6133 * config/h8300/tm-h8300.h: Ditto.
6135 2002-05-17 Andrey Volkov <avolkov@transas.com>
6137 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6139 2002-05-17 Andrey Volkov <avolkov@transas.com>
6141 * h8300-tdep.c: Change literal regnums to REGNO.
6143 2002-05-17 Jim Blandy <jimb@redhat.com>
6145 * NEWS: Note addition of macro support.
6147 Expand preprocessor macros in C expressions.
6148 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6149 (scan_macro_expansion, scanning_macro_expansion,
6150 finished_macro_expansion): New function declarations.
6151 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6152 variable declarations.
6153 * parser-defs.h (expression_context_pc): New declaration.
6154 * parse.c (expression_context_pc): New variable.
6155 (parse_exp_1): Set expression_context_pc, as well as
6156 expression_context_block.
6157 * c-exp.y (yylex): If we're not already reading the result of a
6158 macro expansion, try to macro-expand the next token. When we're
6159 done scanning a macro expansion, switch back to the mainline text.
6160 Commas and `if's in a macro's expansion don't terminate the input.
6161 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6162 (macro_original_text, macro_expanded_text,
6163 expression_macro_lookup_func, expression_macro_lookup_baton): New
6165 (scan_macro_expansion, scanning_macro_expansion,
6166 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6167 c_preprocess_and_parse): New functions.
6168 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6169 c_preprocess_and_parse, instead of c_parse.
6170 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6171 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6173 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6175 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6176 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6177 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6179 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6181 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6183 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6185 * Makefile.in (sh_tdep_h): Define and use.
6186 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6187 register enum): Move to...
6188 * * sh-tdep.h: ...here.
6189 * sh-tdep.c: Include sh-tdep.h.
6190 * sh3-rom.c: Likewise.
6191 * shnbsd-tdep.c: Likewise.
6193 2002-05-16 Michael Snyder <msnyder@redhat.com>
6195 * arm-tdep.c: Spelling fix in comment.
6197 2002-05-16 Jim Blandy <jimb@redhat.com>
6199 Add commands for manually expanding macros and showing their
6201 * macrocmd.c, macroscope.c, macroscope.h: New files.
6202 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6203 (macroscope_h): New variable.
6204 (HFILES_NO_SRCDIR): Add macroscope.h.
6205 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6206 (macroscope.o, macrocmd.o): New rules.
6208 Teach the Dwarf 2 reader to read macro information.
6209 * dwarf2read.c: #include "macrotab.h".
6210 (dwarf_macinfo_buffer): New variable.
6211 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6213 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6214 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6215 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6216 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6217 dwarf2_macro_spaces_in_definition): New complaints.
6218 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6219 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6220 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6221 the partial symbol table.
6222 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6223 from what's recorded in the partial symbol table.
6224 (read_file_scope): If the compilation unit has a
6225 `DW_AT_macro_info' attribute, read its macro information.
6226 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6228 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6231 * ser-tcp.c: Don't include <netinet/udp.h>.
6233 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6235 * MAINTAINERS: Update my email address.
6237 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6239 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6240 include file of the same name.
6242 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6244 * configure.tgt: Mark v850 as multi-arched.
6245 * config/v850/tm-v850.h: Remove file.
6246 * config/v850/v850.mt: Eliminate TM_FILE.
6248 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6250 * v850-tdep.c: Full multi-arch.
6251 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6252 Define GDB_MULTI_ARCH to 2.
6254 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6256 * p-exp.y (current_type): New static variable.
6257 Carries the type of the expression at the position that is parsed.
6258 (push_current_type, pop_current_type): Two new functions. Used
6259 to store/restore current_type in expression on specific tokens.
6260 (search_field): New static variable. Set to one after parsing a point
6261 as at that point only a FIELDNAME token should be searched.
6262 (FIELDNAME): New token. After a point only a token belonging to
6263 current_type type definition is allowed.
6264 (all over token rules): reset and change current_type according
6266 (exp '[' rule): insert implicit array index field if
6267 exp is a pascal string type.
6269 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6271 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6272 frame info. Use frame_info's saved_regs instead of matching member
6273 in extra_frame_info throughout.
6274 (v850_frame_init_saved_regs): New function.
6275 (v850_init_extra_frame_info): Move most functionality into
6276 v850_frame_init_saved_regs().
6277 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6278 (v850_frame_find_saved_regs): Remove declaration.
6279 (FRAME_FIND_SAVED_REGS): Remove definition.
6280 (v850_frame_init_saved_regs): Add declaration.
6281 (FRAME_INIT_SAVED_REGS): Add definition.
6283 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6285 * v850-tdep.c: Begin multi-arch'ing v850.
6286 (v850_target_architecture_hook): Remove function.
6287 (v850_gdbarch_init): New function. Add code previously in
6288 v850_target_architecture_hook().
6289 (_initialize_v850_tdep): Don't set target_architecture_hook.
6290 Call register_gdbarch_init() instead.
6292 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6294 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6295 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6296 (fixup_class_method_type): Likewise.
6298 2002-05-15 Jim Blandy <jimb@redhat.com>
6300 Add macro structures to GDB's symbol tables. Nobody puts anything
6302 * symtab.h (struct symtab): New member: `macro_table'.
6303 * buildsym.h (pending_macros): New global variable.
6304 * buildsym.c: #include "macrotab.h".
6305 (buildsym_init): Initialize `pending_macros'.
6306 (end_symtab): If we found macro information while reading a CU's
6307 debugging info, do build a symtab structure for it. Make the
6308 symtab point to the macro information, and clear the
6309 `pending_macros' pointer which held it while we were reading the
6311 (really_free_pendings): Free any pending macro table.
6312 * objfiles.h (struct objfile): New member: `macro_cache'.
6313 * objfiles.c (allocate_objfile): Set allocate and free functions
6314 for the macro cache's objstack.
6315 (free_objfile): Empty the macro cache's obstack.
6316 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6317 set new allocate and free functions for it.
6318 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6319 free functions for the macro cache's objstack. (Why is this
6320 function building its own objfile?)
6321 * symmisc.c (print_objfile_statistics): Print statistics on the
6323 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6325 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6327 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6328 (REGISTER_U_ADDR): Delete definition.
6329 (arm_register_u_addr): Delete declaration.
6331 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6333 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6334 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6336 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6338 * regcache.c (register_valid): Revise comments refering to "Not
6339 available" and "unavailable".
6340 * frame.c (frame_register_read): Ditto.
6341 * findvar.c (value_of_register): Ditto.
6343 2002-05-15 Andrew Cagney <cagney@redhat.com>
6345 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6346 (remote-sim.o): Update dependencies.
6347 (d10v-tdep.o): Specify dependencies.
6348 (sim_d10v_h): Define.
6350 2002-05-14 Jim Blandy <jimb@redhat.com>
6352 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6353 * macrotab.c (macro_lookup_inclusion, find_definition,
6354 new_macro_table): Same.
6356 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6357 not `! strcmp ()'. This is a dubious improvement.
6358 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6360 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6361 although it's not necessary, to avoid a warning.
6363 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6365 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6366 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6367 TYPE_INSTANCE_FLAGS.
6368 (struct main_type): New.
6369 (struct type): Move most members to struct main_type. Change
6370 cv_type and as_type to new type_chain member. Add instance_flags.
6371 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6372 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6373 (finish_cv_type): Remove prototype.
6374 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6376 (alloc_type_instance): New function.
6377 (smash_type): New function.
6378 (make_pointer_type, make_reference_type, make_function_type)
6379 (smash_to_member_type, smash_to_method_type): Call smash_type.
6380 (make_qualified_type): New function.
6381 (make_type_with_address_space): Call make_qualified_type.
6382 (make_cv_type): Likewise.
6383 (finish_cv_type): Remove unnecessary function.
6384 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6385 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6386 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6387 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6388 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6389 * hpread.c (hpread_read_struct_type): Likewise.
6390 * stabsread.c (read_struct_type): Likewise.
6392 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6394 * configure.tgt: Add a catch all sh* target, for cases like
6395 sh[2,3,4]-elf and sh-hms.
6397 2002-05-14 Keith Seitz <keiths@redhat.com>
6399 * event-loop.c (create_file_handler): Don't do anything but
6400 update data when we are given a fd which we are already
6403 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6405 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6406 (update_context): Use __func__ in warnings.
6408 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6410 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6411 and tcp_close to net_open and net_close.
6412 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6413 using UDP if requested. Don't try to disable Nagle on UDP
6415 * remote.c (remote_serial_open): New function. Warn about UDP.
6416 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6418 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6420 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6422 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6424 * configure.tgt: Remove sh-hms target.
6425 * MAINTAINERS: Don't list sh-hms as a separate target.
6427 2002-05-13 Jim Blandy <jimb@redhat.com>
6429 Add first preprocessor macro-expansion files.
6430 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6431 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6432 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6433 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6434 (COMMON_OBS): Add macrotab.o, macroexp.o.
6435 (macroexp.o, macrotab.o): New rules.
6437 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6439 * config/m88k/tm-m88k.h: Update copyright.
6440 (m88k_target_write_pc): Declare
6441 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6442 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6443 (SHIFT_INST_REGS): Update definition.
6444 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6445 using old definition of TARGET_WRITE_PC.
6446 * regcache.c (generic_target_write_pc): Delete code handling
6448 * gdbarch.sh (NNPC_REGNUM): Delete.
6449 * gdbarch.h, gdbarch.c: Regenerate.
6451 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6453 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6456 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6458 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6459 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6460 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6462 * c-typeprint.c (cp_type_print_method_args): Likewise.
6463 (c_type_print_args): Likewise.
6464 * d10v-tdep.c (d10v_push_arguments): Likewise.
6465 (d10v_extract_return_value): Likewise.
6466 * expprint.c (print_subexp): Likewise.
6467 * gdbtypes.c (lookup_primitive_typename): Likewise.
6468 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6469 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6470 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6471 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6472 (TYPE_VECTOR): Likewise.
6473 * hpread.c (hpread_read_struct_type)
6474 (fix_static_member_physnames, fixup_class_method_type)
6475 (hpread_type_lookup): Likewise.
6476 * mdebugread.c (parse_symbol, parse_type): Likewise.
6477 * p-lang.c (is_pascal_string_type): Likewise.
6478 * valops.c (hand_function_call): Likewise.
6479 * x86-64-tdep.c (classify_argument): Likewise.
6481 * hpread.c (hpread_read_function_type)
6482 (hpread_read_doc_function_type): Call replace_type.
6483 * dstread.c (create_new_type): Delete.
6484 (decode_dst_structure, process_dst_function): Call alloc_type.
6485 Use type access macros.
6487 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6489 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6490 the're not supported by the current architecture.
6491 (i387_fill_fxsave): Likewise.
6493 2002-05-12 Fred Fish <fnf@redhat.com>
6495 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6496 sect_index_xxx members to index the first slot in section_offsets
6497 if all of the section_offsets are zero.
6499 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6501 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6502 checked in with last change.
6504 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6506 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6507 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6510 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6512 * Makefile.in: Update dependencies.
6514 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6516 * language.c (local_hex_string_custom): Simplify. Do not depend
6517 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6519 * memattr.c (mem_info_command): Replace calls to
6520 longest_local_hex_string and longest_local_hex_string_custom.
6521 * buildsym.c (make_blockvector): Ditto.
6522 * solib.c (info_sharedlibrary_command): Ditto.
6523 * tracepoint.c (tracepoints_info): Ditto.
6524 * symtab.c (print_msymbol_info): Ditto.
6526 * language.c (local_hex_string): Delete.
6527 (local_hex_string_custom): Delete.
6528 (longest_local_hex_string): Rename to local_hex_string.
6529 (longest_local_hex_string_custom): Rename to
6530 local_hex_string_custom.
6531 * language.h (local_hex_string): Change parameter type to LONGEST.
6532 (local_hex_string_custom): Ditto.
6533 (longest_local_hex_string): Delete declaration.
6534 (longest_local_hex_string_custom): Ditto.
6536 * solib.c: Update copyright.
6537 * memattr.c: Update copyright.
6539 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6541 * arch-utils.h (legacy_register_to_value): Declare.
6542 (legacy_value_to_register): Declare.
6543 (legacy_convert_register_p): Declare.
6544 * arch-utils.c (legacy_register_to_value): New function.
6545 (legacy_value_to_register): New function.
6546 (legacy_convert_register_p): New function.
6548 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6549 (VALUE_TO_REGISTER): Define.
6550 (CONVERT_REGISTER_P): Define.
6551 * gdbarch.h, gdbarch.c: Regenerate.
6553 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6555 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6558 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6559 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6561 * Makefile.in: Update dependencies for valops.c.
6562 * valops.c: Include "gdb_assert.h".
6563 (typecmp): Skip THIS parameter to methods.
6564 (find_method_list): Remove static_memfuncp argument,
6565 update callers. Check for stub methods.
6566 (find_value_oload_method_list): Don't set *static_memfuncp.
6567 (find_overload_match): Don't check for stub methods. Assert
6568 that methods are not stubbed. Handle static methods.
6569 (value_find_oload_method_list): Remove static_memfuncp argument.
6570 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6571 to the argument list for static stub methods.
6572 * value.h (value_find_oload_method_list): Update prototype.
6574 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6576 * arch-utils.h (generic_register_size): Declare.
6577 (generic_register_raw_size, generic_register_virtual_size): Delete
6579 * arch-utils.c (generic_register_raw_size): Delete.
6580 (generic_register_size): New function.
6581 (generic_register_virtual_size): Delete.
6583 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6584 default generic_register_size.
6585 * gdbarch.h, gdbarch.c: Re-generate.
6587 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6588 register_virtual_size.
6589 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6590 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6592 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6594 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6595 * gdbarch.h, gdbarch.c: Regenerate.
6596 * gnu-v3-abi.c: Update copyright.
6597 (vtable_address_point_offset): Update.
6598 (gnuv3_rtti_type): Update.
6599 (gnuv3_baseclass_offset): Update.
6600 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6601 (init_fetch_link_map_offsets): Update.
6602 * remote.c (get_remote_state): Update.
6604 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6606 * TODO: Remove value_headof/value_from_vtable_info comment.
6607 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6608 * values.c (value_headof, value_from_vtable_info): Delete.
6609 * value.h (value_from_vtable_info): Delete prototype.
6611 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6613 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6614 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6616 (gdb_assert_h): Define.
6617 (gdb_wait_h): Define.
6618 (gdb_regex_h): Define.
6620 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6622 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6623 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6625 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6627 * nbsd-tdep.c: Fix comment.
6629 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6631 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6632 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6633 (nbsd-tdep.o): New dependency list.
6634 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6636 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6637 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6638 * nbsd-tdep.c: New file.
6639 * nbsd-tdep.h: New file.
6640 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6642 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6643 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6644 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6645 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6647 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6649 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6650 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6651 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6652 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6653 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6654 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6656 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6658 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6659 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6660 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6661 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6662 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6663 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6664 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6666 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6668 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6669 fetch_elfcore_registers to...
6670 * i386nbsd-tdep.c: ...here.
6671 (i386nbsd_use_struct_convention): Rename to...
6672 (i386nbsd_aout_use_struct_convention): ...this.
6673 (i386nbsd_supply_reg): New function.
6674 (i386nbsd_fill_reg): New function.
6675 (fetch_core_registers): Use i386nbsd_supply_reg.
6676 (fetch_elfcore_registers): Likewise.
6677 (_initialize_i386nbsd_tdep): New function.
6678 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6679 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6680 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6681 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6682 (i386nbsd_aout_use_struct_convention): ...this.
6684 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6686 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6687 (store_inferior_registers): Use shnbsd_fill_reg.
6688 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6689 sh_nbsd_supply_register): Collapse into...
6690 (shnbsd_supply_reg): ...this.
6691 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6692 (shnbsd_fill_reg): ...this.
6693 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6694 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6695 (fetch_core_registers): Use shnbsd_supply_reg.
6696 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6697 (sh_nbsd_core_fns): Rename to...
6698 (shnbsd_core_fns): ...this.
6699 (sh_nbsd_elfcore_fns): Rename to...
6700 (shnbsd_elfcore_fns): ...this.
6701 (sh_nbsd_init_abi): Rename to...
6702 (shnbsd_init_abi): ...this.
6703 (_initialize_sh_nbsd_tdep): Rename to...
6704 (_initialize_shnbsd_tdep): ...this.
6705 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6706 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6707 sh_nbsd_fill_register): Remove prototypes.
6708 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6710 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6712 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6713 (i387-nat.o): Delete dependency list.
6714 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6715 (x86-64-linux-nat.o): Likewise.
6716 * i387-nat.c: Delete file, moving contents to...
6717 * i387-tdep.c: ...here.
6718 * i387-nat.h: Rename...
6719 * i387-tdep.h: ...to this.
6720 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6721 * i386-linux-nat.c: Likewise.
6722 * i386bsd-nat.c: Likewise.
6723 * i386gnu-nat.c: Likewise.
6724 * i386nbsd-nat.c: Likewise.
6725 * i386v4-nat.c: Likewise.
6726 * x86-64-linux-nat.c: Likewise.
6727 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6728 * config/i386/go32.mh (NATDEPFILES): Likewise.
6729 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6730 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6731 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6732 * config/i386/linux.mh (NATDEPFILES): Likewise.
6733 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6734 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6735 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6736 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6738 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6740 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6741 (alphanbsd-nat.o): Remove dependency list.
6742 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6743 * alphanbsd-nat.c: Delete. Contents moved to...
6744 * alphanbsd-tdep.c: ...here.
6745 (_initialize_alphanbsd_tdep): Register core functions.
6746 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6748 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6750 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6751 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6752 (alphanbsd-nat.o): Likewise.
6753 (alphabsd-tdep.o): New dependency list.
6754 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6755 (fill_gregset): Use alphabsd_fill_reg.
6756 (supply_fpregset): Use alphabsd_supply_fpreg.
6757 (fill_fpregset): Use alphabsd_fill_fpreg.
6758 (fetch_inferior_registers): Use struct reg and struct fpreg
6759 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6760 and alphabsd_supply_fpreg.
6761 (store_inferior_registers): Use struct reg and struct fpreg
6762 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6763 and alphabsd_fill_fpreg.
6764 * alphabsd-tdep.c: New file.
6765 * alphabsd-tdep.h: New file.
6766 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6767 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6768 alphabsd_supply_fpreg.
6769 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6770 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6772 2002-05-11 Eric Christopher <echristo@redhat.com>
6774 * mips-tdep.c (mips_double_register_type): Fix thinko.
6775 (mips_single_register_type): Ditto.
6776 * MAINTAINERS: Add self.
6778 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6780 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6781 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6782 right thing on architectures with different endianness and/or
6785 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6787 From Christian Limpach <chris@Pin.LU>
6788 * configure.in: Change sed expression which comments out
6789 NATDEPFILES to also comment out continuation lines.
6790 * configure: Regenerate.
6792 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6794 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6797 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6799 * sh-tdep.c: Include correct file.
6801 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6803 New support for sh64-elf (sh5) target.
6805 * configure.tgt: For sh64-elf target, default to sh-elf.
6807 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6808 (struct gdbarch_tdep): Add new fields for new registers and ABI
6811 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6812 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6813 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6814 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6815 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6816 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6817 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6818 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6819 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6820 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6821 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6822 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6823 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6824 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6825 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6826 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6827 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6828 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6829 sign_extend, sh64_nofp_frame_init_saved_regs,
6830 sh64_init_extra_frame_info, sh64_get_saved_register,
6831 sh64_extract_struct_value_address, sh64_pop_frame,
6832 sh64_push_arguments, sh64_extract_return_value,
6833 sh64_store_return_value, sh64_show_media_regs,
6834 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6835 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6836 sh_sh64_register_virtual_type,
6837 sh_sh64_register_convert_to_virtual,
6838 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6839 sh64_register_read, sh64_pseudo_register_write,
6840 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6841 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6842 sh64_do_pseudo_register, sh_compact_do_registers_info,
6843 sh64_do_registers_info, sh_gdbarch_init): New functions.
6845 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6847 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6849 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6851 * linespec.c (decode_line_1): Check for a double quote after
6852 a filename correctly.
6854 2002-05-10 Jim Blandy <jimb@redhat.com>
6856 Properly track the size of the current objfile's .debug_line section.
6857 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6858 (DWARF_LINE_SIZE): New macro.
6859 (dwarf2_build_psymtabs_hard): Record the line section's size in
6860 the partial symbol table.
6861 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6864 2002-05-10 Petr Sorfa <petrs@caldera.com>
6866 * ia64-tdep.c: Handle breakpoints on L instruction type
6867 in MLX instruction bundle by moving the breakpoint to
6868 the third slot (X instruction type) as L holds only data.
6870 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6872 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6873 (process_one_symbol): Complain about discarding local symbols
6874 due to a misplaced N_LBRAC entry.
6876 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6878 From Daniel Berlin <dan@cgsoftware.com>
6879 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6880 decrease the depth we are at, in the case of templates.
6882 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6884 * mips-tdep.c (mips_float_register_type): New function.
6885 (mips_double_register_type): New function.
6886 (mips_print_register): Use them.
6887 (do_fp_register_row): Likewise.
6889 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6891 * signals/signals.c (signals): Remove conditional compilation around
6892 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6893 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6895 2002-05-09 Michael Snyder <msnyder@redhat.com>
6897 * remote-rdp.c (remote_rdp_can_run): Remove.
6899 2002-05-09 Tom Tromey <tromey@redhat.com>
6901 * jv-valprint.c (java_val_print): Handle `char' as a special case
6904 2002-05-09 Michael Snyder <msnyder@redhat.com>
6906 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6907 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6908 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6909 str r(0123),[sp,#nn].
6910 (arm_skip_prologue): Ditto. Also make disassembly
6911 order-independent by placing it in a loop.
6913 2002-05-06 Michael Snyder <msnyder@redhat.com>
6915 * stabsread.c (read_type): Add recognition for new attribute:
6916 "@V;" means that an array type is actually a vector.
6917 This is analogous to the vector flag that's been added to dwarf2.
6919 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6921 * i386-tdep.h (i386_abi): New enum.
6922 (struct gdbarch_tdep): Replace os_ident member with abi.
6923 (i386_gdbarch_register_os_abi): New prototype.
6924 * i386-tdep.c (i386_abi_names): New array.
6925 (process_note_abi_tag_sections): Removed.
6926 (process_note_sections): New function.
6927 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6928 (struct i386_abi_handler): New struct.
6929 (i386_abi_handler_list): New variable.
6930 (i386_gdbarch_register_os_abi): New function.
6931 (i386_gdbarch_init): Adapt for the changes given above.
6933 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6935 * gregset.h: Say "GNU/Linux".
6937 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6939 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6940 (build_gdbtypes): Build builtin_type_v2_float.
6941 (_initialize_gdbtypes): Register new builtin type.
6943 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6945 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6946 (clear_gdbarch_swap): New function.
6947 (initialize_non_multiarch): Call.
6948 (gdbarch_update_p): Before calling init(), swap out and clear the
6949 existing architecture.
6950 * gdbarch.c: Regenerate.
6952 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6954 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6957 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6959 * sh-nbsd-nat.c: Rename to...
6960 * shnbsd-nat.c: ...this.
6961 * sh-nbsd-tdep.c: Rename to...
6962 * shnbsd-tdep.c: ...this.
6963 * sh-nbsd-tdep.h: Rename to...
6964 * shnbsd-tdep.h: ...this.
6965 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6966 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6968 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6970 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6971 concatenation for command help messages.
6973 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6975 * NEWS: Note new sh*-*-netbsdelf* configuration.
6976 * configure.host: Set gdb_host_cpu to sh for all sh*.
6977 (sh*-*-netbsdelf*): New host.
6978 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6979 (sh*-*-netbsdelf*): New target.
6980 * sh-nbsd-nat.c: New file.
6981 * sh-nbsd-tdep.c: New file.
6982 * sh-nbsd-tdep.h: New file.
6983 * config/sh/nbsd.mh: New file.
6984 * config/sh/nbsd.mt: New file.
6985 * config/sh/nm-nbsd.h: New file.
6986 * config/sh/tm-nbsd.h: New file.
6988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6990 * sh-tdep.c (sh_osabi_names): Declare.
6991 (process_note_abi_tag_sections): New function.
6992 (get_elfosabi): Ditto.
6993 (sh_gdbarch_register_os_abi): Ditto.
6994 (sh_dump_tdep): Ditto.
6995 _initialize_sh_tdep): Use gdbarch_register to register
6996 sh_gdbarch_init and sh_dump_tdep.
6997 * config/sh/tm-sh.h (sh_osabi): Declare.
6998 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7000 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7002 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7003 (thumb_scan_prologue): Ditto.
7004 (arm_find_callers_reg): Ditto.
7005 (arm_frame_chain): Ditto.
7006 (arm_init_extra_frame_info): Ditto.
7007 (arm_frame_saved_pc): Ditto.
7008 (arm_pop_frame): Ditto.
7009 (arm_push_return_address): New function.
7010 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7011 call_dummy_location, call_dummy_breakpoint_offset_p,
7012 call_dummy_breakpoint_offset, call_dummy_p,
7013 call_dummy_stack_adjust_p, call_dummy_words,
7014 sizeof_call_dummy_words, call_dummy_start_offset,
7015 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7016 call_dummy_address, push_return_address and push_dummy_frame for
7017 generic dummy frames.
7019 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7021 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7022 size computation for alloca.
7023 (sh_fp_frame_init_saved_regs): Likewise.
7025 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7027 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7028 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7029 * arm-tdep.c (arm_store_return_value): Use them.
7030 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7031 * remote-rdp.c (remote_rdp_fetch_register): Use
7032 ARM_MAX_REGISTER_RAW_SIZE.
7033 (remote_rdp_store_register): Likewise.
7035 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7037 * dwarf2cfi.c: Code cleanup, removed unused variables,
7038 added default labels to switch {} statements.
7039 * x86-64-tdep.c: Ditto.
7040 * x86-64-linux-nat.c: Ditto.
7042 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7044 * solib.h: Protect against multiple inclusion.
7046 2002-05-06 Jim Blandy <jimb@redhat.com>
7048 Add first preprocessor macro-expansion files.
7049 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7050 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7051 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7052 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7053 (COMMON_OBS): Add macrotab.o, macroexp.o.
7054 (macroexp.o, macrotab.o): New rules.
7056 Separate the job of reading the line number info statement program
7057 header (...expialidocious) out into its own function.
7058 * dwarf2read.c (struct line_head, struct filenames, struct
7059 directories): Replace with...
7060 (struct line_header): New structure, containing the full
7061 contents of the statement program header, including the
7062 include directory and file name tables.
7063 (read_file_scope): If we have line number info, instead of just
7064 calling dwarf_decode_lines to do all the work, call
7065 dwarf_decode_line_header first to get a `struct line_header'
7066 containing the data in the statement program header, and then
7067 pass that to dwarf_decode_lines, which will pick up where that
7068 left off. Be sure to clean up the `struct line_header' object.
7069 (dwarf_decode_line_header, free_line_header, add_include_dir,
7070 add_file_name): New functions.
7071 (dwarf_decode_lines): Move all the code to read the statement
7072 program header into dwarf_decode_line_header. Take the line
7073 header it built as the first argument, instead of the offset to
7074 the compilation unit's line number info. Use the new `struct
7075 line_header' type instead of the old structures. No need to do
7076 cleanups here now, since we don't allocate anything.
7077 (dwarf2_statement_list_fits_in_line_number_section,
7078 dwarf2_line_header_too_long): New complaints.
7080 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7082 * gdbtypes.c (init_vector_type): New function.
7083 (build_builtin_type_vec128): Simplify the representation of SIMD
7085 (build_gdbtypes): Initialize new builtin vector types.
7086 (_initialize_gdbtypes): Register new vector types with gdbarch.
7087 (builtin_type_v4_float, builtin_type_v4_int32,
7088 builtin_type_v8_int16, builtin_type_v16_int8,
7089 builtin_type_v2_int32, builtin_type_v4_int16,
7090 builtin_type_v8_int8): New (renamed) SIMD types.
7092 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7094 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7095 (i387_fill_fxsave): Likewise.
7097 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7099 * alpha-tdep.c (alpha_extract_return_value): Don't use
7100 non-constant array size in prototype.
7102 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7104 From Brian Taylor <briant at model dot com>:
7105 * ui-out.c (ui_out_field_core_addr): Use the function
7106 longest_local_hex_string_custom'to format addresses > 32 bits
7109 * ui-out.c (ui_out_field_core_addr): Update comment.
7111 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7113 * stack.c (select_and_print_frame): Make static. Delete the
7115 (func_command): Update call.
7116 (select_frame_command): Delete code computing the frame level.
7117 * frame.h (select_and_print_frame): Delete declaration.
7119 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7121 * sparc-tdep.c (sparc_get_saved_register): Comment why
7122 get_prev_frame call is safe.
7124 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7126 * frame.h (select_frame): Delete level parameter.
7127 * stack.c (select_frame): Update. Use frame_relative_level to
7128 obtain the frame's level.
7129 (select_and_print_frame): Update call.
7130 (select_frame_command): Ditto.
7131 (up_silently_base): Ditto.
7132 (down_silently_base): Ditto.
7133 * ocd.c (ocd_start_remote): Ditto.
7134 * remote-rdp.c (remote_rdp_open): Ditto.
7135 * remote-mips.c (mips_initialize): Ditto.
7136 (common_open): Ditto.
7137 * remote-e7000.c (e7000_start_remote): Ditto.
7138 * m3-nat.c (select_thread): Ditto.
7139 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7140 (child_get_current_exception_event): Ditto.
7141 * varobj.c (varobj_create): Ditto.
7142 (varobj_update): Ditto.
7143 (c_value_of_root): Ditto.
7144 * tracepoint.c (finish_tfind_command): Ditto.
7145 * corelow.c (core_open): Ditto.
7146 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7147 * thread.c (info_threads_command): Ditto.
7148 (switch_to_thread): Ditto.
7149 * infrun.c (normal_stop): Ditto.
7150 (restore_selected_frame): Ditto.
7151 (restore_inferior_status): Ditto.
7152 * breakpoint.c (insert_breakpoints): Ditto.
7153 (watchpoint_check): Ditto.
7154 (bpstat_stop_status): Ditto.
7155 (do_enable_breakpoint): Ditto.
7156 * blockframe.c (flush_cached_frames): Ditto.
7157 (reinit_frame_cache): Ditto.
7159 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7161 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7164 2002-05-04 Jim Blandy <jimb@redhat.com>
7166 * gdbtypes.c (replace_type): Doc fix.
7168 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7170 * valprint.c (strcat_longest): Delete commented out function.
7173 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7175 * MAINTAINERS: Mark a29k as deleted.
7176 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7177 Move new configurations to the top.
7178 * configure.tgt: Remove a29k.
7179 * config/a29k/tm-vx29k.h: Delete.
7180 * config/a29k/vx29k.mt: Delete.
7181 * config/a29k/tm-a29k.h: Delete.
7182 * config/a29k/a29k-udi.mt: Delete.
7183 * config/a29k/a29k.mt: Delete.
7184 * a29k-tdep.c: Delete.
7185 * remote-udi.c: Delete.
7186 * remote-mm.c: Delete.
7187 * remote-eb.c: Delete.
7188 * remote-adapt.c: Delete.
7189 * Makefile.in: Remove obsolete code.
7190 * config/s390/s390x.mt: Ditto.
7191 * config/s390/s390.mt: Ditto.
7192 * config/sparc/sparclynx.mh: Ditto.
7193 * config/sparc/linux.mh: Ditto.
7194 * config/pa/hppaosf.mh: Ditto.
7195 * config/pa/hppabsd.mh: Ditto.
7196 * config/ns32k/nbsd.mt: Ditto.
7197 * config/mips/vr5000.mt: Ditto.
7198 * config/m68k/sun3os4.mh: Ditto.
7199 * config/m68k/nbsd.mt: Ditto.
7200 * config/m68k/m68klynx.mh: Ditto.
7201 * config/m32r/m32r.mt: Ditto.
7202 * config/i386/x86-64linux.mt: Ditto.
7203 * config/i386/nbsdelf.mt: Ditto.
7204 * config/i386/nbsd.mt: Ditto.
7205 * config/i386/i386lynx.mh: Ditto.
7207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7209 * target.c (debug_print_register): New function. Handle oversize
7211 (debug_to_fetch_registers): Call.
7212 (debug_to_store_registers): Call.
7214 2002-05-03 Jim Blandy <jimb@redhat.com>
7216 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7217 (read_type): Doc fix.
7218 * gdbtypes.c (replace_type): Doc fix.
7220 * stabsread.c (multiply_defined_struct): New complaint.
7221 (read_struct_type): If the type we were passed isn't empty, or
7222 incomplete, don't read the new struct type into it; complain,
7223 and return the original type unchanged. Take a new `type_code'
7224 argument, which is the type code for the new type.
7225 (read_type): Rather than storing the type's type code here, pass
7226 it as an argument to read_struct_type, and let that take care of
7227 storing it. That way, we don't overwrite the original type code,
7228 so read_struct_type can use it to decide whether we're overwriting
7229 something we shouldn't.
7230 (complain_about_struct_wipeout): New function.
7232 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7234 * gdbarch.sh: Assert that gdbarch is non-NULL.
7235 * gdbarch.c: Regenerate.
7237 2002-05-03 Jason Merrill <jason@redhat.com>
7239 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7242 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7244 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7245 (x86_64_dwarf2gdb_regno_map_length),
7246 (x86_64_dwarf2_reg_to_regnum): Added.
7247 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7248 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7249 (_initialize_x86_64_tdep): Synced with the change above.
7250 (x86_64_skip_prologue): Reformulated message.
7252 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7254 * f-exp.y: Also use new prev_lexptr variable
7255 to improve error reporting. Based on Michael Snyder
7256 2002-04-24 dated patch to c-exp.y.
7257 * jv-exp.y: Likewise.
7258 * m2-exp.y: Likewise.
7260 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7262 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7263 we are dealing with vectors.
7265 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7267 * config/m68k/tm-nbsd.h: Obvious fix,
7268 correct machine name.
7270 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7272 * p-typeprint.c (pascal_type_print_base): Add support
7273 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7275 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7277 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7278 for fondamental pascal 'char' type.
7280 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7282 * p-lang.h (is_pascal_string_type): Declaration changed,
7283 new sixth argument of type char ** added.
7284 * p-lang.c (is_pascal_string_type): Implementation
7285 changed. Args length_pos, length_size, string_pos, char_size
7286 can now be NULL. New argument arrayname set to the field
7287 name of the char array. Return value set to char array
7288 field index plus one.
7289 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7290 is_pascal_string_type function.
7292 2002-05-02 Andrew Cagney <cagney@redhat.com>
7294 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7295 <cagney@redhat.com> change.
7296 * gdbarch.c: Regenerate.
7298 2002-05-02 Andrew Cagney <cagney@redhat.com>
7300 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7301 before probing for a new one. Detect errorenous gdbarch_init
7303 * gdbarch.c: Regenerate.
7305 2002-05-01 Andrew Cagney <cagney@redhat.com>
7307 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7308 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7309 * config/v850/tm-v850.h: Ditto. Update copyright.
7311 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7313 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7316 2002-04-30 Michael Snyder <msnyder@redhat.com>
7318 * arm-tdep.c: Whitespace clean-ups.
7319 (arm_skip_prologue): Fix thinko; two lines
7320 should have been removed as part of 4/24 change.
7322 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7324 * rs6000-tdep.c: Added comment describing how fpscr register
7325 numbers were chosen.
7327 2002-04-30 Michael Snyder <msnyder@redhat.com>
7329 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7331 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7333 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7334 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7335 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7337 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7339 From Louis Hamilton <hamilton@redhat.com>:
7340 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7341 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7342 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7343 not bfd-private xcoff data, to determine wordsize.
7344 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7346 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7348 GDB 5.2 released from 5.2 branch.
7350 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7352 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7353 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7354 (x86_64_register_info_table): Added comments with register numbers.
7356 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7358 * rs6000-tdep.c (rs6000_extract_return_value,
7359 rs6000_store_return_value): Handle returning vectors.
7360 (rs6000_gdbarch_init): Use
7361 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7362 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7364 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7366 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7367 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7369 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7371 * hpread.c (hpread_psymtab_to_symtab_1,
7372 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7373 with fprintf_unfiltered (gdb_stderr,...).
7375 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7377 * remote-array.c (printf_monitor, write_monitor,
7378 array_insert_breakpoint, array_remove_breakpoint ):
7379 Replace fprintf (stderr,...
7380 with fprintf_unfiltered (gdb_stderr,....
7381 * remote-es.c: Likewise.
7382 * remote-os9k.c: Likewise.
7383 * remote-st.c: Likewise.
7385 2002-04-28 Andreas Schwab <schwab@suse.de>
7387 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7388 linux-proc.o and gcore.o.
7390 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7392 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7393 code without frame pointers.
7395 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7397 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7400 2002-04-26 Ben Elliston <bje@redhat.com>
7402 * target.c (do_xfer_memory): Correct reference to the new option
7403 "trust-readonly-sections".
7405 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7407 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7408 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7409 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7411 (read_array_type): Record the fact that this array type is really a
7412 vector (i.e. are passed in by value).
7414 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7416 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7417 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7418 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7419 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7420 * alpha-linux-tdep.c: Include frame.h.
7421 (alpha_linux_sigcontext_addr): New function.
7422 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7423 alpha_linux_sigcontext_addr.
7424 * alpha-osf1-tdep.c: Include gdbcore.h.
7425 (alpha_osf1_sigcontext_addr): New function.
7426 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7427 alpha_osf1_sigcontext_addr.
7428 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7429 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7431 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7433 * stack.c (selected_frame_level):
7434 (select_frame): Do not set selected_frame_level.
7435 * frame.h (selected_frame_level): Delete declaration.
7437 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7439 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7440 convert_from_func_ptr-addr when AIX / PowerOpen.
7442 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7444 * valops.c (hand_function_call): Call
7445 generic_save_call_dummy_addr.
7446 * frame.h (generic_save_call_dummy_addr): Declare.
7447 * blockframe.c (struct dummy_frame): Add fields call_lo and
7449 (generic_find_dummy_frame): Check for PC in range call_lo to
7450 call_hi instead of entry_point_address.
7451 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7452 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7453 (generic_save_call_dummy_addr): New function.
7455 2002-04-24 David S. Miller <davem@redhat.com>
7457 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7458 sparc_skip_prologue.
7459 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7460 information to find prologue when possible.
7461 (sparc_prologue_frameless_p): Call examine_prologue directly.
7462 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7463 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7465 (SKIP_PROLOGUE): Likewise.
7467 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7469 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7470 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7471 indicate that the condition it was testing is always true.
7472 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7473 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7474 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7476 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7478 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7479 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7480 tdep->jb_pc and tdep->jb_elt_size.
7481 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7482 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7483 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7484 * alpha-nat.c (get_longjmp_target): Remove.
7485 (JB_ELEMENT_SIZE): Ditto.
7487 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7488 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7489 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7490 to alpha_get_longjmp_target.
7491 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7492 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7493 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7495 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7497 * README: Update to GDB 5.2.
7499 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7501 * gdbarch.sh (LC_ALL): Set to `c'.
7503 2002-04-25 Theodore A. Roth <troth@verinet.com>
7505 * avr-tdep.c: Ran through gdb_indent.sh.
7507 2002-04-25 Theodore A. Roth <troth@verinet.com>
7509 * MAINTAINERS: Add myself as AVR maintainer.
7510 * NEWS: Note new target avr.
7512 2002-04-25 Theodore A. Roth <troth@verinet.com>
7514 * Makefile.in: Add support for AVR target.
7515 * configure.tgt: Add support for AVR target.
7516 * avr-tdep.c: New file
7517 * config/avr/avr.mt: New file.
7519 2002-04-25 Theodore A. Roth <troth@verinet.com>
7521 * MAINTAINERS: Add myself to write-after-approval.
7523 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7525 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7526 with fprintf_unfiltered (gdb_stderr,....
7528 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7531 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7533 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7535 * p-exp.y: Also use new prev_lexptr variable
7536 to improve error reporting. Based on Michael Snyder
7537 2002-04-24 dated patch to c-exp.y.
7539 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7541 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7542 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7543 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7545 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7547 (FUNCTION_START_OFFSET): Remove.
7548 (BREAKPOINT): Ditto.
7550 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7552 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7555 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7557 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7558 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7559 alpha_linux_pc_in_sigtramp.
7560 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7561 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7562 alpha_osf1_pc_in_sigtramp.
7563 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7564 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7565 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7566 alphafbsd_pc_in_sigtramp.
7567 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7568 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7569 alphanbsd_pc_in_sigtramp.
7570 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7571 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7573 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7575 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7577 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7579 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7581 (alphanbsd-nat.o): New dependency list.
7582 (alphanbsd-tdep.o): Ditto.
7583 * NEWS: Note new native NetBSD/alpha configuration.
7584 * alphanbsd-nat.c: New file.
7585 * alphanbsd-tdep.c: Ditto.
7586 * configure.host (alpha*-*-netbsd*): New host.
7587 * configure.tgt (alpha*-*-netbsd*): New target.
7588 * config/alpha/nbsd.mh: New file.
7589 * config/alpha/nbsd.mt: Ditto.
7590 * config/alpha/nm-nbsd.h: Ditto.
7591 * config/alpha/tm-nbsd.h: Ditto.
7593 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7595 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7596 (alpha-osf1-tdep.o): New dependency list.
7597 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7598 and skip_sigtramp_frame members.
7599 * alpha-linux-tdep.c: Include gdbcore.h.
7600 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7601 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7602 * alpha-osf1-tdep.c: New file.
7603 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7605 (alpha_frame_past_sigtramp_frame): New function.
7606 (alpha_dynamic_sigtramp_offset): Ditto.
7607 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7608 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7609 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7610 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7611 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7612 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7613 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7614 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7615 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7616 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7617 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7618 to find_solib_trampoline_target.
7619 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7620 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7621 (SKIP_TRAMPOLINE_CODE): Remove.
7622 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7623 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7624 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7625 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7626 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7627 (PROC_SIGTRAMP_MAGIC): Ditto.
7628 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7629 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7630 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7631 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7632 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7634 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7636 * NEWS: Note that Alpha targets are now multi-arch.
7638 2002-04-24 Michael Snyder <msnyder@redhat.com>
7640 * parser-defs.h (prev_lexptr): New external variable.
7641 * parse.c (parse_exp_1): Set prev_lexptr to null before
7642 calling the language-specific parser.
7643 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7644 (yyerror): Use prev_lexptr in error reporting.
7646 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7648 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7649 * gregset.h: If FILL_FPXREGSET is defined, provide
7650 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7651 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7652 is defined, call fill_fpxregset.
7654 2002-04-24 Roland McGrath <roland@frob.com>
7656 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7657 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7658 (supply_gregset, supply_fpregset): New functions.
7660 * gnu-nat.c (gnu_find_memory_regions): New function.
7661 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7662 (gnu_xfer_memory): Add a cast.
7664 2002-04-24 Michael Snyder <msnyder@redhat.com>
7666 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7667 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7668 of argument regs ("str r(0123), [r11, #-nn"]).
7669 (arm_skip_prologue): Better handling for frameless functions.
7670 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7671 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7673 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7675 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7676 NUM_PSEUDO_REGS can be used.
7678 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7680 * arch-utils.h: Update copyright.
7682 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7683 * gdbarch.h, gdbarch.c: Re-generate.
7685 * inferior.h (IN_SIGTRAMP): Delete definition.
7686 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7687 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7689 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7690 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7691 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7692 (find_proc_framesize): Ditto.
7693 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7694 (alpha_init_extra_frame_info): Ditto.
7695 * infrun.c (handle_inferior_event): Ditto.
7696 (handle_inferior_event): Ditto.
7697 (check_sigtramp2): Ditto.
7698 * blockframe.c (create_new_frame): Ditto.
7699 (get_prev_frame): Ditto.
7700 * ppc-linux-tdep.c: Update comments.
7701 * i386-linux-tdep.c: Update comments.
7702 * breakpoint.c (bpstat_what): Update comment.
7704 2002-04-24 David S. Miller <davem@redhat.com>
7706 * i960-tdep.c (register_in_window_p): New function.
7707 (i960_find_saved_register): Use it instead of
7708 REGISTER_IN_WINDOW_P.
7709 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7711 * symtab.h (find_stab_function_addr): Kill extern.
7712 * minsyms.c (find_stab_function_addr): Remove from here...
7713 * dbxread.c: ... to here, and mark it static.
7715 2002-04-20 David S. Miller <davem@redhat.com>
7717 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7718 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7720 2002-04-21 David S. Miller <davem@redhat.com>
7722 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7723 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7724 (vx_write_register): Likewise.
7726 2002-04-23 J. Brobecker <brobecker@gnat.com>
7728 * source.c (is_regular_file): New function.
7729 (openp): Check wether file to open is a regular file
7730 to avoid opening directories.
7732 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7734 * findvar.c (extract_signed_integer): Cast printf argument
7735 to suppress format warning.
7736 (extract_unsigned_integer): Likewise.
7737 * infcmd.c (registers_info): Likewise.
7738 * top.c (get_prompt_1): Likewise.
7739 * valops.c (value_assign): Likewise.
7740 * valprint.c (print_decimal): Likewise.
7742 2002-04-22 H.J. Lu (hjl@gnu.org)
7744 * c-exp.y (typebase): Support
7746 [long|long long|short] [signed|unsigned] [int|]
7750 signed [long|long long|short] int
7752 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7754 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7756 * vax-tdep.h: New file.
7757 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7758 Make several routines static.
7759 (vax_get_saved_register): New function.
7760 (vax_gdbarch_init): New function.
7761 (_initialize_vax_tdep): Register vax_gdbarch_init.
7762 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7763 Remove macros now under the control of gdbarch.
7765 2002-04-22 Michael Snyder <msnyder@redhat.com>
7767 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7768 Some whitespace and coding standards tweaks.
7770 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7772 * vax-tdep.c: Include regcache.h.
7773 (vax_call_dummy_words): New.
7774 (sizeof_vax_call_dummy_words): New.
7775 (vax_fix_call_dummy): New function.
7776 (vax_saved_pc_after_call): Ditto.
7777 * config/vax/tm-vax.h: Don't include regcache.h.
7778 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7779 (CALL_DUMMY): Remove.
7780 (CALL_DUMMY_WORDS): Define.
7781 (SIZEOF_CALL_DUMMY_WORDS): Define.
7782 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7784 2002-04-18 Michael Snyder <msnyder@redhat.com>
7786 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7790 * vax-tdep.c (vax_frame_chain): New function.
7791 (vax_push_dummy_frame): Ditto.
7792 (vax_pop_frame): Ditto.
7793 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7794 (FRAMELESS_FUNCTION_INVOCATION): Use
7795 generic_frameless_function_invocation_not.
7796 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7797 (POP_FRAME): Use vax_pop_frame.
7799 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7801 * vax-tdep.c (vax_store_struct_return): New function.
7802 (vax_extract_return_value): Ditto.
7803 (vax_store_return_value): Ditto.
7804 (vax_extract_struct_value_address): Ditto.
7805 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7806 vax_store_struct_return.
7807 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7808 (STORE_RETURN_VALUE): Use vax_store_return_value.
7809 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7811 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7813 * vax-tdep.c (vax_frame_saved_pc): New function.
7814 (vax_frame_args_address_correct): Ditto.
7815 (vax_frame_args_address): Ditto.
7816 (vax_frame_locals_address): Ditto.
7817 (vax_frame_num_args): Move code to be in proximity to
7818 other frame-related functions.
7819 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7820 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7821 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7822 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7823 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7825 2002-04-22 H.J. Lu (hjl@gnu.org)
7827 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7830 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7832 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7833 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7834 (FRAME_INIT_SAVED_REGS): New macro.
7836 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7838 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7840 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7842 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7844 (fetch_osf_core_registers): Likewise.
7845 (supply_gregset): Likewise.
7847 2002-04-22 J. Brobecker <brobecker@gnat.com>
7849 * symfile.h (get_section_index): Define.
7850 * symfile.c (get_section_index): New function.
7851 * mdebugread.c (SC_IS_SBSS): New macro.
7852 (SC_IS_BSS): Return true for the scBss storage class only, as
7853 the scSBss storage class refers to the .sbss section.
7854 (parse_partial_symbols): Discard the symbols which associated
7855 section does not exist.
7856 Make sure to use the .sbss section index for symbols which
7857 storage class is scBss, rather than using the .bss section index.
7859 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7861 * vax-tdep.c: Update copyright years.
7862 (vax_register_name): New function.
7863 (vax_register_byte): Ditto.
7864 (vax_register_raw_size): Ditto.
7865 (vax_register_virtual_size): Ditto.
7866 (vax_register_virtual_type): Ditto.
7867 * config/vax/tm-vax.h: Update copyright years.
7868 (REGISTER_NAMES): Remove.
7869 (REGISTER_NAME): Define.
7870 (REGISTER_BYTE): Use vax_register_byte.
7871 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7872 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7873 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7875 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7877 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7879 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7881 2002-04-21 David S. Miller <davem@redhat.com>
7883 * arch-utils.c (generic_prologue_frameless_p): Kill
7884 SKIP_PROLOGUE_FRAMELESS_P code.
7885 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7887 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7888 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7889 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7891 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7892 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7893 (sparc_gdbarch_init): Pass it to
7894 set_gdbarch_prologue_frameless_p.
7896 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7898 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7899 (alphabsd-nat.o): New dependency list.
7901 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7903 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7905 (alpha-linux-tdep.o): New dependency list.
7906 (alphafbsd-tdep.o): Likewise.
7908 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7910 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7912 * alpha-tdep.c: ...from here.
7913 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7915 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7917 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7918 prototype from here...
7919 * alpha-tdep.h: ...to here.
7921 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7923 * frame.h (selected_frame_level): Document as deprecated.
7924 (frame_relative_level): Declare.
7925 * stack.c (frame_relative_level): New function.
7926 (selected_frame_level): Document as deprecated.
7927 (select_frame): Do not set the selected_frame_level.
7929 * stack.c (frame_info, record_selected_frame): Update.
7930 (frame_command, current_frame_command): Update.
7931 (up_silently_base, up_command, down_silently_base): Update.
7932 (down_command): Update.
7933 * inflow.c (kill_command): Update.
7934 * tracepoint.c (finish_tfind_command): Update.
7935 * corelow.c (core_open): Update.
7936 * thread.c (info_threads_command): Update.
7937 (do_captured_thread_select): Update.
7938 * infcmd.c (finish_command): Update.
7939 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7941 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7943 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7945 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7947 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7950 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7952 * alphafbsd-tdep.c: Update copyright years. Include
7954 (alphafbsd_use_struct_convention): Make static.
7955 (alphafbsd_init_abi): New function.
7956 (_initialize_alphafbsd_tdep): New function.
7957 * config/alpha/tm-fbsd.h: Update copyright years.
7958 (USE_STRUCT_CONVENTION): Remove.
7960 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7962 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7963 an Alpha ABI variant.
7964 (alpha_abi_handler_list): Declare.
7965 (alpha_gdbarch_register_os_abi): New function.
7966 (alpha_gdbarch_init): Give registered ABI variant handlers a
7967 chance to tweak the gdbarch once we have set up defaults.
7968 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7970 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7972 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7973 to standard_coerce_float_to_double.
7974 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7976 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7978 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7979 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7980 from gdbarch_tdep rather than a constant.
7981 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7982 the default text address for all Alpha Unix ABIs.
7983 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7984 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7988 * alpha-tdep.h: New file. Includes several Alpha target constants
7990 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7991 let gdbarch deal with.
7992 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7993 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7995 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7996 Alpha target register names.
7997 * alphabsd-nat.c: Likewise.
7998 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7999 Alpha target register names. Make serveral routines static.
8000 (alpha_get_saved_register): New function.
8001 (alpha_abi_names): New.
8002 (process_note_abi_tag_sections): New function.
8003 (get_elfosabi): New function.
8004 (alpha_gdbarch_init): New function.
8005 (alpha_dump_tdep): New function.
8006 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8008 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8010 * frame.c (find_saved_register): Delete #ifdef
8011 HAVE_REGISTER_WINDOWS code.
8012 * config/sparc/tm-sparc.h: Update comments.
8013 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8015 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8017 * i960-tdep.c (i960_find_saved_register): New function.
8018 (i960_get_saved_register): New function.
8019 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8020 (i960_get_saved_register): Declare.
8021 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8023 2002-04-20 David S. Miller <davem@redhat.com>
8025 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8027 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8029 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8030 instead of NUM_PSEUDO_REGS.
8032 2002-04-20 David S. Miller <davem@redhat.com>
8034 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8035 GDB_MULTI_ARCH_PARTIAL
8036 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8037 define, let tm-sp64.h do it.
8039 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8041 * frame.c (find_saved_register): Avoid a NULL pointer
8042 dereference and actually walk the frame list.
8044 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8046 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8047 sorted in most most-recent-used order. Document.
8048 * gdbarch.h, gdbarch.c: Regenerate.
8050 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8052 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8054 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8055 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8056 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8059 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8062 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8063 (build_builtin_type_vec128): Ditto.
8064 (append_composite_type_field): Fix calculation of type length in
8067 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8069 * config/djgpp/README: Update.
8071 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8074 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8076 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8077 (alpha_setup_arbitrary_frame): ...to this.
8078 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8079 for alpha_setup_arbitrary_frame.
8081 2002-04-18 Andrew Cagney <cagney@redhat.com>
8083 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8084 * gdbarch.h, gdbarch.c: Regenerate.
8086 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8087 * target.h (memory_breakpoint_from_pc): Update declaration.
8088 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8090 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8091 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8092 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8093 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8094 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8095 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8096 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8097 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8098 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8099 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8100 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8101 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8103 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8105 * monitor.c (monitor_insert_breakpoint): Ditto.
8106 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8108 * config/mcore/tm-mcore.h: Update copyright.
8109 * mem-break.c: Ditto.
8110 * xstormy16-tdep.c: Ditto.
8112 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8114 * p-exp.y: Add precedence rule for '^' token.
8115 This removes the shift/reduce conflicts.
8116 Remove the comment concerning these shift/reduce conflicts.
8118 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8120 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8121 (registers_powerpc_nofp): New register set for processors
8122 without floating point unit.
8124 2002-04-18 David S. Miller <davem@redhat.com>
8126 * MAINTAINERS: Add myself to write-after-approval.
8128 2002-04-17 Michael Snyder <msnyder@redhat.com>
8130 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8132 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8134 * rs6000-tdep.c (frame_initial_stack_address): Use
8135 frame_register_read to read the alloca_reg.
8137 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8139 * frame.c (find_saved_register): Find saved registers in the next
8143 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8145 * gdbarch.sh (LANG): Set to ``c''.
8147 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8149 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8151 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8153 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8156 * hpread.c (hpread_get_lntt): Add declaration.
8157 Also fix PR gdb/391.
8159 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8161 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8162 * aclocal.m4, configure: Re-generate.
8165 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8167 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8168 instead of tm_print_insn.
8170 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8172 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8174 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8176 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8177 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8178 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8180 2002-04-12 Don Howard <dhoward@redhat.com>
8182 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8183 max_user_call_depth.
8184 (init_cmd_lists): Initialize the new value;
8185 * cli/cli-script.c (execute_user_command): Limit the call depth of
8186 user defined commands. This avoids a core-dump when user commands
8187 are infinitly recursive.
8189 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8191 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8192 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8193 from tdep struct instead of DEFAULT_LR_SAVE.
8194 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8195 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8196 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8198 2002-04-12 Michael Snyder <msnyder@redhat.com>
8200 * Remote.c: Spelling fix.
8201 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8202 If no symbol found for "sbrk", try "_sbrk".
8203 (make_output_phdrs): Use bfd_section_name.
8204 (gcore_copy_callback): Use bfd_section_name.
8205 * eval.c: Indentation fix-ups.
8206 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8207 in case it gets applied to an address that is already
8208 in the instruction space.
8209 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8210 * symfile.c: Fix indentation, long lines.
8211 * source.c: White space fix-up.
8213 2002-04-12 Andrew Cagney <cagney@redhat.com>
8215 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8216 * frame.c (frame_register_read): New function. Return non-zero on
8218 (read_relative_register_raw_bytes_for_frame): Delete.
8219 (read_relative_register_raw_bytes): Delete.
8220 * frame.h (frame_register_read): Declare.
8221 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8223 * infcmd.c (do_registers_info): Ditto.
8224 * hppa-tdep.c: Ditto.
8225 * rs6000-tdep.c: Ditto.
8226 * h8500-tdep.c: Ditto.
8227 * mips-tdep.c: Ditto.
8228 * h8300-tdep.c: Ditto.
8229 * z8k-tdep.c: Ditto.
8231 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8233 From Jimi X <jimix@watson.ibm.com>:
8234 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8237 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8239 From Jimi X <jimix@watson.ibm.com>:
8240 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8243 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8245 From Jimi X <jimix@watson.ibm.com>:
8246 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8247 register sets for these processor variants.
8249 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8251 * regformats/reg-ppc.dat: Support FPSCR.
8253 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8255 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8256 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8257 Add fpscr as an invalid/unfetchable register.
8258 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8259 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8260 (fill_fpregset): Add support for register fpscr.
8261 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8262 (fill_gregset): Account for the fact that register ``mq'' might
8264 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8265 (registers_power): Add fpscr to register set at slot 71.
8266 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8267 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8269 2002-04-11 Michael Snyder <msnyder@redhat.com>
8271 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8272 * configure: Regenerate.
8273 * config.in: Regenerate.
8274 * acconfig.h: Add define for _SYSCALL32.
8275 * core-sol2.c: Remove #define _SYSCALL32.
8276 * solib-legacy.c: Remove #define _SYSCALL32.
8278 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8280 * stack.c (select_frame): Cleanup internal error message, do not
8283 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8285 * stack.c (select_frame): Check that selected_frame and the
8286 specified level are as expected.
8287 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8289 * frame.h (struct frame_info): Add field `level'. Update
8291 Work-in-progress PR gdb/464.
8293 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8295 * maint.c (maint_print_section_info): Rename print_section_info.
8296 (print_bfd_section_info, print_objfile_section_info): Update.
8297 * inferior.h (struct gdbarch): Add opaque declaration.
8298 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8299 * gdbarch.h: Regenerate.
8301 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8303 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8304 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8305 (kernel_u_size): Added.
8306 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8307 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8309 2002-04-04 Jim Ingham <jingham@apple.com>
8311 * valarith.c (find_size_for_pointer_math): New function, either returns
8312 the size for a pointer's target, returns 1 for void *, or errors for
8314 (value_add, value_sub): use find_size_for_pointer_math.
8316 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8318 * linux-low.c (linux_look_up_symbols): New hook.
8319 (linux_target_ops): Add linux_look_up_symbols.
8320 * remote-utils.c (decode_address): New function.
8321 (look_up_one_symbol): New function.
8322 * server.c (handle_query): Call target look_up_symbols hook.
8323 * server.h (look_up_one_symbol): Add prototype.
8324 * target.h (struct target_ops): Add look_up_symbols hook.
8326 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8328 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8329 override FP_REGNUM with frame->fp. Update copyright.
8330 * parse.c (num_std_regs, std_regs): Delete.
8331 (target_map_name_to_register): Do not search std_regs. Update
8332 function description.
8333 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8334 declarations. Update copyright.
8337 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8339 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8340 after the last symbol in a block.
8342 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8344 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8345 is non zero as a found symbol.
8347 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8349 * findvar.c: Include "builtin-regs.h".
8350 (value_of_register): Call value_of_builtin_reg when applicable.
8351 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8352 (target_map_name_to_register): Call
8353 builtin_reg_map_name_to_regnum.
8354 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8355 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8356 (builtin_regs_h): Define.
8357 (builtin-regs.o): New target.
8358 (findvar.o): Add $(builtin_regs_h).
8359 * builtin-regs.c, builtin-regs.h: New files.
8360 * std-regs.c: New file.
8361 Partial fix for PR gdb/251.
8363 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8365 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8366 it's no longer required.
8368 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8370 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8372 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8374 From Jimi X <jimix@watson.ibm.com>:
8375 * rs6000-tdep.c (rs6000_software_single_step): Use
8376 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8377 and size. Use target_insert_breakpoint() and
8378 target_remove_breakpoint() to insert and remove breakpoints
8379 instead of explicit memory reads and writes.
8381 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8383 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8384 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8385 ELF_OBJECT_FORMAT ifdef.
8387 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8389 From Jimi X <jimix@watson.ibm.com>:
8390 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8392 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8394 From Jimi X <jimix@watson.ibm.com>:
8395 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8396 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8398 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8400 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8401 s/asprintf/xasprintf/.
8402 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8404 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8406 I believe Jeff Law denies responsability for this one:
8407 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8408 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8409 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8410 Work-around for PR gdb/366.
8412 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8414 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8415 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8416 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8418 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8420 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8421 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8424 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8426 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8429 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8431 * README (Reporting Bugs in GDB): Document the bug web page as the
8432 prefered way of submitting bugs.
8435 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8437 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8439 * gdbarch.h, gdbarch.c: Re-generate.
8441 2002-04-07 Andreas Schwab <schwab@suse.de>
8443 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8444 buffer to regcache_collect.
8446 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8448 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8449 * gdbarch.c, gdbarch.h: Re-generate.
8451 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8453 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8454 declaration. Fix -Werror.
8456 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8458 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8459 * gdbarch.c: Regenerate.
8461 2002-04-05 Michael Snyder <msnyder@redhat.com>
8463 * breakpoint.c (clear_command): Rewrite middle section to
8464 combine two loops with identical control conditions.
8465 Add a cleanup to eliminate a memory leak.
8466 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8468 2002-04-05 H.J. Lu (hjl@gnu.org)
8470 * solib-svr4.c (bkpt_names): Add "__start".
8472 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8474 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8475 as test for 64 bit target.
8477 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8479 * h8500-tdep.c (h8500_write_fp): Delete function.
8480 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8481 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8482 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8484 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8485 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8487 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8488 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8489 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8490 (d10v_write_fp): Delete function.
8491 * inferior.h (write_fp, generic_target_write_fp): Delete
8493 * regcache.c (generic_target_write_fp): Delete function.
8494 (write_fp): Delete function.
8495 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8496 * gdbarch.h, gdbarch.c: Regenerate.
8497 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8498 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8499 (sparc64_write_fp): Delete declaration.
8500 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8501 (h8500_write_fp): Delete declaration.
8503 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8505 * sparc-tdep.c (sparc64_write_fp): Delete.
8506 (sparc_push_dummy_frame): Replace write_fp call with code to store
8508 (sparc_gdbarch_init): Do not initialize write_fp.
8510 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8512 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8515 2002-03-29 Jim Blandy <jimb@redhat.com>
8517 * stack.c (get_selected_block): Add new argument `addr_in_block',
8518 used to return the exact code address we used to select the block,
8520 * blockframe.c (get_frame_block, get_current_block): Same.
8521 * frame.h (get_frame_block, get_current_block,
8522 get_selected_block): Update declarations.
8523 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8524 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8526 2002-04-05 Michael Snyder <msnyder@redhat.com>
8528 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8531 2002-04-05 J. Brobecker <brobecker@gnat.com>
8533 * utils.c (xfullpath): New function.
8534 * defs.h (xfullpath): Add declaration.
8535 * source.c (openp): Use xfullpath in place of gdb_realpath to
8536 avoid resolving the basename part of filenames when the
8537 associated file is a symbolic link. This fixes a potential
8538 inconsistency between the filenames known to GDB and the
8539 filenames it prints in the annotations.
8540 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8541 to be able to match a filename with either the real filename, or
8542 the name of any symbolic link to this file.
8543 (lookup_partial_symtab): Ditto.
8545 2002-04-04 Michael Snyder <msnyder@redhat.com>
8547 * breakpoint.c: Add support for hardware breakpoints in overlays.
8548 (overlay_events_enabled): New state variable.
8549 (insert_breakpoints): Use overlay_events_enabled to decide
8550 whether to attempt to set a breakpoint at the overlay load addr.
8551 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8552 (remove_breakpoint): Use overlay_events_enabled to decide
8553 whether breakpoints need to be removed from overlay load addr.
8554 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8555 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8556 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8557 disable_overlay_breakpoints): Update overlay_events_enabled.
8559 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8561 * dwarf2read.c (struct function_range): New.
8562 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8563 (check_cu_functions): New.
8564 (read_file_scope): Initialize global function lists.
8565 Call dwarf_decode_line after processing children.
8566 (read_func_scope): Add to global function list.
8567 (dwarf_decode_lines): Call check_cu_functions everywhere
8568 record_line is called. Call record_line with a linenumber
8569 of 0 to mark sequence ends.
8571 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8573 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8574 change sync with glibc.
8576 2002-04-03 Jim Blandy <jimb@redhat.com>
8578 * configure.in: Call AC_C_INLINE.
8579 * configure: Regenerated.
8581 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8583 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8584 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8586 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8588 * NEWS: Mention gcore support on FreeBSD/i386.
8590 * fbsd-proc.c: New file.
8591 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8592 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8594 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8597 2002-03-29 Jim Blandy <jimb@redhat.com>
8599 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8600 unescaped newlines in string literals, but newer ones don't. So
8603 2002-03-26 Michael Snyder <msnyder@redhat.com>
8604 Andrew Cagney <cagney@redhat.com>
8606 * cli/cli-dump.c: New file. Dump memory to file,
8607 restore file to memory.
8608 * cli/cli-dump.h: New file.
8609 * Makefile.in: Add rules, dependencies for cli-dump.o.
8610 * NEWS: Mention new commands.
8612 2002-03-28 Michael Snyder <msnyder@redhat.com>
8614 * symfile.c (symbol_file_add): Move test for null symbols to later.
8616 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8618 From veksler at il.ibm.com:
8619 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8620 the xstrduped original path.
8623 2002-03-27 Michael Snyder <msnyder@redhat.com>
8625 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8626 * infcmd.c (_initialize_infcmd): Ditto.
8627 * language.c (_initialize_language): Ditto.
8628 * symfile.c (_initialize_symfile): Ditto.
8629 * top.c (_init_main): Ditto.
8630 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8632 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8634 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8635 vector registers handling.
8636 (skip_prologue): Handle new AltiVec instructions. Fill in new
8637 fields of frame data.
8638 (frame_get_saved_regs): Fill in information for AltiVec registers.
8640 2002-03-27 Jim Blandy <jimb@redhat.com>
8642 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8643 a function; leave this macro here to invoke that function.
8644 (symbol_init_mangled_name): Declaration for that function.
8645 * symtab.c (symbol_init_mangled_name): New function.
8647 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8649 * valarith.c: Replace strerror with safe_strerror.
8650 * tracepoint.c: Ditto.
8652 * go32-nat.c: Ditto.
8656 2002-03-27 Andreas Schwab <schwab@suse.de>
8658 * event-top.c (command_line_handler): Remove useless if.
8660 2002-03-27 Andreas Jaeger <aj@suse.de>
8662 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8665 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8667 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8668 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8669 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8670 (x86_64_linux_dr_get_status, supply_gregset),
8671 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8672 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8673 (x86_64_register_info_table): Add.
8674 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8675 (x86_64_register_raw_size, x86_64_register_virtual_type),
8676 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8677 general x86_64_register_info_table.
8678 (i386_gdbarch_init): gdbarch_register_bytes is now set
8679 dynamicaly during initialization.
8680 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8681 * gdbserver/linux-x86-64-low.c: Ditto.
8683 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8685 * gdbserver/server.c (main): Call target_signal_to_host_p
8686 and target_signal_to_host on signals received from the remote.
8687 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8688 target_signal_from_host on signals sent to the remote.
8689 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8690 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8692 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8694 * signals/signals.c: Include "server.h" in gdbserver build.
8695 (target_signal_from_name): Don't use STREQ.
8696 (_initialize_signals): Likewise. Don't include function in
8699 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8701 * signals.c: Moved to...
8702 * signals/signals.c: Here.
8703 * Makefile (signals.o): Update.
8705 2002-03-26 Jeff Law (law@redhat.com)
8707 * somread.c (som_symtab_read): Remove some commented out code and
8708 updated related comments. Do not set the minimal symbol table to
8709 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8710 in a dynamic executable.
8711 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8712 where we are unable to find the minimal symbol for the given
8715 2002-03-25 Jeff Law (law@redhat.com)
8717 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8719 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8721 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8723 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8725 * command.h: Update copyright.
8726 (struct cmd_list_element): Replace definition with opaque
8728 (enum cmd_types): Document that it will eventually be moved to
8730 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8731 (MALLOCED_REPLACEMENT): Delete macro.
8732 * Makefile.in (cli_decode_h): Add $(command_h).
8733 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8734 * top.c: Include "cli/cli-decode.h".
8735 * completer.c: Include "cli/cli-decode.h".
8736 * maint.c: Include "cli/cli-decode.h".
8737 * cli/cli-decode.h: Include "command.h".
8738 (enum command_class): Delete.
8739 (enum cmd_types): Comment out.
8740 (enum cmd_auto_boolean): Delete.
8741 (enum var_types): Delete.
8743 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8745 * cli/cli-decode.c: Include "gdb_assert.h".
8746 (add_set_or_show_cmd): New static function.
8747 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8748 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8749 all fields, such as func, from the set command.
8751 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8753 * MAINTAINERS (sh-elf): Change warning flag to -w.
8755 2002-03-23 Andrew Cagney <cagney@redhat.com>
8757 * defs.h (error): Add printf format attribute.
8758 * thread-db.c (thread_from_lwp): Fix error format string.
8759 * stack.c (parse_frame_specification): Ditto.
8760 * cli/cli-decode.c (undef_cmd_error): Ditto.
8761 * scm-lang.c (scm_lookup_name): Ditto.
8762 * tracepoint.c (trace_error): Ditto.
8763 * remote-utils.c (usage): Ditto.
8764 * remote.c (compare_sections_command): Ditto.
8767 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8769 * gdbtypes.c (append_composite_type_field): New function.
8770 (init_composite_type): New function.
8771 * gdbtypes.h (append_composite_type_field): Declare.
8772 (init_composite_type): Ditto.
8774 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8776 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8778 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8779 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8780 structure returning convention for SYSV ABI case, but not
8781 for GNU/Linux, FreeBSD, or NetBSD.
8783 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8785 * symtab.h (lookup_block_symbol): Add mangled_name argument
8788 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8789 with new mangled_name argument.
8790 * linespec.c (decode_line_1): Likewise.
8791 * valops (value_of_this): Likewise.
8792 * symtab.c (lookup_transparent_type): Likewise.
8793 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8794 (lookup_symbol): If we are given a mangled name, pass it down
8795 to lookup_symbol_aux.
8796 (lookup_block_symbol): If we are given a mangled name to check
8797 against, only return symbols which match it.
8799 2002-03-22 Christopher Faylor <cgf@redhat.com>
8801 * win32-nat.c (child_create_inferior): Check for proper shell to use
8802 here, in case the user changes it on the fly.
8803 (_initialize_inftarg): Remove shell path considerations.
8805 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8807 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8808 for gdbarch_max_register_raw_size and max_register_virtual_size.
8809 Adjust copyright year.
8811 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8813 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8814 in a function to cover the entire beginning of the function
8815 as well if it does not already.
8817 2002-03-21 Tom Rix <trix@redhat.com>
8819 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8820 (rs6000_ptrace64): Renamed from ptrace64.
8822 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8824 * gdbserver/remote-utils.c (remote_open): Don't call
8825 getprotobyname, we're all using TCP here so just use
8827 * gdbserver/gdbreplay.c (remote_open): Ditto.
8829 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8831 * regcache.c (_initialize_regcache): No need to call
8832 build_regcache() at this time; it gets called whenever
8833 the gdbarch changes.
8835 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8837 * sparc-nat.c: Include sys/param.h where possible.
8839 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8842 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8843 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8844 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8846 * stabsread.c (rs6000_builtin_type): Likewise.
8847 (read_sun_floating_type): Likewise.
8849 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8851 * stabsread.c (read_member_functions): Remove skip code for duplicate
8852 constructor/destructor methods. Use standard parsing for these
8853 methods and just do not chain them to the list of methods after
8856 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8858 * coffread.c: Remove redundant static declarations. Replace
8859 occurrences of `PTR' with `void *'.
8860 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8861 * top.h (quit_cover): Likewise.
8862 * defs.h (catch_errors): Likewise.
8864 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8866 * defs.h (XMALLOC): Define.
8867 * gdb-events.sh (XMALLOC): Delete macro.
8868 * gdb-events.c, gdb-events.h: Regenerate.
8869 * gdbarch.sh (XMALLOC): Delete macro.
8870 * gdbarch.c: Regenerate.
8871 * serial.c (XMALLOC): Delete macro.
8872 * ui-file.c (XMALLOC): Ditto.
8873 * ser-unix.h (XMALLOC): Ditto.
8874 * sh-tdep.c (XMALLOC): Ditto.
8875 * ui-out.c (XMALLOC): Ditto.
8876 * utils.c (XMALLOC): Ditto.
8877 * i386-tdep.c (XMALLOC): Ditto.
8878 * gdb-events.c (XMALLOC): Ditto.
8879 * d10v-tdep.c (XMALLOC): Ditto.
8880 * cli-out.c (XMALLOC): Ditto.
8882 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8883 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8884 * ui-file.c, ui-out.c: Ditto.
8886 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8888 * command.h (struct cmd_list_element): Add field context.
8889 (set_cmd_context, get_cmd_context): Declare.
8890 * cli/cli-decode.h: Ditto.
8891 * cli/cli-decode.c (get_cmd_context): New function.
8892 (set_cmd_context): New function.
8893 (add_cmd): Initialize context.
8894 Part of fixing PR gdb/145 and PR gdb/146.
8896 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8898 * cli/cli-decode.c (cmd_type): New function.
8899 * command.h (cmd_type): Declare.
8900 * infrun.c (set_schedlock_func): Call function cmd_type.
8901 * kod.c (kod_set_os): Call cmd_type.
8902 * cris-tdep.c (cris_version_update): Use function cmd_type.
8903 (cris_mode_update, cris_abi_update): Ditto.
8905 * command.h: (execute_cmd_post_hook): Declare.
8906 (execute_cmd_pre_hook): Declare.
8907 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8908 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8909 functions. Execute pre/post hook while ensuring that afterwords
8911 * top.c (execute_command): Use execute_cmd_post_hook, and
8912 execute_cmd_pre_hook to execute pre/post commands.
8913 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8915 (hook_stop_stub): Call execute_cmd_pre_hook.
8917 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8919 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8920 set'' and this leads to a core dump. Move xstrdup of
8921 operating_system to after check that it is not NULL.
8923 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8925 * kod.c (kod_set_os): Remove unnecessary check that
8926 ``command->type'' is set_cmd.
8928 * valprint.c (set_input_radix): Use input_radix.
8929 (set_output_radix): Use output_radix.
8930 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8933 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8935 * value.h (struct value): Delete field ``substring_addr''. Change
8936 aligner fields to force_doublest_align, force_longest_align,
8937 force_core_addr_align and force_pointer_aligh.
8939 * value.h (struct value): Fix typo in above change.
8941 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8943 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8944 to fix internal_error from ``maintenance print architecture''.
8946 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8948 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8949 for gcc versions after gcc-2.8.1.
8951 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8953 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8954 for method resolution. Restore adjustment of ``this'' pointer after
8955 calling value_struct_elt, which was accidentally removed during the
8958 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8960 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8962 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8964 * value.h (value_of_register): Update.
8966 2002-03-14 Richard Henderson <rth@redhat.com>
8968 * configure.in: Detect declaration for canonicalize_file_name.
8969 * utils.c (canonicalize_file_name): Declare, if needed.
8970 (gdb_realpath): Prefer realpath if available and usable.
8971 * config.in, configure: Rebuild.
8973 2002-03-14 Richard Henderson <rth@redhat.com>
8975 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8976 a constant array bound.
8978 * MAINTAINERS: Add myself to write-after-approval.
8980 2002-03-14 Michael Snyder <msnyder@redhat.com>
8982 * symfile.c (syms_from_objfile): Return immediately if no syms.
8983 (symbol_file_add): Return immediately if no syms.
8984 (find_sym_fns): Return immediately if no syms.
8986 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8988 * gdbserver/remote-util.c (remote_open): Print remote-side's
8989 IP address when remote debugging over the network.
8991 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8993 * config/sparc/fbsd.mh: Fix copyright.
8994 * config/sparc/fbsd.mt: Likewise.
8996 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8998 * MAINTAINERS: Fix typo in name of gdb warnings option.
8999 (x86-64): Fix formating so that this can be parsed by awk.
9001 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9003 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9004 * defs.h: Include "gdb/signals.h".
9005 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9007 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9009 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9010 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9013 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9014 Don Howard <dhoward@redhat.com>
9016 * mips-tdep.c (ST0_FR): Define.
9017 (mips2_fp_compat): New function, temporarily disabled.
9018 (mips_read_fp_register_single): New function.
9019 (mips_read_fp_register_double): New function.
9020 (mips_print_register): Use them.
9021 (do_fp_register_row): Likewise.
9023 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9025 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9028 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9030 * stabsread.c (read_member_functions): Fix is_stub test for
9031 static member functions, improve comment.
9033 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9035 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9036 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9037 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9038 commands that set boolean values.
9039 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9040 (arm_rdi_resume): Always initialize PC.
9041 (arm_rdi_open): Don't use rslt as a boolean.
9042 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9043 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9044 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9045 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9047 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9049 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9050 * configure: Rebuilt.
9052 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9054 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9055 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9057 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9059 * cli/cli-decode.c (set_cmd_completer): New function.
9060 * command.h (set_cmd_completer): Declare.
9061 * cli/cli-decode.h (set_cmd_completer): Ditto.
9063 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9064 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9065 * win32-nat.c (_initialize_inftarg): Ditto.
9066 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9067 * proc-api.c (_initialize_proc_api): Ditto.
9068 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9069 * source.c (_initialize_source): Ditto.
9070 * exec.c (_initialize_exec): Ditto.
9071 * solib.c (_initialize_solib): Ditto.
9072 * top.c (init_main): Ditto.
9073 * tracepoint.c (_initialize_tracepoint): Ditto.
9074 * symfile.c (_initialize_symfile): Ditto.
9075 * printcmd.c (_initialize_printcmd): Ditto.
9076 * infcmd.c (_initialize_infcmd): Ditto.
9077 * corefile.c (_initialize_core): Ditto.
9079 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9081 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9083 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9085 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9087 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9089 * NEWS: Update headings, 5.2 has branched.
9091 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9093 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9094 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9095 (register_addr, REGISTER_RAW_SIZE): Likewise.
9096 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9097 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9099 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9101 * MAINTAINERS (x86-64): Add myself.
9102 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9103 changed value_ptr -> struct value *
9105 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9107 * configure.host (sparc64-*-freebsd): Add.
9108 * configure.tgt: Likewise.
9109 * config/sparc/fbsd.mh: New file.
9110 * config/sparc/fbsd.mt: Likewise.
9111 * config/sparc/nm-fbsd.h: Likewise.
9112 * config/sparc/tm-fbsd.h: Likewise.
9114 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9116 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9117 regformats/reg-s390x.dat.
9119 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9121 * utils.c: Add FIXME explaining true/false problem.
9123 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9125 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9127 2002-02-28 Michael Chastain <mec@shout.net>
9129 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9131 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9133 * gdbserver/linux-s390-low.c: New file.
9134 * regformats/reg-s390.dat: New file.
9135 * regformats/reg-s390x.dat: New file.
9136 * gdbserver/configure.srv: Add S/390.
9137 * gdbserver/Makefile.in: Add S/390.
9138 * configure.tgt: Enable gdbserver for S/390.
9140 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9142 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9143 first line of the doc string for "info dos", except at the end of
9144 the sentence, since the short help stops at the first period.
9146 2002-02-28 Jason Merrill <jason@redhat.com>
9148 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9150 2002-02-27 Fred Fish <fnf@redhat.com>
9152 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9153 comment (dumy -> dummy).
9155 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9157 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9159 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9161 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9163 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9165 * gdbserver/acconfig.h: New file.
9166 * gdbserver/i387-fp.c: New file.
9167 * gdbserver/i387-fp.h: New file.
9168 * gdbserver/linux-x86-64.c: New file.
9169 * regformats/reg-x86-64.dat: New file.
9170 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9171 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9172 * gdbserver/configure.in: Add support for regsets.
9173 * gdbserver/config.in: Regenerate.
9174 * gdbserver/configure: Regenerate.
9175 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9176 * gdbserver/linux-low.h: New file.
9177 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9179 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9180 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9181 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9182 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9183 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9184 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9185 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9186 "i387-fp.h". Add PTRACE_GETREGS and friends.
9187 * gdbserver/regcache.c (supply_register): New function.
9188 (supply_register_by_name): New function.
9189 (collect_register): New function.
9190 (collect_register_by_name): New function.
9192 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9194 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9195 (config.status): Add configure.srv dependency.
9196 (server_h): Add config.h dependency.
9198 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9200 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9201 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9202 * gdbserver/configure.srv: Change i386-*-linux* to use
9205 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9207 * x86-64-tdep.c: Re-indent. Update copyright date.
9209 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9211 From Michal Ludvig <mludvig@suse.cz>:
9212 * x86-64-tdep.c (value.h): Delete.
9213 (gdb_assert.h): Include.
9214 (x86_64_register_convert_to_virtual,
9215 x86_64_register_convert_to_raw ): Add check which lets only
9216 floating-point values to be converted.
9217 (value_push): Delete.
9218 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9219 (i386_gdbarch_init): Number of register_bytes fixed.
9221 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9223 * MAINTAINERS: Add x86-64 target.
9225 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9227 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9228 * osfsolib.c (solib_map_sections): Ditto.
9229 * irix5-nat.c (solib_map_sections): Ditto.
9230 * corelow.c (gdb_check_format): Ditto.
9231 * symfile.c (symfile_bfd_open): Ditto.
9232 * solib.c (solib_map_sections): Ditto.
9235 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9237 * remote.c (_initialize_remote): By default, disable ``e'' and
9238 ``E'' step out-of-range packets.
9240 2002-02-26 Andreas Schwab <schwab@suse.de>
9242 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9243 m68k_linux_frame_saved_pc.
9244 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9246 (SIGCONTEXT_PC_OFFSET): Remove.
9247 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9248 m68k_linux_sigtramp_saved_pc): New functions.
9249 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9250 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9251 (UCONTEXT_PC_OFFSET): Define.
9252 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9253 non-RT and RT signal trampolines.
9255 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9257 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9258 (TARGET_NBPG, STACK_END_ADDR): Delete
9259 (VARIABLES_INSIDE_BLOCK): Delete.
9261 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9263 * utils.c (perror_with_name): Make string parameter constant.
9264 (print_sys_errmsg): Ditto.
9266 * defs.h (perror_with_name): Update.
9267 (print_sys_errmsg): Update.
9270 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9272 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9273 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9275 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9277 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9278 if it already matches the current architecture from the exec file.
9279 Include arch-utils.h for gdbarch_info_init prototype.
9280 * Makefile.in (rs6000-nat.o): Update dependencies.
9282 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9284 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9285 list of exported variables.
9287 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9289 * gdbserver/configure.srv: New file.
9290 * gdbserver/configure.in: Use configure.srv instead
9291 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9293 * gdbserver/configure: Regenerated.
9294 * gdbserver/terminal.h: New file.
9295 * gdbserver/Makefile.in: Update for configure changes. Remove
9296 more unneeded include paths.
9298 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9300 From wiz at danbala:
9301 * config/sparc/tm-sp64.h: Fix grammar and typos.
9304 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9306 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9307 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9308 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9309 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9310 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9311 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9312 * s390-tdep.c: Ditto.
9313 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9314 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9315 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9316 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9317 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9318 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9319 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9320 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9321 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9322 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9325 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9327 * lin-thread.c: Delete file.
9328 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9329 to gdb_proc_service.h.
9330 * configure: Re-generate.
9332 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9333 * serial.c (serial_open): Delete check for "ocd".
9336 * Makefile.in (linux-thread.o): Delete target.
9337 * linux-thread.c: Delete file.
9339 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9340 renamed SH files to be consistent.
9342 * symtab.c (sort_search_symbols): Use xfree.
9344 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9346 * arm-linux-tdep.c (arm_linux_init_abi): Register
9347 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9348 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9349 definition with undef, since we don't want the sysvr4 definition.
9350 (SKIP_TRAMPOLINE_CODE): Likewise.
9352 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9354 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9356 * configure.in: (AC_CHECK_FUNCS) Added test for
9357 canonicalize_file_name Regenerated.
9358 * config.in, configure: Regenerated.
9359 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9360 defined use canonicalize_file_name.
9362 2002-02-23 Michael Chastain <mec@shout.net>
9364 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9366 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9368 * README: Remove references to cygnus.com.
9369 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9370 dot com'' form. Remove references to cygnus.com and sourceware.
9372 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9374 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9375 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9376 1003.1-2001 no longer allows "head -1".
9377 * gdb/Makefile.in (version.c): Likewise.
9378 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9379 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9380 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9382 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9384 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9385 * command.h (cmd_cfunc_eq): Declare.
9386 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9388 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9389 ``struct cmd_list_element *''.
9390 * cli/cli-cmds.c (is_complete_command): Update. Use
9392 * top.c (execute_command): Pass the command to
9393 is_complete_command.
9394 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9396 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9398 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9399 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9400 architecture defines.
9401 * s390-tdep.c (s390_gdbarch_init): Likewise.
9403 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9405 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9406 (arm_linux_push_arguments): Likewise.
9407 (arm_linux_init_abi): Register them. Also register linux-specific
9409 (find_minsym_and_objfile): Use strcmp, not STREQ.
9410 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9411 (arm_linux_call_dummy_words): Delete declaration.
9412 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9413 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9415 (LOWEST_PC): Delete.
9417 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9419 * maint.c (print_section_info): Do not prepend `0x' to filepos
9420 output, it will be handled by local_hex_string_custom.
9422 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9424 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9425 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9426 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9428 2002-02-22 Jim Blandy <jimb@redhat.com>
9430 Indicate that the bcache functions don't change the strings
9432 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9433 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9435 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9437 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9439 2002-02-21 Christopher Faylor <cgf@redhat.com>
9441 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9442 find the complete path to a loaded DLL.
9444 2002-02-21 Fred Fish <fnf@redhat.com>
9446 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9447 that marks the end of the range of a function, enter a line number
9448 entry that has a line number of zero and a PC offset that matches
9449 the end of the function. This starts a range of PC's for which no
9450 line number information is known.
9451 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9452 PC's for which no line number info is found (line number is zero)
9453 then we didn't find any valid line information.
9454 * symtab.h: Document use of zero line number entry.
9456 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9458 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9459 (have_ptrace_getvrregs): Define for run time checks.
9460 (gdb_vrregset_t): New type for Altivec register handling.
9461 (fetch_register, store_register): Fetch/store altivec register
9463 (fetch_altivec_register, store_altivec_register): New functions.
9464 (supply_vrregset, fill_vrregset): New functions.
9465 (fetch_altivec_registers, store_altivec_registers): New functions.
9466 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9469 2002-02-21 Jiri Smid <smid@suse.cz>
9471 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9473 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9475 * Makefile.in (armnbsd-nat.o): Update dependencies.
9476 * armnbsd-nat.c (supply_gregset): New function. Common code to
9477 supply the integer register set.
9478 (supply_fparegset): New function. Similar for FPA registers.
9479 (fetch_regs, fetch_fp_regs): Use them.
9480 (fetch_core_registers): Likewise.
9481 (fetch_elfcore_registers): New function.
9482 (arm_netbsd_elfcore_fns): New core-file type specification.
9483 (_initialize_arm_netbsd_nat): Register it.
9485 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9487 * armnbsd-nat.c: Include gdbcore.h.
9488 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9489 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9490 'void' to declaration, to shut up ARI.
9491 (fetch_core_registers): Make static. Rewrite using supply_register.
9492 (arm_netbsd_core_fns): New core-file type specification.
9493 (_initialize_arm_netbsd_nat): New function.
9495 2002-02-21 Christopher Faylor <cgf@redhat.com>
9497 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9500 2002-02-20 Christopher Faylor <cgf@redhat.com>
9502 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9505 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9507 * jv-exp.y (parse_number): Change type of implicit longs
9508 to builtin_type_uint64.
9510 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9512 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9513 to be an integer instead of a `union wait'.
9515 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9517 * mips-linux-nat.c: Call the operating system GNU/Linux.
9518 * mips-linux-tdep.c: Likewise.
9519 * mips-tdep.c: Likewise.
9521 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9524 * jv-exp.y (parse_number): Handle 64-bit integers.
9526 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9528 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9529 AC_STDC_HEADERS to AC_HEADER_STDC.
9530 * gdbserver/configure: Regenerated.
9532 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9534 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9536 * sparc-tdep.c (get_longjmp_target): Likewise.
9538 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9540 * News: Add news about ARM and Multi-arch. Mention the new target
9543 2002-02-19 Jim Blandy <jimb@redhat.com>
9545 * stabsread.c (error_type_complaint): Improve error message.
9547 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9549 * gdbserver/README: Update documentation.
9550 * gdbserver/configure.in: Update configury to match documentation.
9551 * gdbserver/Makefile.in: Likewise.
9552 * gdbserver/configure: Regenerated.
9553 * gdbserver/aclocal.m4: New file, generated by aclocal.
9554 * gdbserver/config.in: New file, generated by autoheader.
9556 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9558 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9561 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9563 * arm-tdep.h (enum arm_float_model): New enum.
9564 (struct gdbarch_tdep): Add fp_model.
9565 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9566 up floating-point conversions until we know the floating-point model
9567 in use by the inferior. Don't complain about being unable to
9568 determine the ABI of the inferior when we don't have one.
9569 (arm_extract_return_value): Support different floating-point models.
9570 (arm_store_return_value): Likewise.
9571 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9573 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9575 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9577 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9578 of ``current_gdbarch''.
9580 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9582 * armnbsd-nat.c : ANSIfy all function declarations.
9583 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9584 (fetch_inferior_registers): Re-implement in terms of above.
9585 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9586 (store_inferior_registers): Re-implement in terms of above.
9588 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9590 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9592 * arm-linux-tdep.c: Likewise.
9593 * config/arm/tm-linux.h: Likewise.
9595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9597 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9598 * config/arm/nbsd.mt (TM_FILE): Delete.
9599 * config/arm/tm-nbsd.h: Delete.
9601 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9603 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9604 Initialize CALL_DUMMY_LENGTH.
9606 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9608 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9610 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9611 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9612 defines one thing and that is incorrect for this port.
9613 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9615 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9617 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9619 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9621 * win32-nat.c (display_selector): New function. Displays information
9622 about the information returned by GetThreadSelectorEntry API function.
9623 (display_selectors): New function. Displays the infomation of
9624 the selector given as argument, or of CS, DS ans FS selectors
9625 if no argument is given.
9626 ( _initialize_inftarg): Add "w32" as info prefix command.
9627 Add "info w32 selector" as command calling display_selectors.
9629 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9631 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9632 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9635 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9637 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9639 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9641 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9642 (arm_fix_call_dummy): Call it.
9643 (arm_call_dummy_breakpoint_offset): Delete.
9644 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9645 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9647 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9649 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9650 Default to func_frame_chain_valid.
9651 * gdbarch.h, gdbarch.c: Re-generate.
9652 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9654 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9656 * ppc-linux-nat.c: Update copyright.
9657 (fetch_register, store_register): Add tid parameter, don't compute
9659 (fetch_ppc_registers, store_ppc_registers): Add tid
9660 parameter. Pass it along to callees.
9661 (fetch_inferior_registers, store_inferior_registers): Compute tid
9662 here, and pass it to calleed functions.
9663 (fill_gregset, supply_fpregset): Clean up formatting.
9665 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9667 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9668 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9670 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9672 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9673 * gdbarch.c gdbarch.h: Regenerate.
9674 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9676 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9677 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9678 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9680 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9681 * arm-tdep.c (arm_get_longjmp_target): New function.
9682 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9683 this to a positive value register arm_get_longjmp_target as the
9685 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9686 (arm_linux_init_abi): Set up longjmp description in tdep.
9687 * armnbsd-nat.c (get_longjmp_target): Delete.
9688 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9689 description in tdep.
9690 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9691 (get_longjmp_target): Delete declaration.
9692 (GET_LONGJMP_TARGET): Delete.
9693 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9694 (GET_LONGJMP_TARGET): Delete.
9696 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9698 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9699 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9700 of ``current_gdbarch''.
9702 2002-02-17 Tom Tromey <tromey@redhat.com>
9704 * cli/cli-cmds.c (compare_strings): New function.
9705 (complete_command): Only print each unique item once.
9706 * completer.h (complete_line): Declare.
9707 * completer.c (complete_line): New function.
9708 (line_completion_function): Use it.
9710 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9712 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9713 * gdbarch.h, gdbarch.c: Re-generate.
9715 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9717 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9719 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9721 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9722 * valops.c (value_arg_coerce): Don't take the address of a reference
9723 to convert an argument to a reference.
9725 2002-02-15 Christopher Faylor <cgf@redhat.com>
9727 * win32-nat.c (get_image_name): New function.
9728 (handle_load_dll): Use get_image_name function.
9729 (get_child_debug_event): Avoid registering debug events until possibly
9730 execed process is started.
9731 (child_create_inferior): Allow invocation via shell so that command
9732 line redirection, etc. works ok.
9733 (_initialize_inftarg): Add new command: "set shell" to control whether
9734 a shell is used to start a process.
9736 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9738 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9739 instead of find_register_by_number.
9740 (cannot_store_register): Likewise.
9742 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9744 * dwarf2read.c: Replace fprintf (stderr, ...) by
9745 fprintf_unfiltered (gdb_stderr, ...).
9747 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9749 * gdbserver/gdbserver.1: Document --attach.
9751 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9753 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9755 * arm-tdep.c (arm_default_arm_le_breakpoint)
9756 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9757 (arm_default_thumb_be_breakpoint): New. Initialize them from
9758 traditional breakpoint defines.
9759 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9760 (arm_gdbarch_init): Initialize new breakpoint variables.
9761 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9762 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9763 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9764 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9766 (arm_netbsd_init_abi_common): ... here; new function.
9767 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9768 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9769 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9770 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9772 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9774 * arm-tdep.h (enum arm_abi): New enum.
9775 (struct gdbarch_tdep): New structure.
9776 (LOWEST_PC): Provide a default.
9777 (arm_gdbarch_register_os_abi): Declare new function.
9778 * arm-tdep.c (arm_abi_names): New array.
9779 (process_note_abi_tag_sections): New function.
9780 (get_elfosabi): New function.
9781 (arm_gdbarch_register_os_abi): New function.
9782 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9783 support for that ABI has been built in, then call the appropriate
9784 configuration routine. Use gdbarch_num_regs() to get the number
9786 (arm_dump_tdep): New function.
9787 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9788 place-holder functions.
9789 (_initialize_arm_tdep): Register them.
9790 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9792 * armnbsd-tdep.c: New file.
9793 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9794 * config/arm/nbsd.mt (TDEPFILES): Add it.
9795 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9797 * armnbsd-nat.c: Include regcache.h.
9798 * Makefile.in (armnbsd-nat.o): Update dependency list.
9800 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9802 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9804 * gdbserver/Makefile.in: Fix typos in target rules.
9806 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9808 Fix part of PR gdb/267.
9809 * linespec.c (find_methods): Handle constructors specially for now.
9811 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9813 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9815 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9816 standard_coerce_float_to_double().
9818 2002-02-14 Christopher Faylor <cgf@redhat.com>
9820 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9823 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9825 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9826 find_variant_by_name, because it confuses the multiarch
9827 framework. Return NULL if there isn't an architecture with the
9828 user supplied name, instead of forcing a different one without
9829 recording the change with the multiarch machinery.
9830 (find_variant_by_name): Delete.
9832 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9834 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9835 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9837 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9839 * stack.c (print_frame_info_base): When calling
9840 print_frame_info_listing_hook, set current_source_symtab.
9842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9844 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9845 and remove unused $(INCLUDE_DIR).
9846 Add regcache.c to OBS.
9847 Add generated register protocol files to clean target.
9848 Update dependencies for new objects, obsolete old target code.
9850 * gdbserver/linux-low.c: Remove all platform-specific code to
9851 new files. Remove various dead code. Update to use regcache
9853 * gdbserver/remote-utils.c (fromhex): Add return statement
9855 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9857 (input_interrupt): Add integer parameter to match prototype
9858 of a signal handler.
9859 (outreg): Use register_data ().
9860 (prepare_resume_reply): Use gdbserver_expedite_regs.
9861 * gdbserver/server.c (main): Dynamically allocate own_buf because
9862 PBUFSIZ is no longer constant. Use registers_to_string () and
9863 registers_from_string ().
9864 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9865 for error (), fatal (), and warning (). Update definition of
9866 PBUFSIZ to use regcache functionality. Add include guard.
9867 * gdbserver/utils.c (fatal): Add missing ``const''.
9868 (warning): New function.
9870 * regformats/regdat.sh: Include "regcache.h" in generated files.
9871 Provide init_registers () function.
9872 * regformats/regdef.h: Add prototype for set_register_cache ().
9875 * gdbserver/linux-arm-low.c: New file.
9876 * gdbserver/linux-i386-low.c: New file.
9877 * gdbserver/linux-ia64-low.c: New file.
9878 * gdbserver/linux-m68k-low.c: New file.
9879 * gdbserver/linux-mips-low.c: New file.
9880 * gdbserver/linux-ppc-low.c: New file.
9881 * gdbserver/linux-sh-low.c: New file.
9883 * gdbserver/regcache.c: New file.
9884 * gdbserver/regcache.h: New file.
9886 * gdbserver/low-linux.c: Removed obsolete file.
9888 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9890 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9891 * config/i386/linux.mt: Likewise.
9892 * config/ia64/linux.mt: Likewise.
9893 * config/m68k/linux.mh: Likewise.
9894 * config/powerpc/linux.mh: Likewise.
9895 * config/mips/linux.mt: Likewise.
9897 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9899 * config/i386/i386lynx.mh: Mark gdbserver variables
9900 as (currently) obsolete for this target.
9901 * config/i386/nbsd.mt: Likewise.
9902 * config/i386/nbsdelf.mt: Likewise.
9903 * config/m32r/m32r.mt: Likewise.
9904 * config/m68k/m68klynx.mh: Likewise.
9905 * config/m68k/nbsd.mt: Likewise.
9906 * config/m68k/sun3os4.mh: Likewise.
9907 * config/mips/vr5000.mt: Likewise.
9908 * config/ns32k/nbsd.mt: Likewise.
9909 * config/pa/hppabsd.mh: Likewise.
9910 * config/pa/hppaosf.mh: Likewise.
9911 * config/powerpc/nbsd.mt: Likewise.
9912 * config/rs6000/rs6000lynx.mh: Likewise.
9913 * config/s390/s390.mt: Likewise.
9914 * config/s390/s390x.mt: Likewise.
9915 * config/sparc/sparclynx.mh: Likewise.
9916 * config/sparc/sun4os4.mh: Likewise.
9917 * config/i386/x86-64linux.mt: Likewise.
9918 * config/sparc/linux.mh: Likewise.
9920 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9922 * configure.tgt: Configure gdbserver only for known working
9923 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9924 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9925 SUBDIRS if it is configured. Update comment for ${nativefile}.
9926 * configure: Regenerated.
9928 2002-02-13 Michael Snyder <msnyder@redhat.com>
9930 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9932 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9933 (default_gcore_mach): Just return 0, work around a problem in bfd.
9934 (default_gcore_target): OK to return NULL if exec_bfd is null.
9935 (make_mem_sec): Use a cast, avoid a warning.
9937 * procfs.c (find_memory_regions_callback): Use a cast instead of
9938 calling host_pointer_to_address (which complains if
9939 sizeof (host pointer) != sizeof (target pointer)).
9940 (procfs_make_note_section): Avoid overflow in psargs string.
9942 * procfs.c (procfs_make_note_section): Make the default
9943 implementation return an error.
9945 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9947 * procfs.c (procfs_make_note_section): Provide a default definition
9948 (for alpha-dec-osf4.0f). Fix typos.
9950 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9952 * linux-proc.c: Add include of regcache.h.
9953 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9955 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9957 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9958 * memattr.c (create_mem_region): Disallow useless empty region.
9959 Regions are half-open intervals, so allow [A..B) [B..C) as
9962 2002-02-13 Michael Chastain <mec@shout.net>
9964 * defs.h: Kill CONST_PTR.
9965 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9966 * c-lang.c (c_builtin_types): Likewise.
9967 * ch-lang.c (ch_builtin_types): Likewise.
9968 * f-lang.c (f_builtin_types): Likewise.
9969 * language.c (unknown_builtin_types): Likewise.
9970 * m2-lang.c (m2_builtin_types): Likewise.
9971 * p-lang.c (pascal_builtin_types): Likewise.
9972 * scm-lang.c (c_builtin_types): Likewise.
9974 2002-02-13 Keith Seitz <keiths@redhat.com>
9976 * arm-tdep.h (arm_get_next_pc): Add declaration.
9978 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9980 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9981 with other related struct-returning functions.
9982 (arm_extract_struct_value_address): New function.
9983 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9984 initialize float_format, double_format and long_double_format as
9985 appropriate to the endianness of the target.
9986 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9987 (arm_use_struct_convention): Delete declaration.
9988 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9990 2002-02-13 Keith Seitz <keiths@redhat.com>
9992 * defs.h (core_addr_to_string_nz): New function.
9994 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9996 Apply missing bits of 2002-01-15 patch.
9997 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9998 (fill_fpregset): Use i387_fill_fsave.
10000 2002-02-12 Keith Seitz <keiths@redhat.com>
10002 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10003 (core_addr_to_string_nz): New function.
10005 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10007 * arm-linux-nat.c: Really include arm-tdep.h.
10008 * config/arm/tm-linux.h (struct type, struct value): Declare.
10010 2002-02-11 Michael Snyder <msnyder@redhat.com>
10012 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10013 (gcore section): Ifdef for Solaris and Unixware only.
10014 (procfs_do_thread_registers): Unixware needs one lwpstatus
10015 per thread (not one prstatus or pstatus).
10016 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10017 not over all gdb threads. For unixware, call elfcore_write_pstatus
10018 once before iterating over threads.
10020 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10022 * arm-tdep.h: New file.
10023 * arm-tdep.c: Include arm-tdep.h.
10024 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10025 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10026 (arm_print_float_info, arm_register_type, convert_to_extended)
10027 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10028 (arm_extract_return_value, arm_register_name): Make static.
10029 (arm_software_single_step): Similarly. Fix types in declaration.
10030 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10031 (arm_store_return_value, arm_store_struct_return): New functions.
10032 (arm_gdbarch_init): Register the above functions. Also register
10033 call_dummy_start_offset, sizeof_call_dummy_words,
10034 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10035 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10036 max_register_virtual_size, register_size. Set up
10037 prologue_cache.saved_regs here, rather than ...
10038 (_initialize_arm_tdep): ... here.
10039 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10041 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10042 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10043 (arm_print_float_info, arm_register_type, convert_to_extended)
10044 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10045 (arm_extract_return_value, arm_register_name): Delete declarations.
10046 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10047 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10048 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10049 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10050 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10051 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10052 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10053 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10054 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10055 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10056 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10057 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10059 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10060 * remote-rdi.c remote-rdp.c: Likewise.
10061 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10062 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10063 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10066 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10067 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10068 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10069 from non-ARM_ prefixed definitions.
10070 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10072 * remote-rdi.c remote-rdp.c: Likewise.
10073 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10075 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10077 * arm-tdep.c (arm_frameless_function_invocation)
10078 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10079 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10080 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10081 (arm_pop_frame, arm_get_next_pc): Make static.
10082 (arm_gdbarch_init): Register above in gdbarch structure.
10083 (arm_read_fp): Renamed from arm_target_read_fp.
10084 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10085 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10086 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10087 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10088 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10089 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10090 (arm_pc_is_thumb_dummy): Delete declarations.
10091 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10092 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10093 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10094 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10096 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10098 * symtab.c (compare_search_syms): New function.
10099 (sort_search_symbols): New function.
10100 (search_symbols): Sort symbols after searching rather than
10103 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10105 * NEWS: Linux -> GNU/Linux.
10107 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10109 * gdbarch.sh: For for level one methods, disallow a definition
10110 when partially multi-arched. Add comments explaining rationale.
10111 * gdbarch.h: Re-generate.
10113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10115 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10116 multi-arch partial.
10118 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10120 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10121 field. Use diff -u.
10122 * gdbarch.c: Re-generate.
10124 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10126 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10127 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10130 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10132 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10133 multi-arch partial.
10134 (PUSH_ARGUMENTS): Switch to using predefault.
10135 * gdbarch.c: Regenerate.
10137 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10139 * valops.c (PUSH_ARGUMENTS): Delete definition.
10140 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10141 partial. Default to default_push_arguments.
10142 * gdbarch.h, gdbarch.c: Regenerate.
10144 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10146 * defs.h (throw_exception): Rename return_to_top_level. Update
10148 * utils.c (error_stream, internal_verror, quit): Ditto.
10149 * top.c (throw_exception, catcher): Ditto.
10150 * sparclet-rom.c (sparclet_load): Ditto.
10151 * remote.c (interrupt_query, minitelnet): Ditto.
10152 * remote-sds.c (interrupt_query): Ditto.
10153 * remote-mips.c (mips_error, mips_kill): Ditto.
10154 * ocd.c (interrupt_query): Ditto.
10155 * monitor.c (monitor_interrupt_query): Ditto.
10156 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10157 * target.h: Update comment.
10159 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10161 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10163 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10164 default_double_format.
10165 * gdbarch.h, gdbarch.c: Re-generate.
10166 * findvar.c (floatformat_unknown): Delete variable definition.
10167 * doublest.h (floatformat_unknown): Delete variable declaration.
10169 2002-02-09 Jim Blandy <jimb@redhat.com>
10171 * stabsread.c (read_type): Add code to parse Sun's syntax for
10172 prototyped function types.
10174 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10176 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10177 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10179 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10181 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10182 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10183 now _initialize_xcoffsolib gets called again and overrides the
10184 commands from solib.c in a native configuration.
10186 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10188 * doublest.c (store_typed_floating): Don't try to return a value.
10191 2002-02-08 Jim Blandy <jimb@redhat.com>
10193 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10194 is prototyped and has no arguments, print its argument list as
10197 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10199 * MAINTAINERS (write-after-approval): Add myself.
10200 (paper-trail): I've escaped!
10202 2002-02-08 Christopher Faylor <cgf@redhat.com>
10204 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10206 (_initialize_check_for_gdb_ini): Ditto.
10208 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10210 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10211 xaprintf -> xasprintf.
10213 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10215 * win32-nat.c: Remove use of printf and sprintf functions.
10217 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10219 * arm-tdep.c (arm_frame_chain_valid): Make static.
10220 (arm_push_arguments): Likewise.
10221 (arm_gdbarch_init): New function.
10222 (_initialize_arm_tdep): Call it.
10223 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10224 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10225 (FRAME_CHAIN_VALID): Delete.
10226 (arm_frame_chain_valid): Delete declaration.
10227 (PUSH_ARGUMENTS): Delete.
10228 (arm_push_arguments): Delete declaration.
10229 (CALL_DUMMY_P): Delete.
10231 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10232 Corinna Vinschen <vinschen@redhat.com>
10234 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10235 on builtin float types.
10237 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10239 * utils.c: Include <curses.h> before "bfd.h".
10240 * tui/tui-hooks.c: Likewise.
10241 * tui/tui.c: Likewise.
10242 * tui/tuiCommand.c: Likewise.
10243 * tui/tuiData.c: Likewise.
10244 * tui/tuiDataWin.c: Likewise.
10245 * tui/tuiDisassem.c: Likewise.
10246 * tui/tuiGeneralWin.c: Likewise.
10247 * tui/tuiIO.c: Likewise.
10248 * tui/tuiLayout.c: Likewise.
10249 * tui/tuiRegs.c: Likewise.
10250 * tui/tuiSource.c: Likewise.
10251 * tui/tuiSourceWin.c: Likewise.
10252 * tui/tuiStack.c: Likewise.
10253 * tui/tuiWin.c: Likewise.
10255 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10258 to include space for pseudoregs as well. Update loops accordingly.
10259 (sh_fp_frame_init_saved_regs): Ditto.
10260 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10262 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10264 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10265 Add Richard Earnshaw to Arm maintainers.
10267 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10269 * defs.h (warning_begin): Delete declaration.
10271 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10274 2002-02-07 Michael Snyder <msnyder@redhat.com>
10276 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10277 Logic bug, remove misplaced else.
10279 2002-02-07 Klee Dienes <klee@apple.com>
10281 * fork-inferior.c (fork_inferior): Add '!' to the list of
10282 characters that need to be quoted when building a string for the
10283 shell. Quote '!' specifically with a backslash, since CSH chokes
10284 when trying to evaluate "str!str".
10286 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10288 * rdi-share/host.h: Only provide a typedef for bool if it is not
10291 2002-02-04 Michael Snyder <msnyder@redhat.com>
10293 * breakpoint.h (enum bptype): Add new overlay event bp type.
10294 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10296 * breakpoint.c (create_internal_breakpoint): New function.
10297 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10298 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10299 (create_thread_event_breakpoint): Ditto.
10300 (create_solib_event_breakpoint): Ditto.
10301 (create_overlay_event_breakpoint): New function.
10302 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10303 (update_breakpoints_after_exec): Delete and re-initialize
10304 overlay event breakpoints after an exec. Add FIXME comment
10305 about longjmp breakpoint.
10306 (print_it_typical): Ignore overlay event breakpoints.
10307 (print_one_breakpoint): Ditto.
10309 (bpstat_what): Do not stop for overlay event breakpoints.
10310 (delete_breakpoint): Don't delete overlay event breakpoints.
10311 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10312 (breakpoint_re_set): Re-create overlay event breakpoint.
10314 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10315 (overlay_manual_command): Disable overlay breakpoints.
10316 (overlay_off_command): Disable overlay breakpoints.
10318 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10320 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10321 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10322 to here from config/tm-arm.h.
10323 (coff_sym_is_thumb): Make static.
10324 (arm_elf_make_msymbol_special): New function.
10325 (arm_coff_make_msymbol_special): New function.
10326 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10327 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10328 (coff_sym_is_thumb): Delete declaration.
10329 (arm_elf_make_msymbol_special): Declare.
10330 (arm_coff_make_msymbol_special): Declare.
10331 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10332 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10334 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10336 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10338 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10340 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10341 * gdbarch.c gdbarch.h: Regenerate.
10342 * arch-utils.c (default_print_float_info): New function.
10343 * arch-utils.h (default_print_float_info): Prototype it.
10344 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10345 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10346 (PRINT_FLOAT_INFO): Document it.
10348 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10349 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10350 (PRINT_FLOAT_INFO): Define.
10352 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10354 * win32-nat.c (_initialize_check_for_gdb_ini):
10355 Add typecast to sprintf argument to suppress a warning.
10357 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10359 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10360 to allow easier handling of pass state.
10361 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10362 that gives exception name and address.
10363 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10364 and set last_sig value to ourstatus->value.sig. Some missing
10366 (child_continue): Correctly report continue_status.
10367 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10368 TARGET_SIGNAL_0 (new default value).
10369 (child_resume): consider sig argument passed to decide if
10370 the exception should be passed to debuggee or not.
10372 2002-02-05 Michael Snyder <msnyder@redhat.com>
10374 * regcache.c (fetch_register): Call target_fetch_register
10375 only if we don't call FETCH_PSEUDO_REGISTER.
10376 (store_register): Call target_store_register only if we
10377 don't call STORE_PSEUDO_REGISTER.
10379 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10381 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10382 ELF_MAKE_MSYMBOL_SPECIAL.
10383 * gdbarch.c, gdbarch.h: Regenerate.
10384 * arch-utils.c (default_make_msymbol_special): New function.
10385 * arch-utils.h (default_make_msymbol_special): Export.
10386 * elfread.c (elf_symtab_read): Compile use of
10387 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10389 * coffread.c (coff_symtab_read): Ditto, for
10390 COFF_MAKE_MSYMBOL_SPECIAL.
10392 2002-02-05 Jim Blandy <jimb@redhat.com>
10394 * solib-svr4.c (svr4_truncate_ptr): New function.
10395 (svr4_relocate_section_addresses): Do the address arithmetic with
10396 the appropriate truncation for target addresses, even when
10397 CORE_ADDR is larger than a target address.
10399 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10401 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10404 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10406 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10409 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10411 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10413 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10415 * gdbserver/linux-low.c: Remove unused include files.
10417 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10419 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10420 (read_inferior_memory): Use it.
10421 (write_inferior_memory): Likewise.
10423 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10425 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10426 grubbing through sys_errlist.
10428 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10430 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10432 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10433 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10435 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10437 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10438 (do_sfunc, set_cmd_sfunc): New functions.
10440 * command.h (struct cmd_list_element): Add field func.
10441 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10442 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10443 * cli/cli-decode.h: Ditto.
10445 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10446 (help_all, help_cmd_list): Ditto.
10447 (find_cmd, complete_on_cmdlist): Ditto.
10448 * top.c (execute_command): Ditto.
10450 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10453 * infcmd.c (notice_args_read): Fix function signature.
10455 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10456 * cli/cli-decode.c (add_set_cmd): Ditto.
10457 * utils.c (initialize_utils): Ditto.
10458 * maint.c (_initialize_maint_cmds): Ditto.
10459 * infrun.c (_initialize_infrun): Ditto.
10460 * demangle.c (_initialize_demangler): Ditto.
10461 * remote.c (add_packet_config_cmd): Ditto.
10462 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10463 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10464 * proc-api.c (_initialize_proc_api): Ditto.
10465 * kod.c (_initialize_kod): Ditto.
10466 * valprint.c (_initialize_valprint): Ditto.
10467 * top.c (init_main): Ditto.
10468 * infcmd.c (_initialize_infcmd): Ditto.
10469 * corefile.c (_initialize_core): Ditto.
10470 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10471 * arch-utils.c (initialize_current_architecture): Ditto.
10472 (_initialize_gdbarch_utils): Ditto.
10473 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10475 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10476 * wince.c (_initialize_inftarg): Ditto.
10477 * symfile.c (_initialize_symfile): Ditto.
10478 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10479 * language.c (_initialize_language): Ditto.
10480 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10482 2002-02-04 Michael Snyder <msnyder@redhat.com>
10484 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10486 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10488 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10489 Add rules for building the register data files.
10491 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10493 * regformats/regdat.sh: Add braces to the definition of
10494 expedite_regs_${arch}.
10496 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10498 * regformats/regdef.h (struct reg): Add comment describing the
10499 requirements for offset and size fields.
10501 2002-02-04 Andreas Schwab <schwab@suse.de>
10503 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10504 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10506 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10508 * gdbarch.sh (copyright): Update years in generated header.
10509 (SMASH_TEXT_ADDRESS): Add rule.
10510 * gdbarch.h, gdbarch.c: Re-generate.
10511 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10512 * dbxread.c: Likewise.
10513 * dwarfread.c: Likewise.
10514 * elfread.c: Likewise.
10515 * somread.c: Likewise.
10517 * arm-tdep.c (arm_smash_text_address): New function.
10518 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10520 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10522 Add support for hardware watchpoints on win32 native.
10523 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10524 CONTEXT_DEBUG_REGISTERS.
10525 (dr variable): New variable. Static array containing a local copy
10526 of debug registers.
10527 (debug_registers_changed): New variable. Reflects when debug registers
10528 are changed and need to be written to inferior.
10529 (debug_registers_used): New variable. Reflects when any debug register
10530 was set, used when new threads are created.
10531 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10533 (thread_rec): Set dr array if id is the thread of current_event .
10534 (child_continue, child_resume): Change the debug registers for all
10535 threads if debug_registers_changed.
10536 (child_add_thread): Change the debug registers if debug_registers_used.
10537 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10538 Link nm.h to new nm-cygwin.h file.
10539 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10540 of hardware registers.
10542 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10544 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10545 Restore behavour broken by 2002-01-20 Andrew Cagney
10546 <ac131313@redhat.com> IEEE_FLOAT removal.
10548 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10550 * c-valprint.c (c_val_print): Pass a proper valaddr to
10551 cp_print_class_method.
10552 * valops.c (search_struct_method): If there is only one method
10553 and args is NULL, return that method.
10555 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10557 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10558 accessing tag_name directly.
10560 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10562 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10563 of accessing tag_name directly.
10565 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10568 * gdbtypes.c (replace_type): New function.
10569 * gdbtypes.h (replace_type): Add prototype.
10570 * stabsread.c (read_type): Use replace_type.
10572 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10574 * Makefile.in (memattr.o): Add missing dependencies rule.
10576 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10578 * breakpoint.c (break_at_finish_command): Really export.
10579 (break_at_finish_at_depth_command): Ditto.
10580 (tbreak_at_finish_command): Ditto.
10581 * hppa-tdep.c: Include completer.h.
10582 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10583 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10585 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10587 * utils.c (do_write): New function.
10588 (error_stream): Rewrite combining the code from error_begin and
10590 (verror): Rewrite using error_stream.
10591 (error_begin): Delete function.
10593 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10595 * utils.c (error_begin): Make static.
10596 * defs.h (error_begin): Delete declaration.
10598 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10599 (decode_line_1): Use cplusplus_error instead of error_begin,
10600 cplusplus_hint and return_to_top_level.
10601 * coffread.c (coff_symfile_read): Use error instead of error_begin
10602 and return_to_top_level.
10603 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10605 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10607 * language.h (type_error, range_error): Make string parameter
10609 * language.c (warning_pre_print): Delete extern declaration.
10610 * dwarfread.c (warning_pre_print): Ditto.
10611 * language.c (type_error, range_error): Rewrite to use verror and
10612 vwarning instead of warning_begin.
10614 2002-02-01 Michael Snyder <msnyder@redhat.com>
10616 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10617 (set_ignore_count): Move misplaced comment back where it belongs.
10619 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10621 * command.h (NO_FUNCTION): Delete macro.
10622 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10623 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10624 * tracepoint.c (_initialize_tracepoint): Ditto.
10625 * cli/cli-decode.c (add_set_cmd): Ditto.
10626 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10628 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10630 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10631 Update ``this'' pointer when calling virtual functions.
10633 2002-02-01 Michael Snyder <msnyder@redhat.com>
10635 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10636 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10638 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10640 * regformats/reg-arm.dat: New file.
10641 * regformats/reg-i386.dat: New file.
10642 * regformats/reg-ia64.dat: New file.
10643 * regformats/reg-m68k.dat: New file.
10644 * regformats/reg-mips.dat: New file.
10645 * regformats/reg-ppc.dat: New file.
10646 * regformats/reg-sh.dat: New file.
10647 * regformats/regdef.h: New file.
10648 * regformats/regdat.sh: New file.
10650 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10652 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10653 (arm_frame_args_address, arm_frame_locals_address): New functions.
10654 (arm_frame_num_args): New function.
10655 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10656 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10657 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10659 2002-01-31 Michael Snyder <msnyder@redhat.com>
10661 * breakpoint.c (break_at_finish_command): Export.
10662 (break_at_finish_at_depth_command): Export.
10663 (tbreak_at_finish_command): Export.
10664 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10665 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10666 "txbreak" commands, which are HPPA specific.
10668 * printcmd.c (disassemble_command): Remove an ancient
10669 artifact of an old merge.
10671 * symfile.h (enum overlay_debugging_state):
10672 Define enum constant values for overlay mode.
10673 * symfile.c (overlay_debugging): Use enums instead of literals.
10674 (overlay_is_mapped, overlay_auto_command,
10675 overlay_manual_command): Ditto.
10677 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10678 breakpoint_here_p, breakpoint_inserted_here_p,
10679 breakpoint_thread_match, bpstat_stop_status,
10680 describe_other_breakpoints, check_duplicates, clear_command):
10681 Coding standard fixes.
10683 * target.c (target_xfer_memory): Add spaces, coding standard.
10684 (do_xfer_memory): Add missing line to trust-readonly
10685 code: check bfd SEC_READONLY flag for section.
10687 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10689 * PROBLEMS: Fix typo, 5.1->5.1.1.
10691 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10693 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10694 data symbols, since we search based on textlow and texthigh.
10695 (find_pc_sect_symtab): Likewise.
10697 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10699 * defs.h (vwarning): Declare.
10700 * utils.c (vwarning): New function.
10701 (warning): Call vwarning.
10702 (warning_begin): Delete function.
10704 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10705 the warning message.
10706 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10709 2002-01-30 Michael Snyder <msnyder@redhat.com>
10711 * NEWS: Mention "set trust-readonly-sections" command.
10712 Mention generate-core-file command.
10714 2002-01-15 Michael Snyder <msnyder@redhat.com>
10716 * target.c: New command, "set trust-readonly-sections on".
10717 (do_xfer_memory): Honor the suggestion to trust readonly sections
10718 by reading them from the object file instead of from the target.
10719 (initialize_targets): Register command "set trust-readonly-sections".
10721 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10723 * parse.c (target_map_name_to_register): Simplify, search regs and
10724 pseudo-regs using a single loop.
10726 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10728 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10730 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10732 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10733 * config/i386/i386v42mp.mh: Add i387-nat.o .
10734 * i386v4-nat.c: Include i387-nat.h.
10735 (supply_fpregset): Use i387_supply_fsave.
10736 (fill_fpregset): Use i387_fill_fsave.
10738 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10740 * arm-tdep.c (arm_call_dummy_words): Define.
10741 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10742 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10743 (CALL_DUMMY_WORDS): Define.
10744 (arm_call_dummy_words): Declare.
10745 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10746 (arm_linux_call_dummy_words): Declare.
10748 2002-01-30 Andreas Schwab <schwab@suse.de>
10750 * m68klinux-nat.c: Fix last change to use regcache_collect
10751 instead of referencing registers[] directly.
10753 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10755 * parse.c (target_map_name_to_register): Delete code wrapped in
10756 #ifdef REGISTER_NAME_ALIAS_HOOK.
10758 2002-01-28 Michael Snyder <msnyder@redhat.com>
10760 * regcache.c (legacy_read_register_gen): Need to be able to
10761 read pseudo-register as well as real register.
10762 (legacy_write_register_gen): Ditto.
10764 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10766 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10767 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10768 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10769 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10770 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10771 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10772 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10773 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10774 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10775 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10776 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10777 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10778 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10779 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10780 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10781 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10782 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10783 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10784 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10785 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10787 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10789 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10790 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10791 (initialize_current_architecture): Update target_byte_order using
10792 information from BFD.
10793 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10794 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10796 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10798 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10799 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10801 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10802 #ifdef INVALID_FLOAT.
10803 * infcmd.c (do_registers_info): Ditto.
10804 * values.c (unpack_double): Ditto. Add comment.
10806 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10807 already commented out.
10809 2002-01-26 Andreas Schwab <schwab@suse.de>
10811 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10812 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10813 registers and add support for PTRACE_GETREGS.
10815 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10817 GDB 5.1.1 released from 5.1 branch.
10818 * NEWS: Add 5.1.1 news.
10819 * README: Sync with 5.1 branch.
10821 2002-01-23 Fred Fish <fnf@redhat.com>
10823 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10824 stabstring on initial malloc. Reallocing will copy it for us,
10827 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10829 * Makefile.in (hpread_h): Delete.
10830 (HFILES_NO_SRCDIR): Remove hpread.h.
10831 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10832 (hpread.o): Update dependencies.
10833 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10835 * hp-psymtab-read.c: Remove file.
10836 * hp-symtab-read.c: Remove file.
10837 * hpread.h: Remove file.
10839 * hpread.c: Merge all contents of hp-psymtab-read.c,
10840 hp-symtab-read.c and hpread.h into this file, as it was prior to
10843 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10844 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10845 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10846 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10848 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10850 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10851 fill_gregset): Call gdbarch_tdep() just once, assign result to
10852 variable and use that, instead of calling the function several
10855 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10857 * configure.host: Accept sparcv9 as alias for sparc64.
10858 * configure.tgt: Likewise.
10860 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10862 * solib-aix5.c (build_so_list_from_mapfile)
10863 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10864 arguments is not reversed.
10865 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10866 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10868 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10870 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10871 modified version of obsolete sh_fetch_pseudo_register.
10872 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10873 (sh4_register_read): New function.
10874 (sh_pseudo_register_write): New function. Renamed and modified
10875 version of obsolete sh_store_pseudo_register.
10876 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10877 (sh4_register_write): New function.
10878 (sh_gdbarch_init): Remove setting of gdbarch function
10879 fetch_pseudo_register and store_pseudo_register. Remove setting of
10880 register_convert_to_raw, register_convert_to_virtual,
10881 register_convertible.
10882 (sh_sh4_register_convertible): Delete. No longer needed. All is
10883 taken care by architecture specific functions
10884 register_read/register_write.
10885 (sh_sh4_register_convert_to_virtual): Make static.
10886 (sh_sh4_register_convert_to_raw): Ditto.
10888 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10890 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10891 (floatformat_is_nan, floatformat_mantissa): Ditto.
10893 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10894 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10895 builtin_type_ieee_double_little,
10896 builtin_type_ieee_double_littlebyte_bigword,
10897 builtin_type_m68881_ext, builtin_type_i960_ext,
10898 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10899 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10900 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10901 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10903 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10905 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10906 parameter. Set frameless flag if it exists and depended of
10907 whether the scanned function is frameless or not.
10908 (xstormy16_skip_prologue): If function is frameless, return
10909 result of xstormy16_scan_prologue().
10910 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10913 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10915 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10916 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10917 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10918 sh_sh4_register_byte, sh_sh4_register_raw_size,
10919 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10920 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10921 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10922 sh_store_pseudo_register, sh_do_pseudo_register): Call
10923 gdbarch_tdep() just once, assign result to variable and use that,
10924 instead of calling the function several times.
10926 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10928 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10929 macros instead of LAST_FPU_CTRL_REGNUM.
10930 (store_register): Likewise.
10932 2002-01-21 Jim Blandy <jimb@redhat.com>
10934 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10935 is up-to-date before running the program, not just when a program
10938 2002-01-21 Fred Fish <fnf@redhat.com>
10940 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10941 when we have found all instructions we are looking for.
10943 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10945 * arm-tdep.c (arm_register_name): New function.
10946 (arm_registers_names): Make static.
10947 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10948 (arm_register_name): Declare.
10949 (REGISTER_NAME): Use it.
10951 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10952 Kevin Buettner <kevinb@redhat.com>
10954 Convert arm targets to new FRAME interface.
10955 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10956 (arm_frame_find_save_regs): Delete.
10957 (arm_frame_init_saved_regs): New.
10958 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10959 Allocate extra_info as required. Convert all uses of fsr.regs
10960 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10962 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10963 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10964 (check_prologue_cache, save_prologue_cache): Likewise.
10965 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10966 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10967 (FRAME_FIND_SAVED_REGS): Delete.
10968 (arm_frame_find_saved_regs): Delete prototype.
10969 (arm_frame_init_saved_regs): New prototype.
10970 (FRAME_INIT_SAVED_REGS): Define.
10972 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10974 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10976 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10978 From Jeff Law <law@redhat.com>:
10979 * infttrace.c: Include <sys/pstat.h>.
10980 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10981 exec file if the ttrace equivalent fails.
10983 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10985 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10986 (closeLogFile): Ditto.
10988 2002-01-20 Michael Chastain <mec@shout.net>
10990 * top.c (print_gdb_version): Bump copyright year to 2002.
10992 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10994 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10995 Zannoni and Eli Zaretskii.
10997 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10999 * buildsym.c: Update copyright years.
11000 * c-typeprint.c: Likewise.
11001 * dwarf2read.c: Likewise.
11002 * f-typeprint.c: Likewise.
11003 * gdbtypes.c: Likewise.
11004 * gdbtypes.h: Likewise.
11005 * hp-symtab-read.c: Likewise.
11006 * hpread.c: Likewise.
11007 * mdebugread.c: Likewise.
11008 * p-typeprint.c: Likewise.
11010 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11012 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11013 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11014 byte-order selectable.
11015 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11016 * arch-utils.c: Ditto.
11017 (set_endian): Ditto.
11018 (set_endian_from_file): Ditto.
11019 * gdbserver/low-sim.c (create_inferior): Ditto.
11020 * gdbarch.sh: Ditto.
11021 * gdbarch.h: Re-generate.
11022 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11023 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11024 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11025 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11026 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11027 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11028 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11029 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11031 * config/mips/tm-wince.h: Remove #undef of macro
11032 TARGET_BYTE_ORDER_SELECTABLE.
11033 * config/sh/tm-wince.h: Ditto.
11035 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11037 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11038 member function fields. Add accessor macro
11039 TYPE_FN_FIELD_ARTIFICIAL.
11040 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11041 * c-typeprint.c (c_type_print_base): Skip artificial member
11044 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11046 * f-typeprint.c: Delete unused function f_type_print_args.
11047 * p-typeprint.c: Delete unused function pascal_type_print_args.
11049 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11051 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11052 comment. Add ``artificial'' to ``union field_location''.
11054 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11056 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11057 * mdebugread.c (parse_symbol): Likewise.
11058 * stabsread.c (define_symbol): Likewise.
11059 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11060 initializing TYPE_FIELD_BITPOS to n (obsolete).
11061 (hpread_doc_function_type): Likewise.
11062 * hpread.c (hpread_function_type): Likewise.
11064 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11066 * configure.in (host_makefile_frag): Only require a host makefile
11067 fragment when a native build.
11068 * configure: Re-generate.
11070 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11072 * doublest.h (floatformat_from_type): Declare.
11073 * doublest.c (floatformat_from_type): New function.
11074 (convert_typed_floating): Use.
11076 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11077 call to function floatformat_from_type.
11079 * gdbarch.sh (IEEE_FLOAT): Delete.
11080 * gdbarch.h, gdbarch.c: Re-generate.
11081 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11082 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11083 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11084 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11085 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11086 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11087 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11088 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11089 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11090 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11091 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11092 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11094 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11095 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11096 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11097 * sh-tdep.c (sh_gdbarch_init): Ditto.
11098 * mips-tdep.c (mips_gdbarch_init): Ditto.
11099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11100 * cris-tdep.c (cris_gdbarch_init): Ditto.
11102 2002-01-20 Jiri Smid <smid@suse.cz>
11104 * configure.host, configure.tgt: Support x86-64.
11105 * NEWS: Note new target x86-64.
11107 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11108 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11109 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11110 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11111 x86-64-linux-nat.o): Fix dependencies.
11113 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11115 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11116 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11117 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11118 * config/sparc/xm-sun4os4.h: Delete file.
11119 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11121 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11123 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11124 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11125 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11126 * config/i386/i386lynx.mh (XM_FILE): Delete.
11127 * config/rs6000/xm-rs6000ly.h: Delete file.
11128 * config/sparc/xm-sparclynx.h: Delete file.
11129 * config/m68k/xm-m68klynx.h: Delete file.
11130 * config/i386/xm-i386lynx.h: Delete file.
11131 * config/xm-lynx.h: Delete file.
11132 * config/djgpp/fnchange.lst: Update.
11134 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11136 * alpha-tdep.c (alpha_register_byte): New function.
11137 (alpha_register_raw_size): Ditto.
11138 (alpha_register_virtual_size): Ditto.
11139 (alpha_skip_prologue_internal): Renamed from
11140 alpha_skip_prologue.
11141 (alpha_skip_prologue): New version that calls
11142 alpha_skip_prologue_internal.
11143 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11144 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11145 second argument from alpha_skip_prologue.
11146 (REGISTER_BYTE): Use alpha_register_byte.
11147 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11148 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11149 (FRAMELESS_FUNCTION_INVOCATION): Use
11150 generic_frameless_function_invocation_not.
11151 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11152 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11154 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11156 * config/mips/xm-news-mips.h: Delete file.
11157 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11159 * config/m88k/xm-m88k.h: Delete file.
11160 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11161 * config/m88k/xm-delta88v4.h: Ditto.
11162 * config/m88k/xm-delta88.h: Ditto.
11164 * config/alpha/xm-fbsd.h: Delete file.
11165 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11167 * config/sparc/xm-sparc.h: Delete file.
11168 * Makefile.in (xm-sun4os4.h): Delete dependency.
11169 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11170 * config/sparc/xm-sun4os4.h: Ditto.
11171 * config/sparc/xm-linux.h: Ditto.
11173 * config/i386/xm-windows.h: Delete file.
11175 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11177 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11178 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11180 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11182 * alpha-tdep.c (alpha_call_dummy_words): New.
11183 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11184 (CALL_DUMMY_P): Define.
11185 (CALL_DUMMY_WORDS): Define.
11186 (SIZEOF_CALL_DUMMY_WORDS): Define.
11188 2002-01-19 Per Bothner <per@bothner.com>
11190 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11191 isn't NULL, which can happen with some gcj-3.x-produced code.
11193 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11195 * alpha-tdep.c (alpha_register_virtual_type): New function.
11196 (alpha_init_frame_pc_first): Ditto.
11197 (alpha_fix_call_dummy): Ditto.
11198 (alpha_store_struct_return): Ditto.
11199 (alpha_extract_struct_value_address): Ditto.
11200 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11201 alpha_register_virtual_type.
11202 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11203 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11204 alpha_extract_struct_value_address.
11205 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11206 (INIT_FRAME_PC): Use init_frame_pc_noop.
11207 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11209 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11211 * i386gnu-nat.c: Include "i386-tdep.h".
11212 (fetch_fpregs): Simplify code dealing with uninitialized floating
11213 point states such that it doesn't require FP7_REGNUM.
11215 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11217 * alpha-tdep.c (frame_extra_info): New.
11218 (alpha_find_saved_regs): Make static. Use
11220 (alpha_frame_init_saved_regs): New function.
11221 (alpha_frame_saved_pc): Use frame->extra_info.
11222 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11223 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11224 (init_extra_frame_info): Rename to...
11225 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11226 (alpha_print_extra_frame_info): New function.
11227 (alpha_frame_locals_address): Ditto.
11228 (alpha_frame_args_address): Ditto.
11229 (alpha_pop_frame): Use frame->extra_info.
11230 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11231 alpha_frame_args_address.
11232 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11233 (alpha_find_saved_regs): Remove prototype.
11234 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11235 (EXTRA_FRAME_INFO): Remove.
11236 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11237 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11239 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11241 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11242 (alpha_cannot_fetch_register): Ditto.
11243 (alpha_cannot_store_register): Ditto.
11244 (alpha_register_convertible): Ditto.
11245 (alpha_use_struct_convention): Ditto.
11246 * config/alpha/tm-alpha.h: Update copyright years.
11247 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11248 (INNER_THAN): Use core_addr_lessthan.
11249 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11250 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11251 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11252 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11253 (FRAME_CHAIN): Remove unnecessary cast.
11255 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11257 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11260 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11262 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11263 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11264 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11265 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11266 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11267 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11268 * x86-64-linux-nat.c: Ditto.
11270 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11272 * alpha-tdep.c (alpha_register_name): New function.
11273 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11274 (REGISTER_NAME): Define.
11276 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11278 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11280 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11282 * alpha-tdep.c: Update copyright years.
11283 (alpha_next_pc): New function.
11284 (alpha_software_single_step): Ditto.
11285 * config/alpha/tm-alpha.h: Add prototype for
11286 alpha_software_single_step.
11288 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11290 * alphabsd-nat.c: Update copyright years.
11291 (fill_gregset): Use regcache_collect.
11292 (fill_fpregset): Likewise.
11293 (fetch_inferior_registers): Only fetch integer registers
11294 if requested to do so.
11295 (store_inferior_registers): Only store integer registers
11296 if requested to do so.
11298 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11300 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11301 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11302 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11303 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11304 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11305 * config/arm/linux.mh (XDEPFILES): Delete.
11306 * config/arm/nbsd.mh (XDEPFILES): Delete.
11307 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11308 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11309 * config/i386/i386m3.mh (XDEPFILES): Delete.
11310 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11311 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11312 * config/i386/fbsd.mh (XDEPFILES): Delete.
11313 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11314 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11315 * config/i386/i386v4.mh (XDEPFILES): Delete.
11316 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11317 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11318 * config/i386/i386aix.mh (XDEPFILES): Delete.
11319 * config/i386/go32.mh (XDEPFILES): Delete.
11320 * config/i386/cygwin.mh (XDEPFILES): Delete.
11321 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11322 * config/i386/i386mach.mh (XDEPFILES): Delete.
11323 * config/i386/i386v32.mh (XDEPFILES): Delete.
11324 * config/i386/linux.mh (XDEPFILES): Delete.
11325 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11326 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11327 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11328 * config/i386/i386sco.mh (XDEPFILES): Delete.
11329 * config/i386/i386v.mh (XDEPFILES): Delete.
11330 * config/i386/nbsd.mh (XDEPFILES): Delete.
11331 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11332 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11333 * config/i386/symmetry.mh (XDEPFILES): Delete.
11334 * config/i386/obsd.mh (XDEPFILES): Delete.
11335 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11336 * config/ia64/linux.mh (XDEPFILES): Delete.
11337 * config/ia64/aix.mh (XDEPFILES): Delete.
11338 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11339 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11340 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11341 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11342 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11343 * config/m68k/linux.mh (XDEPFILES): Delete.
11344 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11345 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11346 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11347 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11348 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11349 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11350 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11351 * config/m88k/delta88.mh (XDEPFILES): Delete.
11352 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11353 * config/m88k/m88k.mh (XDEPFILES): Delete.
11354 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11355 * config/mips/linux.mh (XDEPFILES): Delete.
11356 * config/mips/irix6.mh (XDEPFILES): Delete.
11357 * config/mips/irix5.mh (XDEPFILES): Delete.
11358 * config/mips/irix4.mh (XDEPFILES): Delete.
11359 * config/mips/irix3.mh (XDEPFILES): Delete.
11360 * config/mips/decstation.mh (XDEPFILES): Delete.
11361 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11362 (NATDEPFILES): Move core-aout.o to here.
11363 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11364 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11365 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11366 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11367 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11368 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11369 * config/pa/hpux11.mh (XDEPFILES): Delete.
11370 * config/powerpc/aix.mh (XDEPFILES): Delete.
11371 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11372 * config/powerpc/linux.mh (XDEPFILES): Delete.
11373 * config/romp/rtbsd.mh: Rename XDEPFILES.
11374 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11375 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11376 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11377 * config/s390/s390.mh (XDEPFILES): Delete.
11378 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11379 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11380 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11381 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11382 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11383 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11384 * config/sparc/linux.mh (XDEPFILES): Delete.
11385 * config/vax/vaxult.mh (XDEPFILES): Delete.
11386 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11387 * Makefile.in (DEPFILES): Remove XDEPFILES.
11389 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11391 * utils.c (internal_verror): Fix comments, default is yes not no.
11392 Update queries to match. Default to quit and dump core.
11394 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11396 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11398 * defs.h, event-top.c, gdbcmd.h: Ditto.
11399 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11400 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11401 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11402 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11403 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11404 * mi/mi-main.c:Ditto.
11406 * stack.c, symfile.c: Update copyright.
11408 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11410 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11411 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11412 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11413 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11415 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11417 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11418 * gdbserver/low-lynx.c (myattach): Likewise.
11419 * gdbserver/low-nbsd.c (myattach): Likewise.
11420 * gdbserver/low-sim.c (myattach): Likewise.
11421 * gdbserver/low-sparc.c (myattach): Likewise.
11422 * gdbserver/low-sun3.c (myattach): Likewise.
11424 * gdbserver/low-linux.c (myattach): New function.
11426 * gdbserver/server.c (attach_inferior): New function.
11427 (main): Handle "--attach".
11429 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11431 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11434 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11436 * c-typeprint.c (is_type_conversion_operator): Add additional
11437 check for non-conversion operators.
11439 2002-01-15 Michael Snyder <msnyder@redhat.com>
11441 * linux-proc.c: Add "info proc" command, a la procfs.c.
11442 (read_mapping): New function, abstract and re-use code.
11443 (linux_find_memory_regions): Use new func read_mapping.
11444 (linux_info_proc_cmd): New function, implement "info proc".
11445 (_initialize_linux_proc): Add new command "info proc".
11447 2002-01-15 Michael Snyder <msnyder@redhat.com>
11449 * symfile.c (generic_load): Use bfd_map_over_sections method
11450 instead of manipulating bfd structure members directly.
11451 (add_section_size_callback): New function, bfd sections callback
11452 used by generic_load.
11453 (load_sections_callback): New function, bfd sections callback
11454 used by generic_load.
11456 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11458 [Based on work by Jim Blandy]
11459 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11460 (builtin_type_vec128): Export.
11461 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11463 (builtin_type_vec128): New builtin type for 128 bit vector
11465 (build_gdbtypes): Initialize builtin_type_v16qi and
11466 builtin_type_v8hi. Create the vec128 register builtin type
11468 (build_builtin_type_vec128): New function.
11469 (_initialize_gdbtypes): Register builtin_type_v16qi and
11470 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11471 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11472 AltiVec register to new builtin type.
11474 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11476 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11479 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11481 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11482 CLEAN_UP_REGISTER_VALUE.
11483 * regcache.c (supply_register): Update only call.
11485 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11487 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11488 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11489 a29k-*-vxworks* targets as obsolete.
11491 2002-01-14 Michael Snyder <msnyder@redhat.com>
11493 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11494 until we can resolve portability issues.
11495 * gregset.h: Remove references to fpxregs.
11496 * gcore.c (gcore_command): Initialize note_sec to NULL.
11498 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11500 * signals.c (target_signal_to_name): Rewrite. Only use
11501 signals[].name when in bounds and non-NULL.
11503 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11505 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11506 * signals.c (target_signal_to_name): Verify that SIG is within the
11507 bounds of the signals array.
11509 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11511 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11513 2002-01-13 Keith Seitz <keiths@redhat.com>
11515 * stack.c (print_frame_info_base): Print the frame's pc
11516 only if when print_frame_info_listing_hook is not defined.
11518 2002-01-13 Keith Seitz <keiths@redhat.com>
11520 * varobj.c (varobj_set_value): Make sure that there were no
11521 errors evaluating the object before attempting to set its
11523 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11524 so this offset adjustment is no longer necessary.
11525 (create_child): Don't set the error flag if the child is
11526 a CPLUS_FAKE_CHILD.
11527 (value_of_child): If value_fetch_lazy fails, return NULL
11528 so that callers will be notified that an error occurred.
11529 (c_value_of_variable): Delay check of variable's validity
11530 until later. We actually want all structs and unions to have
11532 Do not return "???" for variables which could not be evaluated.
11533 This error condition must be returned to the caller so that it
11534 can get the error condition from gdb.
11535 (cplus_name_of_child): Adjust index for vptr before figuring
11536 out the name of the child.
11537 (cplus_value_of_child): If a child's (real) parent is not valid,
11538 don't even bother trying to give a value for it. Just return
11539 an error. Change all instances in this function.
11540 (cplus_type_of_child): If our parent is one of the "fake"
11541 parents, we need to get at the type of the real parent, and
11542 derive the child's true type using this information.
11544 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11546 From 2002-01-09 John Marshall <johnm@falch.net>:
11547 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11548 sources.redhat.com, and tweak some related URLs which had
11549 suffered from linkrot.
11551 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11554 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11555 structures passed in registers.
11557 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11559 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11560 white space which prevented compilation. Reported by DSK
11561 <dsk@student.unsw.edu.au>.
11563 2002-01-11 Michael Snyder <msnyder@redhat.com>
11565 * symfile.c (build_section_addr_info_from_section_tab):
11566 Use bfd access method instead of manipulating bfd directly.
11567 (syms_from_objfile): Ditto.
11568 (simple_overlay_update_1): Ditto.
11569 (simple_overlay_update): Ditto.
11570 (generic_load): Ditto.
11571 (overlay_unmapped_address): FIXME comment, bfd access methods.
11572 (sections_overlap): FIXME comment, bfd access methods.
11573 (pc_in_mapped_range): FIXME comment, bfd access methods.
11574 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11575 (section_is_mapped): FIXME comment, bfd access methods.
11576 (section_is_overlay): FIXME comment, bfd access methods.
11578 * symfile.c (generic_load): Whitespace and long line cleanups.
11579 Remove duplicate variable, change several local variables to
11580 more appropriate data types.
11581 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11583 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11585 From Peter Schauer:
11586 * language.c (longest_local_hex_string_custom): Use phex_nz to
11587 convert NUM to a hex string.
11589 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11591 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11593 Update Copyright year.
11595 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11597 * language.c (longest_raw_hex_string): Delete unused function.
11599 2002-01-11 Petr Sorfa <petrs@caldera.com>
11601 * MAINTAINERS (write-after-approval): Add myself.
11602 * dwarf2read.c (read_tag_string_type): Handling of
11604 (read_tag_string_type): FORTRAN fix to prevent propagation of
11606 (set_cu_language): Handling of DW_LANG_Fortran95
11608 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11610 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11611 GETPID(inferior_ptid).
11612 (store_inferior_registers): Likewise.
11614 2002-01-10 Jason Merrill <jason@redhat.com>
11616 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11619 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11621 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11622 and bfd/elf32-sh-nbsd.c.
11624 2002-01-10 Michael Snyder <msnyder@redhat.com>
11626 * NEWS: Mention --pid and corefile/proc-id behavior change.
11628 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11629 * gcore.c: Include cli/cli-decode.h instead of command.h.
11631 * main.c (captured_main): Add new command line option "--pid".
11632 If the second command line argument (following the symbol-file)
11633 begins with a digit, try to attach to it before trying to open
11635 (print_gdb_help): Document the "--pid" argument.
11637 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11639 * completer.c (command_completer): New function.
11641 * completer.h <command_completer>: Add prototype.
11643 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11644 completer for the "help" command.
11646 2002-01-09 Jason Merrill <jason@redhat.com>
11648 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11650 2002-01-09 Michael Snyder <msnyder@redhat.com>
11652 * i386-linux-nat.c (fill_fpxregset): Make global.
11653 (store_fpxregset): Ditto.
11655 * gregset.h (gdb_fpxregset_t): Define.
11656 (supply_fpxregset): Prototype.
11657 (fill_fpxregset): Prototype.
11659 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11661 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11663 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11664 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11665 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11667 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11669 * MAINTAINERS: Update target maintainer rules so that any
11670 Maintainer can approve a tested patch for a maintenance-only
11673 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11675 * MAINTAINERS (write-after-approval): Add myself.
11677 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11680 2002-01-08 Michael Snyder <msnyder@redhat.com>
11682 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11683 real name of the executable, rather than the /proc name.
11685 2002-01-03 Michael Snyder <msnyder@redhat.com>
11687 Implement a "generate-core-file" command in gdb, save target state.
11688 * gcore.c: New file. Implement new command 'generate-core-file'.
11689 Save a corefile image of the current state of the inferior.
11690 * linux-proc.c: Add linux-specific code for saving corefiles.
11691 * target.h (struct target_ops): Add new target vectors for saving
11692 corefiles; to_find_memory_regions and to_make_corefile_notes.
11693 (target_find_memory_regions): New macro.
11694 (target_make_corefile_notes): New macro.
11695 * target.c (update_current_target): Inherit new target methods.
11696 (dummy_find_memory_regions): New place-holder method.
11697 (dummy_make_corefile_notes): New place-holder method.
11698 (init_dummy_target): Initialize new dummy target vectors.
11699 * exec.c (exec_set_find_memory_regions): New function.
11700 Allow the exec_ops vector for memory regions to be taken over.
11701 (exec_make_note_section): New function, target vector method.
11702 * defs.h (exec_set_find_memory_regions): Export prototype.
11703 * procfs.c (proc_find_memory_regions): New function, corefile method.
11704 (procfs_make_note_section): New function, corefile method.
11705 (init_procfs_ops): Set new target vector pointers.
11706 (find_memory_regions_callback): New function.
11707 (procfs_do_thread_registers): New function.
11708 (procfs_corefile_thread_callback): New function.
11709 * sol-thread.c (sol_find_memory_regions): New function.
11710 (sol_make_note_section): New function.
11711 (init_sol_thread_ops): Initialize new target vectors.
11712 * inftarg.c (inftarg_set_find_memory_regions): New function.
11713 Allow to_find_memory_regions vector to be taken over.
11714 (inftarg_set_make_corefile_notes): New function.
11715 Allow to_make_corefile_notes vector to be taken over.
11716 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11717 interface layer if not target_has_execution (may be a corefile).
11718 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11719 * config/sparc/sun4sol2.mh: Ditto.
11720 * config/alpha/alpha-linux.mh: Ditto.
11721 * config/arm/linux.mh: Ditto.
11722 * config/i386/x86-64linux.mh: Ditto.
11723 * config/ia64/linux.mh: Ditto.
11724 * config/m68k/linux.mh: Ditto.
11725 * config/mips/linux.mh: Ditto.
11726 * config/powerpc/linux.mh: Ditto.
11727 * config/sparc/linux.mh: Ditto.
11729 2002-01-07 Michael Snyder <msnyder@redhat.com>
11731 * arm-linux-nat.c: Remove references to regcache.c internal data
11732 (registers[] and register_valid[]).
11734 2002-01-07 Michael Snyder <msnyder@redhat.com>
11736 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11737 so that attaching to a pid will automatically read the process's
11738 symbol file and shlibs.
11739 * Makefile.in: Add rule for linux-proc.o.
11740 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11741 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11742 * config/arm/linux.mh: Ditto.
11743 * config/i386/linux.mh: Ditto.
11744 * config/i386/x86-64linux.mh: Ditto.
11745 * config/ia64/linux.mh: Ditto.
11746 * config/m68k/linux.mh: Ditto.
11747 * config/mips/linux.mh: Ditto.
11748 * config/powerpc/linux.mh: Ditto.
11749 * config/sparc/linux.mh: Ditto.
11751 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11753 * win32-nat.c: Add i386-tdep.h dependency.
11755 2002-01-07 Michael Snyder <msnyder@redhat.com>
11757 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11758 instead of bfd_get_arch_size. Don't bail out just because
11759 there's no exec_bfd.
11761 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11762 * p-valprint.c (pascal_object_print_value): Ditto.
11763 * somread.c (som_symtab_read): Ditto.
11764 * symfile.c (simple_free_overlay_region_table): Ditto.
11765 * valops.c (value_assign): Ditto.
11767 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11768 use tilde_expand and strerror for opening save-tracepoints file.
11770 * thread-db.c (thread_db_new_objfile): Indendation fix.
11772 * infptrace.c (GDB_MAX_ALLOCA): New define.
11773 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11774 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11775 can be overridden with whatever value is appropriate to the host).
11776 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11777 alloca to allocate potentially large buffer.
11778 * rs6000-nat.c (child_xfer_memory): Ditto.
11779 * symm-nat.c (child_xfer_memory): Ditto.
11780 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11782 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11784 From Nick Clifton <nickc@redhat.com>
11785 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11787 2002-01-07 Michael Snyder <msnyder@redhat.com>
11789 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11790 Don't use exec_bfd if it's NULL.
11792 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11794 * valops.c (value_arg_coerce): Fix formatting.
11796 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11798 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11799 * gnu-nat.c: Ditto.
11801 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11803 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11804 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11805 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11806 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11807 z8k-coff have not been multi-arched. Update z8k-coff build
11810 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11812 * MAINTAINERS: Mark a29k target as obsolete.
11813 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11814 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11816 * NEWS: Note that a29k targets are obsolete.
11817 * a29k-tdep.c: Mark as obsolete.
11818 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11819 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11820 a29k-*-vxworks* targets as obsolete.
11821 * remote-adapt.c: Obsolete.
11822 * remote-eb.c: Obsolete.
11823 * remote-mm.c: Obsolete.
11824 * remote-udi.c: Obsolete.
11825 * config/a29k/a29k-udi.mt: Obsolete.
11826 * config/a29k/a29k.mt: Obsolete.
11827 * config/a29k/tm-a29k.h: Obsolete.
11828 * config/a29k/tm-vx29k.h: Obsolete.
11829 * config/a29k/vx29k.mt: Obsolete.
11831 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11833 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11834 with BFD_ENDIAN_BIG.
11836 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11838 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11839 * configure, config.in: Re-generate.
11840 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11841 * defs.h: Do not include <endian.h>.
11843 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11845 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11846 * config.in: Regenerate.
11847 * configure.in: Update copyright years.
11848 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11849 * configure: Regenerate.
11850 * i386bsd-nat.c: Update copyright years.
11851 (fill_gregset): Use regcache_collect.
11852 (fetch_inferior_registers): Only fetch integer registers
11853 if requested to do so. Add support for XMM registers
11854 using PT_GETXMMREGS.
11855 (store_inferior_registers): Only store integer registers
11856 if requested to do so. Add support for XMM registers
11857 using PT_SETXMMREGS.
11858 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11859 (store_inferior_registers): Remove.
11860 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11861 (fetch_elfcore_registers): New function.
11862 (i386nbsd_elfcore_fns): New.
11863 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11864 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11866 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11867 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11868 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11869 * config/i386/tm-nbsd.h: Update copyright years.
11870 (HAVE_SSE_REGS): Define.
11871 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11872 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11873 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11874 (SIGCONTEXT_PC_OFFSET): Remove.
11875 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11877 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11879 * configure.tgt: Remove powerpc-*-macos* target.
11880 * config/m68k/xm-mpw.h: Delete file.
11881 * config/xm-mpw.h: Delete file.
11882 * ser-mac.c: Delete file.
11883 * mpw-make.sed: Delete file.
11884 * mpw-config.in: Delete file.
11885 * mac-xdep.c: Delete file.
11886 * mac-gdb.r: Delete file.
11887 * mac-defs.h: Delete file.
11888 * mac-nat.c: Delete file.
11889 * config/powerpc/macos.mh: Delete file.
11890 * config/powerpc/macos.mt: Delete file.
11891 * config/powerpc/nm-macos.h: Delete file.
11892 * config/powerpc/tm-macos.h: Delete file.
11893 * source.c (openp, open_source_file): Remove obsolete code.
11894 * top.c (gdb_readline): Ditto.
11895 * utils.c (query): Ditto.
11896 * event-top.c (display_gdb_prompt): Ditto.
11897 * Makefile.in (ser-mac.o): Delete obsolete target.
11900 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11902 * defs.h (BIG_ENDIAN): Delete macro definition.
11903 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11904 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11905 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11906 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11907 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11908 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11909 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11910 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11911 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11912 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11913 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11914 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11915 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11916 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11917 * gdbarch.c: Re-generate.
11919 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11921 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11924 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11926 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11928 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11930 * value.h (value_ptr): Delete typedef.
11932 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11934 * i386nbsd-nat.c: Update copyright years.
11935 Include i386-tdep.h.
11937 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11939 * stabsread.c: Update copyright years.
11941 From Debashis Mahata <debashis.mahata@wipro.com>:
11942 (read_struct_fields): Deal with Sun C compiler erroneous stab
11943 output for structs and unions.
11946 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11948 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11951 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11953 * cp-abi.c: Fix whitespace.
11954 (baseclass_offset): New wrapper function.
11955 * cp-abi.h (baseclass_offset): Add prototype.
11956 (struct cp_abi_ops): Add baseclass_offset pointer.
11958 * valops.c (vb_match): Move to...
11959 * gnu-v2-abi.c (vb_match): here.
11960 * valops.c (baseclass_offset): Move to...
11961 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11963 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11965 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11966 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11967 * hpacc-abi.c (init_hpacc_ops): Likewise.
11969 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11971 * valops.c (find_overload_match): Accept obj as a
11972 reference parameter. Update it before returning.
11973 * value.h (find_overload_match): Update prototype.
11974 * eval.c (evaluate_subexp_standard): Pass object to
11975 find_overload_match by reference.
11977 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11979 * valarith.c: Replace value_ptr with struct value pointer. Remove
11980 register attribute from value declarations.
11983 * scm-lang.c (scm_lookup_name): Ditto.
11985 2002-01-03 Michael Snyder <msnyder@redhat.com>
11987 Abstract the functionality of iterating over mapped memory
11988 regions into a general purpose iterator function.
11989 * procfs.c (iterate_over_mappings): New function, general purpose
11990 iterator for memory sections.
11991 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11992 (solib_mappings_callback): New function, callback for above.
11993 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11994 (info_mappings_callback): New function, callback for above.
11996 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11998 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12000 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12001 * i386-tdep.c: Include "elf-bfd.h".
12002 (process_note_abi_tag_sections): New function.
12003 (i386_gdbarch_init): Add code to recognize various OS/ABI
12006 * maint.c (_initialize_maint_cmds): Add missing \ in
12009 For older changes see ChangeLog-2001
12015 version-control: never