1 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3 * symtab.c (symbol_init_language_specific): New function.
4 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
5 turning most of it into a function.
6 (symbol_init_language_specific): Export.
8 2002-10-23 David Carlton <carlton@math.stanford.edu>
10 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
11 (dwarf_attr_name): Ditto.
12 (dwarf_type_encoding_name): Ditto.
13 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
14 (process_die): Handle DW_TAG_namespace,
15 DW_TAG_imported_declaration, DW_TAG_imported_module.
16 (read_namespace): New function.
18 2002-10-22 Joel Brobecker <brobecker@gnat.com>
20 * configure.in: Define NEW_PROC_API on Interix too.
21 * configure: Regenerate.
23 2002-10-21 Joel Brobecker <brobecker@gnat.com>
25 * configure: Regenerate using the proper version of autoconf.
27 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
29 * findvar.c (read_var_value): Temporarily disable TLS code, until
30 complete TLS support is added.
32 2002-10-21 Jim Blandy <jimb@redhat.com>
33 Elena Zannoni <ezannoni@redhat.com>
35 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
36 for thread local storage locations.
37 (struct symbol): Add objfile field.
38 (SYMBOL_OBJFILE): Define.
39 * dwarf2read.c (is_thread_local): New static variable.
40 (new_symbol): If variable is in thread local fill in address class
41 and objfile appropriately.
42 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
44 * printcmd.c (address_info): Print the information for thread
45 local storage variable.
46 * findvar.c (read_var_value): In case of thread local variable,
47 defer to the target vector code to compute address.
49 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
51 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
52 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
54 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
56 * symtab.h (address_class): Rename
57 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
58 * hpread.c (hpread_process_one_debug_symbol): Ditto.
59 * printcmd.c (address_info): Ditto.
60 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
62 2002-10-20 Mark Kettenis <kettenis@gnu.org>
64 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
65 DBREG_DRX macro to acces debug registers.
67 * Makefile.in (i386obsd-tdep.o): New target.
69 * solib-sunos.c: Include "bcache.h" and "regcache.h".
70 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
72 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
73 * config/i386/obsd.mt: New file.
74 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
75 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
76 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
77 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
78 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
79 * i386obsd-tdep.c: New file.
81 2002-10-19 Adam Fedor <fedor@gnu.org>
83 * objc-exp.y (name_not_typename): Fix invalid comment.
85 2002-10-20 Mark Kettenis <kettenis@gnu.org>
87 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
88 to allocate partial syms and macro byte caches.
90 2002-10-18 David Carlton <carlton@math.stanford.edu>
92 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
94 2002-10-18 Adam Fedor <fedor@gnu.org>
96 * stabsread.c (find_name_end): New function.
97 (define_symbol): Use it.
99 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
101 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
102 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
103 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
104 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
106 2002-10-17 David Carlton <carlton@math.stanford.edu>
108 * symfile.h: Add opaque declaration for struct obstack.
109 Declare obsavestring to take a const char *.
110 * symfile.c (obsavestring): Make first argument a const char *.
112 2002-10-16 Adam Fedor <fedor@gnu.org>
114 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
115 names when matching breakpoints in current file.
117 2002-10-16 Kevin Buettner <kevinb@redhat.com>
119 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
120 (read_tag_pointer_type): Add address class support.
121 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
122 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
124 * gdbarch.h, gdbarch.c: Regenerate.
125 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
126 (make_type_with_address_space, recursive_type_dump): Add address
128 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
129 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
130 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
132 2002-10-16 Klee Dienes <kdienes@apple.com>
134 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
135 to get the last character of a char[] buffer, not
136 name[sizeof(vptr_name)-1].
138 2002-10-14 Adam Fedor <fedor@gnu.org>
140 * symtab.h: New objc_specific struct.
141 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
142 (SYMBOL_DEMANGLED_NAME): Likewise.
144 2002-10-14 Adam Fedor <fedor@gnu.org>
146 * symfile.c (init_filename_language_table): Add ObjC file extension.
148 2002-10-14 Adam Fedor <fedor@gnu.org>
150 * utils.c (puts_filtered_tabular): New function.
151 (fprintf_symbol_filtered): Get ObjC demangled name.
152 * defs.h (puts_filtered_tabular): Declared.
154 2002-10-14 Kevin Buettner <kevinb@redhat.com>
156 * c-lang.h (c_type_print_varspec_prefix): Delete.
157 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
158 ``need_post_space'' parameter. Adjust all callers.
160 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
162 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
163 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
164 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
165 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
167 2002-10-13 Adam Fedor <fedor@gnu.org>
169 * source.c (print_source_lines): Update comments.
171 2002-10-13 Adam Fedor <fedor@gnu.org>
173 * valops.c (value_of_local): New function.
174 (value_of_this): Use it.
175 * value.h (value_of_local): Declared.
177 2002-10-13 Adam Fedor <fedor@gnu.org>
179 * parse.c: (length_of_subexp, prefixify_subexp): Handle
180 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
182 2002-10-12 Adam Fedor <fedor@gnu.org>
184 * language.c (binop_result_type): Add language_objc to case.
185 (integral_type): Likewise.
186 (character_type): Likewise.
187 (string_type): Likewise.
188 (boolean_type): Likewise.
189 (structured_type): Likewise.
190 (binop_type_check): Likewise.
192 2002-10-11 Adam Fedor <fedor@gnu.org>
194 * printcmd.c (address_info): Print 'self' for ObjC.
196 2002-10-11 Adam Fedor <fedor@gnu.org>
198 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
201 2002-10-11 Adam Fedor <fedor@gnu.org>
203 * language.h (CAST_IS_CONVERSION): Add language_objc.
205 2002-10-11 Adam Fedor <fedor@gnu.org>
207 * defs.h (enum language): Add language_objc.
209 2002-10-11 Klee Dienes <kdienes@apple.com>
211 * findvar.c (read_memory_typed_address): New function.
212 * gdbcore.h (read_memory_typed_address): Add prototype.
213 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
214 to read a value destined for a CORE_ADDR, not read_memory_integer.
215 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
216 (f77_get_dynamic_lowerbound): Ditto.
218 2002-10-11 Martin M. Hunt <hunt@redhat.com>
220 * utils.c (string_to_core_addr): After turning string into
221 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
222 which will do necessary sign-extension, etc.
224 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
226 * c-exp.y (THIS): Delete token and grammar rule.
227 (yylex): Don't return THIS.
228 * cp-valprint.c (vtbl_ptr_name_old): Delete.
229 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
230 * demangle.c (cplus_markers): Update comment. Put '$'
231 first. Remove CPLUS_MARKER.
232 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
233 * jv-exp.y (THIS): Delete token and grammar rule.
234 (yylex): Don't return THIS.
235 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
236 * objc-exp.y (THIS): Delete token and grammar rule.
237 (yylex): Don't return THIS.
238 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
239 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
240 (read_member_functions): Likewise for opname.
241 (read_tilde_fields): Use is_cplus_marker.
243 * defs.h (CPLUS_MARKER): Don't define.
244 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
245 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
246 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
247 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
248 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
250 * config/i386/tm-i386v4.h: Delete file.
251 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
252 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
253 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
254 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
255 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
256 * config/i386/i386sco5.mt (TM_FILE): Likewise.
257 * config/i386/i386v4.mt (TM_FILE): Likewise.
258 * config/i386/ncr3000.mt (TM_FILE): Likewise.
260 2002-10-10 Marko Mlinar <markom@opencores.org>
262 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
263 accidentially not commited 2002-10-09
264 * gdbarch.h, gdbarch.c: Re-generate.
266 2002-10-09 Marko Mlinar <markom@opencores.org>
268 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
269 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
270 * gdbarch.h, gdbarch.c: Re-generate.
272 2002-10-08 Petr Sorfa <petrs@caldera.com>
274 Revised and re-submitted by John Wolfe <jlw@caldera.com>
276 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
277 so we can work on more than one compilation unit at a time. This
278 helps prepare GDB to handle inter-CU die references.
279 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
280 the code to be defined before struct comp_unit_head.
281 (comp_unit_head): Added new members - offset, cu_head,
282 begin_die, next and dwarf2_abbrevs.
283 (dwarf2_abbrevs): Removed single static var; now member of
284 struct comp_unit_head.
285 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
287 (psymtab_to_symtab_1): Changed to work with the new
288 struct comp_unit_head.
289 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
290 constructs the dwarf2_abbrevs[] inside the cu_header.
291 (dwarf2_empty_abbrev_table): Now expects a ptr to a
292 dwarf2_abbrev table to clean up.
293 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
294 handling of dwarf2_abbrevs inside the cu_header.
295 (read_partial_die): Now supports the call to the new
296 dwarf2_lookup_abbrev.
297 (read_full_die): Now supports the call to the new
298 dwarf2_lookup_abbrev.
300 2002-10-06 Christopher Faylor <cgf@redhat.com>
302 * Makefile.in (install-gdbtk): Add missing continuation backslash to
303 insure that shell variables, such as "transformed_name" are propagated
304 to later shell statements in rule.
306 2002-10-06 Mark Kettenis <kettenis@gnu.org>
308 * config/i386/nm-i386sco.h: Add protection against
309 multiple-inclusion. Include "i386/nm-i386v.h".
310 (REGISTER_U_ADDR): Remove define.
311 (i386_register_u_addr): Remove prototype.
313 2002-10-04 Michael Snyder <msnyder@redhat.com>
315 * m32r-stub.c (handle_exception): Make sure exception is "trap"
316 before treating it as a single-step event.
318 2002-10-03 Adam Fedor <fedor@gnu.org>
320 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
321 (objc_demangle): Remove assignment in if statements, Replace
323 (add_msglist): Likewise.
324 (end_msglist): Likewise.
325 (complare_selectors): Likewise.
326 (selectors_info): Likewise.
327 (compare_classes): Likewise.
328 (classes_info): Likewise.
329 (print_object_command): Likewise.
330 (find_objc_msgcall_submethod): Replace PTR with void *.
331 * objc-lang.h: Remove check for __STDC__.
333 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
335 * ui-out.h (ui_out_field_fmt_int): New prototype.
336 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
337 of field width and alignment.
338 * stack.c (print_frame_info_base): When printing frame level, use
339 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
342 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
344 * MAINTAINERS: Add self to Write After Approval list.
346 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
348 * infcmd.c (interrupt_target_command_wrapper): Delete.
349 (interrupt_target_command): Make non static.
350 (nofp_registers_info): Make static.
351 * stack.c (return_command_wrapper): Delete.
352 (return_command): Make non static.
354 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
356 * event-top.c (gdb_setup_readline): New function. Code moved from
357 _initialize_event_loop().
358 (_initialize_event_loop): Call gdb_setup_readline().
360 2002-10-02 Andrew Cagney <ac131313@redhat.com>
362 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
363 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
364 * gdbarch.h, gdbarch.c: Re-generate.
366 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
369 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
371 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
372 of fill_in_vptr_fieldno.
374 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
376 * inferior.h (registers_info, stepi_command, nexti_command,
377 continue_command, interrupt_target_command): Export from infcmd.c.
378 * frame.h (args_info, selected_frame_level_changed_hook,
379 return_command): Export from stack.c.
380 * v850ice.c (stepi_command, nexti_command, continue_command): use
381 prototypes from inferior.h.
382 * tracepoint.c (registers_info, args_info, locals_info): Use
383 prototypes from frame.h and inferior.h.
384 * Makefile.in (mi-main.o): Add dependency on frame.h.
386 2002-10-02 Andrew Cagney <ac131313@redhat.com>
388 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
389 value in register 3 adjusted by ppc_gp0_regnum.
391 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
393 2002-10-02 Marko Mlinar <markom@opencores.org>
395 * MAINTAINERS: Add myself to the Write After Approval list.
397 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
399 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
400 of the section for the N64 ABI, fixed.
402 * config/mips/tm-irix6.h: Include solib.h.
404 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
406 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
409 2002-10-01 Andrew Cagney <ac131313@redhat.com>
411 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
412 and that "mi0" syntax has been removed.
414 2002-09-30 David Carlton <carlton@math.stanford.edu>
416 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
417 * ppc-sysv-tdep.c: #include "gdb_string.h".
418 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
421 2002-10-01 Andrew Cagney <ac131313@redhat.com>
423 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
424 "vrsave"'s register number.
426 2002-09-30 Andrew Cagney <ac131313@redhat.com>
428 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
429 use frame_unwind_signed_register to obtain the PC.
430 (mips_frame_chain): Handle a generic dummy frame.
431 (mips_init_extra_frame_info): When a generic dummy frame, don't
432 re-compute the frame base.
433 (mips_pop_frame): Handle generic dummy frames.
434 (mips_gdbarch_init): When generic dummy frames, set
435 use_generic_dummy_frames, push_dummy_frame to
436 generic_push_dummy_frame, pc_in_call_dummy to
437 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
438 generic_save_dummy_frame_tos.
440 2002-09-30 Andrew Cagney <ac131313@redhat.com>
442 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
443 against TOP when TOP was explictly set.
444 (generic_push_dummy_frame): Set TOP to zero.
446 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
448 * event-loop.c (start_event_loop): Rename variable 'result' to
449 'gdb_result', to avoid conflicts with upcoming intepreters changes.
451 2002-09-30 Keith Seitz <keiths@redhat.com>
453 * gdb-events.sh (selected_thread_changed): New event.
454 * gdb-events.c: Regenerated.
455 * gdb-events.h: Regenerated.
457 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
459 * MAINTAINERS: Add self to Write After Approval list.
461 2002-09-30 Fernando Nasser <fnasser@redhat.com>
463 * disasm.c: New file.
464 * disasm.h: New file.
465 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
466 (compare_lines): Ditto.
468 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
470 (do_assembly_only): Ditto.
471 (do_disassembly): Renamed to gdb_disassembly and moved to
472 disasm.c. Sdded uiout argument.
473 * Makefile.in: Add new files. Reorder SFILES list. Update
474 dependencies. Include libgdb.a later in the insight executable.
476 2002-09-29 Andrew Cagney <ac131313@redhat.com>
478 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
479 bfd/elf64-alpha-fbsd.c.
481 2002-09-29 Andrew Cagney <ac131313@redhat.com>
483 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
486 2002-09-29 Andrew Cagney <ac131313@redhat.com>
488 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
490 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
492 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
493 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
494 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
495 (S_msg_sig_post_reply): Ditto.
497 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
499 * sh-tdep.c (sh_use_struct_convention): Use definition according
501 (sh_push_arguments): Store in register with correct endianess.
502 (sh_default_store_return_value): Ditto.
503 (sh_gdbarch_init): Set sizeof long double to 8.
505 2002-09-27 Mark Kettenis <kettenis@gnu.org>
507 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
508 Fix some whitespace problems.
510 2002-09-27 David Carlton <carlton@math.stanford.edu>
512 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
513 (mcore-tdep.o): Ditto.
514 (ns32k-tdep.o): Ditto.
515 (ns32knbsd-tdep.o): Ditto.
518 * cris-tdep.c: #include "gdb_string.h"
519 * mcore-tdep.c: Ditto.
520 * ns32k-tdep.c: Ditto.
521 * ns32knbsd-tdep.c: Ditto.
525 2002-09-27 David Carlton <carlton@math.stanford.edu>
527 * config/djgpp/fnchange.lst: Add entries for
528 gdb/testsuite/gdb.c++/m-static files.
530 2002-09-27 Jim Wilson <wilson@redhat.com>
532 * MAINTAINERS: Add myself to the Write After Approval list.
534 2002-09-26 Martin M. Hunt <hunt@redhat.com>
536 * mips-tdep.c (find_proc_desc): Initialize startaddr.
539 2002-09-26 Andrew Cagney <ac131313@redhat.com>
541 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
544 2002-09-26 Andrew Cagney <ac131313@redhat.com>
546 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
547 (rs6000_struct_return_address): Delete variable.
548 (rs6000_store_struct_return): Update.
549 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
550 deprecated_extract_struct_value_address.
551 (rs6000_frame_align): New function.
552 (rs6000_gdbarch_init): Set frame_align.
554 2002-09-26 Andrew Cagney <ac131313@redhat.com>
556 From Grace Sainsbury <graces@redhat.com>:
557 * Makefile.in (gdbtk-main.o): New target.
560 (main.o): Update dependencies.
561 (gdb$(EXEEXT)): Add gdb.o.
562 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
563 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
564 (SUBDIR_GDBTK_CLEAN): Set.
565 (install-gdbtk): Install the insight binary.
566 (uninstall-gdbtk): New target.
567 (all-gdbtk, clean-gdbtk): New rule.
568 * top.c (use_windows): Default to zero.
569 * main.c: Include "main.h".
571 (struct captured_main_args): Delete.
572 (gdb_main): New function.
576 2002-09-25 Andrew Cagney <cagney@redhat.com>
578 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
579 (frame_map_regnum_to_name): New function.
580 (frame_map_name_to_regnum): New function.
581 * frame.h (frame_map_name_to_regnum): Declare.
582 (frame_map_regnum_to_name): Declare.
583 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
584 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
585 * parse.c: Do not include "builtin-regs.h".
586 (target_map_name_to_register): Delete function.
587 (write_dollar_variable): Use frame_map_name_to_regnum.
588 * parser-defs.h (target_map_name_to_register): Delete declaration.
589 * expprint.c: Include "frame.h".
590 (print_subexp): Use frame_map_regnum_to_name.
591 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
592 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
594 2002-09-25 Andrew Cagney <ac131313@redhat.com>
596 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
597 wasn't saved, and the next innermost frame is a dummy, return the
598 dummy frame's link register.
600 2002-09-24 Jim Blandy <jimb@redhat.com>
603 * main.c (captured_main): Add a `break' after the case for 'b'.
605 2002-09-24 Keith Seitz <keiths@redhat.com>
607 * varobj.c (c_type_of_child): Use get_target_type instead
610 2002-09-22 Fernando Nasser <fnasser@redhat.com>
612 * source.c (get_current_or_default_source_symtab_and_line): Remove
614 (set_default_source_symtab_and_line): New function. Attempts to
615 determine a source file to list lines from if one is not currently
617 (get_current_source_symtab_and_line): Initialize sal.pc and
619 (set_current_source_symtab_and_line): Mark argument as const.
620 * source.h: Update declarations and comments.
621 * linespec.c (decode_line_1): Replace call to removed routine above.
622 * stack.c (print_frame_info_base): Ditto.
623 * cli/cli-cmds.c (edit_command): Ditto.
624 (list_command): Ditto.
626 2002-09-22 Fernando Nasser <fnasser@redhat.com>
628 * source.c (get_current_or_default_source_symtab_and_line): Initialize
629 sal.pc and sal.end fields.
630 (get_current_or_default_source_symtab_and_line): Ditto.
631 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
632 so we do not cause a new source symtab to be searched for (reverting an
633 unintentional change from the 2002-09-20 patch).
634 * scm-lang.c (scm_unpac): Ditto.
636 2002-09-21 Andrew Cagney <cagney@redhat.com>
638 * complaints.c (symfile_explanations): Remove new-line from
639 ``isolated_message''.
640 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
641 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
643 2002-09-20 Nick Clifton <nickc@redhat.com>
645 * NEWS: Announce that V850EA ISA is no longer supported.
646 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
648 2002-09-20 David Carlton <carlton@math.stanford.edu>
650 * Makefile.in (c-lang.o): Correct dependencies.
651 (utils.o): Gather dependencies.
653 * c-lang.c: #include "gdb_string.h"
655 2002-09-20 Fernando Nasser <fnasser@redhat.com>
657 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
658 * cli/cli-cmds.c (list_command): New function. Implements the new
660 (_init_cli_cmds): Add new command definition.
661 * gdb.1: Document edit command.
662 * doc/gdb.texinfo: Document edit command.
664 2002-09-20 Fernando Nasser <fnasser@redhat.com>
666 * source.c: Make global variables current_source_symtab and
667 current_source_line static.
668 (list_command): Moved to cli/cli-cmds.c.
669 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
670 (get_first_line_listed): New accessor function.
671 (get_lines_to_list): New accessor function.
672 (get_current_source_symtab_and_line): New function. Retrieves the
673 position in the source code that we consider current.
674 (get_current_or_default_source_symtab_and_line): New function.
675 Like the above but attempts to determine a default position if one
676 is not currently defined.
677 (set_current_source_symtab_and_line): New function. Sets the source
678 code position considered current and returns the previously set one.
679 (clear_current_source_symtab_and_line): Reset stored information about
680 a current source line.
681 (_initialize_source): Remove registration for the "list" command and
683 * source.h: Add declarations for the new functions above.
684 * symtab.h: Remove declarations for the global variables mentioned
686 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
687 obtain current source line.
688 * linespec.c (decode_line_1): Ditto.
689 * macroscope.c (default_macro_scope): Ditto.
690 * scm-lang.c (scm_unpac): Ditto.
691 * stack.c (print_frame_info_base): Ditto.
692 * symfile.c (clear_symtab_users): Ditto.
693 * symtab.c (decode_line_spec): Ditto.
694 * cli/cli-cmds.c (list_command): Moved here from source.c.
695 (ambiguous_line_spec): Moved here from source.c.
696 (_init_cli_cmds): Add definition for "list" and its alias.
697 * Makefile.in: Update dependencies.
699 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
701 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
702 with what gcc thinks is correct.
704 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
706 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
707 multiple register push instruction.
709 2002-09-19 Jim Blandy <jimb@redhat.com>
711 Add support for distinct host and target character sets.
712 * charset.c, charset.h: New files.
713 * c-exp.y: #include "charset.h".
714 (yylex): Convert character and string literals to the target
715 character set, before returning them as the semantic value of the
717 * c-lang.c: #include "charset.h".
718 (c_emit_char): Use charset-specific methods to recognize
719 characters with backslash escape forms, to decide which characters
720 to print literally and which to print using numeric escape
721 sequences, and to convert target characters to host characters
723 * utils.c: #include "charset.h".
724 (no_control_char_error): New function.
725 (parse_escape): Use charset-specific methods to recognize
726 backslash escapes, parse `control character' notation, and convert
727 characters from the host character set to the target character set.
728 * configure.in: Set the default host character set.
729 Check where to find iconv, and what its argument types might be.
730 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
731 * Makefile.in (SFILES): List charset.c.
732 (COMMON_OBS): List charset.o.
733 (charset.o): New rule.
734 (charset_h): New header dependency variable.
735 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
736 (LIBICONV): New variable, set by configure.
737 (CLIBS): Include $(LIBICONV) here.
738 * aclocal.m4, config.in, configure: Regenerated.
740 2002-09-19 Joel Brobecker <brobecker@gnat.com>
742 * ada-exp.y: Add missing semicolons to end rules. Fixes a
745 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
747 * gdb_mbuild.sh: New file.
749 2002-09-19 Andrew Cagney <ac131313@redhat.com>
751 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
753 2002-09-18 Andrew Cagney <ac131313@redhat.com>
755 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
756 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
757 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
758 valops.c, value.h: Revert previous change.
760 2002-09-18 Michael Snyder <msnyder@redhat.com>
762 Preliminary support for Objective-C:
763 * defs.h (language_objc): New enum value.
764 (puts_filtered_tabular): Declaration only, exported from utils.c.
765 (skip_quoted): Delete, declared in completer.h.
766 * c-exp.y: Include completer.h.
769 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
770 New operator enum values.
771 * language.h (CAST_IS_CONVERSION): Test for language_objc.
772 * language.c (binop_result_type): Handle language_objc case.
773 (integral_type, character_type, string_type, boolean_type,
774 structured_type, binop_type_check): Ditto.
775 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
776 (struct objc_specific): Add to general_symbol_info.
777 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
778 (SYMBOL_DEMANGLED_NAME): Handle objc case.
779 * parser-defs.h (struct objc_class_str): New struct type.
780 (start_msglist, end_msglist, add_msglist): Declaration only,
781 exported from objc-lang.c.
782 * value.h (value_of_local, value_nsstring,
783 call_function_by_hand_expecting_type): Exported from valops.c.
784 * valops.c (find_function_addr): Export.
785 (call_function_by_hand_expecting_type): New function.
786 (value_of_local): New function.
787 * symfile.c (init_filename_language_table): Add ".m" extension
789 * utils.c (puts_filtered_tabular): New function.
790 (fprintf_symbol_filtered): Add objc demangling support (disabled).
791 (set/show demangle): Extend help-string to refer to ObjC.
792 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
793 * stabsread.c (symbol_reference_defined): Objective-C symbols
794 may contain colons: make allowances when scanning stabs strings
796 (objc_find_colon): New function.
797 * printcmd.c (address_info): If language == objc then print
798 "self" instead of "this".
799 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
800 OP_NSSTRING, and OP_SELF.
801 (prefixify_subexp): Ditto.
802 * source.c (print_source_lines): Mention objc in comment.
803 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
806 2002-09-18 Andrew Cagney <ac131313@redhat.com>
808 * complaints.h: Update copyright.
809 (struct complaints): Declare.
810 (struct complaint): Make `message' constant.
811 (internal_complaint): Declare.
812 (complaint): Declare.
813 (complaint_root): Delete declaration.
814 (symfile_complaints): Delete declaration.
815 (struct complaints): Add opaque declaration.
816 (clear_complaints): Add a complaints parameter.
817 * complaints.c: Update copyright.
818 (enum complaint_series): Define.
819 (complaint_root): Delete.
820 (struct complaints): Define.
821 (complaint_sentinel, symfile_complaint_book): New variables.
822 (symfile_explanations, symfile_complaints): New variables.
824 (get_complaints): New function.
825 (vcomplaint): New function.
826 (complaint): New function.
827 (internal_complaint): New function.
828 (complain): Call vcomplain with symfile_complaint.
829 (clear_complaints): Rewrite.
830 (_initialize_complaints): Use add_setshow_command.
831 * Makefile.in (complaints.o): Update dependencies.
832 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
833 to call to clear_complaints.
834 (new_symfile_objfile, reread_symbols): Ditto.
835 (oldsyms_complaint): Delete.
836 (empty_symtab_complaint, unknown_option_complaint): Delete.
837 (free_named_symtabs): Use complaint instead of complain.
839 2002-09-18 Michael Snyder <msnyder@redhat.com>
841 Contributed by Apple Computer, Inc. Merged with current sources
842 by Adam Fedor <fedor@doc.com> [cagney].
844 * objc-lang.c: First clean-up round: comments, indentation.
845 * objc-lang.h: Ditto.
846 * objc-lang.y: Ditto.
848 2002-09-18 Andrew Cagney <ac131313@redhat.com>
850 * maint.c (maintenance_internal_error): Print the parameter as the
852 (maintenance_internal_warning): New function.
853 (_initialize_maint_cmds): Add command `maint internal-warning'.
855 * defs.h (internal_warning, internal_vwarning): Declare.
856 * utils.c (struct internal_problem): Define.
857 (internal_vproblem): New function.
858 (internal_warning): New function.
859 (internal_vwarning): New function.
860 (internal_warning_problem, internal_error_problem): New variables.
861 (internal_verror): Just call internal_vproblem.
863 2002-09-18 Michael Snyder <msnyder@redhat.com>
865 * objc-lang.c: New file, support for Objective-C.
866 Preliminary check-in, not yet integrated into gdb.
867 * objc-lang.h: New file.
868 * objc-exp.y: New file.
870 2002-09-18 Andrew Cagney <ac131313@redhat.com>
872 * infrun.c (signal_stop_update): Convert definition to ISO C.
873 (signal_print_update): Ditto.
874 (signal_pass_update): Ditto.
875 * inflow.c (terminal_save_ours): Ditto.
877 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
880 * config/djgpp/fnchange.lst: Handle name clashes between
881 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
884 * i386-linux-tdep.h: Fix tipo.
886 2002-09-18 Adam Fedor <fedor@gnu.org>
888 * MAINTAINERS: Add myself to the Write After Approval list.
890 2002-09-18 Jim Blandy <jimb@redhat.com>
892 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
893 texthigh and textlow to reader-specific structs caused
894 objfile_relocate to miss them. This is fixable, but the work that
895 the change was supposed to prepare GDB for never got done anyway.
897 2002-09-18 David Carlton <carlton@math.stanford.edu>
899 * MAINTAINERS: Alphabetize Write After Approval list.
901 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
904 * values.c (value_static_field): Call read_var_value.
906 2002-09-18 Andrew Cagney <ac131313@redhat.com>
908 * valops.c (hand_function_call): Align the initial stack pointer
909 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
910 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
912 * mips-tdep.c (mips_frame_align): New function.
913 (mips_gdbarch_init): Set frame_align.
914 * gdbarch.sh (FRAME_ALIGN): New method.
915 * gdbarch.h, gdbarch.c: Re-generate.
917 2002-09-18 Michal Ludvig <mludvig@suse.cz>
919 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
922 2002-09-17 Andrew Cagney <ac131313@redhat.com>
924 * NEWS: Mention that MIPS $fp behavior changed.
925 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
926 reference to FP_REGNUM.
927 (mipsnbsd_cannot_store_register): Ditto.
928 * mips-linux-nat.c: Update copyright.
929 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
930 (mips_linux_cannot_store_register): Ditto.
931 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
932 * config/mips/tm-mips.h: Update copyright.
933 (FP_REGNUM): Delete macro.
934 (MIPS_REGISTER_NAMES): Replace "fp" with "".
935 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
936 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
937 (mips_r3041_reg_names, mips_r3051_reg_names)
938 (mips_r3081_reg_names): Replace "fp" with "".
941 2002-09-17 Theodore A. Roth <troth@verinet.com>
943 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
944 generic_read_register_dummy() (PR gdb/703).
945 (avr_push_return_address): #if 0 out unused vars.
946 (avr_gdbarch_init): Enable use of avr_push_return_address().
948 2002-09-17 Michael Snyder <msnyder@redhat.com>
950 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
951 RTE will take care of it.
953 2002-09-17 Andrew Cagney <ac131313@redhat.com>
955 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
956 invalid, return SP_REGNUM.
958 2002-09-17 Michael Snyder <msnyder@redhat.com>
960 * mips-tdep.c (mips_pop_frame): Read saved values of floating
961 point registers without sign extension.
963 2002-09-17 Andrew Cagney <cagney@redhat.com>
965 * blockframe.c (deprecated_read_register_dummy): Rename
966 generic_read_register_dummy.
967 * frame.c (frame_unwind_signed_register): New function.
968 (frame_unwind_unsigned_register): New function.
969 * frame.h (frame_unwind_signed_register): Declare.
970 (frame_unwind_unsigned_register): Declare.
971 (deprecated_read_register_dummy): Rename
972 generic_read_register_dummy.
974 * h8300-tdep.c (h8300_frame_chain): Update.
975 (h8300_frame_saved_pc): Update.
976 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
977 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
978 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
979 (s390_frame_chain): Update.
980 * v850-tdep.c (v850_find_callers_reg): Update.
981 (v850_frame_saved_pc): Update.
982 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
983 (m32r_find_callers_reg): Update.
984 (m32r_frame_saved_pc): Update.
985 * sh-tdep.c (sh_find_callers_reg): Update.
986 (sh64_get_saved_pr): Update.
987 (sh_init_extra_frame_info): Update.
988 (sh_init_extra_frame_info): Update.
989 (sh64_init_extra_frame_info): Update.
990 (sh64_init_extra_frame_info): Update.
991 * mcore-tdep.c (mcore_find_callers_reg): Update.
992 (mcore_frame_saved_pc): Update.
993 (mcore_init_extra_frame_info): Update.
994 * i386-tdep.c (i386_frame_saved_pc): Update.
995 * ia64-tdep.c (ia64_frame_saved_pc): Update.
996 (ia64_init_extra_frame_info): Update.
997 (ia64_init_extra_frame_info): Update.
998 * d10v-tdep.c (d10v_frame_saved_pc): Update.
999 * cris-tdep.c (cris_init_extra_frame_info): Update.
1000 * avr-tdep.c (avr_frame_chain): Update.
1001 (avr_init_extra_frame_info): Update.
1002 (avr_frame_saved_pc): Update.
1003 * arm-tdep.c (arm_find_callers_reg): Update.
1004 (arm_init_extra_frame_info): Update.
1005 (arm_frame_saved_pc): Update.
1007 2002-09-17 Tom Tromey <tromey@redhat.com>
1009 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1012 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1014 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1015 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1017 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1020 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1022 * osfsolib.c: Remove file, replaced by solib-osf.c.
1023 * Makefile.in: Remove compilation rules for osfsolib.c.
1025 2002-09-16 David Carlton <carlton@math.stanford.edu>
1027 * cp-valprint.c (cp_print_class_method): Correct args to
1028 check_stub_method_group.
1030 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1032 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1033 `set architecture'. Unify naming convention of functions.
1034 (h8300_skip_prologue): Improve prologue analysis.
1035 (h8300_push_arguments): Rewritten to more closely match GCC's
1036 bizarre argument-passing behavior, along with the comment describing
1038 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1039 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1040 sim, remote-e7000.c, remote-hms.c and remote.c
1042 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1044 * i386-tdep.c (gdb_print_insn_i386): Removed.
1045 (i386_print_insn): New function.
1046 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1047 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1050 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1052 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1055 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1057 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1058 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1059 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1061 2002-09-13 Christopher Faylor <cgf@redhat.com>
1063 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1065 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1067 * gdbtypes.c (check_stub_method): Make static.
1068 (check_stub_method_group): New function.
1069 * gdbtypes.h: Update prototypes.
1070 * cp-support.c: New file.
1071 * cp-support.h: New file.
1073 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1074 (update_method_name_from_physname): New function.
1075 (read_member_functions): Correct method names for operators
1076 and v3 constructors/destructors. Separate v2 constructors and
1078 * Makefile.in (stabsread.o): Update dependencies.
1079 (SFILES): Add cp-support.c.
1080 (COMMON_OBS): Add cp-support.o.
1081 (cp_support_h, cp-support.o): Add.
1083 * cp-valprint.c (cp_print_class_method): Call
1084 check_stub_method_group instead of check_stub_method. Remove
1086 * p-valprint.c (pascal_object_print_class_method): Likewise.
1087 * valops.c (search_struct_method): Likewise.
1088 (find_method_list, value_struct_elt_for_reference): Likewise.
1090 2002-09-13 Andrew Cagney <cagney@redhat.com>
1092 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1095 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1097 * frame.c (find_saved_register): Delete function.
1098 * frame.h (find_saved_register): Delete declaration.
1101 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1103 * mips-tdep.c (read_next_frame_reg): Re-hack using
1104 frame_register_unwind.
1106 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1108 * mips-tdep.c (mips_get_saved_register): Re-hack using
1109 frame_register_unwind.
1111 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1113 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1114 vector. Will be useful for Interix.
1115 * gdbarch.h, gdbarch.c: Regenerate.
1117 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1118 name of the malloc function by NAME_OF_MALLOC.
1120 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1122 * value.h (find_function_in_inferior): Add const keyword to
1123 one of the parameters. Allows us to invoke this function with
1125 * valops.c (find_function_in_inferior): Likewise.
1127 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1129 * exec.c (xfer_memory): Fix compilation warning with old versions
1131 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1133 2002-09-12 David Carlton <carlton@math.stanford.edu>
1135 * symtab.h: Run through gdb_indent.h.
1136 Add 2002 to Copyright year list.
1138 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1140 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1142 * MAINTAINERS: Add myself to write after approval list.
1144 2002-09-11 J. Brobecker <brobecker@gnat.com>
1146 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1148 2002-09-11 J. Brobecker <brobecker@gnat.com>
1150 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1153 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1155 * procfs.c (do_detach): Clear current signal, not just fault.
1156 Corrects problem with breakpoint trap signal leaking to detached
1159 2002-09-10 Michael Snyder <msnyder@redhat.com>
1161 * buildsym.c (finish_block): Protect against null pointer.
1163 2002-09-10 Andrew Cagney <cagney@redhat.com>
1165 * infcmd.c (default_print_registers_info): Send all output to
1166 ``file'' instead of ``gdb_stdout''.
1168 2002-09-10 Michael Snyder <msnyder@redhat.com>
1170 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1171 LONGEST, and use signed register read (addresses are sign-
1174 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1176 * event-loop.c (gdb_do_one_event): Make public.
1177 * event-loop.h (gdb_do_one_event): Declare.
1179 2002-09-10 Jeff Law <law@redhat.com>
1181 * infttrace.c (child_resume): Simplify and rework to avoid
1184 2002-09-09 Fred Fish <fnf@intrinsity.com>
1186 * printcmd.c (print_scalar_formatted): "len" is the number of
1187 target bytes, NOT the number of target bits.
1189 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1191 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1192 * top.c (init_main): Set rl_terminal_name.
1194 2002-09-08 Aidan Skinner <aidan@velvet.net>
1196 * ada-lang.c (ada_array_bound, ada_type_match,
1197 _initialize_ada_language): Fix K&R definitions.
1198 * ada-tasks.c (get_current_task): Fix K&R definitions.
1199 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1201 2002-09-07 Christopher Faylor <cgf@redhat.com>
1203 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1206 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1208 * i386-tdep.c (i386_register_virtual_type,
1209 i386_register_convertible, i386_register_convert_to_virtual,
1210 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1211 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1212 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1213 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1214 Don't set push_arguments twice.
1216 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1217 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1218 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1219 sigtramp_end to NULL.
1220 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1222 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1224 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1227 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1228 * gdbarch.h, gdbarch.c: Re-generate.
1229 * blockframe.c (find_pc_sect_partial_function): Convert to use
1230 SIGTRAMP_START_P predicate.
1232 2002-09-05 Michael Snyder <msnyder@redhat.com>
1234 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1235 generic_dummy_frame method and old method. Also distinguish
1236 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1237 (arm_extract_return_value): Use new regcache method.
1239 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1240 adjustment that doesn't conform to the ABI.
1241 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1242 saved regcache, not from current regcache.
1244 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1246 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1249 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1251 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1252 if arm_apcs_32 is false.
1254 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1256 GDB 5.3 branch created.
1258 2002-09-03 Theodore A. Roth <troth@verinet.com>
1260 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1261 generic_unwind_get_saved_register.
1263 2002-09-03 David Carlton <carlton@math.stanford.edu>
1265 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1266 argument (PR gdb/653). Update call to smash_to_method_type.
1267 (read_structure_scope): Update call to dwarf2_add_member_fn.
1269 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1271 * x86-64-linux-tdep.c: Include gdb_string.h
1272 * x86-64-linux-nat.c: Ditto.
1274 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1276 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1277 when YYDEBUG is set to 1.
1278 * c-exp.y: Likewise.
1279 * f-exp.y: Likewise.
1280 * jv-exp.y: Likewise.
1281 * m2-exp.y: Likewise.
1282 * p-exp.y: Likewise.
1284 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1286 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1288 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1289 solib_svr4_fetch_link_map_offsets to
1290 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1291 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1292 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1293 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1294 solib-svr4.o, and solib-legacy.o.
1295 * config/i386/tm-nbsd.h: Include solib.h.
1297 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1299 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1300 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1301 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1302 comment noting that this needs its own target configuration.
1303 * config/i386/nbsd.mt: New file.
1304 * config/i386/nbsdaout.mt: Remove.
1305 * config/i386/nbsdelf.mt: Ditto.
1306 * config/i386/tm-nbsdaout.h: Ditto.
1308 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1310 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1311 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1312 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1314 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1315 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1316 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1318 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1320 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1321 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1322 * i386-tdep.h (i386bsd_init_abi): New prototype.
1323 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1324 function declaration.
1325 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1326 for NetBSD-a.out or NetBSD-ELF.
1327 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1328 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1329 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1330 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1332 (i386nbsd_pc_in_sigtramp): New function.
1333 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1334 i386nbsd_pc_in_sigtramp.
1335 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1336 and i386nbsdelf_init_abi OS ABI handlers.
1337 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1338 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1340 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1342 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1343 registers if the target really has them.
1345 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1347 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1350 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1352 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1354 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1355 (alphanbsd_skip_sigtramp_frame): New functions.
1356 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1357 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1358 to alphanbsd_sigcontext_addr.
1360 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1362 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1364 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1365 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1366 nbsd_pc_in_sigtramp.
1367 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1368 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1369 * nbsd-tdep.c: Include gdb_string.h.
1370 (nbsd_pc_in_sigtramp): New function.
1371 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1372 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1373 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1374 ppcnbsd_pc_in_sigtramp.
1375 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1376 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1377 shnbsd_pc_in_sigtramp.
1378 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1379 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1380 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1382 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1384 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1385 watchpoints to NULL.
1386 (insert_breakpoints): set val field of watchpoints if NULL.
1389 2002-08-29 Jim Blandy <jimb@redhat.com>
1391 * symtab.c (lookup_symbol_aux): In the cases where we find a
1392 minimal symbol of an appropriate name and use its address to
1393 select a symtab to read and search, use `name' (as passed to us)
1394 as the demangled name when searching the symtab's global and
1395 static blocks, not the minsym's name.
1397 2002-08-29 Keith Seitz <keiths@redhat.com>
1399 * stack.c (print_frame_info_base): Always set current_source_symtab
1400 and current_source_line.
1402 2002-08-29 Donn Terry <donnte@microsoft.com>
1404 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1406 2002-08-28 Keith Seitz <keiths@redhat.com>
1408 * stack.c (select_frame): Add FIXME concerning selected-frame
1410 (select_frame_command): Send selected-frame-level-changed
1411 event notification, but only if the level actually changed.
1412 (up_silently_base): Add selected-frame-level-changed event
1414 (down_silently_base): Likewise.
1416 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1418 * Makefile.in: Update dependencies for all gdb/*.c files.
1420 2002-08-27 Tom Tromey <tromey@redhat.com>
1422 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1423 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1424 Update dependencies.
1425 * i387-tdep.c: Include gdb_string.h.
1426 * osabi.c: Likewise.
1427 * i386-linux-nat.c: Likewise.
1428 * lin-lwp.c: Likewise.
1429 * ax-gdb.c: Likewise.
1430 * signals/signals.c: Likewise.
1431 * jv-valprint.c: Likewise.
1432 * p-lang.c: Likewise.
1433 * c-valprint.c: Likewise.
1434 * cp-abi.c: Likewise.
1436 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1438 * cli/cli-script.h (copy_command_lines): Export.
1439 * breakpoint.c: Include cli/cli-script.h.
1440 * Makefile.in (breakpoint.o): Update dependencies.
1442 2002-08-26 Michael Snyder <msnyder@redhat.com>
1444 * breakpoint.c (insert_breakpoints): Protect all references
1445 to 'process_warning'. Shorten long lines.
1447 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1449 * cli/cli-script.c (copy_command_lines): New function.
1450 * defs.h (copy_command_lines): Export.
1451 * testsuite/gdb.base/commands.exp: New tests for commands
1452 attached to a temporary breakpoint, and for commands that
1453 delete the breakpoint they are attached to.
1455 2002-08-26 Michael Snyder <msnyder@redhat.com>
1457 * breakpoint.c (bpstat_stop_status): Instead of copying the
1458 pointer to the breakpoint commands struct, make a new copy
1459 of the struct and point to that.
1460 (bpstat_clear): Free the commands struct.
1461 (bpstat_clear_actions): Free the commands struct.
1462 (bpstat_do_actions): Free the command actions. Also execute
1463 the local cleanups, instead of deleting them.
1464 (delete_breakpoint): Leave the commands field of the bpstat
1465 chain alone -- it will be freed later.
1467 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1469 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1470 deleted in 2002-08-20 commit. This function is still used by
1473 2002-08-26 Keith Seitz <keiths@redhat.com>
1475 * gdb-events.sh: Add selected-frame-level-changed event.
1476 * gdb-events.c: Regenerated.
1477 * gdb-events.h: Regenerated.
1479 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1482 * inflow.c (terminal_save_ours): New function to save terminal
1484 * inferior.h (terminal_save_ours): Declare.
1485 * target.c (debug_to_terminal_save_ours): New function.
1486 (cleanup_target): Defaults to_terminal_save_ours.
1487 (update_current_target): Inherit to_terminal_save_ours.
1488 (setup_target_debug): Set to_terminal_save_ours.
1489 * target.h (target_terminal_save_ours): New to save terminal settings.
1490 (target_ops): New member to_terminal_save_ours.
1491 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1492 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1493 * inftarg.c (init_child_ops): Likewise.
1494 * m3-nat.c (init_m3_ops): Likewise.
1495 * procfs.c (init_procfs_ops): Likewise.
1496 * wince.c (init_child_ops): Likewise.
1497 * win32-nat.c (init_child_ops): Likewise.
1498 * sol-thread.c (init_sol_thread_ops): Likewise.
1500 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1502 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1503 use regcache_* functions.
1504 (i386_gdbarch_init): Set store_return_value instead of
1505 deprecated_store_return_value.
1507 * regcache.c (regcache_raw_write_signed,
1508 regcache_raw_write_unsigned): New functions.
1509 * regcache.h (regcache_raw_write_signed,
1510 regcache_raw_write_unsigned): New prototypes.
1512 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1514 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1515 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1516 source file dependencies. Cleanup corresponding generator rules.
1518 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1520 * regcache.h (register_offset_hack): Declare.
1521 (regcache_cooked_read_using_offset_hack): Declare.
1522 (regcache_cooked_write_using_offset_hack): Declare.
1524 * regcache.c (register_offset_hack): New function.
1525 (regcache_cooked_read_using_offset_hack): New function.
1526 (regcache_cooked_write_using_offset_hack): New function.
1527 (regcache_dump): Check that the registers, according to their
1528 offset, are packed hard against each other.
1529 (cooked_xfer_using_offset_hack): New function.
1531 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1533 * regcache.c (struct regcache_descr): Add field register_type.
1534 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1536 (init_regcache_descr): Initialize register_type. Pass the descr
1537 to init_legacy_regcache_descr. Use register_type instead of
1538 REGISTER_VIRTUAL_TYPE.
1539 (register_type): New function.
1540 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1541 * regcache.h (register_type): Declare.
1543 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1545 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1546 instead of deprecated_store_return_value. Fix fallout from
1547 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1549 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1551 * regcache.c (max_register_size): New function.
1552 (init_legacy_regcache_descr): Ensure that max_register_size is
1553 large enough for REGISTER_VIRTUAL_SIZE.
1554 * regcache.h (max_register_size): Declare.
1556 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1558 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1560 (e500_extract_return_value): Change type of valbuf pointer to
1563 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1565 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1568 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1569 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1570 long long) to prevent compiler warning on 64-bit systems.
1572 2002-08-23 Andrew Cagney <cagney@redhat.com>
1574 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1575 (DEPRECATED_STORE_RETURN_VALUE): New method.
1576 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1577 * gdbarch.h, gdbarch.c: Re-generate.
1579 * values.c (set_return_value): Pass current_regcache to
1581 * arch-utils.h (legacy_store_return_value): Declare.
1582 * arch-utils.c (legacy_store_return_value): New function.
1583 (legacy_extract_return_value): Update parameters.
1585 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1587 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1588 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1589 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1590 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1591 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1592 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1593 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1594 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1595 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1596 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1599 * i386-tdep.c (i386_extract_return_value): Update.
1600 * arch-utils.c (legacy_extract_return_value): Update.
1601 * frv-tdep.c (frv_gdbarch_init): Update.
1602 * cris-tdep.c (cris_gdbarch_init): Update.
1603 * d10v-tdep.c (d10v_gdbarch_init): Update.
1604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1605 * m68k-tdep.c (m68k_gdbarch_init): Update.
1606 * mcore-tdep.c (mcore_gdbarch_init): Update.
1607 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1608 * s390-tdep.c (s390_gdbarch_init): Update.
1609 * sparc-tdep.c (sparc_gdbarch_init): Update.
1610 * sh-tdep.c (sh_gdbarch_init): Update.
1611 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1612 * v850-tdep.c (v850_gdbarch_init): Update.
1613 * avr-tdep.c (avr_gdbarch_init): Update.
1614 * ia64-tdep.c (ia64_gdbarch_init): Update.
1615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1616 * vax-tdep.c (vax_gdbarch_init): Update.
1617 * alpha-tdep.c (alpha_gdbarch_init): Update.
1618 * arm-tdep.c (arm_gdbarch_init): Update.
1619 * mips-tdep.c (mips_gdbarch_init): Update.
1620 * i386-tdep.c (i386_gdbarch_init): Update.
1622 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1624 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1625 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1627 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1629 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1632 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1634 * infrun.c (handle_inferior_event): Move a comment outside of a
1635 function call, in order to avoid indent reformatting this part
1636 of the code in an unreadable way.
1638 2002-08-23 Grace Sainsbury <graces@redhat.com>
1640 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1641 when breakpoints fail. Move general breakpoint error messages to
1643 * breakpoint.c (insert_breakpoints): Change warnings when
1644 breakpoints are nto inserted to specify the type. Remove call to
1645 memory_error when hardware breakpoints can't be inserted. Remove
1646 multiple calls to warning so all messages are sent to the user at
1648 (delete_breakpoints): Make insert error messsages more explicit.
1650 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1652 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1653 gdbserver/ChangeLog.
1655 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1657 * i386-tdep.c: Include "objfiles.h".
1658 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1659 skip_trampoline_code.
1660 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1661 (CPLUS_MARKER): Define to '.'.
1663 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1665 (linux_corefile_thread_callback): Increase args->num_notes.
1666 (linux_make_note_section): Initialize thread_args.num_notes, and
1667 use it to determine whether notes for any threads were created.
1669 2002-08-23 Donn Terry <donnte@microsoft.com>
1671 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1672 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1674 (write_with_trace): Conditionalize out the switch branch handling
1675 PCSHOLD if the corresponding macro is not defined. Likewise for
1676 PRSABORT and PRSTOP.
1677 This change will be needed by the Interix port.
1679 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1681 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1682 write_register wherever possible instead of manipulating the
1683 register bytes directly.
1684 Assign VALUE_CONTENTS to a variable and use that.
1685 The GPR numbers are now dependent on the architecture.
1687 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1689 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1691 (skip_prologue): Add support for BookE/e500 instructions.
1692 (e500_extract_return_value): New function.
1693 (frame_get_saved_regs): Add support for saving ev registers and
1695 (e500_store_return_value): New function.
1696 (rs6000_gdbarch_init): Move up default intializations of
1697 deprecated_extract_return_value and store_return_value. Overwrite
1698 init of store_return_value with e500 specific version.
1699 Set extract_return_value for e500.
1701 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1703 * blockframe.c (generic_call_dummy_register_unwind): Use
1704 regcache_cooked_read to catch cases in which the variable is
1705 stored in a pseudo register.
1707 2002-08-22 Andrew Cagney <cagney@redhat.com>
1709 * NEWS: Mention that the i960 has been made obsolete.
1710 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1712 (remote-nrom.o): Obsolete target.
1713 (remote-nindy.o, i960-tdep.o): Ditto.
1714 * remote-nrom.c: Make file obsolete.
1715 * remote-nindy.c, remote-vx960.c: Ditto.
1716 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1717 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1718 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1719 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1720 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1721 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1722 i960-*-vxworks* obsolete.
1723 * MAINTAINERS: Note that the i960 is obsolete.
1725 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1727 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1728 detach to allow reinitialization.
1730 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1732 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1735 2002-08-22 Jim Blandy <jimb@redhat.com>
1737 * coffread.c (coff_symfile_read): Don't try to read the line
1738 number table from disk if the image file doesn't have a symbol
1739 table; we'll never actually look at the info anyway, and Windows
1740 ships DLL's with bogus file offsets for the line number data.
1742 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1744 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1747 2002-08-21 Michael Snyder <msnyder@redhat.com>
1749 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1750 (MSYMBOL_SIZE): Replace macro with function.
1751 (DEFAULT_MIPS_TYPE): Delete unused macro.
1752 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1753 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1755 2002-08-21 Jim Blandy <jimb@redhat.com>
1757 * valops.c (value_cast): Simplify and correct logic for doing a
1758 static cast from a pointer to a base class to a pointer to a
1761 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1763 * infcmd.c (default_print_registers_info): Replace
1765 (registers_info): Use gdbarch_print_registers_info instead of
1767 * inferior.h (default_print_registers_info): Replace
1769 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1770 (DO_REGISTERS_INFO): Change to a predicate function.
1771 * gdbarch.h, gdbarch.c: Regenerate.
1773 2002-08-21 Keith Seitz <keiths@redhat.com>
1775 * gdb-events.sh: Add target-changed event.
1776 * gdb-events.c: Regenerated.
1777 * gdb-events.c: Regenerated.
1778 * valops.c (value_assign): Add target-changed event notification
1779 to inlval_register, lval_memory, and lval_reg_frame_relative.
1781 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1783 * NEWS: Add an entry regarding the improvement of the next/step
1784 operation on Alpha Tru64 multi-processor machines.
1786 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1788 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1790 * Makefile.in: Update all _h macro definitions.
1791 * Makefile.in (install-gdbtk): Move to install section.
1792 (rdi-share/libangsd.a): Move to end of file.
1794 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1796 * frame.c (frame_register_unwind): When a register, set addrp to
1797 the register's byte.
1799 2002-08-20 Michael Snyder <msnyder@redhat.com>
1801 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1802 used locally, so move them from the target machine header to here.
1803 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1804 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1806 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1808 2002-08-20 Andrew Cagney <cagney@redhat.com>
1810 * NEWS: Mention that the Apollo line was made obsolete.
1811 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1812 m68*-hp-hpux* obsolete.
1813 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1814 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1815 * buildsym.c (make_blockvector): Make static.
1816 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1817 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1818 (ALLDEPFILES): Remove dstread.c.
1819 (dstread.o): Obsolete make rule.
1820 * dstread.c: Makefile obsolete.
1822 * config/m68k/hp300hpux.mt: Ditto.
1823 * config/m68k/hp300hpux.mh: Ditto.
1824 * config/m68k/hp300bsd.mt: Ditto.
1825 * config/m68k/hp300bsd.mh: Ditto.
1826 * config/m68k/apollo68b.mt: Ditto.
1827 * config/m68k/apollo68v.mh: Ditto.
1828 * config/m68k/apollo68b.mh: Ditto.
1830 2002-08-20 Michael Snyder <msnyder@redhat.com>
1832 * mips-tdep.c (mips_in_return_stub): Make static.
1833 (mips_gdbarch_init): Set in_solib_return_trampoline.
1834 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1836 2002-08-20 Michael Snyder <msnyder@redhat.com>
1838 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1839 * gdbarch.c, gdbarch.h: Regenerate.
1840 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1842 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1844 2002-08-20 Michael Snyder <msnyder@redhat.com>
1846 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1847 (mips_gdbarch_init): Set skip_trampoline_code,
1848 in_solib_call_trampoline.
1849 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1850 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1852 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1854 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1856 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1857 vector type for ev registers.
1858 (e500_pseudo_register_read): New function.
1859 (e500_pseudo_register_write): New function.
1860 (e500_dwarf2_reg_to_regnum): New function.
1861 (PPC_UISA_NOFP_SPRS): New macro.
1862 (PPC_EV_REGS): New macro.
1863 (PPC_GPRS_PSEUDO_REGS): New macro.
1864 (registers_e500): New register set for e500.
1865 (variants): Add e500 variant.
1866 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1867 before setting architectural dependent variations. Initialize ev
1868 registers numbers. Add case for e500 architecture. Set the
1869 number of pseudo registers.
1871 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1873 * rs6000-tdep.c: Clean up comments.
1875 2002-08-20 Andrew Cagney <cagney@redhat.com>
1877 * h8300-tdep.c: Re-indent file.
1879 2002-08-20 Jim Blandy <jimb@redhat.com>
1881 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1884 2002-08-20 Keith Seitz <keiths@redhat.com>
1886 * breakpoints.c (watch_command_1): Use internal breakpoint
1887 when setting a watchpoint_scope breakpoint.
1889 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1891 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1892 (build_builtin_type_vec64i): Ditto.
1893 (build_builtin_type_vec128): Ditto.
1894 (build_builtin_type_vec128i): Ditto.
1896 2002-08-19 Michael Snyder <msnyder@redhat.com>
1898 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1899 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1900 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1901 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1902 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1903 CALL_DUMMY_ADDRESS): Delete.
1904 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1905 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1906 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1907 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1908 push_return_address.
1909 (mips_register_raw_size, mips_eabi_use_struct_convention,
1910 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1911 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1912 mips_init_extra_frame_info, mips_eabi_push_arguments,
1913 mips_n32n64_push_arguments, mips_push_return_address,
1914 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1915 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1917 2002-08-19 Michael Snyder <msnyder@redhat.com>
1919 * mips-tdep.c (mips_frame_num_args): New function.
1920 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1921 frame_saved_pc, frame_args_address, frame_locals_address,
1922 frame_num_args, and frame_args_skip.
1923 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1924 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1925 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1926 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1928 2002-08-20 Michael Snyder <msnyder@redhat.com>
1930 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1931 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1932 * mips-tdep.c (mips_store_struct_return): New function.
1933 (mips_extract_struct_value_address): New function.
1934 (mips_gdbarch_init): Set store_struct_return and
1935 extract_struct_value_address.
1937 2002-08-20 David Carlton <carlton@math.stanford.edu>
1939 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1940 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1941 (read_file_scope): Check that line_header is nonzero before
1942 decoding macro information.
1944 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1946 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1947 flag the general-purpose registers as floating-point on targets
1948 that don't support the floating-point registers.
1950 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1952 * rs6000-tdep.c (altivec_register_p): Delete.
1953 (rs6000_do_altivec_registers): Delete.
1954 (rs6000_altivec_registers_info): Delete.
1955 (rs6000_do_registers_info): Delete.
1956 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1957 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1959 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1961 * infcmd.c (do_registers_info): Print vector registers in hex
1963 (print_vector_info): Check that printing registers
1965 (print_float_info): Ditto.
1967 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1969 * mips-tdep.c (mips_gdbarch_init): Update.
1970 (mips_o32_extract_return_value): Rewrite.
1971 (mips_o32_store_return_value): Rewrite.
1972 (mips_o32_xfer_return_value): New function.
1973 (mips_xfer_register): Tweak debug print message. Allow for
1974 buf_offset when dumping the value transfered.
1976 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1978 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1979 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1980 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1981 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1982 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1984 2002-08-14 Michael Snyder <msnyder@redhat.com>
1986 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1988 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1990 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1992 (P): New macro to define a register as a pseudo register.
1993 (R, R4, R8, R16, FR32, R64, R0): Updated.
1994 (struct variant): Add new fields for number of pseudo registers
1995 and number of total registers.
1996 (tot_num_registers): New macro replacing....
1997 (num_registers): ...deleted macro.
1998 (num_registers): New function.
1999 (num_pseudo_registers): New function.
2000 (variants): Update all variants to intialize new fields correctly.
2001 Postpone initialization of number of pseudo regs and real regs.
2002 (init_variants): New function.
2003 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2006 2002-08-19 David Carlton <carlton@math.stanford.edu>
2008 * valops.c (search_struct_field): Change error message to treat
2009 return value of 0 from value_static_field as meaning that field is
2011 (value_struct_elt_for_reference): Ditto.
2012 * values.c (value_static_field): Treat an unresolved location the
2013 same as a nonexistent symbol. Fix PR gdb/635.
2014 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2015 enclosed. Fix PR gdb/574.
2016 * MAINTAINERS: Add self to Write After Approval list.
2018 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2020 * mips-tdep.c (mips_xfer_register): New function.
2021 (mips_n32n64_extract_return_value): Rewrite.
2022 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2023 instead of deprecated_extract_return_value.
2025 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2027 * rs6000-tdep.c (TDEP): Delete macro.
2028 (branch_dest): Replace use of TDEP macro with its body.
2029 (rs6000_pop_frame): Ditto.
2030 (rs6000_push_arguments): Ditto.
2031 (rs6000_skip_trampoline_code): Ditto.
2032 (rs6000_frame_saved_pc): Ditto.
2033 (rs6000_frame_chain): Ditto.
2034 (rs6000_register_name): Ditto.
2035 (rs6000_register_byte): Ditto.
2036 (rs6000_register_raw_size): Ditto.
2037 (rs6000_register_virtual_type): Ditto.
2038 (rs6000_register_convertible): Ditto.
2039 (rs6000_convert_from_func_ptr_addr): Ditto.
2041 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2043 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2045 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2046 MIPS_LINUX_JB_ELEMENT_SIZE.
2047 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2048 for MAX_REGISTER_RAW_SIZE arrays.
2049 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2050 MIPS_LINUX_JB_ELEMENT_SIZE.
2052 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2054 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2056 2002-08-19 Aidan Skinner <aidan@velvet.net>
2058 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2059 ada-valprint.c ada-tasks.c.
2060 (YYFILES): Add ada-exp.y.
2061 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2062 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2063 (ada-exp.tab.o): New target.
2065 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2067 * regcache.c (regcache_xfer_part): New function.
2068 (regcache_raw_read_part): New function.
2069 (regcache_raw_write_part): New function.
2070 (regcache_cooked_read_part): New function.
2071 (regcache_cooked_write_part): New function.
2072 * regcache.h (regcache_raw_read_part): Declare.
2073 (regcache_raw_write_part): Declare.
2074 (regcache_cooked_read_part): Declare.
2075 (regcache_cooked_write_part): Declare.
2077 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2079 * remote.c (remote_open_1): Add async_p.
2080 (remote_async_open_1): Delete.
2081 (open_remote_target): Delete.
2082 (remote_open, extended_remote_open): Update calls to remote_open_1.
2083 (remote_async_open, extended_remote_async_open): Call
2084 remote_open_1 instead of remote_async_open_1.
2086 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2088 * blockframe.c: Fix a few coding standard violations.
2090 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2092 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2094 * config/i386/tm-i386sco5.h: ... here. File removed.
2095 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2097 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2098 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2099 (TM_FILE): Set to tm-i386.h.
2100 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2101 * config/i386/tm-i386v.h: Remove file.
2102 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2103 instead of "i386/tm-i386v.h".
2104 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2105 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2107 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2108 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2111 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2113 * config/i386/nm-i386v.h: Add protection against
2115 (i386_register_u_addr): Remove prototype.
2116 (register_u_addr): New prototype.
2117 (REGISTER_U_ADDR): Redefine accordingly.
2118 * i386v-nat.c: Improve several comments.
2119 (i386_register_u_addr): Change signature and rename to
2120 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2123 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2125 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2126 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2127 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2128 deprecated_extract_return_value.
2129 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2130 rename mips_o32o64_push_arguments.
2131 (mips_gdbarch_init): Update.
2132 (mips_extract_return_value): Delete.
2133 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2134 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2135 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2136 (mips_n32n64_extract_return_value): Clone
2137 mips_extract_return_value.
2138 (mips_store_return_value): Delete.
2139 (mips_o32_store_return_value): Clone mips_store_return_value.
2140 (mips_o64_store_return_value): Clone mips_store_return_value.
2141 (mips_eabi_store_return_value): Clone mips_store_return_value.
2142 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2144 2002-08-18 Aidan Skinner <aidan@velvet.net>
2146 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2147 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2149 2002-08-18 Aidan Skinner <aidan@velvet.net>
2151 * ada-lang.c: Run through gdb_indent.sh.
2152 * ada-lang.h: Run through gdb_indent.sh.
2153 * ada-tasks.c: Run through gdb_indent.sh.
2154 * ada-typeprint.c: Run through gdb_indent.sh.
2155 * ada-valprint.c: Run through gdb_indent.sh.
2157 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2159 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2162 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2164 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2166 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2167 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2169 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2170 write_register_gen instead of write_register_bytes.
2172 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2173 i[3456]-*-osf1mk* configurations have been made obsolete.
2174 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2175 i[3456]86-*-osf1mk* hosts obsolete.
2176 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2178 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2179 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2180 config/i386/i386m3.mt, config/i386/nm-m3.h,
2181 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2182 config/i386/i386mk.mh, config/i386/i386mk.mt,
2183 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2185 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2186 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2187 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2189 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2191 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2192 (hppa_value_returned_from_stack): Declare.
2193 (hppa_extract_return_value): Declare.
2194 * config/pa/hppa.mt: New file.
2195 * configure.tgt: Recognize hppa*-*-*.
2196 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2198 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2200 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2203 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2205 * top.c (gdb_rl_operate_and_get_next): Make sure
2206 operate-and-get-next functions correctly even when the history
2207 list is completely filled.
2209 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2211 * MAINTAINERS (Target Instruction Set Architectures): Rename
2212 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2213 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2214 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2215 already listed under Host/Native.
2217 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2218 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2221 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2223 * config/ia64/ia64.mt: New file.
2224 * config/alpha/alpha.mt: New file.
2225 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2226 ia64-linux-gnu. Mention that ia64-elf is broken.
2227 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2229 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2231 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2232 generic_func_frame_valid instead of func_frame_valid.
2234 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2236 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2237 procfs appears to be broken when debugging on multi-processor
2238 machines. So enable software single stepping in order to avoid
2239 using the procfs interface to do next/step operations, using
2240 internal breakpoints instead.
2242 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2243 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2244 make this pc address equal to the value it would have if the
2245 system stepping capability was used. Also set a new flag used
2246 to ensure that we don't readjust the PC one more time later.
2248 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2249 address by DECR_PC_AFTER_BREAK when software single step is
2250 in use for this architecture, as this has already been taken
2251 care of in handle_inferior_event().
2253 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2255 * infrun.c (handle_inferior_event): Minor reformatting, to make
2256 a rather long condition expression easier to read.
2258 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2260 * Makefile.in (gdbtk.o): Move to end of file.
2261 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2262 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2263 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2264 (gdbtk-wrapper.o, gdbres.o): Ditto.
2266 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2268 * Makefile.in (copying.o): Separate out compile rule.
2269 (hpux-thread.o, procfs.o, signals.o): Ditto.
2270 (v850ice.o, z8k-tdep.o): Ditto.
2271 (tui-file.o): Move to TUI section.
2272 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2273 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2275 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2277 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2278 skip_trampoline_code, for better namespace-proofing.
2280 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2282 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2284 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2288 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2289 signal, check whether we hit a breakpoint before checking for a
2290 single step breakpoint. Otherwise, GDB fails to notice that a
2291 breakpoint has been hit when stepping onto a breakpoint.
2293 2002-08-16 Keith Seitz <keiths@redhat.com>
2295 * gdb-events.sh (clear_gdb_event_hooks): New function.
2296 * gdb-events.c: Regenerate.
2297 * gdb-events.h: Regenerate.
2299 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2301 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2302 not_a_sw_breakpoint.
2303 * breakpoint.h (bpstat_stop_status): Add parameter names.
2305 2002-08-16 Grace Sainsbury <graces@redhat.com>
2307 * remote.c (remote_insert_hw_breakpoint)
2308 (remote_remove_hw_breakpoint): Fix calculation of length field
2311 2002-08-15 Michael Snyder <msnyder@redhat.com>
2313 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2314 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2315 (supply_fpregset): Ditto.
2317 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2318 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2319 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2320 (TARGET_READ_SP): Delete.
2321 (DO_REGISTERS_INFO): Delete.
2322 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2324 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2325 from macros to functions.
2327 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2328 (mips_register_convertible, mips_register_convert_to_virtual,
2329 mips_register_convert_to_raw): Make static.
2330 (mips_read_sp): New function.
2331 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2332 (mips_do_registers_info): Make static.
2333 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2334 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2335 (mips_register_convert_from_type, mips_register_convert_to_type):
2337 (mips_gdbarch_init): Set up function_start_offset,
2338 register_virtual_size, pc_in_sigtramp.
2340 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2342 * infcmd.c (vector_info): New function.
2343 (_initialize_infcmd): Add command "info vector".
2344 (print_vector_info): New function.
2346 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2347 * gdbarch.h, gdbarch.c: Regenerate.
2349 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2351 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2352 ``print_all''. Only print vector registers when ``print_all''.
2354 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2356 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2357 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2359 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2360 Add `args' parameter.
2361 * gdbarch.h, gdbarch.c: Regenerate.
2363 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2365 * infcmd.c (float_info): Call print_float_info.
2366 (print_float_info): New function. By default, print the
2367 floating-point registers.
2369 * arch-utils.h (default_print_float_info): Delete declaration.
2370 * arch-utils.c (default_print_float_info): Delete function.
2372 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2374 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2377 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2380 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2381 * configure.host: Make i[3456]86-*-aix host obsolete.
2382 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2383 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2384 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2385 config/i386/xm-i386aix.h: Make files obsolete.
2386 * i386aix-nat.c: Make file obsolete.
2387 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2388 (i386aix-nat.o): Make target obsolete.
2390 * config/i386/nm-gnu.h: Removed.
2391 * config/i386/nm-i386gnu.h: New file.
2392 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2393 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2395 * config/i386/tm-i386gnu.h: ... here. Removed.
2396 * config/i386/xm-i386gnu.h: Removed.
2397 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2398 (NAT_FILE): Set to nm-i386gnu.h.
2399 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2400 * i386-tdep.c: New file.
2401 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2402 (i386gnu-tdep.o): Specify dependencies.
2404 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2406 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2407 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2408 Adjust a few comments to reflect reality a bit closer.
2409 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2410 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2411 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2412 target_insert_watchpoint, target_remove_watchpoint):
2414 * config/i386/nm-i386sco5.h: ... here.
2415 (kernel_u_size): Add prototype. Improve a few comments and add
2416 protection against multiple inclusion.
2418 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2421 * uw-thread.c (SP_ARG0): Define if not already defined.
2422 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2424 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2426 * config/i386/tm-i386.h: Don't include "regcache.h".
2428 * i387-tdep.h (i387_print_float_info): New prototype.
2429 * i387-tdep.c (print_i387_value, print_i387_ext,
2430 print_i387_status_word, print_i387_control_word): Add `struct
2431 ui_file *' argument and use it for output.
2432 (i387_print_float_info): Renamed from i387_float_info. Add
2433 `struct gdbarch *' and `struct ui_file *' arguments and use the
2435 * i386-tdep.c: Include "i387-tdep.h".
2436 (i386_gdbarch_init): Set print_float_info.
2437 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2438 (FLOAT_INFO): Remove define.
2440 2002-08-13 Michael Snyder <msnyder@redhat.com>
2442 * mips-tdep.c (mips_push_arguments): Rename to
2443 mips_eabi_push_arguments, and tune for EABI.
2444 (MIPS_REGS_HAVE_HOME_P): Delete.
2445 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2446 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2447 Delete references to mips_regs_have_home_p.
2449 2002-08-14 Keith Seitz <keiths@redhat.com>
2451 * Makefile.in (install-gdbtk): Create insight plugin directory.
2452 Install plugins.tcl file.
2454 2002-08-14 Keith Seitz <keiths@redhat.com>
2456 * configure.in: Move SUBDIRS to near top of the file so that
2457 --enable options may add things to it.
2458 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2459 * configure: Regenerate.
2461 2002-08-13 Michael Snyder <msnyder@redhat.com>
2463 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2464 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2465 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2467 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2469 * vax-tdep.c (vax_get_saved_register): Delete function.
2470 (vax_gdbarch_init): Update.
2471 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2472 (ns32k_gdbarch_init): Update.
2473 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2474 (alpha_gdbarch_init): Update.
2476 2002-08-13 Andrew Cagney <cagney@redhat.com>
2478 * regcache.c (init_regcache_descr): Overallocate the
2479 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2480 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2482 (set_register_cached): Add range checking assertions. Use
2485 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2487 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2488 numbers for MMX registers.
2490 2002-08-13 Andrew Cagney <cagney@redhat.com>
2492 * i386-tdep.c (i386_gdbarch_init): Use
2493 generic_unwind_get_saved_register.
2495 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2497 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2498 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2500 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2501 Delete. Add comment regarding this now-deleted target method.
2503 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2505 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2506 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2507 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2508 real PC and the page number (if it's within the memory bank window).
2509 (m68hc11_pseudo_register_write): Likewise when saving.
2510 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2511 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2512 (m68hc11_register_raw_size): And use 32-bit for it.
2513 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2514 16K memory bank is used by the prog; also use the virtual pc.
2516 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2518 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2519 (m68hc11_gdbarch_init): Install it in gdbarch.
2520 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2521 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2522 (MSYMBOL_SIZE): New for documentation.
2523 (insn_return_kind): Enum to specify how a function returns.
2524 (frame_extra_info): Cleanup and record the return mode.
2525 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2526 register in address computation.
2527 (m68hc11_get_return_insn): New to obtain the return instruction used
2529 (m68hc11_frame_init_saved_regs): Take into account the return
2530 instruction used by the function for far and interrupt functions.
2531 (m68hc11_init_extra_frame_info): Take into account page register.
2532 (m68hc11_frame_args_address): Adjust according to the return mode.
2533 (show_regs): Print page register only when it's used.
2535 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2537 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2538 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2539 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2541 (m68hc11_register_raw_size): Likewise.
2543 2002-08-13 Andrew Cagney <cagney@redhat.com>
2545 * i386-tdep.c (i386_register_name): Handle mmx registers.
2546 (mmx_regnum_p): New function.
2547 (i386_mmx_names): New array.
2548 (mmx_num_regs): New variable.
2549 (i386_pseudo_register_read): New function.
2550 (i386_pseudo_register_write): New function.
2551 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2553 * regcache.c (regcache_raw_read_unsigned): New function.
2554 (regcache_raw_read_signed): New function.
2555 * regcache.h (regcache_raw_read_unsigned): Declare.
2556 (regcache_raw_read_signed): Declare.
2558 2002-08-13 Andrew Cagney <cagney@redhat.com>
2560 * regcache.c (regcache_raw_read_as_address): Delete function.
2561 (regcache_cooked_read_signed): New function.
2562 (regcache_cooked_read_unsigned): New function.
2563 * regcache.h (regcache_cooked_read_signed): Declare.
2564 (regcache_cooked_read_unsigned): Declare.
2565 (regcache_raw_read_as_address): Delete declaration.
2567 * blockframe.c (generic_read_register_dummy): Use
2568 regcache_cooked_read_unsigned.
2569 * i386-tdep.c (i386_extract_struct_value_address): Use
2570 regcache_cooked_read_unsigned.
2572 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2575 double sizes according to ELF ABI flags.
2576 (gdbarch_tdep): Record elf_flags.
2578 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2580 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2581 (m6812_prolog): They can appear in 68HC12 function prologue.
2582 (m68hc11_frame_chain): Cleanup.
2584 2002-08-12 Andrew Cagney <cagney@redhat.com>
2586 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2588 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2589 (i386_linux_register_raw_size): Delete function.
2590 (i386_linux_init_abi): Update.
2591 * i386-tdep.c (i386_register_raw_size): Delete function.
2592 (i386_register_byte): Delete function.
2593 (i386_gdbarch_init): Update.
2594 (i386_register_size): Delete array.
2595 (i386_register_offset): Delete array.
2597 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2598 (REGISTER_RAW_SIZE): Delete macro.
2599 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2600 (REGISTER_BYTE): Delete macro.
2602 2002-08-11 Aidan Skinner <aidan@velvet.net>
2604 * ada-lang.c (ada_lookup_partial_symbol)
2605 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2606 prototype names so that grep ^func works properly.
2608 * ada-lang.c (ada_array_element_type)
2609 (ada_lookup_partial_symbol): Fix typos in parameter list.
2611 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2612 Fix prototype names so that grep ^func works properly.
2614 2002-08-10 Andrew Cagney <cagney@redhat.com>
2615 Elena Zannoni <ezannoni@redhat.com>
2616 Martin M. Hunt <hunt@redhat.com>
2618 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2619 (build_builtin_type_vec128i): Set the vector bit.
2620 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2621 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2622 (build_builtin_type_vec64): New function.
2623 (build_builtin_type_vec64i): New function.
2624 (build_gdbtypes): Initialize builtin_type_vec64 and
2625 builtin_type_vec64i.
2627 2002-08-09 Andrew Cagney <cagney@redhat.com>
2629 * regcache.c (regcache_dump): Compare the register offset
2631 * arch-utils.c (generic_register_byte): New function.
2632 * arch-utils.h (generic_register_byte): Declare.
2633 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2634 * gdbarch.h, gdbarch.c: Regenerate.
2636 2002-08-09 Andrew Cagney <cagney@redhat.com>
2638 * regcache.c: Include "gdbcmd.h"
2639 (_initialize_regcache): Add commands "maintenance print
2640 registers", "maintenance print raw-registers" and "maintenance
2641 print cooked-registers".
2642 (enum regcache_dump_what): Define.
2643 (dump_endian_bytes): New function.
2644 (regcache_dump): New function.
2645 (regcache_print): New function.
2646 (maintenance_print_registers): New function.
2647 (maintenance_print_raw_registers): New function.
2648 (maintenance_print_cooked_registers): New function.
2649 * Makefile.in (regcache.o): Update dependencies.
2651 2002-08-09 Michael Snyder <msnyder@redhat.com>
2653 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2654 (mips_push_arguments): Correct some comments. Use paddr_nz
2655 for printing addresses in debug output. Replace static
2656 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2657 (mips_n32n64_push_arguments): New function, cloned from
2658 mips_push_arguments and tuned for the n32/n64 ABI.
2659 (mips_push_register): Buffer needs dynamic allocation.
2660 (mips_print_register): Ditto.
2661 (do_gp_register_row): Ditto.
2662 (mips_store_return_value): Ditto.
2663 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2665 2002-08-09 Don Howard <dhoward@redhat.com>
2667 * memattr.c (mem_info_command): Print special case of upper bound
2668 as max CORE_ADDR + 1.
2670 2002-08-08 Michael Snyder <msnyder@redhat.com>
2672 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2673 returns structs by ref if they're too big to fit in two registers.
2675 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2677 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2679 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2680 mips_find_saved_regs().
2681 (mips_pop_frame): Likewise.
2683 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2685 * blockframe.c (frame_saved_regs_register_unwind): Revise
2686 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2689 2002-08-09 Grace Sainsbury <graces@redhat.com>
2691 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2692 T-packets; the 'a' is not taken as a register number.
2693 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2694 (remote_stopped_data_address): New functions; add to target
2696 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2697 prototypes to match other implementations of this
2698 function. replace integer argument with pointer -- the length
2699 field in the Z-packet is the length of what is pointed to or 1 if
2700 pointer is null. Add to target vector.
2701 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2705 * remote.c (remote_wait): Add support to extract optional
2706 watchpoint information from T-packet. Ignore unrecognized
2707 optional info in T-packet.
2708 (remote_async_wait): Ditto.
2710 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2712 * cli/cli-dump.c: Change fopen modes to use binary open modes
2713 as defined in include/fopen-bin.h throughout.
2715 2002-08-08 Michael Snyder <msnyder@redhat.com>
2717 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2719 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2721 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2722 assertion failure by returning early after a warning.
2724 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2726 * mips-tdep.c (mips_find_saved_regs): Make static.
2727 (mips_frame_init_saved_regs): New function.
2728 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2729 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2730 (mips_find_saved_regs): Delete declaration.
2732 2002-08-08 Grace Sainsbury <graces@redhat.com>
2734 * remote.c (remote_wait, remote_async_wait): Change
2735 thread_num from int to ULONGEST.
2736 (unpack_varlen_hex): Change result parameter from
2737 int * to ULONGEST *.
2739 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2741 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2742 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2744 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2746 2002-08-08 Andrew Cagney <cagney@redhat.com>
2748 * gcore.c (override_derive_stack_segment): Delete variable.
2749 (preempt_derive_stack_segment): Delete function.
2750 (derive_stack_segment): Delete function.
2751 (default_derive_stack_segment): Renamed to derive_stack_segment.
2752 (override_derive_heap_segment): Delete variable.
2753 (preempt_derive_heap_segment): Delete function.
2754 (derive_heap_segment): Delete function.
2755 (default_derive_heap_segment): Rename to derive_heap_segment.
2757 2002-08-06 Michael Snyder <msnyder@redhat.com>
2759 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2760 * mips-tdep.c (mips_EABI_use_struct_convention,
2761 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2762 New functions. (mips_use_struct_convention): Delete.
2763 (mips_gdbarch_init): set use_gdbarch_convention.
2765 2002-08-06 Michael Snyder <msnyder@redhat.com>
2767 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2768 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2769 mips_o32_reg_struct_has_addr): New functions.
2770 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2772 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2774 * regcache.c (pseudo_register): Delete function.
2775 (fetch_register): Delete function.
2776 (store_register): Delete function.
2777 (regcache_raw_read, legacy_read_register_gen): Use
2778 target_fetch_registers instead of fetch_register.
2779 (legacy_write_register_gen, regcache_raw_write): Use
2780 target_store_register instead of store_register.
2781 (write_register_bytes): Ditto.
2783 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2784 (STORE_PSEUDO_REGISTER): Delete.
2785 * gdbarch.h, gdbarch.c: Regenerate.
2787 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2789 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2790 write dump file binary.
2792 2002-08-05 Michael Snyder <msnyder@redhat.com>
2794 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2795 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2796 (mips_gdbarch_init): Set N32 target to be mips64.
2798 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2800 * frame.c (find_saved_register): Break out of loop once saved
2801 register address is found. Don't mention sparc in loop comment
2804 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2806 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2807 mips_default_saved_regsize to 8.
2809 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2811 * gcore.c: Do not include <sys/procfs.h>.
2812 * Makefile.in (gcore.o): Update dependencies.
2814 2002-08-06 Andrew Cagney <cagney@redhat.com>
2816 * configure.tgt: Make arc-*-* obsolete.
2817 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2818 * MAINTAINERS: Make arc-elf obsolete.
2819 * arc-tdep.c: Make file obsolete.
2820 * config/arc/arc.mt: Ditto.
2821 * config/arc/tm-arc.h: Ditto.
2823 2002-08-05 Theodore A. Roth <troth@verinet.com>
2825 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2827 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2829 * mcore-tdep.c (mcore_gdbarch_init): Use
2830 generic_unwind_get_saved_register instead of
2831 generic_get_saved_register.
2832 * v850-tdep.c (v850_gdbarch_init): Ditto.
2833 * frv-tdep.c (frv_gdbarch_init): Ditto.
2834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2835 * s390-tdep.c (s390_gdbarch_init): Ditto.
2836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2837 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2838 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2840 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2842 * objfiles.h: Add missing #include "symfile.h"
2844 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2846 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2848 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2849 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2852 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2854 * NEWS: Cleanup and nitpick.
2856 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2858 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2860 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2862 * Makefile.in (gdbtk-bp.o): Update dependencies.
2863 (gdbtk-register.o): Ditto.
2864 (gdbtk-varobj.o): Ditto.
2866 2002-08-03 Andrew Cagney <cagney@redhat.com>
2868 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2869 m68hc11_fetch_pseudo_register.
2870 (m68hc11_pseudo_register_write): Replace
2871 m68hc11_store_pseudo_register.
2872 (m68hc11_gdbarch_init): Update.
2874 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2876 * gdbarch.sh: Include "gdb_string.h".
2877 * gdbarch.c: Regenerate.
2879 * regcache.c: Include "gdb_string.h".
2880 * ax-general.c: Ditto.
2882 * std-regs.c: Ditto.
2883 * fbsd-proc.c: Ditto.
2886 * Makefile.in (regcache.o): Update dependencies.
2887 (thread.o, gdbarch.o): Ditto.
2888 (ax-general.o, gdbarch.o): Ditto.
2889 (varobj.o, std-regs.o): Ditto.
2890 (fbsd-proc.o): Specify dependencies.
2892 2002-08-02 Andrew Cagney <cagney@redhat.com>
2894 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2896 (regcache_cooked_write): Ditto.
2898 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2900 * regcache.c (regcache_cooked_read): New function.
2901 (regcache_cooked_write): New function.
2902 (read_register_gen): Rewrite using regcache_cooked_read.
2903 (write_register_gen): Rewrite using regcache_cooked_write.
2905 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2908 2002-08-02 Andrew Cagney <cagney@redhat.com>
2910 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2911 Replace the architecture methods register_read and register_write.
2912 * gdbarch.h, gdbarch.c: Regenerate.
2913 * regcache.c (init_regcache_descr): Update.
2914 (read_register_gen): Update.
2915 (write_register_gen): Update.
2916 (supply_register): Update comment.
2918 * sh-tdep.c (sh_gdbarch_init): Update.
2919 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2920 `regcache' and `gdbarch' parameters. Make `buffer' a void
2921 pointer. Update code.
2922 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2923 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2924 void pointer. Update code.
2925 (sh64_register_write): Delete.
2926 (sh4_register_read): Delete.
2927 (sh64_register_read): Delete.
2928 (sh4_register_write): Delete.
2929 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2930 void pointer, `to' parameter a void pointer.
2931 (sh_sh64_register_convert_to_raw): Ditto.
2933 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2935 * mips-tdep.c (mips_register_virtual_type): Use architecture
2936 invariant return values.
2938 2002-08-01 Andrew Cagney <cagney@redhat.com>
2940 * linux-proc.c: Include "gdb_string.h".
2941 * Makefile.in (linux-proc.o): Update dependency list.
2943 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2945 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2948 2002-08-01 Grace Sainsbury <graces@redhat.com>
2950 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2951 to_insert_watchpoint, to_remove_watchpoint,
2952 to_stopped_by_watchpoint, to_stopped_data_address,
2953 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2954 target vecctor. Define their corresponding macros so they call
2957 * target.c: Add default and debug versions of for
2958 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2959 to_insert_watchpoint, to_remove_watchpoint,
2960 to_stopped_by_watchpoint, to_stopped_data_address,
2961 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2963 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2965 * mips-tdep.c (mips_register_virtual_type): New function.
2966 (mips_gdbarch_init): Register mips_register_virtual_type()
2967 with gdbarch machinery.
2968 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2969 this file instead of tm-bigmips.h.
2970 (MIPS_REGSIZE): Delete this macro.
2971 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2972 multiarch version in mips-tdep.c will be found.
2974 2002-08-01 Andrew Cagney <cagney@redhat.com>
2976 * NEWS: Menion that CHILL has been made obsolete.
2978 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2979 * stabsread.c (read_range_type): Ditto.
2980 * gdbtypes.h: Ditto.
2981 * language.c (binop_type_check): Ditto.
2982 (binop_result_type): Ditto.
2983 (integral_type): Ditto.
2984 (character_type): Ditto.
2985 (string_type): Ditto.
2986 (boolean_type): Ditto.
2987 (structured_type): Ditto.
2988 (lang_bool_type): Ditto.
2989 (binop_type_check): Ditto.
2990 * language.h (_LANG_chill): Ditto.
2991 * dwarfread.c (set_cu_language): Ditto.
2992 * dwarfread.c (CHILL_PRODUCER): Ditto.
2993 * dwarfread.c (handle_producer): Ditto.
2994 * expression.h (enum exp_opcode): Ditto.
2995 * eval.c: Ditto for comments.
2996 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2997 * expprint.c (print_subexp): Ditto.
2998 (print_subexp): Ditto.
2999 * valops.c (value_cast): Ditto.
3000 (search_struct_field): Ditto.
3001 * value.h (COERCE_VARYING_ARRAY): Ditto.
3002 * symfile.c (init_filename_language_table): Ditto.
3003 (add_psymbol_with_dem_name_to_list): Ditto.
3004 * valarith.c (value_binop): Ditto.
3006 * valops.c (value_slice): Ditto.
3007 * symtab.h (union language_specific): Ditto.
3008 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3009 (SYMBOL_DEMANGLED_NAME): Ditto.
3010 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3011 * defs.h (enum language): Ditto.
3012 * symtab.c (got_symtab): Ditto.
3013 * utils.c (fprintf_symbol_filtered): Ditto.
3015 * ch-typeprint.c: Make file obsolete.
3016 * ch-valprint.c: Make file obsolete.
3017 * ch-lang.h: Make file obsolete.
3018 * ch-exp.c: Make file obsolete.
3019 * ch-lang.c: Make file obsolete.
3021 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3023 (TARGET_FLAGS_TO_PASS): Ditto.
3024 (CHILLFLAGS): Obsolete.
3026 (CHILL_FOR_TARGET): Obsolete.
3027 (CHILL_LIB): Obsolete.
3028 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3030 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3031 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3033 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3036 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3038 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3039 This does not change anything at the moment, but will be helpful
3040 later when full Ada support is integrated.
3042 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3044 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3047 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3049 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3050 and save it in a local variable. Use variable in later test.
3052 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3054 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3055 test. (Thanks to Daniel Jacobowitz.)
3057 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3059 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3060 (mips_abi_strings): Add "n64".
3061 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3063 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3065 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3066 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3068 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3070 * utils.c (host_pointer_to_address, address_to_host_pointer):
3071 Use gdb_assert() instead of explicit call to internal_error().
3073 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3075 * Makefile.in (rs6000-nat.o): Update dependencies.
3077 From Nicholas Duffek:
3078 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3079 (aix-thread.o): New rule.
3080 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3081 * config/powerpc/aix432.mh: New file.
3083 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3085 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3086 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3087 (fetch_core_registers, ppc_linux_supply_gregset)
3088 (ppc_linux_supply_fpregset): New functions.
3089 (ppc_linux_regset_core_fns): New.
3090 (_initialize_ppc_linux_tdep): Call add_core_fns.
3091 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3092 and ppc_linux_supply_gregset.
3093 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3094 (supply_fpregset): Call ppc_linux_supply_fpregset.
3095 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3097 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3099 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3101 * symtab.c (lookup_symbol): Demangle before lowercasing.
3103 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3105 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3107 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3108 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3109 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3110 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3112 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3113 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3114 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3115 (avr-tdep.o, mon960-rom.o): Ditto.
3116 (aout_stabs_gnu_h): Define.
3117 (symtab_h): Remove $(gdb_obstack_h).
3119 2002-07-30 Jim Blandy <jimb@redhat.com>
3121 Patch from David Carlton <carlton@math.stanford.edu>:
3122 * gdbinit.in: Move the `dir' commands that add GDB's own source
3123 directory to the search path to the end, so that the `gdb' source
3124 directory will be searched first.
3126 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3128 * gdb_obstack.h: New file.
3129 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3130 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3131 * objfiles.h: Include "gdb_obstack.h".
3132 * Makefile.in (gdb_obstack_h): Define.
3133 (symtab_h): Add $(gdb_obstack_h).
3134 (objfiles_h): Add $(gdb_obstack_h).
3136 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3137 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3138 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3139 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3140 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3141 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3142 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3143 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3145 * Makefile.in (bcache.o): Update dependencies.
3146 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3147 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3148 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3149 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3150 (stabsread.o, symfile.o, symmisc.o): Ditto.
3151 (symtab.o, typeprint.o, macroexp.o): Ditto.
3152 (macrotab.o, mdebugread.o): Ditto.
3153 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3154 (coff_ecoff_h, aout_aout64_h): Define.
3155 (aout_stabs_gnu_h, libaout_h): Define.
3157 2002-07-29 Andrew Cagney <cagney@redhat.com>
3159 * regcache.c (struct regcache_descr): Rename nr_registers to
3160 nr_cooked_registers. Revise comments describing the structure
3162 (init_regcache_descr): Update.
3163 (init_legacy_regcache_descr): Update.
3164 (read_register_gen, write_register_gen): When a cooked register in
3165 the raw register range, directly access the value from the raw
3168 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3170 * z8k-tdep.c: Do not include "obstack.h".
3171 * h8300-tdep.c, h8500-tdep.c: Ditto.
3172 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3173 * valprint.c, v850-tdep.c: Ditto.
3174 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3175 * mn10200-tdep.c: Ditto.
3177 * Makefile.in (z8k-tdep.o): Update dependencies.
3178 (m68hc11-tdep.o, valprint.o): Ditto.
3179 (v850-tdep.o, d10v-tdep.o): Ditto.
3180 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3181 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3182 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3183 (sh_opc_h, gdb_sim_sh_h): Define.
3184 (elf_sh_h, elf_bfd_h): Define.
3185 (opcode_m68hc11_h): Define.
3186 (OPCODES_SRC, OPCODES_DIR): define.
3187 (OPCODES): Use $(OPCODES_DIR).
3188 (gdb_sim_d10v_h): Rename sim_d10v_h.
3189 (gdb_sim_arm_h): Rename sim_arm_h.
3191 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3193 * utils.c (host_pointer_to_address, address_to_host_pointer):
3194 Change internal_error() message to indicate function responsible
3197 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3199 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3200 calls to local_hex_string_custom().
3202 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3204 * irix5-nat.c: Move IRIX shared library support from here...
3205 * solib-irix.c: ...to here. Revised substantially to work with
3206 generic solib framework.
3208 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3209 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3210 * mips-irix-tdep.c: New file.
3212 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3213 (mips-irix-tdep.o, solib-irix.o): New rules.
3214 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3216 * config/mips/irix6.mt (TDEPFILES): Likewise.
3217 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3219 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3221 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3222 disabled (via ``#if 0'') includes.
3224 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3226 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3227 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3228 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3229 Add support for the fpscr register.
3230 * rs6000-nat.c (regmap, fetch_inferior_registers)
3231 (store_inferior_registers, fetch_core_registers): Likewise.
3233 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3235 * rs6000-nat.c (language.h): Include.
3236 (special_regs): Delete this array.
3237 (regmap): New function.
3238 (fetch_register, store_register): Use regmap() to map gdb
3239 register numbers to ptrace register numbers. Also, use
3240 outputs from regmap() to make decisions regarding type of
3241 ptrace() call to make. In particular, don't compare against
3242 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3243 (fetch_inferior_registers, store_inferior_registers): Where
3244 possible, obtain register numbers from tdep struct. Don't
3245 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3246 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3247 (LAST_UISA_SP_REGNUM): Delete.
3249 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3251 * rs6000-nat.c (ppc-tdep.h): Include.
3252 (fetch_registers, store_register, fetch_core_registers): Don't
3253 access registers[] directly. Instead, use supply_register() or
3254 regcache_collect() as appropriate.
3255 (find_toc_address): Format hex address with local_hex_string().
3257 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3259 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3262 2002-07-24 Tom Tromey <tromey@redhat.com>
3264 * jv-exp.y: Marked all strings with _().
3265 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3267 (MethodInvocation, CastExpression, parse_number, yyerror,
3268 java_type_from_name, push_expression_name, yylex): Typo fixes.
3270 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3272 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3273 (tee_file_flush, tee_file_write, tee_file_fputs)
3274 (tee_file_isatty): New.
3275 * ui-file.h (tee_file_new): Add prototype.
3277 2002-07-24 Aidan Skinner <aidan@velvet.net>
3279 * ada-lang.c: Change k&r style function definitions to prototyped
3281 * ada-typeprint.c: Change k&r style function definitions to prototyped
3283 * ada-valprint.c: Change k&r style function definitions to prototyped
3286 2002-07-24 Andrew Cagney <cagney@redhat.com>
3288 * README: Remove reference to remote-bug.
3289 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3291 (m88k-nat.o): Delete rule.
3292 (m88k-tdep.o): Delete rule.
3293 (remote-bug.o): Delete rule.
3294 * MAINTAINERS: Mark as obsolete.
3295 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3296 * m88k-tdep.c: Make file obsolete.
3297 * config/m88k/m88k.mh: Ditto.
3298 * config/m88k/delta88v4.mh: Ditto.
3299 * config/m88k/delta88v4.mt: Ditto.
3300 * config/m88k/delta88.mt: Ditto.
3301 * config/m88k/delta88.mh: Ditto.
3302 * remote-bug.c: Ditto.
3303 * config/m88k/tm-delta88.h: Ditto.
3304 * config/m88k/nm-delta88v4.h: Ditto.
3305 * config/m88k/xm-delta88.h: Ditto.
3306 * config/m88k/xm-dgux.h: Ditto.
3307 * config/m88k/tm-m88k.h: Ditto.
3308 * config/m88k/nm-m88k.h: Ditto.
3309 * config/m88k/tm-delta88v4.h: Ditto.
3310 * m88k-nat.c: Ditto.
3311 * cxux-nat.c: Ditto.
3312 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3313 and m88*-*-* obsolete.
3314 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3317 2002-07-24 Andrew Cagney <cagney@redhat.com>
3319 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3320 constant. Same for local pointer variables.
3321 (extract_signed_integer): Ditto.
3322 * defs.h (extract_unsigned_integer): Update.
3323 (extract_signed_integer): Update.
3325 2002-07-24 Andrew Cagney <cagney@redhat.com>
3327 * regcache.c (regcache_raw_write): Change buf parameter to a
3328 constant void pointer.
3329 (regcache_raw_read): Change buf parameter to a void pointer.
3330 (legacy_write_register_gen): Change myaddr parameter a constant
3332 (supply_register): Change val parameter to a const void pointer.
3333 * regcache.h (regcache_raw_write): Update declaration.
3334 (regcache_raw_read): Update declaration.
3335 (supply_register): Update declaration.
3337 2002-07-24 Tom Tromey <tromey@redhat.com>
3339 * defs.h (gdb_readline_wrapper): Declare.
3340 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3341 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3342 * top.c (gdb_readline_wrapper): New function.
3343 (command_line_input): Use it.
3345 2002-07-24 Andrew Cagney <cagney@redhat.com>
3347 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3348 regcache_read and regcache_write.
3349 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3350 * regcache.c: Update.
3351 * sh-tdep.c (sh64_push_arguments): Update comment.
3352 (sh_pseudo_register_read): Update.
3353 (sh_pseudo_register_write): Update.
3354 (sh4_register_read): Update.
3355 (sh4_register_write): Update.
3356 (sh64_pseudo_register_read): Update.
3357 (sh64_pseudo_register_write): Update.
3358 (sh64_register_read): Update.
3359 (sh64_register_write): Update.
3360 * i386-tdep.c (i386_extract_return_value): Update.
3361 (i386_extract_struct_value_address): Update.
3362 (i386_extract_return_value): Update.
3363 * blockframe.c (generic_read_register_dummy): Update.
3364 (generic_call_dummy_register_unwind): Update
3365 * infrun.c (write_inferior_status_register): Update.
3367 2002-07-23 Jim Blandy <jimb@redhat.com>
3369 * parser-defs.h (expression_context_pc): Make this extern.
3370 (Thanks to Michael Snyder.)
3372 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3374 GDB 5.2.1 released from 5.2 branch.
3375 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3376 * README: Update to mention 5.2.1.
3378 2002-07-23 Mark Salter <msalter@redhat.com>
3380 * remote.c (remote_read_bytes): Fix check for error.
3382 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3384 * aix-thread.c (language.h): Include.
3385 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3386 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3387 Print newlines at end of debug messages.
3388 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3389 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3391 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3393 * aix-thread.c (ppc-tdep.h): Include.
3394 (special_register_p): New function.
3395 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3396 (store_regs_user_thread): Use register number information from
3397 gdbarch_tdep struct instead of hardcoded offsets relative to
3398 FIRST_UISA_SP_REGNUM.
3399 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3400 special_register_p() instead of using FPLAST_REGNUM and
3401 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3402 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3403 will be MQ's register number.
3405 2002-07-22 Michael Snyder <msnyder@redhat.com>
3407 * aix-thread.c (ops): Rename to aix_thread_ops.
3408 (base_ops): Rename to base_target.
3409 (ops_attach): Rename to aix_thread_attach.
3410 (ops_detach): Rename to aix_thread_detach.
3411 (ops_resume): Rename to aix_thread_detach.
3412 (ops_wait): Rename to aix_thread_wait.
3413 (ops_kill): Rename to aix_thread_kill.
3414 (init_ops): Rename to init_aix_thread_ops.
3415 (ops_fetch_register): Rename to aix_thread_fetch_register.
3416 (ops_store_register): Rename to aix_thread_store_register.
3417 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3418 (ops_thread_alive): Rename to aix_thread_thread_alive.
3419 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3420 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3421 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3422 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3423 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3424 (store_regs_lib): Rename to store_regs_user_thread.
3425 (store_regs_kern): Rename to store_regs_kernel_thread.
3427 2002-07-22 Michael Snyder <msnyder@redhat.com>
3429 * aix-thread.c (ops_prepare_to_store): Eliminate.
3430 (init_ops): Don't initialize ops.prepare_to_store.
3431 (store_regs_kern): Pre-fetch register buffers from child,
3432 because some registers may not be in the cache. Copy
3433 regs from register cache only if they are cached.
3434 (store_regs_lib): Copy regs from register cache only
3436 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3437 fill_gprs64): Ditto.
3439 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3441 * aix-thread.c (gdb_assert.h): Include.
3442 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3443 register sizes (from register cache) match size of buffer holding
3445 (fill_sprs32): Change parameter types to match those in the ptrace()
3447 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3448 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3450 2002-07-22 Michael Snyder <msnyder@redhat.com>
3452 * aix-thread.c (supply_sprs64): Cosmetic change.
3453 (supply_sprs32): Cosmetic change.
3454 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3455 (fill_sprs64): Use regcache_collect instead of read_register.
3456 (store_regs_lib): Use regcache_collect instead of
3457 read_register. Use fill_sprs32 instead of fill_sprs64,
3458 if debugging a 32-bit architecture.
3459 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3460 out of the register cache, instead of passing a pointer into
3461 the register cache directly to ptrace. Use regcache_collect
3462 insteaad of read_register.
3463 (ops_prepare_to_store): Use target_read_registers instead
3464 of read_register_bytes.
3466 2002-07-20 Aidan Skinner <aidan@velvet.net>
3468 * MAINTAINERS: Add self under write after approval.
3470 2002-07-20 Aidan Skinner <aidan@velvet.net>
3472 * ada-tasks.c: Change k&r style function definitions to prototyped
3475 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3477 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3478 * x86-64-tdep.c: Include "objfiles.h".
3479 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3480 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3482 2002-07-17 Michal Ludvig <michal@suse.cz>
3484 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3485 (update_context): Initialise cfa variable.
3487 2002-07-17 Michael Snyder <msnyder@redhat.com>
3489 * aix-thread.c: Shorten some long lines.
3490 Bring comments into line with code spec.
3492 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3494 * infrun.c: Re-indent using gdb_indent.sh.
3496 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3498 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3499 Leave the indentation temporarily untouched, to minimize the diffs.
3501 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3503 * stabsread.c: Make os9k sections of the code obsolete,
3505 * stabsread.h: Make os9k sections of the code obsolete.
3507 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3509 * linux-low.c (regsets_store_inferior_registers): Add free()
3510 at the end of a loop to prevent memory leak.
3511 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3512 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3513 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3515 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3517 2002-07-17 Jim Blandy <jimb@redhat.com>
3519 * macrocmd.c (info_macro_command): Remove newline from error
3522 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3524 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3525 (sh_gdbarch_init): Use it for sh-dsp.
3527 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3529 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3530 64-bit DWARF2 format.
3532 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3534 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3535 <sys/proc.h> when not available.
3537 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3539 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3540 * stabsread.c: Make os9k sections of the code obsolete.
3541 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3542 * config/i386/i386os9k.mt: Make file obsolete.
3543 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3544 (COMMON_OBS): Remove os9kread.o
3545 (SFILES): Remove os9kread.c.
3546 (os9kread.o, remote-os9k.o): Make target obsolete.
3547 * remote-os9k.c: Make file obsolete.
3548 * os9kread.c: Make file obsolete.
3551 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3553 * NEWS: Mention that the FR30 has been made obsolete.
3554 * fr30-tdep.c: Make file obsolete.
3555 * config/fr30/tm-fr30.h: Ditto.
3556 * config/fr30/fr30.mt: Ditto.
3557 * configure.tgt: Make fr30-*-elf obsolete.
3558 * MAINTAINERS: Make fr30-elf obsolete.
3560 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3562 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3563 found is not inside a section.
3565 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3567 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3569 (pdc_realloc): Use xrealloc() instead of realloc().
3571 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3573 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3574 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3575 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3578 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3580 * aix-thread.c (ptrace_check): Eliminate goto.
3581 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3584 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3586 * aix-thread.c (gdbcmd.h): Include.
3587 (DEBUG, DBG, DBG2, dbg): Eliminate.
3588 (debug_aix_thread): New static global.
3589 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3590 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3591 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3592 invocations to DBG and DBG2 macros to test against
3593 ``debug_aix_thread'' and call fprintf_unfiltered().
3594 (_initialize_aix_thread): Add new command "set debug aix-thread".
3596 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3598 From Gerhard Tonn <TON@de.ibm.com>:
3599 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3600 instead of supply_register.
3602 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3604 * dwarf2cfi.c: Include "gdb_assert.h".
3605 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3607 (update_context): Do not use __func__. Add missing ``break''.
3608 (update_context): Do not use __func__.
3610 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3612 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3613 and its setting. Set gdbarch instruction printing functions
3614 directly. For non-rs6000 case use new function
3615 gdb_print_insn_powerpc.
3616 (gdb_print_insn_powerpc): New function.
3618 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3620 * NEWS: Mention that the d30v has been marked obsolete.
3621 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3622 * configure.tgt: Mark d30v-*-* as obsolete.
3623 * d30v-tdep.c: Mark file as obsolete.
3624 * config/d30v/d30v.mt: Ditto.
3625 * config/d30v/tm-d30v.h: Ditto.
3627 2002-07-13 Aidan Skinner <aidan@velvet.net>
3629 * ada-tasks.c (add_task_entry): replace calls to
3630 malloc() with xmalloc
3631 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3633 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3634 ada_finish_decode_line_1, all_sals_for_line
3635 ada_breakpoint_rewrite): replace calls to free() with xfree()
3637 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3639 From Nicholas Duffek (with minor changes by Martin Hunt,
3640 Louis Hamilton, and Kevin Buettner):
3641 * aix-thread.c: New file.
3643 2002-07-12 Petr Sorfa <petrs@caldera.com>
3645 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3646 complaint for invalid attribute class or form.
3647 (read_func_scope): DW_AT_frame_base
3648 better handling of DW_AT_block*.
3649 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3650 better handling of DW_AT_block*.
3651 (read_common_block): DW_AT_location
3652 better handling of DW_AT_block*.
3653 (read_partial_die): DW_AT_location better handling
3655 (new_symbol): DW_AT_external better handling of
3656 DW_AT_block*. Proper initialization of variable
3658 (attr_form_is_block): New function that returns true
3659 if the attribute's form is of DW_FORM_block*.
3661 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3663 * valops.c (find_method_list): Remove comment about
3664 removed STATIC_MEMFUNCP argument.
3665 (value_find_oload_method_list): Likewise.
3667 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3669 From Nicholas Duffek:
3670 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3671 target_new_objfile_hook.
3673 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3675 From Nicholas Duffek:
3676 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3679 2002-07-12 Andrew Cagney <cagney@redhat.com>
3681 * MAINTAINERS: Mention --enable-sim-build-warnings.
3682 (m68hc11-elf): Disable sim build warnings.
3683 (m32r-elf): Mark as broken obsolete candidate.
3684 (x86_64-linux-gnu): Mark as buildable with -Werror.
3685 (arm-elf): Change -w to ``,'' which enables warnings but not
3688 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3690 * bcache.h: Update copyright.
3691 (struct bstring, struct bcache): Move definition to "bcache.c".
3692 Replaced by opaque declaration.
3693 (bcache_xfree): Replace free_bcache.
3694 (bcache_xmalloc, bcache_memory_used): Declare.
3696 * bcache.c: Update copyright.
3697 (struct bstring, struct bcache): Moved to here from "bcache.h".
3699 (bcache_xmalloc, bcache_memory_used): New functions.
3700 (bcache_xfree): Replace function free_bcache.
3702 * Makefile.in (objfiles.o): Add $(bcache_h).
3703 (objfiles_h): Remove $(bcache_h).
3704 (symfile.o): Add $(bcache_h).
3706 * symmisc.c: Update copyright.
3707 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3708 (print_objfile_statistics): Use bcache_memory_used.
3710 * symfile.c: Include "bcache.h".
3711 (reread_symbols): Use bcache_xfree.
3712 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3713 (add_psymbol_to_list): Pass psymbol_cache by value.
3714 (add_psymbol_with_dem_name_to_list): Ditto.
3716 * objfiles.h: Update copyright.
3717 (struct bcache): Declare opaque. Do not include "bcache.h".
3718 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3720 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3722 * objfiles.c: Include "bcache.h". Update copyright.
3723 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3725 (free_objfile): Use bcache_xfree.
3727 2002-07-11 Grace Sainsbury <graces@redhat.com>
3729 * monitor.c (monitor_fetch_register): Make name a constant.
3730 (monitor_store_register): Same.
3732 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3734 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3735 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3736 (finish_block) For non-function blocks, hash the symbol table. For
3737 function blocks, mark the symbol table as unhashed.
3738 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3739 (msymbol_hash_iw): Likewise.
3740 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3742 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3743 (lookup_minimal_symbol): Likewise for both.
3744 * symtab.h (struct block): Add `hashtable' flag. Comment the
3746 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3747 (ALL_BLOCK_SYMBOLS): Update.
3748 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3749 (struct symbol): Add `hash_next' pointer.
3750 * symtab.c (lookup_block_symbol): Search using the hash table when
3752 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3753 (search_symbols, find_addr_symbol): Likewise.
3755 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3756 (read_dst_symtab): Likewise.
3757 * jv-lang.c (get_java_class_symtab): Likewise.
3758 * mdebugread.c: Include "gdb_assert.h".
3759 (shrink_block): Assert that the block being modified is not hashed.
3760 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3761 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3763 (dump_symtab): Recognize hashed blocks.
3764 * printcmd.c (print_frame_args): Assert that function blocks do not
3765 have hashed symbol tables.
3766 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3767 (fill_in_ada_prototype, debug_print_block): Likewise.
3768 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3770 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3772 * stack.c (print_frame): Use result of frame_address_in_block()
3773 instead of fi->pc when evaluating symbols.
3774 (backtrace_command_1): Ditto.
3776 2002-07-11 Andrew Cagney <cagney@redhat.com>
3778 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3781 * arm-tdep.c (arm_register_name): Make return type constant.
3783 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3785 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3787 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3788 * s390-tdep.c (s390_fp_regnum): Ditto.
3789 (s390_read_fp): Ditto.
3790 (s390_pop_frame): Ditto.
3791 (_initialize_s390_tdep): Ditto.
3792 * remote.c (get_remote_state): Ditto.
3793 * procfs.c (mappingflags): Ditto.
3794 * memattr.c (_initialize_mem): Ditto.
3795 * mcore-tdep.c (mcore_pop_frame): Ditto.
3796 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3797 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3798 * language.c (set_case_str): Ditto.
3799 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3800 * frv-tdep.c (new_variant): Ditto.
3801 (frv_stopped_data_address): Ditto.
3802 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3803 (context_alloc): Ditto.
3804 (frame_state_alloc): Ditto.
3805 (unwind_tmp_obstack_init): Ditto.
3806 (unwind_tmp_obstack_free): Ditto.
3807 (cfi_read_fp): Ditto.
3808 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3809 (cris_pop_frame): Ditto.
3810 * c-lang.c (scanning_macro_expansion): Ditto.
3811 (finished_macro_expansion): Ditto.
3812 (c_preprocess_and_parse): Ditto.
3813 * gdbarch.sh: Ditto.
3814 * gdbarch.h, gdbarch.c: Regenerate.
3815 * config/mn10200/tm-mn10200.h: Adjust indentation.
3816 * target.c: Adjust indentation.
3817 * symtab.h: Adjust indentation.
3818 * stabsread.h: Adjust indentation.
3819 * remote-es.c: Adjust indentation.
3820 * os9kread.c: Adjust indentation.
3822 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3824 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3825 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3827 2002-07-10 Grace Sainsbury <graces@redhat.com>
3829 * NEWS: Mention m68k, mcore multi-arching.
3830 * MAINTAINERS: Change status of m68k, mcore to reflect
3833 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3835 * valops.c (find_overload_match): Free oload_syms.
3837 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3839 Define HAVE_SYS_PROC_H if sys/proc.h exists
3840 * configure.in: Add check for sys/proc.h
3841 * config.in: Regenerate.
3842 * configure: Regenerate.
3844 2002-07-09 Grace Sainsbury <graces@redhat.com>
3846 * config/m68k/tm-m68k.h: Remove macros wrapped in
3847 #if !GDB_MULTI_ARCH.
3849 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3851 * config.in, configure: Regenerate.
3853 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3855 * dwarf2cfi.c: Include "gcore.h".
3856 (execute_stack_op): Fix implementation of the
3857 DW_OP_deref and DW_OP_deref_size operators by letting do their
3858 lookup in the target.
3860 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3862 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3863 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3866 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3868 Fix PR gdb/595, gdb/602
3869 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3870 Don't call value_cast, just read the vtable pointer; update comments
3873 2002-07-05 Grace Sainsbury <graces@redhat.com>
3875 * config/mcore/tm-mcore.h: Remove file.
3876 * config/mcore/mcore.mt: Remove definition of TM_FILE
3877 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3879 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3881 * i386bsd-tdep.c: Include "gdb_string.h".
3883 2002-07-04 Grace Sainsbury <graces@redhat.com>
3885 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3886 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3888 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3889 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3890 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3891 (RETVAL_REGNUM): Move macros from tm-mcore.h
3892 (mcore_reg_struct_has_addr): New function.
3893 (mcore_gdbarch_init): Added initializations for the macros removed
3896 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3898 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3899 traditonal string branding within the ELF header.
3901 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3903 * symtab.c (remove_params): New function.
3904 (make_symbol_overload_list): Use it instead of cplus_demangle.
3905 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3907 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3909 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3911 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3913 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3914 and tdep->sigtramp_end.
3915 * i386obsd-nat.c: New file.
3916 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3918 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3919 Don't call get_current_frame().
3921 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3923 * i386-nat.c (child_post_startup_inferior): New function
3924 calling i386_cleanup_dregs if
3925 I386_USE_GENERIC_WATCHPOINTS is defined.
3926 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3927 conditional to acknowledge that i386-nat.c has its
3928 own child_post_startup_inferior function.
3930 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3932 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3933 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3934 instead of MAX_REGISTER_RAW_SIZE.
3935 (i386_extract_return_value, i386_extract_struct_value_address):
3936 Convert to use regcache.
3937 (i386_gdbarch_init): Set max_register_raw_size and
3938 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3939 Set extract_return_value and extract_struct_value_address instead
3940 of their deprecated variants.
3942 Convert i386 target to generic dummy frames.
3943 * i386-tdep.c: Include "symfile.h".
3944 (i386_frameless_signal_p): Consider a function to be frameless if
3945 the pc points at the first instruction of the function.
3946 (i386_frame_chain): Handle (generic) call dummies.
3947 (i386_frame_saved_pc): Likewise.
3948 (i386_frame_init_saved_regs): Remove code dealing with call
3949 dummies on the stack.
3950 (i386_push_dummy_frame): Removed.
3951 (i386_call_dummy_words): Removed.
3952 (i386_fix_call_dummy): Removed.
3953 (i386_push_return_address): New function.
3954 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3955 parameter, and don't call get_current_frame.
3956 (i386_pop_frame): New function.
3957 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3958 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3959 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3960 call_dummy_length to 0, set call_dummy_words to NULL, set
3961 sizeof_call_dummy_words to 0, set fix_call_dummy to
3962 generic_fix_call_dummy, set pc_in_call_dummy to
3963 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3964 generic_push_dummy_frame, set push_return_address to
3965 i386_push_return_address and set frame_chain_valid to
3966 generic_file_frame_chain_valid.
3968 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3970 * gdbarch.sh (struct regcache): Add opaque declaration.
3971 (EXTRACT_RETURN_VALUE): New architecture method.
3972 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3973 * gdbarch.h, gdbarch.c: Regenerate.
3974 * arch-utils.c (legacy_extract_return_value): New function.
3975 * arch-utils.h (legacy_extract_return_value): Declare.
3976 * values.c (value_being_returned): Re-enable code handling
3977 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3978 deprecated_grub_regcache_for_registers call to block handling
3979 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3980 (EXTRACT_RETURN_VALUE): Do not define.
3982 2002-07-03 Grace Sainsbury <graces@redhat.com>
3984 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3985 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3986 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3987 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3988 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3989 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3990 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3991 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3992 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3993 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3994 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3995 argument so the function fits the prototype in the architecture
3997 (mcore_pop_frame): Remove argument so the function fits the
3998 prototype. Use get_current_frame instead of the argument.
3999 (mcore_push_arguments): Change type of struct_return so the
4000 function can be used in the architecture vector.
4001 (mcore_store_struct_return): Add.
4002 (mcore_frame_init_saved_regs): Add.
4003 (mcore_gdbarch_init): Add function calls to replace the macros
4004 removed from tm-mcore.h
4006 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4008 * infcmd.c (print_return_value): Remove compatibility code calling
4009 deprecated_grub_regcache_for_registers.
4011 * values.c: Include "regcache.h".
4012 (value_being_returned): Update. Use
4013 deprecated_grub_regcache_for_registers to extract the register
4015 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4016 ``struct regcache''.
4017 * Makefile.in (values.o): Add dependency on $(regcache_h).
4019 * inferior.h (run_stack_dummy): Change type of second parameter to
4020 a ``struct regcache''.
4021 * valops.c (hand_function_call): Change type of retbuf to ``struct
4022 regcache''. Allocate using regcache_xmalloc, clean using
4023 make_cleanup_regcache_xfree.
4024 * infcmd.c (run_stack_dummy): Update. Use
4025 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4027 * regcache.c (do_regcache_xfree): New function.
4028 (make_cleanup_regcache_xfree): New function.
4029 * regcache.h (make_cleanup_regcache_xfree): Declare.
4031 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4033 * event-top.c (command_line_handler): Don't read past
4034 beginning of buffer.
4036 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4038 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4040 (varobj_create): Store frame_id for root.
4041 (varobj_gen_name): Use xasprintf.
4042 (varobj_update): Save and restore frame using get_frame_id() and
4044 (create_child): Use xasprintf.
4045 (new_root_variable): Initialize frame_id.
4046 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4047 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4048 to prevent memory leak.
4050 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4052 * valops.c (hand_function_call): Move declaration of retbuf to
4053 start of function, allocate using malloc, add a cleanup but before
4054 the inf_status cleanup, cleanup the buffer. Rename local variable
4055 old_chain to inf_status_cleanup.
4057 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4059 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4061 * cli/cli-decode.c (cmd_func_p): New function.
4062 (cmd_func): New function.
4064 * command.h: Add cmd_func() and cmd_func_p().
4066 2002-07-03 Grace Sainsbury <graces@redhat.com>
4068 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4069 (REGISTER_SIZE): Remove.
4070 (MAX_REGISTER_RAW_SIZE): Remove.
4071 (REGISTER_VIRTUAL_TYPE): Remove.
4072 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4073 (REGISTER_NAME): Remove.
4074 (USE_GENERIC_DUMMY_FRAMES): Remove.
4075 (CALL_DUMMY): Remove.
4076 (CALL_DUMMY_START_OFFSET): Remove.
4077 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4078 (CALL_DUMMY_LOCATION): Remove.
4079 (FIX_CALL_DUMMY): Remove.
4080 (CALL_DUMMY_ADDRESS): Remove.
4081 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4082 (SAVE_DUMMY_FRAME_TOS): Remove.
4083 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4084 (mcore_register_virtual_type): New function.
4085 (mcore_register_byte): New function.
4086 (mcore_register_size): New function.
4087 (mcore_register_name): New function.
4088 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4089 macros removed from tm-mcore.h.
4090 (mcore_dump_tdep): Add.
4091 (_initialize_mcore_tdep): Add gdbarch_register call.
4093 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4095 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4096 frameless_look_for_prologue, such that we actually call this
4099 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4101 * frame.h (frame_address_in_block): New function.
4103 * blockframe.c (frame_address_in_block): New function extracted
4104 from get_frame_block().
4105 (get_frame_block): Use frame_address_in_block().
4106 (block_innermost_frame): Use frame_address_in_block() to match
4107 the frame pc address against the block boundaries rather than
4108 the frame pc directly. This prevents a failure when a frame pc
4109 is actually a return-address pointing immediately after the end
4112 2002-07-02 Grace Sainsbury <graces@redhat.com>
4114 * MAINTAINERS: Add self under write after approval.
4116 2002-07-02 Grace Sainsbury <graces@redhat.com>
4118 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4119 used in architecture vector. The default is
4120 m68k_local_breakpoint_from_pc.
4121 (m68k_local_breakpoint_from_pc): Add.
4122 (enum): Add register numbers from tm-m68k.h.
4123 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4125 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4126 GDB_MULTI_ARCH_PARTIAL.
4127 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4128 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4130 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4131 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4132 to enum in m68k-tdep.c
4134 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4136 * solib-osf.c (open_map): Compute the list of shared libraries
4137 loaded by the inferior, rather than the list of libraries loaded
4138 by GDB itself. Otherwise, GDB ends up reading the symbols from
4139 the wrong shared libraries...
4141 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4143 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4144 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4146 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4148 (FRAMELESS_SIGNAL): Remove function.
4149 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4150 i386_linux_saved_pc_after_call): Removed.
4151 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4152 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4153 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4155 * i386-tdep.c (i386_frameless_signal_p): New function.
4156 (i386_frame_chain): Deal with frameless signals.
4157 (i386_sigtramp_saved_sp): New function.
4158 (i386_frame_saved_pc): Deal with frameless signals.
4159 (i386_saved_pc_after_call): Make sure the correct value is
4160 returned just after entry into a sigtramp.
4161 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4162 i386fbsd4_sc_sp_offset): New variables.
4163 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4164 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4165 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4166 similiar to what we already did for sc_pc_offset.
4167 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4170 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4172 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4174 * config/i386/tm-x86-64linux.h: New.
4175 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4177 * config/i386/nm-x86-64.h: Rename to ...
4178 * config/i386/nm-x86-64linux.h: ... this one.
4179 * config/i386/x86-64linux.mh: Reflect the above change.
4181 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4183 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4184 with sigcontext_addr. Add sc_sp_offset.
4185 (i386bsd_sigtramp_saved_pc): Remove prototype.
4186 (i386bsd_sicontext_addr): Add prototype.
4187 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4188 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4189 (i386_svr4_sigtramp_saved_pc): Removed.
4190 (i386_svr4_sigcontext_addr): New function.
4191 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4192 Initialize tdep->sigcontext_addr instead. Initialize
4193 tdep->sc_pc_offset and tdep->sc_sp_offset.
4194 (i386_gdbarch_init): Likewise.
4195 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4197 (i386bsd_sigtramp_saved_pc): Remove function.
4198 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4199 Initialize tdep->sigcontext_addr instead. Initialize
4201 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4202 of tdep->sigtramp_saved_pc.
4203 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4204 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4207 * i386-tdep.c (i386_frameless_function_invocation,
4208 i386_frame_num_args, i386_frame_init_saved_regs,
4209 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4210 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4211 i386_extract_return_value, i386_store_return_value,
4212 i386_extract_struct_value_address, i386_register_virtual_type,
4213 i386_register_convertible, i386_register_convert_to_virtual,
4214 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4215 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4218 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4220 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4222 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4223 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4224 this macro. Include "value.h".
4226 2002-06-30 Aidan Skinner <aidan@velvet.net>
4228 * ada-exp.tab.c: remove as it's a generated file
4229 * ada-lex.c: remove as it's a generated file
4231 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4233 * config/i386/tm-i386.h (struct frame_info, struct
4234 frame_saved_regs, struct value, struct type): Remove forward
4237 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4238 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4239 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4240 (FILL_FPXREGSET): Define.
4242 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4244 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4245 i[3456]86-*-netbsd* case.
4246 * config/i386/tm-obsd.h: Removed.
4247 * config/i386/obsd.mt: Removed.
4248 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4250 (MH_CFLAGS): Add -DYYDEBUG=0.
4252 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4253 i386nbsd_sc_pc_offset on OpenBSD too.
4255 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4256 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4257 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4259 * i386bsd-tdep.c: Include "arch-utils.h".
4260 (i386bsd_aout_in_solib_call_trampoline): New function.
4261 (i386bsd_init_abi): Set in_solib_call_trampoline to
4262 i386bsd_aout_in_solib_call_trampoline.
4263 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4264 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4266 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4268 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4269 (struct obstack, struct bcache): Add opaque declarations.
4270 * Makefile.in (macrotab_h): Update
4272 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4274 * blockframe.c (generic_find_dummy_frame): Change return type to
4275 ``struct regcache''.
4276 (struct dummy_frame): Replace field ``registers'' with regcache, a
4277 struct regcache object.
4278 (generic_find_dummy_frame): Update.
4279 (generic_push_dummy_frame): Update. Use regcache_xfree,
4280 regcache_xmalloc and regcache_cpy.
4281 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4283 (deprecated_generic_find_dummy_frame): Update.
4284 (generic_read_register_dummy): Update. Use
4285 regcache_read_as_address.
4286 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4287 (generic_get_saved_register): Update. Use regcache_read.
4289 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4291 * Makefile.in (objfiles_h): Add $(bcache_h).
4292 * objfiles.h: Include "bcache.h".
4294 * Makefile.in (symtab_h): Remove $(bcache_h).
4295 * symtab.h: Do not include "bcache.h".
4297 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4299 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4300 generic_func_frame_chain_valid.
4302 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4304 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4305 * config/i386/tm-fbsd.h: Likewise.
4307 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4309 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4310 generic_unwind_get_saved_register.
4312 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4314 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4315 * regcache.c (supply_register): Add missing argument to
4316 register_buffer call.
4318 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4320 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4321 Solaris /bin/grep does not not like it. From Peter Schauer.
4323 2002-06-26 Tom Tromey <tromey@redhat.com>
4325 * command.h (add_setshow_cmd): Declare.
4326 (add_setshow_cmd_full): Declare.
4327 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4328 returns void. Use add_setshow_cmd_full.
4329 (add_setshow_cmd_full): New function.
4330 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4331 (add_setshow_boolean_cmd): Likewise.
4333 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4335 * config/vax/tm-vax.h: Protect from multiple inclusion.
4336 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4337 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4338 * config/vax/tm-vaxbsd.h: ...here. New file.
4339 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4341 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4343 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4344 (BELIEVE_PCC_PROMOTION): Remove.
4345 (AP_REGNUM): Move to...
4346 * config/vax/nm-vax.h: ...here.
4347 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4348 (vax_breakpoint_from_pc): New function.
4349 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4350 and gdbarch_believe_pcc_promotion.
4352 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4354 * Makefile.in (vax_tdep_h): Define.
4355 (vax-tdep.o): Use $(vax_tdep_h).
4356 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4357 (vax_dump_tdep): New function.
4358 (_initialize_vax_tdep): Register vax_dump_tdep.
4359 * vax-tdep.h: Include osabi.h.
4360 (struct gdbarch_tdep): New.
4362 2002-06-26 Andrew Cagney <cagney@redhat.com>
4364 * frame.h (deprecated_generic_find_dummy_frame): Rename
4365 generic_find_dummy_frame.
4366 * blockframe.c (generic_find_dummy_frame): Make static.
4367 (deprecated_generic_find_dummy_frame): New function.
4368 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4369 generic_find_dummy_frame with deprecated_find_dummy_frame.
4370 (sh64_nofp_frame_init_saved_regs): Ditto.
4371 (sh_fp_frame_init_saved_regs): Ditto.
4372 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4373 (s390_frame_chain): Ditto.
4374 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4376 2002-06-26 Grace Sainsbury <graces@redhat.com>
4378 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4379 gdbarch vector are at the top.
4381 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4382 (FRAME_ARGS_ADDRESS): Remove.
4383 (FRAME_LOCALS_ADDRESS): Remove.
4384 (FRAME_NUM_ARGS): Remove.
4385 (FRAME_ARGS_SKIP): Remove.
4386 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4387 (m68k_gdbarch_init): Add gdbarch initializations for macros
4388 undefined in tm-m68k.h
4390 2002-06-26 Grace Sainsbury <graces@redhat.com>
4392 * monitor.h: Add the function regname to monitor_ops
4393 structure. This way NUM_REGS does not have to be a constant.
4394 * monitor.c (monitor_fetch_register): Added support for regname
4395 function. The function is called if the array regnames is NULL.
4396 (monitor_store_register): Same.
4397 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4399 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4400 cpu32bug_cmds.regname to point to new function.
4401 * abug-rom.c (abug_regname): Same as above.
4402 (init_abug_cmds): Same.
4403 * dbug-rom.c (dbug_regname): Same as above.
4404 (init_dbug_cmds): Same.
4405 * remote-est.c (est_regname): Same.
4406 (init_est_cmds): Same.
4407 * rom68k-rom.c (rom68k_regname): Same.
4408 (init_rom68k_cmds): Same.
4410 2002-06-25 Tom Tromey <tromey@redhat.com>
4412 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4414 2002-06-25 Andrew Cagney <cagney@redhat.com>
4416 * infrun.c (stop_registers): Change variable's type to ``struct
4418 (xmalloc_inferior_status): Delete function.
4419 (free_inferior_status): Delete function.
4420 (normal_stop): Use regcache_cpy.
4421 (struct inferior_status): Change type of fields ``stop_registers''
4422 and ``registers'' to ``struct regcache''.
4423 (write_inferior_status_register): Use regcache_write.
4424 (save_inferior_status): Instead of calling
4425 xmalloc_inferior_status, allocate the inf_status buffer directly.
4426 Use regcache_dup_no_passthrough and regcache_dup to save the
4428 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4429 Replace the stop_registers regcache instead of overriding it. Use
4430 regcache_xfree. Instead of calling free_inferior_status, xfree
4431 the buffer directly.
4432 (discard_inferior_status): Use regcache_xfree. Instead of calling
4433 free_inferior_status, xfree the buffer directly.
4434 (build_infrun): Use regcache_xmalloc.
4435 (_initialize_infrun): Delete redundant call to build_infrun.
4437 * Makefile.in (infcmd.o): Add $(regcache_h).
4439 * infcmd.c: Include "regcache.h".
4440 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4441 obtain the address of `stop_registers' register buffer.
4442 (print_return_value): Ditto.
4444 * inferior.h (struct regcache): Add opaque declaration.
4445 (stop_registers): Change variable's declared type to ``struct
4448 2002-06-24 Tom Tromey <tromey@redhat.com>
4450 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4451 * target.c (initialize_targets): Fixed typo in
4452 trust-readonly-sections `show' documentation.
4454 * main.c: Marked all strings with _().
4456 2002-06-24 Don Howard <dhoward@redhat.com>
4458 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4459 that means max CORE_ADDR+1.
4460 (lookup_mem_region): Ditto.
4461 (mem_info_command): Ditto.
4463 2002-06-24 Grace Sainsbury <graces@redhat.com>
4465 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4466 (REGISTER_BYTES_OK): Remove.
4467 (REGISTER_BYTES): Remove.
4468 (STORE_STRUCT_RETURN): Remove.
4469 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4470 (STORE_RETURN_VALUE): Remove.
4471 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4472 (FRAME_CHAIN): Remove.
4473 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4474 (FRAME_SAVED_PC): Remove.
4475 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4476 (m68k_store_struct_return): Add.
4477 (m68k_deprecated_extract_return_value): Add.
4478 (m68k_deprecated_extract_struct_value_address): Add.
4479 (m68k_store_return_value): Add.
4480 (m68k_frame_chain): Add.
4481 (m68k_frameless_function_invocation): Add.
4482 (m68k_frame_saved_pc): Add.
4483 (m68k_gdbarch_init): added set_gdbarch calls for new
4484 functions and deleted macros.
4486 2002-06-23 Tom Tromey <tromey@redhat.com>
4488 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4489 (ALLDEPFILES): Likewise.
4490 (udiheaders): Removed.
4491 (udip2soc.o): Likewise.
4492 (udi2go32.o): Likewise.
4494 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4496 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4498 * infrun.c (_initialize_infrun): Delete unnecessary call to
4501 * regcache.h: Update comments describing the regcache_cpy family
4503 (regcache_save, regcache_restore): Delete declaration.
4504 (regcache_save_no_passthrough): Delete declaration.
4505 (regcache_restore_no_passthrough): Delete declaration.
4506 * regcache.c (regcache_save): Delete function.
4507 (regcache_save_no_passthrough): Delete function.
4508 (regcache_restore): Delete function.
4509 (regcache_restore_no_passthrough): Delete function.
4511 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4513 * config/m68k/tm-m68k.h: Fix typo.
4514 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4515 (m68k_frame_init_saved_regs): Declare.
4517 2002-06-21 Jim Blandy <jimb@redhat.com>
4519 Remove some vestiges of Harris 88k support.
4520 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4521 register numbering quirk.
4522 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4523 odd symbols occurring in Harris 88k ELF targets.
4525 2002-06-21 Tom Tromey <tromey@redhat.com>
4527 * gdb_locale.h: New file.
4528 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4529 (defs_h): Added gdb_locale.h.
4530 * configure, config.in: Rebuilt.
4531 * configure.in (PACKAGE): Define.
4532 * defs.h: Include gdb_locale.h.
4533 * main.c (captured_main): Call setlocale, bindtextdomain,
4536 2002-06-21 Dave Brolley <brolley@redhat.com>
4538 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4539 * config/frv/frv.mt: New file.
4540 * config/frv/tm-frv.h: New file.
4541 * configure.tgt: Support frv-*-*.
4542 * Makefile.in (frv-tdep.o): New target.
4543 * frv-tdep.c: New file.
4544 * NEWS: Mention frv.
4546 2002-06-21 Dave Brolley <brolley@redhat.com>
4548 * MAINTAINERS: Add self to "Write After Approval" list.
4550 2002-06-21 Grace Sainsbury <graces@redhat.com>
4552 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4553 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4554 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4555 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4556 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4558 * m68k-tdep.c: Include arch-utils.h
4559 (m68k_register_raw_size): Add.
4560 (m68k_register_virtual_size): Add.
4561 (m68k_register_virtual_type): Add.
4562 (m68k_register_name): Add.
4563 (m68k_stack_align): Add.
4564 (m68k_register_byte): Add.
4565 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4568 2002-06-21 Grace Sainsbury <graces@redhat.com>
4570 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4571 m68k_find_saved_regs.
4572 (m68k_pop_frame): Removed saved_regs structure, and replaced
4573 references to it with frame->saved_regs.
4574 (m68k_gdbarch_init): Added function calls to initialize the
4576 (m68k_fix_call_dummy): Add.
4577 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4578 (CALL_DUMMY): Remove.
4579 (CALL_DUMMY_LENGTH): Remove.
4580 (CALL_DUMMY_START_OFFSET): Remove.
4581 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4582 (FIX_CALL_DUMMY): Remove.
4583 (PUSH_DUMMY_FRAME): Remove.
4584 (POP_FRAME): Remove.
4586 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4588 * parse.c (parse_fprintf): New function used to avoid calls to
4589 fprintf in bison parser generated debug code.
4590 * parser-defs.h: Declaration of new parse_fprintf function.
4591 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4592 Set YYDEBUG to 1 by default.
4593 Set YYFPRINTF as parse_fprintf.
4595 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4597 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4599 (pointer_encoding, enum ptr_encoding): New.
4600 (execute_cfa_program): Take care about pointer encoding.
4601 (dwarf2_build_frame_info): Only call parse_frame_info for
4602 .debug_frame and .eh_frame.
4603 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4604 fixed augmentation handling, added relative addressing,
4605 ignore duplicate FDEs. Added comments.
4606 * dwarf2cfi.c: Reindented.
4608 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4610 * event-top.c (command_handler): Don't use space_at_cmd_start
4611 unless there is sbrk() on the host. Assign time and space data
4612 to union fields of the appropriate length.
4614 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4616 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4617 x86_64_register_name. Return type changed to 'const char *'.
4618 (x86_64_register_name2nr): Rename to x86_64_register_number.
4619 (x86_64_gdbarch_init): Update to reflect the change.
4620 * x86-64-tdep.h: Ditto.
4621 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4622 (supply_fpregset): Ditto.
4624 2002-06-19 Andrew Cagney <cagney@redhat.com>
4626 * regcache.h: Update copyright.
4627 (struct regcache, struct gdbarch): Add opaque declarations.
4628 (current_regcache): Declare global variable.
4629 (regcache_read, regcache_write): Add gdbarch parameter.
4630 (regcache_save, regcache_save_no_passthrough)
4631 (regcache_restore, regcache_restore_no_passthrough)
4632 (regcache_dup, regcache_dup_no_passthrough)
4633 (regcache_cpy, regcache_cpy_no_passthrough)
4634 (deprecated_grub_regcache_for_registers)
4635 (deprecated_grub_regcache_for_register_valid)
4636 (regcache_valid_p): Add function declarations.
4638 * regcache.c: Update copyright.
4639 (regcache_descr_handle): New global variable.
4640 (struct regcache_descr): Define.
4641 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4642 (regcache_descr, xfree_regcache_descr): New functions.
4643 (struct regcache): Define.
4644 (regcache_xmalloc, regcache_xfree): New functions.
4645 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4646 (regcache_dup, regcache_dup_no_passthrough): New functions.
4647 (regcache_valid_p, regcache_read_as_address): New functions.
4648 (deprecated_grub_regcache_for_registers): New function.
4649 (deprecated_grub_regcache_for_register_valid): New function.
4650 (current_regcache): New global variable.
4651 (register_buffer): Add regcache parameter. Update calls.
4652 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4653 (read_register_gen, write_register_gen): Update register_buffer
4654 call. Test for legacy_p instead of gdbarch_register_read_p or
4655 gdbarch_register_write_p.
4656 (regcache_collect): Update register_buffer call.
4657 (build_regcache): Rewrite. Use deprecated grub functions.
4658 (regcache_save, regcache_save_no_passthrough): New functions.
4659 (regcache_restore, regcache_restore_no_passthrough): New
4661 (_initialize_regcache): Create the regcache_data_handle. Swap
4662 current_regcache global variable.
4664 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4665 parameter to regcache_read and regcache_write calls.
4666 (sh4_register_read): Ditto.
4667 (sh64_pseudo_register_read): Ditto.
4668 (sh64_register_read): Ditto.
4669 (sh_pseudo_register_write): Ditto.
4670 (sh4_register_write): Ditto.
4671 (sh64_pseudo_register_write): Ditto.
4672 (sh64_register_write): Ditto.
4674 * defs.h (XCALLOC): Define.
4676 2002-06-19 Grace Sainsbury <graces@redhat.com>
4678 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4679 * m68k-tdep.c (m68k_gdbarch_init): Added.
4680 (m68k_dump_tdep): Added.
4682 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4684 * ada-lang.c (fill_in_ada_prototype): Update comment.
4686 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4688 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4690 (mips_abi_string, mips_abi_strings): New.
4691 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4692 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4693 tdep->mips_abi_string. Honor mips_abi_string. Default to
4694 O32 if no ABI is found.
4695 (mips_dump_tdep): Use mips_abi_strings.
4696 (mips_abi_update): New function.
4697 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4698 ``set mips abi'' and ``show mips abi''. Check the size of
4701 2002-06-19 Andrew Cagney <cagney@redhat.com>
4703 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4706 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4708 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4709 current frame using only the first stack size adjustment. All
4710 subsequent size adjustments are not considered to be part of
4711 the "static" part of the current frame.
4712 Compute the address of the saved registers relative to the
4713 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4714 in use in this frame.
4716 2002-06-18 Don Howard <dhoward@redhat.com>
4718 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4719 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4720 suggesting this solution.
4722 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4724 * config/romp/xm-rtbsd.h: Delete file.
4725 * config/romp/rtbsd.mh: Delete file.
4727 2002-06-18 Keith Seitz <keiths@redhat.com>
4729 * breakpoint.c (condition_command): Post breakpoint_modify
4730 when a condition is added to an existing breakpoint.
4731 (commands_command): Likewise for commands.
4732 (set_ignore_count): Likewise for ignore counts.
4733 If no tty, do not simply return, still need to send event
4735 (ignore_command): Only print a newline if the command came
4737 Don't call breakpoints_changed, since this is now properly
4738 handled by set_ignore_count.
4740 2002-06-18 Andrew Cagney <cagney@redhat.com>
4742 * MAINTAINERS: Note that cris-elf target can be compiled with
4744 * cris-tdep.c (cris_register_name): Make return type constant.
4745 (cris_breakpoint_from_pc): Ditto.
4747 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4749 * frame.h (struct frame_info): Change type of context to
4752 2002-06-17 Andrew Cagney <cagney@redhat.com>
4754 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4756 * gdbarch.h, gdbarch.c: Regenerate.
4757 * config/mips/tm-mips.h (mips_register_name): Update.
4758 * i386-tdep.h (i386_register_name): Update.
4759 * mips-tdep.c (mips_register_name): Update
4760 * alpha-tdep.c (alpha_register_name): Update.
4761 * arch-utils.c (legacy_register_name): Update.
4762 * arch-utils.h (legacy_register_name): Update.
4763 * avr-tdep.c (avr_register_name): Update.
4764 * ia64-tdep.c (ia64_register_name): Update.
4765 * i386-tdep.c (i386_register_name): Update.
4766 * sparc-tdep.c (sparc32_register_name): Update.
4767 (sparc64_register_name): Update.
4768 (sparclite_register_name): Update.
4769 (sparclet_register_name): Update.
4770 * sh-tdep.c (sh_generic_register_name): Update.
4771 (sh_sh_register_name): Update.
4772 (sh_sh3_register_name): Update.
4773 (sh_sh3e_register_name): Update.
4774 (sh_sh_dsp_register_name): Update.
4775 (sh_sh3_dsp_register_name): Update.
4776 (sh_sh4_register_name): Update.
4777 (sh_sh64_register_name): Update.
4778 * s390-tdep.c (s390_register_name): Update.
4779 * rs6000-tdep.c (rs6000_register_name): Update.
4780 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4781 (ns32k_register_name_32382): Update.
4782 * d10v-tdep.c (d10v_ts2_register_name): Update.
4783 (d10v_ts3_register_name): Update.
4784 * xstormy16-tdep.c (xstormy16_register_name): Update.
4785 * vax-tdep.c (vax_register_name): Update.
4786 * v850-tdep.c (v850_register_name): Update.
4787 * m68hc11-tdep.c (m68hc11_register_name): Update.
4788 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4789 (am33_register_name): Update.
4791 2002-06-17 Grace Sainsbury <graces@redhat.com>
4793 * m68k-tdep.c: Reindented.
4795 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4797 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4798 list of predefined types.
4800 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4802 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4803 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4804 REGISTER_CONVERT_TO_RAW): Remove defines.
4805 (i386_register_virtual_type, i386_register_convertible,
4806 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4808 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4809 macros mentioned above.
4811 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4812 (i386lynx_saved_pc_after_call): Remove prototype.
4813 * i386ly-tdep.c: Include "i386-tdep.h".
4814 (i386lynx_saved_pc_after_call): Make static. Use
4815 read_memory_nobpt instead of read_memory. Use
4816 read_memory_unsigned_integer instead of read_memory_integer.
4817 (i386lynx_init_abi): New function.
4818 (i386lynx_coff_osabi_sniffer): New function.
4819 (_initialize_i386bsd_tdep): New function.
4821 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4822 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4823 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4824 (i386_fix_call_dummy): Remove prototype.
4825 * i386-tdep.c (i386_call_dummy_words): New variable.
4826 (i386_gdbarch_init): Adjust for removal of the
4827 macros mentioned above.
4829 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4831 * command.h (add_setshow_auto_boolean_cmd): Replace
4832 add_set_auto_boolean_cmd.
4833 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4834 add_set_auto_boolean_cmd.
4835 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4836 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4837 mask-address'' command.
4838 (show_mask_address): Add cmd parameter.
4839 * remote.c (add_packet_config_cmd): Update. Change type of
4840 set_func and show_func to cmd_sfunc_ftype.
4841 (_initialize_remote): Update `set remote Z-packet'
4842 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4843 (show_remote_protocol_e_packet_cmd): Ditto.
4844 (show_remote_protocol_E_packet_cmd): Ditto.
4845 (show_remote_protocol_P_packet_cmd): Ditto.
4846 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4847 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4848 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4849 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4850 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4851 (show_remote_protocol_Z_packet_cmd): Ditto.
4852 (show_remote_protocol_binary_download_cmd): Ditto.
4853 (show_remote_cmd): Pass NULL to all of above.
4855 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4857 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4858 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4859 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4860 POP_FRAME): Remove defines.
4861 (i386_push_arguments, i386_store_struct_return,
4862 i386_extract_return_value, i386_store_return_value,
4863 i386_extract_struct_value_address, i386_push_dummy_frame,
4864 i386_pop_frame): Renove prototypes.
4865 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4866 macros mentioned above.
4868 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4870 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4871 add_set_boolean_cmd.
4872 (add_setshow_cmd): New function.
4873 * command.h (add_setshow_boolean_cmd): Replace
4874 add_set_boolean_cmd.
4875 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4876 and ``set rdiromatzero''.
4877 * maint.c (_initialize_maint_cmds): Update commented out code.
4878 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4879 * target.c (initialize_targets): Update `set
4880 trust-readonly-sections'.
4881 * remote.c (_initialize_remote): Update `set remotebreak'.
4883 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4885 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4886 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4887 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4888 fit into multi-arch framework.
4889 (i386_breakpoint_from_pc): New function.
4890 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4893 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4894 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4895 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4896 (i386_frameless_function_invocation, i386_frame_num_args,
4897 i386_frame_init_saved_regs): Remove prototypes.
4898 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4899 macros mentioned above.
4901 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4903 * cli/cli-decode.c (set_cmd_cfunc): Update.
4904 (set_cmd_sfunc): Update.
4905 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4906 (set_cmd_sfunc, set_cmd_cfunc): Update.
4907 * cli/cli-decode.h: Update.
4909 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4911 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4912 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4914 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4916 * defs.h (auto_boolean): Declare enum.
4917 * command.h (cmd_auto_boolean): Delete enum.
4918 * mips-tdep.c (mask_address_var): Update.
4919 (mips_mask_address_p): Update.
4920 (show_mask_address): Update.
4921 * remote.c (struct packet_config): Update.
4922 (update_packet_config): Update.
4923 (show_packet_config_cmd): Update.
4924 (packet_ok): Update.
4925 (add_packet_config_cmd): Update.
4926 (_initialize_remote):
4927 * command.h: Update.
4928 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4929 (do_setshow_command): Update.
4930 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4931 * cli/cli-decode.h: Update.
4933 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4935 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4936 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4937 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4938 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4939 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4940 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4942 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4943 list of DJGPP COFF targets.
4945 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4946 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4947 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4948 (FP0_REGNUM): Remove define.
4949 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4950 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4951 (i386_register_virtual_size): Remove protoype.
4952 * i386-tdep.c (i386_register_virtual_size): Removed.
4953 (i386_extract_return_value, i386_store_return_value): Use
4954 FP0_REGNUM instead of NUM_FREGS to determine whether the
4955 floating-point registers are available.
4956 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4957 Adjust for removal of macros mentioned above.
4959 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4961 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4963 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4965 (supply_gregset, fill_gregset): Remove use of register keyword and
4966 remove declaration for regmap. Use I386_NUM_GREGS instead of
4967 NUM_REGS and NUM_FREGS.
4968 (FPREGSET_FSAVE_OFFSET): Remove.
4969 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4970 NUM_FREGS to determine whether the floating-point registers are
4973 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4974 gnu_store_registers): Replace usage of NUM_GREGS with
4977 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4978 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4979 usage of NUM_GREGS with I386_NUM_GREGS.
4981 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4983 * i386bsd-nat.c: Include "i386-tdep.h".
4984 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4987 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4988 and associated comment. They no longer make any sense, since we
4989 don't use this file anymore on Linux.
4991 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4992 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4993 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4994 elements in these arrays.
4995 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4998 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5000 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5001 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5003 2002-06-14 Andrew Cagney <cagney@redhat.com>
5005 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5006 EXTRACT_RETURN_VALUE.
5007 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5008 EXTRACT_STRUCT_VALUE_ADDRESS.
5009 * gdbarch.h, gdbarch.c: Regenerate.
5011 * values.c (value_being_returned): Handle
5012 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5013 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5015 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5016 * arm-tdep.c (arm_gdbarch_init): Update.
5017 * avr-tdep.c (avr_gdbarch_init): Update.
5018 * cris-tdep.c (cris_gdbarch_init): Update.
5019 * d10v-tdep.c (d10v_gdbarch_init): Update.
5020 * ia64-tdep.c (ia64_gdbarch_init): Update.
5021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5023 * s390-tdep.c (s390_gdbarch_init): Update.
5024 * sh-tdep.c (sh_gdbarch_init): Update.
5025 * s390-tdep.c (s390_gdbarch_init): Update.
5026 * sparc-tdep.c (sparc_gdbarch_init): Update.
5027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5028 * v850-tdep.c (v850_gdbarch_init): Update.
5029 * vax-tdep.c (vax_gdbarch_init): Update.
5030 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5033 * config/arc/tm-arc.h: Update.
5034 * config/d30v/tm-d30v.h: Update.
5035 * config/fr30/tm-fr30.h: Update.
5036 * config/h8300/tm-h8300.h: Update.
5037 * config/h8500/tm-h8500.h: Update.
5038 * config/i386/tm-i386.h: Update.
5039 * config/i386/tm-ptx.h: Update.
5040 * config/i386/tm-symmetry.h: Update.
5041 * config/i960/tm-i960.h: Update.
5042 * config/m32r/tm-m32r.h: Update.
5043 * config/m68k/tm-delta68.h: Update.
5044 * config/m68k/tm-linux.h: Update.
5045 * config/m68k/tm-m68k.h: Update.
5046 * config/m88k/tm-m88k.h: Update.
5047 * config/mcore/tm-mcore.h: Update.
5048 * config/mips/tm-mips.h: Update.
5049 * config/mn10200/tm-mn10200.h: Update.
5050 * config/pa/tm-hppa.h: Update.
5051 * config/pa/tm-hppa64.h: Update.
5052 * config/sparc/tm-sp64.h: Update.
5053 * config/sparc/tm-sparc.h: Update.
5054 * config/sparc/tm-sparclet.h: Update.
5055 * config/z8k/tm-z8k.h: Update.
5057 2002-06-14 Andrew Cagney <cagney@redhat.com>
5059 * Makefile.in (i386_linux_tdep_h): Define.
5060 (i386_tdep_h, i387_tdep_h): Define.
5061 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5062 $(i386_tdep_h) and $(i387_tdep_h).
5063 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5065 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5067 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5068 Already covered by the default.
5070 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5071 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5072 (i386_gdbarch_init): Initialize long_double_format and long_double
5075 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5076 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5078 * config/i386/i386sol2.mh: ... here.
5079 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5080 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5081 (SIGCONTEXT_PC_OFFSET): Remove define.
5082 (IN_SIGTRAMP): Remove define.
5083 * i386-sol2-tdep.c: New file.
5085 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5086 * config/i386/tm-i386nw.h: Removed.
5088 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5089 USE_STRUCT_CONVENTION): Remove defines.
5090 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5091 (get_longjmp_target): Remove prototype.
5092 (IN_SIGTRAMP): Remove define.
5093 (i386bsd_in_sigtramp): Remove prototype.
5094 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5095 function. Update comment accordingly
5096 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5097 (FRAME_SAVED_PC): Remove define.
5098 (i386bsd_frame_saved_pc): Remove prototype.
5099 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5100 GET_LONGJMP_TARGET): Remove defines.
5101 (get_longjmp_target): Remove prototype.
5102 (IN_SIGTRAMP): Remove define.
5103 (i386bsd_in_sigtramp): Remove prototype.
5104 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5105 function. Update comment accordingly
5106 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5107 (FRAME_SAVED_PC): Remove define.
5108 (i386bsd_frame_saved_pc): Remove prototype.
5109 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5111 (USE_STRUCT_CONVENTION): Remove prototype.
5112 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5114 (_initialize_i386bsd_nat): Revise logic to determine some
5115 constants at compile time when compiling a native GDB. Warn if
5116 things don't match up with what we expect.
5117 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5119 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5120 to use date stored in `struct gdbarch_tdep'.
5121 (i386bsd_sigcontext_offset): Remove varaible.
5122 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5123 stored in `struct gdbarch_tdep'.
5124 (i386bsd_frame_saved_pc): Make static.
5125 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5126 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5127 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5128 i386fbsd4_sc_pc_offset): New variables.
5129 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5130 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5132 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5134 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5135 Modify the value of i386fbsd_sigtramp_start and
5136 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5137 i386fbsd_sigtramp_end.
5138 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5141 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5142 define to i386-linux-tdep.h.
5143 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5144 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5146 (i386_linux_register_name, i386_linux_register_byte,
5147 i386_linux_register_raw_size): Remove prototypes.
5148 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5149 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5150 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5151 TARGET_WRITE_PC): Remove defines.
5152 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5153 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5154 i386_linux_write_pc): Remove prototypes.
5155 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5156 (get_longjmp_target): Remove prototype.
5157 * i386-linux-tdep.h: New file.
5158 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5159 * i386-linux-tdep.c: Include "i386-tdep.h" and
5160 "i386-linux-tdep.h".
5161 (i386_linux_register_name, i386_linux_register_byte,
5162 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5163 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5165 (i386_linux_init_abi): New function.
5166 (_initialize_i386_linux_tdep): New function.
5168 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5169 (i386_saved_pc_after_call): Remove prototype.
5170 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5171 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5172 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5173 (i386_register_name, i386_stab_reg_to_regnum,
5174 i386_dwarf_reg_to_regnum): Remove prototypes.
5175 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5176 SIZEOF_SSE_REGS): Remove defines.
5177 (REGISTER_BYTES): Remove define.
5178 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5179 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5180 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5181 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5182 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5183 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5184 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5185 (get_longjmp_target): Remove prototype.
5186 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5187 (sigtramp_saved_pc): Remove define.
5188 (i386v4_sigtramp_saved_pc): Remove prototype.
5189 * config/i386/tm-go32.h (FRAME_CHAIN,
5190 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5191 (i386go32_frame_saved_pc): Remove prototype.
5192 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5193 (get_longjmp_target): Remove prototype.
5194 * i386-tdep.h: Include "osabi.h".
5195 (enum i386_abi): Removed.
5196 (enum struct_return): New enum.
5197 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5198 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5199 sc_pc_offset members.
5200 (i386_gdbarch_register_os_abi): Remove prototype.
5201 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5202 I386_SSE_NUM_REGS): New defines.
5203 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5204 I386_SSE_SIZEOF_REGS): New defines.
5205 (i386_register_name, i386_register_byte, i386_register_raw_size):
5207 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5208 (i386bsd_sigtramp_saved_pc): New prototype.
5209 * i386-tdep.c: Don't include "elf-bfd.h".
5210 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5211 i386_frame_chain, i386_saved_pc_after_call): Make static.
5212 (i386_frame_saved_pc): Rewrite to call architecture dependent
5213 function to deal with signal handlers. Make static.
5214 (i386go32_frame_saved_pc): Removed.
5215 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5217 (i386_get_longjmp_target): New function.
5218 (default_struct_convention, pcc_struct_convention,
5219 reg_struct_convention, valid_conventions, struct_convention): New
5221 (i386_use_struct_convention): New function.
5222 (i386v4_sigtramp_saved_pc): Renamed to
5223 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5224 (i386_pc_in_sigtramp): New function.
5225 (i386_abi_names): Removed.
5226 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5227 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5229 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5230 i386_gdbarch_register_os_abi): Removed.
5231 (struct i386_abi_handler): Removed.
5232 (i386_abi_handler_list): Removed.
5233 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5235 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5236 i386_nw_init_abi): New functions.
5237 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5238 Use set_gdbarch_xxx() calls instead of relying on macros for a
5240 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5241 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5242 Register the various architecture variants defined in this file.
5244 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5246 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5247 (struct main_type): Remove arg_types member. Update comments for
5249 (TYPE_ARG_TYPES): Remove.
5250 (TYPE_FN_FIELD_ARGS): Update.
5251 (smash_to_method_type): Update prototype.
5253 * c-typeprint.c (cp_type_print_method_args): Take method type
5254 instead of argument list. Use new argument layout. Simplify.
5255 (c_type_print_args): Use new argument layout. Simplify.
5256 (c_type_print_base): Update call to cp_type_print_method_args.
5257 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5258 argument; use die->type instead. Update call to
5259 smash_to_method_type.
5260 (read_structure_scope): Update call to dwarf2_add_member_fn.
5261 * gdbtypes.c (allocate_stub_method): Update comment.
5262 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5263 Use new argument layout.
5264 (check_stub_method): Use new argument layout. Don't count
5265 void as an argument.
5266 (print_arg_types): Update comments. Use new argument layout.
5267 (recursive_dump_type): Don't print arg_types member.
5268 * hpread.c (hpread_read_struct_type): Use new argument layout.
5269 (fixup_class_method_type): Likewise.
5270 (hpread_type_lookup): Likewise.
5271 * stabsread.c (read_type): Update calls to read_args and
5272 smash_to_method_type.
5273 (read_args): Use new argument layout. Simplify.
5274 * valops.c (typecmp): Use new argument layout. Update parameters
5275 and comments. Simplify.
5276 (hand_function_call): Use new argument layout.
5277 (search_struct_method): Update call to typecmp.
5278 (find_overload_match): Use new argument layout.
5280 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5282 * NEWS: Mention multithreaded debug support for gdbserver.
5284 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5286 * MAINTAINERS: Mention NEWS.
5288 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5290 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5291 (struct mips_objfile_private, compare_pdr_entries): New.
5292 (non_heuristic_proc_desc): Read the ".pdr" section if it
5295 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5297 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5298 (arm_debug): New static variable.
5299 (_initialize_arm_tdep): Add ``set debug arm'' command.
5301 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5303 * Makefile.in (sim_arm_h): Define.
5304 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5305 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5306 (arm_register_sim_regno): New function, map an internal REGNUM
5307 onto a simulator register number.
5308 (arm_gdbarch_init): Set register_sim_regno.
5310 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5312 * MAINTAINERS: Add self.
5314 2002-06-11 Jim Blandy <jimb@redhat.com>
5316 * source.c (source_info): Mention whether the symtab has
5317 information about preprocessor macros.
5319 Call the command `info macro', not `show macro'.
5320 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5322 (_initialize_macrocmd): Register `info_macro_command' in
5323 `infolist', not `showlist'.
5325 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5327 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5328 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5329 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5330 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5331 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5333 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5334 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5335 (_initialize_mips_tdep): Remove dead code.
5336 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5337 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5338 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5339 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5340 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5341 MIPS_LAST_FP_ARG_REGNUM): Remove.
5343 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5345 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5346 (unwind_tmp_obstack_free, parse_frame_info)
5347 (update_context, cfi_read_fp, cfi_write_fp)
5348 (cfi_frame_chain, cfi_init_extra_frame_info)
5349 (cfi_virtual_frame_pointer): Use the above function.
5350 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5352 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5354 * v850-tdep.c (v850_type_is_scalar): New function.
5355 (v850_use_struct_convention): Match current gcc implementation
5356 as close as possible.
5357 (v850_push_arguments): Fix stack_offset handling. Don't write
5358 struct_addr into register. This is done by v850_store_struct_return.
5359 (v850_extract_return_value): Care for structs.
5360 (v850_store_return_value): Ditto.
5361 (v850_store_struct_return): Actually write address.
5363 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5365 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5366 without debug information too.
5368 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5370 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5371 Make multi-arch pure.
5372 * gdbarch.h, gdbarch.c: Re-generate.
5373 * arm-tdep.c (arm_print_float_info): Update.
5374 * arch-utils.h (default_print_float_info): Update.
5375 * arch-utils.c (default_print_float_info): Update.
5376 * infcmd.c (float_info): Update call.
5378 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5380 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5381 the front of the initialize list.
5383 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5385 * infrun.c (struct inferior_status): Replace fields
5386 selected_frame_address and selected_level with field
5388 (save_inferior_status): Update. Use get_frame_id.
5389 (struct restore_selected_frame_args): Delete.
5390 (restore_selected_frame): Update. Use frame_find_by_id.
5391 (restore_inferior_status): Update.
5393 * breakpoint.h (struct breakpoint): Change type of
5394 watchpoint_frame to frame_id.
5395 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5396 call to get_current_frame.
5397 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5399 (watchpoint_check): Use frame_find_by_id.
5401 * frame.h (record_selected_frame): Delete declaration.
5402 * stack.c (record_selected_frame): Delete function.
5404 * frame.h (struct frame_id): Define.
5405 (get_frame_id): Declare.
5406 (frame_find_by_id): Declare.
5407 * frame.c (frame_find_by_id): New function.
5408 (get_frame_id): New function.
5410 2002-06-10 Andrey Volkov <avolkov@transas.com>
5412 * ser-e7kpc.c: Fix duplicated define and call of
5413 _initialize_ser_e7000pc
5415 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5417 * signals/signals.c (target_signal_from_host): Fix #ifdef
5419 (do_target_signal_to_host): Likewise.
5421 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5423 * mips-tdep.c (mips_find_abi_section): New function.
5424 (mips_gdbarch_init): Call it.
5426 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5428 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5429 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5430 after Andrew's 2002-06-08 gdbarch change.
5432 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5434 * i386-linux-nat.c (suppy_gregset): Don't supply
5435 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5437 (fill_gregset): Don't fetch it under the same circumstances.
5439 2002-06-09 Andrew Cagney <cagney@redhat.com>
5441 * Makefile.in (callback_h): Define.
5442 (remote_sim_h): Update path to remote-sim.h.
5443 (remote-rdp.o): Add $(callback_h).
5444 (remote-sim.o): Use $(callback_h).
5445 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5446 * remote-rdp.c: Include "gdb/callback.h".
5448 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5450 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5451 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5453 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5455 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5456 * rdi-share/serpardr.c: Ditto.
5457 * rdi-share/unixcomm.c: Ditto.
5458 * rdi-share/serdrv.c: Ditto.
5459 * rdi-share/hostchan.h: Ditto.
5460 * rdi-share/hostchan.c: Ditto.
5461 * rdi-share/host.h: Ditto.
5462 * rdi-share/devsw.c: Ditto.
5464 * objfiles.h: Change type of obj_private to void pointer.
5465 * pa64solib.c: Update copyright. Don't include "assert.h", use
5466 strcmp instead of STREQ, use LONGEST, do not use PTR
5467 * somsolib.c: Ditto.
5469 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5470 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5471 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5473 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5475 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5476 (default_get_saved_register): Delete function.
5477 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5478 generic_unwind_get_saved_register.
5479 * gdbarch.h, gdbarch.c: Re-generate.
5481 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5483 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5484 generic_func_frame_chain_valid.
5485 * gdbarch.h, gdbarch.c: Re-generate.
5486 * blockframe.c (generic_func_frame_chain_valid): Only check
5487 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5488 passing FP to PC_IN_CALL_DUMMY.
5491 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5493 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5494 (register_gdbarch_data): Initialize init_p.
5495 (gdbarch_data): Initialize data pointer using the init function.
5496 (init_gdbarch_data): Delete function.
5497 (gdbarch_update_p): Update.
5498 (initialize_non_multiarch): Update.
5499 (struct gdbarch): Add field initialized_p.
5500 * gdbarch.h, gdbarch.c: Re-generate.
5502 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5504 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5505 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5506 better do the things actually here.
5507 * x86-64-tdep.c (x86_64_register_name2nr): New.
5508 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5509 (x86_64_gdbarch_init): Respect the above change.
5510 * x86-64-tdep.h (x86_64_register_name2nr)
5511 (x86_64_register_nr2name): Add prototypes.
5512 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5514 2002-06-06 Michael Snyder <msnyder@redhat.com>
5516 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5517 Delete extra braces and re-indent.
5518 (d10v_store_return_value): Char return values
5519 must be shifted over by one byte in R0.
5520 (d10v_extract_return_value): Delete extra braces, re-indent.
5522 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5524 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5525 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5526 (d10v_integer_to_address): Rewrite.
5527 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5528 the d10v specific functions which take care of converting to the
5531 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5533 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5534 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5536 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5538 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5540 * config/tm-linux.h: Ditto.
5541 * config/alpha/tm-alphalinux.h: Ditto.
5542 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5543 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5544 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5545 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5546 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5547 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5548 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5549 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5550 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5551 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5552 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5553 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5554 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5555 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5556 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5557 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5558 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5559 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5560 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5561 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5562 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5563 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5564 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5565 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5566 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5567 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5568 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5569 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5570 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5571 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5572 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5573 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5574 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5575 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5576 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5577 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5578 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5580 2002-05-04 Aidan Skinner <aidan@velvet.net>
5582 * ada-exp.tab.c: New file
5583 * ada-exp.y: New file
5584 * ada-lang.c: New file
5585 * ada-lang.h: New file
5586 * ada-lex.c: New file
5587 * ada-lex.l: New file
5588 * ada-tasks.c: New file
5589 * ada-typeprint.c: New file
5590 * ada-valprint.c: New file
5592 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5594 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5595 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5597 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5599 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5600 insetead of ppc-linux-tdep.o.
5601 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5602 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5604 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5606 2002-05-07 Christian Groessler <chris@groessler.org>
5607 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5608 bit register contents for little endian hosts.
5610 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5612 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5615 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5617 * gdbarch.h: Regenerate.
5619 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5621 * MAINTAINERS: Add everyone to write-after-approval list.
5623 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5625 * stack.c (frame_info): Use frame_register_unwind instead of
5626 saved_regs. Mention when the SP is on the stack or in a register.
5628 * frame.h (frame_register_unwind_ftype): Define. Document.
5629 (struct frame_info): Add field register_unwind and
5630 register_unwind_cache.
5631 (frame_register_unwind): Declare.
5632 (generic_unwind_get_saved_register): Declare.
5634 * frame.c (frame_register_unwind): New function.
5635 (generic_unwind_get_saved_register): New function.
5637 * blockframe.c (generic_call_dummy_register_unwind): New function.
5638 (frame_saved_regs_register_unwind): New function.
5639 (set_unwind_by_pc): New function.
5640 (create_new_frame): New function.
5641 (get_prev_frame): New function.
5643 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5645 * a29k-share/: Delete directory.
5646 * remote-vx29k.c: Delete file.
5648 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5650 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5651 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5653 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5655 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5656 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5659 (sparcnbsd-tdep.o): New dependency lists.
5660 * NEWS: Note new UltraSPARC NetBSD native configuration.
5661 * configure.host (sparc64-*-netbsd*): New host.
5662 * configure.tgt (sparc-*-netbsdelf*)
5663 (sparc-*-netbsd*): Set gdb_target to nbsd.
5664 (sparc64-*-netbsd*): New target.
5665 * sparc64nbsd-nat.c: New file.
5666 * sparcnbsd-nat.c: New file.
5667 * sparcnbsd-tdep.c: New file.
5668 * sparcnbsd-tdep.h: New file.
5669 * config/sparc/nbsd.mt: New file.
5670 * config/sparc/nbsd64.mh: New file.
5671 * config/sparc/nbsd64.mt: New file.
5672 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5673 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5675 * config/sparc/nbsdaout.mt: Remove.
5676 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5677 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5679 * config/sparc/nbsdelf.mt: Remove.
5680 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5681 sparc-nat.c compatiblity defines.
5682 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5683 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5684 * config/sparc/tm-nbsd64.h: New file.
5685 * config/sparc/tm-nbsdaout.h: Remove.
5686 * config/sparc/xm-nbsd.h: Remove.
5688 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5690 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5691 * sparc-tdep.c: Include osabi.h.
5692 (gdbarch_tdep): Add osabi member.
5693 (_initialize_sparc_tdep): Use gdbarch_register.
5694 (sparc_gdbarch_init): Use generic OS ABI framework.
5695 (sparc_dump_tdep): New function.
5697 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5699 * corefile.c (do_captured_read_memory_integer): Return non-zero
5701 (safe_read_memory_integer): Copy result of memory read when
5702 status is non-zero. Also, add comments.
5704 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5706 * Makefile.in (ppc_tdep_h): Define.
5709 (rs6000-tdep.o): Use $(ppc_tdep_h).
5712 (ppcnbsd-tdep.o): New dependency lists.
5713 * ppc-tdep.h: Use generic OS ABI framework.
5714 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5715 (ppc_linux_init_abi): New functions.
5716 (ppc_sysv_abi_broken_use_struct_convention)
5717 (ppc_sysv_abi_use_struct_convention)
5718 (ppc_sysv_abi_push_arguments): Move to...
5719 * ppc-sysv-tdep.c: ...here.
5720 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5721 * rs6000-tdep.c (process_note_abi_tag_sections)
5722 (get_elfosabi): Remove.
5723 (rs6000_gdbarch_init): Use generic OS ABI framework.
5724 (rs6000_dump_tdep): New function.
5725 (_initialize_rs6000_tdep): Use gdbarch_register.
5726 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5727 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5728 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5729 of ppc-linux-tdep.o.
5730 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5731 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5732 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5733 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5734 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5735 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5737 2002-05-29 Jim Blandy <jimb@redhat.com>
5739 * macroscope.c (default_macro_scope): Put `void' in empty argument
5742 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5744 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5745 * arch-utils.c: Include "sim-regno.h".
5746 * gdbarch.sh: Don't include "sim-regno.h".
5747 * gdbarch.h, gdbarch.c: Regenerate.
5748 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5750 * arch-utils.h (legacy_register_sim_regno): To here.
5751 * remote-sim.c (legacy_register_sim_regno): Move function from
5753 * arch-utils.c (legacy_register_sim_regno): To here.
5755 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5757 * sim-regno.h: New file.
5758 * Makefile.in (sim_regno_h): Define.
5759 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5760 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5761 (legacy_register_sim_regno): New function.
5762 (one2one_register_sim_regno): New function.
5763 (gdbsim_fetch_register): Rewrite.
5764 (gdbsim_store_register): Only store a register when
5765 REGISTER_SIM_REGNO is valid.
5766 * d10v-tdep.c: Include "sim-regno.h".
5767 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5768 (d10v_ts3_register_sim_regno): Ditto.
5769 * gdbarch.sh: Include "sim-regno.h".
5770 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5771 * gdbarch.h, gdbarch.c: Regenerate.
5772 * arch-utils.h (default_register_sim_regno): Delete declaration.
5773 * arch-utils.c (default_register_sim_regno): Delete function.
5775 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5777 * ppcnbsd-nat.c: Rewrite.
5778 * ppcnbsd-tdep.c: New file.
5779 * ppcnbsd-tdep.h: New file.
5780 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5781 solib.o, and solib-svr4.o.
5782 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5783 nbsd-tdep.o, and corelow.o.
5785 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5787 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5788 `tr' and `sed'. Mention that `broken' targets are not expected to
5791 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5793 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5794 Let PC point right after the prologue before looking up symbols.
5796 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5798 * i386-tdep.c (i386_register_virtual_type): Return
5799 builtin_type_vec128i for SSE registers.
5801 * gdbtypes.h (builtin_type_vec128i): Declare.
5803 * gdbtypes.c (build_builtin_type_vec128i): New function.
5804 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5805 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5806 (build_gdbtypes): Initialize new builtin vector types.
5807 (_initialize_gdbtypes): Register new vector types with gdbarch.
5809 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5811 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5812 since it has been multi-arch'd.
5813 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5814 Move Alpha and VAX multi-arch news entries to same section
5815 as other multi-arch news.
5817 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5819 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5820 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5821 static. Rename some register numbers to put them in ns32k-tdep
5823 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5824 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5826 (_initialize_ns32k_tdep): Use gdbarch_register.
5827 * ns32k-tdep.h: New file.
5828 * ns32knbsd-tdep.c: New file.
5829 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5830 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5831 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5832 REGISTER_BYTES, REGISTER_BYTE): Remove.
5833 * config/ns32k/tm-ns32k.h: New file.
5834 * config/ns32k/tm-umax.h: Remove.
5836 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5838 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5839 ns32k_store_struct_return, ns32k_extract_return_value,
5840 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5842 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5843 ns32k_saved_pc_after_call.
5844 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5845 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5846 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5847 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5848 ns32k_extract_struct_value_address.
5850 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5852 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5853 ns32k_fix_call_dummy): New.
5854 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5855 ns32k_call_dummy_words.
5856 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5857 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5858 CALL_DUMMY_NARGS): Remove.
5859 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5863 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5864 ns32k_frame_saved_pc, ns32k_frame_args_address,
5865 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5866 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5867 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5868 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5869 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5870 (BREAKPOINT): Remove..
5871 (FRAME_CHAIN): Define as ns32k_frame_chain.
5872 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5873 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5874 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5875 (FRAME_FIND_SAVED_REGS): Remove.
5876 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5877 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5878 (POP_FRAME): Define as ns32k_pop_frame.
5880 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5882 * ns32k-tdep.c (ns32k_register_byte_32082,
5883 ns32k_register_byte_32382, ns32k_register_raw_size,
5884 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5886 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5887 ns32k_register_byte_32382.
5888 * config/ns32k/tm-umax.h: Update copyright years.
5889 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5890 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5891 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5892 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5893 (ns32k_get_enter_addr): Fix prototype.
5895 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5897 * ns32k-tdep.c: Update copyright years.
5898 (ns32k_register_name_32082): New function.
5899 (ns32k_register_name_32382): Ditto.
5900 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5901 (REGISTER_NAME): Define as ns32k_register_name_32382.
5902 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5903 (REGISTER_NAME): Define as ns32k_register_name_32082.
5905 2002-05-24 Jim Blandy <jimb@redhat.com>
5907 * dwarf2read.c (free_line_header): Use xfree, not free.
5909 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5911 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5912 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5914 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5916 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5918 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5920 From Ross Alexander at NEC Europe:
5921 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5923 2002-05-23 Michael Snyder <msnyder@redhat.com>
5925 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5926 for input, rather than parse_and_eval_address.
5928 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5930 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5931 * Makefile.in (sim_d10v_h): Update definition.
5933 2002-05-24 Andrew Cagney <cagney@redhat.com>
5935 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5936 change `2002-05-22 Michael Snyder' below.
5937 (d10v_push_arguments): Ditto.
5938 (d10v_extract_return_value): Ditto.
5940 2002-05-23 Jim Blandy <jimb@redhat.com>
5942 * macrotab.c (check_for_redefinition): Don't complain if the new
5943 definition is the same as the previous one. Take more arguments
5944 to allow the comparison.
5945 (macro_define_object, macro_define_function): Pass more arguments
5946 to check_for_redefinition.
5948 2002-05-22 Michael Snyder <msnyder@redhat.com>
5950 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5951 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5952 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5953 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5954 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5955 Add a temp variable to save a call (and a memory read).
5956 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5957 if possible (so that PC_IN_CALL_DUMMY will work).
5959 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5961 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5963 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5965 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5967 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5968 (dwarf2_build_frame_info): Add offset to fde->initial_location
5969 so that frames of shared libraries are mapped correctly.
5970 (execute_stack_op): Change type of 'result' from ULONGEST to
5973 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5975 * config/alpha/tm-nbsd.h: Include solib.h.
5977 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5979 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5980 assumptions about the host's byte order.
5982 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5984 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5986 * alphanbsd-tdep.c: Include solib-svr4.h.
5987 * shnbsd-tdep.c: Ditto.
5989 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5991 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5992 nbsd-tdep.h to dependency list.
5993 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5994 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5995 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5996 nbsdaout.mh and nbsdelf.mh consistently.
5997 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5998 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5999 nbsdaout.mt and nbsdelf.mh consistently.
6000 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6001 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6002 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6003 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6004 a.out shared library stuff from here...
6005 * config/nm-nbsdaout.h: ...to here.
6006 * config/tm-nbsd.h: Remove.
6007 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6008 * config/arm/nbsd.mh: Remove.
6009 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6011 * config/arm/nbsdaout.mh: New file.
6012 * config/arm/nbsdelf.mh: New file.
6013 * config/arm/nm-nbsdaout.h: New file.
6014 * config/i386/nbsd.mh: Remove.
6015 * config/i386/nbsd.mt: Remove.
6016 * config/i386/nbsdaout.mh: New file.
6017 * config/i386/nbsdaout.mt: New file.
6018 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6019 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6020 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6021 i386_register_u_addr): Remove.
6022 * config/i386/nm-nbsdaout.h: New file.
6023 * config/i386/nm-nbsdelf.h: Remove.
6024 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6025 (USE_STRUCT_CONVENTION): Remove.
6026 * config/i386/tm-nbsdaout.h: New file.
6027 * config/i386/tm-nbsdelf.h: Remove.
6028 * config/m68k/nbsd.mh: Remove.
6029 * config/m68k/nbsd.mt: Remove.
6030 * config/m68k/nbsdaout.mh: New file.
6031 * config/m68k/nbsdaout.mt: New file.
6032 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6033 * config/m68k/nm-nbsdaout.h: New file.
6034 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6035 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6036 * config/ns32k/nbsd.mh: Remove.
6037 * config/ns32k/nbsd.mt: Remove.
6038 * config/ns32k/nbsdaout.mh: New file.
6039 * config/ns32k/nbsdaout.mt: New file.
6040 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6041 * config/ns32k/nm-nbsdaout.h: New file.
6042 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6043 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6044 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6045 (SVR4_SHARED_LIBS): Remove.
6046 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6047 * config/sparc/nbsd.mh: Remove.
6048 * config/sparc/nbsd.mt: Remove.
6049 * config/sparc/nbsdaout.mh: New file.
6050 * config/sparc/nbsdaout.mt: New file.
6051 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6052 * config/sparc/nbsdelf.mt: New file.
6053 * config/sparc/nm-nbsdaout.h: New file.
6054 * config/sparc/nm-nbsdelf.h: Remove.
6055 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6056 * config/sparc/tm-nbsdaout.h: New file.
6058 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6060 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6062 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6064 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6066 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6068 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6070 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6072 * NEWS: Note new MIPS NetBSD native configuration.
6073 * configure.host (mips*-*-netbsd*): New host.
6074 * configure.tgt (mips*-*-netbsd*): New target.
6075 * mipsnbsd-nat.c: New file.
6076 * mipsnbsd-tdep.c: New file.
6077 * mipsnbsd-tdep.h: New file.
6078 * config/mips/nbsd.mh: New file.
6079 * config/mips/nbsd.mt: New file.
6080 * config/mips/nm-nbsd.h: New file.
6081 * config/mips/tm-nbsd.h: New file.
6083 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6085 * Makefile.in (SFILES): Add osabi.c.
6086 (COMMON_OBS): Add osabi.o.
6087 (osabi.o): New dependency list.
6088 * osabi.c: New file.
6089 * osabi.h: New file.
6090 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6092 * Makefile.in (alpha_tdep_h): Define and use instead of
6094 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6095 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6097 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6098 * alpha-tdep.h: Include osabi.h.
6099 (alpha_abi): Remove.
6100 (gdbarch_tdep): Use generic OS ABI framework.
6101 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6102 gdbarch_register_osabi.
6103 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6104 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6105 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6107 * Makefile.in (sh_tdep_h): Add osabi.h.
6108 * sh-tdep.h (sh_osabi): Remove.
6109 (gdbarch_tdep): Use generic OS ABI framework.
6110 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6111 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6112 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6113 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6115 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6116 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6117 gdbarch_register_osabi.
6118 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6119 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6120 (get_elfosabi): Rename to...
6121 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6122 ABI framework support routines.
6123 (arm_gdbarch_init): Use generic OS ABI framework.
6124 (arm_dump_tdep): Likewise.
6125 (_initialize_arm_tdep): Likewise.
6126 * arm-tdep.h: Include osabi.h.
6128 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6130 (arm_gdbarch_register_os_abi): Remove prototype.
6131 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6132 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6134 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6135 * mips-tdep.c: Include osabi.h.
6136 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6139 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6141 * h8300-tdep.c: Fix formatting.
6143 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6145 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6146 printing vector registers.
6148 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6150 From Fernando Nasser:
6151 * remote.c (remote_async_open_1): Re-throw the exception when the
6153 (remote_cisco_open): Ditto.
6154 (remote_open_1): Ditto.
6156 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6158 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6159 (remote_start_remote): Add uiout parameter. Pass through to
6160 remote_start_remote_dummy.
6161 (remote_open_1): Use catch_exception instead of catch_errors.
6162 (remote_async_open_1): Ditto.
6163 (remote_cisco_open): Ditto.
6165 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6167 * remote.c (remote_start_remote): Replace PTR with void pointer.
6168 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6171 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6173 * gdb_indent.sh: Allow the script to be run in the sim directory.
6175 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6177 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6178 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6180 * corelow.c (core_open): Only call set_gdbarch_from_file if
6183 2002-05-17 Andrey Volkov <avolkov@transas.com>
6185 * h8300-tdep.c: Add support of EXR register
6186 * config/h8300/tm-h8300.h: Ditto.
6188 2002-05-17 Andrey Volkov <avolkov@transas.com>
6190 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6192 2002-05-17 Andrey Volkov <avolkov@transas.com>
6194 * h8300-tdep.c: Change literal regnums to REGNO.
6196 2002-05-17 Jim Blandy <jimb@redhat.com>
6198 * NEWS: Note addition of macro support.
6200 Expand preprocessor macros in C expressions.
6201 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6202 (scan_macro_expansion, scanning_macro_expansion,
6203 finished_macro_expansion): New function declarations.
6204 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6205 variable declarations.
6206 * parser-defs.h (expression_context_pc): New declaration.
6207 * parse.c (expression_context_pc): New variable.
6208 (parse_exp_1): Set expression_context_pc, as well as
6209 expression_context_block.
6210 * c-exp.y (yylex): If we're not already reading the result of a
6211 macro expansion, try to macro-expand the next token. When we're
6212 done scanning a macro expansion, switch back to the mainline text.
6213 Commas and `if's in a macro's expansion don't terminate the input.
6214 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6215 (macro_original_text, macro_expanded_text,
6216 expression_macro_lookup_func, expression_macro_lookup_baton): New
6218 (scan_macro_expansion, scanning_macro_expansion,
6219 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6220 c_preprocess_and_parse): New functions.
6221 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6222 c_preprocess_and_parse, instead of c_parse.
6223 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6224 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6226 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6228 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6229 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6230 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6232 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6234 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6236 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6238 * Makefile.in (sh_tdep_h): Define and use.
6239 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6240 register enum): Move to...
6241 * * sh-tdep.h: ...here.
6242 * sh-tdep.c: Include sh-tdep.h.
6243 * sh3-rom.c: Likewise.
6244 * shnbsd-tdep.c: Likewise.
6246 2002-05-16 Michael Snyder <msnyder@redhat.com>
6248 * arm-tdep.c: Spelling fix in comment.
6250 2002-05-16 Jim Blandy <jimb@redhat.com>
6252 Add commands for manually expanding macros and showing their
6254 * macrocmd.c, macroscope.c, macroscope.h: New files.
6255 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6256 (macroscope_h): New variable.
6257 (HFILES_NO_SRCDIR): Add macroscope.h.
6258 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6259 (macroscope.o, macrocmd.o): New rules.
6261 Teach the Dwarf 2 reader to read macro information.
6262 * dwarf2read.c: #include "macrotab.h".
6263 (dwarf_macinfo_buffer): New variable.
6264 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6266 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6267 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6268 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6269 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6270 dwarf2_macro_spaces_in_definition): New complaints.
6271 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6272 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6273 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6274 the partial symbol table.
6275 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6276 from what's recorded in the partial symbol table.
6277 (read_file_scope): If the compilation unit has a
6278 `DW_AT_macro_info' attribute, read its macro information.
6279 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6281 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6284 * ser-tcp.c: Don't include <netinet/udp.h>.
6286 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6288 * MAINTAINERS: Update my email address.
6290 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6292 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6293 include file of the same name.
6295 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6297 * configure.tgt: Mark v850 as multi-arched.
6298 * config/v850/tm-v850.h: Remove file.
6299 * config/v850/v850.mt: Eliminate TM_FILE.
6301 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6303 * v850-tdep.c: Full multi-arch.
6304 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6305 Define GDB_MULTI_ARCH to 2.
6307 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6309 * p-exp.y (current_type): New static variable.
6310 Carries the type of the expression at the position that is parsed.
6311 (push_current_type, pop_current_type): Two new functions. Used
6312 to store/restore current_type in expression on specific tokens.
6313 (search_field): New static variable. Set to one after parsing a point
6314 as at that point only a FIELDNAME token should be searched.
6315 (FIELDNAME): New token. After a point only a token belonging to
6316 current_type type definition is allowed.
6317 (all over token rules): reset and change current_type according
6319 (exp '[' rule): insert implicit array index field if
6320 exp is a pascal string type.
6322 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6324 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6325 frame info. Use frame_info's saved_regs instead of matching member
6326 in extra_frame_info throughout.
6327 (v850_frame_init_saved_regs): New function.
6328 (v850_init_extra_frame_info): Move most functionality into
6329 v850_frame_init_saved_regs().
6330 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6331 (v850_frame_find_saved_regs): Remove declaration.
6332 (FRAME_FIND_SAVED_REGS): Remove definition.
6333 (v850_frame_init_saved_regs): Add declaration.
6334 (FRAME_INIT_SAVED_REGS): Add definition.
6336 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6338 * v850-tdep.c: Begin multi-arch'ing v850.
6339 (v850_target_architecture_hook): Remove function.
6340 (v850_gdbarch_init): New function. Add code previously in
6341 v850_target_architecture_hook().
6342 (_initialize_v850_tdep): Don't set target_architecture_hook.
6343 Call register_gdbarch_init() instead.
6345 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6347 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6348 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6349 (fixup_class_method_type): Likewise.
6351 2002-05-15 Jim Blandy <jimb@redhat.com>
6353 Add macro structures to GDB's symbol tables. Nobody puts anything
6355 * symtab.h (struct symtab): New member: `macro_table'.
6356 * buildsym.h (pending_macros): New global variable.
6357 * buildsym.c: #include "macrotab.h".
6358 (buildsym_init): Initialize `pending_macros'.
6359 (end_symtab): If we found macro information while reading a CU's
6360 debugging info, do build a symtab structure for it. Make the
6361 symtab point to the macro information, and clear the
6362 `pending_macros' pointer which held it while we were reading the
6364 (really_free_pendings): Free any pending macro table.
6365 * objfiles.h (struct objfile): New member: `macro_cache'.
6366 * objfiles.c (allocate_objfile): Set allocate and free functions
6367 for the macro cache's objstack.
6368 (free_objfile): Empty the macro cache's obstack.
6369 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6370 set new allocate and free functions for it.
6371 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6372 free functions for the macro cache's objstack. (Why is this
6373 function building its own objfile?)
6374 * symmisc.c (print_objfile_statistics): Print statistics on the
6376 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6378 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6380 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6381 (REGISTER_U_ADDR): Delete definition.
6382 (arm_register_u_addr): Delete declaration.
6384 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6386 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6387 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6389 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6391 * regcache.c (register_valid): Revise comments refering to "Not
6392 available" and "unavailable".
6393 * frame.c (frame_register_read): Ditto.
6394 * findvar.c (value_of_register): Ditto.
6396 2002-05-15 Andrew Cagney <cagney@redhat.com>
6398 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6399 (remote-sim.o): Update dependencies.
6400 (d10v-tdep.o): Specify dependencies.
6401 (sim_d10v_h): Define.
6403 2002-05-14 Jim Blandy <jimb@redhat.com>
6405 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6406 * macrotab.c (macro_lookup_inclusion, find_definition,
6407 new_macro_table): Same.
6409 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6410 not `! strcmp ()'. This is a dubious improvement.
6411 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6413 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6414 although it's not necessary, to avoid a warning.
6416 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6418 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6419 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6420 TYPE_INSTANCE_FLAGS.
6421 (struct main_type): New.
6422 (struct type): Move most members to struct main_type. Change
6423 cv_type and as_type to new type_chain member. Add instance_flags.
6424 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6425 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6426 (finish_cv_type): Remove prototype.
6427 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6429 (alloc_type_instance): New function.
6430 (smash_type): New function.
6431 (make_pointer_type, make_reference_type, make_function_type)
6432 (smash_to_member_type, smash_to_method_type): Call smash_type.
6433 (make_qualified_type): New function.
6434 (make_type_with_address_space): Call make_qualified_type.
6435 (make_cv_type): Likewise.
6436 (finish_cv_type): Remove unnecessary function.
6437 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6438 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6439 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6440 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6441 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6442 * hpread.c (hpread_read_struct_type): Likewise.
6443 * stabsread.c (read_struct_type): Likewise.
6445 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6447 * configure.tgt: Add a catch all sh* target, for cases like
6448 sh[2,3,4]-elf and sh-hms.
6450 2002-05-14 Keith Seitz <keiths@redhat.com>
6452 * event-loop.c (create_file_handler): Don't do anything but
6453 update data when we are given a fd which we are already
6456 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6458 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6459 (update_context): Use __func__ in warnings.
6461 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6463 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6464 and tcp_close to net_open and net_close.
6465 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6466 using UDP if requested. Don't try to disable Nagle on UDP
6468 * remote.c (remote_serial_open): New function. Warn about UDP.
6469 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6471 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6473 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6475 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6477 * configure.tgt: Remove sh-hms target.
6478 * MAINTAINERS: Don't list sh-hms as a separate target.
6480 2002-05-13 Jim Blandy <jimb@redhat.com>
6482 Add first preprocessor macro-expansion files.
6483 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6484 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6485 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6486 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6487 (COMMON_OBS): Add macrotab.o, macroexp.o.
6488 (macroexp.o, macrotab.o): New rules.
6490 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6492 * config/m88k/tm-m88k.h: Update copyright.
6493 (m88k_target_write_pc): Declare
6494 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6495 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6496 (SHIFT_INST_REGS): Update definition.
6497 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6498 using old definition of TARGET_WRITE_PC.
6499 * regcache.c (generic_target_write_pc): Delete code handling
6501 * gdbarch.sh (NNPC_REGNUM): Delete.
6502 * gdbarch.h, gdbarch.c: Regenerate.
6504 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6506 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6509 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6511 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6512 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6513 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6515 * c-typeprint.c (cp_type_print_method_args): Likewise.
6516 (c_type_print_args): Likewise.
6517 * d10v-tdep.c (d10v_push_arguments): Likewise.
6518 (d10v_extract_return_value): Likewise.
6519 * expprint.c (print_subexp): Likewise.
6520 * gdbtypes.c (lookup_primitive_typename): Likewise.
6521 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6522 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6523 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6524 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6525 (TYPE_VECTOR): Likewise.
6526 * hpread.c (hpread_read_struct_type)
6527 (fix_static_member_physnames, fixup_class_method_type)
6528 (hpread_type_lookup): Likewise.
6529 * mdebugread.c (parse_symbol, parse_type): Likewise.
6530 * p-lang.c (is_pascal_string_type): Likewise.
6531 * valops.c (hand_function_call): Likewise.
6532 * x86-64-tdep.c (classify_argument): Likewise.
6534 * hpread.c (hpread_read_function_type)
6535 (hpread_read_doc_function_type): Call replace_type.
6536 * dstread.c (create_new_type): Delete.
6537 (decode_dst_structure, process_dst_function): Call alloc_type.
6538 Use type access macros.
6540 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6542 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6543 the're not supported by the current architecture.
6544 (i387_fill_fxsave): Likewise.
6546 2002-05-12 Fred Fish <fnf@redhat.com>
6548 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6549 sect_index_xxx members to index the first slot in section_offsets
6550 if all of the section_offsets are zero.
6552 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6554 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6555 checked in with last change.
6557 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6559 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6560 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6563 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6565 * Makefile.in: Update dependencies.
6567 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6569 * language.c (local_hex_string_custom): Simplify. Do not depend
6570 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6572 * memattr.c (mem_info_command): Replace calls to
6573 longest_local_hex_string and longest_local_hex_string_custom.
6574 * buildsym.c (make_blockvector): Ditto.
6575 * solib.c (info_sharedlibrary_command): Ditto.
6576 * tracepoint.c (tracepoints_info): Ditto.
6577 * symtab.c (print_msymbol_info): Ditto.
6579 * language.c (local_hex_string): Delete.
6580 (local_hex_string_custom): Delete.
6581 (longest_local_hex_string): Rename to local_hex_string.
6582 (longest_local_hex_string_custom): Rename to
6583 local_hex_string_custom.
6584 * language.h (local_hex_string): Change parameter type to LONGEST.
6585 (local_hex_string_custom): Ditto.
6586 (longest_local_hex_string): Delete declaration.
6587 (longest_local_hex_string_custom): Ditto.
6589 * solib.c: Update copyright.
6590 * memattr.c: Update copyright.
6592 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6594 * arch-utils.h (legacy_register_to_value): Declare.
6595 (legacy_value_to_register): Declare.
6596 (legacy_convert_register_p): Declare.
6597 * arch-utils.c (legacy_register_to_value): New function.
6598 (legacy_value_to_register): New function.
6599 (legacy_convert_register_p): New function.
6601 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6602 (VALUE_TO_REGISTER): Define.
6603 (CONVERT_REGISTER_P): Define.
6604 * gdbarch.h, gdbarch.c: Regenerate.
6606 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6608 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6611 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6612 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6614 * Makefile.in: Update dependencies for valops.c.
6615 * valops.c: Include "gdb_assert.h".
6616 (typecmp): Skip THIS parameter to methods.
6617 (find_method_list): Remove static_memfuncp argument,
6618 update callers. Check for stub methods.
6619 (find_value_oload_method_list): Don't set *static_memfuncp.
6620 (find_overload_match): Don't check for stub methods. Assert
6621 that methods are not stubbed. Handle static methods.
6622 (value_find_oload_method_list): Remove static_memfuncp argument.
6623 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6624 to the argument list for static stub methods.
6625 * value.h (value_find_oload_method_list): Update prototype.
6627 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6629 * arch-utils.h (generic_register_size): Declare.
6630 (generic_register_raw_size, generic_register_virtual_size): Delete
6632 * arch-utils.c (generic_register_raw_size): Delete.
6633 (generic_register_size): New function.
6634 (generic_register_virtual_size): Delete.
6636 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6637 default generic_register_size.
6638 * gdbarch.h, gdbarch.c: Re-generate.
6640 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6641 register_virtual_size.
6642 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6645 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6647 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6648 * gdbarch.h, gdbarch.c: Regenerate.
6649 * gnu-v3-abi.c: Update copyright.
6650 (vtable_address_point_offset): Update.
6651 (gnuv3_rtti_type): Update.
6652 (gnuv3_baseclass_offset): Update.
6653 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6654 (init_fetch_link_map_offsets): Update.
6655 * remote.c (get_remote_state): Update.
6657 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6659 * TODO: Remove value_headof/value_from_vtable_info comment.
6660 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6661 * values.c (value_headof, value_from_vtable_info): Delete.
6662 * value.h (value_from_vtable_info): Delete prototype.
6664 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6666 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6667 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6669 (gdb_assert_h): Define.
6670 (gdb_wait_h): Define.
6671 (gdb_regex_h): Define.
6673 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6675 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6676 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6678 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6680 * nbsd-tdep.c: Fix comment.
6682 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6684 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6685 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6686 (nbsd-tdep.o): New dependency list.
6687 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6689 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6690 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6691 * nbsd-tdep.c: New file.
6692 * nbsd-tdep.h: New file.
6693 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6695 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6696 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6697 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6698 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6700 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6702 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6703 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6704 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6705 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6706 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6707 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6709 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6711 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6712 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6713 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6714 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6715 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6716 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6717 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6719 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6721 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6722 fetch_elfcore_registers to...
6723 * i386nbsd-tdep.c: ...here.
6724 (i386nbsd_use_struct_convention): Rename to...
6725 (i386nbsd_aout_use_struct_convention): ...this.
6726 (i386nbsd_supply_reg): New function.
6727 (i386nbsd_fill_reg): New function.
6728 (fetch_core_registers): Use i386nbsd_supply_reg.
6729 (fetch_elfcore_registers): Likewise.
6730 (_initialize_i386nbsd_tdep): New function.
6731 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6732 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6733 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6734 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6735 (i386nbsd_aout_use_struct_convention): ...this.
6737 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6739 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6740 (store_inferior_registers): Use shnbsd_fill_reg.
6741 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6742 sh_nbsd_supply_register): Collapse into...
6743 (shnbsd_supply_reg): ...this.
6744 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6745 (shnbsd_fill_reg): ...this.
6746 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6747 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6748 (fetch_core_registers): Use shnbsd_supply_reg.
6749 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6750 (sh_nbsd_core_fns): Rename to...
6751 (shnbsd_core_fns): ...this.
6752 (sh_nbsd_elfcore_fns): Rename to...
6753 (shnbsd_elfcore_fns): ...this.
6754 (sh_nbsd_init_abi): Rename to...
6755 (shnbsd_init_abi): ...this.
6756 (_initialize_sh_nbsd_tdep): Rename to...
6757 (_initialize_shnbsd_tdep): ...this.
6758 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6759 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6760 sh_nbsd_fill_register): Remove prototypes.
6761 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6763 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6765 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6766 (i387-nat.o): Delete dependency list.
6767 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6768 (x86-64-linux-nat.o): Likewise.
6769 * i387-nat.c: Delete file, moving contents to...
6770 * i387-tdep.c: ...here.
6771 * i387-nat.h: Rename...
6772 * i387-tdep.h: ...to this.
6773 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6774 * i386-linux-nat.c: Likewise.
6775 * i386bsd-nat.c: Likewise.
6776 * i386gnu-nat.c: Likewise.
6777 * i386nbsd-nat.c: Likewise.
6778 * i386v4-nat.c: Likewise.
6779 * x86-64-linux-nat.c: Likewise.
6780 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6781 * config/i386/go32.mh (NATDEPFILES): Likewise.
6782 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6783 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6784 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6785 * config/i386/linux.mh (NATDEPFILES): Likewise.
6786 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6787 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6788 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6789 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6791 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6793 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6794 (alphanbsd-nat.o): Remove dependency list.
6795 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6796 * alphanbsd-nat.c: Delete. Contents moved to...
6797 * alphanbsd-tdep.c: ...here.
6798 (_initialize_alphanbsd_tdep): Register core functions.
6799 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6801 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6803 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6804 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6805 (alphanbsd-nat.o): Likewise.
6806 (alphabsd-tdep.o): New dependency list.
6807 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6808 (fill_gregset): Use alphabsd_fill_reg.
6809 (supply_fpregset): Use alphabsd_supply_fpreg.
6810 (fill_fpregset): Use alphabsd_fill_fpreg.
6811 (fetch_inferior_registers): Use struct reg and struct fpreg
6812 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6813 and alphabsd_supply_fpreg.
6814 (store_inferior_registers): Use struct reg and struct fpreg
6815 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6816 and alphabsd_fill_fpreg.
6817 * alphabsd-tdep.c: New file.
6818 * alphabsd-tdep.h: New file.
6819 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6820 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6821 alphabsd_supply_fpreg.
6822 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6823 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6825 2002-05-11 Eric Christopher <echristo@redhat.com>
6827 * mips-tdep.c (mips_double_register_type): Fix thinko.
6828 (mips_single_register_type): Ditto.
6829 * MAINTAINERS: Add self.
6831 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6833 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6834 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6835 right thing on architectures with different endianness and/or
6838 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6840 From Christian Limpach <chris@Pin.LU>
6841 * configure.in: Change sed expression which comments out
6842 NATDEPFILES to also comment out continuation lines.
6843 * configure: Regenerate.
6845 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6847 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6850 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6852 * sh-tdep.c: Include correct file.
6854 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6856 New support for sh64-elf (sh5) target.
6858 * configure.tgt: For sh64-elf target, default to sh-elf.
6860 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6861 (struct gdbarch_tdep): Add new fields for new registers and ABI
6864 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6865 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6866 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6867 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6868 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6869 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6870 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6871 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6872 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6873 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6874 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6875 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6876 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6877 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6878 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6879 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6880 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6881 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6882 sign_extend, sh64_nofp_frame_init_saved_regs,
6883 sh64_init_extra_frame_info, sh64_get_saved_register,
6884 sh64_extract_struct_value_address, sh64_pop_frame,
6885 sh64_push_arguments, sh64_extract_return_value,
6886 sh64_store_return_value, sh64_show_media_regs,
6887 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6888 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6889 sh_sh64_register_virtual_type,
6890 sh_sh64_register_convert_to_virtual,
6891 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6892 sh64_register_read, sh64_pseudo_register_write,
6893 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6894 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6895 sh64_do_pseudo_register, sh_compact_do_registers_info,
6896 sh64_do_registers_info, sh_gdbarch_init): New functions.
6898 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6900 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6902 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6904 * linespec.c (decode_line_1): Check for a double quote after
6905 a filename correctly.
6907 2002-05-10 Jim Blandy <jimb@redhat.com>
6909 Properly track the size of the current objfile's .debug_line section.
6910 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6911 (DWARF_LINE_SIZE): New macro.
6912 (dwarf2_build_psymtabs_hard): Record the line section's size in
6913 the partial symbol table.
6914 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6917 2002-05-10 Petr Sorfa <petrs@caldera.com>
6919 * ia64-tdep.c: Handle breakpoints on L instruction type
6920 in MLX instruction bundle by moving the breakpoint to
6921 the third slot (X instruction type) as L holds only data.
6923 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6925 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6926 (process_one_symbol): Complain about discarding local symbols
6927 due to a misplaced N_LBRAC entry.
6929 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6931 From Daniel Berlin <dan@cgsoftware.com>
6932 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6933 decrease the depth we are at, in the case of templates.
6935 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6937 * mips-tdep.c (mips_float_register_type): New function.
6938 (mips_double_register_type): New function.
6939 (mips_print_register): Use them.
6940 (do_fp_register_row): Likewise.
6942 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6944 * signals/signals.c (signals): Remove conditional compilation around
6945 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6946 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6948 2002-05-09 Michael Snyder <msnyder@redhat.com>
6950 * remote-rdp.c (remote_rdp_can_run): Remove.
6952 2002-05-09 Tom Tromey <tromey@redhat.com>
6954 * jv-valprint.c (java_val_print): Handle `char' as a special case
6957 2002-05-09 Michael Snyder <msnyder@redhat.com>
6959 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6960 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6961 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6962 str r(0123),[sp,#nn].
6963 (arm_skip_prologue): Ditto. Also make disassembly
6964 order-independent by placing it in a loop.
6966 2002-05-06 Michael Snyder <msnyder@redhat.com>
6968 * stabsread.c (read_type): Add recognition for new attribute:
6969 "@V;" means that an array type is actually a vector.
6970 This is analogous to the vector flag that's been added to dwarf2.
6972 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6974 * i386-tdep.h (i386_abi): New enum.
6975 (struct gdbarch_tdep): Replace os_ident member with abi.
6976 (i386_gdbarch_register_os_abi): New prototype.
6977 * i386-tdep.c (i386_abi_names): New array.
6978 (process_note_abi_tag_sections): Removed.
6979 (process_note_sections): New function.
6980 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6981 (struct i386_abi_handler): New struct.
6982 (i386_abi_handler_list): New variable.
6983 (i386_gdbarch_register_os_abi): New function.
6984 (i386_gdbarch_init): Adapt for the changes given above.
6986 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6988 * gregset.h: Say "GNU/Linux".
6990 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6992 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6993 (build_gdbtypes): Build builtin_type_v2_float.
6994 (_initialize_gdbtypes): Register new builtin type.
6996 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6998 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6999 (clear_gdbarch_swap): New function.
7000 (initialize_non_multiarch): Call.
7001 (gdbarch_update_p): Before calling init(), swap out and clear the
7002 existing architecture.
7003 * gdbarch.c: Regenerate.
7005 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7007 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7010 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7012 * sh-nbsd-nat.c: Rename to...
7013 * shnbsd-nat.c: ...this.
7014 * sh-nbsd-tdep.c: Rename to...
7015 * shnbsd-tdep.c: ...this.
7016 * sh-nbsd-tdep.h: Rename to...
7017 * shnbsd-tdep.h: ...this.
7018 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7019 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7021 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7023 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7024 concatenation for command help messages.
7026 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7028 * NEWS: Note new sh*-*-netbsdelf* configuration.
7029 * configure.host: Set gdb_host_cpu to sh for all sh*.
7030 (sh*-*-netbsdelf*): New host.
7031 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7032 (sh*-*-netbsdelf*): New target.
7033 * sh-nbsd-nat.c: New file.
7034 * sh-nbsd-tdep.c: New file.
7035 * sh-nbsd-tdep.h: New file.
7036 * config/sh/nbsd.mh: New file.
7037 * config/sh/nbsd.mt: New file.
7038 * config/sh/nm-nbsd.h: New file.
7039 * config/sh/tm-nbsd.h: New file.
7041 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7043 * sh-tdep.c (sh_osabi_names): Declare.
7044 (process_note_abi_tag_sections): New function.
7045 (get_elfosabi): Ditto.
7046 (sh_gdbarch_register_os_abi): Ditto.
7047 (sh_dump_tdep): Ditto.
7048 _initialize_sh_tdep): Use gdbarch_register to register
7049 sh_gdbarch_init and sh_dump_tdep.
7050 * config/sh/tm-sh.h (sh_osabi): Declare.
7051 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7053 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7055 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7056 (thumb_scan_prologue): Ditto.
7057 (arm_find_callers_reg): Ditto.
7058 (arm_frame_chain): Ditto.
7059 (arm_init_extra_frame_info): Ditto.
7060 (arm_frame_saved_pc): Ditto.
7061 (arm_pop_frame): Ditto.
7062 (arm_push_return_address): New function.
7063 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7064 call_dummy_location, call_dummy_breakpoint_offset_p,
7065 call_dummy_breakpoint_offset, call_dummy_p,
7066 call_dummy_stack_adjust_p, call_dummy_words,
7067 sizeof_call_dummy_words, call_dummy_start_offset,
7068 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7069 call_dummy_address, push_return_address and push_dummy_frame for
7070 generic dummy frames.
7072 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7074 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7075 size computation for alloca.
7076 (sh_fp_frame_init_saved_regs): Likewise.
7078 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7080 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7081 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7082 * arm-tdep.c (arm_store_return_value): Use them.
7083 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7084 * remote-rdp.c (remote_rdp_fetch_register): Use
7085 ARM_MAX_REGISTER_RAW_SIZE.
7086 (remote_rdp_store_register): Likewise.
7088 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7090 * dwarf2cfi.c: Code cleanup, removed unused variables,
7091 added default labels to switch {} statements.
7092 * x86-64-tdep.c: Ditto.
7093 * x86-64-linux-nat.c: Ditto.
7095 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7097 * solib.h: Protect against multiple inclusion.
7099 2002-05-06 Jim Blandy <jimb@redhat.com>
7101 Add first preprocessor macro-expansion files.
7102 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7103 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7104 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7105 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7106 (COMMON_OBS): Add macrotab.o, macroexp.o.
7107 (macroexp.o, macrotab.o): New rules.
7109 Separate the job of reading the line number info statement program
7110 header (...expialidocious) out into its own function.
7111 * dwarf2read.c (struct line_head, struct filenames, struct
7112 directories): Replace with...
7113 (struct line_header): New structure, containing the full
7114 contents of the statement program header, including the
7115 include directory and file name tables.
7116 (read_file_scope): If we have line number info, instead of just
7117 calling dwarf_decode_lines to do all the work, call
7118 dwarf_decode_line_header first to get a `struct line_header'
7119 containing the data in the statement program header, and then
7120 pass that to dwarf_decode_lines, which will pick up where that
7121 left off. Be sure to clean up the `struct line_header' object.
7122 (dwarf_decode_line_header, free_line_header, add_include_dir,
7123 add_file_name): New functions.
7124 (dwarf_decode_lines): Move all the code to read the statement
7125 program header into dwarf_decode_line_header. Take the line
7126 header it built as the first argument, instead of the offset to
7127 the compilation unit's line number info. Use the new `struct
7128 line_header' type instead of the old structures. No need to do
7129 cleanups here now, since we don't allocate anything.
7130 (dwarf2_statement_list_fits_in_line_number_section,
7131 dwarf2_line_header_too_long): New complaints.
7133 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7135 * gdbtypes.c (init_vector_type): New function.
7136 (build_builtin_type_vec128): Simplify the representation of SIMD
7138 (build_gdbtypes): Initialize new builtin vector types.
7139 (_initialize_gdbtypes): Register new vector types with gdbarch.
7140 (builtin_type_v4_float, builtin_type_v4_int32,
7141 builtin_type_v8_int16, builtin_type_v16_int8,
7142 builtin_type_v2_int32, builtin_type_v4_int16,
7143 builtin_type_v8_int8): New (renamed) SIMD types.
7145 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7147 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7148 (i387_fill_fxsave): Likewise.
7150 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7152 * alpha-tdep.c (alpha_extract_return_value): Don't use
7153 non-constant array size in prototype.
7155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7157 From Brian Taylor <briant at model dot com>:
7158 * ui-out.c (ui_out_field_core_addr): Use the function
7159 longest_local_hex_string_custom'to format addresses > 32 bits
7162 * ui-out.c (ui_out_field_core_addr): Update comment.
7164 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7166 * stack.c (select_and_print_frame): Make static. Delete the
7168 (func_command): Update call.
7169 (select_frame_command): Delete code computing the frame level.
7170 * frame.h (select_and_print_frame): Delete declaration.
7172 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7174 * sparc-tdep.c (sparc_get_saved_register): Comment why
7175 get_prev_frame call is safe.
7177 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7179 * frame.h (select_frame): Delete level parameter.
7180 * stack.c (select_frame): Update. Use frame_relative_level to
7181 obtain the frame's level.
7182 (select_and_print_frame): Update call.
7183 (select_frame_command): Ditto.
7184 (up_silently_base): Ditto.
7185 (down_silently_base): Ditto.
7186 * ocd.c (ocd_start_remote): Ditto.
7187 * remote-rdp.c (remote_rdp_open): Ditto.
7188 * remote-mips.c (mips_initialize): Ditto.
7189 (common_open): Ditto.
7190 * remote-e7000.c (e7000_start_remote): Ditto.
7191 * m3-nat.c (select_thread): Ditto.
7192 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7193 (child_get_current_exception_event): Ditto.
7194 * varobj.c (varobj_create): Ditto.
7195 (varobj_update): Ditto.
7196 (c_value_of_root): Ditto.
7197 * tracepoint.c (finish_tfind_command): Ditto.
7198 * corelow.c (core_open): Ditto.
7199 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7200 * thread.c (info_threads_command): Ditto.
7201 (switch_to_thread): Ditto.
7202 * infrun.c (normal_stop): Ditto.
7203 (restore_selected_frame): Ditto.
7204 (restore_inferior_status): Ditto.
7205 * breakpoint.c (insert_breakpoints): Ditto.
7206 (watchpoint_check): Ditto.
7207 (bpstat_stop_status): Ditto.
7208 (do_enable_breakpoint): Ditto.
7209 * blockframe.c (flush_cached_frames): Ditto.
7210 (reinit_frame_cache): Ditto.
7212 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7214 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7217 2002-05-04 Jim Blandy <jimb@redhat.com>
7219 * gdbtypes.c (replace_type): Doc fix.
7221 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7223 * valprint.c (strcat_longest): Delete commented out function.
7226 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7228 * MAINTAINERS: Mark a29k as deleted.
7229 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7230 Move new configurations to the top.
7231 * configure.tgt: Remove a29k.
7232 * config/a29k/tm-vx29k.h: Delete.
7233 * config/a29k/vx29k.mt: Delete.
7234 * config/a29k/tm-a29k.h: Delete.
7235 * config/a29k/a29k-udi.mt: Delete.
7236 * config/a29k/a29k.mt: Delete.
7237 * a29k-tdep.c: Delete.
7238 * remote-udi.c: Delete.
7239 * remote-mm.c: Delete.
7240 * remote-eb.c: Delete.
7241 * remote-adapt.c: Delete.
7242 * Makefile.in: Remove obsolete code.
7243 * config/s390/s390x.mt: Ditto.
7244 * config/s390/s390.mt: Ditto.
7245 * config/sparc/sparclynx.mh: Ditto.
7246 * config/sparc/linux.mh: Ditto.
7247 * config/pa/hppaosf.mh: Ditto.
7248 * config/pa/hppabsd.mh: Ditto.
7249 * config/ns32k/nbsd.mt: Ditto.
7250 * config/mips/vr5000.mt: Ditto.
7251 * config/m68k/sun3os4.mh: Ditto.
7252 * config/m68k/nbsd.mt: Ditto.
7253 * config/m68k/m68klynx.mh: Ditto.
7254 * config/m32r/m32r.mt: Ditto.
7255 * config/i386/x86-64linux.mt: Ditto.
7256 * config/i386/nbsdelf.mt: Ditto.
7257 * config/i386/nbsd.mt: Ditto.
7258 * config/i386/i386lynx.mh: Ditto.
7260 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7262 * target.c (debug_print_register): New function. Handle oversize
7264 (debug_to_fetch_registers): Call.
7265 (debug_to_store_registers): Call.
7267 2002-05-03 Jim Blandy <jimb@redhat.com>
7269 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7270 (read_type): Doc fix.
7271 * gdbtypes.c (replace_type): Doc fix.
7273 * stabsread.c (multiply_defined_struct): New complaint.
7274 (read_struct_type): If the type we were passed isn't empty, or
7275 incomplete, don't read the new struct type into it; complain,
7276 and return the original type unchanged. Take a new `type_code'
7277 argument, which is the type code for the new type.
7278 (read_type): Rather than storing the type's type code here, pass
7279 it as an argument to read_struct_type, and let that take care of
7280 storing it. That way, we don't overwrite the original type code,
7281 so read_struct_type can use it to decide whether we're overwriting
7282 something we shouldn't.
7283 (complain_about_struct_wipeout): New function.
7285 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7287 * gdbarch.sh: Assert that gdbarch is non-NULL.
7288 * gdbarch.c: Regenerate.
7290 2002-05-03 Jason Merrill <jason@redhat.com>
7292 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7295 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7297 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7298 (x86_64_dwarf2gdb_regno_map_length),
7299 (x86_64_dwarf2_reg_to_regnum): Added.
7300 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7301 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7302 (_initialize_x86_64_tdep): Synced with the change above.
7303 (x86_64_skip_prologue): Reformulated message.
7305 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7307 * f-exp.y: Also use new prev_lexptr variable
7308 to improve error reporting. Based on Michael Snyder
7309 2002-04-24 dated patch to c-exp.y.
7310 * jv-exp.y: Likewise.
7311 * m2-exp.y: Likewise.
7313 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7315 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7316 we are dealing with vectors.
7318 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7320 * config/m68k/tm-nbsd.h: Obvious fix,
7321 correct machine name.
7323 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7325 * p-typeprint.c (pascal_type_print_base): Add support
7326 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7328 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7330 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7331 for fondamental pascal 'char' type.
7333 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7335 * p-lang.h (is_pascal_string_type): Declaration changed,
7336 new sixth argument of type char ** added.
7337 * p-lang.c (is_pascal_string_type): Implementation
7338 changed. Args length_pos, length_size, string_pos, char_size
7339 can now be NULL. New argument arrayname set to the field
7340 name of the char array. Return value set to char array
7341 field index plus one.
7342 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7343 is_pascal_string_type function.
7345 2002-05-02 Andrew Cagney <cagney@redhat.com>
7347 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7348 <cagney@redhat.com> change.
7349 * gdbarch.c: Regenerate.
7351 2002-05-02 Andrew Cagney <cagney@redhat.com>
7353 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7354 before probing for a new one. Detect errorenous gdbarch_init
7356 * gdbarch.c: Regenerate.
7358 2002-05-01 Andrew Cagney <cagney@redhat.com>
7360 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7361 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7362 * config/v850/tm-v850.h: Ditto. Update copyright.
7364 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7366 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7369 2002-04-30 Michael Snyder <msnyder@redhat.com>
7371 * arm-tdep.c: Whitespace clean-ups.
7372 (arm_skip_prologue): Fix thinko; two lines
7373 should have been removed as part of 4/24 change.
7375 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7377 * rs6000-tdep.c: Added comment describing how fpscr register
7378 numbers were chosen.
7380 2002-04-30 Michael Snyder <msnyder@redhat.com>
7382 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7384 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7386 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7387 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7388 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7390 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7392 From Louis Hamilton <hamilton@redhat.com>:
7393 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7394 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7395 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7396 not bfd-private xcoff data, to determine wordsize.
7397 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7399 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7401 GDB 5.2 released from 5.2 branch.
7403 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7405 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7406 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7407 (x86_64_register_info_table): Added comments with register numbers.
7409 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7411 * rs6000-tdep.c (rs6000_extract_return_value,
7412 rs6000_store_return_value): Handle returning vectors.
7413 (rs6000_gdbarch_init): Use
7414 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7415 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7417 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7419 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7420 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7422 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7424 * hpread.c (hpread_psymtab_to_symtab_1,
7425 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7426 with fprintf_unfiltered (gdb_stderr,...).
7428 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7430 * remote-array.c (printf_monitor, write_monitor,
7431 array_insert_breakpoint, array_remove_breakpoint ):
7432 Replace fprintf (stderr,...
7433 with fprintf_unfiltered (gdb_stderr,....
7434 * remote-es.c: Likewise.
7435 * remote-os9k.c: Likewise.
7436 * remote-st.c: Likewise.
7438 2002-04-28 Andreas Schwab <schwab@suse.de>
7440 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7441 linux-proc.o and gcore.o.
7443 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7445 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7446 code without frame pointers.
7448 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7450 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7453 2002-04-26 Ben Elliston <bje@redhat.com>
7455 * target.c (do_xfer_memory): Correct reference to the new option
7456 "trust-readonly-sections".
7458 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7460 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7461 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7462 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7464 (read_array_type): Record the fact that this array type is really a
7465 vector (i.e. are passed in by value).
7467 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7469 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7470 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7471 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7472 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7473 * alpha-linux-tdep.c: Include frame.h.
7474 (alpha_linux_sigcontext_addr): New function.
7475 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7476 alpha_linux_sigcontext_addr.
7477 * alpha-osf1-tdep.c: Include gdbcore.h.
7478 (alpha_osf1_sigcontext_addr): New function.
7479 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7480 alpha_osf1_sigcontext_addr.
7481 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7482 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7484 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7486 * stack.c (selected_frame_level):
7487 (select_frame): Do not set selected_frame_level.
7488 * frame.h (selected_frame_level): Delete declaration.
7490 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7492 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7493 convert_from_func_ptr-addr when AIX / PowerOpen.
7495 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7497 * valops.c (hand_function_call): Call
7498 generic_save_call_dummy_addr.
7499 * frame.h (generic_save_call_dummy_addr): Declare.
7500 * blockframe.c (struct dummy_frame): Add fields call_lo and
7502 (generic_find_dummy_frame): Check for PC in range call_lo to
7503 call_hi instead of entry_point_address.
7504 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7505 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7506 (generic_save_call_dummy_addr): New function.
7508 2002-04-24 David S. Miller <davem@redhat.com>
7510 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7511 sparc_skip_prologue.
7512 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7513 information to find prologue when possible.
7514 (sparc_prologue_frameless_p): Call examine_prologue directly.
7515 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7516 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7518 (SKIP_PROLOGUE): Likewise.
7520 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7522 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7523 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7524 indicate that the condition it was testing is always true.
7525 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7526 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7527 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7529 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7531 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7532 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7533 tdep->jb_pc and tdep->jb_elt_size.
7534 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7535 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7536 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7537 * alpha-nat.c (get_longjmp_target): Remove.
7538 (JB_ELEMENT_SIZE): Ditto.
7540 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7541 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7542 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7543 to alpha_get_longjmp_target.
7544 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7545 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7546 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7548 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7550 * README: Update to GDB 5.2.
7552 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7554 * gdbarch.sh (LC_ALL): Set to `c'.
7556 2002-04-25 Theodore A. Roth <troth@verinet.com>
7558 * avr-tdep.c: Ran through gdb_indent.sh.
7560 2002-04-25 Theodore A. Roth <troth@verinet.com>
7562 * MAINTAINERS: Add myself as AVR maintainer.
7563 * NEWS: Note new target avr.
7565 2002-04-25 Theodore A. Roth <troth@verinet.com>
7567 * Makefile.in: Add support for AVR target.
7568 * configure.tgt: Add support for AVR target.
7569 * avr-tdep.c: New file
7570 * config/avr/avr.mt: New file.
7572 2002-04-25 Theodore A. Roth <troth@verinet.com>
7574 * MAINTAINERS: Add myself to write-after-approval.
7576 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7578 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7579 with fprintf_unfiltered (gdb_stderr,....
7581 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7584 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7586 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7588 * p-exp.y: Also use new prev_lexptr variable
7589 to improve error reporting. Based on Michael Snyder
7590 2002-04-24 dated patch to c-exp.y.
7592 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7594 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7595 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7596 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7598 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7600 (FUNCTION_START_OFFSET): Remove.
7601 (BREAKPOINT): Ditto.
7603 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7605 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7608 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7610 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7611 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7612 alpha_linux_pc_in_sigtramp.
7613 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7614 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7615 alpha_osf1_pc_in_sigtramp.
7616 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7617 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7618 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7619 alphafbsd_pc_in_sigtramp.
7620 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7621 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7622 alphanbsd_pc_in_sigtramp.
7623 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7624 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7626 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7628 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7630 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7632 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7634 (alphanbsd-nat.o): New dependency list.
7635 (alphanbsd-tdep.o): Ditto.
7636 * NEWS: Note new native NetBSD/alpha configuration.
7637 * alphanbsd-nat.c: New file.
7638 * alphanbsd-tdep.c: Ditto.
7639 * configure.host (alpha*-*-netbsd*): New host.
7640 * configure.tgt (alpha*-*-netbsd*): New target.
7641 * config/alpha/nbsd.mh: New file.
7642 * config/alpha/nbsd.mt: Ditto.
7643 * config/alpha/nm-nbsd.h: Ditto.
7644 * config/alpha/tm-nbsd.h: Ditto.
7646 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7648 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7649 (alpha-osf1-tdep.o): New dependency list.
7650 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7651 and skip_sigtramp_frame members.
7652 * alpha-linux-tdep.c: Include gdbcore.h.
7653 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7654 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7655 * alpha-osf1-tdep.c: New file.
7656 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7658 (alpha_frame_past_sigtramp_frame): New function.
7659 (alpha_dynamic_sigtramp_offset): Ditto.
7660 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7661 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7662 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7663 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7664 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7665 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7666 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7667 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7668 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7669 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7670 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7671 to find_solib_trampoline_target.
7672 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7673 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7674 (SKIP_TRAMPOLINE_CODE): Remove.
7675 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7676 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7677 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7678 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7679 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7680 (PROC_SIGTRAMP_MAGIC): Ditto.
7681 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7682 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7683 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7684 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7685 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7687 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7689 * NEWS: Note that Alpha targets are now multi-arch.
7691 2002-04-24 Michael Snyder <msnyder@redhat.com>
7693 * parser-defs.h (prev_lexptr): New external variable.
7694 * parse.c (parse_exp_1): Set prev_lexptr to null before
7695 calling the language-specific parser.
7696 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7697 (yyerror): Use prev_lexptr in error reporting.
7699 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7701 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7702 * gregset.h: If FILL_FPXREGSET is defined, provide
7703 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7704 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7705 is defined, call fill_fpxregset.
7707 2002-04-24 Roland McGrath <roland@frob.com>
7709 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7710 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7711 (supply_gregset, supply_fpregset): New functions.
7713 * gnu-nat.c (gnu_find_memory_regions): New function.
7714 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7715 (gnu_xfer_memory): Add a cast.
7717 2002-04-24 Michael Snyder <msnyder@redhat.com>
7719 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7720 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7721 of argument regs ("str r(0123), [r11, #-nn"]).
7722 (arm_skip_prologue): Better handling for frameless functions.
7723 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7724 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7726 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7728 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7729 NUM_PSEUDO_REGS can be used.
7731 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7733 * arch-utils.h: Update copyright.
7735 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7736 * gdbarch.h, gdbarch.c: Re-generate.
7738 * inferior.h (IN_SIGTRAMP): Delete definition.
7739 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7740 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7742 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7743 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7744 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7745 (find_proc_framesize): Ditto.
7746 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7747 (alpha_init_extra_frame_info): Ditto.
7748 * infrun.c (handle_inferior_event): Ditto.
7749 (handle_inferior_event): Ditto.
7750 (check_sigtramp2): Ditto.
7751 * blockframe.c (create_new_frame): Ditto.
7752 (get_prev_frame): Ditto.
7753 * ppc-linux-tdep.c: Update comments.
7754 * i386-linux-tdep.c: Update comments.
7755 * breakpoint.c (bpstat_what): Update comment.
7757 2002-04-24 David S. Miller <davem@redhat.com>
7759 * i960-tdep.c (register_in_window_p): New function.
7760 (i960_find_saved_register): Use it instead of
7761 REGISTER_IN_WINDOW_P.
7762 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7764 * symtab.h (find_stab_function_addr): Kill extern.
7765 * minsyms.c (find_stab_function_addr): Remove from here...
7766 * dbxread.c: ... to here, and mark it static.
7768 2002-04-20 David S. Miller <davem@redhat.com>
7770 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7771 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7773 2002-04-21 David S. Miller <davem@redhat.com>
7775 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7776 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7777 (vx_write_register): Likewise.
7779 2002-04-23 J. Brobecker <brobecker@gnat.com>
7781 * source.c (is_regular_file): New function.
7782 (openp): Check wether file to open is a regular file
7783 to avoid opening directories.
7785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7787 * findvar.c (extract_signed_integer): Cast printf argument
7788 to suppress format warning.
7789 (extract_unsigned_integer): Likewise.
7790 * infcmd.c (registers_info): Likewise.
7791 * top.c (get_prompt_1): Likewise.
7792 * valops.c (value_assign): Likewise.
7793 * valprint.c (print_decimal): Likewise.
7795 2002-04-22 H.J. Lu (hjl@gnu.org)
7797 * c-exp.y (typebase): Support
7799 [long|long long|short] [signed|unsigned] [int|]
7803 signed [long|long long|short] int
7805 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7807 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7809 * vax-tdep.h: New file.
7810 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7811 Make several routines static.
7812 (vax_get_saved_register): New function.
7813 (vax_gdbarch_init): New function.
7814 (_initialize_vax_tdep): Register vax_gdbarch_init.
7815 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7816 Remove macros now under the control of gdbarch.
7818 2002-04-22 Michael Snyder <msnyder@redhat.com>
7820 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7821 Some whitespace and coding standards tweaks.
7823 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7825 * vax-tdep.c: Include regcache.h.
7826 (vax_call_dummy_words): New.
7827 (sizeof_vax_call_dummy_words): New.
7828 (vax_fix_call_dummy): New function.
7829 (vax_saved_pc_after_call): Ditto.
7830 * config/vax/tm-vax.h: Don't include regcache.h.
7831 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7832 (CALL_DUMMY): Remove.
7833 (CALL_DUMMY_WORDS): Define.
7834 (SIZEOF_CALL_DUMMY_WORDS): Define.
7835 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7837 2002-04-18 Michael Snyder <msnyder@redhat.com>
7839 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7841 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7843 * vax-tdep.c (vax_frame_chain): New function.
7844 (vax_push_dummy_frame): Ditto.
7845 (vax_pop_frame): Ditto.
7846 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7847 (FRAMELESS_FUNCTION_INVOCATION): Use
7848 generic_frameless_function_invocation_not.
7849 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7850 (POP_FRAME): Use vax_pop_frame.
7852 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7854 * vax-tdep.c (vax_store_struct_return): New function.
7855 (vax_extract_return_value): Ditto.
7856 (vax_store_return_value): Ditto.
7857 (vax_extract_struct_value_address): Ditto.
7858 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7859 vax_store_struct_return.
7860 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7861 (STORE_RETURN_VALUE): Use vax_store_return_value.
7862 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7864 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7866 * vax-tdep.c (vax_frame_saved_pc): New function.
7867 (vax_frame_args_address_correct): Ditto.
7868 (vax_frame_args_address): Ditto.
7869 (vax_frame_locals_address): Ditto.
7870 (vax_frame_num_args): Move code to be in proximity to
7871 other frame-related functions.
7872 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7873 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7874 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7875 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7876 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7878 2002-04-22 H.J. Lu (hjl@gnu.org)
7880 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7883 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7885 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7886 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7887 (FRAME_INIT_SAVED_REGS): New macro.
7889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7891 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7895 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7897 (fetch_osf_core_registers): Likewise.
7898 (supply_gregset): Likewise.
7900 2002-04-22 J. Brobecker <brobecker@gnat.com>
7902 * symfile.h (get_section_index): Define.
7903 * symfile.c (get_section_index): New function.
7904 * mdebugread.c (SC_IS_SBSS): New macro.
7905 (SC_IS_BSS): Return true for the scBss storage class only, as
7906 the scSBss storage class refers to the .sbss section.
7907 (parse_partial_symbols): Discard the symbols which associated
7908 section does not exist.
7909 Make sure to use the .sbss section index for symbols which
7910 storage class is scBss, rather than using the .bss section index.
7912 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7914 * vax-tdep.c: Update copyright years.
7915 (vax_register_name): New function.
7916 (vax_register_byte): Ditto.
7917 (vax_register_raw_size): Ditto.
7918 (vax_register_virtual_size): Ditto.
7919 (vax_register_virtual_type): Ditto.
7920 * config/vax/tm-vax.h: Update copyright years.
7921 (REGISTER_NAMES): Remove.
7922 (REGISTER_NAME): Define.
7923 (REGISTER_BYTE): Use vax_register_byte.
7924 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7925 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7926 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7928 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7930 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7932 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7934 2002-04-21 David S. Miller <davem@redhat.com>
7936 * arch-utils.c (generic_prologue_frameless_p): Kill
7937 SKIP_PROLOGUE_FRAMELESS_P code.
7938 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7940 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7941 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7942 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7944 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7945 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7946 (sparc_gdbarch_init): Pass it to
7947 set_gdbarch_prologue_frameless_p.
7949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7951 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7952 (alphabsd-nat.o): New dependency list.
7954 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7956 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7958 (alpha-linux-tdep.o): New dependency list.
7959 (alphafbsd-tdep.o): Likewise.
7961 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7963 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7965 * alpha-tdep.c: ...from here.
7966 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7968 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7970 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7971 prototype from here...
7972 * alpha-tdep.h: ...to here.
7974 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7976 * frame.h (selected_frame_level): Document as deprecated.
7977 (frame_relative_level): Declare.
7978 * stack.c (frame_relative_level): New function.
7979 (selected_frame_level): Document as deprecated.
7980 (select_frame): Do not set the selected_frame_level.
7982 * stack.c (frame_info, record_selected_frame): Update.
7983 (frame_command, current_frame_command): Update.
7984 (up_silently_base, up_command, down_silently_base): Update.
7985 (down_command): Update.
7986 * inflow.c (kill_command): Update.
7987 * tracepoint.c (finish_tfind_command): Update.
7988 * corelow.c (core_open): Update.
7989 * thread.c (info_threads_command): Update.
7990 (do_captured_thread_select): Update.
7991 * infcmd.c (finish_command): Update.
7992 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7994 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7996 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7998 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8000 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8003 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8005 * alphafbsd-tdep.c: Update copyright years. Include
8007 (alphafbsd_use_struct_convention): Make static.
8008 (alphafbsd_init_abi): New function.
8009 (_initialize_alphafbsd_tdep): New function.
8010 * config/alpha/tm-fbsd.h: Update copyright years.
8011 (USE_STRUCT_CONVENTION): Remove.
8013 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8015 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8016 an Alpha ABI variant.
8017 (alpha_abi_handler_list): Declare.
8018 (alpha_gdbarch_register_os_abi): New function.
8019 (alpha_gdbarch_init): Give registered ABI variant handlers a
8020 chance to tweak the gdbarch once we have set up defaults.
8021 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8023 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8025 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8026 to standard_coerce_float_to_double.
8027 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8029 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8031 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8032 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8033 from gdbarch_tdep rather than a constant.
8034 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8035 the default text address for all Alpha Unix ABIs.
8036 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8037 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8039 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8041 * alpha-tdep.h: New file. Includes several Alpha target constants
8043 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8044 let gdbarch deal with.
8045 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8046 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8048 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8049 Alpha target register names.
8050 * alphabsd-nat.c: Likewise.
8051 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8052 Alpha target register names. Make serveral routines static.
8053 (alpha_get_saved_register): New function.
8054 (alpha_abi_names): New.
8055 (process_note_abi_tag_sections): New function.
8056 (get_elfosabi): New function.
8057 (alpha_gdbarch_init): New function.
8058 (alpha_dump_tdep): New function.
8059 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8061 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8063 * frame.c (find_saved_register): Delete #ifdef
8064 HAVE_REGISTER_WINDOWS code.
8065 * config/sparc/tm-sparc.h: Update comments.
8066 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8068 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8070 * i960-tdep.c (i960_find_saved_register): New function.
8071 (i960_get_saved_register): New function.
8072 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8073 (i960_get_saved_register): Declare.
8074 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8076 2002-04-20 David S. Miller <davem@redhat.com>
8078 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8080 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8082 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8083 instead of NUM_PSEUDO_REGS.
8085 2002-04-20 David S. Miller <davem@redhat.com>
8087 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8088 GDB_MULTI_ARCH_PARTIAL
8089 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8090 define, let tm-sp64.h do it.
8092 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8094 * frame.c (find_saved_register): Avoid a NULL pointer
8095 dereference and actually walk the frame list.
8097 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8099 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8100 sorted in most most-recent-used order. Document.
8101 * gdbarch.h, gdbarch.c: Regenerate.
8103 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8105 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8107 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8108 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8109 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8112 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8115 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8116 (build_builtin_type_vec128): Ditto.
8117 (append_composite_type_field): Fix calculation of type length in
8120 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8122 * config/djgpp/README: Update.
8124 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8127 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8129 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8130 (alpha_setup_arbitrary_frame): ...to this.
8131 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8132 for alpha_setup_arbitrary_frame.
8134 2002-04-18 Andrew Cagney <cagney@redhat.com>
8136 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8137 * gdbarch.h, gdbarch.c: Regenerate.
8139 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8140 * target.h (memory_breakpoint_from_pc): Update declaration.
8141 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8143 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8144 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8145 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8146 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8147 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8148 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8149 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8150 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8151 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8152 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8153 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8154 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8156 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8158 * monitor.c (monitor_insert_breakpoint): Ditto.
8159 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8161 * config/mcore/tm-mcore.h: Update copyright.
8162 * mem-break.c: Ditto.
8163 * xstormy16-tdep.c: Ditto.
8165 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8167 * p-exp.y: Add precedence rule for '^' token.
8168 This removes the shift/reduce conflicts.
8169 Remove the comment concerning these shift/reduce conflicts.
8171 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8173 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8174 (registers_powerpc_nofp): New register set for processors
8175 without floating point unit.
8177 2002-04-18 David S. Miller <davem@redhat.com>
8179 * MAINTAINERS: Add myself to write-after-approval.
8181 2002-04-17 Michael Snyder <msnyder@redhat.com>
8183 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8185 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8187 * rs6000-tdep.c (frame_initial_stack_address): Use
8188 frame_register_read to read the alloca_reg.
8190 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8192 * frame.c (find_saved_register): Find saved registers in the next
8196 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8198 * gdbarch.sh (LANG): Set to ``c''.
8200 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8202 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8204 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8206 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8209 * hpread.c (hpread_get_lntt): Add declaration.
8210 Also fix PR gdb/391.
8212 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8214 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8215 * aclocal.m4, configure: Re-generate.
8218 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8220 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8221 instead of tm_print_insn.
8223 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8225 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8227 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8229 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8230 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8231 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8233 2002-04-12 Don Howard <dhoward@redhat.com>
8235 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8236 max_user_call_depth.
8237 (init_cmd_lists): Initialize the new value;
8238 * cli/cli-script.c (execute_user_command): Limit the call depth of
8239 user defined commands. This avoids a core-dump when user commands
8240 are infinitly recursive.
8242 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8244 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8245 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8246 from tdep struct instead of DEFAULT_LR_SAVE.
8247 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8248 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8249 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8251 2002-04-12 Michael Snyder <msnyder@redhat.com>
8253 * Remote.c: Spelling fix.
8254 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8255 If no symbol found for "sbrk", try "_sbrk".
8256 (make_output_phdrs): Use bfd_section_name.
8257 (gcore_copy_callback): Use bfd_section_name.
8258 * eval.c: Indentation fix-ups.
8259 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8260 in case it gets applied to an address that is already
8261 in the instruction space.
8262 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8263 * symfile.c: Fix indentation, long lines.
8264 * source.c: White space fix-up.
8266 2002-04-12 Andrew Cagney <cagney@redhat.com>
8268 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8269 * frame.c (frame_register_read): New function. Return non-zero on
8271 (read_relative_register_raw_bytes_for_frame): Delete.
8272 (read_relative_register_raw_bytes): Delete.
8273 * frame.h (frame_register_read): Declare.
8274 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8276 * infcmd.c (do_registers_info): Ditto.
8277 * hppa-tdep.c: Ditto.
8278 * rs6000-tdep.c: Ditto.
8279 * h8500-tdep.c: Ditto.
8280 * mips-tdep.c: Ditto.
8281 * h8300-tdep.c: Ditto.
8282 * z8k-tdep.c: Ditto.
8284 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8286 From Jimi X <jimix@watson.ibm.com>:
8287 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8290 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8292 From Jimi X <jimix@watson.ibm.com>:
8293 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8296 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8298 From Jimi X <jimix@watson.ibm.com>:
8299 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8300 register sets for these processor variants.
8302 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8304 * regformats/reg-ppc.dat: Support FPSCR.
8306 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8308 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8309 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8310 Add fpscr as an invalid/unfetchable register.
8311 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8312 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8313 (fill_fpregset): Add support for register fpscr.
8314 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8315 (fill_gregset): Account for the fact that register ``mq'' might
8317 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8318 (registers_power): Add fpscr to register set at slot 71.
8319 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8320 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8322 2002-04-11 Michael Snyder <msnyder@redhat.com>
8324 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8325 * configure: Regenerate.
8326 * config.in: Regenerate.
8327 * acconfig.h: Add define for _SYSCALL32.
8328 * core-sol2.c: Remove #define _SYSCALL32.
8329 * solib-legacy.c: Remove #define _SYSCALL32.
8331 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8333 * stack.c (select_frame): Cleanup internal error message, do not
8336 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8338 * stack.c (select_frame): Check that selected_frame and the
8339 specified level are as expected.
8340 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8342 * frame.h (struct frame_info): Add field `level'. Update
8344 Work-in-progress PR gdb/464.
8346 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8348 * maint.c (maint_print_section_info): Rename print_section_info.
8349 (print_bfd_section_info, print_objfile_section_info): Update.
8350 * inferior.h (struct gdbarch): Add opaque declaration.
8351 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8352 * gdbarch.h: Regenerate.
8354 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8356 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8357 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8358 (kernel_u_size): Added.
8359 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8360 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8362 2002-04-04 Jim Ingham <jingham@apple.com>
8364 * valarith.c (find_size_for_pointer_math): New function, either returns
8365 the size for a pointer's target, returns 1 for void *, or errors for
8367 (value_add, value_sub): use find_size_for_pointer_math.
8369 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8371 * linux-low.c (linux_look_up_symbols): New hook.
8372 (linux_target_ops): Add linux_look_up_symbols.
8373 * remote-utils.c (decode_address): New function.
8374 (look_up_one_symbol): New function.
8375 * server.c (handle_query): Call target look_up_symbols hook.
8376 * server.h (look_up_one_symbol): Add prototype.
8377 * target.h (struct target_ops): Add look_up_symbols hook.
8379 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8381 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8382 override FP_REGNUM with frame->fp. Update copyright.
8383 * parse.c (num_std_regs, std_regs): Delete.
8384 (target_map_name_to_register): Do not search std_regs. Update
8385 function description.
8386 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8387 declarations. Update copyright.
8390 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8392 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8393 after the last symbol in a block.
8395 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8397 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8398 is non zero as a found symbol.
8400 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8402 * findvar.c: Include "builtin-regs.h".
8403 (value_of_register): Call value_of_builtin_reg when applicable.
8404 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8405 (target_map_name_to_register): Call
8406 builtin_reg_map_name_to_regnum.
8407 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8408 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8409 (builtin_regs_h): Define.
8410 (builtin-regs.o): New target.
8411 (findvar.o): Add $(builtin_regs_h).
8412 * builtin-regs.c, builtin-regs.h: New files.
8413 * std-regs.c: New file.
8414 Partial fix for PR gdb/251.
8416 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8418 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8419 it's no longer required.
8421 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8423 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8425 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8427 From Jimi X <jimix@watson.ibm.com>:
8428 * rs6000-tdep.c (rs6000_software_single_step): Use
8429 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8430 and size. Use target_insert_breakpoint() and
8431 target_remove_breakpoint() to insert and remove breakpoints
8432 instead of explicit memory reads and writes.
8434 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8436 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8437 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8438 ELF_OBJECT_FORMAT ifdef.
8440 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8442 From Jimi X <jimix@watson.ibm.com>:
8443 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8445 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8447 From Jimi X <jimix@watson.ibm.com>:
8448 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8449 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8451 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8453 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8454 s/asprintf/xasprintf/.
8455 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8457 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8459 I believe Jeff Law denies responsability for this one:
8460 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8461 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8462 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8463 Work-around for PR gdb/366.
8465 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8467 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8468 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8469 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8471 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8473 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8474 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8477 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8479 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8482 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8484 * README (Reporting Bugs in GDB): Document the bug web page as the
8485 prefered way of submitting bugs.
8488 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8490 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8492 * gdbarch.h, gdbarch.c: Re-generate.
8494 2002-04-07 Andreas Schwab <schwab@suse.de>
8496 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8497 buffer to regcache_collect.
8499 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8501 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8502 * gdbarch.c, gdbarch.h: Re-generate.
8504 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8506 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8507 declaration. Fix -Werror.
8509 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8511 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8512 * gdbarch.c: Regenerate.
8514 2002-04-05 Michael Snyder <msnyder@redhat.com>
8516 * breakpoint.c (clear_command): Rewrite middle section to
8517 combine two loops with identical control conditions.
8518 Add a cleanup to eliminate a memory leak.
8519 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8521 2002-04-05 H.J. Lu (hjl@gnu.org)
8523 * solib-svr4.c (bkpt_names): Add "__start".
8525 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8527 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8528 as test for 64 bit target.
8530 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8532 * h8500-tdep.c (h8500_write_fp): Delete function.
8533 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8534 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8535 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8537 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8538 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8540 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8541 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8542 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8543 (d10v_write_fp): Delete function.
8544 * inferior.h (write_fp, generic_target_write_fp): Delete
8546 * regcache.c (generic_target_write_fp): Delete function.
8547 (write_fp): Delete function.
8548 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8549 * gdbarch.h, gdbarch.c: Regenerate.
8550 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8551 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8552 (sparc64_write_fp): Delete declaration.
8553 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8554 (h8500_write_fp): Delete declaration.
8556 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8558 * sparc-tdep.c (sparc64_write_fp): Delete.
8559 (sparc_push_dummy_frame): Replace write_fp call with code to store
8561 (sparc_gdbarch_init): Do not initialize write_fp.
8563 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8565 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8568 2002-03-29 Jim Blandy <jimb@redhat.com>
8570 * stack.c (get_selected_block): Add new argument `addr_in_block',
8571 used to return the exact code address we used to select the block,
8573 * blockframe.c (get_frame_block, get_current_block): Same.
8574 * frame.h (get_frame_block, get_current_block,
8575 get_selected_block): Update declarations.
8576 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8577 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8579 2002-04-05 Michael Snyder <msnyder@redhat.com>
8581 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8584 2002-04-05 J. Brobecker <brobecker@gnat.com>
8586 * utils.c (xfullpath): New function.
8587 * defs.h (xfullpath): Add declaration.
8588 * source.c (openp): Use xfullpath in place of gdb_realpath to
8589 avoid resolving the basename part of filenames when the
8590 associated file is a symbolic link. This fixes a potential
8591 inconsistency between the filenames known to GDB and the
8592 filenames it prints in the annotations.
8593 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8594 to be able to match a filename with either the real filename, or
8595 the name of any symbolic link to this file.
8596 (lookup_partial_symtab): Ditto.
8598 2002-04-04 Michael Snyder <msnyder@redhat.com>
8600 * breakpoint.c: Add support for hardware breakpoints in overlays.
8601 (overlay_events_enabled): New state variable.
8602 (insert_breakpoints): Use overlay_events_enabled to decide
8603 whether to attempt to set a breakpoint at the overlay load addr.
8604 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8605 (remove_breakpoint): Use overlay_events_enabled to decide
8606 whether breakpoints need to be removed from overlay load addr.
8607 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8608 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8609 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8610 disable_overlay_breakpoints): Update overlay_events_enabled.
8612 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8614 * dwarf2read.c (struct function_range): New.
8615 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8616 (check_cu_functions): New.
8617 (read_file_scope): Initialize global function lists.
8618 Call dwarf_decode_line after processing children.
8619 (read_func_scope): Add to global function list.
8620 (dwarf_decode_lines): Call check_cu_functions everywhere
8621 record_line is called. Call record_line with a linenumber
8622 of 0 to mark sequence ends.
8624 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8626 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8627 change sync with glibc.
8629 2002-04-03 Jim Blandy <jimb@redhat.com>
8631 * configure.in: Call AC_C_INLINE.
8632 * configure: Regenerated.
8634 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8636 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8637 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8639 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8641 * NEWS: Mention gcore support on FreeBSD/i386.
8643 * fbsd-proc.c: New file.
8644 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8645 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8647 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8650 2002-03-29 Jim Blandy <jimb@redhat.com>
8652 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8653 unescaped newlines in string literals, but newer ones don't. So
8656 2002-03-26 Michael Snyder <msnyder@redhat.com>
8657 Andrew Cagney <cagney@redhat.com>
8659 * cli/cli-dump.c: New file. Dump memory to file,
8660 restore file to memory.
8661 * cli/cli-dump.h: New file.
8662 * Makefile.in: Add rules, dependencies for cli-dump.o.
8663 * NEWS: Mention new commands.
8665 2002-03-28 Michael Snyder <msnyder@redhat.com>
8667 * symfile.c (symbol_file_add): Move test for null symbols to later.
8669 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8671 From veksler at il.ibm.com:
8672 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8673 the xstrduped original path.
8676 2002-03-27 Michael Snyder <msnyder@redhat.com>
8678 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8679 * infcmd.c (_initialize_infcmd): Ditto.
8680 * language.c (_initialize_language): Ditto.
8681 * symfile.c (_initialize_symfile): Ditto.
8682 * top.c (_init_main): Ditto.
8683 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8685 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8687 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8688 vector registers handling.
8689 (skip_prologue): Handle new AltiVec instructions. Fill in new
8690 fields of frame data.
8691 (frame_get_saved_regs): Fill in information for AltiVec registers.
8693 2002-03-27 Jim Blandy <jimb@redhat.com>
8695 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8696 a function; leave this macro here to invoke that function.
8697 (symbol_init_mangled_name): Declaration for that function.
8698 * symtab.c (symbol_init_mangled_name): New function.
8700 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8702 * valarith.c: Replace strerror with safe_strerror.
8703 * tracepoint.c: Ditto.
8705 * go32-nat.c: Ditto.
8709 2002-03-27 Andreas Schwab <schwab@suse.de>
8711 * event-top.c (command_line_handler): Remove useless if.
8713 2002-03-27 Andreas Jaeger <aj@suse.de>
8715 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8718 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8720 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8721 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8722 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8723 (x86_64_linux_dr_get_status, supply_gregset),
8724 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8725 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8726 (x86_64_register_info_table): Add.
8727 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8728 (x86_64_register_raw_size, x86_64_register_virtual_type),
8729 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8730 general x86_64_register_info_table.
8731 (i386_gdbarch_init): gdbarch_register_bytes is now set
8732 dynamicaly during initialization.
8733 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8734 * gdbserver/linux-x86-64-low.c: Ditto.
8736 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8738 * gdbserver/server.c (main): Call target_signal_to_host_p
8739 and target_signal_to_host on signals received from the remote.
8740 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8741 target_signal_from_host on signals sent to the remote.
8742 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8743 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8745 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8747 * signals/signals.c: Include "server.h" in gdbserver build.
8748 (target_signal_from_name): Don't use STREQ.
8749 (_initialize_signals): Likewise. Don't include function in
8752 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8754 * signals.c: Moved to...
8755 * signals/signals.c: Here.
8756 * Makefile (signals.o): Update.
8758 2002-03-26 Jeff Law (law@redhat.com)
8760 * somread.c (som_symtab_read): Remove some commented out code and
8761 updated related comments. Do not set the minimal symbol table to
8762 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8763 in a dynamic executable.
8764 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8765 where we are unable to find the minimal symbol for the given
8768 2002-03-25 Jeff Law (law@redhat.com)
8770 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8772 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8774 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8776 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8778 * command.h: Update copyright.
8779 (struct cmd_list_element): Replace definition with opaque
8781 (enum cmd_types): Document that it will eventually be moved to
8783 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8784 (MALLOCED_REPLACEMENT): Delete macro.
8785 * Makefile.in (cli_decode_h): Add $(command_h).
8786 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8787 * top.c: Include "cli/cli-decode.h".
8788 * completer.c: Include "cli/cli-decode.h".
8789 * maint.c: Include "cli/cli-decode.h".
8790 * cli/cli-decode.h: Include "command.h".
8791 (enum command_class): Delete.
8792 (enum cmd_types): Comment out.
8793 (enum cmd_auto_boolean): Delete.
8794 (enum var_types): Delete.
8796 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8798 * cli/cli-decode.c: Include "gdb_assert.h".
8799 (add_set_or_show_cmd): New static function.
8800 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8801 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8802 all fields, such as func, from the set command.
8804 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8806 * MAINTAINERS (sh-elf): Change warning flag to -w.
8808 2002-03-23 Andrew Cagney <cagney@redhat.com>
8810 * defs.h (error): Add printf format attribute.
8811 * thread-db.c (thread_from_lwp): Fix error format string.
8812 * stack.c (parse_frame_specification): Ditto.
8813 * cli/cli-decode.c (undef_cmd_error): Ditto.
8814 * scm-lang.c (scm_lookup_name): Ditto.
8815 * tracepoint.c (trace_error): Ditto.
8816 * remote-utils.c (usage): Ditto.
8817 * remote.c (compare_sections_command): Ditto.
8820 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8822 * gdbtypes.c (append_composite_type_field): New function.
8823 (init_composite_type): New function.
8824 * gdbtypes.h (append_composite_type_field): Declare.
8825 (init_composite_type): Ditto.
8827 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8829 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8831 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8832 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8833 structure returning convention for SYSV ABI case, but not
8834 for GNU/Linux, FreeBSD, or NetBSD.
8836 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8838 * symtab.h (lookup_block_symbol): Add mangled_name argument
8841 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8842 with new mangled_name argument.
8843 * linespec.c (decode_line_1): Likewise.
8844 * valops (value_of_this): Likewise.
8845 * symtab.c (lookup_transparent_type): Likewise.
8846 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8847 (lookup_symbol): If we are given a mangled name, pass it down
8848 to lookup_symbol_aux.
8849 (lookup_block_symbol): If we are given a mangled name to check
8850 against, only return symbols which match it.
8852 2002-03-22 Christopher Faylor <cgf@redhat.com>
8854 * win32-nat.c (child_create_inferior): Check for proper shell to use
8855 here, in case the user changes it on the fly.
8856 (_initialize_inftarg): Remove shell path considerations.
8858 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8860 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8861 for gdbarch_max_register_raw_size and max_register_virtual_size.
8862 Adjust copyright year.
8864 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8866 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8867 in a function to cover the entire beginning of the function
8868 as well if it does not already.
8870 2002-03-21 Tom Rix <trix@redhat.com>
8872 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8873 (rs6000_ptrace64): Renamed from ptrace64.
8875 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8877 * gdbserver/remote-utils.c (remote_open): Don't call
8878 getprotobyname, we're all using TCP here so just use
8880 * gdbserver/gdbreplay.c (remote_open): Ditto.
8882 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8884 * regcache.c (_initialize_regcache): No need to call
8885 build_regcache() at this time; it gets called whenever
8886 the gdbarch changes.
8888 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8890 * sparc-nat.c: Include sys/param.h where possible.
8892 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8895 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8896 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8897 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8899 * stabsread.c (rs6000_builtin_type): Likewise.
8900 (read_sun_floating_type): Likewise.
8902 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8904 * stabsread.c (read_member_functions): Remove skip code for duplicate
8905 constructor/destructor methods. Use standard parsing for these
8906 methods and just do not chain them to the list of methods after
8909 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8911 * coffread.c: Remove redundant static declarations. Replace
8912 occurrences of `PTR' with `void *'.
8913 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8914 * top.h (quit_cover): Likewise.
8915 * defs.h (catch_errors): Likewise.
8917 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8919 * defs.h (XMALLOC): Define.
8920 * gdb-events.sh (XMALLOC): Delete macro.
8921 * gdb-events.c, gdb-events.h: Regenerate.
8922 * gdbarch.sh (XMALLOC): Delete macro.
8923 * gdbarch.c: Regenerate.
8924 * serial.c (XMALLOC): Delete macro.
8925 * ui-file.c (XMALLOC): Ditto.
8926 * ser-unix.h (XMALLOC): Ditto.
8927 * sh-tdep.c (XMALLOC): Ditto.
8928 * ui-out.c (XMALLOC): Ditto.
8929 * utils.c (XMALLOC): Ditto.
8930 * i386-tdep.c (XMALLOC): Ditto.
8931 * gdb-events.c (XMALLOC): Ditto.
8932 * d10v-tdep.c (XMALLOC): Ditto.
8933 * cli-out.c (XMALLOC): Ditto.
8935 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8936 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8937 * ui-file.c, ui-out.c: Ditto.
8939 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8941 * command.h (struct cmd_list_element): Add field context.
8942 (set_cmd_context, get_cmd_context): Declare.
8943 * cli/cli-decode.h: Ditto.
8944 * cli/cli-decode.c (get_cmd_context): New function.
8945 (set_cmd_context): New function.
8946 (add_cmd): Initialize context.
8947 Part of fixing PR gdb/145 and PR gdb/146.
8949 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8951 * cli/cli-decode.c (cmd_type): New function.
8952 * command.h (cmd_type): Declare.
8953 * infrun.c (set_schedlock_func): Call function cmd_type.
8954 * kod.c (kod_set_os): Call cmd_type.
8955 * cris-tdep.c (cris_version_update): Use function cmd_type.
8956 (cris_mode_update, cris_abi_update): Ditto.
8958 * command.h: (execute_cmd_post_hook): Declare.
8959 (execute_cmd_pre_hook): Declare.
8960 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8961 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8962 functions. Execute pre/post hook while ensuring that afterwords
8964 * top.c (execute_command): Use execute_cmd_post_hook, and
8965 execute_cmd_pre_hook to execute pre/post commands.
8966 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8968 (hook_stop_stub): Call execute_cmd_pre_hook.
8970 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8972 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8973 set'' and this leads to a core dump. Move xstrdup of
8974 operating_system to after check that it is not NULL.
8976 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8978 * kod.c (kod_set_os): Remove unnecessary check that
8979 ``command->type'' is set_cmd.
8981 * valprint.c (set_input_radix): Use input_radix.
8982 (set_output_radix): Use output_radix.
8983 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8986 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8988 * value.h (struct value): Delete field ``substring_addr''. Change
8989 aligner fields to force_doublest_align, force_longest_align,
8990 force_core_addr_align and force_pointer_aligh.
8992 * value.h (struct value): Fix typo in above change.
8994 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8996 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8997 to fix internal_error from ``maintenance print architecture''.
8999 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9001 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9002 for gcc versions after gcc-2.8.1.
9004 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9006 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9007 for method resolution. Restore adjustment of ``this'' pointer after
9008 calling value_struct_elt, which was accidentally removed during the
9011 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9013 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9015 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9017 * value.h (value_of_register): Update.
9019 2002-03-14 Richard Henderson <rth@redhat.com>
9021 * configure.in: Detect declaration for canonicalize_file_name.
9022 * utils.c (canonicalize_file_name): Declare, if needed.
9023 (gdb_realpath): Prefer realpath if available and usable.
9024 * config.in, configure: Rebuild.
9026 2002-03-14 Richard Henderson <rth@redhat.com>
9028 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9029 a constant array bound.
9031 * MAINTAINERS: Add myself to write-after-approval.
9033 2002-03-14 Michael Snyder <msnyder@redhat.com>
9035 * symfile.c (syms_from_objfile): Return immediately if no syms.
9036 (symbol_file_add): Return immediately if no syms.
9037 (find_sym_fns): Return immediately if no syms.
9039 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9041 * gdbserver/remote-util.c (remote_open): Print remote-side's
9042 IP address when remote debugging over the network.
9044 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9046 * config/sparc/fbsd.mh: Fix copyright.
9047 * config/sparc/fbsd.mt: Likewise.
9049 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9051 * MAINTAINERS: Fix typo in name of gdb warnings option.
9052 (x86-64): Fix formating so that this can be parsed by awk.
9054 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9056 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9057 * defs.h: Include "gdb/signals.h".
9058 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9060 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9062 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9063 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9066 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9067 Don Howard <dhoward@redhat.com>
9069 * mips-tdep.c (ST0_FR): Define.
9070 (mips2_fp_compat): New function, temporarily disabled.
9071 (mips_read_fp_register_single): New function.
9072 (mips_read_fp_register_double): New function.
9073 (mips_print_register): Use them.
9074 (do_fp_register_row): Likewise.
9076 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9078 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9081 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9083 * stabsread.c (read_member_functions): Fix is_stub test for
9084 static member functions, improve comment.
9086 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9088 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9089 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9090 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9091 commands that set boolean values.
9092 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9093 (arm_rdi_resume): Always initialize PC.
9094 (arm_rdi_open): Don't use rslt as a boolean.
9095 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9096 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9097 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9098 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9100 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9102 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9103 * configure: Rebuilt.
9105 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9107 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9108 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9110 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9112 * cli/cli-decode.c (set_cmd_completer): New function.
9113 * command.h (set_cmd_completer): Declare.
9114 * cli/cli-decode.h (set_cmd_completer): Ditto.
9116 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9117 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9118 * win32-nat.c (_initialize_inftarg): Ditto.
9119 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9120 * proc-api.c (_initialize_proc_api): Ditto.
9121 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9122 * source.c (_initialize_source): Ditto.
9123 * exec.c (_initialize_exec): Ditto.
9124 * solib.c (_initialize_solib): Ditto.
9125 * top.c (init_main): Ditto.
9126 * tracepoint.c (_initialize_tracepoint): Ditto.
9127 * symfile.c (_initialize_symfile): Ditto.
9128 * printcmd.c (_initialize_printcmd): Ditto.
9129 * infcmd.c (_initialize_infcmd): Ditto.
9130 * corefile.c (_initialize_core): Ditto.
9132 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9134 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9136 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9138 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9140 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9142 * NEWS: Update headings, 5.2 has branched.
9144 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9146 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9147 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9148 (register_addr, REGISTER_RAW_SIZE): Likewise.
9149 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9150 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9152 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9154 * MAINTAINERS (x86-64): Add myself.
9155 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9156 changed value_ptr -> struct value *
9158 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9160 * configure.host (sparc64-*-freebsd): Add.
9161 * configure.tgt: Likewise.
9162 * config/sparc/fbsd.mh: New file.
9163 * config/sparc/fbsd.mt: Likewise.
9164 * config/sparc/nm-fbsd.h: Likewise.
9165 * config/sparc/tm-fbsd.h: Likewise.
9167 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9169 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9170 regformats/reg-s390x.dat.
9172 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9174 * utils.c: Add FIXME explaining true/false problem.
9176 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9178 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9180 2002-02-28 Michael Chastain <mec@shout.net>
9182 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9184 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9186 * gdbserver/linux-s390-low.c: New file.
9187 * regformats/reg-s390.dat: New file.
9188 * regformats/reg-s390x.dat: New file.
9189 * gdbserver/configure.srv: Add S/390.
9190 * gdbserver/Makefile.in: Add S/390.
9191 * configure.tgt: Enable gdbserver for S/390.
9193 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9195 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9196 first line of the doc string for "info dos", except at the end of
9197 the sentence, since the short help stops at the first period.
9199 2002-02-28 Jason Merrill <jason@redhat.com>
9201 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9203 2002-02-27 Fred Fish <fnf@redhat.com>
9205 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9206 comment (dumy -> dummy).
9208 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9210 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9212 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9214 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9216 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9218 * gdbserver/acconfig.h: New file.
9219 * gdbserver/i387-fp.c: New file.
9220 * gdbserver/i387-fp.h: New file.
9221 * gdbserver/linux-x86-64.c: New file.
9222 * regformats/reg-x86-64.dat: New file.
9223 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9224 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9225 * gdbserver/configure.in: Add support for regsets.
9226 * gdbserver/config.in: Regenerate.
9227 * gdbserver/configure: Regenerate.
9228 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9229 * gdbserver/linux-low.h: New file.
9230 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9232 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9233 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9234 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9235 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9236 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9237 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9238 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9239 "i387-fp.h". Add PTRACE_GETREGS and friends.
9240 * gdbserver/regcache.c (supply_register): New function.
9241 (supply_register_by_name): New function.
9242 (collect_register): New function.
9243 (collect_register_by_name): New function.
9245 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9247 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9248 (config.status): Add configure.srv dependency.
9249 (server_h): Add config.h dependency.
9251 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9253 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9254 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9255 * gdbserver/configure.srv: Change i386-*-linux* to use
9258 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9260 * x86-64-tdep.c: Re-indent. Update copyright date.
9262 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9264 From Michal Ludvig <mludvig@suse.cz>:
9265 * x86-64-tdep.c (value.h): Delete.
9266 (gdb_assert.h): Include.
9267 (x86_64_register_convert_to_virtual,
9268 x86_64_register_convert_to_raw ): Add check which lets only
9269 floating-point values to be converted.
9270 (value_push): Delete.
9271 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9272 (i386_gdbarch_init): Number of register_bytes fixed.
9274 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9276 * MAINTAINERS: Add x86-64 target.
9278 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9280 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9281 * osfsolib.c (solib_map_sections): Ditto.
9282 * irix5-nat.c (solib_map_sections): Ditto.
9283 * corelow.c (gdb_check_format): Ditto.
9284 * symfile.c (symfile_bfd_open): Ditto.
9285 * solib.c (solib_map_sections): Ditto.
9288 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9290 * remote.c (_initialize_remote): By default, disable ``e'' and
9291 ``E'' step out-of-range packets.
9293 2002-02-26 Andreas Schwab <schwab@suse.de>
9295 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9296 m68k_linux_frame_saved_pc.
9297 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9299 (SIGCONTEXT_PC_OFFSET): Remove.
9300 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9301 m68k_linux_sigtramp_saved_pc): New functions.
9302 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9303 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9304 (UCONTEXT_PC_OFFSET): Define.
9305 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9306 non-RT and RT signal trampolines.
9308 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9310 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9311 (TARGET_NBPG, STACK_END_ADDR): Delete
9312 (VARIABLES_INSIDE_BLOCK): Delete.
9314 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9316 * utils.c (perror_with_name): Make string parameter constant.
9317 (print_sys_errmsg): Ditto.
9319 * defs.h (perror_with_name): Update.
9320 (print_sys_errmsg): Update.
9323 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9325 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9326 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9328 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9330 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9331 if it already matches the current architecture from the exec file.
9332 Include arch-utils.h for gdbarch_info_init prototype.
9333 * Makefile.in (rs6000-nat.o): Update dependencies.
9335 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9337 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9338 list of exported variables.
9340 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9342 * gdbserver/configure.srv: New file.
9343 * gdbserver/configure.in: Use configure.srv instead
9344 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9346 * gdbserver/configure: Regenerated.
9347 * gdbserver/terminal.h: New file.
9348 * gdbserver/Makefile.in: Update for configure changes. Remove
9349 more unneeded include paths.
9351 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9353 From wiz at danbala:
9354 * config/sparc/tm-sp64.h: Fix grammar and typos.
9357 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9359 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9360 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9361 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9362 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9363 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9364 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9365 * s390-tdep.c: Ditto.
9366 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9367 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9368 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9369 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9370 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9371 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9372 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9373 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9374 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9375 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9378 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9380 * lin-thread.c: Delete file.
9381 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9382 to gdb_proc_service.h.
9383 * configure: Re-generate.
9385 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9386 * serial.c (serial_open): Delete check for "ocd".
9389 * Makefile.in (linux-thread.o): Delete target.
9390 * linux-thread.c: Delete file.
9392 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9393 renamed SH files to be consistent.
9395 * symtab.c (sort_search_symbols): Use xfree.
9397 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9399 * arm-linux-tdep.c (arm_linux_init_abi): Register
9400 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9401 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9402 definition with undef, since we don't want the sysvr4 definition.
9403 (SKIP_TRAMPOLINE_CODE): Likewise.
9405 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9407 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9409 * configure.in: (AC_CHECK_FUNCS) Added test for
9410 canonicalize_file_name Regenerated.
9411 * config.in, configure: Regenerated.
9412 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9413 defined use canonicalize_file_name.
9415 2002-02-23 Michael Chastain <mec@shout.net>
9417 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9419 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9421 * README: Remove references to cygnus.com.
9422 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9423 dot com'' form. Remove references to cygnus.com and sourceware.
9425 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9427 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9428 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9429 1003.1-2001 no longer allows "head -1".
9430 * gdb/Makefile.in (version.c): Likewise.
9431 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9432 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9433 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9435 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9437 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9438 * command.h (cmd_cfunc_eq): Declare.
9439 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9441 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9442 ``struct cmd_list_element *''.
9443 * cli/cli-cmds.c (is_complete_command): Update. Use
9445 * top.c (execute_command): Pass the command to
9446 is_complete_command.
9447 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9449 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9451 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9452 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9453 architecture defines.
9454 * s390-tdep.c (s390_gdbarch_init): Likewise.
9456 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9458 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9459 (arm_linux_push_arguments): Likewise.
9460 (arm_linux_init_abi): Register them. Also register linux-specific
9462 (find_minsym_and_objfile): Use strcmp, not STREQ.
9463 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9464 (arm_linux_call_dummy_words): Delete declaration.
9465 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9466 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9468 (LOWEST_PC): Delete.
9470 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9472 * maint.c (print_section_info): Do not prepend `0x' to filepos
9473 output, it will be handled by local_hex_string_custom.
9475 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9477 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9478 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9479 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9481 2002-02-22 Jim Blandy <jimb@redhat.com>
9483 Indicate that the bcache functions don't change the strings
9485 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9486 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9488 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9490 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9492 2002-02-21 Christopher Faylor <cgf@redhat.com>
9494 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9495 find the complete path to a loaded DLL.
9497 2002-02-21 Fred Fish <fnf@redhat.com>
9499 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9500 that marks the end of the range of a function, enter a line number
9501 entry that has a line number of zero and a PC offset that matches
9502 the end of the function. This starts a range of PC's for which no
9503 line number information is known.
9504 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9505 PC's for which no line number info is found (line number is zero)
9506 then we didn't find any valid line information.
9507 * symtab.h: Document use of zero line number entry.
9509 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9511 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9512 (have_ptrace_getvrregs): Define for run time checks.
9513 (gdb_vrregset_t): New type for Altivec register handling.
9514 (fetch_register, store_register): Fetch/store altivec register
9516 (fetch_altivec_register, store_altivec_register): New functions.
9517 (supply_vrregset, fill_vrregset): New functions.
9518 (fetch_altivec_registers, store_altivec_registers): New functions.
9519 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9522 2002-02-21 Jiri Smid <smid@suse.cz>
9524 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9526 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9528 * Makefile.in (armnbsd-nat.o): Update dependencies.
9529 * armnbsd-nat.c (supply_gregset): New function. Common code to
9530 supply the integer register set.
9531 (supply_fparegset): New function. Similar for FPA registers.
9532 (fetch_regs, fetch_fp_regs): Use them.
9533 (fetch_core_registers): Likewise.
9534 (fetch_elfcore_registers): New function.
9535 (arm_netbsd_elfcore_fns): New core-file type specification.
9536 (_initialize_arm_netbsd_nat): Register it.
9538 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9540 * armnbsd-nat.c: Include gdbcore.h.
9541 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9542 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9543 'void' to declaration, to shut up ARI.
9544 (fetch_core_registers): Make static. Rewrite using supply_register.
9545 (arm_netbsd_core_fns): New core-file type specification.
9546 (_initialize_arm_netbsd_nat): New function.
9548 2002-02-21 Christopher Faylor <cgf@redhat.com>
9550 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9553 2002-02-20 Christopher Faylor <cgf@redhat.com>
9555 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9558 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9560 * jv-exp.y (parse_number): Change type of implicit longs
9561 to builtin_type_uint64.
9563 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9565 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9566 to be an integer instead of a `union wait'.
9568 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9570 * mips-linux-nat.c: Call the operating system GNU/Linux.
9571 * mips-linux-tdep.c: Likewise.
9572 * mips-tdep.c: Likewise.
9574 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9577 * jv-exp.y (parse_number): Handle 64-bit integers.
9579 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9581 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9582 AC_STDC_HEADERS to AC_HEADER_STDC.
9583 * gdbserver/configure: Regenerated.
9585 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9587 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9589 * sparc-tdep.c (get_longjmp_target): Likewise.
9591 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9593 * News: Add news about ARM and Multi-arch. Mention the new target
9596 2002-02-19 Jim Blandy <jimb@redhat.com>
9598 * stabsread.c (error_type_complaint): Improve error message.
9600 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9602 * gdbserver/README: Update documentation.
9603 * gdbserver/configure.in: Update configury to match documentation.
9604 * gdbserver/Makefile.in: Likewise.
9605 * gdbserver/configure: Regenerated.
9606 * gdbserver/aclocal.m4: New file, generated by aclocal.
9607 * gdbserver/config.in: New file, generated by autoheader.
9609 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9611 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9614 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9616 * arm-tdep.h (enum arm_float_model): New enum.
9617 (struct gdbarch_tdep): Add fp_model.
9618 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9619 up floating-point conversions until we know the floating-point model
9620 in use by the inferior. Don't complain about being unable to
9621 determine the ABI of the inferior when we don't have one.
9622 (arm_extract_return_value): Support different floating-point models.
9623 (arm_store_return_value): Likewise.
9624 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9626 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9628 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9630 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9631 of ``current_gdbarch''.
9633 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9635 * armnbsd-nat.c : ANSIfy all function declarations.
9636 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9637 (fetch_inferior_registers): Re-implement in terms of above.
9638 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9639 (store_inferior_registers): Re-implement in terms of above.
9641 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9643 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9645 * arm-linux-tdep.c: Likewise.
9646 * config/arm/tm-linux.h: Likewise.
9648 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9650 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9651 * config/arm/nbsd.mt (TM_FILE): Delete.
9652 * config/arm/tm-nbsd.h: Delete.
9654 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9656 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9657 Initialize CALL_DUMMY_LENGTH.
9659 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9661 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9663 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9664 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9665 defines one thing and that is incorrect for this port.
9666 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9668 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9670 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9672 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9674 * win32-nat.c (display_selector): New function. Displays information
9675 about the information returned by GetThreadSelectorEntry API function.
9676 (display_selectors): New function. Displays the infomation of
9677 the selector given as argument, or of CS, DS ans FS selectors
9678 if no argument is given.
9679 ( _initialize_inftarg): Add "w32" as info prefix command.
9680 Add "info w32 selector" as command calling display_selectors.
9682 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9684 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9685 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9688 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9690 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9692 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9694 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9695 (arm_fix_call_dummy): Call it.
9696 (arm_call_dummy_breakpoint_offset): Delete.
9697 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9698 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9700 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9702 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9703 Default to func_frame_chain_valid.
9704 * gdbarch.h, gdbarch.c: Re-generate.
9705 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9707 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9709 * ppc-linux-nat.c: Update copyright.
9710 (fetch_register, store_register): Add tid parameter, don't compute
9712 (fetch_ppc_registers, store_ppc_registers): Add tid
9713 parameter. Pass it along to callees.
9714 (fetch_inferior_registers, store_inferior_registers): Compute tid
9715 here, and pass it to calleed functions.
9716 (fill_gregset, supply_fpregset): Clean up formatting.
9718 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9720 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9721 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9723 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9725 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9726 * gdbarch.c gdbarch.h: Regenerate.
9727 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9729 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9730 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9731 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9733 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9734 * arm-tdep.c (arm_get_longjmp_target): New function.
9735 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9736 this to a positive value register arm_get_longjmp_target as the
9738 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9739 (arm_linux_init_abi): Set up longjmp description in tdep.
9740 * armnbsd-nat.c (get_longjmp_target): Delete.
9741 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9742 description in tdep.
9743 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9744 (get_longjmp_target): Delete declaration.
9745 (GET_LONGJMP_TARGET): Delete.
9746 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9747 (GET_LONGJMP_TARGET): Delete.
9749 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9751 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9752 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9753 of ``current_gdbarch''.
9755 2002-02-17 Tom Tromey <tromey@redhat.com>
9757 * cli/cli-cmds.c (compare_strings): New function.
9758 (complete_command): Only print each unique item once.
9759 * completer.h (complete_line): Declare.
9760 * completer.c (complete_line): New function.
9761 (line_completion_function): Use it.
9763 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9765 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9766 * gdbarch.h, gdbarch.c: Re-generate.
9768 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9770 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9772 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9774 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9775 * valops.c (value_arg_coerce): Don't take the address of a reference
9776 to convert an argument to a reference.
9778 2002-02-15 Christopher Faylor <cgf@redhat.com>
9780 * win32-nat.c (get_image_name): New function.
9781 (handle_load_dll): Use get_image_name function.
9782 (get_child_debug_event): Avoid registering debug events until possibly
9783 execed process is started.
9784 (child_create_inferior): Allow invocation via shell so that command
9785 line redirection, etc. works ok.
9786 (_initialize_inftarg): Add new command: "set shell" to control whether
9787 a shell is used to start a process.
9789 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9791 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9792 instead of find_register_by_number.
9793 (cannot_store_register): Likewise.
9795 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9797 * dwarf2read.c: Replace fprintf (stderr, ...) by
9798 fprintf_unfiltered (gdb_stderr, ...).
9800 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9802 * gdbserver/gdbserver.1: Document --attach.
9804 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9806 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9808 * arm-tdep.c (arm_default_arm_le_breakpoint)
9809 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9810 (arm_default_thumb_be_breakpoint): New. Initialize them from
9811 traditional breakpoint defines.
9812 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9813 (arm_gdbarch_init): Initialize new breakpoint variables.
9814 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9815 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9816 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9817 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9819 (arm_netbsd_init_abi_common): ... here; new function.
9820 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9821 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9822 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9823 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9825 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9827 * arm-tdep.h (enum arm_abi): New enum.
9828 (struct gdbarch_tdep): New structure.
9829 (LOWEST_PC): Provide a default.
9830 (arm_gdbarch_register_os_abi): Declare new function.
9831 * arm-tdep.c (arm_abi_names): New array.
9832 (process_note_abi_tag_sections): New function.
9833 (get_elfosabi): New function.
9834 (arm_gdbarch_register_os_abi): New function.
9835 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9836 support for that ABI has been built in, then call the appropriate
9837 configuration routine. Use gdbarch_num_regs() to get the number
9839 (arm_dump_tdep): New function.
9840 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9841 place-holder functions.
9842 (_initialize_arm_tdep): Register them.
9843 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9845 * armnbsd-tdep.c: New file.
9846 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9847 * config/arm/nbsd.mt (TDEPFILES): Add it.
9848 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9850 * armnbsd-nat.c: Include regcache.h.
9851 * Makefile.in (armnbsd-nat.o): Update dependency list.
9853 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9855 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9857 * gdbserver/Makefile.in: Fix typos in target rules.
9859 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9861 Fix part of PR gdb/267.
9862 * linespec.c (find_methods): Handle constructors specially for now.
9864 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9866 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9868 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9869 standard_coerce_float_to_double().
9871 2002-02-14 Christopher Faylor <cgf@redhat.com>
9873 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9876 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9878 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9879 find_variant_by_name, because it confuses the multiarch
9880 framework. Return NULL if there isn't an architecture with the
9881 user supplied name, instead of forcing a different one without
9882 recording the change with the multiarch machinery.
9883 (find_variant_by_name): Delete.
9885 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9887 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9888 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9890 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9892 * stack.c (print_frame_info_base): When calling
9893 print_frame_info_listing_hook, set current_source_symtab.
9895 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9897 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9898 and remove unused $(INCLUDE_DIR).
9899 Add regcache.c to OBS.
9900 Add generated register protocol files to clean target.
9901 Update dependencies for new objects, obsolete old target code.
9903 * gdbserver/linux-low.c: Remove all platform-specific code to
9904 new files. Remove various dead code. Update to use regcache
9906 * gdbserver/remote-utils.c (fromhex): Add return statement
9908 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9910 (input_interrupt): Add integer parameter to match prototype
9911 of a signal handler.
9912 (outreg): Use register_data ().
9913 (prepare_resume_reply): Use gdbserver_expedite_regs.
9914 * gdbserver/server.c (main): Dynamically allocate own_buf because
9915 PBUFSIZ is no longer constant. Use registers_to_string () and
9916 registers_from_string ().
9917 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9918 for error (), fatal (), and warning (). Update definition of
9919 PBUFSIZ to use regcache functionality. Add include guard.
9920 * gdbserver/utils.c (fatal): Add missing ``const''.
9921 (warning): New function.
9923 * regformats/regdat.sh: Include "regcache.h" in generated files.
9924 Provide init_registers () function.
9925 * regformats/regdef.h: Add prototype for set_register_cache ().
9928 * gdbserver/linux-arm-low.c: New file.
9929 * gdbserver/linux-i386-low.c: New file.
9930 * gdbserver/linux-ia64-low.c: New file.
9931 * gdbserver/linux-m68k-low.c: New file.
9932 * gdbserver/linux-mips-low.c: New file.
9933 * gdbserver/linux-ppc-low.c: New file.
9934 * gdbserver/linux-sh-low.c: New file.
9936 * gdbserver/regcache.c: New file.
9937 * gdbserver/regcache.h: New file.
9939 * gdbserver/low-linux.c: Removed obsolete file.
9941 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9943 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9944 * config/i386/linux.mt: Likewise.
9945 * config/ia64/linux.mt: Likewise.
9946 * config/m68k/linux.mh: Likewise.
9947 * config/powerpc/linux.mh: Likewise.
9948 * config/mips/linux.mt: Likewise.
9950 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9952 * config/i386/i386lynx.mh: Mark gdbserver variables
9953 as (currently) obsolete for this target.
9954 * config/i386/nbsd.mt: Likewise.
9955 * config/i386/nbsdelf.mt: Likewise.
9956 * config/m32r/m32r.mt: Likewise.
9957 * config/m68k/m68klynx.mh: Likewise.
9958 * config/m68k/nbsd.mt: Likewise.
9959 * config/m68k/sun3os4.mh: Likewise.
9960 * config/mips/vr5000.mt: Likewise.
9961 * config/ns32k/nbsd.mt: Likewise.
9962 * config/pa/hppabsd.mh: Likewise.
9963 * config/pa/hppaosf.mh: Likewise.
9964 * config/powerpc/nbsd.mt: Likewise.
9965 * config/rs6000/rs6000lynx.mh: Likewise.
9966 * config/s390/s390.mt: Likewise.
9967 * config/s390/s390x.mt: Likewise.
9968 * config/sparc/sparclynx.mh: Likewise.
9969 * config/sparc/sun4os4.mh: Likewise.
9970 * config/i386/x86-64linux.mt: Likewise.
9971 * config/sparc/linux.mh: Likewise.
9973 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9975 * configure.tgt: Configure gdbserver only for known working
9976 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9977 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9978 SUBDIRS if it is configured. Update comment for ${nativefile}.
9979 * configure: Regenerated.
9981 2002-02-13 Michael Snyder <msnyder@redhat.com>
9983 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9985 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9986 (default_gcore_mach): Just return 0, work around a problem in bfd.
9987 (default_gcore_target): OK to return NULL if exec_bfd is null.
9988 (make_mem_sec): Use a cast, avoid a warning.
9990 * procfs.c (find_memory_regions_callback): Use a cast instead of
9991 calling host_pointer_to_address (which complains if
9992 sizeof (host pointer) != sizeof (target pointer)).
9993 (procfs_make_note_section): Avoid overflow in psargs string.
9995 * procfs.c (procfs_make_note_section): Make the default
9996 implementation return an error.
9998 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10000 * procfs.c (procfs_make_note_section): Provide a default definition
10001 (for alpha-dec-osf4.0f). Fix typos.
10003 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10005 * linux-proc.c: Add include of regcache.h.
10006 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10008 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10010 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10011 * memattr.c (create_mem_region): Disallow useless empty region.
10012 Regions are half-open intervals, so allow [A..B) [B..C) as
10015 2002-02-13 Michael Chastain <mec@shout.net>
10017 * defs.h: Kill CONST_PTR.
10018 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10019 * c-lang.c (c_builtin_types): Likewise.
10020 * ch-lang.c (ch_builtin_types): Likewise.
10021 * f-lang.c (f_builtin_types): Likewise.
10022 * language.c (unknown_builtin_types): Likewise.
10023 * m2-lang.c (m2_builtin_types): Likewise.
10024 * p-lang.c (pascal_builtin_types): Likewise.
10025 * scm-lang.c (c_builtin_types): Likewise.
10027 2002-02-13 Keith Seitz <keiths@redhat.com>
10029 * arm-tdep.h (arm_get_next_pc): Add declaration.
10031 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10033 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10034 with other related struct-returning functions.
10035 (arm_extract_struct_value_address): New function.
10036 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10037 initialize float_format, double_format and long_double_format as
10038 appropriate to the endianness of the target.
10039 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10040 (arm_use_struct_convention): Delete declaration.
10041 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10043 2002-02-13 Keith Seitz <keiths@redhat.com>
10045 * defs.h (core_addr_to_string_nz): New function.
10047 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10049 Apply missing bits of 2002-01-15 patch.
10050 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10051 (fill_fpregset): Use i387_fill_fsave.
10053 2002-02-12 Keith Seitz <keiths@redhat.com>
10055 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10056 (core_addr_to_string_nz): New function.
10058 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10060 * arm-linux-nat.c: Really include arm-tdep.h.
10061 * config/arm/tm-linux.h (struct type, struct value): Declare.
10063 2002-02-11 Michael Snyder <msnyder@redhat.com>
10065 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10066 (gcore section): Ifdef for Solaris and Unixware only.
10067 (procfs_do_thread_registers): Unixware needs one lwpstatus
10068 per thread (not one prstatus or pstatus).
10069 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10070 not over all gdb threads. For unixware, call elfcore_write_pstatus
10071 once before iterating over threads.
10073 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10075 * arm-tdep.h: New file.
10076 * arm-tdep.c: Include arm-tdep.h.
10077 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10078 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10079 (arm_print_float_info, arm_register_type, convert_to_extended)
10080 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10081 (arm_extract_return_value, arm_register_name): Make static.
10082 (arm_software_single_step): Similarly. Fix types in declaration.
10083 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10084 (arm_store_return_value, arm_store_struct_return): New functions.
10085 (arm_gdbarch_init): Register the above functions. Also register
10086 call_dummy_start_offset, sizeof_call_dummy_words,
10087 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10088 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10089 max_register_virtual_size, register_size. Set up
10090 prologue_cache.saved_regs here, rather than ...
10091 (_initialize_arm_tdep): ... here.
10092 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10094 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10095 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10096 (arm_print_float_info, arm_register_type, convert_to_extended)
10097 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10098 (arm_extract_return_value, arm_register_name): Delete declarations.
10099 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10100 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10101 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10102 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10103 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10104 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10105 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10106 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10107 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10108 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10109 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10110 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10112 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10113 * remote-rdi.c remote-rdp.c: Likewise.
10114 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10115 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10116 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10119 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10120 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10121 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10122 from non-ARM_ prefixed definitions.
10123 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10125 * remote-rdi.c remote-rdp.c: Likewise.
10126 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10128 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10130 * arm-tdep.c (arm_frameless_function_invocation)
10131 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10132 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10133 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10134 (arm_pop_frame, arm_get_next_pc): Make static.
10135 (arm_gdbarch_init): Register above in gdbarch structure.
10136 (arm_read_fp): Renamed from arm_target_read_fp.
10137 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10138 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10139 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10140 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10141 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10142 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10143 (arm_pc_is_thumb_dummy): Delete declarations.
10144 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10145 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10146 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10147 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10149 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10151 * symtab.c (compare_search_syms): New function.
10152 (sort_search_symbols): New function.
10153 (search_symbols): Sort symbols after searching rather than
10156 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10158 * NEWS: Linux -> GNU/Linux.
10160 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10162 * gdbarch.sh: For for level one methods, disallow a definition
10163 when partially multi-arched. Add comments explaining rationale.
10164 * gdbarch.h: Re-generate.
10166 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10168 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10169 multi-arch partial.
10171 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10173 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10174 field. Use diff -u.
10175 * gdbarch.c: Re-generate.
10177 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10179 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10180 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10183 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10185 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10186 multi-arch partial.
10187 (PUSH_ARGUMENTS): Switch to using predefault.
10188 * gdbarch.c: Regenerate.
10190 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10192 * valops.c (PUSH_ARGUMENTS): Delete definition.
10193 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10194 partial. Default to default_push_arguments.
10195 * gdbarch.h, gdbarch.c: Regenerate.
10197 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10199 * defs.h (throw_exception): Rename return_to_top_level. Update
10201 * utils.c (error_stream, internal_verror, quit): Ditto.
10202 * top.c (throw_exception, catcher): Ditto.
10203 * sparclet-rom.c (sparclet_load): Ditto.
10204 * remote.c (interrupt_query, minitelnet): Ditto.
10205 * remote-sds.c (interrupt_query): Ditto.
10206 * remote-mips.c (mips_error, mips_kill): Ditto.
10207 * ocd.c (interrupt_query): Ditto.
10208 * monitor.c (monitor_interrupt_query): Ditto.
10209 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10210 * target.h: Update comment.
10212 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10214 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10216 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10217 default_double_format.
10218 * gdbarch.h, gdbarch.c: Re-generate.
10219 * findvar.c (floatformat_unknown): Delete variable definition.
10220 * doublest.h (floatformat_unknown): Delete variable declaration.
10222 2002-02-09 Jim Blandy <jimb@redhat.com>
10224 * stabsread.c (read_type): Add code to parse Sun's syntax for
10225 prototyped function types.
10227 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10229 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10230 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10232 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10234 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10235 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10236 now _initialize_xcoffsolib gets called again and overrides the
10237 commands from solib.c in a native configuration.
10239 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10241 * doublest.c (store_typed_floating): Don't try to return a value.
10244 2002-02-08 Jim Blandy <jimb@redhat.com>
10246 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10247 is prototyped and has no arguments, print its argument list as
10250 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10252 * MAINTAINERS (write-after-approval): Add myself.
10253 (paper-trail): I've escaped!
10255 2002-02-08 Christopher Faylor <cgf@redhat.com>
10257 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10259 (_initialize_check_for_gdb_ini): Ditto.
10261 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10263 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10264 xaprintf -> xasprintf.
10266 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10268 * win32-nat.c: Remove use of printf and sprintf functions.
10270 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10272 * arm-tdep.c (arm_frame_chain_valid): Make static.
10273 (arm_push_arguments): Likewise.
10274 (arm_gdbarch_init): New function.
10275 (_initialize_arm_tdep): Call it.
10276 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10277 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10278 (FRAME_CHAIN_VALID): Delete.
10279 (arm_frame_chain_valid): Delete declaration.
10280 (PUSH_ARGUMENTS): Delete.
10281 (arm_push_arguments): Delete declaration.
10282 (CALL_DUMMY_P): Delete.
10284 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10285 Corinna Vinschen <vinschen@redhat.com>
10287 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10288 on builtin float types.
10290 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10292 * utils.c: Include <curses.h> before "bfd.h".
10293 * tui/tui-hooks.c: Likewise.
10294 * tui/tui.c: Likewise.
10295 * tui/tuiCommand.c: Likewise.
10296 * tui/tuiData.c: Likewise.
10297 * tui/tuiDataWin.c: Likewise.
10298 * tui/tuiDisassem.c: Likewise.
10299 * tui/tuiGeneralWin.c: Likewise.
10300 * tui/tuiIO.c: Likewise.
10301 * tui/tuiLayout.c: Likewise.
10302 * tui/tuiRegs.c: Likewise.
10303 * tui/tuiSource.c: Likewise.
10304 * tui/tuiSourceWin.c: Likewise.
10305 * tui/tuiStack.c: Likewise.
10306 * tui/tuiWin.c: Likewise.
10308 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10310 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10311 to include space for pseudoregs as well. Update loops accordingly.
10312 (sh_fp_frame_init_saved_regs): Ditto.
10313 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10315 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10317 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10318 Add Richard Earnshaw to Arm maintainers.
10320 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10322 * defs.h (warning_begin): Delete declaration.
10324 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10327 2002-02-07 Michael Snyder <msnyder@redhat.com>
10329 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10330 Logic bug, remove misplaced else.
10332 2002-02-07 Klee Dienes <klee@apple.com>
10334 * fork-inferior.c (fork_inferior): Add '!' to the list of
10335 characters that need to be quoted when building a string for the
10336 shell. Quote '!' specifically with a backslash, since CSH chokes
10337 when trying to evaluate "str!str".
10339 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10341 * rdi-share/host.h: Only provide a typedef for bool if it is not
10344 2002-02-04 Michael Snyder <msnyder@redhat.com>
10346 * breakpoint.h (enum bptype): Add new overlay event bp type.
10347 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10349 * breakpoint.c (create_internal_breakpoint): New function.
10350 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10351 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10352 (create_thread_event_breakpoint): Ditto.
10353 (create_solib_event_breakpoint): Ditto.
10354 (create_overlay_event_breakpoint): New function.
10355 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10356 (update_breakpoints_after_exec): Delete and re-initialize
10357 overlay event breakpoints after an exec. Add FIXME comment
10358 about longjmp breakpoint.
10359 (print_it_typical): Ignore overlay event breakpoints.
10360 (print_one_breakpoint): Ditto.
10362 (bpstat_what): Do not stop for overlay event breakpoints.
10363 (delete_breakpoint): Don't delete overlay event breakpoints.
10364 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10365 (breakpoint_re_set): Re-create overlay event breakpoint.
10367 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10368 (overlay_manual_command): Disable overlay breakpoints.
10369 (overlay_off_command): Disable overlay breakpoints.
10371 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10373 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10374 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10375 to here from config/tm-arm.h.
10376 (coff_sym_is_thumb): Make static.
10377 (arm_elf_make_msymbol_special): New function.
10378 (arm_coff_make_msymbol_special): New function.
10379 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10380 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10381 (coff_sym_is_thumb): Delete declaration.
10382 (arm_elf_make_msymbol_special): Declare.
10383 (arm_coff_make_msymbol_special): Declare.
10384 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10385 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10387 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10389 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10391 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10393 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10394 * gdbarch.c gdbarch.h: Regenerate.
10395 * arch-utils.c (default_print_float_info): New function.
10396 * arch-utils.h (default_print_float_info): Prototype it.
10397 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10398 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10399 (PRINT_FLOAT_INFO): Document it.
10401 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10402 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10403 (PRINT_FLOAT_INFO): Define.
10405 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10407 * win32-nat.c (_initialize_check_for_gdb_ini):
10408 Add typecast to sprintf argument to suppress a warning.
10410 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10412 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10413 to allow easier handling of pass state.
10414 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10415 that gives exception name and address.
10416 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10417 and set last_sig value to ourstatus->value.sig. Some missing
10419 (child_continue): Correctly report continue_status.
10420 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10421 TARGET_SIGNAL_0 (new default value).
10422 (child_resume): consider sig argument passed to decide if
10423 the exception should be passed to debuggee or not.
10425 2002-02-05 Michael Snyder <msnyder@redhat.com>
10427 * regcache.c (fetch_register): Call target_fetch_register
10428 only if we don't call FETCH_PSEUDO_REGISTER.
10429 (store_register): Call target_store_register only if we
10430 don't call STORE_PSEUDO_REGISTER.
10432 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10434 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10435 ELF_MAKE_MSYMBOL_SPECIAL.
10436 * gdbarch.c, gdbarch.h: Regenerate.
10437 * arch-utils.c (default_make_msymbol_special): New function.
10438 * arch-utils.h (default_make_msymbol_special): Export.
10439 * elfread.c (elf_symtab_read): Compile use of
10440 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10442 * coffread.c (coff_symtab_read): Ditto, for
10443 COFF_MAKE_MSYMBOL_SPECIAL.
10445 2002-02-05 Jim Blandy <jimb@redhat.com>
10447 * solib-svr4.c (svr4_truncate_ptr): New function.
10448 (svr4_relocate_section_addresses): Do the address arithmetic with
10449 the appropriate truncation for target addresses, even when
10450 CORE_ADDR is larger than a target address.
10452 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10454 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10459 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10462 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10464 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10466 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10468 * gdbserver/linux-low.c: Remove unused include files.
10470 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10472 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10473 (read_inferior_memory): Use it.
10474 (write_inferior_memory): Likewise.
10476 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10478 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10479 grubbing through sys_errlist.
10481 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10483 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10485 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10486 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10488 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10490 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10491 (do_sfunc, set_cmd_sfunc): New functions.
10493 * command.h (struct cmd_list_element): Add field func.
10494 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10495 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10496 * cli/cli-decode.h: Ditto.
10498 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10499 (help_all, help_cmd_list): Ditto.
10500 (find_cmd, complete_on_cmdlist): Ditto.
10501 * top.c (execute_command): Ditto.
10503 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10506 * infcmd.c (notice_args_read): Fix function signature.
10508 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10509 * cli/cli-decode.c (add_set_cmd): Ditto.
10510 * utils.c (initialize_utils): Ditto.
10511 * maint.c (_initialize_maint_cmds): Ditto.
10512 * infrun.c (_initialize_infrun): Ditto.
10513 * demangle.c (_initialize_demangler): Ditto.
10514 * remote.c (add_packet_config_cmd): Ditto.
10515 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10516 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10517 * proc-api.c (_initialize_proc_api): Ditto.
10518 * kod.c (_initialize_kod): Ditto.
10519 * valprint.c (_initialize_valprint): Ditto.
10520 * top.c (init_main): Ditto.
10521 * infcmd.c (_initialize_infcmd): Ditto.
10522 * corefile.c (_initialize_core): Ditto.
10523 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10524 * arch-utils.c (initialize_current_architecture): Ditto.
10525 (_initialize_gdbarch_utils): Ditto.
10526 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10528 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10529 * wince.c (_initialize_inftarg): Ditto.
10530 * symfile.c (_initialize_symfile): Ditto.
10531 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10532 * language.c (_initialize_language): Ditto.
10533 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10535 2002-02-04 Michael Snyder <msnyder@redhat.com>
10537 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10539 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10541 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10542 Add rules for building the register data files.
10544 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10546 * regformats/regdat.sh: Add braces to the definition of
10547 expedite_regs_${arch}.
10549 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10551 * regformats/regdef.h (struct reg): Add comment describing the
10552 requirements for offset and size fields.
10554 2002-02-04 Andreas Schwab <schwab@suse.de>
10556 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10557 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10559 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10561 * gdbarch.sh (copyright): Update years in generated header.
10562 (SMASH_TEXT_ADDRESS): Add rule.
10563 * gdbarch.h, gdbarch.c: Re-generate.
10564 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10565 * dbxread.c: Likewise.
10566 * dwarfread.c: Likewise.
10567 * elfread.c: Likewise.
10568 * somread.c: Likewise.
10570 * arm-tdep.c (arm_smash_text_address): New function.
10571 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10573 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10575 Add support for hardware watchpoints on win32 native.
10576 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10577 CONTEXT_DEBUG_REGISTERS.
10578 (dr variable): New variable. Static array containing a local copy
10579 of debug registers.
10580 (debug_registers_changed): New variable. Reflects when debug registers
10581 are changed and need to be written to inferior.
10582 (debug_registers_used): New variable. Reflects when any debug register
10583 was set, used when new threads are created.
10584 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10586 (thread_rec): Set dr array if id is the thread of current_event .
10587 (child_continue, child_resume): Change the debug registers for all
10588 threads if debug_registers_changed.
10589 (child_add_thread): Change the debug registers if debug_registers_used.
10590 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10591 Link nm.h to new nm-cygwin.h file.
10592 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10593 of hardware registers.
10595 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10597 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10598 Restore behavour broken by 2002-01-20 Andrew Cagney
10599 <ac131313@redhat.com> IEEE_FLOAT removal.
10601 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10603 * c-valprint.c (c_val_print): Pass a proper valaddr to
10604 cp_print_class_method.
10605 * valops.c (search_struct_method): If there is only one method
10606 and args is NULL, return that method.
10608 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10610 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10611 accessing tag_name directly.
10613 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10615 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10616 of accessing tag_name directly.
10618 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10621 * gdbtypes.c (replace_type): New function.
10622 * gdbtypes.h (replace_type): Add prototype.
10623 * stabsread.c (read_type): Use replace_type.
10625 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10627 * Makefile.in (memattr.o): Add missing dependencies rule.
10629 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10631 * breakpoint.c (break_at_finish_command): Really export.
10632 (break_at_finish_at_depth_command): Ditto.
10633 (tbreak_at_finish_command): Ditto.
10634 * hppa-tdep.c: Include completer.h.
10635 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10636 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10638 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10640 * utils.c (do_write): New function.
10641 (error_stream): Rewrite combining the code from error_begin and
10643 (verror): Rewrite using error_stream.
10644 (error_begin): Delete function.
10646 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10648 * utils.c (error_begin): Make static.
10649 * defs.h (error_begin): Delete declaration.
10651 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10652 (decode_line_1): Use cplusplus_error instead of error_begin,
10653 cplusplus_hint and return_to_top_level.
10654 * coffread.c (coff_symfile_read): Use error instead of error_begin
10655 and return_to_top_level.
10656 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10658 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10660 * language.h (type_error, range_error): Make string parameter
10662 * language.c (warning_pre_print): Delete extern declaration.
10663 * dwarfread.c (warning_pre_print): Ditto.
10664 * language.c (type_error, range_error): Rewrite to use verror and
10665 vwarning instead of warning_begin.
10667 2002-02-01 Michael Snyder <msnyder@redhat.com>
10669 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10670 (set_ignore_count): Move misplaced comment back where it belongs.
10672 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10674 * command.h (NO_FUNCTION): Delete macro.
10675 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10676 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10677 * tracepoint.c (_initialize_tracepoint): Ditto.
10678 * cli/cli-decode.c (add_set_cmd): Ditto.
10679 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10681 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10683 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10684 Update ``this'' pointer when calling virtual functions.
10686 2002-02-01 Michael Snyder <msnyder@redhat.com>
10688 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10689 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10691 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10693 * regformats/reg-arm.dat: New file.
10694 * regformats/reg-i386.dat: New file.
10695 * regformats/reg-ia64.dat: New file.
10696 * regformats/reg-m68k.dat: New file.
10697 * regformats/reg-mips.dat: New file.
10698 * regformats/reg-ppc.dat: New file.
10699 * regformats/reg-sh.dat: New file.
10700 * regformats/regdef.h: New file.
10701 * regformats/regdat.sh: New file.
10703 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10705 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10706 (arm_frame_args_address, arm_frame_locals_address): New functions.
10707 (arm_frame_num_args): New function.
10708 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10709 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10710 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10712 2002-01-31 Michael Snyder <msnyder@redhat.com>
10714 * breakpoint.c (break_at_finish_command): Export.
10715 (break_at_finish_at_depth_command): Export.
10716 (tbreak_at_finish_command): Export.
10717 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10718 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10719 "txbreak" commands, which are HPPA specific.
10721 * printcmd.c (disassemble_command): Remove an ancient
10722 artifact of an old merge.
10724 * symfile.h (enum overlay_debugging_state):
10725 Define enum constant values for overlay mode.
10726 * symfile.c (overlay_debugging): Use enums instead of literals.
10727 (overlay_is_mapped, overlay_auto_command,
10728 overlay_manual_command): Ditto.
10730 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10731 breakpoint_here_p, breakpoint_inserted_here_p,
10732 breakpoint_thread_match, bpstat_stop_status,
10733 describe_other_breakpoints, check_duplicates, clear_command):
10734 Coding standard fixes.
10736 * target.c (target_xfer_memory): Add spaces, coding standard.
10737 (do_xfer_memory): Add missing line to trust-readonly
10738 code: check bfd SEC_READONLY flag for section.
10740 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10742 * PROBLEMS: Fix typo, 5.1->5.1.1.
10744 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10746 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10747 data symbols, since we search based on textlow and texthigh.
10748 (find_pc_sect_symtab): Likewise.
10750 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10752 * defs.h (vwarning): Declare.
10753 * utils.c (vwarning): New function.
10754 (warning): Call vwarning.
10755 (warning_begin): Delete function.
10757 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10758 the warning message.
10759 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10762 2002-01-30 Michael Snyder <msnyder@redhat.com>
10764 * NEWS: Mention "set trust-readonly-sections" command.
10765 Mention generate-core-file command.
10767 2002-01-15 Michael Snyder <msnyder@redhat.com>
10769 * target.c: New command, "set trust-readonly-sections on".
10770 (do_xfer_memory): Honor the suggestion to trust readonly sections
10771 by reading them from the object file instead of from the target.
10772 (initialize_targets): Register command "set trust-readonly-sections".
10774 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10776 * parse.c (target_map_name_to_register): Simplify, search regs and
10777 pseudo-regs using a single loop.
10779 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10781 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10783 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10785 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10786 * config/i386/i386v42mp.mh: Add i387-nat.o .
10787 * i386v4-nat.c: Include i387-nat.h.
10788 (supply_fpregset): Use i387_supply_fsave.
10789 (fill_fpregset): Use i387_fill_fsave.
10791 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10793 * arm-tdep.c (arm_call_dummy_words): Define.
10794 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10795 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10796 (CALL_DUMMY_WORDS): Define.
10797 (arm_call_dummy_words): Declare.
10798 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10799 (arm_linux_call_dummy_words): Declare.
10801 2002-01-30 Andreas Schwab <schwab@suse.de>
10803 * m68klinux-nat.c: Fix last change to use regcache_collect
10804 instead of referencing registers[] directly.
10806 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10808 * parse.c (target_map_name_to_register): Delete code wrapped in
10809 #ifdef REGISTER_NAME_ALIAS_HOOK.
10811 2002-01-28 Michael Snyder <msnyder@redhat.com>
10813 * regcache.c (legacy_read_register_gen): Need to be able to
10814 read pseudo-register as well as real register.
10815 (legacy_write_register_gen): Ditto.
10817 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10819 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10820 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10821 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10822 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10823 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10824 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10825 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10826 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10827 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10828 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10829 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10830 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10831 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10832 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10833 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10834 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10835 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10836 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10837 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10838 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10840 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10842 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10843 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10844 (initialize_current_architecture): Update target_byte_order using
10845 information from BFD.
10846 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10847 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10849 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10851 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10852 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10854 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10855 #ifdef INVALID_FLOAT.
10856 * infcmd.c (do_registers_info): Ditto.
10857 * values.c (unpack_double): Ditto. Add comment.
10859 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10860 already commented out.
10862 2002-01-26 Andreas Schwab <schwab@suse.de>
10864 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10865 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10866 registers and add support for PTRACE_GETREGS.
10868 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10870 GDB 5.1.1 released from 5.1 branch.
10871 * NEWS: Add 5.1.1 news.
10872 * README: Sync with 5.1 branch.
10874 2002-01-23 Fred Fish <fnf@redhat.com>
10876 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10877 stabstring on initial malloc. Reallocing will copy it for us,
10880 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10882 * Makefile.in (hpread_h): Delete.
10883 (HFILES_NO_SRCDIR): Remove hpread.h.
10884 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10885 (hpread.o): Update dependencies.
10886 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10888 * hp-psymtab-read.c: Remove file.
10889 * hp-symtab-read.c: Remove file.
10890 * hpread.h: Remove file.
10892 * hpread.c: Merge all contents of hp-psymtab-read.c,
10893 hp-symtab-read.c and hpread.h into this file, as it was prior to
10896 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10897 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10898 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10899 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10901 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10903 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10904 fill_gregset): Call gdbarch_tdep() just once, assign result to
10905 variable and use that, instead of calling the function several
10908 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10910 * configure.host: Accept sparcv9 as alias for sparc64.
10911 * configure.tgt: Likewise.
10913 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10915 * solib-aix5.c (build_so_list_from_mapfile)
10916 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10917 arguments is not reversed.
10918 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10919 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10921 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10923 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10924 modified version of obsolete sh_fetch_pseudo_register.
10925 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10926 (sh4_register_read): New function.
10927 (sh_pseudo_register_write): New function. Renamed and modified
10928 version of obsolete sh_store_pseudo_register.
10929 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10930 (sh4_register_write): New function.
10931 (sh_gdbarch_init): Remove setting of gdbarch function
10932 fetch_pseudo_register and store_pseudo_register. Remove setting of
10933 register_convert_to_raw, register_convert_to_virtual,
10934 register_convertible.
10935 (sh_sh4_register_convertible): Delete. No longer needed. All is
10936 taken care by architecture specific functions
10937 register_read/register_write.
10938 (sh_sh4_register_convert_to_virtual): Make static.
10939 (sh_sh4_register_convert_to_raw): Ditto.
10941 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10943 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10944 (floatformat_is_nan, floatformat_mantissa): Ditto.
10946 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10947 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10948 builtin_type_ieee_double_little,
10949 builtin_type_ieee_double_littlebyte_bigword,
10950 builtin_type_m68881_ext, builtin_type_i960_ext,
10951 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10952 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10953 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10954 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10956 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10958 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10959 parameter. Set frameless flag if it exists and depended of
10960 whether the scanned function is frameless or not.
10961 (xstormy16_skip_prologue): If function is frameless, return
10962 result of xstormy16_scan_prologue().
10963 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10966 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10968 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10969 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10970 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10971 sh_sh4_register_byte, sh_sh4_register_raw_size,
10972 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10973 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10974 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10975 sh_store_pseudo_register, sh_do_pseudo_register): Call
10976 gdbarch_tdep() just once, assign result to variable and use that,
10977 instead of calling the function several times.
10979 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10981 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10982 macros instead of LAST_FPU_CTRL_REGNUM.
10983 (store_register): Likewise.
10985 2002-01-21 Jim Blandy <jimb@redhat.com>
10987 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10988 is up-to-date before running the program, not just when a program
10991 2002-01-21 Fred Fish <fnf@redhat.com>
10993 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10994 when we have found all instructions we are looking for.
10996 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10998 * arm-tdep.c (arm_register_name): New function.
10999 (arm_registers_names): Make static.
11000 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11001 (arm_register_name): Declare.
11002 (REGISTER_NAME): Use it.
11004 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11005 Kevin Buettner <kevinb@redhat.com>
11007 Convert arm targets to new FRAME interface.
11008 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11009 (arm_frame_find_save_regs): Delete.
11010 (arm_frame_init_saved_regs): New.
11011 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11012 Allocate extra_info as required. Convert all uses of fsr.regs
11013 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11015 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11016 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11017 (check_prologue_cache, save_prologue_cache): Likewise.
11018 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11019 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11020 (FRAME_FIND_SAVED_REGS): Delete.
11021 (arm_frame_find_saved_regs): Delete prototype.
11022 (arm_frame_init_saved_regs): New prototype.
11023 (FRAME_INIT_SAVED_REGS): Define.
11025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11027 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11029 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11031 From Jeff Law <law@redhat.com>:
11032 * infttrace.c: Include <sys/pstat.h>.
11033 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11034 exec file if the ttrace equivalent fails.
11036 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11038 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11039 (closeLogFile): Ditto.
11041 2002-01-20 Michael Chastain <mec@shout.net>
11043 * top.c (print_gdb_version): Bump copyright year to 2002.
11045 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11047 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11048 Zannoni and Eli Zaretskii.
11050 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11052 * buildsym.c: Update copyright years.
11053 * c-typeprint.c: Likewise.
11054 * dwarf2read.c: Likewise.
11055 * f-typeprint.c: Likewise.
11056 * gdbtypes.c: Likewise.
11057 * gdbtypes.h: Likewise.
11058 * hp-symtab-read.c: Likewise.
11059 * hpread.c: Likewise.
11060 * mdebugread.c: Likewise.
11061 * p-typeprint.c: Likewise.
11063 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11065 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11066 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11067 byte-order selectable.
11068 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11069 * arch-utils.c: Ditto.
11070 (set_endian): Ditto.
11071 (set_endian_from_file): Ditto.
11072 * gdbserver/low-sim.c (create_inferior): Ditto.
11073 * gdbarch.sh: Ditto.
11074 * gdbarch.h: Re-generate.
11075 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11076 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11077 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11078 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11079 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11080 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11081 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11082 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11084 * config/mips/tm-wince.h: Remove #undef of macro
11085 TARGET_BYTE_ORDER_SELECTABLE.
11086 * config/sh/tm-wince.h: Ditto.
11088 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11090 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11091 member function fields. Add accessor macro
11092 TYPE_FN_FIELD_ARTIFICIAL.
11093 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11094 * c-typeprint.c (c_type_print_base): Skip artificial member
11097 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11099 * f-typeprint.c: Delete unused function f_type_print_args.
11100 * p-typeprint.c: Delete unused function pascal_type_print_args.
11102 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11104 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11105 comment. Add ``artificial'' to ``union field_location''.
11107 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11109 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11110 * mdebugread.c (parse_symbol): Likewise.
11111 * stabsread.c (define_symbol): Likewise.
11112 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11113 initializing TYPE_FIELD_BITPOS to n (obsolete).
11114 (hpread_doc_function_type): Likewise.
11115 * hpread.c (hpread_function_type): Likewise.
11117 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11119 * configure.in (host_makefile_frag): Only require a host makefile
11120 fragment when a native build.
11121 * configure: Re-generate.
11123 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11125 * doublest.h (floatformat_from_type): Declare.
11126 * doublest.c (floatformat_from_type): New function.
11127 (convert_typed_floating): Use.
11129 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11130 call to function floatformat_from_type.
11132 * gdbarch.sh (IEEE_FLOAT): Delete.
11133 * gdbarch.h, gdbarch.c: Re-generate.
11134 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11135 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11136 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11137 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11138 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11139 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11140 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11141 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11142 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11143 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11144 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11145 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11147 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11148 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11149 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11150 * sh-tdep.c (sh_gdbarch_init): Ditto.
11151 * mips-tdep.c (mips_gdbarch_init): Ditto.
11152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11153 * cris-tdep.c (cris_gdbarch_init): Ditto.
11155 2002-01-20 Jiri Smid <smid@suse.cz>
11157 * configure.host, configure.tgt: Support x86-64.
11158 * NEWS: Note new target x86-64.
11160 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11161 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11162 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11163 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11164 x86-64-linux-nat.o): Fix dependencies.
11166 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11168 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11169 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11170 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11171 * config/sparc/xm-sun4os4.h: Delete file.
11172 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11174 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11176 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11177 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11178 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11179 * config/i386/i386lynx.mh (XM_FILE): Delete.
11180 * config/rs6000/xm-rs6000ly.h: Delete file.
11181 * config/sparc/xm-sparclynx.h: Delete file.
11182 * config/m68k/xm-m68klynx.h: Delete file.
11183 * config/i386/xm-i386lynx.h: Delete file.
11184 * config/xm-lynx.h: Delete file.
11185 * config/djgpp/fnchange.lst: Update.
11187 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11189 * alpha-tdep.c (alpha_register_byte): New function.
11190 (alpha_register_raw_size): Ditto.
11191 (alpha_register_virtual_size): Ditto.
11192 (alpha_skip_prologue_internal): Renamed from
11193 alpha_skip_prologue.
11194 (alpha_skip_prologue): New version that calls
11195 alpha_skip_prologue_internal.
11196 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11197 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11198 second argument from alpha_skip_prologue.
11199 (REGISTER_BYTE): Use alpha_register_byte.
11200 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11201 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11202 (FRAMELESS_FUNCTION_INVOCATION): Use
11203 generic_frameless_function_invocation_not.
11204 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11205 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11207 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11209 * config/mips/xm-news-mips.h: Delete file.
11210 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11212 * config/m88k/xm-m88k.h: Delete file.
11213 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11214 * config/m88k/xm-delta88v4.h: Ditto.
11215 * config/m88k/xm-delta88.h: Ditto.
11217 * config/alpha/xm-fbsd.h: Delete file.
11218 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11220 * config/sparc/xm-sparc.h: Delete file.
11221 * Makefile.in (xm-sun4os4.h): Delete dependency.
11222 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11223 * config/sparc/xm-sun4os4.h: Ditto.
11224 * config/sparc/xm-linux.h: Ditto.
11226 * config/i386/xm-windows.h: Delete file.
11228 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11230 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11231 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11233 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11235 * alpha-tdep.c (alpha_call_dummy_words): New.
11236 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11237 (CALL_DUMMY_P): Define.
11238 (CALL_DUMMY_WORDS): Define.
11239 (SIZEOF_CALL_DUMMY_WORDS): Define.
11241 2002-01-19 Per Bothner <per@bothner.com>
11243 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11244 isn't NULL, which can happen with some gcj-3.x-produced code.
11246 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11248 * alpha-tdep.c (alpha_register_virtual_type): New function.
11249 (alpha_init_frame_pc_first): Ditto.
11250 (alpha_fix_call_dummy): Ditto.
11251 (alpha_store_struct_return): Ditto.
11252 (alpha_extract_struct_value_address): Ditto.
11253 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11254 alpha_register_virtual_type.
11255 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11256 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11257 alpha_extract_struct_value_address.
11258 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11259 (INIT_FRAME_PC): Use init_frame_pc_noop.
11260 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11262 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11264 * i386gnu-nat.c: Include "i386-tdep.h".
11265 (fetch_fpregs): Simplify code dealing with uninitialized floating
11266 point states such that it doesn't require FP7_REGNUM.
11268 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11270 * alpha-tdep.c (frame_extra_info): New.
11271 (alpha_find_saved_regs): Make static. Use
11273 (alpha_frame_init_saved_regs): New function.
11274 (alpha_frame_saved_pc): Use frame->extra_info.
11275 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11276 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11277 (init_extra_frame_info): Rename to...
11278 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11279 (alpha_print_extra_frame_info): New function.
11280 (alpha_frame_locals_address): Ditto.
11281 (alpha_frame_args_address): Ditto.
11282 (alpha_pop_frame): Use frame->extra_info.
11283 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11284 alpha_frame_args_address.
11285 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11286 (alpha_find_saved_regs): Remove prototype.
11287 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11288 (EXTRA_FRAME_INFO): Remove.
11289 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11290 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11292 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11294 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11295 (alpha_cannot_fetch_register): Ditto.
11296 (alpha_cannot_store_register): Ditto.
11297 (alpha_register_convertible): Ditto.
11298 (alpha_use_struct_convention): Ditto.
11299 * config/alpha/tm-alpha.h: Update copyright years.
11300 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11301 (INNER_THAN): Use core_addr_lessthan.
11302 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11303 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11304 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11305 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11306 (FRAME_CHAIN): Remove unnecessary cast.
11308 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11310 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11313 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11315 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11316 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11317 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11318 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11319 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11320 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11321 * x86-64-linux-nat.c: Ditto.
11323 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11325 * alpha-tdep.c (alpha_register_name): New function.
11326 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11327 (REGISTER_NAME): Define.
11329 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11331 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11333 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11335 * alpha-tdep.c: Update copyright years.
11336 (alpha_next_pc): New function.
11337 (alpha_software_single_step): Ditto.
11338 * config/alpha/tm-alpha.h: Add prototype for
11339 alpha_software_single_step.
11341 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11343 * alphabsd-nat.c: Update copyright years.
11344 (fill_gregset): Use regcache_collect.
11345 (fill_fpregset): Likewise.
11346 (fetch_inferior_registers): Only fetch integer registers
11347 if requested to do so.
11348 (store_inferior_registers): Only store integer registers
11349 if requested to do so.
11351 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11353 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11354 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11355 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11356 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11357 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11358 * config/arm/linux.mh (XDEPFILES): Delete.
11359 * config/arm/nbsd.mh (XDEPFILES): Delete.
11360 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11361 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11362 * config/i386/i386m3.mh (XDEPFILES): Delete.
11363 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11364 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11365 * config/i386/fbsd.mh (XDEPFILES): Delete.
11366 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11367 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11368 * config/i386/i386v4.mh (XDEPFILES): Delete.
11369 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11370 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11371 * config/i386/i386aix.mh (XDEPFILES): Delete.
11372 * config/i386/go32.mh (XDEPFILES): Delete.
11373 * config/i386/cygwin.mh (XDEPFILES): Delete.
11374 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11375 * config/i386/i386mach.mh (XDEPFILES): Delete.
11376 * config/i386/i386v32.mh (XDEPFILES): Delete.
11377 * config/i386/linux.mh (XDEPFILES): Delete.
11378 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11379 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11380 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11381 * config/i386/i386sco.mh (XDEPFILES): Delete.
11382 * config/i386/i386v.mh (XDEPFILES): Delete.
11383 * config/i386/nbsd.mh (XDEPFILES): Delete.
11384 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11385 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11386 * config/i386/symmetry.mh (XDEPFILES): Delete.
11387 * config/i386/obsd.mh (XDEPFILES): Delete.
11388 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11389 * config/ia64/linux.mh (XDEPFILES): Delete.
11390 * config/ia64/aix.mh (XDEPFILES): Delete.
11391 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11392 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11393 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11394 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11395 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11396 * config/m68k/linux.mh (XDEPFILES): Delete.
11397 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11398 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11399 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11400 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11401 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11402 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11403 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11404 * config/m88k/delta88.mh (XDEPFILES): Delete.
11405 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11406 * config/m88k/m88k.mh (XDEPFILES): Delete.
11407 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11408 * config/mips/linux.mh (XDEPFILES): Delete.
11409 * config/mips/irix6.mh (XDEPFILES): Delete.
11410 * config/mips/irix5.mh (XDEPFILES): Delete.
11411 * config/mips/irix4.mh (XDEPFILES): Delete.
11412 * config/mips/irix3.mh (XDEPFILES): Delete.
11413 * config/mips/decstation.mh (XDEPFILES): Delete.
11414 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11415 (NATDEPFILES): Move core-aout.o to here.
11416 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11417 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11418 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11419 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11420 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11421 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11422 * config/pa/hpux11.mh (XDEPFILES): Delete.
11423 * config/powerpc/aix.mh (XDEPFILES): Delete.
11424 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11425 * config/powerpc/linux.mh (XDEPFILES): Delete.
11426 * config/romp/rtbsd.mh: Rename XDEPFILES.
11427 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11428 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11429 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11430 * config/s390/s390.mh (XDEPFILES): Delete.
11431 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11432 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11433 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11434 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11435 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11436 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11437 * config/sparc/linux.mh (XDEPFILES): Delete.
11438 * config/vax/vaxult.mh (XDEPFILES): Delete.
11439 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11440 * Makefile.in (DEPFILES): Remove XDEPFILES.
11442 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11444 * utils.c (internal_verror): Fix comments, default is yes not no.
11445 Update queries to match. Default to quit and dump core.
11447 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11449 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11451 * defs.h, event-top.c, gdbcmd.h: Ditto.
11452 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11453 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11454 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11455 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11456 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11457 * mi/mi-main.c:Ditto.
11459 * stack.c, symfile.c: Update copyright.
11461 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11463 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11464 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11465 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11466 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11468 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11470 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11471 * gdbserver/low-lynx.c (myattach): Likewise.
11472 * gdbserver/low-nbsd.c (myattach): Likewise.
11473 * gdbserver/low-sim.c (myattach): Likewise.
11474 * gdbserver/low-sparc.c (myattach): Likewise.
11475 * gdbserver/low-sun3.c (myattach): Likewise.
11477 * gdbserver/low-linux.c (myattach): New function.
11479 * gdbserver/server.c (attach_inferior): New function.
11480 (main): Handle "--attach".
11482 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11484 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11487 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11489 * c-typeprint.c (is_type_conversion_operator): Add additional
11490 check for non-conversion operators.
11492 2002-01-15 Michael Snyder <msnyder@redhat.com>
11494 * linux-proc.c: Add "info proc" command, a la procfs.c.
11495 (read_mapping): New function, abstract and re-use code.
11496 (linux_find_memory_regions): Use new func read_mapping.
11497 (linux_info_proc_cmd): New function, implement "info proc".
11498 (_initialize_linux_proc): Add new command "info proc".
11500 2002-01-15 Michael Snyder <msnyder@redhat.com>
11502 * symfile.c (generic_load): Use bfd_map_over_sections method
11503 instead of manipulating bfd structure members directly.
11504 (add_section_size_callback): New function, bfd sections callback
11505 used by generic_load.
11506 (load_sections_callback): New function, bfd sections callback
11507 used by generic_load.
11509 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11511 [Based on work by Jim Blandy]
11512 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11513 (builtin_type_vec128): Export.
11514 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11516 (builtin_type_vec128): New builtin type for 128 bit vector
11518 (build_gdbtypes): Initialize builtin_type_v16qi and
11519 builtin_type_v8hi. Create the vec128 register builtin type
11521 (build_builtin_type_vec128): New function.
11522 (_initialize_gdbtypes): Register builtin_type_v16qi and
11523 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11524 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11525 AltiVec register to new builtin type.
11527 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11529 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11532 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11534 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11535 CLEAN_UP_REGISTER_VALUE.
11536 * regcache.c (supply_register): Update only call.
11538 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11540 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11541 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11542 a29k-*-vxworks* targets as obsolete.
11544 2002-01-14 Michael Snyder <msnyder@redhat.com>
11546 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11547 until we can resolve portability issues.
11548 * gregset.h: Remove references to fpxregs.
11549 * gcore.c (gcore_command): Initialize note_sec to NULL.
11551 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11553 * signals.c (target_signal_to_name): Rewrite. Only use
11554 signals[].name when in bounds and non-NULL.
11556 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11558 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11559 * signals.c (target_signal_to_name): Verify that SIG is within the
11560 bounds of the signals array.
11562 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11564 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11566 2002-01-13 Keith Seitz <keiths@redhat.com>
11568 * stack.c (print_frame_info_base): Print the frame's pc
11569 only if when print_frame_info_listing_hook is not defined.
11571 2002-01-13 Keith Seitz <keiths@redhat.com>
11573 * varobj.c (varobj_set_value): Make sure that there were no
11574 errors evaluating the object before attempting to set its
11576 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11577 so this offset adjustment is no longer necessary.
11578 (create_child): Don't set the error flag if the child is
11579 a CPLUS_FAKE_CHILD.
11580 (value_of_child): If value_fetch_lazy fails, return NULL
11581 so that callers will be notified that an error occurred.
11582 (c_value_of_variable): Delay check of variable's validity
11583 until later. We actually want all structs and unions to have
11585 Do not return "???" for variables which could not be evaluated.
11586 This error condition must be returned to the caller so that it
11587 can get the error condition from gdb.
11588 (cplus_name_of_child): Adjust index for vptr before figuring
11589 out the name of the child.
11590 (cplus_value_of_child): If a child's (real) parent is not valid,
11591 don't even bother trying to give a value for it. Just return
11592 an error. Change all instances in this function.
11593 (cplus_type_of_child): If our parent is one of the "fake"
11594 parents, we need to get at the type of the real parent, and
11595 derive the child's true type using this information.
11597 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11599 From 2002-01-09 John Marshall <johnm@falch.net>:
11600 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11601 sources.redhat.com, and tweak some related URLs which had
11602 suffered from linkrot.
11604 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11607 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11608 structures passed in registers.
11610 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11612 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11613 white space which prevented compilation. Reported by DSK
11614 <dsk@student.unsw.edu.au>.
11616 2002-01-11 Michael Snyder <msnyder@redhat.com>
11618 * symfile.c (build_section_addr_info_from_section_tab):
11619 Use bfd access method instead of manipulating bfd directly.
11620 (syms_from_objfile): Ditto.
11621 (simple_overlay_update_1): Ditto.
11622 (simple_overlay_update): Ditto.
11623 (generic_load): Ditto.
11624 (overlay_unmapped_address): FIXME comment, bfd access methods.
11625 (sections_overlap): FIXME comment, bfd access methods.
11626 (pc_in_mapped_range): FIXME comment, bfd access methods.
11627 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11628 (section_is_mapped): FIXME comment, bfd access methods.
11629 (section_is_overlay): FIXME comment, bfd access methods.
11631 * symfile.c (generic_load): Whitespace and long line cleanups.
11632 Remove duplicate variable, change several local variables to
11633 more appropriate data types.
11634 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11636 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11638 From Peter Schauer:
11639 * language.c (longest_local_hex_string_custom): Use phex_nz to
11640 convert NUM to a hex string.
11642 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11644 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11646 Update Copyright year.
11648 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11650 * language.c (longest_raw_hex_string): Delete unused function.
11652 2002-01-11 Petr Sorfa <petrs@caldera.com>
11654 * MAINTAINERS (write-after-approval): Add myself.
11655 * dwarf2read.c (read_tag_string_type): Handling of
11657 (read_tag_string_type): FORTRAN fix to prevent propagation of
11659 (set_cu_language): Handling of DW_LANG_Fortran95
11661 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11663 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11664 GETPID(inferior_ptid).
11665 (store_inferior_registers): Likewise.
11667 2002-01-10 Jason Merrill <jason@redhat.com>
11669 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11672 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11674 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11675 and bfd/elf32-sh-nbsd.c.
11677 2002-01-10 Michael Snyder <msnyder@redhat.com>
11679 * NEWS: Mention --pid and corefile/proc-id behavior change.
11681 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11682 * gcore.c: Include cli/cli-decode.h instead of command.h.
11684 * main.c (captured_main): Add new command line option "--pid".
11685 If the second command line argument (following the symbol-file)
11686 begins with a digit, try to attach to it before trying to open
11688 (print_gdb_help): Document the "--pid" argument.
11690 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11692 * completer.c (command_completer): New function.
11694 * completer.h <command_completer>: Add prototype.
11696 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11697 completer for the "help" command.
11699 2002-01-09 Jason Merrill <jason@redhat.com>
11701 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11703 2002-01-09 Michael Snyder <msnyder@redhat.com>
11705 * i386-linux-nat.c (fill_fpxregset): Make global.
11706 (store_fpxregset): Ditto.
11708 * gregset.h (gdb_fpxregset_t): Define.
11709 (supply_fpxregset): Prototype.
11710 (fill_fpxregset): Prototype.
11712 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11714 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11716 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11717 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11718 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11720 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11722 * MAINTAINERS: Update target maintainer rules so that any
11723 Maintainer can approve a tested patch for a maintenance-only
11726 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11728 * MAINTAINERS (write-after-approval): Add myself.
11730 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11733 2002-01-08 Michael Snyder <msnyder@redhat.com>
11735 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11736 real name of the executable, rather than the /proc name.
11738 2002-01-03 Michael Snyder <msnyder@redhat.com>
11740 Implement a "generate-core-file" command in gdb, save target state.
11741 * gcore.c: New file. Implement new command 'generate-core-file'.
11742 Save a corefile image of the current state of the inferior.
11743 * linux-proc.c: Add linux-specific code for saving corefiles.
11744 * target.h (struct target_ops): Add new target vectors for saving
11745 corefiles; to_find_memory_regions and to_make_corefile_notes.
11746 (target_find_memory_regions): New macro.
11747 (target_make_corefile_notes): New macro.
11748 * target.c (update_current_target): Inherit new target methods.
11749 (dummy_find_memory_regions): New place-holder method.
11750 (dummy_make_corefile_notes): New place-holder method.
11751 (init_dummy_target): Initialize new dummy target vectors.
11752 * exec.c (exec_set_find_memory_regions): New function.
11753 Allow the exec_ops vector for memory regions to be taken over.
11754 (exec_make_note_section): New function, target vector method.
11755 * defs.h (exec_set_find_memory_regions): Export prototype.
11756 * procfs.c (proc_find_memory_regions): New function, corefile method.
11757 (procfs_make_note_section): New function, corefile method.
11758 (init_procfs_ops): Set new target vector pointers.
11759 (find_memory_regions_callback): New function.
11760 (procfs_do_thread_registers): New function.
11761 (procfs_corefile_thread_callback): New function.
11762 * sol-thread.c (sol_find_memory_regions): New function.
11763 (sol_make_note_section): New function.
11764 (init_sol_thread_ops): Initialize new target vectors.
11765 * inftarg.c (inftarg_set_find_memory_regions): New function.
11766 Allow to_find_memory_regions vector to be taken over.
11767 (inftarg_set_make_corefile_notes): New function.
11768 Allow to_make_corefile_notes vector to be taken over.
11769 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11770 interface layer if not target_has_execution (may be a corefile).
11771 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11772 * config/sparc/sun4sol2.mh: Ditto.
11773 * config/alpha/alpha-linux.mh: Ditto.
11774 * config/arm/linux.mh: Ditto.
11775 * config/i386/x86-64linux.mh: Ditto.
11776 * config/ia64/linux.mh: Ditto.
11777 * config/m68k/linux.mh: Ditto.
11778 * config/mips/linux.mh: Ditto.
11779 * config/powerpc/linux.mh: Ditto.
11780 * config/sparc/linux.mh: Ditto.
11782 2002-01-07 Michael Snyder <msnyder@redhat.com>
11784 * arm-linux-nat.c: Remove references to regcache.c internal data
11785 (registers[] and register_valid[]).
11787 2002-01-07 Michael Snyder <msnyder@redhat.com>
11789 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11790 so that attaching to a pid will automatically read the process's
11791 symbol file and shlibs.
11792 * Makefile.in: Add rule for linux-proc.o.
11793 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11794 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11795 * config/arm/linux.mh: Ditto.
11796 * config/i386/linux.mh: Ditto.
11797 * config/i386/x86-64linux.mh: Ditto.
11798 * config/ia64/linux.mh: Ditto.
11799 * config/m68k/linux.mh: Ditto.
11800 * config/mips/linux.mh: Ditto.
11801 * config/powerpc/linux.mh: Ditto.
11802 * config/sparc/linux.mh: Ditto.
11804 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11806 * win32-nat.c: Add i386-tdep.h dependency.
11808 2002-01-07 Michael Snyder <msnyder@redhat.com>
11810 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11811 instead of bfd_get_arch_size. Don't bail out just because
11812 there's no exec_bfd.
11814 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11815 * p-valprint.c (pascal_object_print_value): Ditto.
11816 * somread.c (som_symtab_read): Ditto.
11817 * symfile.c (simple_free_overlay_region_table): Ditto.
11818 * valops.c (value_assign): Ditto.
11820 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11821 use tilde_expand and strerror for opening save-tracepoints file.
11823 * thread-db.c (thread_db_new_objfile): Indendation fix.
11825 * infptrace.c (GDB_MAX_ALLOCA): New define.
11826 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11827 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11828 can be overridden with whatever value is appropriate to the host).
11829 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11830 alloca to allocate potentially large buffer.
11831 * rs6000-nat.c (child_xfer_memory): Ditto.
11832 * symm-nat.c (child_xfer_memory): Ditto.
11833 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11835 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11837 From Nick Clifton <nickc@redhat.com>
11838 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11840 2002-01-07 Michael Snyder <msnyder@redhat.com>
11842 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11843 Don't use exec_bfd if it's NULL.
11845 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11847 * valops.c (value_arg_coerce): Fix formatting.
11849 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11851 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11852 * gnu-nat.c: Ditto.
11854 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11856 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11857 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11858 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11859 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11860 z8k-coff have not been multi-arched. Update z8k-coff build
11863 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11865 * MAINTAINERS: Mark a29k target as obsolete.
11866 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11867 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11869 * NEWS: Note that a29k targets are obsolete.
11870 * a29k-tdep.c: Mark as obsolete.
11871 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11872 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11873 a29k-*-vxworks* targets as obsolete.
11874 * remote-adapt.c: Obsolete.
11875 * remote-eb.c: Obsolete.
11876 * remote-mm.c: Obsolete.
11877 * remote-udi.c: Obsolete.
11878 * config/a29k/a29k-udi.mt: Obsolete.
11879 * config/a29k/a29k.mt: Obsolete.
11880 * config/a29k/tm-a29k.h: Obsolete.
11881 * config/a29k/tm-vx29k.h: Obsolete.
11882 * config/a29k/vx29k.mt: Obsolete.
11884 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11886 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11887 with BFD_ENDIAN_BIG.
11889 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11891 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11892 * configure, config.in: Re-generate.
11893 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11894 * defs.h: Do not include <endian.h>.
11896 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11898 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11899 * config.in: Regenerate.
11900 * configure.in: Update copyright years.
11901 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11902 * configure: Regenerate.
11903 * i386bsd-nat.c: Update copyright years.
11904 (fill_gregset): Use regcache_collect.
11905 (fetch_inferior_registers): Only fetch integer registers
11906 if requested to do so. Add support for XMM registers
11907 using PT_GETXMMREGS.
11908 (store_inferior_registers): Only store integer registers
11909 if requested to do so. Add support for XMM registers
11910 using PT_SETXMMREGS.
11911 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11912 (store_inferior_registers): Remove.
11913 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11914 (fetch_elfcore_registers): New function.
11915 (i386nbsd_elfcore_fns): New.
11916 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11917 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11919 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11920 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11921 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11922 * config/i386/tm-nbsd.h: Update copyright years.
11923 (HAVE_SSE_REGS): Define.
11924 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11925 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11926 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11927 (SIGCONTEXT_PC_OFFSET): Remove.
11928 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11930 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11932 * configure.tgt: Remove powerpc-*-macos* target.
11933 * config/m68k/xm-mpw.h: Delete file.
11934 * config/xm-mpw.h: Delete file.
11935 * ser-mac.c: Delete file.
11936 * mpw-make.sed: Delete file.
11937 * mpw-config.in: Delete file.
11938 * mac-xdep.c: Delete file.
11939 * mac-gdb.r: Delete file.
11940 * mac-defs.h: Delete file.
11941 * mac-nat.c: Delete file.
11942 * config/powerpc/macos.mh: Delete file.
11943 * config/powerpc/macos.mt: Delete file.
11944 * config/powerpc/nm-macos.h: Delete file.
11945 * config/powerpc/tm-macos.h: Delete file.
11946 * source.c (openp, open_source_file): Remove obsolete code.
11947 * top.c (gdb_readline): Ditto.
11948 * utils.c (query): Ditto.
11949 * event-top.c (display_gdb_prompt): Ditto.
11950 * Makefile.in (ser-mac.o): Delete obsolete target.
11953 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11955 * defs.h (BIG_ENDIAN): Delete macro definition.
11956 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11957 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11958 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11959 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11960 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11961 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11962 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11963 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11964 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11965 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11966 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11967 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11968 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11969 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11970 * gdbarch.c: Re-generate.
11972 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11974 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11977 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11979 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11981 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11983 * value.h (value_ptr): Delete typedef.
11985 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11987 * i386nbsd-nat.c: Update copyright years.
11988 Include i386-tdep.h.
11990 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11992 * stabsread.c: Update copyright years.
11994 From Debashis Mahata <debashis.mahata@wipro.com>:
11995 (read_struct_fields): Deal with Sun C compiler erroneous stab
11996 output for structs and unions.
11999 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12001 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12004 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12006 * cp-abi.c: Fix whitespace.
12007 (baseclass_offset): New wrapper function.
12008 * cp-abi.h (baseclass_offset): Add prototype.
12009 (struct cp_abi_ops): Add baseclass_offset pointer.
12011 * valops.c (vb_match): Move to...
12012 * gnu-v2-abi.c (vb_match): here.
12013 * valops.c (baseclass_offset): Move to...
12014 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12016 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12018 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12019 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12020 * hpacc-abi.c (init_hpacc_ops): Likewise.
12022 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12024 * valops.c (find_overload_match): Accept obj as a
12025 reference parameter. Update it before returning.
12026 * value.h (find_overload_match): Update prototype.
12027 * eval.c (evaluate_subexp_standard): Pass object to
12028 find_overload_match by reference.
12030 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12032 * valarith.c: Replace value_ptr with struct value pointer. Remove
12033 register attribute from value declarations.
12036 * scm-lang.c (scm_lookup_name): Ditto.
12038 2002-01-03 Michael Snyder <msnyder@redhat.com>
12040 Abstract the functionality of iterating over mapped memory
12041 regions into a general purpose iterator function.
12042 * procfs.c (iterate_over_mappings): New function, general purpose
12043 iterator for memory sections.
12044 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12045 (solib_mappings_callback): New function, callback for above.
12046 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12047 (info_mappings_callback): New function, callback for above.
12049 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12051 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12053 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12054 * i386-tdep.c: Include "elf-bfd.h".
12055 (process_note_abi_tag_sections): New function.
12056 (i386_gdbarch_init): Add code to recognize various OS/ABI
12059 * maint.c (_initialize_maint_cmds): Add missing \ in
12062 For older changes see ChangeLog-2001
12068 version-control: never