1 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3 * Makefile.in (i386obsd-tdep.o): New target.
5 * solib-sunos.c: Include "bcache.h" and "regcache.h".
6 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
8 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
9 * config/i386/obsd.mt: New file.
10 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
11 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
12 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
13 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
14 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
15 * i386obsd-tdep.c: New file.
17 2002-10-19 Adam Fedor <fedor@gnu.org>
19 * objc-exp.y (name_not_typename): Fix invalid comment.
21 2002-10-20 Mark Kettenis <kettenis@gnu.org>
23 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
24 to allocate partial syms and macro byte caches.
26 2002-10-18 David Carlton <carlton@math.stanford.edu>
28 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
30 2002-10-18 Adam Fedor <fedor@gnu.org>
32 * stabsread.c (find_name_end): New function.
33 (define_symbol): Use it.
35 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
37 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
38 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
39 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
40 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
42 2002-10-17 David Carlton <carlton@math.stanford.edu>
44 * symfile.h: Add opaque declaration for struct obstack.
45 Declare obsavestring to take a const char *.
46 * symfile.c (obsavestring): Make first argument a const char *.
48 2002-10-16 Adam Fedor <fedor@gnu.org>
50 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
51 names when matching breakpoints in current file.
53 2002-10-16 Kevin Buettner <kevinb@redhat.com>
55 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
56 (read_tag_pointer_type): Add address class support.
57 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
58 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
60 * gdbarch.h, gdbarch.c: Regenerate.
61 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
62 (make_type_with_address_space, recursive_type_dump): Add address
64 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
65 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
66 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
68 2002-10-16 Klee Dienes <kdienes@apple.com>
70 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
71 to get the last character of a char[] buffer, not
72 name[sizeof(vptr_name)-1].
74 2002-10-14 Adam Fedor <fedor@gnu.org>
76 * symtab.h: New objc_specific struct.
77 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
78 (SYMBOL_DEMANGLED_NAME): Likewise.
80 2002-10-14 Adam Fedor <fedor@gnu.org>
82 * symfile.c (init_filename_language_table): Add ObjC file extension.
84 2002-10-14 Adam Fedor <fedor@gnu.org>
86 * utils.c (puts_filtered_tabular): New function.
87 (fprintf_symbol_filtered): Get ObjC demangled name.
88 * defs.h (puts_filtered_tabular): Declared.
90 2002-10-14 Kevin Buettner <kevinb@redhat.com>
92 * c-lang.h (c_type_print_varspec_prefix): Delete.
93 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
94 ``need_post_space'' parameter. Adjust all callers.
96 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
98 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
99 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
100 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
101 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
103 2002-10-13 Adam Fedor <fedor@gnu.org>
105 * source.c (print_source_lines): Update comments.
107 2002-10-13 Adam Fedor <fedor@gnu.org>
109 * valops.c (value_of_local): New function.
110 (value_of_this): Use it.
111 * value.h (value_of_local): Declared.
113 2002-10-13 Adam Fedor <fedor@gnu.org>
115 * parse.c: (length_of_subexp, prefixify_subexp): Handle
116 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
118 2002-10-12 Adam Fedor <fedor@gnu.org>
120 * language.c (binop_result_type): Add language_objc to case.
121 (integral_type): Likewise.
122 (character_type): Likewise.
123 (string_type): Likewise.
124 (boolean_type): Likewise.
125 (structured_type): Likewise.
126 (binop_type_check): Likewise.
128 2002-10-11 Adam Fedor <fedor@gnu.org>
130 * printcmd.c (address_info): Print 'self' for ObjC.
132 2002-10-11 Adam Fedor <fedor@gnu.org>
134 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
137 2002-10-11 Adam Fedor <fedor@gnu.org>
139 * language.h (CAST_IS_CONVERSION): Add language_objc.
141 2002-10-11 Adam Fedor <fedor@gnu.org>
143 * defs.h (enum language): Add language_objc.
145 2002-10-11 Klee Dienes <kdienes@apple.com>
147 * findvar.c (read_memory_typed_address): New function.
148 * gdbcore.h (read_memory_typed_address): Add prototype.
149 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
150 to read a value destined for a CORE_ADDR, not read_memory_integer.
151 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
152 (f77_get_dynamic_lowerbound): Ditto.
154 2002-10-11 Martin M. Hunt <hunt@redhat.com>
156 * utils.c (string_to_core_addr): After turning string into
157 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
158 which will do necessary sign-extension, etc.
160 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
162 * c-exp.y (THIS): Delete token and grammar rule.
163 (yylex): Don't return THIS.
164 * cp-valprint.c (vtbl_ptr_name_old): Delete.
165 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
166 * demangle.c (cplus_markers): Update comment. Put '$'
167 first. Remove CPLUS_MARKER.
168 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
169 * jv-exp.y (THIS): Delete token and grammar rule.
170 (yylex): Don't return THIS.
171 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
172 * objc-exp.y (THIS): Delete token and grammar rule.
173 (yylex): Don't return THIS.
174 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
175 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
176 (read_member_functions): Likewise for opname.
177 (read_tilde_fields): Use is_cplus_marker.
179 * defs.h (CPLUS_MARKER): Don't define.
180 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
181 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
182 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
183 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
184 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
186 * config/i386/tm-i386v4.h: Delete file.
187 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
188 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
189 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
190 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
191 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
192 * config/i386/i386sco5.mt (TM_FILE): Likewise.
193 * config/i386/i386v4.mt (TM_FILE): Likewise.
194 * config/i386/ncr3000.mt (TM_FILE): Likewise.
196 2002-10-10 Marko Mlinar <markom@opencores.org>
198 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
199 accidentially not commited 2002-10-09
200 * gdbarch.h, gdbarch.c: Re-generate.
202 2002-10-09 Marko Mlinar <markom@opencores.org>
204 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
205 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
206 * gdbarch.h, gdbarch.c: Re-generate.
208 2002-10-08 Petr Sorfa <petrs@caldera.com>
210 Revised and re-submitted by John Wolfe <jlw@caldera.com>
212 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
213 so we can work on more than one compilation unit at a time. This
214 helps prepare GDB to handle inter-CU die references.
215 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
216 the code to be defined before struct comp_unit_head.
217 (comp_unit_head): Added new members - offset, cu_head,
218 begin_die, next and dwarf2_abbrevs.
219 (dwarf2_abbrevs): Removed single static var; now member of
220 struct comp_unit_head.
221 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
223 (psymtab_to_symtab_1): Changed to work with the new
224 struct comp_unit_head.
225 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
226 constructs the dwarf2_abbrevs[] inside the cu_header.
227 (dwarf2_empty_abbrev_table): Now expects a ptr to a
228 dwarf2_abbrev table to clean up.
229 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
230 handling of dwarf2_abbrevs inside the cu_header.
231 (read_partial_die): Now supports the call to the new
232 dwarf2_lookup_abbrev.
233 (read_full_die): Now supports the call to the new
234 dwarf2_lookup_abbrev.
236 2002-10-06 Christopher Faylor <cgf@redhat.com>
238 * Makefile.in (install-gdbtk): Add missing continuation backslash to
239 insure that shell variables, such as "transformed_name" are propagated
240 to later shell statements in rule.
242 2002-10-06 Mark Kettenis <kettenis@gnu.org>
244 * config/i386/nm-i386sco.h: Add protection against
245 multiple-inclusion. Include "i386/nm-i386v.h".
246 (REGISTER_U_ADDR): Remove define.
247 (i386_register_u_addr): Remove prototype.
249 2002-10-04 Michael Snyder <msnyder@redhat.com>
251 * m32r-stub.c (handle_exception): Make sure exception is "trap"
252 before treating it as a single-step event.
254 2002-10-03 Adam Fedor <fedor@gnu.org>
256 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
257 (objc_demangle): Remove assignment in if statements, Replace
259 (add_msglist): Likewise.
260 (end_msglist): Likewise.
261 (complare_selectors): Likewise.
262 (selectors_info): Likewise.
263 (compare_classes): Likewise.
264 (classes_info): Likewise.
265 (print_object_command): Likewise.
266 (find_objc_msgcall_submethod): Replace PTR with void *.
267 * objc-lang.h: Remove check for __STDC__.
269 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
271 * ui-out.h (ui_out_field_fmt_int): New prototype.
272 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
273 of field width and alignment.
274 * stack.c (print_frame_info_base): When printing frame level, use
275 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
278 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
280 * MAINTAINERS: Add self to Write After Approval list.
282 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
284 * infcmd.c (interrupt_target_command_wrapper): Delete.
285 (interrupt_target_command): Make non static.
286 (nofp_registers_info): Make static.
287 * stack.c (return_command_wrapper): Delete.
288 (return_command): Make non static.
290 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
292 * event-top.c (gdb_setup_readline): New function. Code moved from
293 _initialize_event_loop().
294 (_initialize_event_loop): Call gdb_setup_readline().
296 2002-10-02 Andrew Cagney <ac131313@redhat.com>
298 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
299 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
300 * gdbarch.h, gdbarch.c: Re-generate.
302 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
305 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
307 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
308 of fill_in_vptr_fieldno.
310 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
312 * inferior.h (registers_info, stepi_command, nexti_command,
313 continue_command, interrupt_target_command): Export from infcmd.c.
314 * frame.h (args_info, selected_frame_level_changed_hook,
315 return_command): Export from stack.c.
316 * v850ice.c (stepi_command, nexti_command, continue_command): use
317 prototypes from inferior.h.
318 * tracepoint.c (registers_info, args_info, locals_info): Use
319 prototypes from frame.h and inferior.h.
320 * Makefile.in (mi-main.o): Add dependency on frame.h.
322 2002-10-02 Andrew Cagney <ac131313@redhat.com>
324 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
325 value in register 3 adjusted by ppc_gp0_regnum.
327 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
329 2002-10-02 Marko Mlinar <markom@opencores.org>
331 * MAINTAINERS: Add myself to the Write After Approval list.
333 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
335 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
336 of the section for the N64 ABI, fixed.
338 * config/mips/tm-irix6.h: Include solib.h.
340 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
342 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
345 2002-10-01 Andrew Cagney <ac131313@redhat.com>
347 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
348 and that "mi0" syntax has been removed.
350 2002-09-30 David Carlton <carlton@math.stanford.edu>
352 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
353 * ppc-sysv-tdep.c: #include "gdb_string.h".
354 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
357 2002-10-01 Andrew Cagney <ac131313@redhat.com>
359 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
360 "vrsave"'s register number.
362 2002-09-30 Andrew Cagney <ac131313@redhat.com>
364 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
365 use frame_unwind_signed_register to obtain the PC.
366 (mips_frame_chain): Handle a generic dummy frame.
367 (mips_init_extra_frame_info): When a generic dummy frame, don't
368 re-compute the frame base.
369 (mips_pop_frame): Handle generic dummy frames.
370 (mips_gdbarch_init): When generic dummy frames, set
371 use_generic_dummy_frames, push_dummy_frame to
372 generic_push_dummy_frame, pc_in_call_dummy to
373 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
374 generic_save_dummy_frame_tos.
376 2002-09-30 Andrew Cagney <ac131313@redhat.com>
378 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
379 against TOP when TOP was explictly set.
380 (generic_push_dummy_frame): Set TOP to zero.
382 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
384 * event-loop.c (start_event_loop): Rename variable 'result' to
385 'gdb_result', to avoid conflicts with upcoming intepreters changes.
387 2002-09-30 Keith Seitz <keiths@redhat.com>
389 * gdb-events.sh (selected_thread_changed): New event.
390 * gdb-events.c: Regenerated.
391 * gdb-events.h: Regenerated.
393 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
395 * MAINTAINERS: Add self to Write After Approval list.
397 2002-09-30 Fernando Nasser <fnasser@redhat.com>
399 * disasm.c: New file.
400 * disasm.h: New file.
401 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
402 (compare_lines): Ditto.
404 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
406 (do_assembly_only): Ditto.
407 (do_disassembly): Renamed to gdb_disassembly and moved to
408 disasm.c. Sdded uiout argument.
409 * Makefile.in: Add new files. Reorder SFILES list. Update
410 dependencies. Include libgdb.a later in the insight executable.
412 2002-09-29 Andrew Cagney <ac131313@redhat.com>
414 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
415 bfd/elf64-alpha-fbsd.c.
417 2002-09-29 Andrew Cagney <ac131313@redhat.com>
419 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
422 2002-09-29 Andrew Cagney <ac131313@redhat.com>
424 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
426 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
428 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
429 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
430 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
431 (S_msg_sig_post_reply): Ditto.
433 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
435 * sh-tdep.c (sh_use_struct_convention): Use definition according
437 (sh_push_arguments): Store in register with correct endianess.
438 (sh_default_store_return_value): Ditto.
439 (sh_gdbarch_init): Set sizeof long double to 8.
441 2002-09-27 Mark Kettenis <kettenis@gnu.org>
443 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
444 Fix some whitespace problems.
446 2002-09-27 David Carlton <carlton@math.stanford.edu>
448 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
449 (mcore-tdep.o): Ditto.
450 (ns32k-tdep.o): Ditto.
451 (ns32knbsd-tdep.o): Ditto.
454 * cris-tdep.c: #include "gdb_string.h"
455 * mcore-tdep.c: Ditto.
456 * ns32k-tdep.c: Ditto.
457 * ns32knbsd-tdep.c: Ditto.
461 2002-09-27 David Carlton <carlton@math.stanford.edu>
463 * config/djgpp/fnchange.lst: Add entries for
464 gdb/testsuite/gdb.c++/m-static files.
466 2002-09-27 Jim Wilson <wilson@redhat.com>
468 * MAINTAINERS: Add myself to the Write After Approval list.
470 2002-09-26 Martin M. Hunt <hunt@redhat.com>
472 * mips-tdep.c (find_proc_desc): Initialize startaddr.
475 2002-09-26 Andrew Cagney <ac131313@redhat.com>
477 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
480 2002-09-26 Andrew Cagney <ac131313@redhat.com>
482 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
483 (rs6000_struct_return_address): Delete variable.
484 (rs6000_store_struct_return): Update.
485 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
486 deprecated_extract_struct_value_address.
487 (rs6000_frame_align): New function.
488 (rs6000_gdbarch_init): Set frame_align.
490 2002-09-26 Andrew Cagney <ac131313@redhat.com>
492 From Grace Sainsbury <graces@redhat.com>:
493 * Makefile.in (gdbtk-main.o): New target.
496 (main.o): Update dependencies.
497 (gdb$(EXEEXT)): Add gdb.o.
498 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
499 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
500 (SUBDIR_GDBTK_CLEAN): Set.
501 (install-gdbtk): Install the insight binary.
502 (uninstall-gdbtk): New target.
503 (all-gdbtk, clean-gdbtk): New rule.
504 * top.c (use_windows): Default to zero.
505 * main.c: Include "main.h".
507 (struct captured_main_args): Delete.
508 (gdb_main): New function.
512 2002-09-25 Andrew Cagney <cagney@redhat.com>
514 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
515 (frame_map_regnum_to_name): New function.
516 (frame_map_name_to_regnum): New function.
517 * frame.h (frame_map_name_to_regnum): Declare.
518 (frame_map_regnum_to_name): Declare.
519 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
520 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
521 * parse.c: Do not include "builtin-regs.h".
522 (target_map_name_to_register): Delete function.
523 (write_dollar_variable): Use frame_map_name_to_regnum.
524 * parser-defs.h (target_map_name_to_register): Delete declaration.
525 * expprint.c: Include "frame.h".
526 (print_subexp): Use frame_map_regnum_to_name.
527 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
528 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
530 2002-09-25 Andrew Cagney <ac131313@redhat.com>
532 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
533 wasn't saved, and the next innermost frame is a dummy, return the
534 dummy frame's link register.
536 2002-09-24 Jim Blandy <jimb@redhat.com>
539 * main.c (captured_main): Add a `break' after the case for 'b'.
541 2002-09-24 Keith Seitz <keiths@redhat.com>
543 * varobj.c (c_type_of_child): Use get_target_type instead
546 2002-09-22 Fernando Nasser <fnasser@redhat.com>
548 * source.c (get_current_or_default_source_symtab_and_line): Remove
550 (set_default_source_symtab_and_line): New function. Attempts to
551 determine a source file to list lines from if one is not currently
553 (get_current_source_symtab_and_line): Initialize sal.pc and
555 (set_current_source_symtab_and_line): Mark argument as const.
556 * source.h: Update declarations and comments.
557 * linespec.c (decode_line_1): Replace call to removed routine above.
558 * stack.c (print_frame_info_base): Ditto.
559 * cli/cli-cmds.c (edit_command): Ditto.
560 (list_command): Ditto.
562 2002-09-22 Fernando Nasser <fnasser@redhat.com>
564 * source.c (get_current_or_default_source_symtab_and_line): Initialize
565 sal.pc and sal.end fields.
566 (get_current_or_default_source_symtab_and_line): Ditto.
567 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
568 so we do not cause a new source symtab to be searched for (reverting an
569 unintentional change from the 2002-09-20 patch).
570 * scm-lang.c (scm_unpac): Ditto.
572 2002-09-21 Andrew Cagney <cagney@redhat.com>
574 * complaints.c (symfile_explanations): Remove new-line from
575 ``isolated_message''.
576 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
577 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
579 2002-09-20 Nick Clifton <nickc@redhat.com>
581 * NEWS: Announce that V850EA ISA is no longer supported.
582 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
584 2002-09-20 David Carlton <carlton@math.stanford.edu>
586 * Makefile.in (c-lang.o): Correct dependencies.
587 (utils.o): Gather dependencies.
589 * c-lang.c: #include "gdb_string.h"
591 2002-09-20 Fernando Nasser <fnasser@redhat.com>
593 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
594 * cli/cli-cmds.c (list_command): New function. Implements the new
596 (_init_cli_cmds): Add new command definition.
597 * gdb.1: Document edit command.
598 * doc/gdb.texinfo: Document edit command.
600 2002-09-20 Fernando Nasser <fnasser@redhat.com>
602 * source.c: Make global variables current_source_symtab and
603 current_source_line static.
604 (list_command): Moved to cli/cli-cmds.c.
605 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
606 (get_first_line_listed): New accessor function.
607 (get_lines_to_list): New accessor function.
608 (get_current_source_symtab_and_line): New function. Retrieves the
609 position in the source code that we consider current.
610 (get_current_or_default_source_symtab_and_line): New function.
611 Like the above but attempts to determine a default position if one
612 is not currently defined.
613 (set_current_source_symtab_and_line): New function. Sets the source
614 code position considered current and returns the previously set one.
615 (clear_current_source_symtab_and_line): Reset stored information about
616 a current source line.
617 (_initialize_source): Remove registration for the "list" command and
619 * source.h: Add declarations for the new functions above.
620 * symtab.h: Remove declarations for the global variables mentioned
622 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
623 obtain current source line.
624 * linespec.c (decode_line_1): Ditto.
625 * macroscope.c (default_macro_scope): Ditto.
626 * scm-lang.c (scm_unpac): Ditto.
627 * stack.c (print_frame_info_base): Ditto.
628 * symfile.c (clear_symtab_users): Ditto.
629 * symtab.c (decode_line_spec): Ditto.
630 * cli/cli-cmds.c (list_command): Moved here from source.c.
631 (ambiguous_line_spec): Moved here from source.c.
632 (_init_cli_cmds): Add definition for "list" and its alias.
633 * Makefile.in: Update dependencies.
635 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
637 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
638 with what gcc thinks is correct.
640 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
642 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
643 multiple register push instruction.
645 2002-09-19 Jim Blandy <jimb@redhat.com>
647 Add support for distinct host and target character sets.
648 * charset.c, charset.h: New files.
649 * c-exp.y: #include "charset.h".
650 (yylex): Convert character and string literals to the target
651 character set, before returning them as the semantic value of the
653 * c-lang.c: #include "charset.h".
654 (c_emit_char): Use charset-specific methods to recognize
655 characters with backslash escape forms, to decide which characters
656 to print literally and which to print using numeric escape
657 sequences, and to convert target characters to host characters
659 * utils.c: #include "charset.h".
660 (no_control_char_error): New function.
661 (parse_escape): Use charset-specific methods to recognize
662 backslash escapes, parse `control character' notation, and convert
663 characters from the host character set to the target character set.
664 * configure.in: Set the default host character set.
665 Check where to find iconv, and what its argument types might be.
666 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
667 * Makefile.in (SFILES): List charset.c.
668 (COMMON_OBS): List charset.o.
669 (charset.o): New rule.
670 (charset_h): New header dependency variable.
671 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
672 (LIBICONV): New variable, set by configure.
673 (CLIBS): Include $(LIBICONV) here.
674 * aclocal.m4, config.in, configure: Regenerated.
676 2002-09-19 Joel Brobecker <brobecker@gnat.com>
678 * ada-exp.y: Add missing semicolons to end rules. Fixes a
681 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
683 * gdb_mbuild.sh: New file.
685 2002-09-19 Andrew Cagney <ac131313@redhat.com>
687 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
689 2002-09-18 Andrew Cagney <ac131313@redhat.com>
691 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
692 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
693 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
694 valops.c, value.h: Revert previous change.
696 2002-09-18 Michael Snyder <msnyder@redhat.com>
698 Preliminary support for Objective-C:
699 * defs.h (language_objc): New enum value.
700 (puts_filtered_tabular): Declaration only, exported from utils.c.
701 (skip_quoted): Delete, declared in completer.h.
702 * c-exp.y: Include completer.h.
705 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
706 New operator enum values.
707 * language.h (CAST_IS_CONVERSION): Test for language_objc.
708 * language.c (binop_result_type): Handle language_objc case.
709 (integral_type, character_type, string_type, boolean_type,
710 structured_type, binop_type_check): Ditto.
711 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
712 (struct objc_specific): Add to general_symbol_info.
713 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
714 (SYMBOL_DEMANGLED_NAME): Handle objc case.
715 * parser-defs.h (struct objc_class_str): New struct type.
716 (start_msglist, end_msglist, add_msglist): Declaration only,
717 exported from objc-lang.c.
718 * value.h (value_of_local, value_nsstring,
719 call_function_by_hand_expecting_type): Exported from valops.c.
720 * valops.c (find_function_addr): Export.
721 (call_function_by_hand_expecting_type): New function.
722 (value_of_local): New function.
723 * symfile.c (init_filename_language_table): Add ".m" extension
725 * utils.c (puts_filtered_tabular): New function.
726 (fprintf_symbol_filtered): Add objc demangling support (disabled).
727 (set/show demangle): Extend help-string to refer to ObjC.
728 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
729 * stabsread.c (symbol_reference_defined): Objective-C symbols
730 may contain colons: make allowances when scanning stabs strings
732 (objc_find_colon): New function.
733 * printcmd.c (address_info): If language == objc then print
734 "self" instead of "this".
735 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
736 OP_NSSTRING, and OP_SELF.
737 (prefixify_subexp): Ditto.
738 * source.c (print_source_lines): Mention objc in comment.
739 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
742 2002-09-18 Andrew Cagney <ac131313@redhat.com>
744 * complaints.h: Update copyright.
745 (struct complaints): Declare.
746 (struct complaint): Make `message' constant.
747 (internal_complaint): Declare.
748 (complaint): Declare.
749 (complaint_root): Delete declaration.
750 (symfile_complaints): Delete declaration.
751 (struct complaints): Add opaque declaration.
752 (clear_complaints): Add a complaints parameter.
753 * complaints.c: Update copyright.
754 (enum complaint_series): Define.
755 (complaint_root): Delete.
756 (struct complaints): Define.
757 (complaint_sentinel, symfile_complaint_book): New variables.
758 (symfile_explanations, symfile_complaints): New variables.
760 (get_complaints): New function.
761 (vcomplaint): New function.
762 (complaint): New function.
763 (internal_complaint): New function.
764 (complain): Call vcomplain with symfile_complaint.
765 (clear_complaints): Rewrite.
766 (_initialize_complaints): Use add_setshow_command.
767 * Makefile.in (complaints.o): Update dependencies.
768 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
769 to call to clear_complaints.
770 (new_symfile_objfile, reread_symbols): Ditto.
771 (oldsyms_complaint): Delete.
772 (empty_symtab_complaint, unknown_option_complaint): Delete.
773 (free_named_symtabs): Use complaint instead of complain.
775 2002-09-18 Michael Snyder <msnyder@redhat.com>
777 Contributed by Apple Computer, Inc. Merged with current sources
778 by Adam Fedor <fedor@doc.com> [cagney].
780 * objc-lang.c: First clean-up round: comments, indentation.
781 * objc-lang.h: Ditto.
782 * objc-lang.y: Ditto.
784 2002-09-18 Andrew Cagney <ac131313@redhat.com>
786 * maint.c (maintenance_internal_error): Print the parameter as the
788 (maintenance_internal_warning): New function.
789 (_initialize_maint_cmds): Add command `maint internal-warning'.
791 * defs.h (internal_warning, internal_vwarning): Declare.
792 * utils.c (struct internal_problem): Define.
793 (internal_vproblem): New function.
794 (internal_warning): New function.
795 (internal_vwarning): New function.
796 (internal_warning_problem, internal_error_problem): New variables.
797 (internal_verror): Just call internal_vproblem.
799 2002-09-18 Michael Snyder <msnyder@redhat.com>
801 * objc-lang.c: New file, support for Objective-C.
802 Preliminary check-in, not yet integrated into gdb.
803 * objc-lang.h: New file.
804 * objc-exp.y: New file.
806 2002-09-18 Andrew Cagney <ac131313@redhat.com>
808 * infrun.c (signal_stop_update): Convert definition to ISO C.
809 (signal_print_update): Ditto.
810 (signal_pass_update): Ditto.
811 * inflow.c (terminal_save_ours): Ditto.
813 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
816 * config/djgpp/fnchange.lst: Handle name clashes between
817 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
820 * i386-linux-tdep.h: Fix tipo.
822 2002-09-18 Adam Fedor <fedor@gnu.org>
824 * MAINTAINERS: Add myself to the Write After Approval list.
826 2002-09-18 Jim Blandy <jimb@redhat.com>
828 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
829 texthigh and textlow to reader-specific structs caused
830 objfile_relocate to miss them. This is fixable, but the work that
831 the change was supposed to prepare GDB for never got done anyway.
833 2002-09-18 David Carlton <carlton@math.stanford.edu>
835 * MAINTAINERS: Alphabetize Write After Approval list.
837 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
840 * values.c (value_static_field): Call read_var_value.
842 2002-09-18 Andrew Cagney <ac131313@redhat.com>
844 * valops.c (hand_function_call): Align the initial stack pointer
845 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
846 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
848 * mips-tdep.c (mips_frame_align): New function.
849 (mips_gdbarch_init): Set frame_align.
850 * gdbarch.sh (FRAME_ALIGN): New method.
851 * gdbarch.h, gdbarch.c: Re-generate.
853 2002-09-18 Michal Ludvig <mludvig@suse.cz>
855 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
858 2002-09-17 Andrew Cagney <ac131313@redhat.com>
860 * NEWS: Mention that MIPS $fp behavior changed.
861 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
862 reference to FP_REGNUM.
863 (mipsnbsd_cannot_store_register): Ditto.
864 * mips-linux-nat.c: Update copyright.
865 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
866 (mips_linux_cannot_store_register): Ditto.
867 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
868 * config/mips/tm-mips.h: Update copyright.
869 (FP_REGNUM): Delete macro.
870 (MIPS_REGISTER_NAMES): Replace "fp" with "".
871 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
872 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
873 (mips_r3041_reg_names, mips_r3051_reg_names)
874 (mips_r3081_reg_names): Replace "fp" with "".
877 2002-09-17 Theodore A. Roth <troth@verinet.com>
879 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
880 generic_read_register_dummy() (PR gdb/703).
881 (avr_push_return_address): #if 0 out unused vars.
882 (avr_gdbarch_init): Enable use of avr_push_return_address().
884 2002-09-17 Michael Snyder <msnyder@redhat.com>
886 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
887 RTE will take care of it.
889 2002-09-17 Andrew Cagney <ac131313@redhat.com>
891 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
892 invalid, return SP_REGNUM.
894 2002-09-17 Michael Snyder <msnyder@redhat.com>
896 * mips-tdep.c (mips_pop_frame): Read saved values of floating
897 point registers without sign extension.
899 2002-09-17 Andrew Cagney <cagney@redhat.com>
901 * blockframe.c (deprecated_read_register_dummy): Rename
902 generic_read_register_dummy.
903 * frame.c (frame_unwind_signed_register): New function.
904 (frame_unwind_unsigned_register): New function.
905 * frame.h (frame_unwind_signed_register): Declare.
906 (frame_unwind_unsigned_register): Declare.
907 (deprecated_read_register_dummy): Rename
908 generic_read_register_dummy.
910 * h8300-tdep.c (h8300_frame_chain): Update.
911 (h8300_frame_saved_pc): Update.
912 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
913 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
914 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
915 (s390_frame_chain): Update.
916 * v850-tdep.c (v850_find_callers_reg): Update.
917 (v850_frame_saved_pc): Update.
918 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
919 (m32r_find_callers_reg): Update.
920 (m32r_frame_saved_pc): Update.
921 * sh-tdep.c (sh_find_callers_reg): Update.
922 (sh64_get_saved_pr): Update.
923 (sh_init_extra_frame_info): Update.
924 (sh_init_extra_frame_info): Update.
925 (sh64_init_extra_frame_info): Update.
926 (sh64_init_extra_frame_info): Update.
927 * mcore-tdep.c (mcore_find_callers_reg): Update.
928 (mcore_frame_saved_pc): Update.
929 (mcore_init_extra_frame_info): Update.
930 * i386-tdep.c (i386_frame_saved_pc): Update.
931 * ia64-tdep.c (ia64_frame_saved_pc): Update.
932 (ia64_init_extra_frame_info): Update.
933 (ia64_init_extra_frame_info): Update.
934 * d10v-tdep.c (d10v_frame_saved_pc): Update.
935 * cris-tdep.c (cris_init_extra_frame_info): Update.
936 * avr-tdep.c (avr_frame_chain): Update.
937 (avr_init_extra_frame_info): Update.
938 (avr_frame_saved_pc): Update.
939 * arm-tdep.c (arm_find_callers_reg): Update.
940 (arm_init_extra_frame_info): Update.
941 (arm_frame_saved_pc): Update.
943 2002-09-17 Tom Tromey <tromey@redhat.com>
945 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
948 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
950 * MAINTAINERS: Remove "non multi-arched" text from h8300.
951 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
953 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
956 2002-09-16 Joel Brobecker <brobecker@gnat.com>
958 * osfsolib.c: Remove file, replaced by solib-osf.c.
959 * Makefile.in: Remove compilation rules for osfsolib.c.
961 2002-09-16 David Carlton <carlton@math.stanford.edu>
963 * cp-valprint.c (cp_print_class_method): Correct args to
964 check_stub_method_group.
966 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
968 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
969 `set architecture'. Unify naming convention of functions.
970 (h8300_skip_prologue): Improve prologue analysis.
971 (h8300_push_arguments): Rewritten to more closely match GCC's
972 bizarre argument-passing behavior, along with the comment describing
974 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
975 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
976 sim, remote-e7000.c, remote-hms.c and remote.c
978 2002-09-15 Mark Kettenis <kettenis@gnu.org>
980 * i386-tdep.c (gdb_print_insn_i386): Removed.
981 (i386_print_insn): New function.
982 (i386_gdbarch_init): Set print_insn to i386_print_insns.
983 (_initialize_i386_tdep): Don't initialize tm_print_insn and
986 2002-09-14 Mark Kettenis <kettenis@gnu.org>
988 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
991 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
993 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
994 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
995 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
997 2002-09-13 Christopher Faylor <cgf@redhat.com>
999 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1001 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1003 * gdbtypes.c (check_stub_method): Make static.
1004 (check_stub_method_group): New function.
1005 * gdbtypes.h: Update prototypes.
1006 * cp-support.c: New file.
1007 * cp-support.h: New file.
1009 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1010 (update_method_name_from_physname): New function.
1011 (read_member_functions): Correct method names for operators
1012 and v3 constructors/destructors. Separate v2 constructors and
1014 * Makefile.in (stabsread.o): Update dependencies.
1015 (SFILES): Add cp-support.c.
1016 (COMMON_OBS): Add cp-support.o.
1017 (cp_support_h, cp-support.o): Add.
1019 * cp-valprint.c (cp_print_class_method): Call
1020 check_stub_method_group instead of check_stub_method. Remove
1022 * p-valprint.c (pascal_object_print_class_method): Likewise.
1023 * valops.c (search_struct_method): Likewise.
1024 (find_method_list, value_struct_elt_for_reference): Likewise.
1026 2002-09-13 Andrew Cagney <cagney@redhat.com>
1028 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1029 * gdbarch.h, gdbarch.c: Regenerate.
1031 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1033 * frame.c (find_saved_register): Delete function.
1034 * frame.h (find_saved_register): Delete declaration.
1037 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1039 * mips-tdep.c (read_next_frame_reg): Re-hack using
1040 frame_register_unwind.
1042 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1044 * mips-tdep.c (mips_get_saved_register): Re-hack using
1045 frame_register_unwind.
1047 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1049 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1050 vector. Will be useful for Interix.
1051 * gdbarch.h, gdbarch.c: Regenerate.
1053 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1054 name of the malloc function by NAME_OF_MALLOC.
1056 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1058 * value.h (find_function_in_inferior): Add const keyword to
1059 one of the parameters. Allows us to invoke this function with
1061 * valops.c (find_function_in_inferior): Likewise.
1063 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1065 * exec.c (xfer_memory): Fix compilation warning with old versions
1067 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1069 2002-09-12 David Carlton <carlton@math.stanford.edu>
1071 * symtab.h: Run through gdb_indent.h.
1072 Add 2002 to Copyright year list.
1074 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1076 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1078 * MAINTAINERS: Add myself to write after approval list.
1080 2002-09-11 J. Brobecker <brobecker@gnat.com>
1082 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1084 2002-09-11 J. Brobecker <brobecker@gnat.com>
1086 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1089 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1091 * procfs.c (do_detach): Clear current signal, not just fault.
1092 Corrects problem with breakpoint trap signal leaking to detached
1095 2002-09-10 Michael Snyder <msnyder@redhat.com>
1097 * buildsym.c (finish_block): Protect against null pointer.
1099 2002-09-10 Andrew Cagney <cagney@redhat.com>
1101 * infcmd.c (default_print_registers_info): Send all output to
1102 ``file'' instead of ``gdb_stdout''.
1104 2002-09-10 Michael Snyder <msnyder@redhat.com>
1106 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1107 LONGEST, and use signed register read (addresses are sign-
1110 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1112 * event-loop.c (gdb_do_one_event): Make public.
1113 * event-loop.h (gdb_do_one_event): Declare.
1115 2002-09-10 Jeff Law <law@redhat.com>
1117 * infttrace.c (child_resume): Simplify and rework to avoid
1120 2002-09-09 Fred Fish <fnf@intrinsity.com>
1122 * printcmd.c (print_scalar_formatted): "len" is the number of
1123 target bytes, NOT the number of target bits.
1125 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1127 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1128 * top.c (init_main): Set rl_terminal_name.
1130 2002-09-08 Aidan Skinner <aidan@velvet.net>
1132 * ada-lang.c (ada_array_bound, ada_type_match,
1133 _initialize_ada_language): Fix K&R definitions.
1134 * ada-tasks.c (get_current_task): Fix K&R definitions.
1135 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1137 2002-09-07 Christopher Faylor <cgf@redhat.com>
1139 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1142 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1144 * i386-tdep.c (i386_register_virtual_type,
1145 i386_register_convertible, i386_register_convert_to_virtual,
1146 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1147 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1148 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1149 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1150 Don't set push_arguments twice.
1152 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1153 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1154 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1155 sigtramp_end to NULL.
1156 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1158 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1160 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1163 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1164 * gdbarch.h, gdbarch.c: Re-generate.
1165 * blockframe.c (find_pc_sect_partial_function): Convert to use
1166 SIGTRAMP_START_P predicate.
1168 2002-09-05 Michael Snyder <msnyder@redhat.com>
1170 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1171 generic_dummy_frame method and old method. Also distinguish
1172 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1173 (arm_extract_return_value): Use new regcache method.
1175 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1176 adjustment that doesn't conform to the ABI.
1177 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1178 saved regcache, not from current regcache.
1180 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1182 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1185 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1187 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1188 if arm_apcs_32 is false.
1190 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1192 GDB 5.3 branch created.
1194 2002-09-03 Theodore A. Roth <troth@verinet.com>
1196 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1197 generic_unwind_get_saved_register.
1199 2002-09-03 David Carlton <carlton@math.stanford.edu>
1201 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1202 argument (PR gdb/653). Update call to smash_to_method_type.
1203 (read_structure_scope): Update call to dwarf2_add_member_fn.
1205 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1207 * x86-64-linux-tdep.c: Include gdb_string.h
1208 * x86-64-linux-nat.c: Ditto.
1210 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1212 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1213 when YYDEBUG is set to 1.
1214 * c-exp.y: Likewise.
1215 * f-exp.y: Likewise.
1216 * jv-exp.y: Likewise.
1217 * m2-exp.y: Likewise.
1218 * p-exp.y: Likewise.
1220 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1222 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1224 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1225 solib_svr4_fetch_link_map_offsets to
1226 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1227 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1228 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1229 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1230 solib-svr4.o, and solib-legacy.o.
1231 * config/i386/tm-nbsd.h: Include solib.h.
1233 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1235 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1236 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1237 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1238 comment noting that this needs its own target configuration.
1239 * config/i386/nbsd.mt: New file.
1240 * config/i386/nbsdaout.mt: Remove.
1241 * config/i386/nbsdelf.mt: Ditto.
1242 * config/i386/tm-nbsdaout.h: Ditto.
1244 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1246 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1247 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1248 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1250 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1251 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1252 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1254 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1256 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1257 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1258 * i386-tdep.h (i386bsd_init_abi): New prototype.
1259 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1260 function declaration.
1261 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1262 for NetBSD-a.out or NetBSD-ELF.
1263 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1264 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1265 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1266 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1268 (i386nbsd_pc_in_sigtramp): New function.
1269 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1270 i386nbsd_pc_in_sigtramp.
1271 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1272 and i386nbsdelf_init_abi OS ABI handlers.
1273 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1274 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1276 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1278 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1279 registers if the target really has them.
1281 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1283 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1286 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1288 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1290 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1291 (alphanbsd_skip_sigtramp_frame): New functions.
1292 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1293 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1294 to alphanbsd_sigcontext_addr.
1296 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1298 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1300 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1301 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1302 nbsd_pc_in_sigtramp.
1303 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1304 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1305 * nbsd-tdep.c: Include gdb_string.h.
1306 (nbsd_pc_in_sigtramp): New function.
1307 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1308 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1309 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1310 ppcnbsd_pc_in_sigtramp.
1311 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1312 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1313 shnbsd_pc_in_sigtramp.
1314 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1315 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1316 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1318 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1320 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1321 watchpoints to NULL.
1322 (insert_breakpoints): set val field of watchpoints if NULL.
1325 2002-08-29 Jim Blandy <jimb@redhat.com>
1327 * symtab.c (lookup_symbol_aux): In the cases where we find a
1328 minimal symbol of an appropriate name and use its address to
1329 select a symtab to read and search, use `name' (as passed to us)
1330 as the demangled name when searching the symtab's global and
1331 static blocks, not the minsym's name.
1333 2002-08-29 Keith Seitz <keiths@redhat.com>
1335 * stack.c (print_frame_info_base): Always set current_source_symtab
1336 and current_source_line.
1338 2002-08-29 Donn Terry <donnte@microsoft.com>
1340 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1342 2002-08-28 Keith Seitz <keiths@redhat.com>
1344 * stack.c (select_frame): Add FIXME concerning selected-frame
1346 (select_frame_command): Send selected-frame-level-changed
1347 event notification, but only if the level actually changed.
1348 (up_silently_base): Add selected-frame-level-changed event
1350 (down_silently_base): Likewise.
1352 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1354 * Makefile.in: Update dependencies for all gdb/*.c files.
1356 2002-08-27 Tom Tromey <tromey@redhat.com>
1358 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1359 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1360 Update dependencies.
1361 * i387-tdep.c: Include gdb_string.h.
1362 * osabi.c: Likewise.
1363 * i386-linux-nat.c: Likewise.
1364 * lin-lwp.c: Likewise.
1365 * ax-gdb.c: Likewise.
1366 * signals/signals.c: Likewise.
1367 * jv-valprint.c: Likewise.
1368 * p-lang.c: Likewise.
1369 * c-valprint.c: Likewise.
1370 * cp-abi.c: Likewise.
1372 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1374 * cli/cli-script.h (copy_command_lines): Export.
1375 * breakpoint.c: Include cli/cli-script.h.
1376 * Makefile.in (breakpoint.o): Update dependencies.
1378 2002-08-26 Michael Snyder <msnyder@redhat.com>
1380 * breakpoint.c (insert_breakpoints): Protect all references
1381 to 'process_warning'. Shorten long lines.
1383 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1385 * cli/cli-script.c (copy_command_lines): New function.
1386 * defs.h (copy_command_lines): Export.
1387 * testsuite/gdb.base/commands.exp: New tests for commands
1388 attached to a temporary breakpoint, and for commands that
1389 delete the breakpoint they are attached to.
1391 2002-08-26 Michael Snyder <msnyder@redhat.com>
1393 * breakpoint.c (bpstat_stop_status): Instead of copying the
1394 pointer to the breakpoint commands struct, make a new copy
1395 of the struct and point to that.
1396 (bpstat_clear): Free the commands struct.
1397 (bpstat_clear_actions): Free the commands struct.
1398 (bpstat_do_actions): Free the command actions. Also execute
1399 the local cleanups, instead of deleting them.
1400 (delete_breakpoint): Leave the commands field of the bpstat
1401 chain alone -- it will be freed later.
1403 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1405 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1406 deleted in 2002-08-20 commit. This function is still used by
1409 2002-08-26 Keith Seitz <keiths@redhat.com>
1411 * gdb-events.sh: Add selected-frame-level-changed event.
1412 * gdb-events.c: Regenerated.
1413 * gdb-events.h: Regenerated.
1415 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1418 * inflow.c (terminal_save_ours): New function to save terminal
1420 * inferior.h (terminal_save_ours): Declare.
1421 * target.c (debug_to_terminal_save_ours): New function.
1422 (cleanup_target): Defaults to_terminal_save_ours.
1423 (update_current_target): Inherit to_terminal_save_ours.
1424 (setup_target_debug): Set to_terminal_save_ours.
1425 * target.h (target_terminal_save_ours): New to save terminal settings.
1426 (target_ops): New member to_terminal_save_ours.
1427 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1428 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1429 * inftarg.c (init_child_ops): Likewise.
1430 * m3-nat.c (init_m3_ops): Likewise.
1431 * procfs.c (init_procfs_ops): Likewise.
1432 * wince.c (init_child_ops): Likewise.
1433 * win32-nat.c (init_child_ops): Likewise.
1434 * sol-thread.c (init_sol_thread_ops): Likewise.
1436 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1438 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1439 use regcache_* functions.
1440 (i386_gdbarch_init): Set store_return_value instead of
1441 deprecated_store_return_value.
1443 * regcache.c (regcache_raw_write_signed,
1444 regcache_raw_write_unsigned): New functions.
1445 * regcache.h (regcache_raw_write_signed,
1446 regcache_raw_write_unsigned): New prototypes.
1448 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1450 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1451 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1452 source file dependencies. Cleanup corresponding generator rules.
1454 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1456 * regcache.h (register_offset_hack): Declare.
1457 (regcache_cooked_read_using_offset_hack): Declare.
1458 (regcache_cooked_write_using_offset_hack): Declare.
1460 * regcache.c (register_offset_hack): New function.
1461 (regcache_cooked_read_using_offset_hack): New function.
1462 (regcache_cooked_write_using_offset_hack): New function.
1463 (regcache_dump): Check that the registers, according to their
1464 offset, are packed hard against each other.
1465 (cooked_xfer_using_offset_hack): New function.
1467 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1469 * regcache.c (struct regcache_descr): Add field register_type.
1470 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1472 (init_regcache_descr): Initialize register_type. Pass the descr
1473 to init_legacy_regcache_descr. Use register_type instead of
1474 REGISTER_VIRTUAL_TYPE.
1475 (register_type): New function.
1476 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1477 * regcache.h (register_type): Declare.
1479 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1481 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1482 instead of deprecated_store_return_value. Fix fallout from
1483 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1485 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1487 * regcache.c (max_register_size): New function.
1488 (init_legacy_regcache_descr): Ensure that max_register_size is
1489 large enough for REGISTER_VIRTUAL_SIZE.
1490 * regcache.h (max_register_size): Declare.
1492 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1494 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1496 (e500_extract_return_value): Change type of valbuf pointer to
1499 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1501 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1504 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1505 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1506 long long) to prevent compiler warning on 64-bit systems.
1508 2002-08-23 Andrew Cagney <cagney@redhat.com>
1510 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1511 (DEPRECATED_STORE_RETURN_VALUE): New method.
1512 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1513 * gdbarch.h, gdbarch.c: Re-generate.
1515 * values.c (set_return_value): Pass current_regcache to
1517 * arch-utils.h (legacy_store_return_value): Declare.
1518 * arch-utils.c (legacy_store_return_value): New function.
1519 (legacy_extract_return_value): Update parameters.
1521 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1523 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1524 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1525 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1526 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1527 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1528 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1529 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1530 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1531 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1532 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1535 * i386-tdep.c (i386_extract_return_value): Update.
1536 * arch-utils.c (legacy_extract_return_value): Update.
1537 * frv-tdep.c (frv_gdbarch_init): Update.
1538 * cris-tdep.c (cris_gdbarch_init): Update.
1539 * d10v-tdep.c (d10v_gdbarch_init): Update.
1540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1541 * m68k-tdep.c (m68k_gdbarch_init): Update.
1542 * mcore-tdep.c (mcore_gdbarch_init): Update.
1543 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1544 * s390-tdep.c (s390_gdbarch_init): Update.
1545 * sparc-tdep.c (sparc_gdbarch_init): Update.
1546 * sh-tdep.c (sh_gdbarch_init): Update.
1547 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1548 * v850-tdep.c (v850_gdbarch_init): Update.
1549 * avr-tdep.c (avr_gdbarch_init): Update.
1550 * ia64-tdep.c (ia64_gdbarch_init): Update.
1551 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1552 * vax-tdep.c (vax_gdbarch_init): Update.
1553 * alpha-tdep.c (alpha_gdbarch_init): Update.
1554 * arm-tdep.c (arm_gdbarch_init): Update.
1555 * mips-tdep.c (mips_gdbarch_init): Update.
1556 * i386-tdep.c (i386_gdbarch_init): Update.
1558 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1560 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1561 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1563 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1565 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1568 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1570 * infrun.c (handle_inferior_event): Move a comment outside of a
1571 function call, in order to avoid indent reformatting this part
1572 of the code in an unreadable way.
1574 2002-08-23 Grace Sainsbury <graces@redhat.com>
1576 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1577 when breakpoints fail. Move general breakpoint error messages to
1579 * breakpoint.c (insert_breakpoints): Change warnings when
1580 breakpoints are nto inserted to specify the type. Remove call to
1581 memory_error when hardware breakpoints can't be inserted. Remove
1582 multiple calls to warning so all messages are sent to the user at
1584 (delete_breakpoints): Make insert error messsages more explicit.
1586 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1588 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1589 gdbserver/ChangeLog.
1591 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1593 * i386-tdep.c: Include "objfiles.h".
1594 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1595 skip_trampoline_code.
1596 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1597 (CPLUS_MARKER): Define to '.'.
1599 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1601 (linux_corefile_thread_callback): Increase args->num_notes.
1602 (linux_make_note_section): Initialize thread_args.num_notes, and
1603 use it to determine whether notes for any threads were created.
1605 2002-08-23 Donn Terry <donnte@microsoft.com>
1607 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1608 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1610 (write_with_trace): Conditionalize out the switch branch handling
1611 PCSHOLD if the corresponding macro is not defined. Likewise for
1612 PRSABORT and PRSTOP.
1613 This change will be needed by the Interix port.
1615 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1617 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1618 write_register wherever possible instead of manipulating the
1619 register bytes directly.
1620 Assign VALUE_CONTENTS to a variable and use that.
1621 The GPR numbers are now dependent on the architecture.
1623 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1625 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1627 (skip_prologue): Add support for BookE/e500 instructions.
1628 (e500_extract_return_value): New function.
1629 (frame_get_saved_regs): Add support for saving ev registers and
1631 (e500_store_return_value): New function.
1632 (rs6000_gdbarch_init): Move up default intializations of
1633 deprecated_extract_return_value and store_return_value. Overwrite
1634 init of store_return_value with e500 specific version.
1635 Set extract_return_value for e500.
1637 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1639 * blockframe.c (generic_call_dummy_register_unwind): Use
1640 regcache_cooked_read to catch cases in which the variable is
1641 stored in a pseudo register.
1643 2002-08-22 Andrew Cagney <cagney@redhat.com>
1645 * NEWS: Mention that the i960 has been made obsolete.
1646 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1648 (remote-nrom.o): Obsolete target.
1649 (remote-nindy.o, i960-tdep.o): Ditto.
1650 * remote-nrom.c: Make file obsolete.
1651 * remote-nindy.c, remote-vx960.c: Ditto.
1652 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1653 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1654 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1655 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1656 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1657 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1658 i960-*-vxworks* obsolete.
1659 * MAINTAINERS: Note that the i960 is obsolete.
1661 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1663 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1664 detach to allow reinitialization.
1666 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1668 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1671 2002-08-22 Jim Blandy <jimb@redhat.com>
1673 * coffread.c (coff_symfile_read): Don't try to read the line
1674 number table from disk if the image file doesn't have a symbol
1675 table; we'll never actually look at the info anyway, and Windows
1676 ships DLL's with bogus file offsets for the line number data.
1678 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1680 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1683 2002-08-21 Michael Snyder <msnyder@redhat.com>
1685 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1686 (MSYMBOL_SIZE): Replace macro with function.
1687 (DEFAULT_MIPS_TYPE): Delete unused macro.
1688 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1689 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1691 2002-08-21 Jim Blandy <jimb@redhat.com>
1693 * valops.c (value_cast): Simplify and correct logic for doing a
1694 static cast from a pointer to a base class to a pointer to a
1697 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1699 * infcmd.c (default_print_registers_info): Replace
1701 (registers_info): Use gdbarch_print_registers_info instead of
1703 * inferior.h (default_print_registers_info): Replace
1705 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1706 (DO_REGISTERS_INFO): Change to a predicate function.
1707 * gdbarch.h, gdbarch.c: Regenerate.
1709 2002-08-21 Keith Seitz <keiths@redhat.com>
1711 * gdb-events.sh: Add target-changed event.
1712 * gdb-events.c: Regenerated.
1713 * gdb-events.c: Regenerated.
1714 * valops.c (value_assign): Add target-changed event notification
1715 to inlval_register, lval_memory, and lval_reg_frame_relative.
1717 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1719 * NEWS: Add an entry regarding the improvement of the next/step
1720 operation on Alpha Tru64 multi-processor machines.
1722 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1724 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1726 * Makefile.in: Update all _h macro definitions.
1727 * Makefile.in (install-gdbtk): Move to install section.
1728 (rdi-share/libangsd.a): Move to end of file.
1730 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1732 * frame.c (frame_register_unwind): When a register, set addrp to
1733 the register's byte.
1735 2002-08-20 Michael Snyder <msnyder@redhat.com>
1737 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1738 used locally, so move them from the target machine header to here.
1739 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1740 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1742 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1744 2002-08-20 Andrew Cagney <cagney@redhat.com>
1746 * NEWS: Mention that the Apollo line was made obsolete.
1747 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1748 m68*-hp-hpux* obsolete.
1749 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1750 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1751 * buildsym.c (make_blockvector): Make static.
1752 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1753 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1754 (ALLDEPFILES): Remove dstread.c.
1755 (dstread.o): Obsolete make rule.
1756 * dstread.c: Makefile obsolete.
1758 * config/m68k/hp300hpux.mt: Ditto.
1759 * config/m68k/hp300hpux.mh: Ditto.
1760 * config/m68k/hp300bsd.mt: Ditto.
1761 * config/m68k/hp300bsd.mh: Ditto.
1762 * config/m68k/apollo68b.mt: Ditto.
1763 * config/m68k/apollo68v.mh: Ditto.
1764 * config/m68k/apollo68b.mh: Ditto.
1766 2002-08-20 Michael Snyder <msnyder@redhat.com>
1768 * mips-tdep.c (mips_in_return_stub): Make static.
1769 (mips_gdbarch_init): Set in_solib_return_trampoline.
1770 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1772 2002-08-20 Michael Snyder <msnyder@redhat.com>
1774 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1775 * gdbarch.c, gdbarch.h: Regenerate.
1776 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1778 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1780 2002-08-20 Michael Snyder <msnyder@redhat.com>
1782 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1783 (mips_gdbarch_init): Set skip_trampoline_code,
1784 in_solib_call_trampoline.
1785 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1786 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1788 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1790 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1792 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1793 vector type for ev registers.
1794 (e500_pseudo_register_read): New function.
1795 (e500_pseudo_register_write): New function.
1796 (e500_dwarf2_reg_to_regnum): New function.
1797 (PPC_UISA_NOFP_SPRS): New macro.
1798 (PPC_EV_REGS): New macro.
1799 (PPC_GPRS_PSEUDO_REGS): New macro.
1800 (registers_e500): New register set for e500.
1801 (variants): Add e500 variant.
1802 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1803 before setting architectural dependent variations. Initialize ev
1804 registers numbers. Add case for e500 architecture. Set the
1805 number of pseudo registers.
1807 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1809 * rs6000-tdep.c: Clean up comments.
1811 2002-08-20 Andrew Cagney <cagney@redhat.com>
1813 * h8300-tdep.c: Re-indent file.
1815 2002-08-20 Jim Blandy <jimb@redhat.com>
1817 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1820 2002-08-20 Keith Seitz <keiths@redhat.com>
1822 * breakpoints.c (watch_command_1): Use internal breakpoint
1823 when setting a watchpoint_scope breakpoint.
1825 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1827 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1828 (build_builtin_type_vec64i): Ditto.
1829 (build_builtin_type_vec128): Ditto.
1830 (build_builtin_type_vec128i): Ditto.
1832 2002-08-19 Michael Snyder <msnyder@redhat.com>
1834 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1835 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1836 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1837 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1838 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1839 CALL_DUMMY_ADDRESS): Delete.
1840 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1841 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1842 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1843 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1844 push_return_address.
1845 (mips_register_raw_size, mips_eabi_use_struct_convention,
1846 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1847 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1848 mips_init_extra_frame_info, mips_eabi_push_arguments,
1849 mips_n32n64_push_arguments, mips_push_return_address,
1850 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1851 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1853 2002-08-19 Michael Snyder <msnyder@redhat.com>
1855 * mips-tdep.c (mips_frame_num_args): New function.
1856 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1857 frame_saved_pc, frame_args_address, frame_locals_address,
1858 frame_num_args, and frame_args_skip.
1859 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1860 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1861 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1862 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1864 2002-08-20 Michael Snyder <msnyder@redhat.com>
1866 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1867 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1868 * mips-tdep.c (mips_store_struct_return): New function.
1869 (mips_extract_struct_value_address): New function.
1870 (mips_gdbarch_init): Set store_struct_return and
1871 extract_struct_value_address.
1873 2002-08-20 David Carlton <carlton@math.stanford.edu>
1875 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1876 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1877 (read_file_scope): Check that line_header is nonzero before
1878 decoding macro information.
1880 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1882 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1883 flag the general-purpose registers as floating-point on targets
1884 that don't support the floating-point registers.
1886 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1888 * rs6000-tdep.c (altivec_register_p): Delete.
1889 (rs6000_do_altivec_registers): Delete.
1890 (rs6000_altivec_registers_info): Delete.
1891 (rs6000_do_registers_info): Delete.
1892 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1893 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1895 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1897 * infcmd.c (do_registers_info): Print vector registers in hex
1899 (print_vector_info): Check that printing registers
1901 (print_float_info): Ditto.
1903 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1905 * mips-tdep.c (mips_gdbarch_init): Update.
1906 (mips_o32_extract_return_value): Rewrite.
1907 (mips_o32_store_return_value): Rewrite.
1908 (mips_o32_xfer_return_value): New function.
1909 (mips_xfer_register): Tweak debug print message. Allow for
1910 buf_offset when dumping the value transfered.
1912 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1914 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1915 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1916 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1917 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1918 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1920 2002-08-14 Michael Snyder <msnyder@redhat.com>
1922 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1924 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1926 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1928 (P): New macro to define a register as a pseudo register.
1929 (R, R4, R8, R16, FR32, R64, R0): Updated.
1930 (struct variant): Add new fields for number of pseudo registers
1931 and number of total registers.
1932 (tot_num_registers): New macro replacing....
1933 (num_registers): ...deleted macro.
1934 (num_registers): New function.
1935 (num_pseudo_registers): New function.
1936 (variants): Update all variants to intialize new fields correctly.
1937 Postpone initialization of number of pseudo regs and real regs.
1938 (init_variants): New function.
1939 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1942 2002-08-19 David Carlton <carlton@math.stanford.edu>
1944 * valops.c (search_struct_field): Change error message to treat
1945 return value of 0 from value_static_field as meaning that field is
1947 (value_struct_elt_for_reference): Ditto.
1948 * values.c (value_static_field): Treat an unresolved location the
1949 same as a nonexistent symbol. Fix PR gdb/635.
1950 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1951 enclosed. Fix PR gdb/574.
1952 * MAINTAINERS: Add self to Write After Approval list.
1954 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1956 * mips-tdep.c (mips_xfer_register): New function.
1957 (mips_n32n64_extract_return_value): Rewrite.
1958 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1959 instead of deprecated_extract_return_value.
1961 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1963 * rs6000-tdep.c (TDEP): Delete macro.
1964 (branch_dest): Replace use of TDEP macro with its body.
1965 (rs6000_pop_frame): Ditto.
1966 (rs6000_push_arguments): Ditto.
1967 (rs6000_skip_trampoline_code): Ditto.
1968 (rs6000_frame_saved_pc): Ditto.
1969 (rs6000_frame_chain): Ditto.
1970 (rs6000_register_name): Ditto.
1971 (rs6000_register_byte): Ditto.
1972 (rs6000_register_raw_size): Ditto.
1973 (rs6000_register_virtual_type): Ditto.
1974 (rs6000_register_convertible): Ditto.
1975 (rs6000_convert_from_func_ptr_addr): Ditto.
1977 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1979 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1981 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1982 MIPS_LINUX_JB_ELEMENT_SIZE.
1983 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1984 for MAX_REGISTER_RAW_SIZE arrays.
1985 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1986 MIPS_LINUX_JB_ELEMENT_SIZE.
1988 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1990 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1992 2002-08-19 Aidan Skinner <aidan@velvet.net>
1994 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1995 ada-valprint.c ada-tasks.c.
1996 (YYFILES): Add ada-exp.y.
1997 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1998 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1999 (ada-exp.tab.o): New target.
2001 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2003 * regcache.c (regcache_xfer_part): New function.
2004 (regcache_raw_read_part): New function.
2005 (regcache_raw_write_part): New function.
2006 (regcache_cooked_read_part): New function.
2007 (regcache_cooked_write_part): New function.
2008 * regcache.h (regcache_raw_read_part): Declare.
2009 (regcache_raw_write_part): Declare.
2010 (regcache_cooked_read_part): Declare.
2011 (regcache_cooked_write_part): Declare.
2013 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2015 * remote.c (remote_open_1): Add async_p.
2016 (remote_async_open_1): Delete.
2017 (open_remote_target): Delete.
2018 (remote_open, extended_remote_open): Update calls to remote_open_1.
2019 (remote_async_open, extended_remote_async_open): Call
2020 remote_open_1 instead of remote_async_open_1.
2022 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2024 * blockframe.c: Fix a few coding standard violations.
2026 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2028 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2030 * config/i386/tm-i386sco5.h: ... here. File removed.
2031 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2033 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2034 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2035 (TM_FILE): Set to tm-i386.h.
2036 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2037 * config/i386/tm-i386v.h: Remove file.
2038 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2039 instead of "i386/tm-i386v.h".
2040 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2041 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2043 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2044 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2047 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2049 * config/i386/nm-i386v.h: Add protection against
2051 (i386_register_u_addr): Remove prototype.
2052 (register_u_addr): New prototype.
2053 (REGISTER_U_ADDR): Redefine accordingly.
2054 * i386v-nat.c: Improve several comments.
2055 (i386_register_u_addr): Change signature and rename to
2056 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2059 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2061 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2062 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2063 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2064 deprecated_extract_return_value.
2065 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2066 rename mips_o32o64_push_arguments.
2067 (mips_gdbarch_init): Update.
2068 (mips_extract_return_value): Delete.
2069 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2070 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2071 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2072 (mips_n32n64_extract_return_value): Clone
2073 mips_extract_return_value.
2074 (mips_store_return_value): Delete.
2075 (mips_o32_store_return_value): Clone mips_store_return_value.
2076 (mips_o64_store_return_value): Clone mips_store_return_value.
2077 (mips_eabi_store_return_value): Clone mips_store_return_value.
2078 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2080 2002-08-18 Aidan Skinner <aidan@velvet.net>
2082 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2083 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2085 2002-08-18 Aidan Skinner <aidan@velvet.net>
2087 * ada-lang.c: Run through gdb_indent.sh.
2088 * ada-lang.h: Run through gdb_indent.sh.
2089 * ada-tasks.c: Run through gdb_indent.sh.
2090 * ada-typeprint.c: Run through gdb_indent.sh.
2091 * ada-valprint.c: Run through gdb_indent.sh.
2093 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2095 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2098 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2100 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2102 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2103 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2105 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2106 write_register_gen instead of write_register_bytes.
2108 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2109 i[3456]-*-osf1mk* configurations have been made obsolete.
2110 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2111 i[3456]86-*-osf1mk* hosts obsolete.
2112 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2114 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2115 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2116 config/i386/i386m3.mt, config/i386/nm-m3.h,
2117 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2118 config/i386/i386mk.mh, config/i386/i386mk.mt,
2119 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2121 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2122 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2123 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2125 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2127 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2128 (hppa_value_returned_from_stack): Declare.
2129 (hppa_extract_return_value): Declare.
2130 * config/pa/hppa.mt: New file.
2131 * configure.tgt: Recognize hppa*-*-*.
2132 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2134 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2136 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2139 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2141 * top.c (gdb_rl_operate_and_get_next): Make sure
2142 operate-and-get-next functions correctly even when the history
2143 list is completely filled.
2145 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2147 * MAINTAINERS (Target Instruction Set Architectures): Rename
2148 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2149 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2150 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2151 already listed under Host/Native.
2153 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2154 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2157 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2159 * config/ia64/ia64.mt: New file.
2160 * config/alpha/alpha.mt: New file.
2161 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2162 ia64-linux-gnu. Mention that ia64-elf is broken.
2163 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2165 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2167 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2168 generic_func_frame_valid instead of func_frame_valid.
2170 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2172 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2173 procfs appears to be broken when debugging on multi-processor
2174 machines. So enable software single stepping in order to avoid
2175 using the procfs interface to do next/step operations, using
2176 internal breakpoints instead.
2178 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2179 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2180 make this pc address equal to the value it would have if the
2181 system stepping capability was used. Also set a new flag used
2182 to ensure that we don't readjust the PC one more time later.
2184 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2185 address by DECR_PC_AFTER_BREAK when software single step is
2186 in use for this architecture, as this has already been taken
2187 care of in handle_inferior_event().
2189 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2191 * infrun.c (handle_inferior_event): Minor reformatting, to make
2192 a rather long condition expression easier to read.
2194 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2196 * Makefile.in (gdbtk.o): Move to end of file.
2197 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2198 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2199 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2200 (gdbtk-wrapper.o, gdbres.o): Ditto.
2202 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2204 * Makefile.in (copying.o): Separate out compile rule.
2205 (hpux-thread.o, procfs.o, signals.o): Ditto.
2206 (v850ice.o, z8k-tdep.o): Ditto.
2207 (tui-file.o): Move to TUI section.
2208 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2209 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2211 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2213 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2214 skip_trampoline_code, for better namespace-proofing.
2216 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2218 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2220 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2222 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2224 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2225 signal, check whether we hit a breakpoint before checking for a
2226 single step breakpoint. Otherwise, GDB fails to notice that a
2227 breakpoint has been hit when stepping onto a breakpoint.
2229 2002-08-16 Keith Seitz <keiths@redhat.com>
2231 * gdb-events.sh (clear_gdb_event_hooks): New function.
2232 * gdb-events.c: Regenerate.
2233 * gdb-events.h: Regenerate.
2235 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2237 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2238 not_a_sw_breakpoint.
2239 * breakpoint.h (bpstat_stop_status): Add parameter names.
2241 2002-08-16 Grace Sainsbury <graces@redhat.com>
2243 * remote.c (remote_insert_hw_breakpoint)
2244 (remote_remove_hw_breakpoint): Fix calculation of length field
2247 2002-08-15 Michael Snyder <msnyder@redhat.com>
2249 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2250 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2251 (supply_fpregset): Ditto.
2253 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2254 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2255 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2256 (TARGET_READ_SP): Delete.
2257 (DO_REGISTERS_INFO): Delete.
2258 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2260 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2261 from macros to functions.
2263 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2264 (mips_register_convertible, mips_register_convert_to_virtual,
2265 mips_register_convert_to_raw): Make static.
2266 (mips_read_sp): New function.
2267 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2268 (mips_do_registers_info): Make static.
2269 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2270 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2271 (mips_register_convert_from_type, mips_register_convert_to_type):
2273 (mips_gdbarch_init): Set up function_start_offset,
2274 register_virtual_size, pc_in_sigtramp.
2276 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2278 * infcmd.c (vector_info): New function.
2279 (_initialize_infcmd): Add command "info vector".
2280 (print_vector_info): New function.
2282 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2283 * gdbarch.h, gdbarch.c: Regenerate.
2285 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2287 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2288 ``print_all''. Only print vector registers when ``print_all''.
2290 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2292 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2293 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2295 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2296 Add `args' parameter.
2297 * gdbarch.h, gdbarch.c: Regenerate.
2299 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2301 * infcmd.c (float_info): Call print_float_info.
2302 (print_float_info): New function. By default, print the
2303 floating-point registers.
2305 * arch-utils.h (default_print_float_info): Delete declaration.
2306 * arch-utils.c (default_print_float_info): Delete function.
2308 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2310 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2313 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2316 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2317 * configure.host: Make i[3456]86-*-aix host obsolete.
2318 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2319 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2320 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2321 config/i386/xm-i386aix.h: Make files obsolete.
2322 * i386aix-nat.c: Make file obsolete.
2323 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2324 (i386aix-nat.o): Make target obsolete.
2326 * config/i386/nm-gnu.h: Removed.
2327 * config/i386/nm-i386gnu.h: New file.
2328 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2329 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2331 * config/i386/tm-i386gnu.h: ... here. Removed.
2332 * config/i386/xm-i386gnu.h: Removed.
2333 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2334 (NAT_FILE): Set to nm-i386gnu.h.
2335 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2336 * i386-tdep.c: New file.
2337 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2338 (i386gnu-tdep.o): Specify dependencies.
2340 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2342 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2343 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2344 Adjust a few comments to reflect reality a bit closer.
2345 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2346 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2347 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2348 target_insert_watchpoint, target_remove_watchpoint):
2350 * config/i386/nm-i386sco5.h: ... here.
2351 (kernel_u_size): Add prototype. Improve a few comments and add
2352 protection against multiple inclusion.
2354 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2357 * uw-thread.c (SP_ARG0): Define if not already defined.
2358 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2360 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2362 * config/i386/tm-i386.h: Don't include "regcache.h".
2364 * i387-tdep.h (i387_print_float_info): New prototype.
2365 * i387-tdep.c (print_i387_value, print_i387_ext,
2366 print_i387_status_word, print_i387_control_word): Add `struct
2367 ui_file *' argument and use it for output.
2368 (i387_print_float_info): Renamed from i387_float_info. Add
2369 `struct gdbarch *' and `struct ui_file *' arguments and use the
2371 * i386-tdep.c: Include "i387-tdep.h".
2372 (i386_gdbarch_init): Set print_float_info.
2373 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2374 (FLOAT_INFO): Remove define.
2376 2002-08-13 Michael Snyder <msnyder@redhat.com>
2378 * mips-tdep.c (mips_push_arguments): Rename to
2379 mips_eabi_push_arguments, and tune for EABI.
2380 (MIPS_REGS_HAVE_HOME_P): Delete.
2381 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2382 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2383 Delete references to mips_regs_have_home_p.
2385 2002-08-14 Keith Seitz <keiths@redhat.com>
2387 * Makefile.in (install-gdbtk): Create insight plugin directory.
2388 Install plugins.tcl file.
2390 2002-08-14 Keith Seitz <keiths@redhat.com>
2392 * configure.in: Move SUBDIRS to near top of the file so that
2393 --enable options may add things to it.
2394 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2395 * configure: Regenerate.
2397 2002-08-13 Michael Snyder <msnyder@redhat.com>
2399 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2400 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2401 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2403 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2405 * vax-tdep.c (vax_get_saved_register): Delete function.
2406 (vax_gdbarch_init): Update.
2407 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2408 (ns32k_gdbarch_init): Update.
2409 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2410 (alpha_gdbarch_init): Update.
2412 2002-08-13 Andrew Cagney <cagney@redhat.com>
2414 * regcache.c (init_regcache_descr): Overallocate the
2415 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2416 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2418 (set_register_cached): Add range checking assertions. Use
2421 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2423 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2424 numbers for MMX registers.
2426 2002-08-13 Andrew Cagney <cagney@redhat.com>
2428 * i386-tdep.c (i386_gdbarch_init): Use
2429 generic_unwind_get_saved_register.
2431 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2433 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2434 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2436 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2437 Delete. Add comment regarding this now-deleted target method.
2439 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2441 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2442 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2443 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2444 real PC and the page number (if it's within the memory bank window).
2445 (m68hc11_pseudo_register_write): Likewise when saving.
2446 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2447 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2448 (m68hc11_register_raw_size): And use 32-bit for it.
2449 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2450 16K memory bank is used by the prog; also use the virtual pc.
2452 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2454 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2455 (m68hc11_gdbarch_init): Install it in gdbarch.
2456 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2457 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2458 (MSYMBOL_SIZE): New for documentation.
2459 (insn_return_kind): Enum to specify how a function returns.
2460 (frame_extra_info): Cleanup and record the return mode.
2461 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2462 register in address computation.
2463 (m68hc11_get_return_insn): New to obtain the return instruction used
2465 (m68hc11_frame_init_saved_regs): Take into account the return
2466 instruction used by the function for far and interrupt functions.
2467 (m68hc11_init_extra_frame_info): Take into account page register.
2468 (m68hc11_frame_args_address): Adjust according to the return mode.
2469 (show_regs): Print page register only when it's used.
2471 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2473 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2474 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2475 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2477 (m68hc11_register_raw_size): Likewise.
2479 2002-08-13 Andrew Cagney <cagney@redhat.com>
2481 * i386-tdep.c (i386_register_name): Handle mmx registers.
2482 (mmx_regnum_p): New function.
2483 (i386_mmx_names): New array.
2484 (mmx_num_regs): New variable.
2485 (i386_pseudo_register_read): New function.
2486 (i386_pseudo_register_write): New function.
2487 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2489 * regcache.c (regcache_raw_read_unsigned): New function.
2490 (regcache_raw_read_signed): New function.
2491 * regcache.h (regcache_raw_read_unsigned): Declare.
2492 (regcache_raw_read_signed): Declare.
2494 2002-08-13 Andrew Cagney <cagney@redhat.com>
2496 * regcache.c (regcache_raw_read_as_address): Delete function.
2497 (regcache_cooked_read_signed): New function.
2498 (regcache_cooked_read_unsigned): New function.
2499 * regcache.h (regcache_cooked_read_signed): Declare.
2500 (regcache_cooked_read_unsigned): Declare.
2501 (regcache_raw_read_as_address): Delete declaration.
2503 * blockframe.c (generic_read_register_dummy): Use
2504 regcache_cooked_read_unsigned.
2505 * i386-tdep.c (i386_extract_struct_value_address): Use
2506 regcache_cooked_read_unsigned.
2508 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2511 double sizes according to ELF ABI flags.
2512 (gdbarch_tdep): Record elf_flags.
2514 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2516 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2517 (m6812_prolog): They can appear in 68HC12 function prologue.
2518 (m68hc11_frame_chain): Cleanup.
2520 2002-08-12 Andrew Cagney <cagney@redhat.com>
2522 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2524 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2525 (i386_linux_register_raw_size): Delete function.
2526 (i386_linux_init_abi): Update.
2527 * i386-tdep.c (i386_register_raw_size): Delete function.
2528 (i386_register_byte): Delete function.
2529 (i386_gdbarch_init): Update.
2530 (i386_register_size): Delete array.
2531 (i386_register_offset): Delete array.
2533 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2534 (REGISTER_RAW_SIZE): Delete macro.
2535 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2536 (REGISTER_BYTE): Delete macro.
2538 2002-08-11 Aidan Skinner <aidan@velvet.net>
2540 * ada-lang.c (ada_lookup_partial_symbol)
2541 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2542 prototype names so that grep ^func works properly.
2544 * ada-lang.c (ada_array_element_type)
2545 (ada_lookup_partial_symbol): Fix typos in parameter list.
2547 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2548 Fix prototype names so that grep ^func works properly.
2550 2002-08-10 Andrew Cagney <cagney@redhat.com>
2551 Elena Zannoni <ezannoni@redhat.com>
2552 Martin M. Hunt <hunt@redhat.com>
2554 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2555 (build_builtin_type_vec128i): Set the vector bit.
2556 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2557 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2558 (build_builtin_type_vec64): New function.
2559 (build_builtin_type_vec64i): New function.
2560 (build_gdbtypes): Initialize builtin_type_vec64 and
2561 builtin_type_vec64i.
2563 2002-08-09 Andrew Cagney <cagney@redhat.com>
2565 * regcache.c (regcache_dump): Compare the register offset
2567 * arch-utils.c (generic_register_byte): New function.
2568 * arch-utils.h (generic_register_byte): Declare.
2569 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2570 * gdbarch.h, gdbarch.c: Regenerate.
2572 2002-08-09 Andrew Cagney <cagney@redhat.com>
2574 * regcache.c: Include "gdbcmd.h"
2575 (_initialize_regcache): Add commands "maintenance print
2576 registers", "maintenance print raw-registers" and "maintenance
2577 print cooked-registers".
2578 (enum regcache_dump_what): Define.
2579 (dump_endian_bytes): New function.
2580 (regcache_dump): New function.
2581 (regcache_print): New function.
2582 (maintenance_print_registers): New function.
2583 (maintenance_print_raw_registers): New function.
2584 (maintenance_print_cooked_registers): New function.
2585 * Makefile.in (regcache.o): Update dependencies.
2587 2002-08-09 Michael Snyder <msnyder@redhat.com>
2589 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2590 (mips_push_arguments): Correct some comments. Use paddr_nz
2591 for printing addresses in debug output. Replace static
2592 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2593 (mips_n32n64_push_arguments): New function, cloned from
2594 mips_push_arguments and tuned for the n32/n64 ABI.
2595 (mips_push_register): Buffer needs dynamic allocation.
2596 (mips_print_register): Ditto.
2597 (do_gp_register_row): Ditto.
2598 (mips_store_return_value): Ditto.
2599 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2601 2002-08-09 Don Howard <dhoward@redhat.com>
2603 * memattr.c (mem_info_command): Print special case of upper bound
2604 as max CORE_ADDR + 1.
2606 2002-08-08 Michael Snyder <msnyder@redhat.com>
2608 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2609 returns structs by ref if they're too big to fit in two registers.
2611 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2613 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2615 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2616 mips_find_saved_regs().
2617 (mips_pop_frame): Likewise.
2619 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2621 * blockframe.c (frame_saved_regs_register_unwind): Revise
2622 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2625 2002-08-09 Grace Sainsbury <graces@redhat.com>
2627 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2628 T-packets; the 'a' is not taken as a register number.
2629 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2630 (remote_stopped_data_address): New functions; add to target
2632 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2633 prototypes to match other implementations of this
2634 function. replace integer argument with pointer -- the length
2635 field in the Z-packet is the length of what is pointed to or 1 if
2636 pointer is null. Add to target vector.
2637 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2641 * remote.c (remote_wait): Add support to extract optional
2642 watchpoint information from T-packet. Ignore unrecognized
2643 optional info in T-packet.
2644 (remote_async_wait): Ditto.
2646 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2648 * cli/cli-dump.c: Change fopen modes to use binary open modes
2649 as defined in include/fopen-bin.h throughout.
2651 2002-08-08 Michael Snyder <msnyder@redhat.com>
2653 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2655 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2657 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2658 assertion failure by returning early after a warning.
2660 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2662 * mips-tdep.c (mips_find_saved_regs): Make static.
2663 (mips_frame_init_saved_regs): New function.
2664 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2665 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2666 (mips_find_saved_regs): Delete declaration.
2668 2002-08-08 Grace Sainsbury <graces@redhat.com>
2670 * remote.c (remote_wait, remote_async_wait): Change
2671 thread_num from int to ULONGEST.
2672 (unpack_varlen_hex): Change result parameter from
2673 int * to ULONGEST *.
2675 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2677 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2678 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2680 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2682 2002-08-08 Andrew Cagney <cagney@redhat.com>
2684 * gcore.c (override_derive_stack_segment): Delete variable.
2685 (preempt_derive_stack_segment): Delete function.
2686 (derive_stack_segment): Delete function.
2687 (default_derive_stack_segment): Renamed to derive_stack_segment.
2688 (override_derive_heap_segment): Delete variable.
2689 (preempt_derive_heap_segment): Delete function.
2690 (derive_heap_segment): Delete function.
2691 (default_derive_heap_segment): Rename to derive_heap_segment.
2693 2002-08-06 Michael Snyder <msnyder@redhat.com>
2695 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2696 * mips-tdep.c (mips_EABI_use_struct_convention,
2697 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2698 New functions. (mips_use_struct_convention): Delete.
2699 (mips_gdbarch_init): set use_gdbarch_convention.
2701 2002-08-06 Michael Snyder <msnyder@redhat.com>
2703 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2704 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2705 mips_o32_reg_struct_has_addr): New functions.
2706 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2708 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2710 * regcache.c (pseudo_register): Delete function.
2711 (fetch_register): Delete function.
2712 (store_register): Delete function.
2713 (regcache_raw_read, legacy_read_register_gen): Use
2714 target_fetch_registers instead of fetch_register.
2715 (legacy_write_register_gen, regcache_raw_write): Use
2716 target_store_register instead of store_register.
2717 (write_register_bytes): Ditto.
2719 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2720 (STORE_PSEUDO_REGISTER): Delete.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2723 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2725 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2726 write dump file binary.
2728 2002-08-05 Michael Snyder <msnyder@redhat.com>
2730 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2731 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2732 (mips_gdbarch_init): Set N32 target to be mips64.
2734 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2736 * frame.c (find_saved_register): Break out of loop once saved
2737 register address is found. Don't mention sparc in loop comment
2740 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2742 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2743 mips_default_saved_regsize to 8.
2745 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2747 * gcore.c: Do not include <sys/procfs.h>.
2748 * Makefile.in (gcore.o): Update dependencies.
2750 2002-08-06 Andrew Cagney <cagney@redhat.com>
2752 * configure.tgt: Make arc-*-* obsolete.
2753 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2754 * MAINTAINERS: Make arc-elf obsolete.
2755 * arc-tdep.c: Make file obsolete.
2756 * config/arc/arc.mt: Ditto.
2757 * config/arc/tm-arc.h: Ditto.
2759 2002-08-05 Theodore A. Roth <troth@verinet.com>
2761 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2763 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2765 * mcore-tdep.c (mcore_gdbarch_init): Use
2766 generic_unwind_get_saved_register instead of
2767 generic_get_saved_register.
2768 * v850-tdep.c (v850_gdbarch_init): Ditto.
2769 * frv-tdep.c (frv_gdbarch_init): Ditto.
2770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2771 * s390-tdep.c (s390_gdbarch_init): Ditto.
2772 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2773 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2774 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2776 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2778 * objfiles.h: Add missing #include "symfile.h"
2780 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2782 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2784 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2785 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2788 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2790 * NEWS: Cleanup and nitpick.
2792 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2794 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2796 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2798 * Makefile.in (gdbtk-bp.o): Update dependencies.
2799 (gdbtk-register.o): Ditto.
2800 (gdbtk-varobj.o): Ditto.
2802 2002-08-03 Andrew Cagney <cagney@redhat.com>
2804 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2805 m68hc11_fetch_pseudo_register.
2806 (m68hc11_pseudo_register_write): Replace
2807 m68hc11_store_pseudo_register.
2808 (m68hc11_gdbarch_init): Update.
2810 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2812 * gdbarch.sh: Include "gdb_string.h".
2813 * gdbarch.c: Regenerate.
2815 * regcache.c: Include "gdb_string.h".
2816 * ax-general.c: Ditto.
2818 * std-regs.c: Ditto.
2819 * fbsd-proc.c: Ditto.
2822 * Makefile.in (regcache.o): Update dependencies.
2823 (thread.o, gdbarch.o): Ditto.
2824 (ax-general.o, gdbarch.o): Ditto.
2825 (varobj.o, std-regs.o): Ditto.
2826 (fbsd-proc.o): Specify dependencies.
2828 2002-08-02 Andrew Cagney <cagney@redhat.com>
2830 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2832 (regcache_cooked_write): Ditto.
2834 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2836 * regcache.c (regcache_cooked_read): New function.
2837 (regcache_cooked_write): New function.
2838 (read_register_gen): Rewrite using regcache_cooked_read.
2839 (write_register_gen): Rewrite using regcache_cooked_write.
2841 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2844 2002-08-02 Andrew Cagney <cagney@redhat.com>
2846 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2847 Replace the architecture methods register_read and register_write.
2848 * gdbarch.h, gdbarch.c: Regenerate.
2849 * regcache.c (init_regcache_descr): Update.
2850 (read_register_gen): Update.
2851 (write_register_gen): Update.
2852 (supply_register): Update comment.
2854 * sh-tdep.c (sh_gdbarch_init): Update.
2855 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2856 `regcache' and `gdbarch' parameters. Make `buffer' a void
2857 pointer. Update code.
2858 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2859 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2860 void pointer. Update code.
2861 (sh64_register_write): Delete.
2862 (sh4_register_read): Delete.
2863 (sh64_register_read): Delete.
2864 (sh4_register_write): Delete.
2865 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2866 void pointer, `to' parameter a void pointer.
2867 (sh_sh64_register_convert_to_raw): Ditto.
2869 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2871 * mips-tdep.c (mips_register_virtual_type): Use architecture
2872 invariant return values.
2874 2002-08-01 Andrew Cagney <cagney@redhat.com>
2876 * linux-proc.c: Include "gdb_string.h".
2877 * Makefile.in (linux-proc.o): Update dependency list.
2879 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2881 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2884 2002-08-01 Grace Sainsbury <graces@redhat.com>
2886 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2887 to_insert_watchpoint, to_remove_watchpoint,
2888 to_stopped_by_watchpoint, to_stopped_data_address,
2889 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2890 target vecctor. Define their corresponding macros so they call
2893 * target.c: Add default and debug versions of for
2894 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2895 to_insert_watchpoint, to_remove_watchpoint,
2896 to_stopped_by_watchpoint, to_stopped_data_address,
2897 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2899 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2901 * mips-tdep.c (mips_register_virtual_type): New function.
2902 (mips_gdbarch_init): Register mips_register_virtual_type()
2903 with gdbarch machinery.
2904 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2905 this file instead of tm-bigmips.h.
2906 (MIPS_REGSIZE): Delete this macro.
2907 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2908 multiarch version in mips-tdep.c will be found.
2910 2002-08-01 Andrew Cagney <cagney@redhat.com>
2912 * NEWS: Menion that CHILL has been made obsolete.
2914 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2915 * stabsread.c (read_range_type): Ditto.
2916 * gdbtypes.h: Ditto.
2917 * language.c (binop_type_check): Ditto.
2918 (binop_result_type): Ditto.
2919 (integral_type): Ditto.
2920 (character_type): Ditto.
2921 (string_type): Ditto.
2922 (boolean_type): Ditto.
2923 (structured_type): Ditto.
2924 (lang_bool_type): Ditto.
2925 (binop_type_check): Ditto.
2926 * language.h (_LANG_chill): Ditto.
2927 * dwarfread.c (set_cu_language): Ditto.
2928 * dwarfread.c (CHILL_PRODUCER): Ditto.
2929 * dwarfread.c (handle_producer): Ditto.
2930 * expression.h (enum exp_opcode): Ditto.
2931 * eval.c: Ditto for comments.
2932 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2933 * expprint.c (print_subexp): Ditto.
2934 (print_subexp): Ditto.
2935 * valops.c (value_cast): Ditto.
2936 (search_struct_field): Ditto.
2937 * value.h (COERCE_VARYING_ARRAY): Ditto.
2938 * symfile.c (init_filename_language_table): Ditto.
2939 (add_psymbol_with_dem_name_to_list): Ditto.
2940 * valarith.c (value_binop): Ditto.
2942 * valops.c (value_slice): Ditto.
2943 * symtab.h (union language_specific): Ditto.
2944 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2945 (SYMBOL_DEMANGLED_NAME): Ditto.
2946 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2947 * defs.h (enum language): Ditto.
2948 * symtab.c (got_symtab): Ditto.
2949 * utils.c (fprintf_symbol_filtered): Ditto.
2951 * ch-typeprint.c: Make file obsolete.
2952 * ch-valprint.c: Make file obsolete.
2953 * ch-lang.h: Make file obsolete.
2954 * ch-exp.c: Make file obsolete.
2955 * ch-lang.c: Make file obsolete.
2957 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2959 (TARGET_FLAGS_TO_PASS): Ditto.
2960 (CHILLFLAGS): Obsolete.
2962 (CHILL_FOR_TARGET): Obsolete.
2963 (CHILL_LIB): Obsolete.
2964 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2966 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2967 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2969 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2972 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2974 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2975 This does not change anything at the moment, but will be helpful
2976 later when full Ada support is integrated.
2978 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2980 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2983 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2985 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2986 and save it in a local variable. Use variable in later test.
2988 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2990 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2991 test. (Thanks to Daniel Jacobowitz.)
2993 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2995 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2996 (mips_abi_strings): Add "n64".
2997 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2999 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3001 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3002 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3006 * utils.c (host_pointer_to_address, address_to_host_pointer):
3007 Use gdb_assert() instead of explicit call to internal_error().
3009 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3011 * Makefile.in (rs6000-nat.o): Update dependencies.
3013 From Nicholas Duffek:
3014 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3015 (aix-thread.o): New rule.
3016 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3017 * config/powerpc/aix432.mh: New file.
3019 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3021 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3022 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3023 (fetch_core_registers, ppc_linux_supply_gregset)
3024 (ppc_linux_supply_fpregset): New functions.
3025 (ppc_linux_regset_core_fns): New.
3026 (_initialize_ppc_linux_tdep): Call add_core_fns.
3027 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3028 and ppc_linux_supply_gregset.
3029 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3030 (supply_fpregset): Call ppc_linux_supply_fpregset.
3031 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3033 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3035 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3037 * symtab.c (lookup_symbol): Demangle before lowercasing.
3039 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3041 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3043 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3044 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3045 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3046 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3048 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3049 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3050 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3051 (avr-tdep.o, mon960-rom.o): Ditto.
3052 (aout_stabs_gnu_h): Define.
3053 (symtab_h): Remove $(gdb_obstack_h).
3055 2002-07-30 Jim Blandy <jimb@redhat.com>
3057 Patch from David Carlton <carlton@math.stanford.edu>:
3058 * gdbinit.in: Move the `dir' commands that add GDB's own source
3059 directory to the search path to the end, so that the `gdb' source
3060 directory will be searched first.
3062 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3064 * gdb_obstack.h: New file.
3065 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3066 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3067 * objfiles.h: Include "gdb_obstack.h".
3068 * Makefile.in (gdb_obstack_h): Define.
3069 (symtab_h): Add $(gdb_obstack_h).
3070 (objfiles_h): Add $(gdb_obstack_h).
3072 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3073 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3074 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3075 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3076 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3077 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3078 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3079 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3081 * Makefile.in (bcache.o): Update dependencies.
3082 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3083 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3084 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3085 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3086 (stabsread.o, symfile.o, symmisc.o): Ditto.
3087 (symtab.o, typeprint.o, macroexp.o): Ditto.
3088 (macrotab.o, mdebugread.o): Ditto.
3089 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3090 (coff_ecoff_h, aout_aout64_h): Define.
3091 (aout_stabs_gnu_h, libaout_h): Define.
3093 2002-07-29 Andrew Cagney <cagney@redhat.com>
3095 * regcache.c (struct regcache_descr): Rename nr_registers to
3096 nr_cooked_registers. Revise comments describing the structure
3098 (init_regcache_descr): Update.
3099 (init_legacy_regcache_descr): Update.
3100 (read_register_gen, write_register_gen): When a cooked register in
3101 the raw register range, directly access the value from the raw
3104 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3106 * z8k-tdep.c: Do not include "obstack.h".
3107 * h8300-tdep.c, h8500-tdep.c: Ditto.
3108 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3109 * valprint.c, v850-tdep.c: Ditto.
3110 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3111 * mn10200-tdep.c: Ditto.
3113 * Makefile.in (z8k-tdep.o): Update dependencies.
3114 (m68hc11-tdep.o, valprint.o): Ditto.
3115 (v850-tdep.o, d10v-tdep.o): Ditto.
3116 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3117 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3118 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3119 (sh_opc_h, gdb_sim_sh_h): Define.
3120 (elf_sh_h, elf_bfd_h): Define.
3121 (opcode_m68hc11_h): Define.
3122 (OPCODES_SRC, OPCODES_DIR): define.
3123 (OPCODES): Use $(OPCODES_DIR).
3124 (gdb_sim_d10v_h): Rename sim_d10v_h.
3125 (gdb_sim_arm_h): Rename sim_arm_h.
3127 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3129 * utils.c (host_pointer_to_address, address_to_host_pointer):
3130 Change internal_error() message to indicate function responsible
3133 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3135 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3136 calls to local_hex_string_custom().
3138 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3140 * irix5-nat.c: Move IRIX shared library support from here...
3141 * solib-irix.c: ...to here. Revised substantially to work with
3142 generic solib framework.
3144 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3145 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3146 * mips-irix-tdep.c: New file.
3148 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3149 (mips-irix-tdep.o, solib-irix.o): New rules.
3150 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3152 * config/mips/irix6.mt (TDEPFILES): Likewise.
3153 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3155 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3157 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3158 disabled (via ``#if 0'') includes.
3160 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3162 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3163 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3164 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3165 Add support for the fpscr register.
3166 * rs6000-nat.c (regmap, fetch_inferior_registers)
3167 (store_inferior_registers, fetch_core_registers): Likewise.
3169 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3171 * rs6000-nat.c (language.h): Include.
3172 (special_regs): Delete this array.
3173 (regmap): New function.
3174 (fetch_register, store_register): Use regmap() to map gdb
3175 register numbers to ptrace register numbers. Also, use
3176 outputs from regmap() to make decisions regarding type of
3177 ptrace() call to make. In particular, don't compare against
3178 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3179 (fetch_inferior_registers, store_inferior_registers): Where
3180 possible, obtain register numbers from tdep struct. Don't
3181 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3182 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3183 (LAST_UISA_SP_REGNUM): Delete.
3185 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3187 * rs6000-nat.c (ppc-tdep.h): Include.
3188 (fetch_registers, store_register, fetch_core_registers): Don't
3189 access registers[] directly. Instead, use supply_register() or
3190 regcache_collect() as appropriate.
3191 (find_toc_address): Format hex address with local_hex_string().
3193 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3195 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3198 2002-07-24 Tom Tromey <tromey@redhat.com>
3200 * jv-exp.y: Marked all strings with _().
3201 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3203 (MethodInvocation, CastExpression, parse_number, yyerror,
3204 java_type_from_name, push_expression_name, yylex): Typo fixes.
3206 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3208 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3209 (tee_file_flush, tee_file_write, tee_file_fputs)
3210 (tee_file_isatty): New.
3211 * ui-file.h (tee_file_new): Add prototype.
3213 2002-07-24 Aidan Skinner <aidan@velvet.net>
3215 * ada-lang.c: Change k&r style function definitions to prototyped
3217 * ada-typeprint.c: Change k&r style function definitions to prototyped
3219 * ada-valprint.c: Change k&r style function definitions to prototyped
3222 2002-07-24 Andrew Cagney <cagney@redhat.com>
3224 * README: Remove reference to remote-bug.
3225 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3227 (m88k-nat.o): Delete rule.
3228 (m88k-tdep.o): Delete rule.
3229 (remote-bug.o): Delete rule.
3230 * MAINTAINERS: Mark as obsolete.
3231 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3232 * m88k-tdep.c: Make file obsolete.
3233 * config/m88k/m88k.mh: Ditto.
3234 * config/m88k/delta88v4.mh: Ditto.
3235 * config/m88k/delta88v4.mt: Ditto.
3236 * config/m88k/delta88.mt: Ditto.
3237 * config/m88k/delta88.mh: Ditto.
3238 * remote-bug.c: Ditto.
3239 * config/m88k/tm-delta88.h: Ditto.
3240 * config/m88k/nm-delta88v4.h: Ditto.
3241 * config/m88k/xm-delta88.h: Ditto.
3242 * config/m88k/xm-dgux.h: Ditto.
3243 * config/m88k/tm-m88k.h: Ditto.
3244 * config/m88k/nm-m88k.h: Ditto.
3245 * config/m88k/tm-delta88v4.h: Ditto.
3246 * m88k-nat.c: Ditto.
3247 * cxux-nat.c: Ditto.
3248 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3249 and m88*-*-* obsolete.
3250 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3253 2002-07-24 Andrew Cagney <cagney@redhat.com>
3255 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3256 constant. Same for local pointer variables.
3257 (extract_signed_integer): Ditto.
3258 * defs.h (extract_unsigned_integer): Update.
3259 (extract_signed_integer): Update.
3261 2002-07-24 Andrew Cagney <cagney@redhat.com>
3263 * regcache.c (regcache_raw_write): Change buf parameter to a
3264 constant void pointer.
3265 (regcache_raw_read): Change buf parameter to a void pointer.
3266 (legacy_write_register_gen): Change myaddr parameter a constant
3268 (supply_register): Change val parameter to a const void pointer.
3269 * regcache.h (regcache_raw_write): Update declaration.
3270 (regcache_raw_read): Update declaration.
3271 (supply_register): Update declaration.
3273 2002-07-24 Tom Tromey <tromey@redhat.com>
3275 * defs.h (gdb_readline_wrapper): Declare.
3276 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3277 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3278 * top.c (gdb_readline_wrapper): New function.
3279 (command_line_input): Use it.
3281 2002-07-24 Andrew Cagney <cagney@redhat.com>
3283 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3284 regcache_read and regcache_write.
3285 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3286 * regcache.c: Update.
3287 * sh-tdep.c (sh64_push_arguments): Update comment.
3288 (sh_pseudo_register_read): Update.
3289 (sh_pseudo_register_write): Update.
3290 (sh4_register_read): Update.
3291 (sh4_register_write): Update.
3292 (sh64_pseudo_register_read): Update.
3293 (sh64_pseudo_register_write): Update.
3294 (sh64_register_read): Update.
3295 (sh64_register_write): Update.
3296 * i386-tdep.c (i386_extract_return_value): Update.
3297 (i386_extract_struct_value_address): Update.
3298 (i386_extract_return_value): Update.
3299 * blockframe.c (generic_read_register_dummy): Update.
3300 (generic_call_dummy_register_unwind): Update
3301 * infrun.c (write_inferior_status_register): Update.
3303 2002-07-23 Jim Blandy <jimb@redhat.com>
3305 * parser-defs.h (expression_context_pc): Make this extern.
3306 (Thanks to Michael Snyder.)
3308 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3310 GDB 5.2.1 released from 5.2 branch.
3311 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3312 * README: Update to mention 5.2.1.
3314 2002-07-23 Mark Salter <msalter@redhat.com>
3316 * remote.c (remote_read_bytes): Fix check for error.
3318 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3320 * aix-thread.c (language.h): Include.
3321 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3322 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3323 Print newlines at end of debug messages.
3324 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3325 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3327 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3329 * aix-thread.c (ppc-tdep.h): Include.
3330 (special_register_p): New function.
3331 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3332 (store_regs_user_thread): Use register number information from
3333 gdbarch_tdep struct instead of hardcoded offsets relative to
3334 FIRST_UISA_SP_REGNUM.
3335 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3336 special_register_p() instead of using FPLAST_REGNUM and
3337 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3338 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3339 will be MQ's register number.
3341 2002-07-22 Michael Snyder <msnyder@redhat.com>
3343 * aix-thread.c (ops): Rename to aix_thread_ops.
3344 (base_ops): Rename to base_target.
3345 (ops_attach): Rename to aix_thread_attach.
3346 (ops_detach): Rename to aix_thread_detach.
3347 (ops_resume): Rename to aix_thread_detach.
3348 (ops_wait): Rename to aix_thread_wait.
3349 (ops_kill): Rename to aix_thread_kill.
3350 (init_ops): Rename to init_aix_thread_ops.
3351 (ops_fetch_register): Rename to aix_thread_fetch_register.
3352 (ops_store_register): Rename to aix_thread_store_register.
3353 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3354 (ops_thread_alive): Rename to aix_thread_thread_alive.
3355 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3356 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3357 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3358 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3359 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3360 (store_regs_lib): Rename to store_regs_user_thread.
3361 (store_regs_kern): Rename to store_regs_kernel_thread.
3363 2002-07-22 Michael Snyder <msnyder@redhat.com>
3365 * aix-thread.c (ops_prepare_to_store): Eliminate.
3366 (init_ops): Don't initialize ops.prepare_to_store.
3367 (store_regs_kern): Pre-fetch register buffers from child,
3368 because some registers may not be in the cache. Copy
3369 regs from register cache only if they are cached.
3370 (store_regs_lib): Copy regs from register cache only
3372 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3373 fill_gprs64): Ditto.
3375 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3377 * aix-thread.c (gdb_assert.h): Include.
3378 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3379 register sizes (from register cache) match size of buffer holding
3381 (fill_sprs32): Change parameter types to match those in the ptrace()
3383 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3384 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3386 2002-07-22 Michael Snyder <msnyder@redhat.com>
3388 * aix-thread.c (supply_sprs64): Cosmetic change.
3389 (supply_sprs32): Cosmetic change.
3390 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3391 (fill_sprs64): Use regcache_collect instead of read_register.
3392 (store_regs_lib): Use regcache_collect instead of
3393 read_register. Use fill_sprs32 instead of fill_sprs64,
3394 if debugging a 32-bit architecture.
3395 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3396 out of the register cache, instead of passing a pointer into
3397 the register cache directly to ptrace. Use regcache_collect
3398 insteaad of read_register.
3399 (ops_prepare_to_store): Use target_read_registers instead
3400 of read_register_bytes.
3402 2002-07-20 Aidan Skinner <aidan@velvet.net>
3404 * MAINTAINERS: Add self under write after approval.
3406 2002-07-20 Aidan Skinner <aidan@velvet.net>
3408 * ada-tasks.c: Change k&r style function definitions to prototyped
3411 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3413 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3414 * x86-64-tdep.c: Include "objfiles.h".
3415 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3416 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3418 2002-07-17 Michal Ludvig <michal@suse.cz>
3420 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3421 (update_context): Initialise cfa variable.
3423 2002-07-17 Michael Snyder <msnyder@redhat.com>
3425 * aix-thread.c: Shorten some long lines.
3426 Bring comments into line with code spec.
3428 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3430 * infrun.c: Re-indent using gdb_indent.sh.
3432 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3434 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3435 Leave the indentation temporarily untouched, to minimize the diffs.
3437 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3439 * stabsread.c: Make os9k sections of the code obsolete,
3441 * stabsread.h: Make os9k sections of the code obsolete.
3443 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3445 * linux-low.c (regsets_store_inferior_registers): Add free()
3446 at the end of a loop to prevent memory leak.
3447 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3448 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3449 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3451 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3453 2002-07-17 Jim Blandy <jimb@redhat.com>
3455 * macrocmd.c (info_macro_command): Remove newline from error
3458 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3460 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3461 (sh_gdbarch_init): Use it for sh-dsp.
3463 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3465 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3466 64-bit DWARF2 format.
3468 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3470 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3471 <sys/proc.h> when not available.
3473 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3475 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3476 * stabsread.c: Make os9k sections of the code obsolete.
3477 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3478 * config/i386/i386os9k.mt: Make file obsolete.
3479 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3480 (COMMON_OBS): Remove os9kread.o
3481 (SFILES): Remove os9kread.c.
3482 (os9kread.o, remote-os9k.o): Make target obsolete.
3483 * remote-os9k.c: Make file obsolete.
3484 * os9kread.c: Make file obsolete.
3487 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3489 * NEWS: Mention that the FR30 has been made obsolete.
3490 * fr30-tdep.c: Make file obsolete.
3491 * config/fr30/tm-fr30.h: Ditto.
3492 * config/fr30/fr30.mt: Ditto.
3493 * configure.tgt: Make fr30-*-elf obsolete.
3494 * MAINTAINERS: Make fr30-elf obsolete.
3496 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3498 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3499 found is not inside a section.
3501 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3503 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3505 (pdc_realloc): Use xrealloc() instead of realloc().
3507 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3509 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3510 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3511 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3514 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3516 * aix-thread.c (ptrace_check): Eliminate goto.
3517 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3520 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3522 * aix-thread.c (gdbcmd.h): Include.
3523 (DEBUG, DBG, DBG2, dbg): Eliminate.
3524 (debug_aix_thread): New static global.
3525 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3526 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3527 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3528 invocations to DBG and DBG2 macros to test against
3529 ``debug_aix_thread'' and call fprintf_unfiltered().
3530 (_initialize_aix_thread): Add new command "set debug aix-thread".
3532 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3534 From Gerhard Tonn <TON@de.ibm.com>:
3535 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3536 instead of supply_register.
3538 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3540 * dwarf2cfi.c: Include "gdb_assert.h".
3541 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3543 (update_context): Do not use __func__. Add missing ``break''.
3544 (update_context): Do not use __func__.
3546 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3548 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3549 and its setting. Set gdbarch instruction printing functions
3550 directly. For non-rs6000 case use new function
3551 gdb_print_insn_powerpc.
3552 (gdb_print_insn_powerpc): New function.
3554 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3556 * NEWS: Mention that the d30v has been marked obsolete.
3557 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3558 * configure.tgt: Mark d30v-*-* as obsolete.
3559 * d30v-tdep.c: Mark file as obsolete.
3560 * config/d30v/d30v.mt: Ditto.
3561 * config/d30v/tm-d30v.h: Ditto.
3563 2002-07-13 Aidan Skinner <aidan@velvet.net>
3565 * ada-tasks.c (add_task_entry): replace calls to
3566 malloc() with xmalloc
3567 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3569 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3570 ada_finish_decode_line_1, all_sals_for_line
3571 ada_breakpoint_rewrite): replace calls to free() with xfree()
3573 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3575 From Nicholas Duffek (with minor changes by Martin Hunt,
3576 Louis Hamilton, and Kevin Buettner):
3577 * aix-thread.c: New file.
3579 2002-07-12 Petr Sorfa <petrs@caldera.com>
3581 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3582 complaint for invalid attribute class or form.
3583 (read_func_scope): DW_AT_frame_base
3584 better handling of DW_AT_block*.
3585 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3586 better handling of DW_AT_block*.
3587 (read_common_block): DW_AT_location
3588 better handling of DW_AT_block*.
3589 (read_partial_die): DW_AT_location better handling
3591 (new_symbol): DW_AT_external better handling of
3592 DW_AT_block*. Proper initialization of variable
3594 (attr_form_is_block): New function that returns true
3595 if the attribute's form is of DW_FORM_block*.
3597 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3599 * valops.c (find_method_list): Remove comment about
3600 removed STATIC_MEMFUNCP argument.
3601 (value_find_oload_method_list): Likewise.
3603 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3605 From Nicholas Duffek:
3606 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3607 target_new_objfile_hook.
3609 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3611 From Nicholas Duffek:
3612 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3615 2002-07-12 Andrew Cagney <cagney@redhat.com>
3617 * MAINTAINERS: Mention --enable-sim-build-warnings.
3618 (m68hc11-elf): Disable sim build warnings.
3619 (m32r-elf): Mark as broken obsolete candidate.
3620 (x86_64-linux-gnu): Mark as buildable with -Werror.
3621 (arm-elf): Change -w to ``,'' which enables warnings but not
3624 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3626 * bcache.h: Update copyright.
3627 (struct bstring, struct bcache): Move definition to "bcache.c".
3628 Replaced by opaque declaration.
3629 (bcache_xfree): Replace free_bcache.
3630 (bcache_xmalloc, bcache_memory_used): Declare.
3632 * bcache.c: Update copyright.
3633 (struct bstring, struct bcache): Moved to here from "bcache.h".
3635 (bcache_xmalloc, bcache_memory_used): New functions.
3636 (bcache_xfree): Replace function free_bcache.
3638 * Makefile.in (objfiles.o): Add $(bcache_h).
3639 (objfiles_h): Remove $(bcache_h).
3640 (symfile.o): Add $(bcache_h).
3642 * symmisc.c: Update copyright.
3643 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3644 (print_objfile_statistics): Use bcache_memory_used.
3646 * symfile.c: Include "bcache.h".
3647 (reread_symbols): Use bcache_xfree.
3648 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3649 (add_psymbol_to_list): Pass psymbol_cache by value.
3650 (add_psymbol_with_dem_name_to_list): Ditto.
3652 * objfiles.h: Update copyright.
3653 (struct bcache): Declare opaque. Do not include "bcache.h".
3654 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3656 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3658 * objfiles.c: Include "bcache.h". Update copyright.
3659 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3661 (free_objfile): Use bcache_xfree.
3663 2002-07-11 Grace Sainsbury <graces@redhat.com>
3665 * monitor.c (monitor_fetch_register): Make name a constant.
3666 (monitor_store_register): Same.
3668 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3670 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3671 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3672 (finish_block) For non-function blocks, hash the symbol table. For
3673 function blocks, mark the symbol table as unhashed.
3674 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3675 (msymbol_hash_iw): Likewise.
3676 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3678 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3679 (lookup_minimal_symbol): Likewise for both.
3680 * symtab.h (struct block): Add `hashtable' flag. Comment the
3682 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3683 (ALL_BLOCK_SYMBOLS): Update.
3684 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3685 (struct symbol): Add `hash_next' pointer.
3686 * symtab.c (lookup_block_symbol): Search using the hash table when
3688 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3689 (search_symbols, find_addr_symbol): Likewise.
3691 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3692 (read_dst_symtab): Likewise.
3693 * jv-lang.c (get_java_class_symtab): Likewise.
3694 * mdebugread.c: Include "gdb_assert.h".
3695 (shrink_block): Assert that the block being modified is not hashed.
3696 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3697 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3699 (dump_symtab): Recognize hashed blocks.
3700 * printcmd.c (print_frame_args): Assert that function blocks do not
3701 have hashed symbol tables.
3702 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3703 (fill_in_ada_prototype, debug_print_block): Likewise.
3704 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3706 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3708 * stack.c (print_frame): Use result of frame_address_in_block()
3709 instead of fi->pc when evaluating symbols.
3710 (backtrace_command_1): Ditto.
3712 2002-07-11 Andrew Cagney <cagney@redhat.com>
3714 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3717 * arm-tdep.c (arm_register_name): Make return type constant.
3719 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3721 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3723 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3724 * s390-tdep.c (s390_fp_regnum): Ditto.
3725 (s390_read_fp): Ditto.
3726 (s390_pop_frame): Ditto.
3727 (_initialize_s390_tdep): Ditto.
3728 * remote.c (get_remote_state): Ditto.
3729 * procfs.c (mappingflags): Ditto.
3730 * memattr.c (_initialize_mem): Ditto.
3731 * mcore-tdep.c (mcore_pop_frame): Ditto.
3732 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3733 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3734 * language.c (set_case_str): Ditto.
3735 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3736 * frv-tdep.c (new_variant): Ditto.
3737 (frv_stopped_data_address): Ditto.
3738 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3739 (context_alloc): Ditto.
3740 (frame_state_alloc): Ditto.
3741 (unwind_tmp_obstack_init): Ditto.
3742 (unwind_tmp_obstack_free): Ditto.
3743 (cfi_read_fp): Ditto.
3744 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3745 (cris_pop_frame): Ditto.
3746 * c-lang.c (scanning_macro_expansion): Ditto.
3747 (finished_macro_expansion): Ditto.
3748 (c_preprocess_and_parse): Ditto.
3749 * gdbarch.sh: Ditto.
3750 * gdbarch.h, gdbarch.c: Regenerate.
3751 * config/mn10200/tm-mn10200.h: Adjust indentation.
3752 * target.c: Adjust indentation.
3753 * symtab.h: Adjust indentation.
3754 * stabsread.h: Adjust indentation.
3755 * remote-es.c: Adjust indentation.
3756 * os9kread.c: Adjust indentation.
3758 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3760 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3761 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3763 2002-07-10 Grace Sainsbury <graces@redhat.com>
3765 * NEWS: Mention m68k, mcore multi-arching.
3766 * MAINTAINERS: Change status of m68k, mcore to reflect
3769 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3771 * valops.c (find_overload_match): Free oload_syms.
3773 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3775 Define HAVE_SYS_PROC_H if sys/proc.h exists
3776 * configure.in: Add check for sys/proc.h
3777 * config.in: Regenerate.
3778 * configure: Regenerate.
3780 2002-07-09 Grace Sainsbury <graces@redhat.com>
3782 * config/m68k/tm-m68k.h: Remove macros wrapped in
3783 #if !GDB_MULTI_ARCH.
3785 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3787 * config.in, configure: Regenerate.
3789 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3791 * dwarf2cfi.c: Include "gcore.h".
3792 (execute_stack_op): Fix implementation of the
3793 DW_OP_deref and DW_OP_deref_size operators by letting do their
3794 lookup in the target.
3796 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3798 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3799 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3802 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3804 Fix PR gdb/595, gdb/602
3805 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3806 Don't call value_cast, just read the vtable pointer; update comments
3809 2002-07-05 Grace Sainsbury <graces@redhat.com>
3811 * config/mcore/tm-mcore.h: Remove file.
3812 * config/mcore/mcore.mt: Remove definition of TM_FILE
3813 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3815 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3817 * i386bsd-tdep.c: Include "gdb_string.h".
3819 2002-07-04 Grace Sainsbury <graces@redhat.com>
3821 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3822 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3824 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3825 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3826 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3827 (RETVAL_REGNUM): Move macros from tm-mcore.h
3828 (mcore_reg_struct_has_addr): New function.
3829 (mcore_gdbarch_init): Added initializations for the macros removed
3832 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3834 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3835 traditonal string branding within the ELF header.
3837 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3839 * symtab.c (remove_params): New function.
3840 (make_symbol_overload_list): Use it instead of cplus_demangle.
3841 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3843 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3845 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3847 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3849 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3850 and tdep->sigtramp_end.
3851 * i386obsd-nat.c: New file.
3852 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3854 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3855 Don't call get_current_frame().
3857 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3859 * i386-nat.c (child_post_startup_inferior): New function
3860 calling i386_cleanup_dregs if
3861 I386_USE_GENERIC_WATCHPOINTS is defined.
3862 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3863 conditional to acknowledge that i386-nat.c has its
3864 own child_post_startup_inferior function.
3866 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3868 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3869 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3870 instead of MAX_REGISTER_RAW_SIZE.
3871 (i386_extract_return_value, i386_extract_struct_value_address):
3872 Convert to use regcache.
3873 (i386_gdbarch_init): Set max_register_raw_size and
3874 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3875 Set extract_return_value and extract_struct_value_address instead
3876 of their deprecated variants.
3878 Convert i386 target to generic dummy frames.
3879 * i386-tdep.c: Include "symfile.h".
3880 (i386_frameless_signal_p): Consider a function to be frameless if
3881 the pc points at the first instruction of the function.
3882 (i386_frame_chain): Handle (generic) call dummies.
3883 (i386_frame_saved_pc): Likewise.
3884 (i386_frame_init_saved_regs): Remove code dealing with call
3885 dummies on the stack.
3886 (i386_push_dummy_frame): Removed.
3887 (i386_call_dummy_words): Removed.
3888 (i386_fix_call_dummy): Removed.
3889 (i386_push_return_address): New function.
3890 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3891 parameter, and don't call get_current_frame.
3892 (i386_pop_frame): New function.
3893 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3894 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3895 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3896 call_dummy_length to 0, set call_dummy_words to NULL, set
3897 sizeof_call_dummy_words to 0, set fix_call_dummy to
3898 generic_fix_call_dummy, set pc_in_call_dummy to
3899 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3900 generic_push_dummy_frame, set push_return_address to
3901 i386_push_return_address and set frame_chain_valid to
3902 generic_file_frame_chain_valid.
3904 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3906 * gdbarch.sh (struct regcache): Add opaque declaration.
3907 (EXTRACT_RETURN_VALUE): New architecture method.
3908 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3909 * gdbarch.h, gdbarch.c: Regenerate.
3910 * arch-utils.c (legacy_extract_return_value): New function.
3911 * arch-utils.h (legacy_extract_return_value): Declare.
3912 * values.c (value_being_returned): Re-enable code handling
3913 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3914 deprecated_grub_regcache_for_registers call to block handling
3915 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3916 (EXTRACT_RETURN_VALUE): Do not define.
3918 2002-07-03 Grace Sainsbury <graces@redhat.com>
3920 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3921 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3922 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3923 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3924 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3925 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3926 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3927 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3928 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3929 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3930 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3931 argument so the function fits the prototype in the architecture
3933 (mcore_pop_frame): Remove argument so the function fits the
3934 prototype. Use get_current_frame instead of the argument.
3935 (mcore_push_arguments): Change type of struct_return so the
3936 function can be used in the architecture vector.
3937 (mcore_store_struct_return): Add.
3938 (mcore_frame_init_saved_regs): Add.
3939 (mcore_gdbarch_init): Add function calls to replace the macros
3940 removed from tm-mcore.h
3942 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3944 * infcmd.c (print_return_value): Remove compatibility code calling
3945 deprecated_grub_regcache_for_registers.
3947 * values.c: Include "regcache.h".
3948 (value_being_returned): Update. Use
3949 deprecated_grub_regcache_for_registers to extract the register
3951 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3952 ``struct regcache''.
3953 * Makefile.in (values.o): Add dependency on $(regcache_h).
3955 * inferior.h (run_stack_dummy): Change type of second parameter to
3956 a ``struct regcache''.
3957 * valops.c (hand_function_call): Change type of retbuf to ``struct
3958 regcache''. Allocate using regcache_xmalloc, clean using
3959 make_cleanup_regcache_xfree.
3960 * infcmd.c (run_stack_dummy): Update. Use
3961 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3963 * regcache.c (do_regcache_xfree): New function.
3964 (make_cleanup_regcache_xfree): New function.
3965 * regcache.h (make_cleanup_regcache_xfree): Declare.
3967 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3969 * event-top.c (command_line_handler): Don't read past
3970 beginning of buffer.
3972 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3974 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3976 (varobj_create): Store frame_id for root.
3977 (varobj_gen_name): Use xasprintf.
3978 (varobj_update): Save and restore frame using get_frame_id() and
3980 (create_child): Use xasprintf.
3981 (new_root_variable): Initialize frame_id.
3982 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3983 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3984 to prevent memory leak.
3986 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3988 * valops.c (hand_function_call): Move declaration of retbuf to
3989 start of function, allocate using malloc, add a cleanup but before
3990 the inf_status cleanup, cleanup the buffer. Rename local variable
3991 old_chain to inf_status_cleanup.
3993 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3995 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3997 * cli/cli-decode.c (cmd_func_p): New function.
3998 (cmd_func): New function.
4000 * command.h: Add cmd_func() and cmd_func_p().
4002 2002-07-03 Grace Sainsbury <graces@redhat.com>
4004 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4005 (REGISTER_SIZE): Remove.
4006 (MAX_REGISTER_RAW_SIZE): Remove.
4007 (REGISTER_VIRTUAL_TYPE): Remove.
4008 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4009 (REGISTER_NAME): Remove.
4010 (USE_GENERIC_DUMMY_FRAMES): Remove.
4011 (CALL_DUMMY): Remove.
4012 (CALL_DUMMY_START_OFFSET): Remove.
4013 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4014 (CALL_DUMMY_LOCATION): Remove.
4015 (FIX_CALL_DUMMY): Remove.
4016 (CALL_DUMMY_ADDRESS): Remove.
4017 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4018 (SAVE_DUMMY_FRAME_TOS): Remove.
4019 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4020 (mcore_register_virtual_type): New function.
4021 (mcore_register_byte): New function.
4022 (mcore_register_size): New function.
4023 (mcore_register_name): New function.
4024 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4025 macros removed from tm-mcore.h.
4026 (mcore_dump_tdep): Add.
4027 (_initialize_mcore_tdep): Add gdbarch_register call.
4029 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4031 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4032 frameless_look_for_prologue, such that we actually call this
4035 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4037 * frame.h (frame_address_in_block): New function.
4039 * blockframe.c (frame_address_in_block): New function extracted
4040 from get_frame_block().
4041 (get_frame_block): Use frame_address_in_block().
4042 (block_innermost_frame): Use frame_address_in_block() to match
4043 the frame pc address against the block boundaries rather than
4044 the frame pc directly. This prevents a failure when a frame pc
4045 is actually a return-address pointing immediately after the end
4048 2002-07-02 Grace Sainsbury <graces@redhat.com>
4050 * MAINTAINERS: Add self under write after approval.
4052 2002-07-02 Grace Sainsbury <graces@redhat.com>
4054 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4055 used in architecture vector. The default is
4056 m68k_local_breakpoint_from_pc.
4057 (m68k_local_breakpoint_from_pc): Add.
4058 (enum): Add register numbers from tm-m68k.h.
4059 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4061 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4062 GDB_MULTI_ARCH_PARTIAL.
4063 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4064 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4066 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4067 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4068 to enum in m68k-tdep.c
4070 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4072 * solib-osf.c (open_map): Compute the list of shared libraries
4073 loaded by the inferior, rather than the list of libraries loaded
4074 by GDB itself. Otherwise, GDB ends up reading the symbols from
4075 the wrong shared libraries...
4077 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4079 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4080 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4082 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4084 (FRAMELESS_SIGNAL): Remove function.
4085 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4086 i386_linux_saved_pc_after_call): Removed.
4087 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4088 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4089 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4091 * i386-tdep.c (i386_frameless_signal_p): New function.
4092 (i386_frame_chain): Deal with frameless signals.
4093 (i386_sigtramp_saved_sp): New function.
4094 (i386_frame_saved_pc): Deal with frameless signals.
4095 (i386_saved_pc_after_call): Make sure the correct value is
4096 returned just after entry into a sigtramp.
4097 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4098 i386fbsd4_sc_sp_offset): New variables.
4099 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4100 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4101 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4102 similiar to what we already did for sc_pc_offset.
4103 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4106 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4108 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4110 * config/i386/tm-x86-64linux.h: New.
4111 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4113 * config/i386/nm-x86-64.h: Rename to ...
4114 * config/i386/nm-x86-64linux.h: ... this one.
4115 * config/i386/x86-64linux.mh: Reflect the above change.
4117 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4119 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4120 with sigcontext_addr. Add sc_sp_offset.
4121 (i386bsd_sigtramp_saved_pc): Remove prototype.
4122 (i386bsd_sicontext_addr): Add prototype.
4123 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4124 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4125 (i386_svr4_sigtramp_saved_pc): Removed.
4126 (i386_svr4_sigcontext_addr): New function.
4127 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4128 Initialize tdep->sigcontext_addr instead. Initialize
4129 tdep->sc_pc_offset and tdep->sc_sp_offset.
4130 (i386_gdbarch_init): Likewise.
4131 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4133 (i386bsd_sigtramp_saved_pc): Remove function.
4134 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4135 Initialize tdep->sigcontext_addr instead. Initialize
4137 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4138 of tdep->sigtramp_saved_pc.
4139 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4140 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4143 * i386-tdep.c (i386_frameless_function_invocation,
4144 i386_frame_num_args, i386_frame_init_saved_regs,
4145 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4146 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4147 i386_extract_return_value, i386_store_return_value,
4148 i386_extract_struct_value_address, i386_register_virtual_type,
4149 i386_register_convertible, i386_register_convert_to_virtual,
4150 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4151 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4154 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4156 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4158 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4159 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4160 this macro. Include "value.h".
4162 2002-06-30 Aidan Skinner <aidan@velvet.net>
4164 * ada-exp.tab.c: remove as it's a generated file
4165 * ada-lex.c: remove as it's a generated file
4167 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4169 * config/i386/tm-i386.h (struct frame_info, struct
4170 frame_saved_regs, struct value, struct type): Remove forward
4173 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4174 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4175 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4176 (FILL_FPXREGSET): Define.
4178 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4180 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4181 i[3456]86-*-netbsd* case.
4182 * config/i386/tm-obsd.h: Removed.
4183 * config/i386/obsd.mt: Removed.
4184 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4186 (MH_CFLAGS): Add -DYYDEBUG=0.
4188 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4189 i386nbsd_sc_pc_offset on OpenBSD too.
4191 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4192 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4193 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4195 * i386bsd-tdep.c: Include "arch-utils.h".
4196 (i386bsd_aout_in_solib_call_trampoline): New function.
4197 (i386bsd_init_abi): Set in_solib_call_trampoline to
4198 i386bsd_aout_in_solib_call_trampoline.
4199 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4200 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4202 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4204 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4205 (struct obstack, struct bcache): Add opaque declarations.
4206 * Makefile.in (macrotab_h): Update
4208 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4210 * blockframe.c (generic_find_dummy_frame): Change return type to
4211 ``struct regcache''.
4212 (struct dummy_frame): Replace field ``registers'' with regcache, a
4213 struct regcache object.
4214 (generic_find_dummy_frame): Update.
4215 (generic_push_dummy_frame): Update. Use regcache_xfree,
4216 regcache_xmalloc and regcache_cpy.
4217 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4219 (deprecated_generic_find_dummy_frame): Update.
4220 (generic_read_register_dummy): Update. Use
4221 regcache_read_as_address.
4222 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4223 (generic_get_saved_register): Update. Use regcache_read.
4225 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4227 * Makefile.in (objfiles_h): Add $(bcache_h).
4228 * objfiles.h: Include "bcache.h".
4230 * Makefile.in (symtab_h): Remove $(bcache_h).
4231 * symtab.h: Do not include "bcache.h".
4233 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4235 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4236 generic_func_frame_chain_valid.
4238 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4240 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4241 * config/i386/tm-fbsd.h: Likewise.
4243 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4245 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4246 generic_unwind_get_saved_register.
4248 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4250 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4251 * regcache.c (supply_register): Add missing argument to
4252 register_buffer call.
4254 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4256 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4257 Solaris /bin/grep does not not like it. From Peter Schauer.
4259 2002-06-26 Tom Tromey <tromey@redhat.com>
4261 * command.h (add_setshow_cmd): Declare.
4262 (add_setshow_cmd_full): Declare.
4263 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4264 returns void. Use add_setshow_cmd_full.
4265 (add_setshow_cmd_full): New function.
4266 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4267 (add_setshow_boolean_cmd): Likewise.
4269 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4271 * config/vax/tm-vax.h: Protect from multiple inclusion.
4272 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4273 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4274 * config/vax/tm-vaxbsd.h: ...here. New file.
4275 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4277 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4279 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4280 (BELIEVE_PCC_PROMOTION): Remove.
4281 (AP_REGNUM): Move to...
4282 * config/vax/nm-vax.h: ...here.
4283 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4284 (vax_breakpoint_from_pc): New function.
4285 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4286 and gdbarch_believe_pcc_promotion.
4288 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4290 * Makefile.in (vax_tdep_h): Define.
4291 (vax-tdep.o): Use $(vax_tdep_h).
4292 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4293 (vax_dump_tdep): New function.
4294 (_initialize_vax_tdep): Register vax_dump_tdep.
4295 * vax-tdep.h: Include osabi.h.
4296 (struct gdbarch_tdep): New.
4298 2002-06-26 Andrew Cagney <cagney@redhat.com>
4300 * frame.h (deprecated_generic_find_dummy_frame): Rename
4301 generic_find_dummy_frame.
4302 * blockframe.c (generic_find_dummy_frame): Make static.
4303 (deprecated_generic_find_dummy_frame): New function.
4304 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4305 generic_find_dummy_frame with deprecated_find_dummy_frame.
4306 (sh64_nofp_frame_init_saved_regs): Ditto.
4307 (sh_fp_frame_init_saved_regs): Ditto.
4308 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4309 (s390_frame_chain): Ditto.
4310 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4312 2002-06-26 Grace Sainsbury <graces@redhat.com>
4314 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4315 gdbarch vector are at the top.
4317 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4318 (FRAME_ARGS_ADDRESS): Remove.
4319 (FRAME_LOCALS_ADDRESS): Remove.
4320 (FRAME_NUM_ARGS): Remove.
4321 (FRAME_ARGS_SKIP): Remove.
4322 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4323 (m68k_gdbarch_init): Add gdbarch initializations for macros
4324 undefined in tm-m68k.h
4326 2002-06-26 Grace Sainsbury <graces@redhat.com>
4328 * monitor.h: Add the function regname to monitor_ops
4329 structure. This way NUM_REGS does not have to be a constant.
4330 * monitor.c (monitor_fetch_register): Added support for regname
4331 function. The function is called if the array regnames is NULL.
4332 (monitor_store_register): Same.
4333 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4335 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4336 cpu32bug_cmds.regname to point to new function.
4337 * abug-rom.c (abug_regname): Same as above.
4338 (init_abug_cmds): Same.
4339 * dbug-rom.c (dbug_regname): Same as above.
4340 (init_dbug_cmds): Same.
4341 * remote-est.c (est_regname): Same.
4342 (init_est_cmds): Same.
4343 * rom68k-rom.c (rom68k_regname): Same.
4344 (init_rom68k_cmds): Same.
4346 2002-06-25 Tom Tromey <tromey@redhat.com>
4348 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4350 2002-06-25 Andrew Cagney <cagney@redhat.com>
4352 * infrun.c (stop_registers): Change variable's type to ``struct
4354 (xmalloc_inferior_status): Delete function.
4355 (free_inferior_status): Delete function.
4356 (normal_stop): Use regcache_cpy.
4357 (struct inferior_status): Change type of fields ``stop_registers''
4358 and ``registers'' to ``struct regcache''.
4359 (write_inferior_status_register): Use regcache_write.
4360 (save_inferior_status): Instead of calling
4361 xmalloc_inferior_status, allocate the inf_status buffer directly.
4362 Use regcache_dup_no_passthrough and regcache_dup to save the
4364 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4365 Replace the stop_registers regcache instead of overriding it. Use
4366 regcache_xfree. Instead of calling free_inferior_status, xfree
4367 the buffer directly.
4368 (discard_inferior_status): Use regcache_xfree. Instead of calling
4369 free_inferior_status, xfree the buffer directly.
4370 (build_infrun): Use regcache_xmalloc.
4371 (_initialize_infrun): Delete redundant call to build_infrun.
4373 * Makefile.in (infcmd.o): Add $(regcache_h).
4375 * infcmd.c: Include "regcache.h".
4376 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4377 obtain the address of `stop_registers' register buffer.
4378 (print_return_value): Ditto.
4380 * inferior.h (struct regcache): Add opaque declaration.
4381 (stop_registers): Change variable's declared type to ``struct
4384 2002-06-24 Tom Tromey <tromey@redhat.com>
4386 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4387 * target.c (initialize_targets): Fixed typo in
4388 trust-readonly-sections `show' documentation.
4390 * main.c: Marked all strings with _().
4392 2002-06-24 Don Howard <dhoward@redhat.com>
4394 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4395 that means max CORE_ADDR+1.
4396 (lookup_mem_region): Ditto.
4397 (mem_info_command): Ditto.
4399 2002-06-24 Grace Sainsbury <graces@redhat.com>
4401 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4402 (REGISTER_BYTES_OK): Remove.
4403 (REGISTER_BYTES): Remove.
4404 (STORE_STRUCT_RETURN): Remove.
4405 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4406 (STORE_RETURN_VALUE): Remove.
4407 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4408 (FRAME_CHAIN): Remove.
4409 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4410 (FRAME_SAVED_PC): Remove.
4411 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4412 (m68k_store_struct_return): Add.
4413 (m68k_deprecated_extract_return_value): Add.
4414 (m68k_deprecated_extract_struct_value_address): Add.
4415 (m68k_store_return_value): Add.
4416 (m68k_frame_chain): Add.
4417 (m68k_frameless_function_invocation): Add.
4418 (m68k_frame_saved_pc): Add.
4419 (m68k_gdbarch_init): added set_gdbarch calls for new
4420 functions and deleted macros.
4422 2002-06-23 Tom Tromey <tromey@redhat.com>
4424 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4425 (ALLDEPFILES): Likewise.
4426 (udiheaders): Removed.
4427 (udip2soc.o): Likewise.
4428 (udi2go32.o): Likewise.
4430 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4432 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4434 * infrun.c (_initialize_infrun): Delete unnecessary call to
4437 * regcache.h: Update comments describing the regcache_cpy family
4439 (regcache_save, regcache_restore): Delete declaration.
4440 (regcache_save_no_passthrough): Delete declaration.
4441 (regcache_restore_no_passthrough): Delete declaration.
4442 * regcache.c (regcache_save): Delete function.
4443 (regcache_save_no_passthrough): Delete function.
4444 (regcache_restore): Delete function.
4445 (regcache_restore_no_passthrough): Delete function.
4447 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4449 * config/m68k/tm-m68k.h: Fix typo.
4450 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4451 (m68k_frame_init_saved_regs): Declare.
4453 2002-06-21 Jim Blandy <jimb@redhat.com>
4455 Remove some vestiges of Harris 88k support.
4456 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4457 register numbering quirk.
4458 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4459 odd symbols occurring in Harris 88k ELF targets.
4461 2002-06-21 Tom Tromey <tromey@redhat.com>
4463 * gdb_locale.h: New file.
4464 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4465 (defs_h): Added gdb_locale.h.
4466 * configure, config.in: Rebuilt.
4467 * configure.in (PACKAGE): Define.
4468 * defs.h: Include gdb_locale.h.
4469 * main.c (captured_main): Call setlocale, bindtextdomain,
4472 2002-06-21 Dave Brolley <brolley@redhat.com>
4474 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4475 * config/frv/frv.mt: New file.
4476 * config/frv/tm-frv.h: New file.
4477 * configure.tgt: Support frv-*-*.
4478 * Makefile.in (frv-tdep.o): New target.
4479 * frv-tdep.c: New file.
4480 * NEWS: Mention frv.
4482 2002-06-21 Dave Brolley <brolley@redhat.com>
4484 * MAINTAINERS: Add self to "Write After Approval" list.
4486 2002-06-21 Grace Sainsbury <graces@redhat.com>
4488 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4489 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4490 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4491 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4492 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4494 * m68k-tdep.c: Include arch-utils.h
4495 (m68k_register_raw_size): Add.
4496 (m68k_register_virtual_size): Add.
4497 (m68k_register_virtual_type): Add.
4498 (m68k_register_name): Add.
4499 (m68k_stack_align): Add.
4500 (m68k_register_byte): Add.
4501 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4504 2002-06-21 Grace Sainsbury <graces@redhat.com>
4506 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4507 m68k_find_saved_regs.
4508 (m68k_pop_frame): Removed saved_regs structure, and replaced
4509 references to it with frame->saved_regs.
4510 (m68k_gdbarch_init): Added function calls to initialize the
4512 (m68k_fix_call_dummy): Add.
4513 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4514 (CALL_DUMMY): Remove.
4515 (CALL_DUMMY_LENGTH): Remove.
4516 (CALL_DUMMY_START_OFFSET): Remove.
4517 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4518 (FIX_CALL_DUMMY): Remove.
4519 (PUSH_DUMMY_FRAME): Remove.
4520 (POP_FRAME): Remove.
4522 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4524 * parse.c (parse_fprintf): New function used to avoid calls to
4525 fprintf in bison parser generated debug code.
4526 * parser-defs.h: Declaration of new parse_fprintf function.
4527 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4528 Set YYDEBUG to 1 by default.
4529 Set YYFPRINTF as parse_fprintf.
4531 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4533 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4535 (pointer_encoding, enum ptr_encoding): New.
4536 (execute_cfa_program): Take care about pointer encoding.
4537 (dwarf2_build_frame_info): Only call parse_frame_info for
4538 .debug_frame and .eh_frame.
4539 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4540 fixed augmentation handling, added relative addressing,
4541 ignore duplicate FDEs. Added comments.
4542 * dwarf2cfi.c: Reindented.
4544 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4546 * event-top.c (command_handler): Don't use space_at_cmd_start
4547 unless there is sbrk() on the host. Assign time and space data
4548 to union fields of the appropriate length.
4550 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4552 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4553 x86_64_register_name. Return type changed to 'const char *'.
4554 (x86_64_register_name2nr): Rename to x86_64_register_number.
4555 (x86_64_gdbarch_init): Update to reflect the change.
4556 * x86-64-tdep.h: Ditto.
4557 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4558 (supply_fpregset): Ditto.
4560 2002-06-19 Andrew Cagney <cagney@redhat.com>
4562 * regcache.h: Update copyright.
4563 (struct regcache, struct gdbarch): Add opaque declarations.
4564 (current_regcache): Declare global variable.
4565 (regcache_read, regcache_write): Add gdbarch parameter.
4566 (regcache_save, regcache_save_no_passthrough)
4567 (regcache_restore, regcache_restore_no_passthrough)
4568 (regcache_dup, regcache_dup_no_passthrough)
4569 (regcache_cpy, regcache_cpy_no_passthrough)
4570 (deprecated_grub_regcache_for_registers)
4571 (deprecated_grub_regcache_for_register_valid)
4572 (regcache_valid_p): Add function declarations.
4574 * regcache.c: Update copyright.
4575 (regcache_descr_handle): New global variable.
4576 (struct regcache_descr): Define.
4577 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4578 (regcache_descr, xfree_regcache_descr): New functions.
4579 (struct regcache): Define.
4580 (regcache_xmalloc, regcache_xfree): New functions.
4581 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4582 (regcache_dup, regcache_dup_no_passthrough): New functions.
4583 (regcache_valid_p, regcache_read_as_address): New functions.
4584 (deprecated_grub_regcache_for_registers): New function.
4585 (deprecated_grub_regcache_for_register_valid): New function.
4586 (current_regcache): New global variable.
4587 (register_buffer): Add regcache parameter. Update calls.
4588 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4589 (read_register_gen, write_register_gen): Update register_buffer
4590 call. Test for legacy_p instead of gdbarch_register_read_p or
4591 gdbarch_register_write_p.
4592 (regcache_collect): Update register_buffer call.
4593 (build_regcache): Rewrite. Use deprecated grub functions.
4594 (regcache_save, regcache_save_no_passthrough): New functions.
4595 (regcache_restore, regcache_restore_no_passthrough): New
4597 (_initialize_regcache): Create the regcache_data_handle. Swap
4598 current_regcache global variable.
4600 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4601 parameter to regcache_read and regcache_write calls.
4602 (sh4_register_read): Ditto.
4603 (sh64_pseudo_register_read): Ditto.
4604 (sh64_register_read): Ditto.
4605 (sh_pseudo_register_write): Ditto.
4606 (sh4_register_write): Ditto.
4607 (sh64_pseudo_register_write): Ditto.
4608 (sh64_register_write): Ditto.
4610 * defs.h (XCALLOC): Define.
4612 2002-06-19 Grace Sainsbury <graces@redhat.com>
4614 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4615 * m68k-tdep.c (m68k_gdbarch_init): Added.
4616 (m68k_dump_tdep): Added.
4618 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4620 * ada-lang.c (fill_in_ada_prototype): Update comment.
4622 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4624 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4626 (mips_abi_string, mips_abi_strings): New.
4627 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4628 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4629 tdep->mips_abi_string. Honor mips_abi_string. Default to
4630 O32 if no ABI is found.
4631 (mips_dump_tdep): Use mips_abi_strings.
4632 (mips_abi_update): New function.
4633 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4634 ``set mips abi'' and ``show mips abi''. Check the size of
4637 2002-06-19 Andrew Cagney <cagney@redhat.com>
4639 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4642 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4644 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4645 current frame using only the first stack size adjustment. All
4646 subsequent size adjustments are not considered to be part of
4647 the "static" part of the current frame.
4648 Compute the address of the saved registers relative to the
4649 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4650 in use in this frame.
4652 2002-06-18 Don Howard <dhoward@redhat.com>
4654 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4655 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4656 suggesting this solution.
4658 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4660 * config/romp/xm-rtbsd.h: Delete file.
4661 * config/romp/rtbsd.mh: Delete file.
4663 2002-06-18 Keith Seitz <keiths@redhat.com>
4665 * breakpoint.c (condition_command): Post breakpoint_modify
4666 when a condition is added to an existing breakpoint.
4667 (commands_command): Likewise for commands.
4668 (set_ignore_count): Likewise for ignore counts.
4669 If no tty, do not simply return, still need to send event
4671 (ignore_command): Only print a newline if the command came
4673 Don't call breakpoints_changed, since this is now properly
4674 handled by set_ignore_count.
4676 2002-06-18 Andrew Cagney <cagney@redhat.com>
4678 * MAINTAINERS: Note that cris-elf target can be compiled with
4680 * cris-tdep.c (cris_register_name): Make return type constant.
4681 (cris_breakpoint_from_pc): Ditto.
4683 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4685 * frame.h (struct frame_info): Change type of context to
4688 2002-06-17 Andrew Cagney <cagney@redhat.com>
4690 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4692 * gdbarch.h, gdbarch.c: Regenerate.
4693 * config/mips/tm-mips.h (mips_register_name): Update.
4694 * i386-tdep.h (i386_register_name): Update.
4695 * mips-tdep.c (mips_register_name): Update
4696 * alpha-tdep.c (alpha_register_name): Update.
4697 * arch-utils.c (legacy_register_name): Update.
4698 * arch-utils.h (legacy_register_name): Update.
4699 * avr-tdep.c (avr_register_name): Update.
4700 * ia64-tdep.c (ia64_register_name): Update.
4701 * i386-tdep.c (i386_register_name): Update.
4702 * sparc-tdep.c (sparc32_register_name): Update.
4703 (sparc64_register_name): Update.
4704 (sparclite_register_name): Update.
4705 (sparclet_register_name): Update.
4706 * sh-tdep.c (sh_generic_register_name): Update.
4707 (sh_sh_register_name): Update.
4708 (sh_sh3_register_name): Update.
4709 (sh_sh3e_register_name): Update.
4710 (sh_sh_dsp_register_name): Update.
4711 (sh_sh3_dsp_register_name): Update.
4712 (sh_sh4_register_name): Update.
4713 (sh_sh64_register_name): Update.
4714 * s390-tdep.c (s390_register_name): Update.
4715 * rs6000-tdep.c (rs6000_register_name): Update.
4716 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4717 (ns32k_register_name_32382): Update.
4718 * d10v-tdep.c (d10v_ts2_register_name): Update.
4719 (d10v_ts3_register_name): Update.
4720 * xstormy16-tdep.c (xstormy16_register_name): Update.
4721 * vax-tdep.c (vax_register_name): Update.
4722 * v850-tdep.c (v850_register_name): Update.
4723 * m68hc11-tdep.c (m68hc11_register_name): Update.
4724 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4725 (am33_register_name): Update.
4727 2002-06-17 Grace Sainsbury <graces@redhat.com>
4729 * m68k-tdep.c: Reindented.
4731 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4733 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4734 list of predefined types.
4736 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4738 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4739 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4740 REGISTER_CONVERT_TO_RAW): Remove defines.
4741 (i386_register_virtual_type, i386_register_convertible,
4742 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4744 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4745 macros mentioned above.
4747 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4748 (i386lynx_saved_pc_after_call): Remove prototype.
4749 * i386ly-tdep.c: Include "i386-tdep.h".
4750 (i386lynx_saved_pc_after_call): Make static. Use
4751 read_memory_nobpt instead of read_memory. Use
4752 read_memory_unsigned_integer instead of read_memory_integer.
4753 (i386lynx_init_abi): New function.
4754 (i386lynx_coff_osabi_sniffer): New function.
4755 (_initialize_i386bsd_tdep): New function.
4757 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4758 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4759 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4760 (i386_fix_call_dummy): Remove prototype.
4761 * i386-tdep.c (i386_call_dummy_words): New variable.
4762 (i386_gdbarch_init): Adjust for removal of the
4763 macros mentioned above.
4765 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4767 * command.h (add_setshow_auto_boolean_cmd): Replace
4768 add_set_auto_boolean_cmd.
4769 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4770 add_set_auto_boolean_cmd.
4771 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4772 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4773 mask-address'' command.
4774 (show_mask_address): Add cmd parameter.
4775 * remote.c (add_packet_config_cmd): Update. Change type of
4776 set_func and show_func to cmd_sfunc_ftype.
4777 (_initialize_remote): Update `set remote Z-packet'
4778 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4779 (show_remote_protocol_e_packet_cmd): Ditto.
4780 (show_remote_protocol_E_packet_cmd): Ditto.
4781 (show_remote_protocol_P_packet_cmd): Ditto.
4782 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4783 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4784 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4785 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4786 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4787 (show_remote_protocol_Z_packet_cmd): Ditto.
4788 (show_remote_protocol_binary_download_cmd): Ditto.
4789 (show_remote_cmd): Pass NULL to all of above.
4791 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4793 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4794 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4795 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4796 POP_FRAME): Remove defines.
4797 (i386_push_arguments, i386_store_struct_return,
4798 i386_extract_return_value, i386_store_return_value,
4799 i386_extract_struct_value_address, i386_push_dummy_frame,
4800 i386_pop_frame): Renove prototypes.
4801 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4802 macros mentioned above.
4804 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4806 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4807 add_set_boolean_cmd.
4808 (add_setshow_cmd): New function.
4809 * command.h (add_setshow_boolean_cmd): Replace
4810 add_set_boolean_cmd.
4811 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4812 and ``set rdiromatzero''.
4813 * maint.c (_initialize_maint_cmds): Update commented out code.
4814 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4815 * target.c (initialize_targets): Update `set
4816 trust-readonly-sections'.
4817 * remote.c (_initialize_remote): Update `set remotebreak'.
4819 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4821 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4822 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4823 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4824 fit into multi-arch framework.
4825 (i386_breakpoint_from_pc): New function.
4826 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4829 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4830 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4831 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4832 (i386_frameless_function_invocation, i386_frame_num_args,
4833 i386_frame_init_saved_regs): Remove prototypes.
4834 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4835 macros mentioned above.
4837 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4839 * cli/cli-decode.c (set_cmd_cfunc): Update.
4840 (set_cmd_sfunc): Update.
4841 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4842 (set_cmd_sfunc, set_cmd_cfunc): Update.
4843 * cli/cli-decode.h: Update.
4845 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4847 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4848 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4850 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4852 * defs.h (auto_boolean): Declare enum.
4853 * command.h (cmd_auto_boolean): Delete enum.
4854 * mips-tdep.c (mask_address_var): Update.
4855 (mips_mask_address_p): Update.
4856 (show_mask_address): Update.
4857 * remote.c (struct packet_config): Update.
4858 (update_packet_config): Update.
4859 (show_packet_config_cmd): Update.
4860 (packet_ok): Update.
4861 (add_packet_config_cmd): Update.
4862 (_initialize_remote):
4863 * command.h: Update.
4864 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4865 (do_setshow_command): Update.
4866 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4867 * cli/cli-decode.h: Update.
4869 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4871 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4872 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4873 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4874 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4875 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4876 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4878 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4879 list of DJGPP COFF targets.
4881 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4882 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4883 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4884 (FP0_REGNUM): Remove define.
4885 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4886 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4887 (i386_register_virtual_size): Remove protoype.
4888 * i386-tdep.c (i386_register_virtual_size): Removed.
4889 (i386_extract_return_value, i386_store_return_value): Use
4890 FP0_REGNUM instead of NUM_FREGS to determine whether the
4891 floating-point registers are available.
4892 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4893 Adjust for removal of macros mentioned above.
4895 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4897 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4899 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4901 (supply_gregset, fill_gregset): Remove use of register keyword and
4902 remove declaration for regmap. Use I386_NUM_GREGS instead of
4903 NUM_REGS and NUM_FREGS.
4904 (FPREGSET_FSAVE_OFFSET): Remove.
4905 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4906 NUM_FREGS to determine whether the floating-point registers are
4909 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4910 gnu_store_registers): Replace usage of NUM_GREGS with
4913 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4914 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4915 usage of NUM_GREGS with I386_NUM_GREGS.
4917 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4919 * i386bsd-nat.c: Include "i386-tdep.h".
4920 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4923 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4924 and associated comment. They no longer make any sense, since we
4925 don't use this file anymore on Linux.
4927 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4928 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4929 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4930 elements in these arrays.
4931 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4934 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4936 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4937 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4939 2002-06-14 Andrew Cagney <cagney@redhat.com>
4941 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4942 EXTRACT_RETURN_VALUE.
4943 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4944 EXTRACT_STRUCT_VALUE_ADDRESS.
4945 * gdbarch.h, gdbarch.c: Regenerate.
4947 * values.c (value_being_returned): Handle
4948 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4949 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4951 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4952 * arm-tdep.c (arm_gdbarch_init): Update.
4953 * avr-tdep.c (avr_gdbarch_init): Update.
4954 * cris-tdep.c (cris_gdbarch_init): Update.
4955 * d10v-tdep.c (d10v_gdbarch_init): Update.
4956 * ia64-tdep.c (ia64_gdbarch_init): Update.
4957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4959 * s390-tdep.c (s390_gdbarch_init): Update.
4960 * sh-tdep.c (sh_gdbarch_init): Update.
4961 * s390-tdep.c (s390_gdbarch_init): Update.
4962 * sparc-tdep.c (sparc_gdbarch_init): Update.
4963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4964 * v850-tdep.c (v850_gdbarch_init): Update.
4965 * vax-tdep.c (vax_gdbarch_init): Update.
4966 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4969 * config/arc/tm-arc.h: Update.
4970 * config/d30v/tm-d30v.h: Update.
4971 * config/fr30/tm-fr30.h: Update.
4972 * config/h8300/tm-h8300.h: Update.
4973 * config/h8500/tm-h8500.h: Update.
4974 * config/i386/tm-i386.h: Update.
4975 * config/i386/tm-ptx.h: Update.
4976 * config/i386/tm-symmetry.h: Update.
4977 * config/i960/tm-i960.h: Update.
4978 * config/m32r/tm-m32r.h: Update.
4979 * config/m68k/tm-delta68.h: Update.
4980 * config/m68k/tm-linux.h: Update.
4981 * config/m68k/tm-m68k.h: Update.
4982 * config/m88k/tm-m88k.h: Update.
4983 * config/mcore/tm-mcore.h: Update.
4984 * config/mips/tm-mips.h: Update.
4985 * config/mn10200/tm-mn10200.h: Update.
4986 * config/pa/tm-hppa.h: Update.
4987 * config/pa/tm-hppa64.h: Update.
4988 * config/sparc/tm-sp64.h: Update.
4989 * config/sparc/tm-sparc.h: Update.
4990 * config/sparc/tm-sparclet.h: Update.
4991 * config/z8k/tm-z8k.h: Update.
4993 2002-06-14 Andrew Cagney <cagney@redhat.com>
4995 * Makefile.in (i386_linux_tdep_h): Define.
4996 (i386_tdep_h, i387_tdep_h): Define.
4997 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4998 $(i386_tdep_h) and $(i387_tdep_h).
4999 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5001 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5003 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5004 Already covered by the default.
5006 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5007 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5008 (i386_gdbarch_init): Initialize long_double_format and long_double
5011 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5012 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5014 * config/i386/i386sol2.mh: ... here.
5015 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5016 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5017 (SIGCONTEXT_PC_OFFSET): Remove define.
5018 (IN_SIGTRAMP): Remove define.
5019 * i386-sol2-tdep.c: New file.
5021 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5022 * config/i386/tm-i386nw.h: Removed.
5024 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5025 USE_STRUCT_CONVENTION): Remove defines.
5026 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5027 (get_longjmp_target): Remove prototype.
5028 (IN_SIGTRAMP): Remove define.
5029 (i386bsd_in_sigtramp): Remove prototype.
5030 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5031 function. Update comment accordingly
5032 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5033 (FRAME_SAVED_PC): Remove define.
5034 (i386bsd_frame_saved_pc): Remove prototype.
5035 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5036 GET_LONGJMP_TARGET): Remove defines.
5037 (get_longjmp_target): Remove prototype.
5038 (IN_SIGTRAMP): Remove define.
5039 (i386bsd_in_sigtramp): Remove prototype.
5040 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5041 function. Update comment accordingly
5042 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5043 (FRAME_SAVED_PC): Remove define.
5044 (i386bsd_frame_saved_pc): Remove prototype.
5045 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5047 (USE_STRUCT_CONVENTION): Remove prototype.
5048 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5050 (_initialize_i386bsd_nat): Revise logic to determine some
5051 constants at compile time when compiling a native GDB. Warn if
5052 things don't match up with what we expect.
5053 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5055 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5056 to use date stored in `struct gdbarch_tdep'.
5057 (i386bsd_sigcontext_offset): Remove varaible.
5058 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5059 stored in `struct gdbarch_tdep'.
5060 (i386bsd_frame_saved_pc): Make static.
5061 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5062 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5063 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5064 i386fbsd4_sc_pc_offset): New variables.
5065 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5066 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5068 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5070 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5071 Modify the value of i386fbsd_sigtramp_start and
5072 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5073 i386fbsd_sigtramp_end.
5074 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5077 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5078 define to i386-linux-tdep.h.
5079 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5080 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5082 (i386_linux_register_name, i386_linux_register_byte,
5083 i386_linux_register_raw_size): Remove prototypes.
5084 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5085 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5086 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5087 TARGET_WRITE_PC): Remove defines.
5088 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5089 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5090 i386_linux_write_pc): Remove prototypes.
5091 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5092 (get_longjmp_target): Remove prototype.
5093 * i386-linux-tdep.h: New file.
5094 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5095 * i386-linux-tdep.c: Include "i386-tdep.h" and
5096 "i386-linux-tdep.h".
5097 (i386_linux_register_name, i386_linux_register_byte,
5098 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5099 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5101 (i386_linux_init_abi): New function.
5102 (_initialize_i386_linux_tdep): New function.
5104 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5105 (i386_saved_pc_after_call): Remove prototype.
5106 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5107 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5108 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5109 (i386_register_name, i386_stab_reg_to_regnum,
5110 i386_dwarf_reg_to_regnum): Remove prototypes.
5111 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5112 SIZEOF_SSE_REGS): Remove defines.
5113 (REGISTER_BYTES): Remove define.
5114 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5115 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5116 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5117 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5118 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5119 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5120 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5121 (get_longjmp_target): Remove prototype.
5122 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5123 (sigtramp_saved_pc): Remove define.
5124 (i386v4_sigtramp_saved_pc): Remove prototype.
5125 * config/i386/tm-go32.h (FRAME_CHAIN,
5126 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5127 (i386go32_frame_saved_pc): Remove prototype.
5128 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5129 (get_longjmp_target): Remove prototype.
5130 * i386-tdep.h: Include "osabi.h".
5131 (enum i386_abi): Removed.
5132 (enum struct_return): New enum.
5133 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5134 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5135 sc_pc_offset members.
5136 (i386_gdbarch_register_os_abi): Remove prototype.
5137 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5138 I386_SSE_NUM_REGS): New defines.
5139 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5140 I386_SSE_SIZEOF_REGS): New defines.
5141 (i386_register_name, i386_register_byte, i386_register_raw_size):
5143 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5144 (i386bsd_sigtramp_saved_pc): New prototype.
5145 * i386-tdep.c: Don't include "elf-bfd.h".
5146 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5147 i386_frame_chain, i386_saved_pc_after_call): Make static.
5148 (i386_frame_saved_pc): Rewrite to call architecture dependent
5149 function to deal with signal handlers. Make static.
5150 (i386go32_frame_saved_pc): Removed.
5151 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5153 (i386_get_longjmp_target): New function.
5154 (default_struct_convention, pcc_struct_convention,
5155 reg_struct_convention, valid_conventions, struct_convention): New
5157 (i386_use_struct_convention): New function.
5158 (i386v4_sigtramp_saved_pc): Renamed to
5159 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5160 (i386_pc_in_sigtramp): New function.
5161 (i386_abi_names): Removed.
5162 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5163 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5165 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5166 i386_gdbarch_register_os_abi): Removed.
5167 (struct i386_abi_handler): Removed.
5168 (i386_abi_handler_list): Removed.
5169 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5171 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5172 i386_nw_init_abi): New functions.
5173 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5174 Use set_gdbarch_xxx() calls instead of relying on macros for a
5176 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5177 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5178 Register the various architecture variants defined in this file.
5180 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5182 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5183 (struct main_type): Remove arg_types member. Update comments for
5185 (TYPE_ARG_TYPES): Remove.
5186 (TYPE_FN_FIELD_ARGS): Update.
5187 (smash_to_method_type): Update prototype.
5189 * c-typeprint.c (cp_type_print_method_args): Take method type
5190 instead of argument list. Use new argument layout. Simplify.
5191 (c_type_print_args): Use new argument layout. Simplify.
5192 (c_type_print_base): Update call to cp_type_print_method_args.
5193 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5194 argument; use die->type instead. Update call to
5195 smash_to_method_type.
5196 (read_structure_scope): Update call to dwarf2_add_member_fn.
5197 * gdbtypes.c (allocate_stub_method): Update comment.
5198 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5199 Use new argument layout.
5200 (check_stub_method): Use new argument layout. Don't count
5201 void as an argument.
5202 (print_arg_types): Update comments. Use new argument layout.
5203 (recursive_dump_type): Don't print arg_types member.
5204 * hpread.c (hpread_read_struct_type): Use new argument layout.
5205 (fixup_class_method_type): Likewise.
5206 (hpread_type_lookup): Likewise.
5207 * stabsread.c (read_type): Update calls to read_args and
5208 smash_to_method_type.
5209 (read_args): Use new argument layout. Simplify.
5210 * valops.c (typecmp): Use new argument layout. Update parameters
5211 and comments. Simplify.
5212 (hand_function_call): Use new argument layout.
5213 (search_struct_method): Update call to typecmp.
5214 (find_overload_match): Use new argument layout.
5216 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5218 * NEWS: Mention multithreaded debug support for gdbserver.
5220 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5222 * MAINTAINERS: Mention NEWS.
5224 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5226 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5227 (struct mips_objfile_private, compare_pdr_entries): New.
5228 (non_heuristic_proc_desc): Read the ".pdr" section if it
5231 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5233 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5234 (arm_debug): New static variable.
5235 (_initialize_arm_tdep): Add ``set debug arm'' command.
5237 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5239 * Makefile.in (sim_arm_h): Define.
5240 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5241 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5242 (arm_register_sim_regno): New function, map an internal REGNUM
5243 onto a simulator register number.
5244 (arm_gdbarch_init): Set register_sim_regno.
5246 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5248 * MAINTAINERS: Add self.
5250 2002-06-11 Jim Blandy <jimb@redhat.com>
5252 * source.c (source_info): Mention whether the symtab has
5253 information about preprocessor macros.
5255 Call the command `info macro', not `show macro'.
5256 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5258 (_initialize_macrocmd): Register `info_macro_command' in
5259 `infolist', not `showlist'.
5261 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5263 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5264 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5265 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5266 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5267 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5269 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5270 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5271 (_initialize_mips_tdep): Remove dead code.
5272 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5273 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5274 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5275 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5276 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5277 MIPS_LAST_FP_ARG_REGNUM): Remove.
5279 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5281 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5282 (unwind_tmp_obstack_free, parse_frame_info)
5283 (update_context, cfi_read_fp, cfi_write_fp)
5284 (cfi_frame_chain, cfi_init_extra_frame_info)
5285 (cfi_virtual_frame_pointer): Use the above function.
5286 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5288 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5290 * v850-tdep.c (v850_type_is_scalar): New function.
5291 (v850_use_struct_convention): Match current gcc implementation
5292 as close as possible.
5293 (v850_push_arguments): Fix stack_offset handling. Don't write
5294 struct_addr into register. This is done by v850_store_struct_return.
5295 (v850_extract_return_value): Care for structs.
5296 (v850_store_return_value): Ditto.
5297 (v850_store_struct_return): Actually write address.
5299 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5301 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5302 without debug information too.
5304 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5306 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5307 Make multi-arch pure.
5308 * gdbarch.h, gdbarch.c: Re-generate.
5309 * arm-tdep.c (arm_print_float_info): Update.
5310 * arch-utils.h (default_print_float_info): Update.
5311 * arch-utils.c (default_print_float_info): Update.
5312 * infcmd.c (float_info): Update call.
5314 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5316 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5317 the front of the initialize list.
5319 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5321 * infrun.c (struct inferior_status): Replace fields
5322 selected_frame_address and selected_level with field
5324 (save_inferior_status): Update. Use get_frame_id.
5325 (struct restore_selected_frame_args): Delete.
5326 (restore_selected_frame): Update. Use frame_find_by_id.
5327 (restore_inferior_status): Update.
5329 * breakpoint.h (struct breakpoint): Change type of
5330 watchpoint_frame to frame_id.
5331 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5332 call to get_current_frame.
5333 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5335 (watchpoint_check): Use frame_find_by_id.
5337 * frame.h (record_selected_frame): Delete declaration.
5338 * stack.c (record_selected_frame): Delete function.
5340 * frame.h (struct frame_id): Define.
5341 (get_frame_id): Declare.
5342 (frame_find_by_id): Declare.
5343 * frame.c (frame_find_by_id): New function.
5344 (get_frame_id): New function.
5346 2002-06-10 Andrey Volkov <avolkov@transas.com>
5348 * ser-e7kpc.c: Fix duplicated define and call of
5349 _initialize_ser_e7000pc
5351 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5353 * signals/signals.c (target_signal_from_host): Fix #ifdef
5355 (do_target_signal_to_host): Likewise.
5357 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5359 * mips-tdep.c (mips_find_abi_section): New function.
5360 (mips_gdbarch_init): Call it.
5362 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5364 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5365 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5366 after Andrew's 2002-06-08 gdbarch change.
5368 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5370 * i386-linux-nat.c (suppy_gregset): Don't supply
5371 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5373 (fill_gregset): Don't fetch it under the same circumstances.
5375 2002-06-09 Andrew Cagney <cagney@redhat.com>
5377 * Makefile.in (callback_h): Define.
5378 (remote_sim_h): Update path to remote-sim.h.
5379 (remote-rdp.o): Add $(callback_h).
5380 (remote-sim.o): Use $(callback_h).
5381 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5382 * remote-rdp.c: Include "gdb/callback.h".
5384 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5386 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5387 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5389 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5391 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5392 * rdi-share/serpardr.c: Ditto.
5393 * rdi-share/unixcomm.c: Ditto.
5394 * rdi-share/serdrv.c: Ditto.
5395 * rdi-share/hostchan.h: Ditto.
5396 * rdi-share/hostchan.c: Ditto.
5397 * rdi-share/host.h: Ditto.
5398 * rdi-share/devsw.c: Ditto.
5400 * objfiles.h: Change type of obj_private to void pointer.
5401 * pa64solib.c: Update copyright. Don't include "assert.h", use
5402 strcmp instead of STREQ, use LONGEST, do not use PTR
5403 * somsolib.c: Ditto.
5405 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5406 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5407 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5409 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5411 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5412 (default_get_saved_register): Delete function.
5413 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5414 generic_unwind_get_saved_register.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5417 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5419 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5420 generic_func_frame_chain_valid.
5421 * gdbarch.h, gdbarch.c: Re-generate.
5422 * blockframe.c (generic_func_frame_chain_valid): Only check
5423 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5424 passing FP to PC_IN_CALL_DUMMY.
5427 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5429 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5430 (register_gdbarch_data): Initialize init_p.
5431 (gdbarch_data): Initialize data pointer using the init function.
5432 (init_gdbarch_data): Delete function.
5433 (gdbarch_update_p): Update.
5434 (initialize_non_multiarch): Update.
5435 (struct gdbarch): Add field initialized_p.
5436 * gdbarch.h, gdbarch.c: Re-generate.
5438 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5440 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5441 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5442 better do the things actually here.
5443 * x86-64-tdep.c (x86_64_register_name2nr): New.
5444 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5445 (x86_64_gdbarch_init): Respect the above change.
5446 * x86-64-tdep.h (x86_64_register_name2nr)
5447 (x86_64_register_nr2name): Add prototypes.
5448 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5450 2002-06-06 Michael Snyder <msnyder@redhat.com>
5452 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5453 Delete extra braces and re-indent.
5454 (d10v_store_return_value): Char return values
5455 must be shifted over by one byte in R0.
5456 (d10v_extract_return_value): Delete extra braces, re-indent.
5458 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5460 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5461 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5462 (d10v_integer_to_address): Rewrite.
5463 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5464 the d10v specific functions which take care of converting to the
5467 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5469 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5470 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5472 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5474 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5476 * config/tm-linux.h: Ditto.
5477 * config/alpha/tm-alphalinux.h: Ditto.
5478 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5479 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5480 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5481 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5482 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5483 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5484 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5485 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5486 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5487 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5488 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5489 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5490 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5491 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5492 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5493 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5494 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5495 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5496 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5497 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5498 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5499 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5500 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5501 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5502 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5503 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5504 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5505 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5506 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5507 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5508 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5509 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5510 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5511 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5512 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5513 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5514 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5516 2002-05-04 Aidan Skinner <aidan@velvet.net>
5518 * ada-exp.tab.c: New file
5519 * ada-exp.y: New file
5520 * ada-lang.c: New file
5521 * ada-lang.h: New file
5522 * ada-lex.c: New file
5523 * ada-lex.l: New file
5524 * ada-tasks.c: New file
5525 * ada-typeprint.c: New file
5526 * ada-valprint.c: New file
5528 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5530 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5531 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5533 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5535 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5536 insetead of ppc-linux-tdep.o.
5537 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5538 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5540 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5542 2002-05-07 Christian Groessler <chris@groessler.org>
5543 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5544 bit register contents for little endian hosts.
5546 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5548 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5551 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5553 * gdbarch.h: Regenerate.
5555 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5557 * MAINTAINERS: Add everyone to write-after-approval list.
5559 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5561 * stack.c (frame_info): Use frame_register_unwind instead of
5562 saved_regs. Mention when the SP is on the stack or in a register.
5564 * frame.h (frame_register_unwind_ftype): Define. Document.
5565 (struct frame_info): Add field register_unwind and
5566 register_unwind_cache.
5567 (frame_register_unwind): Declare.
5568 (generic_unwind_get_saved_register): Declare.
5570 * frame.c (frame_register_unwind): New function.
5571 (generic_unwind_get_saved_register): New function.
5573 * blockframe.c (generic_call_dummy_register_unwind): New function.
5574 (frame_saved_regs_register_unwind): New function.
5575 (set_unwind_by_pc): New function.
5576 (create_new_frame): New function.
5577 (get_prev_frame): New function.
5579 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5581 * a29k-share/: Delete directory.
5582 * remote-vx29k.c: Delete file.
5584 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5586 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5587 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5589 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5591 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5592 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5595 (sparcnbsd-tdep.o): New dependency lists.
5596 * NEWS: Note new UltraSPARC NetBSD native configuration.
5597 * configure.host (sparc64-*-netbsd*): New host.
5598 * configure.tgt (sparc-*-netbsdelf*)
5599 (sparc-*-netbsd*): Set gdb_target to nbsd.
5600 (sparc64-*-netbsd*): New target.
5601 * sparc64nbsd-nat.c: New file.
5602 * sparcnbsd-nat.c: New file.
5603 * sparcnbsd-tdep.c: New file.
5604 * sparcnbsd-tdep.h: New file.
5605 * config/sparc/nbsd.mt: New file.
5606 * config/sparc/nbsd64.mh: New file.
5607 * config/sparc/nbsd64.mt: New file.
5608 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5609 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5611 * config/sparc/nbsdaout.mt: Remove.
5612 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5613 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5615 * config/sparc/nbsdelf.mt: Remove.
5616 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5617 sparc-nat.c compatiblity defines.
5618 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5619 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5620 * config/sparc/tm-nbsd64.h: New file.
5621 * config/sparc/tm-nbsdaout.h: Remove.
5622 * config/sparc/xm-nbsd.h: Remove.
5624 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5626 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5627 * sparc-tdep.c: Include osabi.h.
5628 (gdbarch_tdep): Add osabi member.
5629 (_initialize_sparc_tdep): Use gdbarch_register.
5630 (sparc_gdbarch_init): Use generic OS ABI framework.
5631 (sparc_dump_tdep): New function.
5633 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5635 * corefile.c (do_captured_read_memory_integer): Return non-zero
5637 (safe_read_memory_integer): Copy result of memory read when
5638 status is non-zero. Also, add comments.
5640 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5642 * Makefile.in (ppc_tdep_h): Define.
5645 (rs6000-tdep.o): Use $(ppc_tdep_h).
5648 (ppcnbsd-tdep.o): New dependency lists.
5649 * ppc-tdep.h: Use generic OS ABI framework.
5650 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5651 (ppc_linux_init_abi): New functions.
5652 (ppc_sysv_abi_broken_use_struct_convention)
5653 (ppc_sysv_abi_use_struct_convention)
5654 (ppc_sysv_abi_push_arguments): Move to...
5655 * ppc-sysv-tdep.c: ...here.
5656 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5657 * rs6000-tdep.c (process_note_abi_tag_sections)
5658 (get_elfosabi): Remove.
5659 (rs6000_gdbarch_init): Use generic OS ABI framework.
5660 (rs6000_dump_tdep): New function.
5661 (_initialize_rs6000_tdep): Use gdbarch_register.
5662 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5663 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5664 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5665 of ppc-linux-tdep.o.
5666 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5667 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5668 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5669 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5670 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5671 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5673 2002-05-29 Jim Blandy <jimb@redhat.com>
5675 * macroscope.c (default_macro_scope): Put `void' in empty argument
5678 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5680 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5681 * arch-utils.c: Include "sim-regno.h".
5682 * gdbarch.sh: Don't include "sim-regno.h".
5683 * gdbarch.h, gdbarch.c: Regenerate.
5684 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5686 * arch-utils.h (legacy_register_sim_regno): To here.
5687 * remote-sim.c (legacy_register_sim_regno): Move function from
5689 * arch-utils.c (legacy_register_sim_regno): To here.
5691 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5693 * sim-regno.h: New file.
5694 * Makefile.in (sim_regno_h): Define.
5695 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5696 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5697 (legacy_register_sim_regno): New function.
5698 (one2one_register_sim_regno): New function.
5699 (gdbsim_fetch_register): Rewrite.
5700 (gdbsim_store_register): Only store a register when
5701 REGISTER_SIM_REGNO is valid.
5702 * d10v-tdep.c: Include "sim-regno.h".
5703 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5704 (d10v_ts3_register_sim_regno): Ditto.
5705 * gdbarch.sh: Include "sim-regno.h".
5706 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5707 * gdbarch.h, gdbarch.c: Regenerate.
5708 * arch-utils.h (default_register_sim_regno): Delete declaration.
5709 * arch-utils.c (default_register_sim_regno): Delete function.
5711 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5713 * ppcnbsd-nat.c: Rewrite.
5714 * ppcnbsd-tdep.c: New file.
5715 * ppcnbsd-tdep.h: New file.
5716 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5717 solib.o, and solib-svr4.o.
5718 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5719 nbsd-tdep.o, and corelow.o.
5721 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5723 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5724 `tr' and `sed'. Mention that `broken' targets are not expected to
5727 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5729 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5730 Let PC point right after the prologue before looking up symbols.
5732 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5734 * i386-tdep.c (i386_register_virtual_type): Return
5735 builtin_type_vec128i for SSE registers.
5737 * gdbtypes.h (builtin_type_vec128i): Declare.
5739 * gdbtypes.c (build_builtin_type_vec128i): New function.
5740 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5741 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5742 (build_gdbtypes): Initialize new builtin vector types.
5743 (_initialize_gdbtypes): Register new vector types with gdbarch.
5745 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5747 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5748 since it has been multi-arch'd.
5749 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5750 Move Alpha and VAX multi-arch news entries to same section
5751 as other multi-arch news.
5753 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5755 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5756 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5757 static. Rename some register numbers to put them in ns32k-tdep
5759 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5760 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5762 (_initialize_ns32k_tdep): Use gdbarch_register.
5763 * ns32k-tdep.h: New file.
5764 * ns32knbsd-tdep.c: New file.
5765 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5766 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5767 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5768 REGISTER_BYTES, REGISTER_BYTE): Remove.
5769 * config/ns32k/tm-ns32k.h: New file.
5770 * config/ns32k/tm-umax.h: Remove.
5772 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5774 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5775 ns32k_store_struct_return, ns32k_extract_return_value,
5776 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5778 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5779 ns32k_saved_pc_after_call.
5780 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5781 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5782 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5783 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5784 ns32k_extract_struct_value_address.
5786 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5788 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5789 ns32k_fix_call_dummy): New.
5790 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5791 ns32k_call_dummy_words.
5792 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5793 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5794 CALL_DUMMY_NARGS): Remove.
5795 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5797 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5799 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5800 ns32k_frame_saved_pc, ns32k_frame_args_address,
5801 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5802 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5803 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5804 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5805 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5806 (BREAKPOINT): Remove..
5807 (FRAME_CHAIN): Define as ns32k_frame_chain.
5808 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5809 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5810 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5811 (FRAME_FIND_SAVED_REGS): Remove.
5812 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5813 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5814 (POP_FRAME): Define as ns32k_pop_frame.
5816 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5818 * ns32k-tdep.c (ns32k_register_byte_32082,
5819 ns32k_register_byte_32382, ns32k_register_raw_size,
5820 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5822 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5823 ns32k_register_byte_32382.
5824 * config/ns32k/tm-umax.h: Update copyright years.
5825 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5826 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5827 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5828 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5829 (ns32k_get_enter_addr): Fix prototype.
5831 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5833 * ns32k-tdep.c: Update copyright years.
5834 (ns32k_register_name_32082): New function.
5835 (ns32k_register_name_32382): Ditto.
5836 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5837 (REGISTER_NAME): Define as ns32k_register_name_32382.
5838 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5839 (REGISTER_NAME): Define as ns32k_register_name_32082.
5841 2002-05-24 Jim Blandy <jimb@redhat.com>
5843 * dwarf2read.c (free_line_header): Use xfree, not free.
5845 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5847 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5848 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5850 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5852 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5854 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5856 From Ross Alexander at NEC Europe:
5857 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5859 2002-05-23 Michael Snyder <msnyder@redhat.com>
5861 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5862 for input, rather than parse_and_eval_address.
5864 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5866 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5867 * Makefile.in (sim_d10v_h): Update definition.
5869 2002-05-24 Andrew Cagney <cagney@redhat.com>
5871 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5872 change `2002-05-22 Michael Snyder' below.
5873 (d10v_push_arguments): Ditto.
5874 (d10v_extract_return_value): Ditto.
5876 2002-05-23 Jim Blandy <jimb@redhat.com>
5878 * macrotab.c (check_for_redefinition): Don't complain if the new
5879 definition is the same as the previous one. Take more arguments
5880 to allow the comparison.
5881 (macro_define_object, macro_define_function): Pass more arguments
5882 to check_for_redefinition.
5884 2002-05-22 Michael Snyder <msnyder@redhat.com>
5886 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5887 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5888 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5889 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5890 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5891 Add a temp variable to save a call (and a memory read).
5892 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5893 if possible (so that PC_IN_CALL_DUMMY will work).
5895 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5897 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5899 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5901 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5903 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5904 (dwarf2_build_frame_info): Add offset to fde->initial_location
5905 so that frames of shared libraries are mapped correctly.
5906 (execute_stack_op): Change type of 'result' from ULONGEST to
5909 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5911 * config/alpha/tm-nbsd.h: Include solib.h.
5913 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5915 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5916 assumptions about the host's byte order.
5918 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5920 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5922 * alphanbsd-tdep.c: Include solib-svr4.h.
5923 * shnbsd-tdep.c: Ditto.
5925 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5927 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5928 nbsd-tdep.h to dependency list.
5929 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5930 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5931 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5932 nbsdaout.mh and nbsdelf.mh consistently.
5933 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5934 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5935 nbsdaout.mt and nbsdelf.mh consistently.
5936 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5937 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5938 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5939 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5940 a.out shared library stuff from here...
5941 * config/nm-nbsdaout.h: ...to here.
5942 * config/tm-nbsd.h: Remove.
5943 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5944 * config/arm/nbsd.mh: Remove.
5945 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5947 * config/arm/nbsdaout.mh: New file.
5948 * config/arm/nbsdelf.mh: New file.
5949 * config/arm/nm-nbsdaout.h: New file.
5950 * config/i386/nbsd.mh: Remove.
5951 * config/i386/nbsd.mt: Remove.
5952 * config/i386/nbsdaout.mh: New file.
5953 * config/i386/nbsdaout.mt: New file.
5954 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5955 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5956 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5957 i386_register_u_addr): Remove.
5958 * config/i386/nm-nbsdaout.h: New file.
5959 * config/i386/nm-nbsdelf.h: Remove.
5960 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5961 (USE_STRUCT_CONVENTION): Remove.
5962 * config/i386/tm-nbsdaout.h: New file.
5963 * config/i386/tm-nbsdelf.h: Remove.
5964 * config/m68k/nbsd.mh: Remove.
5965 * config/m68k/nbsd.mt: Remove.
5966 * config/m68k/nbsdaout.mh: New file.
5967 * config/m68k/nbsdaout.mt: New file.
5968 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5969 * config/m68k/nm-nbsdaout.h: New file.
5970 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5971 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5972 * config/ns32k/nbsd.mh: Remove.
5973 * config/ns32k/nbsd.mt: Remove.
5974 * config/ns32k/nbsdaout.mh: New file.
5975 * config/ns32k/nbsdaout.mt: New file.
5976 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5977 * config/ns32k/nm-nbsdaout.h: New file.
5978 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5979 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5980 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5981 (SVR4_SHARED_LIBS): Remove.
5982 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5983 * config/sparc/nbsd.mh: Remove.
5984 * config/sparc/nbsd.mt: Remove.
5985 * config/sparc/nbsdaout.mh: New file.
5986 * config/sparc/nbsdaout.mt: New file.
5987 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5988 * config/sparc/nbsdelf.mt: New file.
5989 * config/sparc/nm-nbsdaout.h: New file.
5990 * config/sparc/nm-nbsdelf.h: Remove.
5991 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5992 * config/sparc/tm-nbsdaout.h: New file.
5994 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5996 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5998 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6000 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6002 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6004 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6006 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6008 * NEWS: Note new MIPS NetBSD native configuration.
6009 * configure.host (mips*-*-netbsd*): New host.
6010 * configure.tgt (mips*-*-netbsd*): New target.
6011 * mipsnbsd-nat.c: New file.
6012 * mipsnbsd-tdep.c: New file.
6013 * mipsnbsd-tdep.h: New file.
6014 * config/mips/nbsd.mh: New file.
6015 * config/mips/nbsd.mt: New file.
6016 * config/mips/nm-nbsd.h: New file.
6017 * config/mips/tm-nbsd.h: New file.
6019 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6021 * Makefile.in (SFILES): Add osabi.c.
6022 (COMMON_OBS): Add osabi.o.
6023 (osabi.o): New dependency list.
6024 * osabi.c: New file.
6025 * osabi.h: New file.
6026 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6028 * Makefile.in (alpha_tdep_h): Define and use instead of
6030 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6031 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6033 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6034 * alpha-tdep.h: Include osabi.h.
6035 (alpha_abi): Remove.
6036 (gdbarch_tdep): Use generic OS ABI framework.
6037 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6038 gdbarch_register_osabi.
6039 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6040 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6041 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6043 * Makefile.in (sh_tdep_h): Add osabi.h.
6044 * sh-tdep.h (sh_osabi): Remove.
6045 (gdbarch_tdep): Use generic OS ABI framework.
6046 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6047 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6048 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6049 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6051 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6052 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6053 gdbarch_register_osabi.
6054 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6055 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6056 (get_elfosabi): Rename to...
6057 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6058 ABI framework support routines.
6059 (arm_gdbarch_init): Use generic OS ABI framework.
6060 (arm_dump_tdep): Likewise.
6061 (_initialize_arm_tdep): Likewise.
6062 * arm-tdep.h: Include osabi.h.
6064 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6066 (arm_gdbarch_register_os_abi): Remove prototype.
6067 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6068 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6070 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6071 * mips-tdep.c: Include osabi.h.
6072 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6075 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6077 * h8300-tdep.c: Fix formatting.
6079 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6081 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6082 printing vector registers.
6084 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6086 From Fernando Nasser:
6087 * remote.c (remote_async_open_1): Re-throw the exception when the
6089 (remote_cisco_open): Ditto.
6090 (remote_open_1): Ditto.
6092 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6094 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6095 (remote_start_remote): Add uiout parameter. Pass through to
6096 remote_start_remote_dummy.
6097 (remote_open_1): Use catch_exception instead of catch_errors.
6098 (remote_async_open_1): Ditto.
6099 (remote_cisco_open): Ditto.
6101 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6103 * remote.c (remote_start_remote): Replace PTR with void pointer.
6104 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6107 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6109 * gdb_indent.sh: Allow the script to be run in the sim directory.
6111 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6113 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6114 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6116 * corelow.c (core_open): Only call set_gdbarch_from_file if
6119 2002-05-17 Andrey Volkov <avolkov@transas.com>
6121 * h8300-tdep.c: Add support of EXR register
6122 * config/h8300/tm-h8300.h: Ditto.
6124 2002-05-17 Andrey Volkov <avolkov@transas.com>
6126 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6128 2002-05-17 Andrey Volkov <avolkov@transas.com>
6130 * h8300-tdep.c: Change literal regnums to REGNO.
6132 2002-05-17 Jim Blandy <jimb@redhat.com>
6134 * NEWS: Note addition of macro support.
6136 Expand preprocessor macros in C expressions.
6137 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6138 (scan_macro_expansion, scanning_macro_expansion,
6139 finished_macro_expansion): New function declarations.
6140 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6141 variable declarations.
6142 * parser-defs.h (expression_context_pc): New declaration.
6143 * parse.c (expression_context_pc): New variable.
6144 (parse_exp_1): Set expression_context_pc, as well as
6145 expression_context_block.
6146 * c-exp.y (yylex): If we're not already reading the result of a
6147 macro expansion, try to macro-expand the next token. When we're
6148 done scanning a macro expansion, switch back to the mainline text.
6149 Commas and `if's in a macro's expansion don't terminate the input.
6150 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6151 (macro_original_text, macro_expanded_text,
6152 expression_macro_lookup_func, expression_macro_lookup_baton): New
6154 (scan_macro_expansion, scanning_macro_expansion,
6155 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6156 c_preprocess_and_parse): New functions.
6157 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6158 c_preprocess_and_parse, instead of c_parse.
6159 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6160 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6162 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6164 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6165 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6166 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6168 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6170 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6172 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6174 * Makefile.in (sh_tdep_h): Define and use.
6175 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6176 register enum): Move to...
6177 * * sh-tdep.h: ...here.
6178 * sh-tdep.c: Include sh-tdep.h.
6179 * sh3-rom.c: Likewise.
6180 * shnbsd-tdep.c: Likewise.
6182 2002-05-16 Michael Snyder <msnyder@redhat.com>
6184 * arm-tdep.c: Spelling fix in comment.
6186 2002-05-16 Jim Blandy <jimb@redhat.com>
6188 Add commands for manually expanding macros and showing their
6190 * macrocmd.c, macroscope.c, macroscope.h: New files.
6191 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6192 (macroscope_h): New variable.
6193 (HFILES_NO_SRCDIR): Add macroscope.h.
6194 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6195 (macroscope.o, macrocmd.o): New rules.
6197 Teach the Dwarf 2 reader to read macro information.
6198 * dwarf2read.c: #include "macrotab.h".
6199 (dwarf_macinfo_buffer): New variable.
6200 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6202 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6203 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6204 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6205 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6206 dwarf2_macro_spaces_in_definition): New complaints.
6207 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6208 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6209 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6210 the partial symbol table.
6211 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6212 from what's recorded in the partial symbol table.
6213 (read_file_scope): If the compilation unit has a
6214 `DW_AT_macro_info' attribute, read its macro information.
6215 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6217 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6220 * ser-tcp.c: Don't include <netinet/udp.h>.
6222 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6224 * MAINTAINERS: Update my email address.
6226 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6228 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6229 include file of the same name.
6231 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6233 * configure.tgt: Mark v850 as multi-arched.
6234 * config/v850/tm-v850.h: Remove file.
6235 * config/v850/v850.mt: Eliminate TM_FILE.
6237 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6239 * v850-tdep.c: Full multi-arch.
6240 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6241 Define GDB_MULTI_ARCH to 2.
6243 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6245 * p-exp.y (current_type): New static variable.
6246 Carries the type of the expression at the position that is parsed.
6247 (push_current_type, pop_current_type): Two new functions. Used
6248 to store/restore current_type in expression on specific tokens.
6249 (search_field): New static variable. Set to one after parsing a point
6250 as at that point only a FIELDNAME token should be searched.
6251 (FIELDNAME): New token. After a point only a token belonging to
6252 current_type type definition is allowed.
6253 (all over token rules): reset and change current_type according
6255 (exp '[' rule): insert implicit array index field if
6256 exp is a pascal string type.
6258 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6260 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6261 frame info. Use frame_info's saved_regs instead of matching member
6262 in extra_frame_info throughout.
6263 (v850_frame_init_saved_regs): New function.
6264 (v850_init_extra_frame_info): Move most functionality into
6265 v850_frame_init_saved_regs().
6266 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6267 (v850_frame_find_saved_regs): Remove declaration.
6268 (FRAME_FIND_SAVED_REGS): Remove definition.
6269 (v850_frame_init_saved_regs): Add declaration.
6270 (FRAME_INIT_SAVED_REGS): Add definition.
6272 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6274 * v850-tdep.c: Begin multi-arch'ing v850.
6275 (v850_target_architecture_hook): Remove function.
6276 (v850_gdbarch_init): New function. Add code previously in
6277 v850_target_architecture_hook().
6278 (_initialize_v850_tdep): Don't set target_architecture_hook.
6279 Call register_gdbarch_init() instead.
6281 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6283 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6284 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6285 (fixup_class_method_type): Likewise.
6287 2002-05-15 Jim Blandy <jimb@redhat.com>
6289 Add macro structures to GDB's symbol tables. Nobody puts anything
6291 * symtab.h (struct symtab): New member: `macro_table'.
6292 * buildsym.h (pending_macros): New global variable.
6293 * buildsym.c: #include "macrotab.h".
6294 (buildsym_init): Initialize `pending_macros'.
6295 (end_symtab): If we found macro information while reading a CU's
6296 debugging info, do build a symtab structure for it. Make the
6297 symtab point to the macro information, and clear the
6298 `pending_macros' pointer which held it while we were reading the
6300 (really_free_pendings): Free any pending macro table.
6301 * objfiles.h (struct objfile): New member: `macro_cache'.
6302 * objfiles.c (allocate_objfile): Set allocate and free functions
6303 for the macro cache's objstack.
6304 (free_objfile): Empty the macro cache's obstack.
6305 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6306 set new allocate and free functions for it.
6307 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6308 free functions for the macro cache's objstack. (Why is this
6309 function building its own objfile?)
6310 * symmisc.c (print_objfile_statistics): Print statistics on the
6312 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6314 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6316 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6317 (REGISTER_U_ADDR): Delete definition.
6318 (arm_register_u_addr): Delete declaration.
6320 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6322 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6323 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6325 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6327 * regcache.c (register_valid): Revise comments refering to "Not
6328 available" and "unavailable".
6329 * frame.c (frame_register_read): Ditto.
6330 * findvar.c (value_of_register): Ditto.
6332 2002-05-15 Andrew Cagney <cagney@redhat.com>
6334 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6335 (remote-sim.o): Update dependencies.
6336 (d10v-tdep.o): Specify dependencies.
6337 (sim_d10v_h): Define.
6339 2002-05-14 Jim Blandy <jimb@redhat.com>
6341 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6342 * macrotab.c (macro_lookup_inclusion, find_definition,
6343 new_macro_table): Same.
6345 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6346 not `! strcmp ()'. This is a dubious improvement.
6347 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6349 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6350 although it's not necessary, to avoid a warning.
6352 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6354 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6355 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6356 TYPE_INSTANCE_FLAGS.
6357 (struct main_type): New.
6358 (struct type): Move most members to struct main_type. Change
6359 cv_type and as_type to new type_chain member. Add instance_flags.
6360 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6361 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6362 (finish_cv_type): Remove prototype.
6363 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6365 (alloc_type_instance): New function.
6366 (smash_type): New function.
6367 (make_pointer_type, make_reference_type, make_function_type)
6368 (smash_to_member_type, smash_to_method_type): Call smash_type.
6369 (make_qualified_type): New function.
6370 (make_type_with_address_space): Call make_qualified_type.
6371 (make_cv_type): Likewise.
6372 (finish_cv_type): Remove unnecessary function.
6373 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6374 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6375 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6376 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6377 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6378 * hpread.c (hpread_read_struct_type): Likewise.
6379 * stabsread.c (read_struct_type): Likewise.
6381 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6383 * configure.tgt: Add a catch all sh* target, for cases like
6384 sh[2,3,4]-elf and sh-hms.
6386 2002-05-14 Keith Seitz <keiths@redhat.com>
6388 * event-loop.c (create_file_handler): Don't do anything but
6389 update data when we are given a fd which we are already
6392 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6394 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6395 (update_context): Use __func__ in warnings.
6397 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6399 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6400 and tcp_close to net_open and net_close.
6401 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6402 using UDP if requested. Don't try to disable Nagle on UDP
6404 * remote.c (remote_serial_open): New function. Warn about UDP.
6405 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6407 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6409 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6411 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6413 * configure.tgt: Remove sh-hms target.
6414 * MAINTAINERS: Don't list sh-hms as a separate target.
6416 2002-05-13 Jim Blandy <jimb@redhat.com>
6418 Add first preprocessor macro-expansion files.
6419 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6420 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6421 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6422 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6423 (COMMON_OBS): Add macrotab.o, macroexp.o.
6424 (macroexp.o, macrotab.o): New rules.
6426 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6428 * config/m88k/tm-m88k.h: Update copyright.
6429 (m88k_target_write_pc): Declare
6430 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6431 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6432 (SHIFT_INST_REGS): Update definition.
6433 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6434 using old definition of TARGET_WRITE_PC.
6435 * regcache.c (generic_target_write_pc): Delete code handling
6437 * gdbarch.sh (NNPC_REGNUM): Delete.
6438 * gdbarch.h, gdbarch.c: Regenerate.
6440 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6442 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6445 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6447 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6448 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6449 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6451 * c-typeprint.c (cp_type_print_method_args): Likewise.
6452 (c_type_print_args): Likewise.
6453 * d10v-tdep.c (d10v_push_arguments): Likewise.
6454 (d10v_extract_return_value): Likewise.
6455 * expprint.c (print_subexp): Likewise.
6456 * gdbtypes.c (lookup_primitive_typename): Likewise.
6457 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6458 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6459 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6460 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6461 (TYPE_VECTOR): Likewise.
6462 * hpread.c (hpread_read_struct_type)
6463 (fix_static_member_physnames, fixup_class_method_type)
6464 (hpread_type_lookup): Likewise.
6465 * mdebugread.c (parse_symbol, parse_type): Likewise.
6466 * p-lang.c (is_pascal_string_type): Likewise.
6467 * valops.c (hand_function_call): Likewise.
6468 * x86-64-tdep.c (classify_argument): Likewise.
6470 * hpread.c (hpread_read_function_type)
6471 (hpread_read_doc_function_type): Call replace_type.
6472 * dstread.c (create_new_type): Delete.
6473 (decode_dst_structure, process_dst_function): Call alloc_type.
6474 Use type access macros.
6476 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6478 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6479 the're not supported by the current architecture.
6480 (i387_fill_fxsave): Likewise.
6482 2002-05-12 Fred Fish <fnf@redhat.com>
6484 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6485 sect_index_xxx members to index the first slot in section_offsets
6486 if all of the section_offsets are zero.
6488 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6490 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6491 checked in with last change.
6493 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6495 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6496 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6499 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6501 * Makefile.in: Update dependencies.
6503 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6505 * language.c (local_hex_string_custom): Simplify. Do not depend
6506 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6508 * memattr.c (mem_info_command): Replace calls to
6509 longest_local_hex_string and longest_local_hex_string_custom.
6510 * buildsym.c (make_blockvector): Ditto.
6511 * solib.c (info_sharedlibrary_command): Ditto.
6512 * tracepoint.c (tracepoints_info): Ditto.
6513 * symtab.c (print_msymbol_info): Ditto.
6515 * language.c (local_hex_string): Delete.
6516 (local_hex_string_custom): Delete.
6517 (longest_local_hex_string): Rename to local_hex_string.
6518 (longest_local_hex_string_custom): Rename to
6519 local_hex_string_custom.
6520 * language.h (local_hex_string): Change parameter type to LONGEST.
6521 (local_hex_string_custom): Ditto.
6522 (longest_local_hex_string): Delete declaration.
6523 (longest_local_hex_string_custom): Ditto.
6525 * solib.c: Update copyright.
6526 * memattr.c: Update copyright.
6528 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6530 * arch-utils.h (legacy_register_to_value): Declare.
6531 (legacy_value_to_register): Declare.
6532 (legacy_convert_register_p): Declare.
6533 * arch-utils.c (legacy_register_to_value): New function.
6534 (legacy_value_to_register): New function.
6535 (legacy_convert_register_p): New function.
6537 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6538 (VALUE_TO_REGISTER): Define.
6539 (CONVERT_REGISTER_P): Define.
6540 * gdbarch.h, gdbarch.c: Regenerate.
6542 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6544 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6547 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6548 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6550 * Makefile.in: Update dependencies for valops.c.
6551 * valops.c: Include "gdb_assert.h".
6552 (typecmp): Skip THIS parameter to methods.
6553 (find_method_list): Remove static_memfuncp argument,
6554 update callers. Check for stub methods.
6555 (find_value_oload_method_list): Don't set *static_memfuncp.
6556 (find_overload_match): Don't check for stub methods. Assert
6557 that methods are not stubbed. Handle static methods.
6558 (value_find_oload_method_list): Remove static_memfuncp argument.
6559 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6560 to the argument list for static stub methods.
6561 * value.h (value_find_oload_method_list): Update prototype.
6563 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6565 * arch-utils.h (generic_register_size): Declare.
6566 (generic_register_raw_size, generic_register_virtual_size): Delete
6568 * arch-utils.c (generic_register_raw_size): Delete.
6569 (generic_register_size): New function.
6570 (generic_register_virtual_size): Delete.
6572 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6573 default generic_register_size.
6574 * gdbarch.h, gdbarch.c: Re-generate.
6576 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6577 register_virtual_size.
6578 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6581 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6583 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6584 * gdbarch.h, gdbarch.c: Regenerate.
6585 * gnu-v3-abi.c: Update copyright.
6586 (vtable_address_point_offset): Update.
6587 (gnuv3_rtti_type): Update.
6588 (gnuv3_baseclass_offset): Update.
6589 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6590 (init_fetch_link_map_offsets): Update.
6591 * remote.c (get_remote_state): Update.
6593 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6595 * TODO: Remove value_headof/value_from_vtable_info comment.
6596 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6597 * values.c (value_headof, value_from_vtable_info): Delete.
6598 * value.h (value_from_vtable_info): Delete prototype.
6600 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6602 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6603 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6605 (gdb_assert_h): Define.
6606 (gdb_wait_h): Define.
6607 (gdb_regex_h): Define.
6609 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6611 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6612 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6614 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6616 * nbsd-tdep.c: Fix comment.
6618 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6620 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6621 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6622 (nbsd-tdep.o): New dependency list.
6623 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6625 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6626 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6627 * nbsd-tdep.c: New file.
6628 * nbsd-tdep.h: New file.
6629 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6631 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6632 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6633 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6634 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6636 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6638 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6639 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6640 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6641 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6642 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6643 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6645 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6647 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6648 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6649 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6650 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6651 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6652 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6653 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6655 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6657 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6658 fetch_elfcore_registers to...
6659 * i386nbsd-tdep.c: ...here.
6660 (i386nbsd_use_struct_convention): Rename to...
6661 (i386nbsd_aout_use_struct_convention): ...this.
6662 (i386nbsd_supply_reg): New function.
6663 (i386nbsd_fill_reg): New function.
6664 (fetch_core_registers): Use i386nbsd_supply_reg.
6665 (fetch_elfcore_registers): Likewise.
6666 (_initialize_i386nbsd_tdep): New function.
6667 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6668 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6669 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6670 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6671 (i386nbsd_aout_use_struct_convention): ...this.
6673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6675 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6676 (store_inferior_registers): Use shnbsd_fill_reg.
6677 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6678 sh_nbsd_supply_register): Collapse into...
6679 (shnbsd_supply_reg): ...this.
6680 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6681 (shnbsd_fill_reg): ...this.
6682 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6683 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6684 (fetch_core_registers): Use shnbsd_supply_reg.
6685 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6686 (sh_nbsd_core_fns): Rename to...
6687 (shnbsd_core_fns): ...this.
6688 (sh_nbsd_elfcore_fns): Rename to...
6689 (shnbsd_elfcore_fns): ...this.
6690 (sh_nbsd_init_abi): Rename to...
6691 (shnbsd_init_abi): ...this.
6692 (_initialize_sh_nbsd_tdep): Rename to...
6693 (_initialize_shnbsd_tdep): ...this.
6694 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6695 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6696 sh_nbsd_fill_register): Remove prototypes.
6697 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6701 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6702 (i387-nat.o): Delete dependency list.
6703 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6704 (x86-64-linux-nat.o): Likewise.
6705 * i387-nat.c: Delete file, moving contents to...
6706 * i387-tdep.c: ...here.
6707 * i387-nat.h: Rename...
6708 * i387-tdep.h: ...to this.
6709 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6710 * i386-linux-nat.c: Likewise.
6711 * i386bsd-nat.c: Likewise.
6712 * i386gnu-nat.c: Likewise.
6713 * i386nbsd-nat.c: Likewise.
6714 * i386v4-nat.c: Likewise.
6715 * x86-64-linux-nat.c: Likewise.
6716 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6717 * config/i386/go32.mh (NATDEPFILES): Likewise.
6718 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6719 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6720 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6721 * config/i386/linux.mh (NATDEPFILES): Likewise.
6722 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6723 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6724 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6725 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6727 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6729 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6730 (alphanbsd-nat.o): Remove dependency list.
6731 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6732 * alphanbsd-nat.c: Delete. Contents moved to...
6733 * alphanbsd-tdep.c: ...here.
6734 (_initialize_alphanbsd_tdep): Register core functions.
6735 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6737 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6739 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6740 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6741 (alphanbsd-nat.o): Likewise.
6742 (alphabsd-tdep.o): New dependency list.
6743 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6744 (fill_gregset): Use alphabsd_fill_reg.
6745 (supply_fpregset): Use alphabsd_supply_fpreg.
6746 (fill_fpregset): Use alphabsd_fill_fpreg.
6747 (fetch_inferior_registers): Use struct reg and struct fpreg
6748 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6749 and alphabsd_supply_fpreg.
6750 (store_inferior_registers): Use struct reg and struct fpreg
6751 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6752 and alphabsd_fill_fpreg.
6753 * alphabsd-tdep.c: New file.
6754 * alphabsd-tdep.h: New file.
6755 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6756 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6757 alphabsd_supply_fpreg.
6758 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6759 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6761 2002-05-11 Eric Christopher <echristo@redhat.com>
6763 * mips-tdep.c (mips_double_register_type): Fix thinko.
6764 (mips_single_register_type): Ditto.
6765 * MAINTAINERS: Add self.
6767 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6769 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6770 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6771 right thing on architectures with different endianness and/or
6774 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6776 From Christian Limpach <chris@Pin.LU>
6777 * configure.in: Change sed expression which comments out
6778 NATDEPFILES to also comment out continuation lines.
6779 * configure: Regenerate.
6781 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6783 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6786 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6788 * sh-tdep.c: Include correct file.
6790 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6792 New support for sh64-elf (sh5) target.
6794 * configure.tgt: For sh64-elf target, default to sh-elf.
6796 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6797 (struct gdbarch_tdep): Add new fields for new registers and ABI
6800 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6801 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6802 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6803 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6804 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6805 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6806 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6807 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6808 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6809 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6810 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6811 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6812 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6813 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6814 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6815 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6816 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6817 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6818 sign_extend, sh64_nofp_frame_init_saved_regs,
6819 sh64_init_extra_frame_info, sh64_get_saved_register,
6820 sh64_extract_struct_value_address, sh64_pop_frame,
6821 sh64_push_arguments, sh64_extract_return_value,
6822 sh64_store_return_value, sh64_show_media_regs,
6823 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6824 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6825 sh_sh64_register_virtual_type,
6826 sh_sh64_register_convert_to_virtual,
6827 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6828 sh64_register_read, sh64_pseudo_register_write,
6829 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6830 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6831 sh64_do_pseudo_register, sh_compact_do_registers_info,
6832 sh64_do_registers_info, sh_gdbarch_init): New functions.
6834 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6836 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6838 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6840 * linespec.c (decode_line_1): Check for a double quote after
6841 a filename correctly.
6843 2002-05-10 Jim Blandy <jimb@redhat.com>
6845 Properly track the size of the current objfile's .debug_line section.
6846 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6847 (DWARF_LINE_SIZE): New macro.
6848 (dwarf2_build_psymtabs_hard): Record the line section's size in
6849 the partial symbol table.
6850 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6853 2002-05-10 Petr Sorfa <petrs@caldera.com>
6855 * ia64-tdep.c: Handle breakpoints on L instruction type
6856 in MLX instruction bundle by moving the breakpoint to
6857 the third slot (X instruction type) as L holds only data.
6859 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6861 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6862 (process_one_symbol): Complain about discarding local symbols
6863 due to a misplaced N_LBRAC entry.
6865 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6867 From Daniel Berlin <dan@cgsoftware.com>
6868 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6869 decrease the depth we are at, in the case of templates.
6871 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6873 * mips-tdep.c (mips_float_register_type): New function.
6874 (mips_double_register_type): New function.
6875 (mips_print_register): Use them.
6876 (do_fp_register_row): Likewise.
6878 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6880 * signals/signals.c (signals): Remove conditional compilation around
6881 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6882 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6884 2002-05-09 Michael Snyder <msnyder@redhat.com>
6886 * remote-rdp.c (remote_rdp_can_run): Remove.
6888 2002-05-09 Tom Tromey <tromey@redhat.com>
6890 * jv-valprint.c (java_val_print): Handle `char' as a special case
6893 2002-05-09 Michael Snyder <msnyder@redhat.com>
6895 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6896 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6897 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6898 str r(0123),[sp,#nn].
6899 (arm_skip_prologue): Ditto. Also make disassembly
6900 order-independent by placing it in a loop.
6902 2002-05-06 Michael Snyder <msnyder@redhat.com>
6904 * stabsread.c (read_type): Add recognition for new attribute:
6905 "@V;" means that an array type is actually a vector.
6906 This is analogous to the vector flag that's been added to dwarf2.
6908 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6910 * i386-tdep.h (i386_abi): New enum.
6911 (struct gdbarch_tdep): Replace os_ident member with abi.
6912 (i386_gdbarch_register_os_abi): New prototype.
6913 * i386-tdep.c (i386_abi_names): New array.
6914 (process_note_abi_tag_sections): Removed.
6915 (process_note_sections): New function.
6916 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6917 (struct i386_abi_handler): New struct.
6918 (i386_abi_handler_list): New variable.
6919 (i386_gdbarch_register_os_abi): New function.
6920 (i386_gdbarch_init): Adapt for the changes given above.
6922 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6924 * gregset.h: Say "GNU/Linux".
6926 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6928 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6929 (build_gdbtypes): Build builtin_type_v2_float.
6930 (_initialize_gdbtypes): Register new builtin type.
6932 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6934 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6935 (clear_gdbarch_swap): New function.
6936 (initialize_non_multiarch): Call.
6937 (gdbarch_update_p): Before calling init(), swap out and clear the
6938 existing architecture.
6939 * gdbarch.c: Regenerate.
6941 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6943 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6946 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6948 * sh-nbsd-nat.c: Rename to...
6949 * shnbsd-nat.c: ...this.
6950 * sh-nbsd-tdep.c: Rename to...
6951 * shnbsd-tdep.c: ...this.
6952 * sh-nbsd-tdep.h: Rename to...
6953 * shnbsd-tdep.h: ...this.
6954 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6955 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6957 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6959 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6960 concatenation for command help messages.
6962 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6964 * NEWS: Note new sh*-*-netbsdelf* configuration.
6965 * configure.host: Set gdb_host_cpu to sh for all sh*.
6966 (sh*-*-netbsdelf*): New host.
6967 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6968 (sh*-*-netbsdelf*): New target.
6969 * sh-nbsd-nat.c: New file.
6970 * sh-nbsd-tdep.c: New file.
6971 * sh-nbsd-tdep.h: New file.
6972 * config/sh/nbsd.mh: New file.
6973 * config/sh/nbsd.mt: New file.
6974 * config/sh/nm-nbsd.h: New file.
6975 * config/sh/tm-nbsd.h: New file.
6977 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6979 * sh-tdep.c (sh_osabi_names): Declare.
6980 (process_note_abi_tag_sections): New function.
6981 (get_elfosabi): Ditto.
6982 (sh_gdbarch_register_os_abi): Ditto.
6983 (sh_dump_tdep): Ditto.
6984 _initialize_sh_tdep): Use gdbarch_register to register
6985 sh_gdbarch_init and sh_dump_tdep.
6986 * config/sh/tm-sh.h (sh_osabi): Declare.
6987 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6989 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6991 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6992 (thumb_scan_prologue): Ditto.
6993 (arm_find_callers_reg): Ditto.
6994 (arm_frame_chain): Ditto.
6995 (arm_init_extra_frame_info): Ditto.
6996 (arm_frame_saved_pc): Ditto.
6997 (arm_pop_frame): Ditto.
6998 (arm_push_return_address): New function.
6999 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7000 call_dummy_location, call_dummy_breakpoint_offset_p,
7001 call_dummy_breakpoint_offset, call_dummy_p,
7002 call_dummy_stack_adjust_p, call_dummy_words,
7003 sizeof_call_dummy_words, call_dummy_start_offset,
7004 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7005 call_dummy_address, push_return_address and push_dummy_frame for
7006 generic dummy frames.
7008 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7011 size computation for alloca.
7012 (sh_fp_frame_init_saved_regs): Likewise.
7014 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7016 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7017 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7018 * arm-tdep.c (arm_store_return_value): Use them.
7019 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7020 * remote-rdp.c (remote_rdp_fetch_register): Use
7021 ARM_MAX_REGISTER_RAW_SIZE.
7022 (remote_rdp_store_register): Likewise.
7024 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7026 * dwarf2cfi.c: Code cleanup, removed unused variables,
7027 added default labels to switch {} statements.
7028 * x86-64-tdep.c: Ditto.
7029 * x86-64-linux-nat.c: Ditto.
7031 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7033 * solib.h: Protect against multiple inclusion.
7035 2002-05-06 Jim Blandy <jimb@redhat.com>
7037 Add first preprocessor macro-expansion files.
7038 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7039 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7040 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7041 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7042 (COMMON_OBS): Add macrotab.o, macroexp.o.
7043 (macroexp.o, macrotab.o): New rules.
7045 Separate the job of reading the line number info statement program
7046 header (...expialidocious) out into its own function.
7047 * dwarf2read.c (struct line_head, struct filenames, struct
7048 directories): Replace with...
7049 (struct line_header): New structure, containing the full
7050 contents of the statement program header, including the
7051 include directory and file name tables.
7052 (read_file_scope): If we have line number info, instead of just
7053 calling dwarf_decode_lines to do all the work, call
7054 dwarf_decode_line_header first to get a `struct line_header'
7055 containing the data in the statement program header, and then
7056 pass that to dwarf_decode_lines, which will pick up where that
7057 left off. Be sure to clean up the `struct line_header' object.
7058 (dwarf_decode_line_header, free_line_header, add_include_dir,
7059 add_file_name): New functions.
7060 (dwarf_decode_lines): Move all the code to read the statement
7061 program header into dwarf_decode_line_header. Take the line
7062 header it built as the first argument, instead of the offset to
7063 the compilation unit's line number info. Use the new `struct
7064 line_header' type instead of the old structures. No need to do
7065 cleanups here now, since we don't allocate anything.
7066 (dwarf2_statement_list_fits_in_line_number_section,
7067 dwarf2_line_header_too_long): New complaints.
7069 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7071 * gdbtypes.c (init_vector_type): New function.
7072 (build_builtin_type_vec128): Simplify the representation of SIMD
7074 (build_gdbtypes): Initialize new builtin vector types.
7075 (_initialize_gdbtypes): Register new vector types with gdbarch.
7076 (builtin_type_v4_float, builtin_type_v4_int32,
7077 builtin_type_v8_int16, builtin_type_v16_int8,
7078 builtin_type_v2_int32, builtin_type_v4_int16,
7079 builtin_type_v8_int8): New (renamed) SIMD types.
7081 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7083 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7084 (i387_fill_fxsave): Likewise.
7086 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7088 * alpha-tdep.c (alpha_extract_return_value): Don't use
7089 non-constant array size in prototype.
7091 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7093 From Brian Taylor <briant at model dot com>:
7094 * ui-out.c (ui_out_field_core_addr): Use the function
7095 longest_local_hex_string_custom'to format addresses > 32 bits
7098 * ui-out.c (ui_out_field_core_addr): Update comment.
7100 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7102 * stack.c (select_and_print_frame): Make static. Delete the
7104 (func_command): Update call.
7105 (select_frame_command): Delete code computing the frame level.
7106 * frame.h (select_and_print_frame): Delete declaration.
7108 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7110 * sparc-tdep.c (sparc_get_saved_register): Comment why
7111 get_prev_frame call is safe.
7113 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7115 * frame.h (select_frame): Delete level parameter.
7116 * stack.c (select_frame): Update. Use frame_relative_level to
7117 obtain the frame's level.
7118 (select_and_print_frame): Update call.
7119 (select_frame_command): Ditto.
7120 (up_silently_base): Ditto.
7121 (down_silently_base): Ditto.
7122 * ocd.c (ocd_start_remote): Ditto.
7123 * remote-rdp.c (remote_rdp_open): Ditto.
7124 * remote-mips.c (mips_initialize): Ditto.
7125 (common_open): Ditto.
7126 * remote-e7000.c (e7000_start_remote): Ditto.
7127 * m3-nat.c (select_thread): Ditto.
7128 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7129 (child_get_current_exception_event): Ditto.
7130 * varobj.c (varobj_create): Ditto.
7131 (varobj_update): Ditto.
7132 (c_value_of_root): Ditto.
7133 * tracepoint.c (finish_tfind_command): Ditto.
7134 * corelow.c (core_open): Ditto.
7135 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7136 * thread.c (info_threads_command): Ditto.
7137 (switch_to_thread): Ditto.
7138 * infrun.c (normal_stop): Ditto.
7139 (restore_selected_frame): Ditto.
7140 (restore_inferior_status): Ditto.
7141 * breakpoint.c (insert_breakpoints): Ditto.
7142 (watchpoint_check): Ditto.
7143 (bpstat_stop_status): Ditto.
7144 (do_enable_breakpoint): Ditto.
7145 * blockframe.c (flush_cached_frames): Ditto.
7146 (reinit_frame_cache): Ditto.
7148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7150 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7153 2002-05-04 Jim Blandy <jimb@redhat.com>
7155 * gdbtypes.c (replace_type): Doc fix.
7157 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7159 * valprint.c (strcat_longest): Delete commented out function.
7162 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7164 * MAINTAINERS: Mark a29k as deleted.
7165 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7166 Move new configurations to the top.
7167 * configure.tgt: Remove a29k.
7168 * config/a29k/tm-vx29k.h: Delete.
7169 * config/a29k/vx29k.mt: Delete.
7170 * config/a29k/tm-a29k.h: Delete.
7171 * config/a29k/a29k-udi.mt: Delete.
7172 * config/a29k/a29k.mt: Delete.
7173 * a29k-tdep.c: Delete.
7174 * remote-udi.c: Delete.
7175 * remote-mm.c: Delete.
7176 * remote-eb.c: Delete.
7177 * remote-adapt.c: Delete.
7178 * Makefile.in: Remove obsolete code.
7179 * config/s390/s390x.mt: Ditto.
7180 * config/s390/s390.mt: Ditto.
7181 * config/sparc/sparclynx.mh: Ditto.
7182 * config/sparc/linux.mh: Ditto.
7183 * config/pa/hppaosf.mh: Ditto.
7184 * config/pa/hppabsd.mh: Ditto.
7185 * config/ns32k/nbsd.mt: Ditto.
7186 * config/mips/vr5000.mt: Ditto.
7187 * config/m68k/sun3os4.mh: Ditto.
7188 * config/m68k/nbsd.mt: Ditto.
7189 * config/m68k/m68klynx.mh: Ditto.
7190 * config/m32r/m32r.mt: Ditto.
7191 * config/i386/x86-64linux.mt: Ditto.
7192 * config/i386/nbsdelf.mt: Ditto.
7193 * config/i386/nbsd.mt: Ditto.
7194 * config/i386/i386lynx.mh: Ditto.
7196 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7198 * target.c (debug_print_register): New function. Handle oversize
7200 (debug_to_fetch_registers): Call.
7201 (debug_to_store_registers): Call.
7203 2002-05-03 Jim Blandy <jimb@redhat.com>
7205 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7206 (read_type): Doc fix.
7207 * gdbtypes.c (replace_type): Doc fix.
7209 * stabsread.c (multiply_defined_struct): New complaint.
7210 (read_struct_type): If the type we were passed isn't empty, or
7211 incomplete, don't read the new struct type into it; complain,
7212 and return the original type unchanged. Take a new `type_code'
7213 argument, which is the type code for the new type.
7214 (read_type): Rather than storing the type's type code here, pass
7215 it as an argument to read_struct_type, and let that take care of
7216 storing it. That way, we don't overwrite the original type code,
7217 so read_struct_type can use it to decide whether we're overwriting
7218 something we shouldn't.
7219 (complain_about_struct_wipeout): New function.
7221 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7223 * gdbarch.sh: Assert that gdbarch is non-NULL.
7224 * gdbarch.c: Regenerate.
7226 2002-05-03 Jason Merrill <jason@redhat.com>
7228 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7231 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7233 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7234 (x86_64_dwarf2gdb_regno_map_length),
7235 (x86_64_dwarf2_reg_to_regnum): Added.
7236 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7237 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7238 (_initialize_x86_64_tdep): Synced with the change above.
7239 (x86_64_skip_prologue): Reformulated message.
7241 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7243 * f-exp.y: Also use new prev_lexptr variable
7244 to improve error reporting. Based on Michael Snyder
7245 2002-04-24 dated patch to c-exp.y.
7246 * jv-exp.y: Likewise.
7247 * m2-exp.y: Likewise.
7249 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7251 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7252 we are dealing with vectors.
7254 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7256 * config/m68k/tm-nbsd.h: Obvious fix,
7257 correct machine name.
7259 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7261 * p-typeprint.c (pascal_type_print_base): Add support
7262 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7264 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7266 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7267 for fondamental pascal 'char' type.
7269 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7271 * p-lang.h (is_pascal_string_type): Declaration changed,
7272 new sixth argument of type char ** added.
7273 * p-lang.c (is_pascal_string_type): Implementation
7274 changed. Args length_pos, length_size, string_pos, char_size
7275 can now be NULL. New argument arrayname set to the field
7276 name of the char array. Return value set to char array
7277 field index plus one.
7278 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7279 is_pascal_string_type function.
7281 2002-05-02 Andrew Cagney <cagney@redhat.com>
7283 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7284 <cagney@redhat.com> change.
7285 * gdbarch.c: Regenerate.
7287 2002-05-02 Andrew Cagney <cagney@redhat.com>
7289 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7290 before probing for a new one. Detect errorenous gdbarch_init
7292 * gdbarch.c: Regenerate.
7294 2002-05-01 Andrew Cagney <cagney@redhat.com>
7296 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7297 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7298 * config/v850/tm-v850.h: Ditto. Update copyright.
7300 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7302 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7305 2002-04-30 Michael Snyder <msnyder@redhat.com>
7307 * arm-tdep.c: Whitespace clean-ups.
7308 (arm_skip_prologue): Fix thinko; two lines
7309 should have been removed as part of 4/24 change.
7311 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7313 * rs6000-tdep.c: Added comment describing how fpscr register
7314 numbers were chosen.
7316 2002-04-30 Michael Snyder <msnyder@redhat.com>
7318 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7320 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7322 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7323 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7324 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7326 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7328 From Louis Hamilton <hamilton@redhat.com>:
7329 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7330 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7331 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7332 not bfd-private xcoff data, to determine wordsize.
7333 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7335 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7337 GDB 5.2 released from 5.2 branch.
7339 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7341 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7342 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7343 (x86_64_register_info_table): Added comments with register numbers.
7345 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7347 * rs6000-tdep.c (rs6000_extract_return_value,
7348 rs6000_store_return_value): Handle returning vectors.
7349 (rs6000_gdbarch_init): Use
7350 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7351 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7353 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7355 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7356 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7358 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7360 * hpread.c (hpread_psymtab_to_symtab_1,
7361 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7362 with fprintf_unfiltered (gdb_stderr,...).
7364 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7366 * remote-array.c (printf_monitor, write_monitor,
7367 array_insert_breakpoint, array_remove_breakpoint ):
7368 Replace fprintf (stderr,...
7369 with fprintf_unfiltered (gdb_stderr,....
7370 * remote-es.c: Likewise.
7371 * remote-os9k.c: Likewise.
7372 * remote-st.c: Likewise.
7374 2002-04-28 Andreas Schwab <schwab@suse.de>
7376 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7377 linux-proc.o and gcore.o.
7379 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7381 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7382 code without frame pointers.
7384 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7386 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7389 2002-04-26 Ben Elliston <bje@redhat.com>
7391 * target.c (do_xfer_memory): Correct reference to the new option
7392 "trust-readonly-sections".
7394 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7396 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7397 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7398 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7400 (read_array_type): Record the fact that this array type is really a
7401 vector (i.e. are passed in by value).
7403 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7405 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7406 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7407 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7408 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7409 * alpha-linux-tdep.c: Include frame.h.
7410 (alpha_linux_sigcontext_addr): New function.
7411 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7412 alpha_linux_sigcontext_addr.
7413 * alpha-osf1-tdep.c: Include gdbcore.h.
7414 (alpha_osf1_sigcontext_addr): New function.
7415 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7416 alpha_osf1_sigcontext_addr.
7417 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7418 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7420 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7422 * stack.c (selected_frame_level):
7423 (select_frame): Do not set selected_frame_level.
7424 * frame.h (selected_frame_level): Delete declaration.
7426 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7429 convert_from_func_ptr-addr when AIX / PowerOpen.
7431 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7433 * valops.c (hand_function_call): Call
7434 generic_save_call_dummy_addr.
7435 * frame.h (generic_save_call_dummy_addr): Declare.
7436 * blockframe.c (struct dummy_frame): Add fields call_lo and
7438 (generic_find_dummy_frame): Check for PC in range call_lo to
7439 call_hi instead of entry_point_address.
7440 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7441 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7442 (generic_save_call_dummy_addr): New function.
7444 2002-04-24 David S. Miller <davem@redhat.com>
7446 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7447 sparc_skip_prologue.
7448 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7449 information to find prologue when possible.
7450 (sparc_prologue_frameless_p): Call examine_prologue directly.
7451 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7452 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7454 (SKIP_PROLOGUE): Likewise.
7456 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7458 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7459 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7460 indicate that the condition it was testing is always true.
7461 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7462 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7463 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7465 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7467 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7468 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7469 tdep->jb_pc and tdep->jb_elt_size.
7470 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7471 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7472 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7473 * alpha-nat.c (get_longjmp_target): Remove.
7474 (JB_ELEMENT_SIZE): Ditto.
7476 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7477 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7478 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7479 to alpha_get_longjmp_target.
7480 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7481 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7482 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7484 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7486 * README: Update to GDB 5.2.
7488 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7490 * gdbarch.sh (LC_ALL): Set to `c'.
7492 2002-04-25 Theodore A. Roth <troth@verinet.com>
7494 * avr-tdep.c: Ran through gdb_indent.sh.
7496 2002-04-25 Theodore A. Roth <troth@verinet.com>
7498 * MAINTAINERS: Add myself as AVR maintainer.
7499 * NEWS: Note new target avr.
7501 2002-04-25 Theodore A. Roth <troth@verinet.com>
7503 * Makefile.in: Add support for AVR target.
7504 * configure.tgt: Add support for AVR target.
7505 * avr-tdep.c: New file
7506 * config/avr/avr.mt: New file.
7508 2002-04-25 Theodore A. Roth <troth@verinet.com>
7510 * MAINTAINERS: Add myself to write-after-approval.
7512 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7514 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7515 with fprintf_unfiltered (gdb_stderr,....
7517 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7520 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7522 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7524 * p-exp.y: Also use new prev_lexptr variable
7525 to improve error reporting. Based on Michael Snyder
7526 2002-04-24 dated patch to c-exp.y.
7528 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7530 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7531 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7532 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7534 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7536 (FUNCTION_START_OFFSET): Remove.
7537 (BREAKPOINT): Ditto.
7539 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7541 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7544 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7546 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7547 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7548 alpha_linux_pc_in_sigtramp.
7549 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7550 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7551 alpha_osf1_pc_in_sigtramp.
7552 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7553 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7554 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7555 alphafbsd_pc_in_sigtramp.
7556 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7557 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7558 alphanbsd_pc_in_sigtramp.
7559 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7560 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7562 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7564 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7566 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7568 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7570 (alphanbsd-nat.o): New dependency list.
7571 (alphanbsd-tdep.o): Ditto.
7572 * NEWS: Note new native NetBSD/alpha configuration.
7573 * alphanbsd-nat.c: New file.
7574 * alphanbsd-tdep.c: Ditto.
7575 * configure.host (alpha*-*-netbsd*): New host.
7576 * configure.tgt (alpha*-*-netbsd*): New target.
7577 * config/alpha/nbsd.mh: New file.
7578 * config/alpha/nbsd.mt: Ditto.
7579 * config/alpha/nm-nbsd.h: Ditto.
7580 * config/alpha/tm-nbsd.h: Ditto.
7582 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7584 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7585 (alpha-osf1-tdep.o): New dependency list.
7586 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7587 and skip_sigtramp_frame members.
7588 * alpha-linux-tdep.c: Include gdbcore.h.
7589 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7590 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7591 * alpha-osf1-tdep.c: New file.
7592 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7594 (alpha_frame_past_sigtramp_frame): New function.
7595 (alpha_dynamic_sigtramp_offset): Ditto.
7596 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7597 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7598 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7599 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7600 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7601 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7602 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7603 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7604 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7605 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7606 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7607 to find_solib_trampoline_target.
7608 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7609 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7610 (SKIP_TRAMPOLINE_CODE): Remove.
7611 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7612 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7613 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7614 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7615 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7616 (PROC_SIGTRAMP_MAGIC): Ditto.
7617 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7618 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7619 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7620 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7621 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7623 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7625 * NEWS: Note that Alpha targets are now multi-arch.
7627 2002-04-24 Michael Snyder <msnyder@redhat.com>
7629 * parser-defs.h (prev_lexptr): New external variable.
7630 * parse.c (parse_exp_1): Set prev_lexptr to null before
7631 calling the language-specific parser.
7632 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7633 (yyerror): Use prev_lexptr in error reporting.
7635 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7637 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7638 * gregset.h: If FILL_FPXREGSET is defined, provide
7639 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7640 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7641 is defined, call fill_fpxregset.
7643 2002-04-24 Roland McGrath <roland@frob.com>
7645 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7646 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7647 (supply_gregset, supply_fpregset): New functions.
7649 * gnu-nat.c (gnu_find_memory_regions): New function.
7650 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7651 (gnu_xfer_memory): Add a cast.
7653 2002-04-24 Michael Snyder <msnyder@redhat.com>
7655 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7656 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7657 of argument regs ("str r(0123), [r11, #-nn"]).
7658 (arm_skip_prologue): Better handling for frameless functions.
7659 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7660 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7662 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7664 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7665 NUM_PSEUDO_REGS can be used.
7667 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7669 * arch-utils.h: Update copyright.
7671 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7672 * gdbarch.h, gdbarch.c: Re-generate.
7674 * inferior.h (IN_SIGTRAMP): Delete definition.
7675 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7676 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7678 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7679 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7680 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7681 (find_proc_framesize): Ditto.
7682 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7683 (alpha_init_extra_frame_info): Ditto.
7684 * infrun.c (handle_inferior_event): Ditto.
7685 (handle_inferior_event): Ditto.
7686 (check_sigtramp2): Ditto.
7687 * blockframe.c (create_new_frame): Ditto.
7688 (get_prev_frame): Ditto.
7689 * ppc-linux-tdep.c: Update comments.
7690 * i386-linux-tdep.c: Update comments.
7691 * breakpoint.c (bpstat_what): Update comment.
7693 2002-04-24 David S. Miller <davem@redhat.com>
7695 * i960-tdep.c (register_in_window_p): New function.
7696 (i960_find_saved_register): Use it instead of
7697 REGISTER_IN_WINDOW_P.
7698 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7700 * symtab.h (find_stab_function_addr): Kill extern.
7701 * minsyms.c (find_stab_function_addr): Remove from here...
7702 * dbxread.c: ... to here, and mark it static.
7704 2002-04-20 David S. Miller <davem@redhat.com>
7706 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7707 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7709 2002-04-21 David S. Miller <davem@redhat.com>
7711 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7712 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7713 (vx_write_register): Likewise.
7715 2002-04-23 J. Brobecker <brobecker@gnat.com>
7717 * source.c (is_regular_file): New function.
7718 (openp): Check wether file to open is a regular file
7719 to avoid opening directories.
7721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7723 * findvar.c (extract_signed_integer): Cast printf argument
7724 to suppress format warning.
7725 (extract_unsigned_integer): Likewise.
7726 * infcmd.c (registers_info): Likewise.
7727 * top.c (get_prompt_1): Likewise.
7728 * valops.c (value_assign): Likewise.
7729 * valprint.c (print_decimal): Likewise.
7731 2002-04-22 H.J. Lu (hjl@gnu.org)
7733 * c-exp.y (typebase): Support
7735 [long|long long|short] [signed|unsigned] [int|]
7739 signed [long|long long|short] int
7741 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7743 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7745 * vax-tdep.h: New file.
7746 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7747 Make several routines static.
7748 (vax_get_saved_register): New function.
7749 (vax_gdbarch_init): New function.
7750 (_initialize_vax_tdep): Register vax_gdbarch_init.
7751 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7752 Remove macros now under the control of gdbarch.
7754 2002-04-22 Michael Snyder <msnyder@redhat.com>
7756 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7757 Some whitespace and coding standards tweaks.
7759 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7761 * vax-tdep.c: Include regcache.h.
7762 (vax_call_dummy_words): New.
7763 (sizeof_vax_call_dummy_words): New.
7764 (vax_fix_call_dummy): New function.
7765 (vax_saved_pc_after_call): Ditto.
7766 * config/vax/tm-vax.h: Don't include regcache.h.
7767 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7768 (CALL_DUMMY): Remove.
7769 (CALL_DUMMY_WORDS): Define.
7770 (SIZEOF_CALL_DUMMY_WORDS): Define.
7771 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7773 2002-04-18 Michael Snyder <msnyder@redhat.com>
7775 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7777 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7779 * vax-tdep.c (vax_frame_chain): New function.
7780 (vax_push_dummy_frame): Ditto.
7781 (vax_pop_frame): Ditto.
7782 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7783 (FRAMELESS_FUNCTION_INVOCATION): Use
7784 generic_frameless_function_invocation_not.
7785 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7786 (POP_FRAME): Use vax_pop_frame.
7788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7790 * vax-tdep.c (vax_store_struct_return): New function.
7791 (vax_extract_return_value): Ditto.
7792 (vax_store_return_value): Ditto.
7793 (vax_extract_struct_value_address): Ditto.
7794 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7795 vax_store_struct_return.
7796 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7797 (STORE_RETURN_VALUE): Use vax_store_return_value.
7798 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7800 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7802 * vax-tdep.c (vax_frame_saved_pc): New function.
7803 (vax_frame_args_address_correct): Ditto.
7804 (vax_frame_args_address): Ditto.
7805 (vax_frame_locals_address): Ditto.
7806 (vax_frame_num_args): Move code to be in proximity to
7807 other frame-related functions.
7808 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7809 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7810 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7811 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7812 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7814 2002-04-22 H.J. Lu (hjl@gnu.org)
7816 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7819 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7821 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7822 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7823 (FRAME_INIT_SAVED_REGS): New macro.
7825 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7827 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7829 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7831 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7833 (fetch_osf_core_registers): Likewise.
7834 (supply_gregset): Likewise.
7836 2002-04-22 J. Brobecker <brobecker@gnat.com>
7838 * symfile.h (get_section_index): Define.
7839 * symfile.c (get_section_index): New function.
7840 * mdebugread.c (SC_IS_SBSS): New macro.
7841 (SC_IS_BSS): Return true for the scBss storage class only, as
7842 the scSBss storage class refers to the .sbss section.
7843 (parse_partial_symbols): Discard the symbols which associated
7844 section does not exist.
7845 Make sure to use the .sbss section index for symbols which
7846 storage class is scBss, rather than using the .bss section index.
7848 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7850 * vax-tdep.c: Update copyright years.
7851 (vax_register_name): New function.
7852 (vax_register_byte): Ditto.
7853 (vax_register_raw_size): Ditto.
7854 (vax_register_virtual_size): Ditto.
7855 (vax_register_virtual_type): Ditto.
7856 * config/vax/tm-vax.h: Update copyright years.
7857 (REGISTER_NAMES): Remove.
7858 (REGISTER_NAME): Define.
7859 (REGISTER_BYTE): Use vax_register_byte.
7860 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7861 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7862 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7864 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7866 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7868 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7870 2002-04-21 David S. Miller <davem@redhat.com>
7872 * arch-utils.c (generic_prologue_frameless_p): Kill
7873 SKIP_PROLOGUE_FRAMELESS_P code.
7874 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7876 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7877 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7878 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7880 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7881 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7882 (sparc_gdbarch_init): Pass it to
7883 set_gdbarch_prologue_frameless_p.
7885 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7887 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7888 (alphabsd-nat.o): New dependency list.
7890 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7892 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7894 (alpha-linux-tdep.o): New dependency list.
7895 (alphafbsd-tdep.o): Likewise.
7897 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7899 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7901 * alpha-tdep.c: ...from here.
7902 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7904 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7906 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7907 prototype from here...
7908 * alpha-tdep.h: ...to here.
7910 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7912 * frame.h (selected_frame_level): Document as deprecated.
7913 (frame_relative_level): Declare.
7914 * stack.c (frame_relative_level): New function.
7915 (selected_frame_level): Document as deprecated.
7916 (select_frame): Do not set the selected_frame_level.
7918 * stack.c (frame_info, record_selected_frame): Update.
7919 (frame_command, current_frame_command): Update.
7920 (up_silently_base, up_command, down_silently_base): Update.
7921 (down_command): Update.
7922 * inflow.c (kill_command): Update.
7923 * tracepoint.c (finish_tfind_command): Update.
7924 * corelow.c (core_open): Update.
7925 * thread.c (info_threads_command): Update.
7926 (do_captured_thread_select): Update.
7927 * infcmd.c (finish_command): Update.
7928 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7932 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7934 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7936 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7939 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7941 * alphafbsd-tdep.c: Update copyright years. Include
7943 (alphafbsd_use_struct_convention): Make static.
7944 (alphafbsd_init_abi): New function.
7945 (_initialize_alphafbsd_tdep): New function.
7946 * config/alpha/tm-fbsd.h: Update copyright years.
7947 (USE_STRUCT_CONVENTION): Remove.
7949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7951 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7952 an Alpha ABI variant.
7953 (alpha_abi_handler_list): Declare.
7954 (alpha_gdbarch_register_os_abi): New function.
7955 (alpha_gdbarch_init): Give registered ABI variant handlers a
7956 chance to tweak the gdbarch once we have set up defaults.
7957 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7959 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7961 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7962 to standard_coerce_float_to_double.
7963 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7967 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7968 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7969 from gdbarch_tdep rather than a constant.
7970 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7971 the default text address for all Alpha Unix ABIs.
7972 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7973 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7977 * alpha-tdep.h: New file. Includes several Alpha target constants
7979 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7980 let gdbarch deal with.
7981 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7982 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7984 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7985 Alpha target register names.
7986 * alphabsd-nat.c: Likewise.
7987 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7988 Alpha target register names. Make serveral routines static.
7989 (alpha_get_saved_register): New function.
7990 (alpha_abi_names): New.
7991 (process_note_abi_tag_sections): New function.
7992 (get_elfosabi): New function.
7993 (alpha_gdbarch_init): New function.
7994 (alpha_dump_tdep): New function.
7995 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7997 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7999 * frame.c (find_saved_register): Delete #ifdef
8000 HAVE_REGISTER_WINDOWS code.
8001 * config/sparc/tm-sparc.h: Update comments.
8002 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8004 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8006 * i960-tdep.c (i960_find_saved_register): New function.
8007 (i960_get_saved_register): New function.
8008 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8009 (i960_get_saved_register): Declare.
8010 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8012 2002-04-20 David S. Miller <davem@redhat.com>
8014 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8016 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8018 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8019 instead of NUM_PSEUDO_REGS.
8021 2002-04-20 David S. Miller <davem@redhat.com>
8023 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8024 GDB_MULTI_ARCH_PARTIAL
8025 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8026 define, let tm-sp64.h do it.
8028 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8030 * frame.c (find_saved_register): Avoid a NULL pointer
8031 dereference and actually walk the frame list.
8033 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8035 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8036 sorted in most most-recent-used order. Document.
8037 * gdbarch.h, gdbarch.c: Regenerate.
8039 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8041 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8043 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8044 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8045 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8048 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8051 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8052 (build_builtin_type_vec128): Ditto.
8053 (append_composite_type_field): Fix calculation of type length in
8056 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8058 * config/djgpp/README: Update.
8060 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8063 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8065 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8066 (alpha_setup_arbitrary_frame): ...to this.
8067 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8068 for alpha_setup_arbitrary_frame.
8070 2002-04-18 Andrew Cagney <cagney@redhat.com>
8072 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8073 * gdbarch.h, gdbarch.c: Regenerate.
8075 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8076 * target.h (memory_breakpoint_from_pc): Update declaration.
8077 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8079 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8080 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8081 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8082 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8083 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8084 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8085 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8086 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8087 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8088 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8089 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8090 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8092 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8094 * monitor.c (monitor_insert_breakpoint): Ditto.
8095 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8097 * config/mcore/tm-mcore.h: Update copyright.
8098 * mem-break.c: Ditto.
8099 * xstormy16-tdep.c: Ditto.
8101 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8103 * p-exp.y: Add precedence rule for '^' token.
8104 This removes the shift/reduce conflicts.
8105 Remove the comment concerning these shift/reduce conflicts.
8107 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8109 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8110 (registers_powerpc_nofp): New register set for processors
8111 without floating point unit.
8113 2002-04-18 David S. Miller <davem@redhat.com>
8115 * MAINTAINERS: Add myself to write-after-approval.
8117 2002-04-17 Michael Snyder <msnyder@redhat.com>
8119 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8121 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8123 * rs6000-tdep.c (frame_initial_stack_address): Use
8124 frame_register_read to read the alloca_reg.
8126 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8128 * frame.c (find_saved_register): Find saved registers in the next
8132 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8134 * gdbarch.sh (LANG): Set to ``c''.
8136 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8138 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8140 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8142 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8145 * hpread.c (hpread_get_lntt): Add declaration.
8146 Also fix PR gdb/391.
8148 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8150 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8151 * aclocal.m4, configure: Re-generate.
8154 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8156 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8157 instead of tm_print_insn.
8159 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8161 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8163 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8165 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8166 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8167 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8169 2002-04-12 Don Howard <dhoward@redhat.com>
8171 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8172 max_user_call_depth.
8173 (init_cmd_lists): Initialize the new value;
8174 * cli/cli-script.c (execute_user_command): Limit the call depth of
8175 user defined commands. This avoids a core-dump when user commands
8176 are infinitly recursive.
8178 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8180 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8181 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8182 from tdep struct instead of DEFAULT_LR_SAVE.
8183 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8184 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8185 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8187 2002-04-12 Michael Snyder <msnyder@redhat.com>
8189 * Remote.c: Spelling fix.
8190 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8191 If no symbol found for "sbrk", try "_sbrk".
8192 (make_output_phdrs): Use bfd_section_name.
8193 (gcore_copy_callback): Use bfd_section_name.
8194 * eval.c: Indentation fix-ups.
8195 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8196 in case it gets applied to an address that is already
8197 in the instruction space.
8198 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8199 * symfile.c: Fix indentation, long lines.
8200 * source.c: White space fix-up.
8202 2002-04-12 Andrew Cagney <cagney@redhat.com>
8204 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8205 * frame.c (frame_register_read): New function. Return non-zero on
8207 (read_relative_register_raw_bytes_for_frame): Delete.
8208 (read_relative_register_raw_bytes): Delete.
8209 * frame.h (frame_register_read): Declare.
8210 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8212 * infcmd.c (do_registers_info): Ditto.
8213 * hppa-tdep.c: Ditto.
8214 * rs6000-tdep.c: Ditto.
8215 * h8500-tdep.c: Ditto.
8216 * mips-tdep.c: Ditto.
8217 * h8300-tdep.c: Ditto.
8218 * z8k-tdep.c: Ditto.
8220 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8222 From Jimi X <jimix@watson.ibm.com>:
8223 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8226 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8228 From Jimi X <jimix@watson.ibm.com>:
8229 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8232 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8234 From Jimi X <jimix@watson.ibm.com>:
8235 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8236 register sets for these processor variants.
8238 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8240 * regformats/reg-ppc.dat: Support FPSCR.
8242 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8244 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8245 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8246 Add fpscr as an invalid/unfetchable register.
8247 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8248 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8249 (fill_fpregset): Add support for register fpscr.
8250 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8251 (fill_gregset): Account for the fact that register ``mq'' might
8253 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8254 (registers_power): Add fpscr to register set at slot 71.
8255 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8256 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8258 2002-04-11 Michael Snyder <msnyder@redhat.com>
8260 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8261 * configure: Regenerate.
8262 * config.in: Regenerate.
8263 * acconfig.h: Add define for _SYSCALL32.
8264 * core-sol2.c: Remove #define _SYSCALL32.
8265 * solib-legacy.c: Remove #define _SYSCALL32.
8267 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8269 * stack.c (select_frame): Cleanup internal error message, do not
8272 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8274 * stack.c (select_frame): Check that selected_frame and the
8275 specified level are as expected.
8276 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8278 * frame.h (struct frame_info): Add field `level'. Update
8280 Work-in-progress PR gdb/464.
8282 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8284 * maint.c (maint_print_section_info): Rename print_section_info.
8285 (print_bfd_section_info, print_objfile_section_info): Update.
8286 * inferior.h (struct gdbarch): Add opaque declaration.
8287 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8288 * gdbarch.h: Regenerate.
8290 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8292 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8293 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8294 (kernel_u_size): Added.
8295 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8296 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8298 2002-04-04 Jim Ingham <jingham@apple.com>
8300 * valarith.c (find_size_for_pointer_math): New function, either returns
8301 the size for a pointer's target, returns 1 for void *, or errors for
8303 (value_add, value_sub): use find_size_for_pointer_math.
8305 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8307 * linux-low.c (linux_look_up_symbols): New hook.
8308 (linux_target_ops): Add linux_look_up_symbols.
8309 * remote-utils.c (decode_address): New function.
8310 (look_up_one_symbol): New function.
8311 * server.c (handle_query): Call target look_up_symbols hook.
8312 * server.h (look_up_one_symbol): Add prototype.
8313 * target.h (struct target_ops): Add look_up_symbols hook.
8315 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8317 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8318 override FP_REGNUM with frame->fp. Update copyright.
8319 * parse.c (num_std_regs, std_regs): Delete.
8320 (target_map_name_to_register): Do not search std_regs. Update
8321 function description.
8322 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8323 declarations. Update copyright.
8326 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8328 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8329 after the last symbol in a block.
8331 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8333 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8334 is non zero as a found symbol.
8336 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8338 * findvar.c: Include "builtin-regs.h".
8339 (value_of_register): Call value_of_builtin_reg when applicable.
8340 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8341 (target_map_name_to_register): Call
8342 builtin_reg_map_name_to_regnum.
8343 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8344 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8345 (builtin_regs_h): Define.
8346 (builtin-regs.o): New target.
8347 (findvar.o): Add $(builtin_regs_h).
8348 * builtin-regs.c, builtin-regs.h: New files.
8349 * std-regs.c: New file.
8350 Partial fix for PR gdb/251.
8352 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8354 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8355 it's no longer required.
8357 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8359 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8361 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8363 From Jimi X <jimix@watson.ibm.com>:
8364 * rs6000-tdep.c (rs6000_software_single_step): Use
8365 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8366 and size. Use target_insert_breakpoint() and
8367 target_remove_breakpoint() to insert and remove breakpoints
8368 instead of explicit memory reads and writes.
8370 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8372 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8373 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8374 ELF_OBJECT_FORMAT ifdef.
8376 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8378 From Jimi X <jimix@watson.ibm.com>:
8379 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8381 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8383 From Jimi X <jimix@watson.ibm.com>:
8384 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8385 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8387 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8389 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8390 s/asprintf/xasprintf/.
8391 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8393 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8395 I believe Jeff Law denies responsability for this one:
8396 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8397 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8398 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8399 Work-around for PR gdb/366.
8401 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8403 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8404 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8405 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8407 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8409 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8410 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8413 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8415 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8418 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8420 * README (Reporting Bugs in GDB): Document the bug web page as the
8421 prefered way of submitting bugs.
8424 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8426 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8428 * gdbarch.h, gdbarch.c: Re-generate.
8430 2002-04-07 Andreas Schwab <schwab@suse.de>
8432 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8433 buffer to regcache_collect.
8435 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8437 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8438 * gdbarch.c, gdbarch.h: Re-generate.
8440 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8442 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8443 declaration. Fix -Werror.
8445 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8447 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8448 * gdbarch.c: Regenerate.
8450 2002-04-05 Michael Snyder <msnyder@redhat.com>
8452 * breakpoint.c (clear_command): Rewrite middle section to
8453 combine two loops with identical control conditions.
8454 Add a cleanup to eliminate a memory leak.
8455 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8457 2002-04-05 H.J. Lu (hjl@gnu.org)
8459 * solib-svr4.c (bkpt_names): Add "__start".
8461 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8463 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8464 as test for 64 bit target.
8466 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8468 * h8500-tdep.c (h8500_write_fp): Delete function.
8469 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8470 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8471 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8473 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8474 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8476 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8477 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8478 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8479 (d10v_write_fp): Delete function.
8480 * inferior.h (write_fp, generic_target_write_fp): Delete
8482 * regcache.c (generic_target_write_fp): Delete function.
8483 (write_fp): Delete function.
8484 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8485 * gdbarch.h, gdbarch.c: Regenerate.
8486 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8487 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8488 (sparc64_write_fp): Delete declaration.
8489 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8490 (h8500_write_fp): Delete declaration.
8492 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8494 * sparc-tdep.c (sparc64_write_fp): Delete.
8495 (sparc_push_dummy_frame): Replace write_fp call with code to store
8497 (sparc_gdbarch_init): Do not initialize write_fp.
8499 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8501 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8504 2002-03-29 Jim Blandy <jimb@redhat.com>
8506 * stack.c (get_selected_block): Add new argument `addr_in_block',
8507 used to return the exact code address we used to select the block,
8509 * blockframe.c (get_frame_block, get_current_block): Same.
8510 * frame.h (get_frame_block, get_current_block,
8511 get_selected_block): Update declarations.
8512 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8513 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8515 2002-04-05 Michael Snyder <msnyder@redhat.com>
8517 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8520 2002-04-05 J. Brobecker <brobecker@gnat.com>
8522 * utils.c (xfullpath): New function.
8523 * defs.h (xfullpath): Add declaration.
8524 * source.c (openp): Use xfullpath in place of gdb_realpath to
8525 avoid resolving the basename part of filenames when the
8526 associated file is a symbolic link. This fixes a potential
8527 inconsistency between the filenames known to GDB and the
8528 filenames it prints in the annotations.
8529 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8530 to be able to match a filename with either the real filename, or
8531 the name of any symbolic link to this file.
8532 (lookup_partial_symtab): Ditto.
8534 2002-04-04 Michael Snyder <msnyder@redhat.com>
8536 * breakpoint.c: Add support for hardware breakpoints in overlays.
8537 (overlay_events_enabled): New state variable.
8538 (insert_breakpoints): Use overlay_events_enabled to decide
8539 whether to attempt to set a breakpoint at the overlay load addr.
8540 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8541 (remove_breakpoint): Use overlay_events_enabled to decide
8542 whether breakpoints need to be removed from overlay load addr.
8543 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8544 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8545 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8546 disable_overlay_breakpoints): Update overlay_events_enabled.
8548 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8550 * dwarf2read.c (struct function_range): New.
8551 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8552 (check_cu_functions): New.
8553 (read_file_scope): Initialize global function lists.
8554 Call dwarf_decode_line after processing children.
8555 (read_func_scope): Add to global function list.
8556 (dwarf_decode_lines): Call check_cu_functions everywhere
8557 record_line is called. Call record_line with a linenumber
8558 of 0 to mark sequence ends.
8560 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8562 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8563 change sync with glibc.
8565 2002-04-03 Jim Blandy <jimb@redhat.com>
8567 * configure.in: Call AC_C_INLINE.
8568 * configure: Regenerated.
8570 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8572 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8573 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8575 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8577 * NEWS: Mention gcore support on FreeBSD/i386.
8579 * fbsd-proc.c: New file.
8580 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8581 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8583 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8586 2002-03-29 Jim Blandy <jimb@redhat.com>
8588 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8589 unescaped newlines in string literals, but newer ones don't. So
8592 2002-03-26 Michael Snyder <msnyder@redhat.com>
8593 Andrew Cagney <cagney@redhat.com>
8595 * cli/cli-dump.c: New file. Dump memory to file,
8596 restore file to memory.
8597 * cli/cli-dump.h: New file.
8598 * Makefile.in: Add rules, dependencies for cli-dump.o.
8599 * NEWS: Mention new commands.
8601 2002-03-28 Michael Snyder <msnyder@redhat.com>
8603 * symfile.c (symbol_file_add): Move test for null symbols to later.
8605 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8607 From veksler at il.ibm.com:
8608 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8609 the xstrduped original path.
8612 2002-03-27 Michael Snyder <msnyder@redhat.com>
8614 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8615 * infcmd.c (_initialize_infcmd): Ditto.
8616 * language.c (_initialize_language): Ditto.
8617 * symfile.c (_initialize_symfile): Ditto.
8618 * top.c (_init_main): Ditto.
8619 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8621 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8623 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8624 vector registers handling.
8625 (skip_prologue): Handle new AltiVec instructions. Fill in new
8626 fields of frame data.
8627 (frame_get_saved_regs): Fill in information for AltiVec registers.
8629 2002-03-27 Jim Blandy <jimb@redhat.com>
8631 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8632 a function; leave this macro here to invoke that function.
8633 (symbol_init_mangled_name): Declaration for that function.
8634 * symtab.c (symbol_init_mangled_name): New function.
8636 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8638 * valarith.c: Replace strerror with safe_strerror.
8639 * tracepoint.c: Ditto.
8641 * go32-nat.c: Ditto.
8645 2002-03-27 Andreas Schwab <schwab@suse.de>
8647 * event-top.c (command_line_handler): Remove useless if.
8649 2002-03-27 Andreas Jaeger <aj@suse.de>
8651 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8654 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8656 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8657 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8658 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8659 (x86_64_linux_dr_get_status, supply_gregset),
8660 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8661 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8662 (x86_64_register_info_table): Add.
8663 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8664 (x86_64_register_raw_size, x86_64_register_virtual_type),
8665 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8666 general x86_64_register_info_table.
8667 (i386_gdbarch_init): gdbarch_register_bytes is now set
8668 dynamicaly during initialization.
8669 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8670 * gdbserver/linux-x86-64-low.c: Ditto.
8672 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8674 * gdbserver/server.c (main): Call target_signal_to_host_p
8675 and target_signal_to_host on signals received from the remote.
8676 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8677 target_signal_from_host on signals sent to the remote.
8678 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8679 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8681 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8683 * signals/signals.c: Include "server.h" in gdbserver build.
8684 (target_signal_from_name): Don't use STREQ.
8685 (_initialize_signals): Likewise. Don't include function in
8688 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8690 * signals.c: Moved to...
8691 * signals/signals.c: Here.
8692 * Makefile (signals.o): Update.
8694 2002-03-26 Jeff Law (law@redhat.com)
8696 * somread.c (som_symtab_read): Remove some commented out code and
8697 updated related comments. Do not set the minimal symbol table to
8698 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8699 in a dynamic executable.
8700 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8701 where we are unable to find the minimal symbol for the given
8704 2002-03-25 Jeff Law (law@redhat.com)
8706 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8708 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8710 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8712 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8714 * command.h: Update copyright.
8715 (struct cmd_list_element): Replace definition with opaque
8717 (enum cmd_types): Document that it will eventually be moved to
8719 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8720 (MALLOCED_REPLACEMENT): Delete macro.
8721 * Makefile.in (cli_decode_h): Add $(command_h).
8722 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8723 * top.c: Include "cli/cli-decode.h".
8724 * completer.c: Include "cli/cli-decode.h".
8725 * maint.c: Include "cli/cli-decode.h".
8726 * cli/cli-decode.h: Include "command.h".
8727 (enum command_class): Delete.
8728 (enum cmd_types): Comment out.
8729 (enum cmd_auto_boolean): Delete.
8730 (enum var_types): Delete.
8732 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8734 * cli/cli-decode.c: Include "gdb_assert.h".
8735 (add_set_or_show_cmd): New static function.
8736 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8737 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8738 all fields, such as func, from the set command.
8740 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8742 * MAINTAINERS (sh-elf): Change warning flag to -w.
8744 2002-03-23 Andrew Cagney <cagney@redhat.com>
8746 * defs.h (error): Add printf format attribute.
8747 * thread-db.c (thread_from_lwp): Fix error format string.
8748 * stack.c (parse_frame_specification): Ditto.
8749 * cli/cli-decode.c (undef_cmd_error): Ditto.
8750 * scm-lang.c (scm_lookup_name): Ditto.
8751 * tracepoint.c (trace_error): Ditto.
8752 * remote-utils.c (usage): Ditto.
8753 * remote.c (compare_sections_command): Ditto.
8756 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8758 * gdbtypes.c (append_composite_type_field): New function.
8759 (init_composite_type): New function.
8760 * gdbtypes.h (append_composite_type_field): Declare.
8761 (init_composite_type): Ditto.
8763 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8765 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8767 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8768 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8769 structure returning convention for SYSV ABI case, but not
8770 for GNU/Linux, FreeBSD, or NetBSD.
8772 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8774 * symtab.h (lookup_block_symbol): Add mangled_name argument
8777 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8778 with new mangled_name argument.
8779 * linespec.c (decode_line_1): Likewise.
8780 * valops (value_of_this): Likewise.
8781 * symtab.c (lookup_transparent_type): Likewise.
8782 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8783 (lookup_symbol): If we are given a mangled name, pass it down
8784 to lookup_symbol_aux.
8785 (lookup_block_symbol): If we are given a mangled name to check
8786 against, only return symbols which match it.
8788 2002-03-22 Christopher Faylor <cgf@redhat.com>
8790 * win32-nat.c (child_create_inferior): Check for proper shell to use
8791 here, in case the user changes it on the fly.
8792 (_initialize_inftarg): Remove shell path considerations.
8794 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8796 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8797 for gdbarch_max_register_raw_size and max_register_virtual_size.
8798 Adjust copyright year.
8800 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8802 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8803 in a function to cover the entire beginning of the function
8804 as well if it does not already.
8806 2002-03-21 Tom Rix <trix@redhat.com>
8808 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8809 (rs6000_ptrace64): Renamed from ptrace64.
8811 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8813 * gdbserver/remote-utils.c (remote_open): Don't call
8814 getprotobyname, we're all using TCP here so just use
8816 * gdbserver/gdbreplay.c (remote_open): Ditto.
8818 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8820 * regcache.c (_initialize_regcache): No need to call
8821 build_regcache() at this time; it gets called whenever
8822 the gdbarch changes.
8824 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8826 * sparc-nat.c: Include sys/param.h where possible.
8828 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8831 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8832 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8833 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8835 * stabsread.c (rs6000_builtin_type): Likewise.
8836 (read_sun_floating_type): Likewise.
8838 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8840 * stabsread.c (read_member_functions): Remove skip code for duplicate
8841 constructor/destructor methods. Use standard parsing for these
8842 methods and just do not chain them to the list of methods after
8845 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8847 * coffread.c: Remove redundant static declarations. Replace
8848 occurrences of `PTR' with `void *'.
8849 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8850 * top.h (quit_cover): Likewise.
8851 * defs.h (catch_errors): Likewise.
8853 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8855 * defs.h (XMALLOC): Define.
8856 * gdb-events.sh (XMALLOC): Delete macro.
8857 * gdb-events.c, gdb-events.h: Regenerate.
8858 * gdbarch.sh (XMALLOC): Delete macro.
8859 * gdbarch.c: Regenerate.
8860 * serial.c (XMALLOC): Delete macro.
8861 * ui-file.c (XMALLOC): Ditto.
8862 * ser-unix.h (XMALLOC): Ditto.
8863 * sh-tdep.c (XMALLOC): Ditto.
8864 * ui-out.c (XMALLOC): Ditto.
8865 * utils.c (XMALLOC): Ditto.
8866 * i386-tdep.c (XMALLOC): Ditto.
8867 * gdb-events.c (XMALLOC): Ditto.
8868 * d10v-tdep.c (XMALLOC): Ditto.
8869 * cli-out.c (XMALLOC): Ditto.
8871 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8872 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8873 * ui-file.c, ui-out.c: Ditto.
8875 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8877 * command.h (struct cmd_list_element): Add field context.
8878 (set_cmd_context, get_cmd_context): Declare.
8879 * cli/cli-decode.h: Ditto.
8880 * cli/cli-decode.c (get_cmd_context): New function.
8881 (set_cmd_context): New function.
8882 (add_cmd): Initialize context.
8883 Part of fixing PR gdb/145 and PR gdb/146.
8885 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8887 * cli/cli-decode.c (cmd_type): New function.
8888 * command.h (cmd_type): Declare.
8889 * infrun.c (set_schedlock_func): Call function cmd_type.
8890 * kod.c (kod_set_os): Call cmd_type.
8891 * cris-tdep.c (cris_version_update): Use function cmd_type.
8892 (cris_mode_update, cris_abi_update): Ditto.
8894 * command.h: (execute_cmd_post_hook): Declare.
8895 (execute_cmd_pre_hook): Declare.
8896 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8897 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8898 functions. Execute pre/post hook while ensuring that afterwords
8900 * top.c (execute_command): Use execute_cmd_post_hook, and
8901 execute_cmd_pre_hook to execute pre/post commands.
8902 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8904 (hook_stop_stub): Call execute_cmd_pre_hook.
8906 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8908 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8909 set'' and this leads to a core dump. Move xstrdup of
8910 operating_system to after check that it is not NULL.
8912 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8914 * kod.c (kod_set_os): Remove unnecessary check that
8915 ``command->type'' is set_cmd.
8917 * valprint.c (set_input_radix): Use input_radix.
8918 (set_output_radix): Use output_radix.
8919 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8922 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8924 * value.h (struct value): Delete field ``substring_addr''. Change
8925 aligner fields to force_doublest_align, force_longest_align,
8926 force_core_addr_align and force_pointer_aligh.
8928 * value.h (struct value): Fix typo in above change.
8930 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8932 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8933 to fix internal_error from ``maintenance print architecture''.
8935 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8937 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8938 for gcc versions after gcc-2.8.1.
8940 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8942 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8943 for method resolution. Restore adjustment of ``this'' pointer after
8944 calling value_struct_elt, which was accidentally removed during the
8947 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8949 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8951 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8953 * value.h (value_of_register): Update.
8955 2002-03-14 Richard Henderson <rth@redhat.com>
8957 * configure.in: Detect declaration for canonicalize_file_name.
8958 * utils.c (canonicalize_file_name): Declare, if needed.
8959 (gdb_realpath): Prefer realpath if available and usable.
8960 * config.in, configure: Rebuild.
8962 2002-03-14 Richard Henderson <rth@redhat.com>
8964 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8965 a constant array bound.
8967 * MAINTAINERS: Add myself to write-after-approval.
8969 2002-03-14 Michael Snyder <msnyder@redhat.com>
8971 * symfile.c (syms_from_objfile): Return immediately if no syms.
8972 (symbol_file_add): Return immediately if no syms.
8973 (find_sym_fns): Return immediately if no syms.
8975 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8977 * gdbserver/remote-util.c (remote_open): Print remote-side's
8978 IP address when remote debugging over the network.
8980 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8982 * config/sparc/fbsd.mh: Fix copyright.
8983 * config/sparc/fbsd.mt: Likewise.
8985 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8987 * MAINTAINERS: Fix typo in name of gdb warnings option.
8988 (x86-64): Fix formating so that this can be parsed by awk.
8990 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8992 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8993 * defs.h: Include "gdb/signals.h".
8994 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8996 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8998 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8999 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9002 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9003 Don Howard <dhoward@redhat.com>
9005 * mips-tdep.c (ST0_FR): Define.
9006 (mips2_fp_compat): New function, temporarily disabled.
9007 (mips_read_fp_register_single): New function.
9008 (mips_read_fp_register_double): New function.
9009 (mips_print_register): Use them.
9010 (do_fp_register_row): Likewise.
9012 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9014 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9017 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9019 * stabsread.c (read_member_functions): Fix is_stub test for
9020 static member functions, improve comment.
9022 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9024 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9025 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9026 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9027 commands that set boolean values.
9028 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9029 (arm_rdi_resume): Always initialize PC.
9030 (arm_rdi_open): Don't use rslt as a boolean.
9031 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9032 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9033 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9034 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9036 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9038 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9039 * configure: Rebuilt.
9041 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9043 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9044 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9046 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9048 * cli/cli-decode.c (set_cmd_completer): New function.
9049 * command.h (set_cmd_completer): Declare.
9050 * cli/cli-decode.h (set_cmd_completer): Ditto.
9052 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9053 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9054 * win32-nat.c (_initialize_inftarg): Ditto.
9055 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9056 * proc-api.c (_initialize_proc_api): Ditto.
9057 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9058 * source.c (_initialize_source): Ditto.
9059 * exec.c (_initialize_exec): Ditto.
9060 * solib.c (_initialize_solib): Ditto.
9061 * top.c (init_main): Ditto.
9062 * tracepoint.c (_initialize_tracepoint): Ditto.
9063 * symfile.c (_initialize_symfile): Ditto.
9064 * printcmd.c (_initialize_printcmd): Ditto.
9065 * infcmd.c (_initialize_infcmd): Ditto.
9066 * corefile.c (_initialize_core): Ditto.
9068 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9070 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9072 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9074 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9076 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9078 * NEWS: Update headings, 5.2 has branched.
9080 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9082 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9083 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9084 (register_addr, REGISTER_RAW_SIZE): Likewise.
9085 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9086 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9088 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9090 * MAINTAINERS (x86-64): Add myself.
9091 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9092 changed value_ptr -> struct value *
9094 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9096 * configure.host (sparc64-*-freebsd): Add.
9097 * configure.tgt: Likewise.
9098 * config/sparc/fbsd.mh: New file.
9099 * config/sparc/fbsd.mt: Likewise.
9100 * config/sparc/nm-fbsd.h: Likewise.
9101 * config/sparc/tm-fbsd.h: Likewise.
9103 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9105 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9106 regformats/reg-s390x.dat.
9108 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9110 * utils.c: Add FIXME explaining true/false problem.
9112 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9114 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9116 2002-02-28 Michael Chastain <mec@shout.net>
9118 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9120 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9122 * gdbserver/linux-s390-low.c: New file.
9123 * regformats/reg-s390.dat: New file.
9124 * regformats/reg-s390x.dat: New file.
9125 * gdbserver/configure.srv: Add S/390.
9126 * gdbserver/Makefile.in: Add S/390.
9127 * configure.tgt: Enable gdbserver for S/390.
9129 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9131 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9132 first line of the doc string for "info dos", except at the end of
9133 the sentence, since the short help stops at the first period.
9135 2002-02-28 Jason Merrill <jason@redhat.com>
9137 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9139 2002-02-27 Fred Fish <fnf@redhat.com>
9141 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9142 comment (dumy -> dummy).
9144 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9146 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9148 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9150 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9152 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9154 * gdbserver/acconfig.h: New file.
9155 * gdbserver/i387-fp.c: New file.
9156 * gdbserver/i387-fp.h: New file.
9157 * gdbserver/linux-x86-64.c: New file.
9158 * regformats/reg-x86-64.dat: New file.
9159 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9160 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9161 * gdbserver/configure.in: Add support for regsets.
9162 * gdbserver/config.in: Regenerate.
9163 * gdbserver/configure: Regenerate.
9164 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9165 * gdbserver/linux-low.h: New file.
9166 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9168 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9169 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9170 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9171 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9172 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9173 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9174 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9175 "i387-fp.h". Add PTRACE_GETREGS and friends.
9176 * gdbserver/regcache.c (supply_register): New function.
9177 (supply_register_by_name): New function.
9178 (collect_register): New function.
9179 (collect_register_by_name): New function.
9181 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9183 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9184 (config.status): Add configure.srv dependency.
9185 (server_h): Add config.h dependency.
9187 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9189 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9190 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9191 * gdbserver/configure.srv: Change i386-*-linux* to use
9194 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9196 * x86-64-tdep.c: Re-indent. Update copyright date.
9198 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9200 From Michal Ludvig <mludvig@suse.cz>:
9201 * x86-64-tdep.c (value.h): Delete.
9202 (gdb_assert.h): Include.
9203 (x86_64_register_convert_to_virtual,
9204 x86_64_register_convert_to_raw ): Add check which lets only
9205 floating-point values to be converted.
9206 (value_push): Delete.
9207 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9208 (i386_gdbarch_init): Number of register_bytes fixed.
9210 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9212 * MAINTAINERS: Add x86-64 target.
9214 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9216 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9217 * osfsolib.c (solib_map_sections): Ditto.
9218 * irix5-nat.c (solib_map_sections): Ditto.
9219 * corelow.c (gdb_check_format): Ditto.
9220 * symfile.c (symfile_bfd_open): Ditto.
9221 * solib.c (solib_map_sections): Ditto.
9224 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9226 * remote.c (_initialize_remote): By default, disable ``e'' and
9227 ``E'' step out-of-range packets.
9229 2002-02-26 Andreas Schwab <schwab@suse.de>
9231 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9232 m68k_linux_frame_saved_pc.
9233 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9235 (SIGCONTEXT_PC_OFFSET): Remove.
9236 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9237 m68k_linux_sigtramp_saved_pc): New functions.
9238 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9239 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9240 (UCONTEXT_PC_OFFSET): Define.
9241 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9242 non-RT and RT signal trampolines.
9244 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9246 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9247 (TARGET_NBPG, STACK_END_ADDR): Delete
9248 (VARIABLES_INSIDE_BLOCK): Delete.
9250 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9252 * utils.c (perror_with_name): Make string parameter constant.
9253 (print_sys_errmsg): Ditto.
9255 * defs.h (perror_with_name): Update.
9256 (print_sys_errmsg): Update.
9259 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9261 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9262 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9264 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9266 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9267 if it already matches the current architecture from the exec file.
9268 Include arch-utils.h for gdbarch_info_init prototype.
9269 * Makefile.in (rs6000-nat.o): Update dependencies.
9271 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9273 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9274 list of exported variables.
9276 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9278 * gdbserver/configure.srv: New file.
9279 * gdbserver/configure.in: Use configure.srv instead
9280 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9282 * gdbserver/configure: Regenerated.
9283 * gdbserver/terminal.h: New file.
9284 * gdbserver/Makefile.in: Update for configure changes. Remove
9285 more unneeded include paths.
9287 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9289 From wiz at danbala:
9290 * config/sparc/tm-sp64.h: Fix grammar and typos.
9293 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9295 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9296 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9297 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9298 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9299 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9300 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9301 * s390-tdep.c: Ditto.
9302 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9303 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9304 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9305 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9306 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9307 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9308 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9309 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9310 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9311 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9314 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9316 * lin-thread.c: Delete file.
9317 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9318 to gdb_proc_service.h.
9319 * configure: Re-generate.
9321 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9322 * serial.c (serial_open): Delete check for "ocd".
9325 * Makefile.in (linux-thread.o): Delete target.
9326 * linux-thread.c: Delete file.
9328 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9329 renamed SH files to be consistent.
9331 * symtab.c (sort_search_symbols): Use xfree.
9333 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9335 * arm-linux-tdep.c (arm_linux_init_abi): Register
9336 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9337 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9338 definition with undef, since we don't want the sysvr4 definition.
9339 (SKIP_TRAMPOLINE_CODE): Likewise.
9341 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9343 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9345 * configure.in: (AC_CHECK_FUNCS) Added test for
9346 canonicalize_file_name Regenerated.
9347 * config.in, configure: Regenerated.
9348 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9349 defined use canonicalize_file_name.
9351 2002-02-23 Michael Chastain <mec@shout.net>
9353 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9355 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9357 * README: Remove references to cygnus.com.
9358 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9359 dot com'' form. Remove references to cygnus.com and sourceware.
9361 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9363 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9364 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9365 1003.1-2001 no longer allows "head -1".
9366 * gdb/Makefile.in (version.c): Likewise.
9367 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9368 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9369 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9371 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9373 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9374 * command.h (cmd_cfunc_eq): Declare.
9375 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9377 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9378 ``struct cmd_list_element *''.
9379 * cli/cli-cmds.c (is_complete_command): Update. Use
9381 * top.c (execute_command): Pass the command to
9382 is_complete_command.
9383 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9385 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9387 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9388 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9389 architecture defines.
9390 * s390-tdep.c (s390_gdbarch_init): Likewise.
9392 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9394 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9395 (arm_linux_push_arguments): Likewise.
9396 (arm_linux_init_abi): Register them. Also register linux-specific
9398 (find_minsym_and_objfile): Use strcmp, not STREQ.
9399 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9400 (arm_linux_call_dummy_words): Delete declaration.
9401 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9402 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9404 (LOWEST_PC): Delete.
9406 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9408 * maint.c (print_section_info): Do not prepend `0x' to filepos
9409 output, it will be handled by local_hex_string_custom.
9411 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9413 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9414 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9415 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9417 2002-02-22 Jim Blandy <jimb@redhat.com>
9419 Indicate that the bcache functions don't change the strings
9421 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9422 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9424 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9426 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9428 2002-02-21 Christopher Faylor <cgf@redhat.com>
9430 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9431 find the complete path to a loaded DLL.
9433 2002-02-21 Fred Fish <fnf@redhat.com>
9435 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9436 that marks the end of the range of a function, enter a line number
9437 entry that has a line number of zero and a PC offset that matches
9438 the end of the function. This starts a range of PC's for which no
9439 line number information is known.
9440 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9441 PC's for which no line number info is found (line number is zero)
9442 then we didn't find any valid line information.
9443 * symtab.h: Document use of zero line number entry.
9445 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9447 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9448 (have_ptrace_getvrregs): Define for run time checks.
9449 (gdb_vrregset_t): New type for Altivec register handling.
9450 (fetch_register, store_register): Fetch/store altivec register
9452 (fetch_altivec_register, store_altivec_register): New functions.
9453 (supply_vrregset, fill_vrregset): New functions.
9454 (fetch_altivec_registers, store_altivec_registers): New functions.
9455 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9458 2002-02-21 Jiri Smid <smid@suse.cz>
9460 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9462 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9464 * Makefile.in (armnbsd-nat.o): Update dependencies.
9465 * armnbsd-nat.c (supply_gregset): New function. Common code to
9466 supply the integer register set.
9467 (supply_fparegset): New function. Similar for FPA registers.
9468 (fetch_regs, fetch_fp_regs): Use them.
9469 (fetch_core_registers): Likewise.
9470 (fetch_elfcore_registers): New function.
9471 (arm_netbsd_elfcore_fns): New core-file type specification.
9472 (_initialize_arm_netbsd_nat): Register it.
9474 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9476 * armnbsd-nat.c: Include gdbcore.h.
9477 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9478 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9479 'void' to declaration, to shut up ARI.
9480 (fetch_core_registers): Make static. Rewrite using supply_register.
9481 (arm_netbsd_core_fns): New core-file type specification.
9482 (_initialize_arm_netbsd_nat): New function.
9484 2002-02-21 Christopher Faylor <cgf@redhat.com>
9486 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9489 2002-02-20 Christopher Faylor <cgf@redhat.com>
9491 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9494 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9496 * jv-exp.y (parse_number): Change type of implicit longs
9497 to builtin_type_uint64.
9499 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9501 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9502 to be an integer instead of a `union wait'.
9504 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9506 * mips-linux-nat.c: Call the operating system GNU/Linux.
9507 * mips-linux-tdep.c: Likewise.
9508 * mips-tdep.c: Likewise.
9510 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9513 * jv-exp.y (parse_number): Handle 64-bit integers.
9515 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9517 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9518 AC_STDC_HEADERS to AC_HEADER_STDC.
9519 * gdbserver/configure: Regenerated.
9521 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9523 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9525 * sparc-tdep.c (get_longjmp_target): Likewise.
9527 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9529 * News: Add news about ARM and Multi-arch. Mention the new target
9532 2002-02-19 Jim Blandy <jimb@redhat.com>
9534 * stabsread.c (error_type_complaint): Improve error message.
9536 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9538 * gdbserver/README: Update documentation.
9539 * gdbserver/configure.in: Update configury to match documentation.
9540 * gdbserver/Makefile.in: Likewise.
9541 * gdbserver/configure: Regenerated.
9542 * gdbserver/aclocal.m4: New file, generated by aclocal.
9543 * gdbserver/config.in: New file, generated by autoheader.
9545 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9547 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9550 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9552 * arm-tdep.h (enum arm_float_model): New enum.
9553 (struct gdbarch_tdep): Add fp_model.
9554 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9555 up floating-point conversions until we know the floating-point model
9556 in use by the inferior. Don't complain about being unable to
9557 determine the ABI of the inferior when we don't have one.
9558 (arm_extract_return_value): Support different floating-point models.
9559 (arm_store_return_value): Likewise.
9560 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9562 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9564 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9566 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9567 of ``current_gdbarch''.
9569 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9571 * armnbsd-nat.c : ANSIfy all function declarations.
9572 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9573 (fetch_inferior_registers): Re-implement in terms of above.
9574 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9575 (store_inferior_registers): Re-implement in terms of above.
9577 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9579 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9581 * arm-linux-tdep.c: Likewise.
9582 * config/arm/tm-linux.h: Likewise.
9584 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9586 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9587 * config/arm/nbsd.mt (TM_FILE): Delete.
9588 * config/arm/tm-nbsd.h: Delete.
9590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9592 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9593 Initialize CALL_DUMMY_LENGTH.
9595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9597 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9599 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9600 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9601 defines one thing and that is incorrect for this port.
9602 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9604 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9606 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9608 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9610 * win32-nat.c (display_selector): New function. Displays information
9611 about the information returned by GetThreadSelectorEntry API function.
9612 (display_selectors): New function. Displays the infomation of
9613 the selector given as argument, or of CS, DS ans FS selectors
9614 if no argument is given.
9615 ( _initialize_inftarg): Add "w32" as info prefix command.
9616 Add "info w32 selector" as command calling display_selectors.
9618 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9620 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9621 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9624 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9626 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9628 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9630 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9631 (arm_fix_call_dummy): Call it.
9632 (arm_call_dummy_breakpoint_offset): Delete.
9633 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9634 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9636 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9638 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9639 Default to func_frame_chain_valid.
9640 * gdbarch.h, gdbarch.c: Re-generate.
9641 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9643 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9645 * ppc-linux-nat.c: Update copyright.
9646 (fetch_register, store_register): Add tid parameter, don't compute
9648 (fetch_ppc_registers, store_ppc_registers): Add tid
9649 parameter. Pass it along to callees.
9650 (fetch_inferior_registers, store_inferior_registers): Compute tid
9651 here, and pass it to calleed functions.
9652 (fill_gregset, supply_fpregset): Clean up formatting.
9654 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9656 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9657 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9659 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9661 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9662 * gdbarch.c gdbarch.h: Regenerate.
9663 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9665 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9666 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9667 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9669 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9670 * arm-tdep.c (arm_get_longjmp_target): New function.
9671 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9672 this to a positive value register arm_get_longjmp_target as the
9674 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9675 (arm_linux_init_abi): Set up longjmp description in tdep.
9676 * armnbsd-nat.c (get_longjmp_target): Delete.
9677 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9678 description in tdep.
9679 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9680 (get_longjmp_target): Delete declaration.
9681 (GET_LONGJMP_TARGET): Delete.
9682 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9683 (GET_LONGJMP_TARGET): Delete.
9685 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9687 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9688 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9689 of ``current_gdbarch''.
9691 2002-02-17 Tom Tromey <tromey@redhat.com>
9693 * cli/cli-cmds.c (compare_strings): New function.
9694 (complete_command): Only print each unique item once.
9695 * completer.h (complete_line): Declare.
9696 * completer.c (complete_line): New function.
9697 (line_completion_function): Use it.
9699 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9701 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9702 * gdbarch.h, gdbarch.c: Re-generate.
9704 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9706 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9708 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9710 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9711 * valops.c (value_arg_coerce): Don't take the address of a reference
9712 to convert an argument to a reference.
9714 2002-02-15 Christopher Faylor <cgf@redhat.com>
9716 * win32-nat.c (get_image_name): New function.
9717 (handle_load_dll): Use get_image_name function.
9718 (get_child_debug_event): Avoid registering debug events until possibly
9719 execed process is started.
9720 (child_create_inferior): Allow invocation via shell so that command
9721 line redirection, etc. works ok.
9722 (_initialize_inftarg): Add new command: "set shell" to control whether
9723 a shell is used to start a process.
9725 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9727 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9728 instead of find_register_by_number.
9729 (cannot_store_register): Likewise.
9731 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9733 * dwarf2read.c: Replace fprintf (stderr, ...) by
9734 fprintf_unfiltered (gdb_stderr, ...).
9736 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9738 * gdbserver/gdbserver.1: Document --attach.
9740 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9742 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9744 * arm-tdep.c (arm_default_arm_le_breakpoint)
9745 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9746 (arm_default_thumb_be_breakpoint): New. Initialize them from
9747 traditional breakpoint defines.
9748 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9749 (arm_gdbarch_init): Initialize new breakpoint variables.
9750 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9751 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9752 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9753 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9755 (arm_netbsd_init_abi_common): ... here; new function.
9756 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9757 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9758 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9759 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9761 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9763 * arm-tdep.h (enum arm_abi): New enum.
9764 (struct gdbarch_tdep): New structure.
9765 (LOWEST_PC): Provide a default.
9766 (arm_gdbarch_register_os_abi): Declare new function.
9767 * arm-tdep.c (arm_abi_names): New array.
9768 (process_note_abi_tag_sections): New function.
9769 (get_elfosabi): New function.
9770 (arm_gdbarch_register_os_abi): New function.
9771 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9772 support for that ABI has been built in, then call the appropriate
9773 configuration routine. Use gdbarch_num_regs() to get the number
9775 (arm_dump_tdep): New function.
9776 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9777 place-holder functions.
9778 (_initialize_arm_tdep): Register them.
9779 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9781 * armnbsd-tdep.c: New file.
9782 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9783 * config/arm/nbsd.mt (TDEPFILES): Add it.
9784 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9786 * armnbsd-nat.c: Include regcache.h.
9787 * Makefile.in (armnbsd-nat.o): Update dependency list.
9789 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9791 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9793 * gdbserver/Makefile.in: Fix typos in target rules.
9795 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9797 Fix part of PR gdb/267.
9798 * linespec.c (find_methods): Handle constructors specially for now.
9800 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9802 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9804 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9805 standard_coerce_float_to_double().
9807 2002-02-14 Christopher Faylor <cgf@redhat.com>
9809 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9812 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9814 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9815 find_variant_by_name, because it confuses the multiarch
9816 framework. Return NULL if there isn't an architecture with the
9817 user supplied name, instead of forcing a different one without
9818 recording the change with the multiarch machinery.
9819 (find_variant_by_name): Delete.
9821 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9823 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9824 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9826 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9828 * stack.c (print_frame_info_base): When calling
9829 print_frame_info_listing_hook, set current_source_symtab.
9831 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9833 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9834 and remove unused $(INCLUDE_DIR).
9835 Add regcache.c to OBS.
9836 Add generated register protocol files to clean target.
9837 Update dependencies for new objects, obsolete old target code.
9839 * gdbserver/linux-low.c: Remove all platform-specific code to
9840 new files. Remove various dead code. Update to use regcache
9842 * gdbserver/remote-utils.c (fromhex): Add return statement
9844 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9846 (input_interrupt): Add integer parameter to match prototype
9847 of a signal handler.
9848 (outreg): Use register_data ().
9849 (prepare_resume_reply): Use gdbserver_expedite_regs.
9850 * gdbserver/server.c (main): Dynamically allocate own_buf because
9851 PBUFSIZ is no longer constant. Use registers_to_string () and
9852 registers_from_string ().
9853 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9854 for error (), fatal (), and warning (). Update definition of
9855 PBUFSIZ to use regcache functionality. Add include guard.
9856 * gdbserver/utils.c (fatal): Add missing ``const''.
9857 (warning): New function.
9859 * regformats/regdat.sh: Include "regcache.h" in generated files.
9860 Provide init_registers () function.
9861 * regformats/regdef.h: Add prototype for set_register_cache ().
9864 * gdbserver/linux-arm-low.c: New file.
9865 * gdbserver/linux-i386-low.c: New file.
9866 * gdbserver/linux-ia64-low.c: New file.
9867 * gdbserver/linux-m68k-low.c: New file.
9868 * gdbserver/linux-mips-low.c: New file.
9869 * gdbserver/linux-ppc-low.c: New file.
9870 * gdbserver/linux-sh-low.c: New file.
9872 * gdbserver/regcache.c: New file.
9873 * gdbserver/regcache.h: New file.
9875 * gdbserver/low-linux.c: Removed obsolete file.
9877 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9879 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9880 * config/i386/linux.mt: Likewise.
9881 * config/ia64/linux.mt: Likewise.
9882 * config/m68k/linux.mh: Likewise.
9883 * config/powerpc/linux.mh: Likewise.
9884 * config/mips/linux.mt: Likewise.
9886 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9888 * config/i386/i386lynx.mh: Mark gdbserver variables
9889 as (currently) obsolete for this target.
9890 * config/i386/nbsd.mt: Likewise.
9891 * config/i386/nbsdelf.mt: Likewise.
9892 * config/m32r/m32r.mt: Likewise.
9893 * config/m68k/m68klynx.mh: Likewise.
9894 * config/m68k/nbsd.mt: Likewise.
9895 * config/m68k/sun3os4.mh: Likewise.
9896 * config/mips/vr5000.mt: Likewise.
9897 * config/ns32k/nbsd.mt: Likewise.
9898 * config/pa/hppabsd.mh: Likewise.
9899 * config/pa/hppaosf.mh: Likewise.
9900 * config/powerpc/nbsd.mt: Likewise.
9901 * config/rs6000/rs6000lynx.mh: Likewise.
9902 * config/s390/s390.mt: Likewise.
9903 * config/s390/s390x.mt: Likewise.
9904 * config/sparc/sparclynx.mh: Likewise.
9905 * config/sparc/sun4os4.mh: Likewise.
9906 * config/i386/x86-64linux.mt: Likewise.
9907 * config/sparc/linux.mh: Likewise.
9909 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9911 * configure.tgt: Configure gdbserver only for known working
9912 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9913 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9914 SUBDIRS if it is configured. Update comment for ${nativefile}.
9915 * configure: Regenerated.
9917 2002-02-13 Michael Snyder <msnyder@redhat.com>
9919 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9921 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9922 (default_gcore_mach): Just return 0, work around a problem in bfd.
9923 (default_gcore_target): OK to return NULL if exec_bfd is null.
9924 (make_mem_sec): Use a cast, avoid a warning.
9926 * procfs.c (find_memory_regions_callback): Use a cast instead of
9927 calling host_pointer_to_address (which complains if
9928 sizeof (host pointer) != sizeof (target pointer)).
9929 (procfs_make_note_section): Avoid overflow in psargs string.
9931 * procfs.c (procfs_make_note_section): Make the default
9932 implementation return an error.
9934 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9936 * procfs.c (procfs_make_note_section): Provide a default definition
9937 (for alpha-dec-osf4.0f). Fix typos.
9939 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9941 * linux-proc.c: Add include of regcache.h.
9942 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9944 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9946 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9947 * memattr.c (create_mem_region): Disallow useless empty region.
9948 Regions are half-open intervals, so allow [A..B) [B..C) as
9951 2002-02-13 Michael Chastain <mec@shout.net>
9953 * defs.h: Kill CONST_PTR.
9954 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9955 * c-lang.c (c_builtin_types): Likewise.
9956 * ch-lang.c (ch_builtin_types): Likewise.
9957 * f-lang.c (f_builtin_types): Likewise.
9958 * language.c (unknown_builtin_types): Likewise.
9959 * m2-lang.c (m2_builtin_types): Likewise.
9960 * p-lang.c (pascal_builtin_types): Likewise.
9961 * scm-lang.c (c_builtin_types): Likewise.
9963 2002-02-13 Keith Seitz <keiths@redhat.com>
9965 * arm-tdep.h (arm_get_next_pc): Add declaration.
9967 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9969 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9970 with other related struct-returning functions.
9971 (arm_extract_struct_value_address): New function.
9972 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9973 initialize float_format, double_format and long_double_format as
9974 appropriate to the endianness of the target.
9975 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9976 (arm_use_struct_convention): Delete declaration.
9977 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9979 2002-02-13 Keith Seitz <keiths@redhat.com>
9981 * defs.h (core_addr_to_string_nz): New function.
9983 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9985 Apply missing bits of 2002-01-15 patch.
9986 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9987 (fill_fpregset): Use i387_fill_fsave.
9989 2002-02-12 Keith Seitz <keiths@redhat.com>
9991 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9992 (core_addr_to_string_nz): New function.
9994 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9996 * arm-linux-nat.c: Really include arm-tdep.h.
9997 * config/arm/tm-linux.h (struct type, struct value): Declare.
9999 2002-02-11 Michael Snyder <msnyder@redhat.com>
10001 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10002 (gcore section): Ifdef for Solaris and Unixware only.
10003 (procfs_do_thread_registers): Unixware needs one lwpstatus
10004 per thread (not one prstatus or pstatus).
10005 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10006 not over all gdb threads. For unixware, call elfcore_write_pstatus
10007 once before iterating over threads.
10009 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10011 * arm-tdep.h: New file.
10012 * arm-tdep.c: Include arm-tdep.h.
10013 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10014 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10015 (arm_print_float_info, arm_register_type, convert_to_extended)
10016 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10017 (arm_extract_return_value, arm_register_name): Make static.
10018 (arm_software_single_step): Similarly. Fix types in declaration.
10019 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10020 (arm_store_return_value, arm_store_struct_return): New functions.
10021 (arm_gdbarch_init): Register the above functions. Also register
10022 call_dummy_start_offset, sizeof_call_dummy_words,
10023 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10024 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10025 max_register_virtual_size, register_size. Set up
10026 prologue_cache.saved_regs here, rather than ...
10027 (_initialize_arm_tdep): ... here.
10028 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10030 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10031 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10032 (arm_print_float_info, arm_register_type, convert_to_extended)
10033 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10034 (arm_extract_return_value, arm_register_name): Delete declarations.
10035 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10036 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10037 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10038 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10039 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10040 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10041 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10042 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10043 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10044 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10045 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10046 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10048 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10049 * remote-rdi.c remote-rdp.c: Likewise.
10050 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10051 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10052 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10055 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10056 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10057 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10058 from non-ARM_ prefixed definitions.
10059 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10061 * remote-rdi.c remote-rdp.c: Likewise.
10062 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10064 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10066 * arm-tdep.c (arm_frameless_function_invocation)
10067 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10068 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10069 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10070 (arm_pop_frame, arm_get_next_pc): Make static.
10071 (arm_gdbarch_init): Register above in gdbarch structure.
10072 (arm_read_fp): Renamed from arm_target_read_fp.
10073 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10074 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10075 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10076 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10077 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10078 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10079 (arm_pc_is_thumb_dummy): Delete declarations.
10080 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10081 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10082 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10083 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10085 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10087 * symtab.c (compare_search_syms): New function.
10088 (sort_search_symbols): New function.
10089 (search_symbols): Sort symbols after searching rather than
10092 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10094 * NEWS: Linux -> GNU/Linux.
10096 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10098 * gdbarch.sh: For for level one methods, disallow a definition
10099 when partially multi-arched. Add comments explaining rationale.
10100 * gdbarch.h: Re-generate.
10102 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10104 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10105 multi-arch partial.
10107 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10109 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10110 field. Use diff -u.
10111 * gdbarch.c: Re-generate.
10113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10115 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10116 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10119 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10121 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10122 multi-arch partial.
10123 (PUSH_ARGUMENTS): Switch to using predefault.
10124 * gdbarch.c: Regenerate.
10126 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10128 * valops.c (PUSH_ARGUMENTS): Delete definition.
10129 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10130 partial. Default to default_push_arguments.
10131 * gdbarch.h, gdbarch.c: Regenerate.
10133 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10135 * defs.h (throw_exception): Rename return_to_top_level. Update
10137 * utils.c (error_stream, internal_verror, quit): Ditto.
10138 * top.c (throw_exception, catcher): Ditto.
10139 * sparclet-rom.c (sparclet_load): Ditto.
10140 * remote.c (interrupt_query, minitelnet): Ditto.
10141 * remote-sds.c (interrupt_query): Ditto.
10142 * remote-mips.c (mips_error, mips_kill): Ditto.
10143 * ocd.c (interrupt_query): Ditto.
10144 * monitor.c (monitor_interrupt_query): Ditto.
10145 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10146 * target.h: Update comment.
10148 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10150 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10152 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10153 default_double_format.
10154 * gdbarch.h, gdbarch.c: Re-generate.
10155 * findvar.c (floatformat_unknown): Delete variable definition.
10156 * doublest.h (floatformat_unknown): Delete variable declaration.
10158 2002-02-09 Jim Blandy <jimb@redhat.com>
10160 * stabsread.c (read_type): Add code to parse Sun's syntax for
10161 prototyped function types.
10163 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10165 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10166 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10168 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10170 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10171 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10172 now _initialize_xcoffsolib gets called again and overrides the
10173 commands from solib.c in a native configuration.
10175 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10177 * doublest.c (store_typed_floating): Don't try to return a value.
10180 2002-02-08 Jim Blandy <jimb@redhat.com>
10182 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10183 is prototyped and has no arguments, print its argument list as
10186 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10188 * MAINTAINERS (write-after-approval): Add myself.
10189 (paper-trail): I've escaped!
10191 2002-02-08 Christopher Faylor <cgf@redhat.com>
10193 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10195 (_initialize_check_for_gdb_ini): Ditto.
10197 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10199 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10200 xaprintf -> xasprintf.
10202 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10204 * win32-nat.c: Remove use of printf and sprintf functions.
10206 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10208 * arm-tdep.c (arm_frame_chain_valid): Make static.
10209 (arm_push_arguments): Likewise.
10210 (arm_gdbarch_init): New function.
10211 (_initialize_arm_tdep): Call it.
10212 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10213 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10214 (FRAME_CHAIN_VALID): Delete.
10215 (arm_frame_chain_valid): Delete declaration.
10216 (PUSH_ARGUMENTS): Delete.
10217 (arm_push_arguments): Delete declaration.
10218 (CALL_DUMMY_P): Delete.
10220 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10221 Corinna Vinschen <vinschen@redhat.com>
10223 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10224 on builtin float types.
10226 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10228 * utils.c: Include <curses.h> before "bfd.h".
10229 * tui/tui-hooks.c: Likewise.
10230 * tui/tui.c: Likewise.
10231 * tui/tuiCommand.c: Likewise.
10232 * tui/tuiData.c: Likewise.
10233 * tui/tuiDataWin.c: Likewise.
10234 * tui/tuiDisassem.c: Likewise.
10235 * tui/tuiGeneralWin.c: Likewise.
10236 * tui/tuiIO.c: Likewise.
10237 * tui/tuiLayout.c: Likewise.
10238 * tui/tuiRegs.c: Likewise.
10239 * tui/tuiSource.c: Likewise.
10240 * tui/tuiSourceWin.c: Likewise.
10241 * tui/tuiStack.c: Likewise.
10242 * tui/tuiWin.c: Likewise.
10244 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10246 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10247 to include space for pseudoregs as well. Update loops accordingly.
10248 (sh_fp_frame_init_saved_regs): Ditto.
10249 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10251 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10253 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10254 Add Richard Earnshaw to Arm maintainers.
10256 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10258 * defs.h (warning_begin): Delete declaration.
10260 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10263 2002-02-07 Michael Snyder <msnyder@redhat.com>
10265 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10266 Logic bug, remove misplaced else.
10268 2002-02-07 Klee Dienes <klee@apple.com>
10270 * fork-inferior.c (fork_inferior): Add '!' to the list of
10271 characters that need to be quoted when building a string for the
10272 shell. Quote '!' specifically with a backslash, since CSH chokes
10273 when trying to evaluate "str!str".
10275 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10277 * rdi-share/host.h: Only provide a typedef for bool if it is not
10280 2002-02-04 Michael Snyder <msnyder@redhat.com>
10282 * breakpoint.h (enum bptype): Add new overlay event bp type.
10283 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10285 * breakpoint.c (create_internal_breakpoint): New function.
10286 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10287 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10288 (create_thread_event_breakpoint): Ditto.
10289 (create_solib_event_breakpoint): Ditto.
10290 (create_overlay_event_breakpoint): New function.
10291 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10292 (update_breakpoints_after_exec): Delete and re-initialize
10293 overlay event breakpoints after an exec. Add FIXME comment
10294 about longjmp breakpoint.
10295 (print_it_typical): Ignore overlay event breakpoints.
10296 (print_one_breakpoint): Ditto.
10298 (bpstat_what): Do not stop for overlay event breakpoints.
10299 (delete_breakpoint): Don't delete overlay event breakpoints.
10300 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10301 (breakpoint_re_set): Re-create overlay event breakpoint.
10303 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10304 (overlay_manual_command): Disable overlay breakpoints.
10305 (overlay_off_command): Disable overlay breakpoints.
10307 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10309 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10310 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10311 to here from config/tm-arm.h.
10312 (coff_sym_is_thumb): Make static.
10313 (arm_elf_make_msymbol_special): New function.
10314 (arm_coff_make_msymbol_special): New function.
10315 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10316 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10317 (coff_sym_is_thumb): Delete declaration.
10318 (arm_elf_make_msymbol_special): Declare.
10319 (arm_coff_make_msymbol_special): Declare.
10320 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10321 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10323 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10325 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10327 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10329 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10330 * gdbarch.c gdbarch.h: Regenerate.
10331 * arch-utils.c (default_print_float_info): New function.
10332 * arch-utils.h (default_print_float_info): Prototype it.
10333 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10334 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10335 (PRINT_FLOAT_INFO): Document it.
10337 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10338 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10339 (PRINT_FLOAT_INFO): Define.
10341 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10343 * win32-nat.c (_initialize_check_for_gdb_ini):
10344 Add typecast to sprintf argument to suppress a warning.
10346 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10348 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10349 to allow easier handling of pass state.
10350 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10351 that gives exception name and address.
10352 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10353 and set last_sig value to ourstatus->value.sig. Some missing
10355 (child_continue): Correctly report continue_status.
10356 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10357 TARGET_SIGNAL_0 (new default value).
10358 (child_resume): consider sig argument passed to decide if
10359 the exception should be passed to debuggee or not.
10361 2002-02-05 Michael Snyder <msnyder@redhat.com>
10363 * regcache.c (fetch_register): Call target_fetch_register
10364 only if we don't call FETCH_PSEUDO_REGISTER.
10365 (store_register): Call target_store_register only if we
10366 don't call STORE_PSEUDO_REGISTER.
10368 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10370 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10371 ELF_MAKE_MSYMBOL_SPECIAL.
10372 * gdbarch.c, gdbarch.h: Regenerate.
10373 * arch-utils.c (default_make_msymbol_special): New function.
10374 * arch-utils.h (default_make_msymbol_special): Export.
10375 * elfread.c (elf_symtab_read): Compile use of
10376 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10378 * coffread.c (coff_symtab_read): Ditto, for
10379 COFF_MAKE_MSYMBOL_SPECIAL.
10381 2002-02-05 Jim Blandy <jimb@redhat.com>
10383 * solib-svr4.c (svr4_truncate_ptr): New function.
10384 (svr4_relocate_section_addresses): Do the address arithmetic with
10385 the appropriate truncation for target addresses, even when
10386 CORE_ADDR is larger than a target address.
10388 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10390 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10393 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10395 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10398 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10400 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10402 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10404 * gdbserver/linux-low.c: Remove unused include files.
10406 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10408 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10409 (read_inferior_memory): Use it.
10410 (write_inferior_memory): Likewise.
10412 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10414 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10415 grubbing through sys_errlist.
10417 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10419 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10421 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10422 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10424 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10426 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10427 (do_sfunc, set_cmd_sfunc): New functions.
10429 * command.h (struct cmd_list_element): Add field func.
10430 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10431 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10432 * cli/cli-decode.h: Ditto.
10434 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10435 (help_all, help_cmd_list): Ditto.
10436 (find_cmd, complete_on_cmdlist): Ditto.
10437 * top.c (execute_command): Ditto.
10439 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10442 * infcmd.c (notice_args_read): Fix function signature.
10444 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10445 * cli/cli-decode.c (add_set_cmd): Ditto.
10446 * utils.c (initialize_utils): Ditto.
10447 * maint.c (_initialize_maint_cmds): Ditto.
10448 * infrun.c (_initialize_infrun): Ditto.
10449 * demangle.c (_initialize_demangler): Ditto.
10450 * remote.c (add_packet_config_cmd): Ditto.
10451 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10452 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10453 * proc-api.c (_initialize_proc_api): Ditto.
10454 * kod.c (_initialize_kod): Ditto.
10455 * valprint.c (_initialize_valprint): Ditto.
10456 * top.c (init_main): Ditto.
10457 * infcmd.c (_initialize_infcmd): Ditto.
10458 * corefile.c (_initialize_core): Ditto.
10459 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10460 * arch-utils.c (initialize_current_architecture): Ditto.
10461 (_initialize_gdbarch_utils): Ditto.
10462 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10464 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10465 * wince.c (_initialize_inftarg): Ditto.
10466 * symfile.c (_initialize_symfile): Ditto.
10467 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10468 * language.c (_initialize_language): Ditto.
10469 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10471 2002-02-04 Michael Snyder <msnyder@redhat.com>
10473 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10475 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10477 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10478 Add rules for building the register data files.
10480 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10482 * regformats/regdat.sh: Add braces to the definition of
10483 expedite_regs_${arch}.
10485 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10487 * regformats/regdef.h (struct reg): Add comment describing the
10488 requirements for offset and size fields.
10490 2002-02-04 Andreas Schwab <schwab@suse.de>
10492 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10493 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10495 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10497 * gdbarch.sh (copyright): Update years in generated header.
10498 (SMASH_TEXT_ADDRESS): Add rule.
10499 * gdbarch.h, gdbarch.c: Re-generate.
10500 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10501 * dbxread.c: Likewise.
10502 * dwarfread.c: Likewise.
10503 * elfread.c: Likewise.
10504 * somread.c: Likewise.
10506 * arm-tdep.c (arm_smash_text_address): New function.
10507 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10509 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10511 Add support for hardware watchpoints on win32 native.
10512 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10513 CONTEXT_DEBUG_REGISTERS.
10514 (dr variable): New variable. Static array containing a local copy
10515 of debug registers.
10516 (debug_registers_changed): New variable. Reflects when debug registers
10517 are changed and need to be written to inferior.
10518 (debug_registers_used): New variable. Reflects when any debug register
10519 was set, used when new threads are created.
10520 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10522 (thread_rec): Set dr array if id is the thread of current_event .
10523 (child_continue, child_resume): Change the debug registers for all
10524 threads if debug_registers_changed.
10525 (child_add_thread): Change the debug registers if debug_registers_used.
10526 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10527 Link nm.h to new nm-cygwin.h file.
10528 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10529 of hardware registers.
10531 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10533 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10534 Restore behavour broken by 2002-01-20 Andrew Cagney
10535 <ac131313@redhat.com> IEEE_FLOAT removal.
10537 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10539 * c-valprint.c (c_val_print): Pass a proper valaddr to
10540 cp_print_class_method.
10541 * valops.c (search_struct_method): If there is only one method
10542 and args is NULL, return that method.
10544 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10546 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10547 accessing tag_name directly.
10549 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10551 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10552 of accessing tag_name directly.
10554 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10557 * gdbtypes.c (replace_type): New function.
10558 * gdbtypes.h (replace_type): Add prototype.
10559 * stabsread.c (read_type): Use replace_type.
10561 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10563 * Makefile.in (memattr.o): Add missing dependencies rule.
10565 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10567 * breakpoint.c (break_at_finish_command): Really export.
10568 (break_at_finish_at_depth_command): Ditto.
10569 (tbreak_at_finish_command): Ditto.
10570 * hppa-tdep.c: Include completer.h.
10571 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10572 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10574 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10576 * utils.c (do_write): New function.
10577 (error_stream): Rewrite combining the code from error_begin and
10579 (verror): Rewrite using error_stream.
10580 (error_begin): Delete function.
10582 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10584 * utils.c (error_begin): Make static.
10585 * defs.h (error_begin): Delete declaration.
10587 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10588 (decode_line_1): Use cplusplus_error instead of error_begin,
10589 cplusplus_hint and return_to_top_level.
10590 * coffread.c (coff_symfile_read): Use error instead of error_begin
10591 and return_to_top_level.
10592 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10594 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10596 * language.h (type_error, range_error): Make string parameter
10598 * language.c (warning_pre_print): Delete extern declaration.
10599 * dwarfread.c (warning_pre_print): Ditto.
10600 * language.c (type_error, range_error): Rewrite to use verror and
10601 vwarning instead of warning_begin.
10603 2002-02-01 Michael Snyder <msnyder@redhat.com>
10605 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10606 (set_ignore_count): Move misplaced comment back where it belongs.
10608 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10610 * command.h (NO_FUNCTION): Delete macro.
10611 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10612 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10613 * tracepoint.c (_initialize_tracepoint): Ditto.
10614 * cli/cli-decode.c (add_set_cmd): Ditto.
10615 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10617 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10619 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10620 Update ``this'' pointer when calling virtual functions.
10622 2002-02-01 Michael Snyder <msnyder@redhat.com>
10624 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10625 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10627 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10629 * regformats/reg-arm.dat: New file.
10630 * regformats/reg-i386.dat: New file.
10631 * regformats/reg-ia64.dat: New file.
10632 * regformats/reg-m68k.dat: New file.
10633 * regformats/reg-mips.dat: New file.
10634 * regformats/reg-ppc.dat: New file.
10635 * regformats/reg-sh.dat: New file.
10636 * regformats/regdef.h: New file.
10637 * regformats/regdat.sh: New file.
10639 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10641 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10642 (arm_frame_args_address, arm_frame_locals_address): New functions.
10643 (arm_frame_num_args): New function.
10644 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10645 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10646 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10648 2002-01-31 Michael Snyder <msnyder@redhat.com>
10650 * breakpoint.c (break_at_finish_command): Export.
10651 (break_at_finish_at_depth_command): Export.
10652 (tbreak_at_finish_command): Export.
10653 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10654 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10655 "txbreak" commands, which are HPPA specific.
10657 * printcmd.c (disassemble_command): Remove an ancient
10658 artifact of an old merge.
10660 * symfile.h (enum overlay_debugging_state):
10661 Define enum constant values for overlay mode.
10662 * symfile.c (overlay_debugging): Use enums instead of literals.
10663 (overlay_is_mapped, overlay_auto_command,
10664 overlay_manual_command): Ditto.
10666 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10667 breakpoint_here_p, breakpoint_inserted_here_p,
10668 breakpoint_thread_match, bpstat_stop_status,
10669 describe_other_breakpoints, check_duplicates, clear_command):
10670 Coding standard fixes.
10672 * target.c (target_xfer_memory): Add spaces, coding standard.
10673 (do_xfer_memory): Add missing line to trust-readonly
10674 code: check bfd SEC_READONLY flag for section.
10676 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10678 * PROBLEMS: Fix typo, 5.1->5.1.1.
10680 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10682 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10683 data symbols, since we search based on textlow and texthigh.
10684 (find_pc_sect_symtab): Likewise.
10686 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10688 * defs.h (vwarning): Declare.
10689 * utils.c (vwarning): New function.
10690 (warning): Call vwarning.
10691 (warning_begin): Delete function.
10693 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10694 the warning message.
10695 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10698 2002-01-30 Michael Snyder <msnyder@redhat.com>
10700 * NEWS: Mention "set trust-readonly-sections" command.
10701 Mention generate-core-file command.
10703 2002-01-15 Michael Snyder <msnyder@redhat.com>
10705 * target.c: New command, "set trust-readonly-sections on".
10706 (do_xfer_memory): Honor the suggestion to trust readonly sections
10707 by reading them from the object file instead of from the target.
10708 (initialize_targets): Register command "set trust-readonly-sections".
10710 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10712 * parse.c (target_map_name_to_register): Simplify, search regs and
10713 pseudo-regs using a single loop.
10715 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10717 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10719 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10721 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10722 * config/i386/i386v42mp.mh: Add i387-nat.o .
10723 * i386v4-nat.c: Include i387-nat.h.
10724 (supply_fpregset): Use i387_supply_fsave.
10725 (fill_fpregset): Use i387_fill_fsave.
10727 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10729 * arm-tdep.c (arm_call_dummy_words): Define.
10730 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10731 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10732 (CALL_DUMMY_WORDS): Define.
10733 (arm_call_dummy_words): Declare.
10734 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10735 (arm_linux_call_dummy_words): Declare.
10737 2002-01-30 Andreas Schwab <schwab@suse.de>
10739 * m68klinux-nat.c: Fix last change to use regcache_collect
10740 instead of referencing registers[] directly.
10742 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10744 * parse.c (target_map_name_to_register): Delete code wrapped in
10745 #ifdef REGISTER_NAME_ALIAS_HOOK.
10747 2002-01-28 Michael Snyder <msnyder@redhat.com>
10749 * regcache.c (legacy_read_register_gen): Need to be able to
10750 read pseudo-register as well as real register.
10751 (legacy_write_register_gen): Ditto.
10753 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10755 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10756 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10757 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10758 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10759 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10760 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10761 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10762 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10763 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10764 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10765 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10766 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10767 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10768 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10769 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10770 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10771 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10772 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10773 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10774 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10776 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10778 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10779 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10780 (initialize_current_architecture): Update target_byte_order using
10781 information from BFD.
10782 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10783 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10785 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10787 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10788 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10790 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10791 #ifdef INVALID_FLOAT.
10792 * infcmd.c (do_registers_info): Ditto.
10793 * values.c (unpack_double): Ditto. Add comment.
10795 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10796 already commented out.
10798 2002-01-26 Andreas Schwab <schwab@suse.de>
10800 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10801 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10802 registers and add support for PTRACE_GETREGS.
10804 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10806 GDB 5.1.1 released from 5.1 branch.
10807 * NEWS: Add 5.1.1 news.
10808 * README: Sync with 5.1 branch.
10810 2002-01-23 Fred Fish <fnf@redhat.com>
10812 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10813 stabstring on initial malloc. Reallocing will copy it for us,
10816 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10818 * Makefile.in (hpread_h): Delete.
10819 (HFILES_NO_SRCDIR): Remove hpread.h.
10820 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10821 (hpread.o): Update dependencies.
10822 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10824 * hp-psymtab-read.c: Remove file.
10825 * hp-symtab-read.c: Remove file.
10826 * hpread.h: Remove file.
10828 * hpread.c: Merge all contents of hp-psymtab-read.c,
10829 hp-symtab-read.c and hpread.h into this file, as it was prior to
10832 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10833 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10834 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10835 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10837 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10839 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10840 fill_gregset): Call gdbarch_tdep() just once, assign result to
10841 variable and use that, instead of calling the function several
10844 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10846 * configure.host: Accept sparcv9 as alias for sparc64.
10847 * configure.tgt: Likewise.
10849 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10851 * solib-aix5.c (build_so_list_from_mapfile)
10852 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10853 arguments is not reversed.
10854 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10855 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10857 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10859 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10860 modified version of obsolete sh_fetch_pseudo_register.
10861 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10862 (sh4_register_read): New function.
10863 (sh_pseudo_register_write): New function. Renamed and modified
10864 version of obsolete sh_store_pseudo_register.
10865 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10866 (sh4_register_write): New function.
10867 (sh_gdbarch_init): Remove setting of gdbarch function
10868 fetch_pseudo_register and store_pseudo_register. Remove setting of
10869 register_convert_to_raw, register_convert_to_virtual,
10870 register_convertible.
10871 (sh_sh4_register_convertible): Delete. No longer needed. All is
10872 taken care by architecture specific functions
10873 register_read/register_write.
10874 (sh_sh4_register_convert_to_virtual): Make static.
10875 (sh_sh4_register_convert_to_raw): Ditto.
10877 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10879 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10880 (floatformat_is_nan, floatformat_mantissa): Ditto.
10882 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10883 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10884 builtin_type_ieee_double_little,
10885 builtin_type_ieee_double_littlebyte_bigword,
10886 builtin_type_m68881_ext, builtin_type_i960_ext,
10887 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10888 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10889 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10890 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10892 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10894 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10895 parameter. Set frameless flag if it exists and depended of
10896 whether the scanned function is frameless or not.
10897 (xstormy16_skip_prologue): If function is frameless, return
10898 result of xstormy16_scan_prologue().
10899 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10902 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10904 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10905 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10906 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10907 sh_sh4_register_byte, sh_sh4_register_raw_size,
10908 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10909 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10910 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10911 sh_store_pseudo_register, sh_do_pseudo_register): Call
10912 gdbarch_tdep() just once, assign result to variable and use that,
10913 instead of calling the function several times.
10915 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10917 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10918 macros instead of LAST_FPU_CTRL_REGNUM.
10919 (store_register): Likewise.
10921 2002-01-21 Jim Blandy <jimb@redhat.com>
10923 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10924 is up-to-date before running the program, not just when a program
10927 2002-01-21 Fred Fish <fnf@redhat.com>
10929 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10930 when we have found all instructions we are looking for.
10932 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10934 * arm-tdep.c (arm_register_name): New function.
10935 (arm_registers_names): Make static.
10936 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10937 (arm_register_name): Declare.
10938 (REGISTER_NAME): Use it.
10940 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10941 Kevin Buettner <kevinb@redhat.com>
10943 Convert arm targets to new FRAME interface.
10944 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10945 (arm_frame_find_save_regs): Delete.
10946 (arm_frame_init_saved_regs): New.
10947 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10948 Allocate extra_info as required. Convert all uses of fsr.regs
10949 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10951 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10952 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10953 (check_prologue_cache, save_prologue_cache): Likewise.
10954 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10955 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10956 (FRAME_FIND_SAVED_REGS): Delete.
10957 (arm_frame_find_saved_regs): Delete prototype.
10958 (arm_frame_init_saved_regs): New prototype.
10959 (FRAME_INIT_SAVED_REGS): Define.
10961 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10963 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10965 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10967 From Jeff Law <law@redhat.com>:
10968 * infttrace.c: Include <sys/pstat.h>.
10969 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10970 exec file if the ttrace equivalent fails.
10972 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10974 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10975 (closeLogFile): Ditto.
10977 2002-01-20 Michael Chastain <mec@shout.net>
10979 * top.c (print_gdb_version): Bump copyright year to 2002.
10981 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10983 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10984 Zannoni and Eli Zaretskii.
10986 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10988 * buildsym.c: Update copyright years.
10989 * c-typeprint.c: Likewise.
10990 * dwarf2read.c: Likewise.
10991 * f-typeprint.c: Likewise.
10992 * gdbtypes.c: Likewise.
10993 * gdbtypes.h: Likewise.
10994 * hp-symtab-read.c: Likewise.
10995 * hpread.c: Likewise.
10996 * mdebugread.c: Likewise.
10997 * p-typeprint.c: Likewise.
10999 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11001 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11002 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11003 byte-order selectable.
11004 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11005 * arch-utils.c: Ditto.
11006 (set_endian): Ditto.
11007 (set_endian_from_file): Ditto.
11008 * gdbserver/low-sim.c (create_inferior): Ditto.
11009 * gdbarch.sh: Ditto.
11010 * gdbarch.h: Re-generate.
11011 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11012 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11013 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11014 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11015 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11016 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11017 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11018 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11020 * config/mips/tm-wince.h: Remove #undef of macro
11021 TARGET_BYTE_ORDER_SELECTABLE.
11022 * config/sh/tm-wince.h: Ditto.
11024 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11026 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11027 member function fields. Add accessor macro
11028 TYPE_FN_FIELD_ARTIFICIAL.
11029 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11030 * c-typeprint.c (c_type_print_base): Skip artificial member
11033 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11035 * f-typeprint.c: Delete unused function f_type_print_args.
11036 * p-typeprint.c: Delete unused function pascal_type_print_args.
11038 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11040 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11041 comment. Add ``artificial'' to ``union field_location''.
11043 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11045 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11046 * mdebugread.c (parse_symbol): Likewise.
11047 * stabsread.c (define_symbol): Likewise.
11048 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11049 initializing TYPE_FIELD_BITPOS to n (obsolete).
11050 (hpread_doc_function_type): Likewise.
11051 * hpread.c (hpread_function_type): Likewise.
11053 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11055 * configure.in (host_makefile_frag): Only require a host makefile
11056 fragment when a native build.
11057 * configure: Re-generate.
11059 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11061 * doublest.h (floatformat_from_type): Declare.
11062 * doublest.c (floatformat_from_type): New function.
11063 (convert_typed_floating): Use.
11065 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11066 call to function floatformat_from_type.
11068 * gdbarch.sh (IEEE_FLOAT): Delete.
11069 * gdbarch.h, gdbarch.c: Re-generate.
11070 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11071 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11072 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11073 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11074 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11075 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11076 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11077 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11078 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11079 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11080 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11081 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11083 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11084 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11085 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11086 * sh-tdep.c (sh_gdbarch_init): Ditto.
11087 * mips-tdep.c (mips_gdbarch_init): Ditto.
11088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11089 * cris-tdep.c (cris_gdbarch_init): Ditto.
11091 2002-01-20 Jiri Smid <smid@suse.cz>
11093 * configure.host, configure.tgt: Support x86-64.
11094 * NEWS: Note new target x86-64.
11096 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11097 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11098 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11099 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11100 x86-64-linux-nat.o): Fix dependencies.
11102 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11104 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11105 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11106 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11107 * config/sparc/xm-sun4os4.h: Delete file.
11108 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11110 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11112 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11113 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11114 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11115 * config/i386/i386lynx.mh (XM_FILE): Delete.
11116 * config/rs6000/xm-rs6000ly.h: Delete file.
11117 * config/sparc/xm-sparclynx.h: Delete file.
11118 * config/m68k/xm-m68klynx.h: Delete file.
11119 * config/i386/xm-i386lynx.h: Delete file.
11120 * config/xm-lynx.h: Delete file.
11121 * config/djgpp/fnchange.lst: Update.
11123 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11125 * alpha-tdep.c (alpha_register_byte): New function.
11126 (alpha_register_raw_size): Ditto.
11127 (alpha_register_virtual_size): Ditto.
11128 (alpha_skip_prologue_internal): Renamed from
11129 alpha_skip_prologue.
11130 (alpha_skip_prologue): New version that calls
11131 alpha_skip_prologue_internal.
11132 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11133 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11134 second argument from alpha_skip_prologue.
11135 (REGISTER_BYTE): Use alpha_register_byte.
11136 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11137 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11138 (FRAMELESS_FUNCTION_INVOCATION): Use
11139 generic_frameless_function_invocation_not.
11140 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11141 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11143 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11145 * config/mips/xm-news-mips.h: Delete file.
11146 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11148 * config/m88k/xm-m88k.h: Delete file.
11149 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11150 * config/m88k/xm-delta88v4.h: Ditto.
11151 * config/m88k/xm-delta88.h: Ditto.
11153 * config/alpha/xm-fbsd.h: Delete file.
11154 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11156 * config/sparc/xm-sparc.h: Delete file.
11157 * Makefile.in (xm-sun4os4.h): Delete dependency.
11158 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11159 * config/sparc/xm-sun4os4.h: Ditto.
11160 * config/sparc/xm-linux.h: Ditto.
11162 * config/i386/xm-windows.h: Delete file.
11164 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11166 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11167 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11169 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11171 * alpha-tdep.c (alpha_call_dummy_words): New.
11172 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11173 (CALL_DUMMY_P): Define.
11174 (CALL_DUMMY_WORDS): Define.
11175 (SIZEOF_CALL_DUMMY_WORDS): Define.
11177 2002-01-19 Per Bothner <per@bothner.com>
11179 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11180 isn't NULL, which can happen with some gcj-3.x-produced code.
11182 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11184 * alpha-tdep.c (alpha_register_virtual_type): New function.
11185 (alpha_init_frame_pc_first): Ditto.
11186 (alpha_fix_call_dummy): Ditto.
11187 (alpha_store_struct_return): Ditto.
11188 (alpha_extract_struct_value_address): Ditto.
11189 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11190 alpha_register_virtual_type.
11191 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11192 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11193 alpha_extract_struct_value_address.
11194 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11195 (INIT_FRAME_PC): Use init_frame_pc_noop.
11196 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11198 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11200 * i386gnu-nat.c: Include "i386-tdep.h".
11201 (fetch_fpregs): Simplify code dealing with uninitialized floating
11202 point states such that it doesn't require FP7_REGNUM.
11204 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11206 * alpha-tdep.c (frame_extra_info): New.
11207 (alpha_find_saved_regs): Make static. Use
11209 (alpha_frame_init_saved_regs): New function.
11210 (alpha_frame_saved_pc): Use frame->extra_info.
11211 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11212 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11213 (init_extra_frame_info): Rename to...
11214 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11215 (alpha_print_extra_frame_info): New function.
11216 (alpha_frame_locals_address): Ditto.
11217 (alpha_frame_args_address): Ditto.
11218 (alpha_pop_frame): Use frame->extra_info.
11219 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11220 alpha_frame_args_address.
11221 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11222 (alpha_find_saved_regs): Remove prototype.
11223 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11224 (EXTRA_FRAME_INFO): Remove.
11225 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11226 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11228 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11230 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11231 (alpha_cannot_fetch_register): Ditto.
11232 (alpha_cannot_store_register): Ditto.
11233 (alpha_register_convertible): Ditto.
11234 (alpha_use_struct_convention): Ditto.
11235 * config/alpha/tm-alpha.h: Update copyright years.
11236 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11237 (INNER_THAN): Use core_addr_lessthan.
11238 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11239 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11240 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11241 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11242 (FRAME_CHAIN): Remove unnecessary cast.
11244 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11246 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11249 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11251 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11252 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11253 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11254 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11255 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11256 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11257 * x86-64-linux-nat.c: Ditto.
11259 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11261 * alpha-tdep.c (alpha_register_name): New function.
11262 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11263 (REGISTER_NAME): Define.
11265 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11267 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11269 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11271 * alpha-tdep.c: Update copyright years.
11272 (alpha_next_pc): New function.
11273 (alpha_software_single_step): Ditto.
11274 * config/alpha/tm-alpha.h: Add prototype for
11275 alpha_software_single_step.
11277 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11279 * alphabsd-nat.c: Update copyright years.
11280 (fill_gregset): Use regcache_collect.
11281 (fill_fpregset): Likewise.
11282 (fetch_inferior_registers): Only fetch integer registers
11283 if requested to do so.
11284 (store_inferior_registers): Only store integer registers
11285 if requested to do so.
11287 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11289 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11290 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11291 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11292 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11293 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11294 * config/arm/linux.mh (XDEPFILES): Delete.
11295 * config/arm/nbsd.mh (XDEPFILES): Delete.
11296 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11297 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11298 * config/i386/i386m3.mh (XDEPFILES): Delete.
11299 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11300 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11301 * config/i386/fbsd.mh (XDEPFILES): Delete.
11302 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11303 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11304 * config/i386/i386v4.mh (XDEPFILES): Delete.
11305 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11306 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11307 * config/i386/i386aix.mh (XDEPFILES): Delete.
11308 * config/i386/go32.mh (XDEPFILES): Delete.
11309 * config/i386/cygwin.mh (XDEPFILES): Delete.
11310 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11311 * config/i386/i386mach.mh (XDEPFILES): Delete.
11312 * config/i386/i386v32.mh (XDEPFILES): Delete.
11313 * config/i386/linux.mh (XDEPFILES): Delete.
11314 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11315 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11316 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11317 * config/i386/i386sco.mh (XDEPFILES): Delete.
11318 * config/i386/i386v.mh (XDEPFILES): Delete.
11319 * config/i386/nbsd.mh (XDEPFILES): Delete.
11320 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11321 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11322 * config/i386/symmetry.mh (XDEPFILES): Delete.
11323 * config/i386/obsd.mh (XDEPFILES): Delete.
11324 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11325 * config/ia64/linux.mh (XDEPFILES): Delete.
11326 * config/ia64/aix.mh (XDEPFILES): Delete.
11327 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11328 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11329 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11330 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11331 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11332 * config/m68k/linux.mh (XDEPFILES): Delete.
11333 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11334 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11335 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11336 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11337 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11338 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11339 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11340 * config/m88k/delta88.mh (XDEPFILES): Delete.
11341 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11342 * config/m88k/m88k.mh (XDEPFILES): Delete.
11343 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11344 * config/mips/linux.mh (XDEPFILES): Delete.
11345 * config/mips/irix6.mh (XDEPFILES): Delete.
11346 * config/mips/irix5.mh (XDEPFILES): Delete.
11347 * config/mips/irix4.mh (XDEPFILES): Delete.
11348 * config/mips/irix3.mh (XDEPFILES): Delete.
11349 * config/mips/decstation.mh (XDEPFILES): Delete.
11350 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11351 (NATDEPFILES): Move core-aout.o to here.
11352 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11353 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11354 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11355 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11356 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11357 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11358 * config/pa/hpux11.mh (XDEPFILES): Delete.
11359 * config/powerpc/aix.mh (XDEPFILES): Delete.
11360 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11361 * config/powerpc/linux.mh (XDEPFILES): Delete.
11362 * config/romp/rtbsd.mh: Rename XDEPFILES.
11363 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11364 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11365 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11366 * config/s390/s390.mh (XDEPFILES): Delete.
11367 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11368 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11369 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11370 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11371 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11372 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11373 * config/sparc/linux.mh (XDEPFILES): Delete.
11374 * config/vax/vaxult.mh (XDEPFILES): Delete.
11375 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11376 * Makefile.in (DEPFILES): Remove XDEPFILES.
11378 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11380 * utils.c (internal_verror): Fix comments, default is yes not no.
11381 Update queries to match. Default to quit and dump core.
11383 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11385 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11387 * defs.h, event-top.c, gdbcmd.h: Ditto.
11388 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11389 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11390 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11391 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11392 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11393 * mi/mi-main.c:Ditto.
11395 * stack.c, symfile.c: Update copyright.
11397 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11399 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11400 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11401 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11402 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11404 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11406 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11407 * gdbserver/low-lynx.c (myattach): Likewise.
11408 * gdbserver/low-nbsd.c (myattach): Likewise.
11409 * gdbserver/low-sim.c (myattach): Likewise.
11410 * gdbserver/low-sparc.c (myattach): Likewise.
11411 * gdbserver/low-sun3.c (myattach): Likewise.
11413 * gdbserver/low-linux.c (myattach): New function.
11415 * gdbserver/server.c (attach_inferior): New function.
11416 (main): Handle "--attach".
11418 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11420 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11423 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11425 * c-typeprint.c (is_type_conversion_operator): Add additional
11426 check for non-conversion operators.
11428 2002-01-15 Michael Snyder <msnyder@redhat.com>
11430 * linux-proc.c: Add "info proc" command, a la procfs.c.
11431 (read_mapping): New function, abstract and re-use code.
11432 (linux_find_memory_regions): Use new func read_mapping.
11433 (linux_info_proc_cmd): New function, implement "info proc".
11434 (_initialize_linux_proc): Add new command "info proc".
11436 2002-01-15 Michael Snyder <msnyder@redhat.com>
11438 * symfile.c (generic_load): Use bfd_map_over_sections method
11439 instead of manipulating bfd structure members directly.
11440 (add_section_size_callback): New function, bfd sections callback
11441 used by generic_load.
11442 (load_sections_callback): New function, bfd sections callback
11443 used by generic_load.
11445 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11447 [Based on work by Jim Blandy]
11448 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11449 (builtin_type_vec128): Export.
11450 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11452 (builtin_type_vec128): New builtin type for 128 bit vector
11454 (build_gdbtypes): Initialize builtin_type_v16qi and
11455 builtin_type_v8hi. Create the vec128 register builtin type
11457 (build_builtin_type_vec128): New function.
11458 (_initialize_gdbtypes): Register builtin_type_v16qi and
11459 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11460 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11461 AltiVec register to new builtin type.
11463 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11465 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11468 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11470 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11471 CLEAN_UP_REGISTER_VALUE.
11472 * regcache.c (supply_register): Update only call.
11474 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11476 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11477 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11478 a29k-*-vxworks* targets as obsolete.
11480 2002-01-14 Michael Snyder <msnyder@redhat.com>
11482 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11483 until we can resolve portability issues.
11484 * gregset.h: Remove references to fpxregs.
11485 * gcore.c (gcore_command): Initialize note_sec to NULL.
11487 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11489 * signals.c (target_signal_to_name): Rewrite. Only use
11490 signals[].name when in bounds and non-NULL.
11492 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11494 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11495 * signals.c (target_signal_to_name): Verify that SIG is within the
11496 bounds of the signals array.
11498 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11500 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11502 2002-01-13 Keith Seitz <keiths@redhat.com>
11504 * stack.c (print_frame_info_base): Print the frame's pc
11505 only if when print_frame_info_listing_hook is not defined.
11507 2002-01-13 Keith Seitz <keiths@redhat.com>
11509 * varobj.c (varobj_set_value): Make sure that there were no
11510 errors evaluating the object before attempting to set its
11512 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11513 so this offset adjustment is no longer necessary.
11514 (create_child): Don't set the error flag if the child is
11515 a CPLUS_FAKE_CHILD.
11516 (value_of_child): If value_fetch_lazy fails, return NULL
11517 so that callers will be notified that an error occurred.
11518 (c_value_of_variable): Delay check of variable's validity
11519 until later. We actually want all structs and unions to have
11521 Do not return "???" for variables which could not be evaluated.
11522 This error condition must be returned to the caller so that it
11523 can get the error condition from gdb.
11524 (cplus_name_of_child): Adjust index for vptr before figuring
11525 out the name of the child.
11526 (cplus_value_of_child): If a child's (real) parent is not valid,
11527 don't even bother trying to give a value for it. Just return
11528 an error. Change all instances in this function.
11529 (cplus_type_of_child): If our parent is one of the "fake"
11530 parents, we need to get at the type of the real parent, and
11531 derive the child's true type using this information.
11533 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11535 From 2002-01-09 John Marshall <johnm@falch.net>:
11536 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11537 sources.redhat.com, and tweak some related URLs which had
11538 suffered from linkrot.
11540 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11543 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11544 structures passed in registers.
11546 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11548 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11549 white space which prevented compilation. Reported by DSK
11550 <dsk@student.unsw.edu.au>.
11552 2002-01-11 Michael Snyder <msnyder@redhat.com>
11554 * symfile.c (build_section_addr_info_from_section_tab):
11555 Use bfd access method instead of manipulating bfd directly.
11556 (syms_from_objfile): Ditto.
11557 (simple_overlay_update_1): Ditto.
11558 (simple_overlay_update): Ditto.
11559 (generic_load): Ditto.
11560 (overlay_unmapped_address): FIXME comment, bfd access methods.
11561 (sections_overlap): FIXME comment, bfd access methods.
11562 (pc_in_mapped_range): FIXME comment, bfd access methods.
11563 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11564 (section_is_mapped): FIXME comment, bfd access methods.
11565 (section_is_overlay): FIXME comment, bfd access methods.
11567 * symfile.c (generic_load): Whitespace and long line cleanups.
11568 Remove duplicate variable, change several local variables to
11569 more appropriate data types.
11570 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11572 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11574 From Peter Schauer:
11575 * language.c (longest_local_hex_string_custom): Use phex_nz to
11576 convert NUM to a hex string.
11578 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11580 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11582 Update Copyright year.
11584 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11586 * language.c (longest_raw_hex_string): Delete unused function.
11588 2002-01-11 Petr Sorfa <petrs@caldera.com>
11590 * MAINTAINERS (write-after-approval): Add myself.
11591 * dwarf2read.c (read_tag_string_type): Handling of
11593 (read_tag_string_type): FORTRAN fix to prevent propagation of
11595 (set_cu_language): Handling of DW_LANG_Fortran95
11597 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11599 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11600 GETPID(inferior_ptid).
11601 (store_inferior_registers): Likewise.
11603 2002-01-10 Jason Merrill <jason@redhat.com>
11605 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11608 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11610 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11611 and bfd/elf32-sh-nbsd.c.
11613 2002-01-10 Michael Snyder <msnyder@redhat.com>
11615 * NEWS: Mention --pid and corefile/proc-id behavior change.
11617 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11618 * gcore.c: Include cli/cli-decode.h instead of command.h.
11620 * main.c (captured_main): Add new command line option "--pid".
11621 If the second command line argument (following the symbol-file)
11622 begins with a digit, try to attach to it before trying to open
11624 (print_gdb_help): Document the "--pid" argument.
11626 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11628 * completer.c (command_completer): New function.
11630 * completer.h <command_completer>: Add prototype.
11632 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11633 completer for the "help" command.
11635 2002-01-09 Jason Merrill <jason@redhat.com>
11637 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11639 2002-01-09 Michael Snyder <msnyder@redhat.com>
11641 * i386-linux-nat.c (fill_fpxregset): Make global.
11642 (store_fpxregset): Ditto.
11644 * gregset.h (gdb_fpxregset_t): Define.
11645 (supply_fpxregset): Prototype.
11646 (fill_fpxregset): Prototype.
11648 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11650 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11652 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11653 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11654 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11656 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11658 * MAINTAINERS: Update target maintainer rules so that any
11659 Maintainer can approve a tested patch for a maintenance-only
11662 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11664 * MAINTAINERS (write-after-approval): Add myself.
11666 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11669 2002-01-08 Michael Snyder <msnyder@redhat.com>
11671 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11672 real name of the executable, rather than the /proc name.
11674 2002-01-03 Michael Snyder <msnyder@redhat.com>
11676 Implement a "generate-core-file" command in gdb, save target state.
11677 * gcore.c: New file. Implement new command 'generate-core-file'.
11678 Save a corefile image of the current state of the inferior.
11679 * linux-proc.c: Add linux-specific code for saving corefiles.
11680 * target.h (struct target_ops): Add new target vectors for saving
11681 corefiles; to_find_memory_regions and to_make_corefile_notes.
11682 (target_find_memory_regions): New macro.
11683 (target_make_corefile_notes): New macro.
11684 * target.c (update_current_target): Inherit new target methods.
11685 (dummy_find_memory_regions): New place-holder method.
11686 (dummy_make_corefile_notes): New place-holder method.
11687 (init_dummy_target): Initialize new dummy target vectors.
11688 * exec.c (exec_set_find_memory_regions): New function.
11689 Allow the exec_ops vector for memory regions to be taken over.
11690 (exec_make_note_section): New function, target vector method.
11691 * defs.h (exec_set_find_memory_regions): Export prototype.
11692 * procfs.c (proc_find_memory_regions): New function, corefile method.
11693 (procfs_make_note_section): New function, corefile method.
11694 (init_procfs_ops): Set new target vector pointers.
11695 (find_memory_regions_callback): New function.
11696 (procfs_do_thread_registers): New function.
11697 (procfs_corefile_thread_callback): New function.
11698 * sol-thread.c (sol_find_memory_regions): New function.
11699 (sol_make_note_section): New function.
11700 (init_sol_thread_ops): Initialize new target vectors.
11701 * inftarg.c (inftarg_set_find_memory_regions): New function.
11702 Allow to_find_memory_regions vector to be taken over.
11703 (inftarg_set_make_corefile_notes): New function.
11704 Allow to_make_corefile_notes vector to be taken over.
11705 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11706 interface layer if not target_has_execution (may be a corefile).
11707 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11708 * config/sparc/sun4sol2.mh: Ditto.
11709 * config/alpha/alpha-linux.mh: Ditto.
11710 * config/arm/linux.mh: Ditto.
11711 * config/i386/x86-64linux.mh: Ditto.
11712 * config/ia64/linux.mh: Ditto.
11713 * config/m68k/linux.mh: Ditto.
11714 * config/mips/linux.mh: Ditto.
11715 * config/powerpc/linux.mh: Ditto.
11716 * config/sparc/linux.mh: Ditto.
11718 2002-01-07 Michael Snyder <msnyder@redhat.com>
11720 * arm-linux-nat.c: Remove references to regcache.c internal data
11721 (registers[] and register_valid[]).
11723 2002-01-07 Michael Snyder <msnyder@redhat.com>
11725 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11726 so that attaching to a pid will automatically read the process's
11727 symbol file and shlibs.
11728 * Makefile.in: Add rule for linux-proc.o.
11729 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11730 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11731 * config/arm/linux.mh: Ditto.
11732 * config/i386/linux.mh: Ditto.
11733 * config/i386/x86-64linux.mh: Ditto.
11734 * config/ia64/linux.mh: Ditto.
11735 * config/m68k/linux.mh: Ditto.
11736 * config/mips/linux.mh: Ditto.
11737 * config/powerpc/linux.mh: Ditto.
11738 * config/sparc/linux.mh: Ditto.
11740 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11742 * win32-nat.c: Add i386-tdep.h dependency.
11744 2002-01-07 Michael Snyder <msnyder@redhat.com>
11746 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11747 instead of bfd_get_arch_size. Don't bail out just because
11748 there's no exec_bfd.
11750 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11751 * p-valprint.c (pascal_object_print_value): Ditto.
11752 * somread.c (som_symtab_read): Ditto.
11753 * symfile.c (simple_free_overlay_region_table): Ditto.
11754 * valops.c (value_assign): Ditto.
11756 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11757 use tilde_expand and strerror for opening save-tracepoints file.
11759 * thread-db.c (thread_db_new_objfile): Indendation fix.
11761 * infptrace.c (GDB_MAX_ALLOCA): New define.
11762 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11763 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11764 can be overridden with whatever value is appropriate to the host).
11765 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11766 alloca to allocate potentially large buffer.
11767 * rs6000-nat.c (child_xfer_memory): Ditto.
11768 * symm-nat.c (child_xfer_memory): Ditto.
11769 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11771 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11773 From Nick Clifton <nickc@redhat.com>
11774 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11776 2002-01-07 Michael Snyder <msnyder@redhat.com>
11778 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11779 Don't use exec_bfd if it's NULL.
11781 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11783 * valops.c (value_arg_coerce): Fix formatting.
11785 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11787 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11788 * gnu-nat.c: Ditto.
11790 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11792 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11793 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11794 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11795 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11796 z8k-coff have not been multi-arched. Update z8k-coff build
11799 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11801 * MAINTAINERS: Mark a29k target as obsolete.
11802 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11803 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11805 * NEWS: Note that a29k targets are obsolete.
11806 * a29k-tdep.c: Mark as obsolete.
11807 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11808 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11809 a29k-*-vxworks* targets as obsolete.
11810 * remote-adapt.c: Obsolete.
11811 * remote-eb.c: Obsolete.
11812 * remote-mm.c: Obsolete.
11813 * remote-udi.c: Obsolete.
11814 * config/a29k/a29k-udi.mt: Obsolete.
11815 * config/a29k/a29k.mt: Obsolete.
11816 * config/a29k/tm-a29k.h: Obsolete.
11817 * config/a29k/tm-vx29k.h: Obsolete.
11818 * config/a29k/vx29k.mt: Obsolete.
11820 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11822 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11823 with BFD_ENDIAN_BIG.
11825 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11827 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11828 * configure, config.in: Re-generate.
11829 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11830 * defs.h: Do not include <endian.h>.
11832 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11834 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11835 * config.in: Regenerate.
11836 * configure.in: Update copyright years.
11837 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11838 * configure: Regenerate.
11839 * i386bsd-nat.c: Update copyright years.
11840 (fill_gregset): Use regcache_collect.
11841 (fetch_inferior_registers): Only fetch integer registers
11842 if requested to do so. Add support for XMM registers
11843 using PT_GETXMMREGS.
11844 (store_inferior_registers): Only store integer registers
11845 if requested to do so. Add support for XMM registers
11846 using PT_SETXMMREGS.
11847 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11848 (store_inferior_registers): Remove.
11849 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11850 (fetch_elfcore_registers): New function.
11851 (i386nbsd_elfcore_fns): New.
11852 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11853 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11855 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11856 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11857 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11858 * config/i386/tm-nbsd.h: Update copyright years.
11859 (HAVE_SSE_REGS): Define.
11860 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11861 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11862 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11863 (SIGCONTEXT_PC_OFFSET): Remove.
11864 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11866 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11868 * configure.tgt: Remove powerpc-*-macos* target.
11869 * config/m68k/xm-mpw.h: Delete file.
11870 * config/xm-mpw.h: Delete file.
11871 * ser-mac.c: Delete file.
11872 * mpw-make.sed: Delete file.
11873 * mpw-config.in: Delete file.
11874 * mac-xdep.c: Delete file.
11875 * mac-gdb.r: Delete file.
11876 * mac-defs.h: Delete file.
11877 * mac-nat.c: Delete file.
11878 * config/powerpc/macos.mh: Delete file.
11879 * config/powerpc/macos.mt: Delete file.
11880 * config/powerpc/nm-macos.h: Delete file.
11881 * config/powerpc/tm-macos.h: Delete file.
11882 * source.c (openp, open_source_file): Remove obsolete code.
11883 * top.c (gdb_readline): Ditto.
11884 * utils.c (query): Ditto.
11885 * event-top.c (display_gdb_prompt): Ditto.
11886 * Makefile.in (ser-mac.o): Delete obsolete target.
11889 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11891 * defs.h (BIG_ENDIAN): Delete macro definition.
11892 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11893 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11894 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11895 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11896 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11897 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11898 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11899 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11900 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11901 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11902 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11903 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11904 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11905 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11906 * gdbarch.c: Re-generate.
11908 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11910 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11913 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11915 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11917 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11919 * value.h (value_ptr): Delete typedef.
11921 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11923 * i386nbsd-nat.c: Update copyright years.
11924 Include i386-tdep.h.
11926 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11928 * stabsread.c: Update copyright years.
11930 From Debashis Mahata <debashis.mahata@wipro.com>:
11931 (read_struct_fields): Deal with Sun C compiler erroneous stab
11932 output for structs and unions.
11935 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11937 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11940 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11942 * cp-abi.c: Fix whitespace.
11943 (baseclass_offset): New wrapper function.
11944 * cp-abi.h (baseclass_offset): Add prototype.
11945 (struct cp_abi_ops): Add baseclass_offset pointer.
11947 * valops.c (vb_match): Move to...
11948 * gnu-v2-abi.c (vb_match): here.
11949 * valops.c (baseclass_offset): Move to...
11950 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11952 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11954 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11955 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11956 * hpacc-abi.c (init_hpacc_ops): Likewise.
11958 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11960 * valops.c (find_overload_match): Accept obj as a
11961 reference parameter. Update it before returning.
11962 * value.h (find_overload_match): Update prototype.
11963 * eval.c (evaluate_subexp_standard): Pass object to
11964 find_overload_match by reference.
11966 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11968 * valarith.c: Replace value_ptr with struct value pointer. Remove
11969 register attribute from value declarations.
11972 * scm-lang.c (scm_lookup_name): Ditto.
11974 2002-01-03 Michael Snyder <msnyder@redhat.com>
11976 Abstract the functionality of iterating over mapped memory
11977 regions into a general purpose iterator function.
11978 * procfs.c (iterate_over_mappings): New function, general purpose
11979 iterator for memory sections.
11980 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11981 (solib_mappings_callback): New function, callback for above.
11982 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11983 (info_mappings_callback): New function, callback for above.
11985 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11987 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11989 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11990 * i386-tdep.c: Include "elf-bfd.h".
11991 (process_note_abi_tag_sections): New function.
11992 (i386_gdbarch_init): Add code to recognize various OS/ABI
11995 * maint.c (_initialize_maint_cmds): Add missing \ in
11998 For older changes see ChangeLog-2001
12004 version-control: never