1 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3 * symtab.c (symbol_demangled_name): New function.
4 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
5 turning most of it into a function.
6 (symbol_demangled_name): Export.
8 2002-10-23 Michael Snyder <msnyder@redhat.com>
10 * valops.c (value_of_local): Restore quotes in error message.
12 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
14 * symtab.c (symbol_init_language_specific): New function.
15 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
16 turning most of it into a function.
17 (symbol_init_language_specific): Export.
19 2002-10-23 David Carlton <carlton@math.stanford.edu>
21 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
22 (dwarf_attr_name): Ditto.
23 (dwarf_type_encoding_name): Ditto.
24 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
25 (process_die): Handle DW_TAG_namespace,
26 DW_TAG_imported_declaration, DW_TAG_imported_module.
27 (read_namespace): New function.
29 2002-10-22 Joel Brobecker <brobecker@gnat.com>
31 * configure.in: Define NEW_PROC_API on Interix too.
32 * configure: Regenerate.
34 2002-10-21 Joel Brobecker <brobecker@gnat.com>
36 * configure: Regenerate using the proper version of autoconf.
38 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
40 * findvar.c (read_var_value): Temporarily disable TLS code, until
41 complete TLS support is added.
43 2002-10-21 Jim Blandy <jimb@redhat.com>
44 Elena Zannoni <ezannoni@redhat.com>
46 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
47 for thread local storage locations.
48 (struct symbol): Add objfile field.
49 (SYMBOL_OBJFILE): Define.
50 * dwarf2read.c (is_thread_local): New static variable.
51 (new_symbol): If variable is in thread local fill in address class
52 and objfile appropriately.
53 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
55 * printcmd.c (address_info): Print the information for thread
56 local storage variable.
57 * findvar.c (read_var_value): In case of thread local variable,
58 defer to the target vector code to compute address.
60 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
62 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
63 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
65 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
67 * symtab.h (address_class): Rename
68 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
69 * hpread.c (hpread_process_one_debug_symbol): Ditto.
70 * printcmd.c (address_info): Ditto.
71 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
73 2002-10-20 Mark Kettenis <kettenis@gnu.org>
75 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
76 DBREG_DRX macro to acces debug registers.
78 * Makefile.in (i386obsd-tdep.o): New target.
80 * solib-sunos.c: Include "bcache.h" and "regcache.h".
81 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
83 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
84 * config/i386/obsd.mt: New file.
85 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
86 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
87 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
88 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
89 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
90 * i386obsd-tdep.c: New file.
92 2002-10-19 Adam Fedor <fedor@gnu.org>
94 * objc-exp.y (name_not_typename): Fix invalid comment.
96 2002-10-20 Mark Kettenis <kettenis@gnu.org>
98 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
99 to allocate partial syms and macro byte caches.
101 2002-10-18 David Carlton <carlton@math.stanford.edu>
103 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
105 2002-10-18 Adam Fedor <fedor@gnu.org>
107 * stabsread.c (find_name_end): New function.
108 (define_symbol): Use it.
110 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
112 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
113 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
114 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
115 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
117 2002-10-17 David Carlton <carlton@math.stanford.edu>
119 * symfile.h: Add opaque declaration for struct obstack.
120 Declare obsavestring to take a const char *.
121 * symfile.c (obsavestring): Make first argument a const char *.
123 2002-10-16 Adam Fedor <fedor@gnu.org>
125 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
126 names when matching breakpoints in current file.
128 2002-10-16 Kevin Buettner <kevinb@redhat.com>
130 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
131 (read_tag_pointer_type): Add address class support.
132 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
133 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
135 * gdbarch.h, gdbarch.c: Regenerate.
136 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
137 (make_type_with_address_space, recursive_type_dump): Add address
139 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
140 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
141 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
143 2002-10-16 Klee Dienes <kdienes@apple.com>
145 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
146 to get the last character of a char[] buffer, not
147 name[sizeof(vptr_name)-1].
149 2002-10-14 Adam Fedor <fedor@gnu.org>
151 * symtab.h: New objc_specific struct.
152 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
153 (SYMBOL_DEMANGLED_NAME): Likewise.
155 2002-10-14 Adam Fedor <fedor@gnu.org>
157 * symfile.c (init_filename_language_table): Add ObjC file extension.
159 2002-10-14 Adam Fedor <fedor@gnu.org>
161 * utils.c (puts_filtered_tabular): New function.
162 (fprintf_symbol_filtered): Get ObjC demangled name.
163 * defs.h (puts_filtered_tabular): Declared.
165 2002-10-14 Kevin Buettner <kevinb@redhat.com>
167 * c-lang.h (c_type_print_varspec_prefix): Delete.
168 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
169 ``need_post_space'' parameter. Adjust all callers.
171 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
173 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
174 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
175 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
176 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
178 2002-10-13 Adam Fedor <fedor@gnu.org>
180 * source.c (print_source_lines): Update comments.
182 2002-10-13 Adam Fedor <fedor@gnu.org>
184 * valops.c (value_of_local): New function.
185 (value_of_this): Use it.
186 * value.h (value_of_local): Declared.
188 2002-10-13 Adam Fedor <fedor@gnu.org>
190 * parse.c: (length_of_subexp, prefixify_subexp): Handle
191 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
193 2002-10-12 Adam Fedor <fedor@gnu.org>
195 * language.c (binop_result_type): Add language_objc to case.
196 (integral_type): Likewise.
197 (character_type): Likewise.
198 (string_type): Likewise.
199 (boolean_type): Likewise.
200 (structured_type): Likewise.
201 (binop_type_check): Likewise.
203 2002-10-11 Adam Fedor <fedor@gnu.org>
205 * printcmd.c (address_info): Print 'self' for ObjC.
207 2002-10-11 Adam Fedor <fedor@gnu.org>
209 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
212 2002-10-11 Adam Fedor <fedor@gnu.org>
214 * language.h (CAST_IS_CONVERSION): Add language_objc.
216 2002-10-11 Adam Fedor <fedor@gnu.org>
218 * defs.h (enum language): Add language_objc.
220 2002-10-11 Klee Dienes <kdienes@apple.com>
222 * findvar.c (read_memory_typed_address): New function.
223 * gdbcore.h (read_memory_typed_address): Add prototype.
224 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
225 to read a value destined for a CORE_ADDR, not read_memory_integer.
226 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
227 (f77_get_dynamic_lowerbound): Ditto.
229 2002-10-11 Martin M. Hunt <hunt@redhat.com>
231 * utils.c (string_to_core_addr): After turning string into
232 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
233 which will do necessary sign-extension, etc.
235 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
237 * c-exp.y (THIS): Delete token and grammar rule.
238 (yylex): Don't return THIS.
239 * cp-valprint.c (vtbl_ptr_name_old): Delete.
240 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
241 * demangle.c (cplus_markers): Update comment. Put '$'
242 first. Remove CPLUS_MARKER.
243 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
244 * jv-exp.y (THIS): Delete token and grammar rule.
245 (yylex): Don't return THIS.
246 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
247 * objc-exp.y (THIS): Delete token and grammar rule.
248 (yylex): Don't return THIS.
249 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
250 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
251 (read_member_functions): Likewise for opname.
252 (read_tilde_fields): Use is_cplus_marker.
254 * defs.h (CPLUS_MARKER): Don't define.
255 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
256 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
257 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
258 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
259 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
261 * config/i386/tm-i386v4.h: Delete file.
262 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
263 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
264 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
265 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
266 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
267 * config/i386/i386sco5.mt (TM_FILE): Likewise.
268 * config/i386/i386v4.mt (TM_FILE): Likewise.
269 * config/i386/ncr3000.mt (TM_FILE): Likewise.
271 2002-10-10 Marko Mlinar <markom@opencores.org>
273 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
274 accidentially not commited 2002-10-09
275 * gdbarch.h, gdbarch.c: Re-generate.
277 2002-10-09 Marko Mlinar <markom@opencores.org>
279 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
280 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
281 * gdbarch.h, gdbarch.c: Re-generate.
283 2002-10-08 Petr Sorfa <petrs@caldera.com>
285 Revised and re-submitted by John Wolfe <jlw@caldera.com>
287 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
288 so we can work on more than one compilation unit at a time. This
289 helps prepare GDB to handle inter-CU die references.
290 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
291 the code to be defined before struct comp_unit_head.
292 (comp_unit_head): Added new members - offset, cu_head,
293 begin_die, next and dwarf2_abbrevs.
294 (dwarf2_abbrevs): Removed single static var; now member of
295 struct comp_unit_head.
296 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
298 (psymtab_to_symtab_1): Changed to work with the new
299 struct comp_unit_head.
300 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
301 constructs the dwarf2_abbrevs[] inside the cu_header.
302 (dwarf2_empty_abbrev_table): Now expects a ptr to a
303 dwarf2_abbrev table to clean up.
304 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
305 handling of dwarf2_abbrevs inside the cu_header.
306 (read_partial_die): Now supports the call to the new
307 dwarf2_lookup_abbrev.
308 (read_full_die): Now supports the call to the new
309 dwarf2_lookup_abbrev.
311 2002-10-06 Christopher Faylor <cgf@redhat.com>
313 * Makefile.in (install-gdbtk): Add missing continuation backslash to
314 insure that shell variables, such as "transformed_name" are propagated
315 to later shell statements in rule.
317 2002-10-06 Mark Kettenis <kettenis@gnu.org>
319 * config/i386/nm-i386sco.h: Add protection against
320 multiple-inclusion. Include "i386/nm-i386v.h".
321 (REGISTER_U_ADDR): Remove define.
322 (i386_register_u_addr): Remove prototype.
324 2002-10-04 Michael Snyder <msnyder@redhat.com>
326 * m32r-stub.c (handle_exception): Make sure exception is "trap"
327 before treating it as a single-step event.
329 2002-10-03 Adam Fedor <fedor@gnu.org>
331 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
332 (objc_demangle): Remove assignment in if statements, Replace
334 (add_msglist): Likewise.
335 (end_msglist): Likewise.
336 (complare_selectors): Likewise.
337 (selectors_info): Likewise.
338 (compare_classes): Likewise.
339 (classes_info): Likewise.
340 (print_object_command): Likewise.
341 (find_objc_msgcall_submethod): Replace PTR with void *.
342 * objc-lang.h: Remove check for __STDC__.
344 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
346 * ui-out.h (ui_out_field_fmt_int): New prototype.
347 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
348 of field width and alignment.
349 * stack.c (print_frame_info_base): When printing frame level, use
350 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
353 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
355 * MAINTAINERS: Add self to Write After Approval list.
357 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
359 * infcmd.c (interrupt_target_command_wrapper): Delete.
360 (interrupt_target_command): Make non static.
361 (nofp_registers_info): Make static.
362 * stack.c (return_command_wrapper): Delete.
363 (return_command): Make non static.
365 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
367 * event-top.c (gdb_setup_readline): New function. Code moved from
368 _initialize_event_loop().
369 (_initialize_event_loop): Call gdb_setup_readline().
371 2002-10-02 Andrew Cagney <ac131313@redhat.com>
373 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
374 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
375 * gdbarch.h, gdbarch.c: Re-generate.
377 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
380 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
382 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
383 of fill_in_vptr_fieldno.
385 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
387 * inferior.h (registers_info, stepi_command, nexti_command,
388 continue_command, interrupt_target_command): Export from infcmd.c.
389 * frame.h (args_info, selected_frame_level_changed_hook,
390 return_command): Export from stack.c.
391 * v850ice.c (stepi_command, nexti_command, continue_command): use
392 prototypes from inferior.h.
393 * tracepoint.c (registers_info, args_info, locals_info): Use
394 prototypes from frame.h and inferior.h.
395 * Makefile.in (mi-main.o): Add dependency on frame.h.
397 2002-10-02 Andrew Cagney <ac131313@redhat.com>
399 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
400 value in register 3 adjusted by ppc_gp0_regnum.
402 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
404 2002-10-02 Marko Mlinar <markom@opencores.org>
406 * MAINTAINERS: Add myself to the Write After Approval list.
408 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
410 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
411 of the section for the N64 ABI, fixed.
413 * config/mips/tm-irix6.h: Include solib.h.
415 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
417 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
420 2002-10-01 Andrew Cagney <ac131313@redhat.com>
422 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
423 and that "mi0" syntax has been removed.
425 2002-09-30 David Carlton <carlton@math.stanford.edu>
427 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
428 * ppc-sysv-tdep.c: #include "gdb_string.h".
429 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
432 2002-10-01 Andrew Cagney <ac131313@redhat.com>
434 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
435 "vrsave"'s register number.
437 2002-09-30 Andrew Cagney <ac131313@redhat.com>
439 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
440 use frame_unwind_signed_register to obtain the PC.
441 (mips_frame_chain): Handle a generic dummy frame.
442 (mips_init_extra_frame_info): When a generic dummy frame, don't
443 re-compute the frame base.
444 (mips_pop_frame): Handle generic dummy frames.
445 (mips_gdbarch_init): When generic dummy frames, set
446 use_generic_dummy_frames, push_dummy_frame to
447 generic_push_dummy_frame, pc_in_call_dummy to
448 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
449 generic_save_dummy_frame_tos.
451 2002-09-30 Andrew Cagney <ac131313@redhat.com>
453 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
454 against TOP when TOP was explictly set.
455 (generic_push_dummy_frame): Set TOP to zero.
457 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
459 * event-loop.c (start_event_loop): Rename variable 'result' to
460 'gdb_result', to avoid conflicts with upcoming intepreters changes.
462 2002-09-30 Keith Seitz <keiths@redhat.com>
464 * gdb-events.sh (selected_thread_changed): New event.
465 * gdb-events.c: Regenerated.
466 * gdb-events.h: Regenerated.
468 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
470 * MAINTAINERS: Add self to Write After Approval list.
472 2002-09-30 Fernando Nasser <fnasser@redhat.com>
474 * disasm.c: New file.
475 * disasm.h: New file.
476 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
477 (compare_lines): Ditto.
479 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
481 (do_assembly_only): Ditto.
482 (do_disassembly): Renamed to gdb_disassembly and moved to
483 disasm.c. Sdded uiout argument.
484 * Makefile.in: Add new files. Reorder SFILES list. Update
485 dependencies. Include libgdb.a later in the insight executable.
487 2002-09-29 Andrew Cagney <ac131313@redhat.com>
489 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
490 bfd/elf64-alpha-fbsd.c.
492 2002-09-29 Andrew Cagney <ac131313@redhat.com>
494 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
497 2002-09-29 Andrew Cagney <ac131313@redhat.com>
499 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
501 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
503 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
504 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
505 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
506 (S_msg_sig_post_reply): Ditto.
508 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
510 * sh-tdep.c (sh_use_struct_convention): Use definition according
512 (sh_push_arguments): Store in register with correct endianess.
513 (sh_default_store_return_value): Ditto.
514 (sh_gdbarch_init): Set sizeof long double to 8.
516 2002-09-27 Mark Kettenis <kettenis@gnu.org>
518 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
519 Fix some whitespace problems.
521 2002-09-27 David Carlton <carlton@math.stanford.edu>
523 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
524 (mcore-tdep.o): Ditto.
525 (ns32k-tdep.o): Ditto.
526 (ns32knbsd-tdep.o): Ditto.
529 * cris-tdep.c: #include "gdb_string.h"
530 * mcore-tdep.c: Ditto.
531 * ns32k-tdep.c: Ditto.
532 * ns32knbsd-tdep.c: Ditto.
536 2002-09-27 David Carlton <carlton@math.stanford.edu>
538 * config/djgpp/fnchange.lst: Add entries for
539 gdb/testsuite/gdb.c++/m-static files.
541 2002-09-27 Jim Wilson <wilson@redhat.com>
543 * MAINTAINERS: Add myself to the Write After Approval list.
545 2002-09-26 Martin M. Hunt <hunt@redhat.com>
547 * mips-tdep.c (find_proc_desc): Initialize startaddr.
550 2002-09-26 Andrew Cagney <ac131313@redhat.com>
552 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
555 2002-09-26 Andrew Cagney <ac131313@redhat.com>
557 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
558 (rs6000_struct_return_address): Delete variable.
559 (rs6000_store_struct_return): Update.
560 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
561 deprecated_extract_struct_value_address.
562 (rs6000_frame_align): New function.
563 (rs6000_gdbarch_init): Set frame_align.
565 2002-09-26 Andrew Cagney <ac131313@redhat.com>
567 From Grace Sainsbury <graces@redhat.com>:
568 * Makefile.in (gdbtk-main.o): New target.
571 (main.o): Update dependencies.
572 (gdb$(EXEEXT)): Add gdb.o.
573 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
574 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
575 (SUBDIR_GDBTK_CLEAN): Set.
576 (install-gdbtk): Install the insight binary.
577 (uninstall-gdbtk): New target.
578 (all-gdbtk, clean-gdbtk): New rule.
579 * top.c (use_windows): Default to zero.
580 * main.c: Include "main.h".
582 (struct captured_main_args): Delete.
583 (gdb_main): New function.
587 2002-09-25 Andrew Cagney <cagney@redhat.com>
589 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
590 (frame_map_regnum_to_name): New function.
591 (frame_map_name_to_regnum): New function.
592 * frame.h (frame_map_name_to_regnum): Declare.
593 (frame_map_regnum_to_name): Declare.
594 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
595 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
596 * parse.c: Do not include "builtin-regs.h".
597 (target_map_name_to_register): Delete function.
598 (write_dollar_variable): Use frame_map_name_to_regnum.
599 * parser-defs.h (target_map_name_to_register): Delete declaration.
600 * expprint.c: Include "frame.h".
601 (print_subexp): Use frame_map_regnum_to_name.
602 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
603 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
605 2002-09-25 Andrew Cagney <ac131313@redhat.com>
607 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
608 wasn't saved, and the next innermost frame is a dummy, return the
609 dummy frame's link register.
611 2002-09-24 Jim Blandy <jimb@redhat.com>
614 * main.c (captured_main): Add a `break' after the case for 'b'.
616 2002-09-24 Keith Seitz <keiths@redhat.com>
618 * varobj.c (c_type_of_child): Use get_target_type instead
621 2002-09-22 Fernando Nasser <fnasser@redhat.com>
623 * source.c (get_current_or_default_source_symtab_and_line): Remove
625 (set_default_source_symtab_and_line): New function. Attempts to
626 determine a source file to list lines from if one is not currently
628 (get_current_source_symtab_and_line): Initialize sal.pc and
630 (set_current_source_symtab_and_line): Mark argument as const.
631 * source.h: Update declarations and comments.
632 * linespec.c (decode_line_1): Replace call to removed routine above.
633 * stack.c (print_frame_info_base): Ditto.
634 * cli/cli-cmds.c (edit_command): Ditto.
635 (list_command): Ditto.
637 2002-09-22 Fernando Nasser <fnasser@redhat.com>
639 * source.c (get_current_or_default_source_symtab_and_line): Initialize
640 sal.pc and sal.end fields.
641 (get_current_or_default_source_symtab_and_line): Ditto.
642 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
643 so we do not cause a new source symtab to be searched for (reverting an
644 unintentional change from the 2002-09-20 patch).
645 * scm-lang.c (scm_unpac): Ditto.
647 2002-09-21 Andrew Cagney <cagney@redhat.com>
649 * complaints.c (symfile_explanations): Remove new-line from
650 ``isolated_message''.
651 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
652 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
654 2002-09-20 Nick Clifton <nickc@redhat.com>
656 * NEWS: Announce that V850EA ISA is no longer supported.
657 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
659 2002-09-20 David Carlton <carlton@math.stanford.edu>
661 * Makefile.in (c-lang.o): Correct dependencies.
662 (utils.o): Gather dependencies.
664 * c-lang.c: #include "gdb_string.h"
666 2002-09-20 Fernando Nasser <fnasser@redhat.com>
668 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
669 * cli/cli-cmds.c (list_command): New function. Implements the new
671 (_init_cli_cmds): Add new command definition.
672 * gdb.1: Document edit command.
673 * doc/gdb.texinfo: Document edit command.
675 2002-09-20 Fernando Nasser <fnasser@redhat.com>
677 * source.c: Make global variables current_source_symtab and
678 current_source_line static.
679 (list_command): Moved to cli/cli-cmds.c.
680 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
681 (get_first_line_listed): New accessor function.
682 (get_lines_to_list): New accessor function.
683 (get_current_source_symtab_and_line): New function. Retrieves the
684 position in the source code that we consider current.
685 (get_current_or_default_source_symtab_and_line): New function.
686 Like the above but attempts to determine a default position if one
687 is not currently defined.
688 (set_current_source_symtab_and_line): New function. Sets the source
689 code position considered current and returns the previously set one.
690 (clear_current_source_symtab_and_line): Reset stored information about
691 a current source line.
692 (_initialize_source): Remove registration for the "list" command and
694 * source.h: Add declarations for the new functions above.
695 * symtab.h: Remove declarations for the global variables mentioned
697 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
698 obtain current source line.
699 * linespec.c (decode_line_1): Ditto.
700 * macroscope.c (default_macro_scope): Ditto.
701 * scm-lang.c (scm_unpac): Ditto.
702 * stack.c (print_frame_info_base): Ditto.
703 * symfile.c (clear_symtab_users): Ditto.
704 * symtab.c (decode_line_spec): Ditto.
705 * cli/cli-cmds.c (list_command): Moved here from source.c.
706 (ambiguous_line_spec): Moved here from source.c.
707 (_init_cli_cmds): Add definition for "list" and its alias.
708 * Makefile.in: Update dependencies.
710 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
712 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
713 with what gcc thinks is correct.
715 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
717 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
718 multiple register push instruction.
720 2002-09-19 Jim Blandy <jimb@redhat.com>
722 Add support for distinct host and target character sets.
723 * charset.c, charset.h: New files.
724 * c-exp.y: #include "charset.h".
725 (yylex): Convert character and string literals to the target
726 character set, before returning them as the semantic value of the
728 * c-lang.c: #include "charset.h".
729 (c_emit_char): Use charset-specific methods to recognize
730 characters with backslash escape forms, to decide which characters
731 to print literally and which to print using numeric escape
732 sequences, and to convert target characters to host characters
734 * utils.c: #include "charset.h".
735 (no_control_char_error): New function.
736 (parse_escape): Use charset-specific methods to recognize
737 backslash escapes, parse `control character' notation, and convert
738 characters from the host character set to the target character set.
739 * configure.in: Set the default host character set.
740 Check where to find iconv, and what its argument types might be.
741 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
742 * Makefile.in (SFILES): List charset.c.
743 (COMMON_OBS): List charset.o.
744 (charset.o): New rule.
745 (charset_h): New header dependency variable.
746 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
747 (LIBICONV): New variable, set by configure.
748 (CLIBS): Include $(LIBICONV) here.
749 * aclocal.m4, config.in, configure: Regenerated.
751 2002-09-19 Joel Brobecker <brobecker@gnat.com>
753 * ada-exp.y: Add missing semicolons to end rules. Fixes a
756 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
758 * gdb_mbuild.sh: New file.
760 2002-09-19 Andrew Cagney <ac131313@redhat.com>
762 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
764 2002-09-18 Andrew Cagney <ac131313@redhat.com>
766 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
767 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
768 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
769 valops.c, value.h: Revert previous change.
771 2002-09-18 Michael Snyder <msnyder@redhat.com>
773 Preliminary support for Objective-C:
774 * defs.h (language_objc): New enum value.
775 (puts_filtered_tabular): Declaration only, exported from utils.c.
776 (skip_quoted): Delete, declared in completer.h.
777 * c-exp.y: Include completer.h.
780 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
781 New operator enum values.
782 * language.h (CAST_IS_CONVERSION): Test for language_objc.
783 * language.c (binop_result_type): Handle language_objc case.
784 (integral_type, character_type, string_type, boolean_type,
785 structured_type, binop_type_check): Ditto.
786 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
787 (struct objc_specific): Add to general_symbol_info.
788 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
789 (SYMBOL_DEMANGLED_NAME): Handle objc case.
790 * parser-defs.h (struct objc_class_str): New struct type.
791 (start_msglist, end_msglist, add_msglist): Declaration only,
792 exported from objc-lang.c.
793 * value.h (value_of_local, value_nsstring,
794 call_function_by_hand_expecting_type): Exported from valops.c.
795 * valops.c (find_function_addr): Export.
796 (call_function_by_hand_expecting_type): New function.
797 (value_of_local): New function.
798 * symfile.c (init_filename_language_table): Add ".m" extension
800 * utils.c (puts_filtered_tabular): New function.
801 (fprintf_symbol_filtered): Add objc demangling support (disabled).
802 (set/show demangle): Extend help-string to refer to ObjC.
803 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
804 * stabsread.c (symbol_reference_defined): Objective-C symbols
805 may contain colons: make allowances when scanning stabs strings
807 (objc_find_colon): New function.
808 * printcmd.c (address_info): If language == objc then print
809 "self" instead of "this".
810 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
811 OP_NSSTRING, and OP_SELF.
812 (prefixify_subexp): Ditto.
813 * source.c (print_source_lines): Mention objc in comment.
814 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
817 2002-09-18 Andrew Cagney <ac131313@redhat.com>
819 * complaints.h: Update copyright.
820 (struct complaints): Declare.
821 (struct complaint): Make `message' constant.
822 (internal_complaint): Declare.
823 (complaint): Declare.
824 (complaint_root): Delete declaration.
825 (symfile_complaints): Delete declaration.
826 (struct complaints): Add opaque declaration.
827 (clear_complaints): Add a complaints parameter.
828 * complaints.c: Update copyright.
829 (enum complaint_series): Define.
830 (complaint_root): Delete.
831 (struct complaints): Define.
832 (complaint_sentinel, symfile_complaint_book): New variables.
833 (symfile_explanations, symfile_complaints): New variables.
835 (get_complaints): New function.
836 (vcomplaint): New function.
837 (complaint): New function.
838 (internal_complaint): New function.
839 (complain): Call vcomplain with symfile_complaint.
840 (clear_complaints): Rewrite.
841 (_initialize_complaints): Use add_setshow_command.
842 * Makefile.in (complaints.o): Update dependencies.
843 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
844 to call to clear_complaints.
845 (new_symfile_objfile, reread_symbols): Ditto.
846 (oldsyms_complaint): Delete.
847 (empty_symtab_complaint, unknown_option_complaint): Delete.
848 (free_named_symtabs): Use complaint instead of complain.
850 2002-09-18 Michael Snyder <msnyder@redhat.com>
852 Contributed by Apple Computer, Inc. Merged with current sources
853 by Adam Fedor <fedor@doc.com> [cagney].
855 * objc-lang.c: First clean-up round: comments, indentation.
856 * objc-lang.h: Ditto.
857 * objc-lang.y: Ditto.
859 2002-09-18 Andrew Cagney <ac131313@redhat.com>
861 * maint.c (maintenance_internal_error): Print the parameter as the
863 (maintenance_internal_warning): New function.
864 (_initialize_maint_cmds): Add command `maint internal-warning'.
866 * defs.h (internal_warning, internal_vwarning): Declare.
867 * utils.c (struct internal_problem): Define.
868 (internal_vproblem): New function.
869 (internal_warning): New function.
870 (internal_vwarning): New function.
871 (internal_warning_problem, internal_error_problem): New variables.
872 (internal_verror): Just call internal_vproblem.
874 2002-09-18 Michael Snyder <msnyder@redhat.com>
876 * objc-lang.c: New file, support for Objective-C.
877 Preliminary check-in, not yet integrated into gdb.
878 * objc-lang.h: New file.
879 * objc-exp.y: New file.
881 2002-09-18 Andrew Cagney <ac131313@redhat.com>
883 * infrun.c (signal_stop_update): Convert definition to ISO C.
884 (signal_print_update): Ditto.
885 (signal_pass_update): Ditto.
886 * inflow.c (terminal_save_ours): Ditto.
888 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
891 * config/djgpp/fnchange.lst: Handle name clashes between
892 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
895 * i386-linux-tdep.h: Fix tipo.
897 2002-09-18 Adam Fedor <fedor@gnu.org>
899 * MAINTAINERS: Add myself to the Write After Approval list.
901 2002-09-18 Jim Blandy <jimb@redhat.com>
903 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
904 texthigh and textlow to reader-specific structs caused
905 objfile_relocate to miss them. This is fixable, but the work that
906 the change was supposed to prepare GDB for never got done anyway.
908 2002-09-18 David Carlton <carlton@math.stanford.edu>
910 * MAINTAINERS: Alphabetize Write After Approval list.
912 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
915 * values.c (value_static_field): Call read_var_value.
917 2002-09-18 Andrew Cagney <ac131313@redhat.com>
919 * valops.c (hand_function_call): Align the initial stack pointer
920 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
921 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
923 * mips-tdep.c (mips_frame_align): New function.
924 (mips_gdbarch_init): Set frame_align.
925 * gdbarch.sh (FRAME_ALIGN): New method.
926 * gdbarch.h, gdbarch.c: Re-generate.
928 2002-09-18 Michal Ludvig <mludvig@suse.cz>
930 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
933 2002-09-17 Andrew Cagney <ac131313@redhat.com>
935 * NEWS: Mention that MIPS $fp behavior changed.
936 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
937 reference to FP_REGNUM.
938 (mipsnbsd_cannot_store_register): Ditto.
939 * mips-linux-nat.c: Update copyright.
940 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
941 (mips_linux_cannot_store_register): Ditto.
942 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
943 * config/mips/tm-mips.h: Update copyright.
944 (FP_REGNUM): Delete macro.
945 (MIPS_REGISTER_NAMES): Replace "fp" with "".
946 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
947 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
948 (mips_r3041_reg_names, mips_r3051_reg_names)
949 (mips_r3081_reg_names): Replace "fp" with "".
952 2002-09-17 Theodore A. Roth <troth@verinet.com>
954 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
955 generic_read_register_dummy() (PR gdb/703).
956 (avr_push_return_address): #if 0 out unused vars.
957 (avr_gdbarch_init): Enable use of avr_push_return_address().
959 2002-09-17 Michael Snyder <msnyder@redhat.com>
961 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
962 RTE will take care of it.
964 2002-09-17 Andrew Cagney <ac131313@redhat.com>
966 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
967 invalid, return SP_REGNUM.
969 2002-09-17 Michael Snyder <msnyder@redhat.com>
971 * mips-tdep.c (mips_pop_frame): Read saved values of floating
972 point registers without sign extension.
974 2002-09-17 Andrew Cagney <cagney@redhat.com>
976 * blockframe.c (deprecated_read_register_dummy): Rename
977 generic_read_register_dummy.
978 * frame.c (frame_unwind_signed_register): New function.
979 (frame_unwind_unsigned_register): New function.
980 * frame.h (frame_unwind_signed_register): Declare.
981 (frame_unwind_unsigned_register): Declare.
982 (deprecated_read_register_dummy): Rename
983 generic_read_register_dummy.
985 * h8300-tdep.c (h8300_frame_chain): Update.
986 (h8300_frame_saved_pc): Update.
987 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
988 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
989 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
990 (s390_frame_chain): Update.
991 * v850-tdep.c (v850_find_callers_reg): Update.
992 (v850_frame_saved_pc): Update.
993 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
994 (m32r_find_callers_reg): Update.
995 (m32r_frame_saved_pc): Update.
996 * sh-tdep.c (sh_find_callers_reg): Update.
997 (sh64_get_saved_pr): Update.
998 (sh_init_extra_frame_info): Update.
999 (sh_init_extra_frame_info): Update.
1000 (sh64_init_extra_frame_info): Update.
1001 (sh64_init_extra_frame_info): Update.
1002 * mcore-tdep.c (mcore_find_callers_reg): Update.
1003 (mcore_frame_saved_pc): Update.
1004 (mcore_init_extra_frame_info): Update.
1005 * i386-tdep.c (i386_frame_saved_pc): Update.
1006 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1007 (ia64_init_extra_frame_info): Update.
1008 (ia64_init_extra_frame_info): Update.
1009 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1010 * cris-tdep.c (cris_init_extra_frame_info): Update.
1011 * avr-tdep.c (avr_frame_chain): Update.
1012 (avr_init_extra_frame_info): Update.
1013 (avr_frame_saved_pc): Update.
1014 * arm-tdep.c (arm_find_callers_reg): Update.
1015 (arm_init_extra_frame_info): Update.
1016 (arm_frame_saved_pc): Update.
1018 2002-09-17 Tom Tromey <tromey@redhat.com>
1020 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1023 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1025 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1026 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1028 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1031 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1033 * osfsolib.c: Remove file, replaced by solib-osf.c.
1034 * Makefile.in: Remove compilation rules for osfsolib.c.
1036 2002-09-16 David Carlton <carlton@math.stanford.edu>
1038 * cp-valprint.c (cp_print_class_method): Correct args to
1039 check_stub_method_group.
1041 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1043 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1044 `set architecture'. Unify naming convention of functions.
1045 (h8300_skip_prologue): Improve prologue analysis.
1046 (h8300_push_arguments): Rewritten to more closely match GCC's
1047 bizarre argument-passing behavior, along with the comment describing
1049 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1050 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1051 sim, remote-e7000.c, remote-hms.c and remote.c
1053 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1055 * i386-tdep.c (gdb_print_insn_i386): Removed.
1056 (i386_print_insn): New function.
1057 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1058 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1061 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1063 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1066 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1068 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1069 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1070 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1072 2002-09-13 Christopher Faylor <cgf@redhat.com>
1074 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1076 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1078 * gdbtypes.c (check_stub_method): Make static.
1079 (check_stub_method_group): New function.
1080 * gdbtypes.h: Update prototypes.
1081 * cp-support.c: New file.
1082 * cp-support.h: New file.
1084 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1085 (update_method_name_from_physname): New function.
1086 (read_member_functions): Correct method names for operators
1087 and v3 constructors/destructors. Separate v2 constructors and
1089 * Makefile.in (stabsread.o): Update dependencies.
1090 (SFILES): Add cp-support.c.
1091 (COMMON_OBS): Add cp-support.o.
1092 (cp_support_h, cp-support.o): Add.
1094 * cp-valprint.c (cp_print_class_method): Call
1095 check_stub_method_group instead of check_stub_method. Remove
1097 * p-valprint.c (pascal_object_print_class_method): Likewise.
1098 * valops.c (search_struct_method): Likewise.
1099 (find_method_list, value_struct_elt_for_reference): Likewise.
1101 2002-09-13 Andrew Cagney <cagney@redhat.com>
1103 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1104 * gdbarch.h, gdbarch.c: Regenerate.
1106 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1108 * frame.c (find_saved_register): Delete function.
1109 * frame.h (find_saved_register): Delete declaration.
1112 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1114 * mips-tdep.c (read_next_frame_reg): Re-hack using
1115 frame_register_unwind.
1117 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1119 * mips-tdep.c (mips_get_saved_register): Re-hack using
1120 frame_register_unwind.
1122 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1124 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1125 vector. Will be useful for Interix.
1126 * gdbarch.h, gdbarch.c: Regenerate.
1128 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1129 name of the malloc function by NAME_OF_MALLOC.
1131 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1133 * value.h (find_function_in_inferior): Add const keyword to
1134 one of the parameters. Allows us to invoke this function with
1136 * valops.c (find_function_in_inferior): Likewise.
1138 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1140 * exec.c (xfer_memory): Fix compilation warning with old versions
1142 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1144 2002-09-12 David Carlton <carlton@math.stanford.edu>
1146 * symtab.h: Run through gdb_indent.h.
1147 Add 2002 to Copyright year list.
1149 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1151 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1153 * MAINTAINERS: Add myself to write after approval list.
1155 2002-09-11 J. Brobecker <brobecker@gnat.com>
1157 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1159 2002-09-11 J. Brobecker <brobecker@gnat.com>
1161 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1164 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1166 * procfs.c (do_detach): Clear current signal, not just fault.
1167 Corrects problem with breakpoint trap signal leaking to detached
1170 2002-09-10 Michael Snyder <msnyder@redhat.com>
1172 * buildsym.c (finish_block): Protect against null pointer.
1174 2002-09-10 Andrew Cagney <cagney@redhat.com>
1176 * infcmd.c (default_print_registers_info): Send all output to
1177 ``file'' instead of ``gdb_stdout''.
1179 2002-09-10 Michael Snyder <msnyder@redhat.com>
1181 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1182 LONGEST, and use signed register read (addresses are sign-
1185 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1187 * event-loop.c (gdb_do_one_event): Make public.
1188 * event-loop.h (gdb_do_one_event): Declare.
1190 2002-09-10 Jeff Law <law@redhat.com>
1192 * infttrace.c (child_resume): Simplify and rework to avoid
1195 2002-09-09 Fred Fish <fnf@intrinsity.com>
1197 * printcmd.c (print_scalar_formatted): "len" is the number of
1198 target bytes, NOT the number of target bits.
1200 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1202 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1203 * top.c (init_main): Set rl_terminal_name.
1205 2002-09-08 Aidan Skinner <aidan@velvet.net>
1207 * ada-lang.c (ada_array_bound, ada_type_match,
1208 _initialize_ada_language): Fix K&R definitions.
1209 * ada-tasks.c (get_current_task): Fix K&R definitions.
1210 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1212 2002-09-07 Christopher Faylor <cgf@redhat.com>
1214 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1217 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1219 * i386-tdep.c (i386_register_virtual_type,
1220 i386_register_convertible, i386_register_convert_to_virtual,
1221 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1222 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1223 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1224 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1225 Don't set push_arguments twice.
1227 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1228 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1229 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1230 sigtramp_end to NULL.
1231 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1233 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1235 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1238 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1239 * gdbarch.h, gdbarch.c: Re-generate.
1240 * blockframe.c (find_pc_sect_partial_function): Convert to use
1241 SIGTRAMP_START_P predicate.
1243 2002-09-05 Michael Snyder <msnyder@redhat.com>
1245 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1246 generic_dummy_frame method and old method. Also distinguish
1247 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1248 (arm_extract_return_value): Use new regcache method.
1250 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1251 adjustment that doesn't conform to the ABI.
1252 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1253 saved regcache, not from current regcache.
1255 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1257 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1260 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1262 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1263 if arm_apcs_32 is false.
1265 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1267 GDB 5.3 branch created.
1269 2002-09-03 Theodore A. Roth <troth@verinet.com>
1271 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1272 generic_unwind_get_saved_register.
1274 2002-09-03 David Carlton <carlton@math.stanford.edu>
1276 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1277 argument (PR gdb/653). Update call to smash_to_method_type.
1278 (read_structure_scope): Update call to dwarf2_add_member_fn.
1280 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1282 * x86-64-linux-tdep.c: Include gdb_string.h
1283 * x86-64-linux-nat.c: Ditto.
1285 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1287 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1288 when YYDEBUG is set to 1.
1289 * c-exp.y: Likewise.
1290 * f-exp.y: Likewise.
1291 * jv-exp.y: Likewise.
1292 * m2-exp.y: Likewise.
1293 * p-exp.y: Likewise.
1295 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1297 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1299 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1300 solib_svr4_fetch_link_map_offsets to
1301 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1302 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1303 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1304 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1305 solib-svr4.o, and solib-legacy.o.
1306 * config/i386/tm-nbsd.h: Include solib.h.
1308 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1310 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1311 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1312 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1313 comment noting that this needs its own target configuration.
1314 * config/i386/nbsd.mt: New file.
1315 * config/i386/nbsdaout.mt: Remove.
1316 * config/i386/nbsdelf.mt: Ditto.
1317 * config/i386/tm-nbsdaout.h: Ditto.
1319 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1321 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1322 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1323 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1325 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1326 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1327 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1329 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1331 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1332 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1333 * i386-tdep.h (i386bsd_init_abi): New prototype.
1334 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1335 function declaration.
1336 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1337 for NetBSD-a.out or NetBSD-ELF.
1338 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1339 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1340 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1341 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1343 (i386nbsd_pc_in_sigtramp): New function.
1344 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1345 i386nbsd_pc_in_sigtramp.
1346 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1347 and i386nbsdelf_init_abi OS ABI handlers.
1348 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1349 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1351 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1353 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1354 registers if the target really has them.
1356 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1358 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1361 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1363 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1365 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1366 (alphanbsd_skip_sigtramp_frame): New functions.
1367 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1368 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1369 to alphanbsd_sigcontext_addr.
1371 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1373 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1375 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1376 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1377 nbsd_pc_in_sigtramp.
1378 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1379 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1380 * nbsd-tdep.c: Include gdb_string.h.
1381 (nbsd_pc_in_sigtramp): New function.
1382 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1383 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1384 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1385 ppcnbsd_pc_in_sigtramp.
1386 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1387 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1388 shnbsd_pc_in_sigtramp.
1389 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1390 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1391 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1393 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1395 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1396 watchpoints to NULL.
1397 (insert_breakpoints): set val field of watchpoints if NULL.
1400 2002-08-29 Jim Blandy <jimb@redhat.com>
1402 * symtab.c (lookup_symbol_aux): In the cases where we find a
1403 minimal symbol of an appropriate name and use its address to
1404 select a symtab to read and search, use `name' (as passed to us)
1405 as the demangled name when searching the symtab's global and
1406 static blocks, not the minsym's name.
1408 2002-08-29 Keith Seitz <keiths@redhat.com>
1410 * stack.c (print_frame_info_base): Always set current_source_symtab
1411 and current_source_line.
1413 2002-08-29 Donn Terry <donnte@microsoft.com>
1415 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1417 2002-08-28 Keith Seitz <keiths@redhat.com>
1419 * stack.c (select_frame): Add FIXME concerning selected-frame
1421 (select_frame_command): Send selected-frame-level-changed
1422 event notification, but only if the level actually changed.
1423 (up_silently_base): Add selected-frame-level-changed event
1425 (down_silently_base): Likewise.
1427 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1429 * Makefile.in: Update dependencies for all gdb/*.c files.
1431 2002-08-27 Tom Tromey <tromey@redhat.com>
1433 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1434 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1435 Update dependencies.
1436 * i387-tdep.c: Include gdb_string.h.
1437 * osabi.c: Likewise.
1438 * i386-linux-nat.c: Likewise.
1439 * lin-lwp.c: Likewise.
1440 * ax-gdb.c: Likewise.
1441 * signals/signals.c: Likewise.
1442 * jv-valprint.c: Likewise.
1443 * p-lang.c: Likewise.
1444 * c-valprint.c: Likewise.
1445 * cp-abi.c: Likewise.
1447 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1449 * cli/cli-script.h (copy_command_lines): Export.
1450 * breakpoint.c: Include cli/cli-script.h.
1451 * Makefile.in (breakpoint.o): Update dependencies.
1453 2002-08-26 Michael Snyder <msnyder@redhat.com>
1455 * breakpoint.c (insert_breakpoints): Protect all references
1456 to 'process_warning'. Shorten long lines.
1458 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1460 * cli/cli-script.c (copy_command_lines): New function.
1461 * defs.h (copy_command_lines): Export.
1462 * testsuite/gdb.base/commands.exp: New tests for commands
1463 attached to a temporary breakpoint, and for commands that
1464 delete the breakpoint they are attached to.
1466 2002-08-26 Michael Snyder <msnyder@redhat.com>
1468 * breakpoint.c (bpstat_stop_status): Instead of copying the
1469 pointer to the breakpoint commands struct, make a new copy
1470 of the struct and point to that.
1471 (bpstat_clear): Free the commands struct.
1472 (bpstat_clear_actions): Free the commands struct.
1473 (bpstat_do_actions): Free the command actions. Also execute
1474 the local cleanups, instead of deleting them.
1475 (delete_breakpoint): Leave the commands field of the bpstat
1476 chain alone -- it will be freed later.
1478 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1480 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1481 deleted in 2002-08-20 commit. This function is still used by
1484 2002-08-26 Keith Seitz <keiths@redhat.com>
1486 * gdb-events.sh: Add selected-frame-level-changed event.
1487 * gdb-events.c: Regenerated.
1488 * gdb-events.h: Regenerated.
1490 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1493 * inflow.c (terminal_save_ours): New function to save terminal
1495 * inferior.h (terminal_save_ours): Declare.
1496 * target.c (debug_to_terminal_save_ours): New function.
1497 (cleanup_target): Defaults to_terminal_save_ours.
1498 (update_current_target): Inherit to_terminal_save_ours.
1499 (setup_target_debug): Set to_terminal_save_ours.
1500 * target.h (target_terminal_save_ours): New to save terminal settings.
1501 (target_ops): New member to_terminal_save_ours.
1502 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1503 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1504 * inftarg.c (init_child_ops): Likewise.
1505 * m3-nat.c (init_m3_ops): Likewise.
1506 * procfs.c (init_procfs_ops): Likewise.
1507 * wince.c (init_child_ops): Likewise.
1508 * win32-nat.c (init_child_ops): Likewise.
1509 * sol-thread.c (init_sol_thread_ops): Likewise.
1511 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1513 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1514 use regcache_* functions.
1515 (i386_gdbarch_init): Set store_return_value instead of
1516 deprecated_store_return_value.
1518 * regcache.c (regcache_raw_write_signed,
1519 regcache_raw_write_unsigned): New functions.
1520 * regcache.h (regcache_raw_write_signed,
1521 regcache_raw_write_unsigned): New prototypes.
1523 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1525 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1526 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1527 source file dependencies. Cleanup corresponding generator rules.
1529 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1531 * regcache.h (register_offset_hack): Declare.
1532 (regcache_cooked_read_using_offset_hack): Declare.
1533 (regcache_cooked_write_using_offset_hack): Declare.
1535 * regcache.c (register_offset_hack): New function.
1536 (regcache_cooked_read_using_offset_hack): New function.
1537 (regcache_cooked_write_using_offset_hack): New function.
1538 (regcache_dump): Check that the registers, according to their
1539 offset, are packed hard against each other.
1540 (cooked_xfer_using_offset_hack): New function.
1542 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1544 * regcache.c (struct regcache_descr): Add field register_type.
1545 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1547 (init_regcache_descr): Initialize register_type. Pass the descr
1548 to init_legacy_regcache_descr. Use register_type instead of
1549 REGISTER_VIRTUAL_TYPE.
1550 (register_type): New function.
1551 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1552 * regcache.h (register_type): Declare.
1554 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1556 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1557 instead of deprecated_store_return_value. Fix fallout from
1558 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1560 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1562 * regcache.c (max_register_size): New function.
1563 (init_legacy_regcache_descr): Ensure that max_register_size is
1564 large enough for REGISTER_VIRTUAL_SIZE.
1565 * regcache.h (max_register_size): Declare.
1567 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1569 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1571 (e500_extract_return_value): Change type of valbuf pointer to
1574 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1576 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1579 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1580 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1581 long long) to prevent compiler warning on 64-bit systems.
1583 2002-08-23 Andrew Cagney <cagney@redhat.com>
1585 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1586 (DEPRECATED_STORE_RETURN_VALUE): New method.
1587 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1588 * gdbarch.h, gdbarch.c: Re-generate.
1590 * values.c (set_return_value): Pass current_regcache to
1592 * arch-utils.h (legacy_store_return_value): Declare.
1593 * arch-utils.c (legacy_store_return_value): New function.
1594 (legacy_extract_return_value): Update parameters.
1596 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1598 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1599 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1600 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1601 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1602 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1603 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1604 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1605 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1606 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1607 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1610 * i386-tdep.c (i386_extract_return_value): Update.
1611 * arch-utils.c (legacy_extract_return_value): Update.
1612 * frv-tdep.c (frv_gdbarch_init): Update.
1613 * cris-tdep.c (cris_gdbarch_init): Update.
1614 * d10v-tdep.c (d10v_gdbarch_init): Update.
1615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1616 * m68k-tdep.c (m68k_gdbarch_init): Update.
1617 * mcore-tdep.c (mcore_gdbarch_init): Update.
1618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1619 * s390-tdep.c (s390_gdbarch_init): Update.
1620 * sparc-tdep.c (sparc_gdbarch_init): Update.
1621 * sh-tdep.c (sh_gdbarch_init): Update.
1622 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1623 * v850-tdep.c (v850_gdbarch_init): Update.
1624 * avr-tdep.c (avr_gdbarch_init): Update.
1625 * ia64-tdep.c (ia64_gdbarch_init): Update.
1626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1627 * vax-tdep.c (vax_gdbarch_init): Update.
1628 * alpha-tdep.c (alpha_gdbarch_init): Update.
1629 * arm-tdep.c (arm_gdbarch_init): Update.
1630 * mips-tdep.c (mips_gdbarch_init): Update.
1631 * i386-tdep.c (i386_gdbarch_init): Update.
1633 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1635 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1636 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1638 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1640 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1643 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1645 * infrun.c (handle_inferior_event): Move a comment outside of a
1646 function call, in order to avoid indent reformatting this part
1647 of the code in an unreadable way.
1649 2002-08-23 Grace Sainsbury <graces@redhat.com>
1651 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1652 when breakpoints fail. Move general breakpoint error messages to
1654 * breakpoint.c (insert_breakpoints): Change warnings when
1655 breakpoints are nto inserted to specify the type. Remove call to
1656 memory_error when hardware breakpoints can't be inserted. Remove
1657 multiple calls to warning so all messages are sent to the user at
1659 (delete_breakpoints): Make insert error messsages more explicit.
1661 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1663 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1664 gdbserver/ChangeLog.
1666 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1668 * i386-tdep.c: Include "objfiles.h".
1669 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1670 skip_trampoline_code.
1671 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1672 (CPLUS_MARKER): Define to '.'.
1674 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1676 (linux_corefile_thread_callback): Increase args->num_notes.
1677 (linux_make_note_section): Initialize thread_args.num_notes, and
1678 use it to determine whether notes for any threads were created.
1680 2002-08-23 Donn Terry <donnte@microsoft.com>
1682 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1683 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1685 (write_with_trace): Conditionalize out the switch branch handling
1686 PCSHOLD if the corresponding macro is not defined. Likewise for
1687 PRSABORT and PRSTOP.
1688 This change will be needed by the Interix port.
1690 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1692 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1693 write_register wherever possible instead of manipulating the
1694 register bytes directly.
1695 Assign VALUE_CONTENTS to a variable and use that.
1696 The GPR numbers are now dependent on the architecture.
1698 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1700 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1702 (skip_prologue): Add support for BookE/e500 instructions.
1703 (e500_extract_return_value): New function.
1704 (frame_get_saved_regs): Add support for saving ev registers and
1706 (e500_store_return_value): New function.
1707 (rs6000_gdbarch_init): Move up default intializations of
1708 deprecated_extract_return_value and store_return_value. Overwrite
1709 init of store_return_value with e500 specific version.
1710 Set extract_return_value for e500.
1712 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1714 * blockframe.c (generic_call_dummy_register_unwind): Use
1715 regcache_cooked_read to catch cases in which the variable is
1716 stored in a pseudo register.
1718 2002-08-22 Andrew Cagney <cagney@redhat.com>
1720 * NEWS: Mention that the i960 has been made obsolete.
1721 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1723 (remote-nrom.o): Obsolete target.
1724 (remote-nindy.o, i960-tdep.o): Ditto.
1725 * remote-nrom.c: Make file obsolete.
1726 * remote-nindy.c, remote-vx960.c: Ditto.
1727 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1728 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1729 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1730 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1731 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1732 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1733 i960-*-vxworks* obsolete.
1734 * MAINTAINERS: Note that the i960 is obsolete.
1736 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1738 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1739 detach to allow reinitialization.
1741 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1743 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1746 2002-08-22 Jim Blandy <jimb@redhat.com>
1748 * coffread.c (coff_symfile_read): Don't try to read the line
1749 number table from disk if the image file doesn't have a symbol
1750 table; we'll never actually look at the info anyway, and Windows
1751 ships DLL's with bogus file offsets for the line number data.
1753 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1755 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1758 2002-08-21 Michael Snyder <msnyder@redhat.com>
1760 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1761 (MSYMBOL_SIZE): Replace macro with function.
1762 (DEFAULT_MIPS_TYPE): Delete unused macro.
1763 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1764 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1766 2002-08-21 Jim Blandy <jimb@redhat.com>
1768 * valops.c (value_cast): Simplify and correct logic for doing a
1769 static cast from a pointer to a base class to a pointer to a
1772 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1774 * infcmd.c (default_print_registers_info): Replace
1776 (registers_info): Use gdbarch_print_registers_info instead of
1778 * inferior.h (default_print_registers_info): Replace
1780 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1781 (DO_REGISTERS_INFO): Change to a predicate function.
1782 * gdbarch.h, gdbarch.c: Regenerate.
1784 2002-08-21 Keith Seitz <keiths@redhat.com>
1786 * gdb-events.sh: Add target-changed event.
1787 * gdb-events.c: Regenerated.
1788 * gdb-events.c: Regenerated.
1789 * valops.c (value_assign): Add target-changed event notification
1790 to inlval_register, lval_memory, and lval_reg_frame_relative.
1792 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1794 * NEWS: Add an entry regarding the improvement of the next/step
1795 operation on Alpha Tru64 multi-processor machines.
1797 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1799 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1801 * Makefile.in: Update all _h macro definitions.
1802 * Makefile.in (install-gdbtk): Move to install section.
1803 (rdi-share/libangsd.a): Move to end of file.
1805 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1807 * frame.c (frame_register_unwind): When a register, set addrp to
1808 the register's byte.
1810 2002-08-20 Michael Snyder <msnyder@redhat.com>
1812 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1813 used locally, so move them from the target machine header to here.
1814 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1815 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1817 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1819 2002-08-20 Andrew Cagney <cagney@redhat.com>
1821 * NEWS: Mention that the Apollo line was made obsolete.
1822 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1823 m68*-hp-hpux* obsolete.
1824 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1825 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1826 * buildsym.c (make_blockvector): Make static.
1827 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1828 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1829 (ALLDEPFILES): Remove dstread.c.
1830 (dstread.o): Obsolete make rule.
1831 * dstread.c: Makefile obsolete.
1833 * config/m68k/hp300hpux.mt: Ditto.
1834 * config/m68k/hp300hpux.mh: Ditto.
1835 * config/m68k/hp300bsd.mt: Ditto.
1836 * config/m68k/hp300bsd.mh: Ditto.
1837 * config/m68k/apollo68b.mt: Ditto.
1838 * config/m68k/apollo68v.mh: Ditto.
1839 * config/m68k/apollo68b.mh: Ditto.
1841 2002-08-20 Michael Snyder <msnyder@redhat.com>
1843 * mips-tdep.c (mips_in_return_stub): Make static.
1844 (mips_gdbarch_init): Set in_solib_return_trampoline.
1845 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1847 2002-08-20 Michael Snyder <msnyder@redhat.com>
1849 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1850 * gdbarch.c, gdbarch.h: Regenerate.
1851 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1853 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1855 2002-08-20 Michael Snyder <msnyder@redhat.com>
1857 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1858 (mips_gdbarch_init): Set skip_trampoline_code,
1859 in_solib_call_trampoline.
1860 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1861 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1863 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1865 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1867 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1868 vector type for ev registers.
1869 (e500_pseudo_register_read): New function.
1870 (e500_pseudo_register_write): New function.
1871 (e500_dwarf2_reg_to_regnum): New function.
1872 (PPC_UISA_NOFP_SPRS): New macro.
1873 (PPC_EV_REGS): New macro.
1874 (PPC_GPRS_PSEUDO_REGS): New macro.
1875 (registers_e500): New register set for e500.
1876 (variants): Add e500 variant.
1877 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1878 before setting architectural dependent variations. Initialize ev
1879 registers numbers. Add case for e500 architecture. Set the
1880 number of pseudo registers.
1882 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1884 * rs6000-tdep.c: Clean up comments.
1886 2002-08-20 Andrew Cagney <cagney@redhat.com>
1888 * h8300-tdep.c: Re-indent file.
1890 2002-08-20 Jim Blandy <jimb@redhat.com>
1892 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1895 2002-08-20 Keith Seitz <keiths@redhat.com>
1897 * breakpoints.c (watch_command_1): Use internal breakpoint
1898 when setting a watchpoint_scope breakpoint.
1900 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1902 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1903 (build_builtin_type_vec64i): Ditto.
1904 (build_builtin_type_vec128): Ditto.
1905 (build_builtin_type_vec128i): Ditto.
1907 2002-08-19 Michael Snyder <msnyder@redhat.com>
1909 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1910 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1911 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1912 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1913 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1914 CALL_DUMMY_ADDRESS): Delete.
1915 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1916 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1917 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1918 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1919 push_return_address.
1920 (mips_register_raw_size, mips_eabi_use_struct_convention,
1921 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1922 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1923 mips_init_extra_frame_info, mips_eabi_push_arguments,
1924 mips_n32n64_push_arguments, mips_push_return_address,
1925 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1926 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1928 2002-08-19 Michael Snyder <msnyder@redhat.com>
1930 * mips-tdep.c (mips_frame_num_args): New function.
1931 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1932 frame_saved_pc, frame_args_address, frame_locals_address,
1933 frame_num_args, and frame_args_skip.
1934 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1935 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1936 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1937 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1939 2002-08-20 Michael Snyder <msnyder@redhat.com>
1941 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1942 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1943 * mips-tdep.c (mips_store_struct_return): New function.
1944 (mips_extract_struct_value_address): New function.
1945 (mips_gdbarch_init): Set store_struct_return and
1946 extract_struct_value_address.
1948 2002-08-20 David Carlton <carlton@math.stanford.edu>
1950 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1951 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1952 (read_file_scope): Check that line_header is nonzero before
1953 decoding macro information.
1955 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1957 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1958 flag the general-purpose registers as floating-point on targets
1959 that don't support the floating-point registers.
1961 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1963 * rs6000-tdep.c (altivec_register_p): Delete.
1964 (rs6000_do_altivec_registers): Delete.
1965 (rs6000_altivec_registers_info): Delete.
1966 (rs6000_do_registers_info): Delete.
1967 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1968 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1970 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1972 * infcmd.c (do_registers_info): Print vector registers in hex
1974 (print_vector_info): Check that printing registers
1976 (print_float_info): Ditto.
1978 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1980 * mips-tdep.c (mips_gdbarch_init): Update.
1981 (mips_o32_extract_return_value): Rewrite.
1982 (mips_o32_store_return_value): Rewrite.
1983 (mips_o32_xfer_return_value): New function.
1984 (mips_xfer_register): Tweak debug print message. Allow for
1985 buf_offset when dumping the value transfered.
1987 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1989 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1990 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1991 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1992 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1993 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1995 2002-08-14 Michael Snyder <msnyder@redhat.com>
1997 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1999 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2001 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2003 (P): New macro to define a register as a pseudo register.
2004 (R, R4, R8, R16, FR32, R64, R0): Updated.
2005 (struct variant): Add new fields for number of pseudo registers
2006 and number of total registers.
2007 (tot_num_registers): New macro replacing....
2008 (num_registers): ...deleted macro.
2009 (num_registers): New function.
2010 (num_pseudo_registers): New function.
2011 (variants): Update all variants to intialize new fields correctly.
2012 Postpone initialization of number of pseudo regs and real regs.
2013 (init_variants): New function.
2014 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2017 2002-08-19 David Carlton <carlton@math.stanford.edu>
2019 * valops.c (search_struct_field): Change error message to treat
2020 return value of 0 from value_static_field as meaning that field is
2022 (value_struct_elt_for_reference): Ditto.
2023 * values.c (value_static_field): Treat an unresolved location the
2024 same as a nonexistent symbol. Fix PR gdb/635.
2025 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2026 enclosed. Fix PR gdb/574.
2027 * MAINTAINERS: Add self to Write After Approval list.
2029 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2031 * mips-tdep.c (mips_xfer_register): New function.
2032 (mips_n32n64_extract_return_value): Rewrite.
2033 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2034 instead of deprecated_extract_return_value.
2036 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2038 * rs6000-tdep.c (TDEP): Delete macro.
2039 (branch_dest): Replace use of TDEP macro with its body.
2040 (rs6000_pop_frame): Ditto.
2041 (rs6000_push_arguments): Ditto.
2042 (rs6000_skip_trampoline_code): Ditto.
2043 (rs6000_frame_saved_pc): Ditto.
2044 (rs6000_frame_chain): Ditto.
2045 (rs6000_register_name): Ditto.
2046 (rs6000_register_byte): Ditto.
2047 (rs6000_register_raw_size): Ditto.
2048 (rs6000_register_virtual_type): Ditto.
2049 (rs6000_register_convertible): Ditto.
2050 (rs6000_convert_from_func_ptr_addr): Ditto.
2052 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2054 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2056 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2057 MIPS_LINUX_JB_ELEMENT_SIZE.
2058 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2059 for MAX_REGISTER_RAW_SIZE arrays.
2060 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2061 MIPS_LINUX_JB_ELEMENT_SIZE.
2063 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2065 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2067 2002-08-19 Aidan Skinner <aidan@velvet.net>
2069 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2070 ada-valprint.c ada-tasks.c.
2071 (YYFILES): Add ada-exp.y.
2072 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2073 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2074 (ada-exp.tab.o): New target.
2076 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2078 * regcache.c (regcache_xfer_part): New function.
2079 (regcache_raw_read_part): New function.
2080 (regcache_raw_write_part): New function.
2081 (regcache_cooked_read_part): New function.
2082 (regcache_cooked_write_part): New function.
2083 * regcache.h (regcache_raw_read_part): Declare.
2084 (regcache_raw_write_part): Declare.
2085 (regcache_cooked_read_part): Declare.
2086 (regcache_cooked_write_part): Declare.
2088 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2090 * remote.c (remote_open_1): Add async_p.
2091 (remote_async_open_1): Delete.
2092 (open_remote_target): Delete.
2093 (remote_open, extended_remote_open): Update calls to remote_open_1.
2094 (remote_async_open, extended_remote_async_open): Call
2095 remote_open_1 instead of remote_async_open_1.
2097 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2099 * blockframe.c: Fix a few coding standard violations.
2101 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2103 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2105 * config/i386/tm-i386sco5.h: ... here. File removed.
2106 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2108 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2109 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2110 (TM_FILE): Set to tm-i386.h.
2111 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2112 * config/i386/tm-i386v.h: Remove file.
2113 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2114 instead of "i386/tm-i386v.h".
2115 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2116 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2118 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2119 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2122 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2124 * config/i386/nm-i386v.h: Add protection against
2126 (i386_register_u_addr): Remove prototype.
2127 (register_u_addr): New prototype.
2128 (REGISTER_U_ADDR): Redefine accordingly.
2129 * i386v-nat.c: Improve several comments.
2130 (i386_register_u_addr): Change signature and rename to
2131 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2134 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2136 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2137 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2138 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2139 deprecated_extract_return_value.
2140 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2141 rename mips_o32o64_push_arguments.
2142 (mips_gdbarch_init): Update.
2143 (mips_extract_return_value): Delete.
2144 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2145 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2146 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2147 (mips_n32n64_extract_return_value): Clone
2148 mips_extract_return_value.
2149 (mips_store_return_value): Delete.
2150 (mips_o32_store_return_value): Clone mips_store_return_value.
2151 (mips_o64_store_return_value): Clone mips_store_return_value.
2152 (mips_eabi_store_return_value): Clone mips_store_return_value.
2153 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2155 2002-08-18 Aidan Skinner <aidan@velvet.net>
2157 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2158 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2160 2002-08-18 Aidan Skinner <aidan@velvet.net>
2162 * ada-lang.c: Run through gdb_indent.sh.
2163 * ada-lang.h: Run through gdb_indent.sh.
2164 * ada-tasks.c: Run through gdb_indent.sh.
2165 * ada-typeprint.c: Run through gdb_indent.sh.
2166 * ada-valprint.c: Run through gdb_indent.sh.
2168 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2170 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2173 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2175 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2177 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2178 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2180 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2181 write_register_gen instead of write_register_bytes.
2183 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2184 i[3456]-*-osf1mk* configurations have been made obsolete.
2185 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2186 i[3456]86-*-osf1mk* hosts obsolete.
2187 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2189 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2190 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2191 config/i386/i386m3.mt, config/i386/nm-m3.h,
2192 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2193 config/i386/i386mk.mh, config/i386/i386mk.mt,
2194 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2196 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2197 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2198 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2200 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2202 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2203 (hppa_value_returned_from_stack): Declare.
2204 (hppa_extract_return_value): Declare.
2205 * config/pa/hppa.mt: New file.
2206 * configure.tgt: Recognize hppa*-*-*.
2207 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2209 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2211 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2214 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2216 * top.c (gdb_rl_operate_and_get_next): Make sure
2217 operate-and-get-next functions correctly even when the history
2218 list is completely filled.
2220 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2222 * MAINTAINERS (Target Instruction Set Architectures): Rename
2223 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2224 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2225 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2226 already listed under Host/Native.
2228 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2229 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2232 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2234 * config/ia64/ia64.mt: New file.
2235 * config/alpha/alpha.mt: New file.
2236 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2237 ia64-linux-gnu. Mention that ia64-elf is broken.
2238 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2240 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2242 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2243 generic_func_frame_valid instead of func_frame_valid.
2245 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2247 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2248 procfs appears to be broken when debugging on multi-processor
2249 machines. So enable software single stepping in order to avoid
2250 using the procfs interface to do next/step operations, using
2251 internal breakpoints instead.
2253 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2254 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2255 make this pc address equal to the value it would have if the
2256 system stepping capability was used. Also set a new flag used
2257 to ensure that we don't readjust the PC one more time later.
2259 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2260 address by DECR_PC_AFTER_BREAK when software single step is
2261 in use for this architecture, as this has already been taken
2262 care of in handle_inferior_event().
2264 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2266 * infrun.c (handle_inferior_event): Minor reformatting, to make
2267 a rather long condition expression easier to read.
2269 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2271 * Makefile.in (gdbtk.o): Move to end of file.
2272 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2273 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2274 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2275 (gdbtk-wrapper.o, gdbres.o): Ditto.
2277 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2279 * Makefile.in (copying.o): Separate out compile rule.
2280 (hpux-thread.o, procfs.o, signals.o): Ditto.
2281 (v850ice.o, z8k-tdep.o): Ditto.
2282 (tui-file.o): Move to TUI section.
2283 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2284 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2288 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2289 skip_trampoline_code, for better namespace-proofing.
2291 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2293 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2295 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2297 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2299 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2300 signal, check whether we hit a breakpoint before checking for a
2301 single step breakpoint. Otherwise, GDB fails to notice that a
2302 breakpoint has been hit when stepping onto a breakpoint.
2304 2002-08-16 Keith Seitz <keiths@redhat.com>
2306 * gdb-events.sh (clear_gdb_event_hooks): New function.
2307 * gdb-events.c: Regenerate.
2308 * gdb-events.h: Regenerate.
2310 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2312 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2313 not_a_sw_breakpoint.
2314 * breakpoint.h (bpstat_stop_status): Add parameter names.
2316 2002-08-16 Grace Sainsbury <graces@redhat.com>
2318 * remote.c (remote_insert_hw_breakpoint)
2319 (remote_remove_hw_breakpoint): Fix calculation of length field
2322 2002-08-15 Michael Snyder <msnyder@redhat.com>
2324 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2325 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2326 (supply_fpregset): Ditto.
2328 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2329 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2330 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2331 (TARGET_READ_SP): Delete.
2332 (DO_REGISTERS_INFO): Delete.
2333 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2335 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2336 from macros to functions.
2338 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2339 (mips_register_convertible, mips_register_convert_to_virtual,
2340 mips_register_convert_to_raw): Make static.
2341 (mips_read_sp): New function.
2342 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2343 (mips_do_registers_info): Make static.
2344 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2345 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2346 (mips_register_convert_from_type, mips_register_convert_to_type):
2348 (mips_gdbarch_init): Set up function_start_offset,
2349 register_virtual_size, pc_in_sigtramp.
2351 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2353 * infcmd.c (vector_info): New function.
2354 (_initialize_infcmd): Add command "info vector".
2355 (print_vector_info): New function.
2357 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2358 * gdbarch.h, gdbarch.c: Regenerate.
2360 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2362 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2363 ``print_all''. Only print vector registers when ``print_all''.
2365 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2367 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2368 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2370 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2371 Add `args' parameter.
2372 * gdbarch.h, gdbarch.c: Regenerate.
2374 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2376 * infcmd.c (float_info): Call print_float_info.
2377 (print_float_info): New function. By default, print the
2378 floating-point registers.
2380 * arch-utils.h (default_print_float_info): Delete declaration.
2381 * arch-utils.c (default_print_float_info): Delete function.
2383 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2385 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2388 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2391 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2392 * configure.host: Make i[3456]86-*-aix host obsolete.
2393 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2394 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2395 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2396 config/i386/xm-i386aix.h: Make files obsolete.
2397 * i386aix-nat.c: Make file obsolete.
2398 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2399 (i386aix-nat.o): Make target obsolete.
2401 * config/i386/nm-gnu.h: Removed.
2402 * config/i386/nm-i386gnu.h: New file.
2403 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2404 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2406 * config/i386/tm-i386gnu.h: ... here. Removed.
2407 * config/i386/xm-i386gnu.h: Removed.
2408 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2409 (NAT_FILE): Set to nm-i386gnu.h.
2410 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2411 * i386-tdep.c: New file.
2412 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2413 (i386gnu-tdep.o): Specify dependencies.
2415 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2417 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2418 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2419 Adjust a few comments to reflect reality a bit closer.
2420 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2421 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2422 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2423 target_insert_watchpoint, target_remove_watchpoint):
2425 * config/i386/nm-i386sco5.h: ... here.
2426 (kernel_u_size): Add prototype. Improve a few comments and add
2427 protection against multiple inclusion.
2429 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2432 * uw-thread.c (SP_ARG0): Define if not already defined.
2433 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2435 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2437 * config/i386/tm-i386.h: Don't include "regcache.h".
2439 * i387-tdep.h (i387_print_float_info): New prototype.
2440 * i387-tdep.c (print_i387_value, print_i387_ext,
2441 print_i387_status_word, print_i387_control_word): Add `struct
2442 ui_file *' argument and use it for output.
2443 (i387_print_float_info): Renamed from i387_float_info. Add
2444 `struct gdbarch *' and `struct ui_file *' arguments and use the
2446 * i386-tdep.c: Include "i387-tdep.h".
2447 (i386_gdbarch_init): Set print_float_info.
2448 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2449 (FLOAT_INFO): Remove define.
2451 2002-08-13 Michael Snyder <msnyder@redhat.com>
2453 * mips-tdep.c (mips_push_arguments): Rename to
2454 mips_eabi_push_arguments, and tune for EABI.
2455 (MIPS_REGS_HAVE_HOME_P): Delete.
2456 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2457 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2458 Delete references to mips_regs_have_home_p.
2460 2002-08-14 Keith Seitz <keiths@redhat.com>
2462 * Makefile.in (install-gdbtk): Create insight plugin directory.
2463 Install plugins.tcl file.
2465 2002-08-14 Keith Seitz <keiths@redhat.com>
2467 * configure.in: Move SUBDIRS to near top of the file so that
2468 --enable options may add things to it.
2469 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2470 * configure: Regenerate.
2472 2002-08-13 Michael Snyder <msnyder@redhat.com>
2474 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2475 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2476 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2478 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2480 * vax-tdep.c (vax_get_saved_register): Delete function.
2481 (vax_gdbarch_init): Update.
2482 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2483 (ns32k_gdbarch_init): Update.
2484 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2485 (alpha_gdbarch_init): Update.
2487 2002-08-13 Andrew Cagney <cagney@redhat.com>
2489 * regcache.c (init_regcache_descr): Overallocate the
2490 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2491 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2493 (set_register_cached): Add range checking assertions. Use
2496 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2498 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2499 numbers for MMX registers.
2501 2002-08-13 Andrew Cagney <cagney@redhat.com>
2503 * i386-tdep.c (i386_gdbarch_init): Use
2504 generic_unwind_get_saved_register.
2506 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2508 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2509 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2511 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2512 Delete. Add comment regarding this now-deleted target method.
2514 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2516 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2517 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2518 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2519 real PC and the page number (if it's within the memory bank window).
2520 (m68hc11_pseudo_register_write): Likewise when saving.
2521 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2522 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2523 (m68hc11_register_raw_size): And use 32-bit for it.
2524 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2525 16K memory bank is used by the prog; also use the virtual pc.
2527 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2529 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2530 (m68hc11_gdbarch_init): Install it in gdbarch.
2531 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2532 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2533 (MSYMBOL_SIZE): New for documentation.
2534 (insn_return_kind): Enum to specify how a function returns.
2535 (frame_extra_info): Cleanup and record the return mode.
2536 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2537 register in address computation.
2538 (m68hc11_get_return_insn): New to obtain the return instruction used
2540 (m68hc11_frame_init_saved_regs): Take into account the return
2541 instruction used by the function for far and interrupt functions.
2542 (m68hc11_init_extra_frame_info): Take into account page register.
2543 (m68hc11_frame_args_address): Adjust according to the return mode.
2544 (show_regs): Print page register only when it's used.
2546 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2548 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2549 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2550 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2552 (m68hc11_register_raw_size): Likewise.
2554 2002-08-13 Andrew Cagney <cagney@redhat.com>
2556 * i386-tdep.c (i386_register_name): Handle mmx registers.
2557 (mmx_regnum_p): New function.
2558 (i386_mmx_names): New array.
2559 (mmx_num_regs): New variable.
2560 (i386_pseudo_register_read): New function.
2561 (i386_pseudo_register_write): New function.
2562 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2564 * regcache.c (regcache_raw_read_unsigned): New function.
2565 (regcache_raw_read_signed): New function.
2566 * regcache.h (regcache_raw_read_unsigned): Declare.
2567 (regcache_raw_read_signed): Declare.
2569 2002-08-13 Andrew Cagney <cagney@redhat.com>
2571 * regcache.c (regcache_raw_read_as_address): Delete function.
2572 (regcache_cooked_read_signed): New function.
2573 (regcache_cooked_read_unsigned): New function.
2574 * regcache.h (regcache_cooked_read_signed): Declare.
2575 (regcache_cooked_read_unsigned): Declare.
2576 (regcache_raw_read_as_address): Delete declaration.
2578 * blockframe.c (generic_read_register_dummy): Use
2579 regcache_cooked_read_unsigned.
2580 * i386-tdep.c (i386_extract_struct_value_address): Use
2581 regcache_cooked_read_unsigned.
2583 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2586 double sizes according to ELF ABI flags.
2587 (gdbarch_tdep): Record elf_flags.
2589 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2591 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2592 (m6812_prolog): They can appear in 68HC12 function prologue.
2593 (m68hc11_frame_chain): Cleanup.
2595 2002-08-12 Andrew Cagney <cagney@redhat.com>
2597 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2599 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2600 (i386_linux_register_raw_size): Delete function.
2601 (i386_linux_init_abi): Update.
2602 * i386-tdep.c (i386_register_raw_size): Delete function.
2603 (i386_register_byte): Delete function.
2604 (i386_gdbarch_init): Update.
2605 (i386_register_size): Delete array.
2606 (i386_register_offset): Delete array.
2608 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2609 (REGISTER_RAW_SIZE): Delete macro.
2610 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2611 (REGISTER_BYTE): Delete macro.
2613 2002-08-11 Aidan Skinner <aidan@velvet.net>
2615 * ada-lang.c (ada_lookup_partial_symbol)
2616 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2617 prototype names so that grep ^func works properly.
2619 * ada-lang.c (ada_array_element_type)
2620 (ada_lookup_partial_symbol): Fix typos in parameter list.
2622 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2623 Fix prototype names so that grep ^func works properly.
2625 2002-08-10 Andrew Cagney <cagney@redhat.com>
2626 Elena Zannoni <ezannoni@redhat.com>
2627 Martin M. Hunt <hunt@redhat.com>
2629 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2630 (build_builtin_type_vec128i): Set the vector bit.
2631 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2632 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2633 (build_builtin_type_vec64): New function.
2634 (build_builtin_type_vec64i): New function.
2635 (build_gdbtypes): Initialize builtin_type_vec64 and
2636 builtin_type_vec64i.
2638 2002-08-09 Andrew Cagney <cagney@redhat.com>
2640 * regcache.c (regcache_dump): Compare the register offset
2642 * arch-utils.c (generic_register_byte): New function.
2643 * arch-utils.h (generic_register_byte): Declare.
2644 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2645 * gdbarch.h, gdbarch.c: Regenerate.
2647 2002-08-09 Andrew Cagney <cagney@redhat.com>
2649 * regcache.c: Include "gdbcmd.h"
2650 (_initialize_regcache): Add commands "maintenance print
2651 registers", "maintenance print raw-registers" and "maintenance
2652 print cooked-registers".
2653 (enum regcache_dump_what): Define.
2654 (dump_endian_bytes): New function.
2655 (regcache_dump): New function.
2656 (regcache_print): New function.
2657 (maintenance_print_registers): New function.
2658 (maintenance_print_raw_registers): New function.
2659 (maintenance_print_cooked_registers): New function.
2660 * Makefile.in (regcache.o): Update dependencies.
2662 2002-08-09 Michael Snyder <msnyder@redhat.com>
2664 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2665 (mips_push_arguments): Correct some comments. Use paddr_nz
2666 for printing addresses in debug output. Replace static
2667 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2668 (mips_n32n64_push_arguments): New function, cloned from
2669 mips_push_arguments and tuned for the n32/n64 ABI.
2670 (mips_push_register): Buffer needs dynamic allocation.
2671 (mips_print_register): Ditto.
2672 (do_gp_register_row): Ditto.
2673 (mips_store_return_value): Ditto.
2674 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2676 2002-08-09 Don Howard <dhoward@redhat.com>
2678 * memattr.c (mem_info_command): Print special case of upper bound
2679 as max CORE_ADDR + 1.
2681 2002-08-08 Michael Snyder <msnyder@redhat.com>
2683 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2684 returns structs by ref if they're too big to fit in two registers.
2686 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2688 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2690 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2691 mips_find_saved_regs().
2692 (mips_pop_frame): Likewise.
2694 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2696 * blockframe.c (frame_saved_regs_register_unwind): Revise
2697 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2700 2002-08-09 Grace Sainsbury <graces@redhat.com>
2702 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2703 T-packets; the 'a' is not taken as a register number.
2704 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2705 (remote_stopped_data_address): New functions; add to target
2707 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2708 prototypes to match other implementations of this
2709 function. replace integer argument with pointer -- the length
2710 field in the Z-packet is the length of what is pointed to or 1 if
2711 pointer is null. Add to target vector.
2712 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2716 * remote.c (remote_wait): Add support to extract optional
2717 watchpoint information from T-packet. Ignore unrecognized
2718 optional info in T-packet.
2719 (remote_async_wait): Ditto.
2721 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2723 * cli/cli-dump.c: Change fopen modes to use binary open modes
2724 as defined in include/fopen-bin.h throughout.
2726 2002-08-08 Michael Snyder <msnyder@redhat.com>
2728 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2730 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2732 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2733 assertion failure by returning early after a warning.
2735 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2737 * mips-tdep.c (mips_find_saved_regs): Make static.
2738 (mips_frame_init_saved_regs): New function.
2739 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2740 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2741 (mips_find_saved_regs): Delete declaration.
2743 2002-08-08 Grace Sainsbury <graces@redhat.com>
2745 * remote.c (remote_wait, remote_async_wait): Change
2746 thread_num from int to ULONGEST.
2747 (unpack_varlen_hex): Change result parameter from
2748 int * to ULONGEST *.
2750 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2752 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2753 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2755 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2757 2002-08-08 Andrew Cagney <cagney@redhat.com>
2759 * gcore.c (override_derive_stack_segment): Delete variable.
2760 (preempt_derive_stack_segment): Delete function.
2761 (derive_stack_segment): Delete function.
2762 (default_derive_stack_segment): Renamed to derive_stack_segment.
2763 (override_derive_heap_segment): Delete variable.
2764 (preempt_derive_heap_segment): Delete function.
2765 (derive_heap_segment): Delete function.
2766 (default_derive_heap_segment): Rename to derive_heap_segment.
2768 2002-08-06 Michael Snyder <msnyder@redhat.com>
2770 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2771 * mips-tdep.c (mips_EABI_use_struct_convention,
2772 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2773 New functions. (mips_use_struct_convention): Delete.
2774 (mips_gdbarch_init): set use_gdbarch_convention.
2776 2002-08-06 Michael Snyder <msnyder@redhat.com>
2778 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2779 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2780 mips_o32_reg_struct_has_addr): New functions.
2781 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2783 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2785 * regcache.c (pseudo_register): Delete function.
2786 (fetch_register): Delete function.
2787 (store_register): Delete function.
2788 (regcache_raw_read, legacy_read_register_gen): Use
2789 target_fetch_registers instead of fetch_register.
2790 (legacy_write_register_gen, regcache_raw_write): Use
2791 target_store_register instead of store_register.
2792 (write_register_bytes): Ditto.
2794 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2795 (STORE_PSEUDO_REGISTER): Delete.
2796 * gdbarch.h, gdbarch.c: Regenerate.
2798 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2800 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2801 write dump file binary.
2803 2002-08-05 Michael Snyder <msnyder@redhat.com>
2805 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2806 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2807 (mips_gdbarch_init): Set N32 target to be mips64.
2809 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2811 * frame.c (find_saved_register): Break out of loop once saved
2812 register address is found. Don't mention sparc in loop comment
2815 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2817 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2818 mips_default_saved_regsize to 8.
2820 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2822 * gcore.c: Do not include <sys/procfs.h>.
2823 * Makefile.in (gcore.o): Update dependencies.
2825 2002-08-06 Andrew Cagney <cagney@redhat.com>
2827 * configure.tgt: Make arc-*-* obsolete.
2828 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2829 * MAINTAINERS: Make arc-elf obsolete.
2830 * arc-tdep.c: Make file obsolete.
2831 * config/arc/arc.mt: Ditto.
2832 * config/arc/tm-arc.h: Ditto.
2834 2002-08-05 Theodore A. Roth <troth@verinet.com>
2836 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2838 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2840 * mcore-tdep.c (mcore_gdbarch_init): Use
2841 generic_unwind_get_saved_register instead of
2842 generic_get_saved_register.
2843 * v850-tdep.c (v850_gdbarch_init): Ditto.
2844 * frv-tdep.c (frv_gdbarch_init): Ditto.
2845 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2846 * s390-tdep.c (s390_gdbarch_init): Ditto.
2847 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2848 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2849 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2851 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2853 * objfiles.h: Add missing #include "symfile.h"
2855 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2857 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2859 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2860 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2863 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2865 * NEWS: Cleanup and nitpick.
2867 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2869 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2871 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2873 * Makefile.in (gdbtk-bp.o): Update dependencies.
2874 (gdbtk-register.o): Ditto.
2875 (gdbtk-varobj.o): Ditto.
2877 2002-08-03 Andrew Cagney <cagney@redhat.com>
2879 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2880 m68hc11_fetch_pseudo_register.
2881 (m68hc11_pseudo_register_write): Replace
2882 m68hc11_store_pseudo_register.
2883 (m68hc11_gdbarch_init): Update.
2885 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2887 * gdbarch.sh: Include "gdb_string.h".
2888 * gdbarch.c: Regenerate.
2890 * regcache.c: Include "gdb_string.h".
2891 * ax-general.c: Ditto.
2893 * std-regs.c: Ditto.
2894 * fbsd-proc.c: Ditto.
2897 * Makefile.in (regcache.o): Update dependencies.
2898 (thread.o, gdbarch.o): Ditto.
2899 (ax-general.o, gdbarch.o): Ditto.
2900 (varobj.o, std-regs.o): Ditto.
2901 (fbsd-proc.o): Specify dependencies.
2903 2002-08-02 Andrew Cagney <cagney@redhat.com>
2905 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2907 (regcache_cooked_write): Ditto.
2909 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2911 * regcache.c (regcache_cooked_read): New function.
2912 (regcache_cooked_write): New function.
2913 (read_register_gen): Rewrite using regcache_cooked_read.
2914 (write_register_gen): Rewrite using regcache_cooked_write.
2916 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2919 2002-08-02 Andrew Cagney <cagney@redhat.com>
2921 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2922 Replace the architecture methods register_read and register_write.
2923 * gdbarch.h, gdbarch.c: Regenerate.
2924 * regcache.c (init_regcache_descr): Update.
2925 (read_register_gen): Update.
2926 (write_register_gen): Update.
2927 (supply_register): Update comment.
2929 * sh-tdep.c (sh_gdbarch_init): Update.
2930 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2931 `regcache' and `gdbarch' parameters. Make `buffer' a void
2932 pointer. Update code.
2933 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2934 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2935 void pointer. Update code.
2936 (sh64_register_write): Delete.
2937 (sh4_register_read): Delete.
2938 (sh64_register_read): Delete.
2939 (sh4_register_write): Delete.
2940 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2941 void pointer, `to' parameter a void pointer.
2942 (sh_sh64_register_convert_to_raw): Ditto.
2944 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2946 * mips-tdep.c (mips_register_virtual_type): Use architecture
2947 invariant return values.
2949 2002-08-01 Andrew Cagney <cagney@redhat.com>
2951 * linux-proc.c: Include "gdb_string.h".
2952 * Makefile.in (linux-proc.o): Update dependency list.
2954 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2956 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2959 2002-08-01 Grace Sainsbury <graces@redhat.com>
2961 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2962 to_insert_watchpoint, to_remove_watchpoint,
2963 to_stopped_by_watchpoint, to_stopped_data_address,
2964 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2965 target vecctor. Define their corresponding macros so they call
2968 * target.c: Add default and debug versions of for
2969 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2970 to_insert_watchpoint, to_remove_watchpoint,
2971 to_stopped_by_watchpoint, to_stopped_data_address,
2972 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2974 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2976 * mips-tdep.c (mips_register_virtual_type): New function.
2977 (mips_gdbarch_init): Register mips_register_virtual_type()
2978 with gdbarch machinery.
2979 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2980 this file instead of tm-bigmips.h.
2981 (MIPS_REGSIZE): Delete this macro.
2982 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2983 multiarch version in mips-tdep.c will be found.
2985 2002-08-01 Andrew Cagney <cagney@redhat.com>
2987 * NEWS: Menion that CHILL has been made obsolete.
2989 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2990 * stabsread.c (read_range_type): Ditto.
2991 * gdbtypes.h: Ditto.
2992 * language.c (binop_type_check): Ditto.
2993 (binop_result_type): Ditto.
2994 (integral_type): Ditto.
2995 (character_type): Ditto.
2996 (string_type): Ditto.
2997 (boolean_type): Ditto.
2998 (structured_type): Ditto.
2999 (lang_bool_type): Ditto.
3000 (binop_type_check): Ditto.
3001 * language.h (_LANG_chill): Ditto.
3002 * dwarfread.c (set_cu_language): Ditto.
3003 * dwarfread.c (CHILL_PRODUCER): Ditto.
3004 * dwarfread.c (handle_producer): Ditto.
3005 * expression.h (enum exp_opcode): Ditto.
3006 * eval.c: Ditto for comments.
3007 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3008 * expprint.c (print_subexp): Ditto.
3009 (print_subexp): Ditto.
3010 * valops.c (value_cast): Ditto.
3011 (search_struct_field): Ditto.
3012 * value.h (COERCE_VARYING_ARRAY): Ditto.
3013 * symfile.c (init_filename_language_table): Ditto.
3014 (add_psymbol_with_dem_name_to_list): Ditto.
3015 * valarith.c (value_binop): Ditto.
3017 * valops.c (value_slice): Ditto.
3018 * symtab.h (union language_specific): Ditto.
3019 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3020 (SYMBOL_DEMANGLED_NAME): Ditto.
3021 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3022 * defs.h (enum language): Ditto.
3023 * symtab.c (got_symtab): Ditto.
3024 * utils.c (fprintf_symbol_filtered): Ditto.
3026 * ch-typeprint.c: Make file obsolete.
3027 * ch-valprint.c: Make file obsolete.
3028 * ch-lang.h: Make file obsolete.
3029 * ch-exp.c: Make file obsolete.
3030 * ch-lang.c: Make file obsolete.
3032 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3034 (TARGET_FLAGS_TO_PASS): Ditto.
3035 (CHILLFLAGS): Obsolete.
3037 (CHILL_FOR_TARGET): Obsolete.
3038 (CHILL_LIB): Obsolete.
3039 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3041 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3042 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3044 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3047 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3049 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3050 This does not change anything at the moment, but will be helpful
3051 later when full Ada support is integrated.
3053 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3055 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3058 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3060 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3061 and save it in a local variable. Use variable in later test.
3063 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3065 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3066 test. (Thanks to Daniel Jacobowitz.)
3068 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3070 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3071 (mips_abi_strings): Add "n64".
3072 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3074 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3076 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3077 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3079 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3081 * utils.c (host_pointer_to_address, address_to_host_pointer):
3082 Use gdb_assert() instead of explicit call to internal_error().
3084 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3086 * Makefile.in (rs6000-nat.o): Update dependencies.
3088 From Nicholas Duffek:
3089 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3090 (aix-thread.o): New rule.
3091 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3092 * config/powerpc/aix432.mh: New file.
3094 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3096 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3097 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3098 (fetch_core_registers, ppc_linux_supply_gregset)
3099 (ppc_linux_supply_fpregset): New functions.
3100 (ppc_linux_regset_core_fns): New.
3101 (_initialize_ppc_linux_tdep): Call add_core_fns.
3102 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3103 and ppc_linux_supply_gregset.
3104 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3105 (supply_fpregset): Call ppc_linux_supply_fpregset.
3106 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3108 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3110 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3112 * symtab.c (lookup_symbol): Demangle before lowercasing.
3114 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3116 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3118 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3119 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3120 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3121 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3123 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3124 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3125 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3126 (avr-tdep.o, mon960-rom.o): Ditto.
3127 (aout_stabs_gnu_h): Define.
3128 (symtab_h): Remove $(gdb_obstack_h).
3130 2002-07-30 Jim Blandy <jimb@redhat.com>
3132 Patch from David Carlton <carlton@math.stanford.edu>:
3133 * gdbinit.in: Move the `dir' commands that add GDB's own source
3134 directory to the search path to the end, so that the `gdb' source
3135 directory will be searched first.
3137 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3139 * gdb_obstack.h: New file.
3140 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3141 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3142 * objfiles.h: Include "gdb_obstack.h".
3143 * Makefile.in (gdb_obstack_h): Define.
3144 (symtab_h): Add $(gdb_obstack_h).
3145 (objfiles_h): Add $(gdb_obstack_h).
3147 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3148 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3149 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3150 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3151 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3152 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3153 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3154 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3156 * Makefile.in (bcache.o): Update dependencies.
3157 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3158 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3159 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3160 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3161 (stabsread.o, symfile.o, symmisc.o): Ditto.
3162 (symtab.o, typeprint.o, macroexp.o): Ditto.
3163 (macrotab.o, mdebugread.o): Ditto.
3164 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3165 (coff_ecoff_h, aout_aout64_h): Define.
3166 (aout_stabs_gnu_h, libaout_h): Define.
3168 2002-07-29 Andrew Cagney <cagney@redhat.com>
3170 * regcache.c (struct regcache_descr): Rename nr_registers to
3171 nr_cooked_registers. Revise comments describing the structure
3173 (init_regcache_descr): Update.
3174 (init_legacy_regcache_descr): Update.
3175 (read_register_gen, write_register_gen): When a cooked register in
3176 the raw register range, directly access the value from the raw
3179 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3181 * z8k-tdep.c: Do not include "obstack.h".
3182 * h8300-tdep.c, h8500-tdep.c: Ditto.
3183 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3184 * valprint.c, v850-tdep.c: Ditto.
3185 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3186 * mn10200-tdep.c: Ditto.
3188 * Makefile.in (z8k-tdep.o): Update dependencies.
3189 (m68hc11-tdep.o, valprint.o): Ditto.
3190 (v850-tdep.o, d10v-tdep.o): Ditto.
3191 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3192 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3193 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3194 (sh_opc_h, gdb_sim_sh_h): Define.
3195 (elf_sh_h, elf_bfd_h): Define.
3196 (opcode_m68hc11_h): Define.
3197 (OPCODES_SRC, OPCODES_DIR): define.
3198 (OPCODES): Use $(OPCODES_DIR).
3199 (gdb_sim_d10v_h): Rename sim_d10v_h.
3200 (gdb_sim_arm_h): Rename sim_arm_h.
3202 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3204 * utils.c (host_pointer_to_address, address_to_host_pointer):
3205 Change internal_error() message to indicate function responsible
3208 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3210 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3211 calls to local_hex_string_custom().
3213 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3215 * irix5-nat.c: Move IRIX shared library support from here...
3216 * solib-irix.c: ...to here. Revised substantially to work with
3217 generic solib framework.
3219 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3220 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3221 * mips-irix-tdep.c: New file.
3223 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3224 (mips-irix-tdep.o, solib-irix.o): New rules.
3225 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3227 * config/mips/irix6.mt (TDEPFILES): Likewise.
3228 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3230 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3232 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3233 disabled (via ``#if 0'') includes.
3235 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3237 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3238 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3239 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3240 Add support for the fpscr register.
3241 * rs6000-nat.c (regmap, fetch_inferior_registers)
3242 (store_inferior_registers, fetch_core_registers): Likewise.
3244 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3246 * rs6000-nat.c (language.h): Include.
3247 (special_regs): Delete this array.
3248 (regmap): New function.
3249 (fetch_register, store_register): Use regmap() to map gdb
3250 register numbers to ptrace register numbers. Also, use
3251 outputs from regmap() to make decisions regarding type of
3252 ptrace() call to make. In particular, don't compare against
3253 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3254 (fetch_inferior_registers, store_inferior_registers): Where
3255 possible, obtain register numbers from tdep struct. Don't
3256 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3257 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3258 (LAST_UISA_SP_REGNUM): Delete.
3260 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3262 * rs6000-nat.c (ppc-tdep.h): Include.
3263 (fetch_registers, store_register, fetch_core_registers): Don't
3264 access registers[] directly. Instead, use supply_register() or
3265 regcache_collect() as appropriate.
3266 (find_toc_address): Format hex address with local_hex_string().
3268 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3270 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3273 2002-07-24 Tom Tromey <tromey@redhat.com>
3275 * jv-exp.y: Marked all strings with _().
3276 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3278 (MethodInvocation, CastExpression, parse_number, yyerror,
3279 java_type_from_name, push_expression_name, yylex): Typo fixes.
3281 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3283 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3284 (tee_file_flush, tee_file_write, tee_file_fputs)
3285 (tee_file_isatty): New.
3286 * ui-file.h (tee_file_new): Add prototype.
3288 2002-07-24 Aidan Skinner <aidan@velvet.net>
3290 * ada-lang.c: Change k&r style function definitions to prototyped
3292 * ada-typeprint.c: Change k&r style function definitions to prototyped
3294 * ada-valprint.c: Change k&r style function definitions to prototyped
3297 2002-07-24 Andrew Cagney <cagney@redhat.com>
3299 * README: Remove reference to remote-bug.
3300 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3302 (m88k-nat.o): Delete rule.
3303 (m88k-tdep.o): Delete rule.
3304 (remote-bug.o): Delete rule.
3305 * MAINTAINERS: Mark as obsolete.
3306 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3307 * m88k-tdep.c: Make file obsolete.
3308 * config/m88k/m88k.mh: Ditto.
3309 * config/m88k/delta88v4.mh: Ditto.
3310 * config/m88k/delta88v4.mt: Ditto.
3311 * config/m88k/delta88.mt: Ditto.
3312 * config/m88k/delta88.mh: Ditto.
3313 * remote-bug.c: Ditto.
3314 * config/m88k/tm-delta88.h: Ditto.
3315 * config/m88k/nm-delta88v4.h: Ditto.
3316 * config/m88k/xm-delta88.h: Ditto.
3317 * config/m88k/xm-dgux.h: Ditto.
3318 * config/m88k/tm-m88k.h: Ditto.
3319 * config/m88k/nm-m88k.h: Ditto.
3320 * config/m88k/tm-delta88v4.h: Ditto.
3321 * m88k-nat.c: Ditto.
3322 * cxux-nat.c: Ditto.
3323 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3324 and m88*-*-* obsolete.
3325 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3328 2002-07-24 Andrew Cagney <cagney@redhat.com>
3330 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3331 constant. Same for local pointer variables.
3332 (extract_signed_integer): Ditto.
3333 * defs.h (extract_unsigned_integer): Update.
3334 (extract_signed_integer): Update.
3336 2002-07-24 Andrew Cagney <cagney@redhat.com>
3338 * regcache.c (regcache_raw_write): Change buf parameter to a
3339 constant void pointer.
3340 (regcache_raw_read): Change buf parameter to a void pointer.
3341 (legacy_write_register_gen): Change myaddr parameter a constant
3343 (supply_register): Change val parameter to a const void pointer.
3344 * regcache.h (regcache_raw_write): Update declaration.
3345 (regcache_raw_read): Update declaration.
3346 (supply_register): Update declaration.
3348 2002-07-24 Tom Tromey <tromey@redhat.com>
3350 * defs.h (gdb_readline_wrapper): Declare.
3351 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3352 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3353 * top.c (gdb_readline_wrapper): New function.
3354 (command_line_input): Use it.
3356 2002-07-24 Andrew Cagney <cagney@redhat.com>
3358 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3359 regcache_read and regcache_write.
3360 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3361 * regcache.c: Update.
3362 * sh-tdep.c (sh64_push_arguments): Update comment.
3363 (sh_pseudo_register_read): Update.
3364 (sh_pseudo_register_write): Update.
3365 (sh4_register_read): Update.
3366 (sh4_register_write): Update.
3367 (sh64_pseudo_register_read): Update.
3368 (sh64_pseudo_register_write): Update.
3369 (sh64_register_read): Update.
3370 (sh64_register_write): Update.
3371 * i386-tdep.c (i386_extract_return_value): Update.
3372 (i386_extract_struct_value_address): Update.
3373 (i386_extract_return_value): Update.
3374 * blockframe.c (generic_read_register_dummy): Update.
3375 (generic_call_dummy_register_unwind): Update
3376 * infrun.c (write_inferior_status_register): Update.
3378 2002-07-23 Jim Blandy <jimb@redhat.com>
3380 * parser-defs.h (expression_context_pc): Make this extern.
3381 (Thanks to Michael Snyder.)
3383 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3385 GDB 5.2.1 released from 5.2 branch.
3386 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3387 * README: Update to mention 5.2.1.
3389 2002-07-23 Mark Salter <msalter@redhat.com>
3391 * remote.c (remote_read_bytes): Fix check for error.
3393 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3395 * aix-thread.c (language.h): Include.
3396 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3397 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3398 Print newlines at end of debug messages.
3399 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3400 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3402 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3404 * aix-thread.c (ppc-tdep.h): Include.
3405 (special_register_p): New function.
3406 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3407 (store_regs_user_thread): Use register number information from
3408 gdbarch_tdep struct instead of hardcoded offsets relative to
3409 FIRST_UISA_SP_REGNUM.
3410 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3411 special_register_p() instead of using FPLAST_REGNUM and
3412 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3413 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3414 will be MQ's register number.
3416 2002-07-22 Michael Snyder <msnyder@redhat.com>
3418 * aix-thread.c (ops): Rename to aix_thread_ops.
3419 (base_ops): Rename to base_target.
3420 (ops_attach): Rename to aix_thread_attach.
3421 (ops_detach): Rename to aix_thread_detach.
3422 (ops_resume): Rename to aix_thread_detach.
3423 (ops_wait): Rename to aix_thread_wait.
3424 (ops_kill): Rename to aix_thread_kill.
3425 (init_ops): Rename to init_aix_thread_ops.
3426 (ops_fetch_register): Rename to aix_thread_fetch_register.
3427 (ops_store_register): Rename to aix_thread_store_register.
3428 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3429 (ops_thread_alive): Rename to aix_thread_thread_alive.
3430 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3431 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3432 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3433 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3434 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3435 (store_regs_lib): Rename to store_regs_user_thread.
3436 (store_regs_kern): Rename to store_regs_kernel_thread.
3438 2002-07-22 Michael Snyder <msnyder@redhat.com>
3440 * aix-thread.c (ops_prepare_to_store): Eliminate.
3441 (init_ops): Don't initialize ops.prepare_to_store.
3442 (store_regs_kern): Pre-fetch register buffers from child,
3443 because some registers may not be in the cache. Copy
3444 regs from register cache only if they are cached.
3445 (store_regs_lib): Copy regs from register cache only
3447 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3448 fill_gprs64): Ditto.
3450 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3452 * aix-thread.c (gdb_assert.h): Include.
3453 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3454 register sizes (from register cache) match size of buffer holding
3456 (fill_sprs32): Change parameter types to match those in the ptrace()
3458 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3459 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3461 2002-07-22 Michael Snyder <msnyder@redhat.com>
3463 * aix-thread.c (supply_sprs64): Cosmetic change.
3464 (supply_sprs32): Cosmetic change.
3465 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3466 (fill_sprs64): Use regcache_collect instead of read_register.
3467 (store_regs_lib): Use regcache_collect instead of
3468 read_register. Use fill_sprs32 instead of fill_sprs64,
3469 if debugging a 32-bit architecture.
3470 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3471 out of the register cache, instead of passing a pointer into
3472 the register cache directly to ptrace. Use regcache_collect
3473 insteaad of read_register.
3474 (ops_prepare_to_store): Use target_read_registers instead
3475 of read_register_bytes.
3477 2002-07-20 Aidan Skinner <aidan@velvet.net>
3479 * MAINTAINERS: Add self under write after approval.
3481 2002-07-20 Aidan Skinner <aidan@velvet.net>
3483 * ada-tasks.c: Change k&r style function definitions to prototyped
3486 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3488 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3489 * x86-64-tdep.c: Include "objfiles.h".
3490 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3491 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3493 2002-07-17 Michal Ludvig <michal@suse.cz>
3495 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3496 (update_context): Initialise cfa variable.
3498 2002-07-17 Michael Snyder <msnyder@redhat.com>
3500 * aix-thread.c: Shorten some long lines.
3501 Bring comments into line with code spec.
3503 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3505 * infrun.c: Re-indent using gdb_indent.sh.
3507 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3509 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3510 Leave the indentation temporarily untouched, to minimize the diffs.
3512 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3514 * stabsread.c: Make os9k sections of the code obsolete,
3516 * stabsread.h: Make os9k sections of the code obsolete.
3518 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3520 * linux-low.c (regsets_store_inferior_registers): Add free()
3521 at the end of a loop to prevent memory leak.
3522 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3523 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3524 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3526 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3528 2002-07-17 Jim Blandy <jimb@redhat.com>
3530 * macrocmd.c (info_macro_command): Remove newline from error
3533 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3535 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3536 (sh_gdbarch_init): Use it for sh-dsp.
3538 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3540 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3541 64-bit DWARF2 format.
3543 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3545 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3546 <sys/proc.h> when not available.
3548 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3550 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3551 * stabsread.c: Make os9k sections of the code obsolete.
3552 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3553 * config/i386/i386os9k.mt: Make file obsolete.
3554 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3555 (COMMON_OBS): Remove os9kread.o
3556 (SFILES): Remove os9kread.c.
3557 (os9kread.o, remote-os9k.o): Make target obsolete.
3558 * remote-os9k.c: Make file obsolete.
3559 * os9kread.c: Make file obsolete.
3562 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3564 * NEWS: Mention that the FR30 has been made obsolete.
3565 * fr30-tdep.c: Make file obsolete.
3566 * config/fr30/tm-fr30.h: Ditto.
3567 * config/fr30/fr30.mt: Ditto.
3568 * configure.tgt: Make fr30-*-elf obsolete.
3569 * MAINTAINERS: Make fr30-elf obsolete.
3571 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3573 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3574 found is not inside a section.
3576 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3578 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3580 (pdc_realloc): Use xrealloc() instead of realloc().
3582 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3584 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3585 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3586 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3589 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3591 * aix-thread.c (ptrace_check): Eliminate goto.
3592 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3595 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3597 * aix-thread.c (gdbcmd.h): Include.
3598 (DEBUG, DBG, DBG2, dbg): Eliminate.
3599 (debug_aix_thread): New static global.
3600 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3601 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3602 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3603 invocations to DBG and DBG2 macros to test against
3604 ``debug_aix_thread'' and call fprintf_unfiltered().
3605 (_initialize_aix_thread): Add new command "set debug aix-thread".
3607 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3609 From Gerhard Tonn <TON@de.ibm.com>:
3610 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3611 instead of supply_register.
3613 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3615 * dwarf2cfi.c: Include "gdb_assert.h".
3616 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3618 (update_context): Do not use __func__. Add missing ``break''.
3619 (update_context): Do not use __func__.
3621 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3623 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3624 and its setting. Set gdbarch instruction printing functions
3625 directly. For non-rs6000 case use new function
3626 gdb_print_insn_powerpc.
3627 (gdb_print_insn_powerpc): New function.
3629 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3631 * NEWS: Mention that the d30v has been marked obsolete.
3632 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3633 * configure.tgt: Mark d30v-*-* as obsolete.
3634 * d30v-tdep.c: Mark file as obsolete.
3635 * config/d30v/d30v.mt: Ditto.
3636 * config/d30v/tm-d30v.h: Ditto.
3638 2002-07-13 Aidan Skinner <aidan@velvet.net>
3640 * ada-tasks.c (add_task_entry): replace calls to
3641 malloc() with xmalloc
3642 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3644 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3645 ada_finish_decode_line_1, all_sals_for_line
3646 ada_breakpoint_rewrite): replace calls to free() with xfree()
3648 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3650 From Nicholas Duffek (with minor changes by Martin Hunt,
3651 Louis Hamilton, and Kevin Buettner):
3652 * aix-thread.c: New file.
3654 2002-07-12 Petr Sorfa <petrs@caldera.com>
3656 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3657 complaint for invalid attribute class or form.
3658 (read_func_scope): DW_AT_frame_base
3659 better handling of DW_AT_block*.
3660 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3661 better handling of DW_AT_block*.
3662 (read_common_block): DW_AT_location
3663 better handling of DW_AT_block*.
3664 (read_partial_die): DW_AT_location better handling
3666 (new_symbol): DW_AT_external better handling of
3667 DW_AT_block*. Proper initialization of variable
3669 (attr_form_is_block): New function that returns true
3670 if the attribute's form is of DW_FORM_block*.
3672 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3674 * valops.c (find_method_list): Remove comment about
3675 removed STATIC_MEMFUNCP argument.
3676 (value_find_oload_method_list): Likewise.
3678 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3680 From Nicholas Duffek:
3681 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3682 target_new_objfile_hook.
3684 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3686 From Nicholas Duffek:
3687 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3690 2002-07-12 Andrew Cagney <cagney@redhat.com>
3692 * MAINTAINERS: Mention --enable-sim-build-warnings.
3693 (m68hc11-elf): Disable sim build warnings.
3694 (m32r-elf): Mark as broken obsolete candidate.
3695 (x86_64-linux-gnu): Mark as buildable with -Werror.
3696 (arm-elf): Change -w to ``,'' which enables warnings but not
3699 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3701 * bcache.h: Update copyright.
3702 (struct bstring, struct bcache): Move definition to "bcache.c".
3703 Replaced by opaque declaration.
3704 (bcache_xfree): Replace free_bcache.
3705 (bcache_xmalloc, bcache_memory_used): Declare.
3707 * bcache.c: Update copyright.
3708 (struct bstring, struct bcache): Moved to here from "bcache.h".
3710 (bcache_xmalloc, bcache_memory_used): New functions.
3711 (bcache_xfree): Replace function free_bcache.
3713 * Makefile.in (objfiles.o): Add $(bcache_h).
3714 (objfiles_h): Remove $(bcache_h).
3715 (symfile.o): Add $(bcache_h).
3717 * symmisc.c: Update copyright.
3718 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3719 (print_objfile_statistics): Use bcache_memory_used.
3721 * symfile.c: Include "bcache.h".
3722 (reread_symbols): Use bcache_xfree.
3723 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3724 (add_psymbol_to_list): Pass psymbol_cache by value.
3725 (add_psymbol_with_dem_name_to_list): Ditto.
3727 * objfiles.h: Update copyright.
3728 (struct bcache): Declare opaque. Do not include "bcache.h".
3729 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3731 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3733 * objfiles.c: Include "bcache.h". Update copyright.
3734 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3736 (free_objfile): Use bcache_xfree.
3738 2002-07-11 Grace Sainsbury <graces@redhat.com>
3740 * monitor.c (monitor_fetch_register): Make name a constant.
3741 (monitor_store_register): Same.
3743 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3745 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3746 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3747 (finish_block) For non-function blocks, hash the symbol table. For
3748 function blocks, mark the symbol table as unhashed.
3749 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3750 (msymbol_hash_iw): Likewise.
3751 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3753 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3754 (lookup_minimal_symbol): Likewise for both.
3755 * symtab.h (struct block): Add `hashtable' flag. Comment the
3757 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3758 (ALL_BLOCK_SYMBOLS): Update.
3759 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3760 (struct symbol): Add `hash_next' pointer.
3761 * symtab.c (lookup_block_symbol): Search using the hash table when
3763 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3764 (search_symbols, find_addr_symbol): Likewise.
3766 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3767 (read_dst_symtab): Likewise.
3768 * jv-lang.c (get_java_class_symtab): Likewise.
3769 * mdebugread.c: Include "gdb_assert.h".
3770 (shrink_block): Assert that the block being modified is not hashed.
3771 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3772 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3774 (dump_symtab): Recognize hashed blocks.
3775 * printcmd.c (print_frame_args): Assert that function blocks do not
3776 have hashed symbol tables.
3777 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3778 (fill_in_ada_prototype, debug_print_block): Likewise.
3779 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3781 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3783 * stack.c (print_frame): Use result of frame_address_in_block()
3784 instead of fi->pc when evaluating symbols.
3785 (backtrace_command_1): Ditto.
3787 2002-07-11 Andrew Cagney <cagney@redhat.com>
3789 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3792 * arm-tdep.c (arm_register_name): Make return type constant.
3794 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3796 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3798 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3799 * s390-tdep.c (s390_fp_regnum): Ditto.
3800 (s390_read_fp): Ditto.
3801 (s390_pop_frame): Ditto.
3802 (_initialize_s390_tdep): Ditto.
3803 * remote.c (get_remote_state): Ditto.
3804 * procfs.c (mappingflags): Ditto.
3805 * memattr.c (_initialize_mem): Ditto.
3806 * mcore-tdep.c (mcore_pop_frame): Ditto.
3807 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3808 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3809 * language.c (set_case_str): Ditto.
3810 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3811 * frv-tdep.c (new_variant): Ditto.
3812 (frv_stopped_data_address): Ditto.
3813 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3814 (context_alloc): Ditto.
3815 (frame_state_alloc): Ditto.
3816 (unwind_tmp_obstack_init): Ditto.
3817 (unwind_tmp_obstack_free): Ditto.
3818 (cfi_read_fp): Ditto.
3819 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3820 (cris_pop_frame): Ditto.
3821 * c-lang.c (scanning_macro_expansion): Ditto.
3822 (finished_macro_expansion): Ditto.
3823 (c_preprocess_and_parse): Ditto.
3824 * gdbarch.sh: Ditto.
3825 * gdbarch.h, gdbarch.c: Regenerate.
3826 * config/mn10200/tm-mn10200.h: Adjust indentation.
3827 * target.c: Adjust indentation.
3828 * symtab.h: Adjust indentation.
3829 * stabsread.h: Adjust indentation.
3830 * remote-es.c: Adjust indentation.
3831 * os9kread.c: Adjust indentation.
3833 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3835 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3836 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3838 2002-07-10 Grace Sainsbury <graces@redhat.com>
3840 * NEWS: Mention m68k, mcore multi-arching.
3841 * MAINTAINERS: Change status of m68k, mcore to reflect
3844 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3846 * valops.c (find_overload_match): Free oload_syms.
3848 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3850 Define HAVE_SYS_PROC_H if sys/proc.h exists
3851 * configure.in: Add check for sys/proc.h
3852 * config.in: Regenerate.
3853 * configure: Regenerate.
3855 2002-07-09 Grace Sainsbury <graces@redhat.com>
3857 * config/m68k/tm-m68k.h: Remove macros wrapped in
3858 #if !GDB_MULTI_ARCH.
3860 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3862 * config.in, configure: Regenerate.
3864 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3866 * dwarf2cfi.c: Include "gcore.h".
3867 (execute_stack_op): Fix implementation of the
3868 DW_OP_deref and DW_OP_deref_size operators by letting do their
3869 lookup in the target.
3871 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3873 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3874 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3877 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3879 Fix PR gdb/595, gdb/602
3880 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3881 Don't call value_cast, just read the vtable pointer; update comments
3884 2002-07-05 Grace Sainsbury <graces@redhat.com>
3886 * config/mcore/tm-mcore.h: Remove file.
3887 * config/mcore/mcore.mt: Remove definition of TM_FILE
3888 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3890 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3892 * i386bsd-tdep.c: Include "gdb_string.h".
3894 2002-07-04 Grace Sainsbury <graces@redhat.com>
3896 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3897 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3899 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3900 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3901 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3902 (RETVAL_REGNUM): Move macros from tm-mcore.h
3903 (mcore_reg_struct_has_addr): New function.
3904 (mcore_gdbarch_init): Added initializations for the macros removed
3907 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3909 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3910 traditonal string branding within the ELF header.
3912 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3914 * symtab.c (remove_params): New function.
3915 (make_symbol_overload_list): Use it instead of cplus_demangle.
3916 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3918 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3920 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3922 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3924 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3925 and tdep->sigtramp_end.
3926 * i386obsd-nat.c: New file.
3927 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3929 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3930 Don't call get_current_frame().
3932 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3934 * i386-nat.c (child_post_startup_inferior): New function
3935 calling i386_cleanup_dregs if
3936 I386_USE_GENERIC_WATCHPOINTS is defined.
3937 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3938 conditional to acknowledge that i386-nat.c has its
3939 own child_post_startup_inferior function.
3941 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3943 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3944 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3945 instead of MAX_REGISTER_RAW_SIZE.
3946 (i386_extract_return_value, i386_extract_struct_value_address):
3947 Convert to use regcache.
3948 (i386_gdbarch_init): Set max_register_raw_size and
3949 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3950 Set extract_return_value and extract_struct_value_address instead
3951 of their deprecated variants.
3953 Convert i386 target to generic dummy frames.
3954 * i386-tdep.c: Include "symfile.h".
3955 (i386_frameless_signal_p): Consider a function to be frameless if
3956 the pc points at the first instruction of the function.
3957 (i386_frame_chain): Handle (generic) call dummies.
3958 (i386_frame_saved_pc): Likewise.
3959 (i386_frame_init_saved_regs): Remove code dealing with call
3960 dummies on the stack.
3961 (i386_push_dummy_frame): Removed.
3962 (i386_call_dummy_words): Removed.
3963 (i386_fix_call_dummy): Removed.
3964 (i386_push_return_address): New function.
3965 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3966 parameter, and don't call get_current_frame.
3967 (i386_pop_frame): New function.
3968 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3969 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3970 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3971 call_dummy_length to 0, set call_dummy_words to NULL, set
3972 sizeof_call_dummy_words to 0, set fix_call_dummy to
3973 generic_fix_call_dummy, set pc_in_call_dummy to
3974 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3975 generic_push_dummy_frame, set push_return_address to
3976 i386_push_return_address and set frame_chain_valid to
3977 generic_file_frame_chain_valid.
3979 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3981 * gdbarch.sh (struct regcache): Add opaque declaration.
3982 (EXTRACT_RETURN_VALUE): New architecture method.
3983 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3984 * gdbarch.h, gdbarch.c: Regenerate.
3985 * arch-utils.c (legacy_extract_return_value): New function.
3986 * arch-utils.h (legacy_extract_return_value): Declare.
3987 * values.c (value_being_returned): Re-enable code handling
3988 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3989 deprecated_grub_regcache_for_registers call to block handling
3990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3991 (EXTRACT_RETURN_VALUE): Do not define.
3993 2002-07-03 Grace Sainsbury <graces@redhat.com>
3995 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3996 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3997 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3998 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3999 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4000 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4001 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4002 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4003 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4004 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4005 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4006 argument so the function fits the prototype in the architecture
4008 (mcore_pop_frame): Remove argument so the function fits the
4009 prototype. Use get_current_frame instead of the argument.
4010 (mcore_push_arguments): Change type of struct_return so the
4011 function can be used in the architecture vector.
4012 (mcore_store_struct_return): Add.
4013 (mcore_frame_init_saved_regs): Add.
4014 (mcore_gdbarch_init): Add function calls to replace the macros
4015 removed from tm-mcore.h
4017 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4019 * infcmd.c (print_return_value): Remove compatibility code calling
4020 deprecated_grub_regcache_for_registers.
4022 * values.c: Include "regcache.h".
4023 (value_being_returned): Update. Use
4024 deprecated_grub_regcache_for_registers to extract the register
4026 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4027 ``struct regcache''.
4028 * Makefile.in (values.o): Add dependency on $(regcache_h).
4030 * inferior.h (run_stack_dummy): Change type of second parameter to
4031 a ``struct regcache''.
4032 * valops.c (hand_function_call): Change type of retbuf to ``struct
4033 regcache''. Allocate using regcache_xmalloc, clean using
4034 make_cleanup_regcache_xfree.
4035 * infcmd.c (run_stack_dummy): Update. Use
4036 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4038 * regcache.c (do_regcache_xfree): New function.
4039 (make_cleanup_regcache_xfree): New function.
4040 * regcache.h (make_cleanup_regcache_xfree): Declare.
4042 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4044 * event-top.c (command_line_handler): Don't read past
4045 beginning of buffer.
4047 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4049 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4051 (varobj_create): Store frame_id for root.
4052 (varobj_gen_name): Use xasprintf.
4053 (varobj_update): Save and restore frame using get_frame_id() and
4055 (create_child): Use xasprintf.
4056 (new_root_variable): Initialize frame_id.
4057 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4058 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4059 to prevent memory leak.
4061 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4063 * valops.c (hand_function_call): Move declaration of retbuf to
4064 start of function, allocate using malloc, add a cleanup but before
4065 the inf_status cleanup, cleanup the buffer. Rename local variable
4066 old_chain to inf_status_cleanup.
4068 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4070 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4072 * cli/cli-decode.c (cmd_func_p): New function.
4073 (cmd_func): New function.
4075 * command.h: Add cmd_func() and cmd_func_p().
4077 2002-07-03 Grace Sainsbury <graces@redhat.com>
4079 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4080 (REGISTER_SIZE): Remove.
4081 (MAX_REGISTER_RAW_SIZE): Remove.
4082 (REGISTER_VIRTUAL_TYPE): Remove.
4083 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4084 (REGISTER_NAME): Remove.
4085 (USE_GENERIC_DUMMY_FRAMES): Remove.
4086 (CALL_DUMMY): Remove.
4087 (CALL_DUMMY_START_OFFSET): Remove.
4088 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4089 (CALL_DUMMY_LOCATION): Remove.
4090 (FIX_CALL_DUMMY): Remove.
4091 (CALL_DUMMY_ADDRESS): Remove.
4092 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4093 (SAVE_DUMMY_FRAME_TOS): Remove.
4094 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4095 (mcore_register_virtual_type): New function.
4096 (mcore_register_byte): New function.
4097 (mcore_register_size): New function.
4098 (mcore_register_name): New function.
4099 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4100 macros removed from tm-mcore.h.
4101 (mcore_dump_tdep): Add.
4102 (_initialize_mcore_tdep): Add gdbarch_register call.
4104 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4106 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4107 frameless_look_for_prologue, such that we actually call this
4110 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4112 * frame.h (frame_address_in_block): New function.
4114 * blockframe.c (frame_address_in_block): New function extracted
4115 from get_frame_block().
4116 (get_frame_block): Use frame_address_in_block().
4117 (block_innermost_frame): Use frame_address_in_block() to match
4118 the frame pc address against the block boundaries rather than
4119 the frame pc directly. This prevents a failure when a frame pc
4120 is actually a return-address pointing immediately after the end
4123 2002-07-02 Grace Sainsbury <graces@redhat.com>
4125 * MAINTAINERS: Add self under write after approval.
4127 2002-07-02 Grace Sainsbury <graces@redhat.com>
4129 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4130 used in architecture vector. The default is
4131 m68k_local_breakpoint_from_pc.
4132 (m68k_local_breakpoint_from_pc): Add.
4133 (enum): Add register numbers from tm-m68k.h.
4134 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4136 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4137 GDB_MULTI_ARCH_PARTIAL.
4138 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4139 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4141 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4142 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4143 to enum in m68k-tdep.c
4145 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4147 * solib-osf.c (open_map): Compute the list of shared libraries
4148 loaded by the inferior, rather than the list of libraries loaded
4149 by GDB itself. Otherwise, GDB ends up reading the symbols from
4150 the wrong shared libraries...
4152 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4154 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4155 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4157 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4159 (FRAMELESS_SIGNAL): Remove function.
4160 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4161 i386_linux_saved_pc_after_call): Removed.
4162 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4163 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4164 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4166 * i386-tdep.c (i386_frameless_signal_p): New function.
4167 (i386_frame_chain): Deal with frameless signals.
4168 (i386_sigtramp_saved_sp): New function.
4169 (i386_frame_saved_pc): Deal with frameless signals.
4170 (i386_saved_pc_after_call): Make sure the correct value is
4171 returned just after entry into a sigtramp.
4172 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4173 i386fbsd4_sc_sp_offset): New variables.
4174 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4175 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4176 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4177 similiar to what we already did for sc_pc_offset.
4178 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4181 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4183 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4185 * config/i386/tm-x86-64linux.h: New.
4186 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4188 * config/i386/nm-x86-64.h: Rename to ...
4189 * config/i386/nm-x86-64linux.h: ... this one.
4190 * config/i386/x86-64linux.mh: Reflect the above change.
4192 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4194 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4195 with sigcontext_addr. Add sc_sp_offset.
4196 (i386bsd_sigtramp_saved_pc): Remove prototype.
4197 (i386bsd_sicontext_addr): Add prototype.
4198 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4199 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4200 (i386_svr4_sigtramp_saved_pc): Removed.
4201 (i386_svr4_sigcontext_addr): New function.
4202 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4203 Initialize tdep->sigcontext_addr instead. Initialize
4204 tdep->sc_pc_offset and tdep->sc_sp_offset.
4205 (i386_gdbarch_init): Likewise.
4206 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4208 (i386bsd_sigtramp_saved_pc): Remove function.
4209 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4210 Initialize tdep->sigcontext_addr instead. Initialize
4212 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4213 of tdep->sigtramp_saved_pc.
4214 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4215 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4218 * i386-tdep.c (i386_frameless_function_invocation,
4219 i386_frame_num_args, i386_frame_init_saved_regs,
4220 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4221 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4222 i386_extract_return_value, i386_store_return_value,
4223 i386_extract_struct_value_address, i386_register_virtual_type,
4224 i386_register_convertible, i386_register_convert_to_virtual,
4225 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4226 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4229 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4231 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4233 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4234 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4235 this macro. Include "value.h".
4237 2002-06-30 Aidan Skinner <aidan@velvet.net>
4239 * ada-exp.tab.c: remove as it's a generated file
4240 * ada-lex.c: remove as it's a generated file
4242 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4244 * config/i386/tm-i386.h (struct frame_info, struct
4245 frame_saved_regs, struct value, struct type): Remove forward
4248 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4249 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4250 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4251 (FILL_FPXREGSET): Define.
4253 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4255 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4256 i[3456]86-*-netbsd* case.
4257 * config/i386/tm-obsd.h: Removed.
4258 * config/i386/obsd.mt: Removed.
4259 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4261 (MH_CFLAGS): Add -DYYDEBUG=0.
4263 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4264 i386nbsd_sc_pc_offset on OpenBSD too.
4266 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4267 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4268 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4270 * i386bsd-tdep.c: Include "arch-utils.h".
4271 (i386bsd_aout_in_solib_call_trampoline): New function.
4272 (i386bsd_init_abi): Set in_solib_call_trampoline to
4273 i386bsd_aout_in_solib_call_trampoline.
4274 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4275 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4277 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4279 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4280 (struct obstack, struct bcache): Add opaque declarations.
4281 * Makefile.in (macrotab_h): Update
4283 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4285 * blockframe.c (generic_find_dummy_frame): Change return type to
4286 ``struct regcache''.
4287 (struct dummy_frame): Replace field ``registers'' with regcache, a
4288 struct regcache object.
4289 (generic_find_dummy_frame): Update.
4290 (generic_push_dummy_frame): Update. Use regcache_xfree,
4291 regcache_xmalloc and regcache_cpy.
4292 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4294 (deprecated_generic_find_dummy_frame): Update.
4295 (generic_read_register_dummy): Update. Use
4296 regcache_read_as_address.
4297 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4298 (generic_get_saved_register): Update. Use regcache_read.
4300 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4302 * Makefile.in (objfiles_h): Add $(bcache_h).
4303 * objfiles.h: Include "bcache.h".
4305 * Makefile.in (symtab_h): Remove $(bcache_h).
4306 * symtab.h: Do not include "bcache.h".
4308 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4310 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4311 generic_func_frame_chain_valid.
4313 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4315 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4316 * config/i386/tm-fbsd.h: Likewise.
4318 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4320 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4321 generic_unwind_get_saved_register.
4323 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4325 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4326 * regcache.c (supply_register): Add missing argument to
4327 register_buffer call.
4329 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4331 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4332 Solaris /bin/grep does not not like it. From Peter Schauer.
4334 2002-06-26 Tom Tromey <tromey@redhat.com>
4336 * command.h (add_setshow_cmd): Declare.
4337 (add_setshow_cmd_full): Declare.
4338 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4339 returns void. Use add_setshow_cmd_full.
4340 (add_setshow_cmd_full): New function.
4341 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4342 (add_setshow_boolean_cmd): Likewise.
4344 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4346 * config/vax/tm-vax.h: Protect from multiple inclusion.
4347 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4348 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4349 * config/vax/tm-vaxbsd.h: ...here. New file.
4350 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4352 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4354 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4355 (BELIEVE_PCC_PROMOTION): Remove.
4356 (AP_REGNUM): Move to...
4357 * config/vax/nm-vax.h: ...here.
4358 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4359 (vax_breakpoint_from_pc): New function.
4360 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4361 and gdbarch_believe_pcc_promotion.
4363 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4365 * Makefile.in (vax_tdep_h): Define.
4366 (vax-tdep.o): Use $(vax_tdep_h).
4367 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4368 (vax_dump_tdep): New function.
4369 (_initialize_vax_tdep): Register vax_dump_tdep.
4370 * vax-tdep.h: Include osabi.h.
4371 (struct gdbarch_tdep): New.
4373 2002-06-26 Andrew Cagney <cagney@redhat.com>
4375 * frame.h (deprecated_generic_find_dummy_frame): Rename
4376 generic_find_dummy_frame.
4377 * blockframe.c (generic_find_dummy_frame): Make static.
4378 (deprecated_generic_find_dummy_frame): New function.
4379 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4380 generic_find_dummy_frame with deprecated_find_dummy_frame.
4381 (sh64_nofp_frame_init_saved_regs): Ditto.
4382 (sh_fp_frame_init_saved_regs): Ditto.
4383 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4384 (s390_frame_chain): Ditto.
4385 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4387 2002-06-26 Grace Sainsbury <graces@redhat.com>
4389 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4390 gdbarch vector are at the top.
4392 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4393 (FRAME_ARGS_ADDRESS): Remove.
4394 (FRAME_LOCALS_ADDRESS): Remove.
4395 (FRAME_NUM_ARGS): Remove.
4396 (FRAME_ARGS_SKIP): Remove.
4397 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4398 (m68k_gdbarch_init): Add gdbarch initializations for macros
4399 undefined in tm-m68k.h
4401 2002-06-26 Grace Sainsbury <graces@redhat.com>
4403 * monitor.h: Add the function regname to monitor_ops
4404 structure. This way NUM_REGS does not have to be a constant.
4405 * monitor.c (monitor_fetch_register): Added support for regname
4406 function. The function is called if the array regnames is NULL.
4407 (monitor_store_register): Same.
4408 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4410 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4411 cpu32bug_cmds.regname to point to new function.
4412 * abug-rom.c (abug_regname): Same as above.
4413 (init_abug_cmds): Same.
4414 * dbug-rom.c (dbug_regname): Same as above.
4415 (init_dbug_cmds): Same.
4416 * remote-est.c (est_regname): Same.
4417 (init_est_cmds): Same.
4418 * rom68k-rom.c (rom68k_regname): Same.
4419 (init_rom68k_cmds): Same.
4421 2002-06-25 Tom Tromey <tromey@redhat.com>
4423 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4425 2002-06-25 Andrew Cagney <cagney@redhat.com>
4427 * infrun.c (stop_registers): Change variable's type to ``struct
4429 (xmalloc_inferior_status): Delete function.
4430 (free_inferior_status): Delete function.
4431 (normal_stop): Use regcache_cpy.
4432 (struct inferior_status): Change type of fields ``stop_registers''
4433 and ``registers'' to ``struct regcache''.
4434 (write_inferior_status_register): Use regcache_write.
4435 (save_inferior_status): Instead of calling
4436 xmalloc_inferior_status, allocate the inf_status buffer directly.
4437 Use regcache_dup_no_passthrough and regcache_dup to save the
4439 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4440 Replace the stop_registers regcache instead of overriding it. Use
4441 regcache_xfree. Instead of calling free_inferior_status, xfree
4442 the buffer directly.
4443 (discard_inferior_status): Use regcache_xfree. Instead of calling
4444 free_inferior_status, xfree the buffer directly.
4445 (build_infrun): Use regcache_xmalloc.
4446 (_initialize_infrun): Delete redundant call to build_infrun.
4448 * Makefile.in (infcmd.o): Add $(regcache_h).
4450 * infcmd.c: Include "regcache.h".
4451 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4452 obtain the address of `stop_registers' register buffer.
4453 (print_return_value): Ditto.
4455 * inferior.h (struct regcache): Add opaque declaration.
4456 (stop_registers): Change variable's declared type to ``struct
4459 2002-06-24 Tom Tromey <tromey@redhat.com>
4461 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4462 * target.c (initialize_targets): Fixed typo in
4463 trust-readonly-sections `show' documentation.
4465 * main.c: Marked all strings with _().
4467 2002-06-24 Don Howard <dhoward@redhat.com>
4469 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4470 that means max CORE_ADDR+1.
4471 (lookup_mem_region): Ditto.
4472 (mem_info_command): Ditto.
4474 2002-06-24 Grace Sainsbury <graces@redhat.com>
4476 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4477 (REGISTER_BYTES_OK): Remove.
4478 (REGISTER_BYTES): Remove.
4479 (STORE_STRUCT_RETURN): Remove.
4480 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4481 (STORE_RETURN_VALUE): Remove.
4482 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4483 (FRAME_CHAIN): Remove.
4484 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4485 (FRAME_SAVED_PC): Remove.
4486 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4487 (m68k_store_struct_return): Add.
4488 (m68k_deprecated_extract_return_value): Add.
4489 (m68k_deprecated_extract_struct_value_address): Add.
4490 (m68k_store_return_value): Add.
4491 (m68k_frame_chain): Add.
4492 (m68k_frameless_function_invocation): Add.
4493 (m68k_frame_saved_pc): Add.
4494 (m68k_gdbarch_init): added set_gdbarch calls for new
4495 functions and deleted macros.
4497 2002-06-23 Tom Tromey <tromey@redhat.com>
4499 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4500 (ALLDEPFILES): Likewise.
4501 (udiheaders): Removed.
4502 (udip2soc.o): Likewise.
4503 (udi2go32.o): Likewise.
4505 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4507 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4509 * infrun.c (_initialize_infrun): Delete unnecessary call to
4512 * regcache.h: Update comments describing the regcache_cpy family
4514 (regcache_save, regcache_restore): Delete declaration.
4515 (regcache_save_no_passthrough): Delete declaration.
4516 (regcache_restore_no_passthrough): Delete declaration.
4517 * regcache.c (regcache_save): Delete function.
4518 (regcache_save_no_passthrough): Delete function.
4519 (regcache_restore): Delete function.
4520 (regcache_restore_no_passthrough): Delete function.
4522 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4524 * config/m68k/tm-m68k.h: Fix typo.
4525 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4526 (m68k_frame_init_saved_regs): Declare.
4528 2002-06-21 Jim Blandy <jimb@redhat.com>
4530 Remove some vestiges of Harris 88k support.
4531 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4532 register numbering quirk.
4533 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4534 odd symbols occurring in Harris 88k ELF targets.
4536 2002-06-21 Tom Tromey <tromey@redhat.com>
4538 * gdb_locale.h: New file.
4539 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4540 (defs_h): Added gdb_locale.h.
4541 * configure, config.in: Rebuilt.
4542 * configure.in (PACKAGE): Define.
4543 * defs.h: Include gdb_locale.h.
4544 * main.c (captured_main): Call setlocale, bindtextdomain,
4547 2002-06-21 Dave Brolley <brolley@redhat.com>
4549 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4550 * config/frv/frv.mt: New file.
4551 * config/frv/tm-frv.h: New file.
4552 * configure.tgt: Support frv-*-*.
4553 * Makefile.in (frv-tdep.o): New target.
4554 * frv-tdep.c: New file.
4555 * NEWS: Mention frv.
4557 2002-06-21 Dave Brolley <brolley@redhat.com>
4559 * MAINTAINERS: Add self to "Write After Approval" list.
4561 2002-06-21 Grace Sainsbury <graces@redhat.com>
4563 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4564 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4565 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4566 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4567 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4569 * m68k-tdep.c: Include arch-utils.h
4570 (m68k_register_raw_size): Add.
4571 (m68k_register_virtual_size): Add.
4572 (m68k_register_virtual_type): Add.
4573 (m68k_register_name): Add.
4574 (m68k_stack_align): Add.
4575 (m68k_register_byte): Add.
4576 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4579 2002-06-21 Grace Sainsbury <graces@redhat.com>
4581 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4582 m68k_find_saved_regs.
4583 (m68k_pop_frame): Removed saved_regs structure, and replaced
4584 references to it with frame->saved_regs.
4585 (m68k_gdbarch_init): Added function calls to initialize the
4587 (m68k_fix_call_dummy): Add.
4588 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4589 (CALL_DUMMY): Remove.
4590 (CALL_DUMMY_LENGTH): Remove.
4591 (CALL_DUMMY_START_OFFSET): Remove.
4592 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4593 (FIX_CALL_DUMMY): Remove.
4594 (PUSH_DUMMY_FRAME): Remove.
4595 (POP_FRAME): Remove.
4597 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4599 * parse.c (parse_fprintf): New function used to avoid calls to
4600 fprintf in bison parser generated debug code.
4601 * parser-defs.h: Declaration of new parse_fprintf function.
4602 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4603 Set YYDEBUG to 1 by default.
4604 Set YYFPRINTF as parse_fprintf.
4606 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4608 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4610 (pointer_encoding, enum ptr_encoding): New.
4611 (execute_cfa_program): Take care about pointer encoding.
4612 (dwarf2_build_frame_info): Only call parse_frame_info for
4613 .debug_frame and .eh_frame.
4614 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4615 fixed augmentation handling, added relative addressing,
4616 ignore duplicate FDEs. Added comments.
4617 * dwarf2cfi.c: Reindented.
4619 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4621 * event-top.c (command_handler): Don't use space_at_cmd_start
4622 unless there is sbrk() on the host. Assign time and space data
4623 to union fields of the appropriate length.
4625 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4627 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4628 x86_64_register_name. Return type changed to 'const char *'.
4629 (x86_64_register_name2nr): Rename to x86_64_register_number.
4630 (x86_64_gdbarch_init): Update to reflect the change.
4631 * x86-64-tdep.h: Ditto.
4632 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4633 (supply_fpregset): Ditto.
4635 2002-06-19 Andrew Cagney <cagney@redhat.com>
4637 * regcache.h: Update copyright.
4638 (struct regcache, struct gdbarch): Add opaque declarations.
4639 (current_regcache): Declare global variable.
4640 (regcache_read, regcache_write): Add gdbarch parameter.
4641 (regcache_save, regcache_save_no_passthrough)
4642 (regcache_restore, regcache_restore_no_passthrough)
4643 (regcache_dup, regcache_dup_no_passthrough)
4644 (regcache_cpy, regcache_cpy_no_passthrough)
4645 (deprecated_grub_regcache_for_registers)
4646 (deprecated_grub_regcache_for_register_valid)
4647 (regcache_valid_p): Add function declarations.
4649 * regcache.c: Update copyright.
4650 (regcache_descr_handle): New global variable.
4651 (struct regcache_descr): Define.
4652 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4653 (regcache_descr, xfree_regcache_descr): New functions.
4654 (struct regcache): Define.
4655 (regcache_xmalloc, regcache_xfree): New functions.
4656 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4657 (regcache_dup, regcache_dup_no_passthrough): New functions.
4658 (regcache_valid_p, regcache_read_as_address): New functions.
4659 (deprecated_grub_regcache_for_registers): New function.
4660 (deprecated_grub_regcache_for_register_valid): New function.
4661 (current_regcache): New global variable.
4662 (register_buffer): Add regcache parameter. Update calls.
4663 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4664 (read_register_gen, write_register_gen): Update register_buffer
4665 call. Test for legacy_p instead of gdbarch_register_read_p or
4666 gdbarch_register_write_p.
4667 (regcache_collect): Update register_buffer call.
4668 (build_regcache): Rewrite. Use deprecated grub functions.
4669 (regcache_save, regcache_save_no_passthrough): New functions.
4670 (regcache_restore, regcache_restore_no_passthrough): New
4672 (_initialize_regcache): Create the regcache_data_handle. Swap
4673 current_regcache global variable.
4675 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4676 parameter to regcache_read and regcache_write calls.
4677 (sh4_register_read): Ditto.
4678 (sh64_pseudo_register_read): Ditto.
4679 (sh64_register_read): Ditto.
4680 (sh_pseudo_register_write): Ditto.
4681 (sh4_register_write): Ditto.
4682 (sh64_pseudo_register_write): Ditto.
4683 (sh64_register_write): Ditto.
4685 * defs.h (XCALLOC): Define.
4687 2002-06-19 Grace Sainsbury <graces@redhat.com>
4689 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4690 * m68k-tdep.c (m68k_gdbarch_init): Added.
4691 (m68k_dump_tdep): Added.
4693 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4695 * ada-lang.c (fill_in_ada_prototype): Update comment.
4697 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4699 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4701 (mips_abi_string, mips_abi_strings): New.
4702 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4703 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4704 tdep->mips_abi_string. Honor mips_abi_string. Default to
4705 O32 if no ABI is found.
4706 (mips_dump_tdep): Use mips_abi_strings.
4707 (mips_abi_update): New function.
4708 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4709 ``set mips abi'' and ``show mips abi''. Check the size of
4712 2002-06-19 Andrew Cagney <cagney@redhat.com>
4714 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4717 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4719 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4720 current frame using only the first stack size adjustment. All
4721 subsequent size adjustments are not considered to be part of
4722 the "static" part of the current frame.
4723 Compute the address of the saved registers relative to the
4724 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4725 in use in this frame.
4727 2002-06-18 Don Howard <dhoward@redhat.com>
4729 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4730 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4731 suggesting this solution.
4733 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4735 * config/romp/xm-rtbsd.h: Delete file.
4736 * config/romp/rtbsd.mh: Delete file.
4738 2002-06-18 Keith Seitz <keiths@redhat.com>
4740 * breakpoint.c (condition_command): Post breakpoint_modify
4741 when a condition is added to an existing breakpoint.
4742 (commands_command): Likewise for commands.
4743 (set_ignore_count): Likewise for ignore counts.
4744 If no tty, do not simply return, still need to send event
4746 (ignore_command): Only print a newline if the command came
4748 Don't call breakpoints_changed, since this is now properly
4749 handled by set_ignore_count.
4751 2002-06-18 Andrew Cagney <cagney@redhat.com>
4753 * MAINTAINERS: Note that cris-elf target can be compiled with
4755 * cris-tdep.c (cris_register_name): Make return type constant.
4756 (cris_breakpoint_from_pc): Ditto.
4758 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4760 * frame.h (struct frame_info): Change type of context to
4763 2002-06-17 Andrew Cagney <cagney@redhat.com>
4765 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4767 * gdbarch.h, gdbarch.c: Regenerate.
4768 * config/mips/tm-mips.h (mips_register_name): Update.
4769 * i386-tdep.h (i386_register_name): Update.
4770 * mips-tdep.c (mips_register_name): Update
4771 * alpha-tdep.c (alpha_register_name): Update.
4772 * arch-utils.c (legacy_register_name): Update.
4773 * arch-utils.h (legacy_register_name): Update.
4774 * avr-tdep.c (avr_register_name): Update.
4775 * ia64-tdep.c (ia64_register_name): Update.
4776 * i386-tdep.c (i386_register_name): Update.
4777 * sparc-tdep.c (sparc32_register_name): Update.
4778 (sparc64_register_name): Update.
4779 (sparclite_register_name): Update.
4780 (sparclet_register_name): Update.
4781 * sh-tdep.c (sh_generic_register_name): Update.
4782 (sh_sh_register_name): Update.
4783 (sh_sh3_register_name): Update.
4784 (sh_sh3e_register_name): Update.
4785 (sh_sh_dsp_register_name): Update.
4786 (sh_sh3_dsp_register_name): Update.
4787 (sh_sh4_register_name): Update.
4788 (sh_sh64_register_name): Update.
4789 * s390-tdep.c (s390_register_name): Update.
4790 * rs6000-tdep.c (rs6000_register_name): Update.
4791 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4792 (ns32k_register_name_32382): Update.
4793 * d10v-tdep.c (d10v_ts2_register_name): Update.
4794 (d10v_ts3_register_name): Update.
4795 * xstormy16-tdep.c (xstormy16_register_name): Update.
4796 * vax-tdep.c (vax_register_name): Update.
4797 * v850-tdep.c (v850_register_name): Update.
4798 * m68hc11-tdep.c (m68hc11_register_name): Update.
4799 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4800 (am33_register_name): Update.
4802 2002-06-17 Grace Sainsbury <graces@redhat.com>
4804 * m68k-tdep.c: Reindented.
4806 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4808 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4809 list of predefined types.
4811 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4813 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4814 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4815 REGISTER_CONVERT_TO_RAW): Remove defines.
4816 (i386_register_virtual_type, i386_register_convertible,
4817 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4819 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4820 macros mentioned above.
4822 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4823 (i386lynx_saved_pc_after_call): Remove prototype.
4824 * i386ly-tdep.c: Include "i386-tdep.h".
4825 (i386lynx_saved_pc_after_call): Make static. Use
4826 read_memory_nobpt instead of read_memory. Use
4827 read_memory_unsigned_integer instead of read_memory_integer.
4828 (i386lynx_init_abi): New function.
4829 (i386lynx_coff_osabi_sniffer): New function.
4830 (_initialize_i386bsd_tdep): New function.
4832 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4833 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4834 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4835 (i386_fix_call_dummy): Remove prototype.
4836 * i386-tdep.c (i386_call_dummy_words): New variable.
4837 (i386_gdbarch_init): Adjust for removal of the
4838 macros mentioned above.
4840 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4842 * command.h (add_setshow_auto_boolean_cmd): Replace
4843 add_set_auto_boolean_cmd.
4844 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4845 add_set_auto_boolean_cmd.
4846 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4847 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4848 mask-address'' command.
4849 (show_mask_address): Add cmd parameter.
4850 * remote.c (add_packet_config_cmd): Update. Change type of
4851 set_func and show_func to cmd_sfunc_ftype.
4852 (_initialize_remote): Update `set remote Z-packet'
4853 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4854 (show_remote_protocol_e_packet_cmd): Ditto.
4855 (show_remote_protocol_E_packet_cmd): Ditto.
4856 (show_remote_protocol_P_packet_cmd): Ditto.
4857 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4858 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4859 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4860 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4861 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4862 (show_remote_protocol_Z_packet_cmd): Ditto.
4863 (show_remote_protocol_binary_download_cmd): Ditto.
4864 (show_remote_cmd): Pass NULL to all of above.
4866 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4868 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4869 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4870 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4871 POP_FRAME): Remove defines.
4872 (i386_push_arguments, i386_store_struct_return,
4873 i386_extract_return_value, i386_store_return_value,
4874 i386_extract_struct_value_address, i386_push_dummy_frame,
4875 i386_pop_frame): Renove prototypes.
4876 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4877 macros mentioned above.
4879 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4881 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4882 add_set_boolean_cmd.
4883 (add_setshow_cmd): New function.
4884 * command.h (add_setshow_boolean_cmd): Replace
4885 add_set_boolean_cmd.
4886 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4887 and ``set rdiromatzero''.
4888 * maint.c (_initialize_maint_cmds): Update commented out code.
4889 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4890 * target.c (initialize_targets): Update `set
4891 trust-readonly-sections'.
4892 * remote.c (_initialize_remote): Update `set remotebreak'.
4894 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4896 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4897 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4898 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4899 fit into multi-arch framework.
4900 (i386_breakpoint_from_pc): New function.
4901 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4904 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4905 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4906 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4907 (i386_frameless_function_invocation, i386_frame_num_args,
4908 i386_frame_init_saved_regs): Remove prototypes.
4909 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4910 macros mentioned above.
4912 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4914 * cli/cli-decode.c (set_cmd_cfunc): Update.
4915 (set_cmd_sfunc): Update.
4916 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4917 (set_cmd_sfunc, set_cmd_cfunc): Update.
4918 * cli/cli-decode.h: Update.
4920 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4922 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4923 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4925 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4927 * defs.h (auto_boolean): Declare enum.
4928 * command.h (cmd_auto_boolean): Delete enum.
4929 * mips-tdep.c (mask_address_var): Update.
4930 (mips_mask_address_p): Update.
4931 (show_mask_address): Update.
4932 * remote.c (struct packet_config): Update.
4933 (update_packet_config): Update.
4934 (show_packet_config_cmd): Update.
4935 (packet_ok): Update.
4936 (add_packet_config_cmd): Update.
4937 (_initialize_remote):
4938 * command.h: Update.
4939 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4940 (do_setshow_command): Update.
4941 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4942 * cli/cli-decode.h: Update.
4944 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4946 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4947 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4948 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4949 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4950 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4951 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4953 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4954 list of DJGPP COFF targets.
4956 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4957 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4958 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4959 (FP0_REGNUM): Remove define.
4960 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4961 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4962 (i386_register_virtual_size): Remove protoype.
4963 * i386-tdep.c (i386_register_virtual_size): Removed.
4964 (i386_extract_return_value, i386_store_return_value): Use
4965 FP0_REGNUM instead of NUM_FREGS to determine whether the
4966 floating-point registers are available.
4967 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4968 Adjust for removal of macros mentioned above.
4970 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4972 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4974 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4976 (supply_gregset, fill_gregset): Remove use of register keyword and
4977 remove declaration for regmap. Use I386_NUM_GREGS instead of
4978 NUM_REGS and NUM_FREGS.
4979 (FPREGSET_FSAVE_OFFSET): Remove.
4980 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4981 NUM_FREGS to determine whether the floating-point registers are
4984 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4985 gnu_store_registers): Replace usage of NUM_GREGS with
4988 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4989 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4990 usage of NUM_GREGS with I386_NUM_GREGS.
4992 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4994 * i386bsd-nat.c: Include "i386-tdep.h".
4995 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4998 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4999 and associated comment. They no longer make any sense, since we
5000 don't use this file anymore on Linux.
5002 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5003 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5004 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5005 elements in these arrays.
5006 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5009 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5011 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5012 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5014 2002-06-14 Andrew Cagney <cagney@redhat.com>
5016 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5017 EXTRACT_RETURN_VALUE.
5018 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5019 EXTRACT_STRUCT_VALUE_ADDRESS.
5020 * gdbarch.h, gdbarch.c: Regenerate.
5022 * values.c (value_being_returned): Handle
5023 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5024 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5026 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5027 * arm-tdep.c (arm_gdbarch_init): Update.
5028 * avr-tdep.c (avr_gdbarch_init): Update.
5029 * cris-tdep.c (cris_gdbarch_init): Update.
5030 * d10v-tdep.c (d10v_gdbarch_init): Update.
5031 * ia64-tdep.c (ia64_gdbarch_init): Update.
5032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5034 * s390-tdep.c (s390_gdbarch_init): Update.
5035 * sh-tdep.c (sh_gdbarch_init): Update.
5036 * s390-tdep.c (s390_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_gdbarch_init): Update.
5038 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5039 * v850-tdep.c (v850_gdbarch_init): Update.
5040 * vax-tdep.c (vax_gdbarch_init): Update.
5041 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5044 * config/arc/tm-arc.h: Update.
5045 * config/d30v/tm-d30v.h: Update.
5046 * config/fr30/tm-fr30.h: Update.
5047 * config/h8300/tm-h8300.h: Update.
5048 * config/h8500/tm-h8500.h: Update.
5049 * config/i386/tm-i386.h: Update.
5050 * config/i386/tm-ptx.h: Update.
5051 * config/i386/tm-symmetry.h: Update.
5052 * config/i960/tm-i960.h: Update.
5053 * config/m32r/tm-m32r.h: Update.
5054 * config/m68k/tm-delta68.h: Update.
5055 * config/m68k/tm-linux.h: Update.
5056 * config/m68k/tm-m68k.h: Update.
5057 * config/m88k/tm-m88k.h: Update.
5058 * config/mcore/tm-mcore.h: Update.
5059 * config/mips/tm-mips.h: Update.
5060 * config/mn10200/tm-mn10200.h: Update.
5061 * config/pa/tm-hppa.h: Update.
5062 * config/pa/tm-hppa64.h: Update.
5063 * config/sparc/tm-sp64.h: Update.
5064 * config/sparc/tm-sparc.h: Update.
5065 * config/sparc/tm-sparclet.h: Update.
5066 * config/z8k/tm-z8k.h: Update.
5068 2002-06-14 Andrew Cagney <cagney@redhat.com>
5070 * Makefile.in (i386_linux_tdep_h): Define.
5071 (i386_tdep_h, i387_tdep_h): Define.
5072 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5073 $(i386_tdep_h) and $(i387_tdep_h).
5074 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5076 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5078 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5079 Already covered by the default.
5081 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5082 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5083 (i386_gdbarch_init): Initialize long_double_format and long_double
5086 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5087 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5089 * config/i386/i386sol2.mh: ... here.
5090 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5091 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5092 (SIGCONTEXT_PC_OFFSET): Remove define.
5093 (IN_SIGTRAMP): Remove define.
5094 * i386-sol2-tdep.c: New file.
5096 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5097 * config/i386/tm-i386nw.h: Removed.
5099 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5100 USE_STRUCT_CONVENTION): Remove defines.
5101 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5102 (get_longjmp_target): Remove prototype.
5103 (IN_SIGTRAMP): Remove define.
5104 (i386bsd_in_sigtramp): Remove prototype.
5105 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5106 function. Update comment accordingly
5107 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5108 (FRAME_SAVED_PC): Remove define.
5109 (i386bsd_frame_saved_pc): Remove prototype.
5110 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5111 GET_LONGJMP_TARGET): Remove defines.
5112 (get_longjmp_target): Remove prototype.
5113 (IN_SIGTRAMP): Remove define.
5114 (i386bsd_in_sigtramp): Remove prototype.
5115 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5116 function. Update comment accordingly
5117 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5118 (FRAME_SAVED_PC): Remove define.
5119 (i386bsd_frame_saved_pc): Remove prototype.
5120 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5122 (USE_STRUCT_CONVENTION): Remove prototype.
5123 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5125 (_initialize_i386bsd_nat): Revise logic to determine some
5126 constants at compile time when compiling a native GDB. Warn if
5127 things don't match up with what we expect.
5128 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5130 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5131 to use date stored in `struct gdbarch_tdep'.
5132 (i386bsd_sigcontext_offset): Remove varaible.
5133 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5134 stored in `struct gdbarch_tdep'.
5135 (i386bsd_frame_saved_pc): Make static.
5136 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5137 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5138 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5139 i386fbsd4_sc_pc_offset): New variables.
5140 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5141 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5143 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5145 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5146 Modify the value of i386fbsd_sigtramp_start and
5147 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5148 i386fbsd_sigtramp_end.
5149 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5152 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5153 define to i386-linux-tdep.h.
5154 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5155 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5157 (i386_linux_register_name, i386_linux_register_byte,
5158 i386_linux_register_raw_size): Remove prototypes.
5159 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5160 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5161 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5162 TARGET_WRITE_PC): Remove defines.
5163 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5164 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5165 i386_linux_write_pc): Remove prototypes.
5166 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5167 (get_longjmp_target): Remove prototype.
5168 * i386-linux-tdep.h: New file.
5169 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5170 * i386-linux-tdep.c: Include "i386-tdep.h" and
5171 "i386-linux-tdep.h".
5172 (i386_linux_register_name, i386_linux_register_byte,
5173 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5174 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5176 (i386_linux_init_abi): New function.
5177 (_initialize_i386_linux_tdep): New function.
5179 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5180 (i386_saved_pc_after_call): Remove prototype.
5181 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5182 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5183 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5184 (i386_register_name, i386_stab_reg_to_regnum,
5185 i386_dwarf_reg_to_regnum): Remove prototypes.
5186 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5187 SIZEOF_SSE_REGS): Remove defines.
5188 (REGISTER_BYTES): Remove define.
5189 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5190 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5191 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5192 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5193 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5194 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5195 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5196 (get_longjmp_target): Remove prototype.
5197 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5198 (sigtramp_saved_pc): Remove define.
5199 (i386v4_sigtramp_saved_pc): Remove prototype.
5200 * config/i386/tm-go32.h (FRAME_CHAIN,
5201 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5202 (i386go32_frame_saved_pc): Remove prototype.
5203 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5204 (get_longjmp_target): Remove prototype.
5205 * i386-tdep.h: Include "osabi.h".
5206 (enum i386_abi): Removed.
5207 (enum struct_return): New enum.
5208 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5209 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5210 sc_pc_offset members.
5211 (i386_gdbarch_register_os_abi): Remove prototype.
5212 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5213 I386_SSE_NUM_REGS): New defines.
5214 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5215 I386_SSE_SIZEOF_REGS): New defines.
5216 (i386_register_name, i386_register_byte, i386_register_raw_size):
5218 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5219 (i386bsd_sigtramp_saved_pc): New prototype.
5220 * i386-tdep.c: Don't include "elf-bfd.h".
5221 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5222 i386_frame_chain, i386_saved_pc_after_call): Make static.
5223 (i386_frame_saved_pc): Rewrite to call architecture dependent
5224 function to deal with signal handlers. Make static.
5225 (i386go32_frame_saved_pc): Removed.
5226 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5228 (i386_get_longjmp_target): New function.
5229 (default_struct_convention, pcc_struct_convention,
5230 reg_struct_convention, valid_conventions, struct_convention): New
5232 (i386_use_struct_convention): New function.
5233 (i386v4_sigtramp_saved_pc): Renamed to
5234 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5235 (i386_pc_in_sigtramp): New function.
5236 (i386_abi_names): Removed.
5237 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5238 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5240 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5241 i386_gdbarch_register_os_abi): Removed.
5242 (struct i386_abi_handler): Removed.
5243 (i386_abi_handler_list): Removed.
5244 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5246 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5247 i386_nw_init_abi): New functions.
5248 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5249 Use set_gdbarch_xxx() calls instead of relying on macros for a
5251 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5252 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5253 Register the various architecture variants defined in this file.
5255 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5257 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5258 (struct main_type): Remove arg_types member. Update comments for
5260 (TYPE_ARG_TYPES): Remove.
5261 (TYPE_FN_FIELD_ARGS): Update.
5262 (smash_to_method_type): Update prototype.
5264 * c-typeprint.c (cp_type_print_method_args): Take method type
5265 instead of argument list. Use new argument layout. Simplify.
5266 (c_type_print_args): Use new argument layout. Simplify.
5267 (c_type_print_base): Update call to cp_type_print_method_args.
5268 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5269 argument; use die->type instead. Update call to
5270 smash_to_method_type.
5271 (read_structure_scope): Update call to dwarf2_add_member_fn.
5272 * gdbtypes.c (allocate_stub_method): Update comment.
5273 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5274 Use new argument layout.
5275 (check_stub_method): Use new argument layout. Don't count
5276 void as an argument.
5277 (print_arg_types): Update comments. Use new argument layout.
5278 (recursive_dump_type): Don't print arg_types member.
5279 * hpread.c (hpread_read_struct_type): Use new argument layout.
5280 (fixup_class_method_type): Likewise.
5281 (hpread_type_lookup): Likewise.
5282 * stabsread.c (read_type): Update calls to read_args and
5283 smash_to_method_type.
5284 (read_args): Use new argument layout. Simplify.
5285 * valops.c (typecmp): Use new argument layout. Update parameters
5286 and comments. Simplify.
5287 (hand_function_call): Use new argument layout.
5288 (search_struct_method): Update call to typecmp.
5289 (find_overload_match): Use new argument layout.
5291 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5293 * NEWS: Mention multithreaded debug support for gdbserver.
5295 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5297 * MAINTAINERS: Mention NEWS.
5299 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5301 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5302 (struct mips_objfile_private, compare_pdr_entries): New.
5303 (non_heuristic_proc_desc): Read the ".pdr" section if it
5306 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5308 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5309 (arm_debug): New static variable.
5310 (_initialize_arm_tdep): Add ``set debug arm'' command.
5312 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5314 * Makefile.in (sim_arm_h): Define.
5315 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5316 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5317 (arm_register_sim_regno): New function, map an internal REGNUM
5318 onto a simulator register number.
5319 (arm_gdbarch_init): Set register_sim_regno.
5321 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5323 * MAINTAINERS: Add self.
5325 2002-06-11 Jim Blandy <jimb@redhat.com>
5327 * source.c (source_info): Mention whether the symtab has
5328 information about preprocessor macros.
5330 Call the command `info macro', not `show macro'.
5331 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5333 (_initialize_macrocmd): Register `info_macro_command' in
5334 `infolist', not `showlist'.
5336 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5338 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5339 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5340 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5341 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5342 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5344 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5345 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5346 (_initialize_mips_tdep): Remove dead code.
5347 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5348 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5349 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5350 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5351 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5352 MIPS_LAST_FP_ARG_REGNUM): Remove.
5354 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5356 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5357 (unwind_tmp_obstack_free, parse_frame_info)
5358 (update_context, cfi_read_fp, cfi_write_fp)
5359 (cfi_frame_chain, cfi_init_extra_frame_info)
5360 (cfi_virtual_frame_pointer): Use the above function.
5361 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5363 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5365 * v850-tdep.c (v850_type_is_scalar): New function.
5366 (v850_use_struct_convention): Match current gcc implementation
5367 as close as possible.
5368 (v850_push_arguments): Fix stack_offset handling. Don't write
5369 struct_addr into register. This is done by v850_store_struct_return.
5370 (v850_extract_return_value): Care for structs.
5371 (v850_store_return_value): Ditto.
5372 (v850_store_struct_return): Actually write address.
5374 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5376 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5377 without debug information too.
5379 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5381 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5382 Make multi-arch pure.
5383 * gdbarch.h, gdbarch.c: Re-generate.
5384 * arm-tdep.c (arm_print_float_info): Update.
5385 * arch-utils.h (default_print_float_info): Update.
5386 * arch-utils.c (default_print_float_info): Update.
5387 * infcmd.c (float_info): Update call.
5389 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5391 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5392 the front of the initialize list.
5394 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5396 * infrun.c (struct inferior_status): Replace fields
5397 selected_frame_address and selected_level with field
5399 (save_inferior_status): Update. Use get_frame_id.
5400 (struct restore_selected_frame_args): Delete.
5401 (restore_selected_frame): Update. Use frame_find_by_id.
5402 (restore_inferior_status): Update.
5404 * breakpoint.h (struct breakpoint): Change type of
5405 watchpoint_frame to frame_id.
5406 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5407 call to get_current_frame.
5408 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5410 (watchpoint_check): Use frame_find_by_id.
5412 * frame.h (record_selected_frame): Delete declaration.
5413 * stack.c (record_selected_frame): Delete function.
5415 * frame.h (struct frame_id): Define.
5416 (get_frame_id): Declare.
5417 (frame_find_by_id): Declare.
5418 * frame.c (frame_find_by_id): New function.
5419 (get_frame_id): New function.
5421 2002-06-10 Andrey Volkov <avolkov@transas.com>
5423 * ser-e7kpc.c: Fix duplicated define and call of
5424 _initialize_ser_e7000pc
5426 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5428 * signals/signals.c (target_signal_from_host): Fix #ifdef
5430 (do_target_signal_to_host): Likewise.
5432 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5434 * mips-tdep.c (mips_find_abi_section): New function.
5435 (mips_gdbarch_init): Call it.
5437 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5439 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5440 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5441 after Andrew's 2002-06-08 gdbarch change.
5443 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5445 * i386-linux-nat.c (suppy_gregset): Don't supply
5446 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5448 (fill_gregset): Don't fetch it under the same circumstances.
5450 2002-06-09 Andrew Cagney <cagney@redhat.com>
5452 * Makefile.in (callback_h): Define.
5453 (remote_sim_h): Update path to remote-sim.h.
5454 (remote-rdp.o): Add $(callback_h).
5455 (remote-sim.o): Use $(callback_h).
5456 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5457 * remote-rdp.c: Include "gdb/callback.h".
5459 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5461 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5462 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5464 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5466 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5467 * rdi-share/serpardr.c: Ditto.
5468 * rdi-share/unixcomm.c: Ditto.
5469 * rdi-share/serdrv.c: Ditto.
5470 * rdi-share/hostchan.h: Ditto.
5471 * rdi-share/hostchan.c: Ditto.
5472 * rdi-share/host.h: Ditto.
5473 * rdi-share/devsw.c: Ditto.
5475 * objfiles.h: Change type of obj_private to void pointer.
5476 * pa64solib.c: Update copyright. Don't include "assert.h", use
5477 strcmp instead of STREQ, use LONGEST, do not use PTR
5478 * somsolib.c: Ditto.
5480 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5481 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5482 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5484 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5486 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5487 (default_get_saved_register): Delete function.
5488 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5489 generic_unwind_get_saved_register.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5492 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5494 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5495 generic_func_frame_chain_valid.
5496 * gdbarch.h, gdbarch.c: Re-generate.
5497 * blockframe.c (generic_func_frame_chain_valid): Only check
5498 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5499 passing FP to PC_IN_CALL_DUMMY.
5502 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5504 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5505 (register_gdbarch_data): Initialize init_p.
5506 (gdbarch_data): Initialize data pointer using the init function.
5507 (init_gdbarch_data): Delete function.
5508 (gdbarch_update_p): Update.
5509 (initialize_non_multiarch): Update.
5510 (struct gdbarch): Add field initialized_p.
5511 * gdbarch.h, gdbarch.c: Re-generate.
5513 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5515 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5516 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5517 better do the things actually here.
5518 * x86-64-tdep.c (x86_64_register_name2nr): New.
5519 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5520 (x86_64_gdbarch_init): Respect the above change.
5521 * x86-64-tdep.h (x86_64_register_name2nr)
5522 (x86_64_register_nr2name): Add prototypes.
5523 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5525 2002-06-06 Michael Snyder <msnyder@redhat.com>
5527 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5528 Delete extra braces and re-indent.
5529 (d10v_store_return_value): Char return values
5530 must be shifted over by one byte in R0.
5531 (d10v_extract_return_value): Delete extra braces, re-indent.
5533 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5535 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5536 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5537 (d10v_integer_to_address): Rewrite.
5538 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5539 the d10v specific functions which take care of converting to the
5542 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5544 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5545 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5547 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5549 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5551 * config/tm-linux.h: Ditto.
5552 * config/alpha/tm-alphalinux.h: Ditto.
5553 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5554 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5555 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5556 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5557 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5558 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5559 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5560 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5561 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5562 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5563 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5564 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5565 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5566 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5567 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5568 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5569 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5570 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5571 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5572 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5573 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5574 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5575 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5576 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5577 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5578 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5579 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5580 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5581 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5582 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5583 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5584 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5585 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5586 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5587 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5588 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5589 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5591 2002-05-04 Aidan Skinner <aidan@velvet.net>
5593 * ada-exp.tab.c: New file
5594 * ada-exp.y: New file
5595 * ada-lang.c: New file
5596 * ada-lang.h: New file
5597 * ada-lex.c: New file
5598 * ada-lex.l: New file
5599 * ada-tasks.c: New file
5600 * ada-typeprint.c: New file
5601 * ada-valprint.c: New file
5603 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5605 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5606 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5608 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5610 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5611 insetead of ppc-linux-tdep.o.
5612 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5613 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5615 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5617 2002-05-07 Christian Groessler <chris@groessler.org>
5618 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5619 bit register contents for little endian hosts.
5621 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5623 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5626 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5628 * gdbarch.h: Regenerate.
5630 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5632 * MAINTAINERS: Add everyone to write-after-approval list.
5634 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5636 * stack.c (frame_info): Use frame_register_unwind instead of
5637 saved_regs. Mention when the SP is on the stack or in a register.
5639 * frame.h (frame_register_unwind_ftype): Define. Document.
5640 (struct frame_info): Add field register_unwind and
5641 register_unwind_cache.
5642 (frame_register_unwind): Declare.
5643 (generic_unwind_get_saved_register): Declare.
5645 * frame.c (frame_register_unwind): New function.
5646 (generic_unwind_get_saved_register): New function.
5648 * blockframe.c (generic_call_dummy_register_unwind): New function.
5649 (frame_saved_regs_register_unwind): New function.
5650 (set_unwind_by_pc): New function.
5651 (create_new_frame): New function.
5652 (get_prev_frame): New function.
5654 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5656 * a29k-share/: Delete directory.
5657 * remote-vx29k.c: Delete file.
5659 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5661 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5662 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5664 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5666 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5667 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5670 (sparcnbsd-tdep.o): New dependency lists.
5671 * NEWS: Note new UltraSPARC NetBSD native configuration.
5672 * configure.host (sparc64-*-netbsd*): New host.
5673 * configure.tgt (sparc-*-netbsdelf*)
5674 (sparc-*-netbsd*): Set gdb_target to nbsd.
5675 (sparc64-*-netbsd*): New target.
5676 * sparc64nbsd-nat.c: New file.
5677 * sparcnbsd-nat.c: New file.
5678 * sparcnbsd-tdep.c: New file.
5679 * sparcnbsd-tdep.h: New file.
5680 * config/sparc/nbsd.mt: New file.
5681 * config/sparc/nbsd64.mh: New file.
5682 * config/sparc/nbsd64.mt: New file.
5683 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5684 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5686 * config/sparc/nbsdaout.mt: Remove.
5687 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5688 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5690 * config/sparc/nbsdelf.mt: Remove.
5691 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5692 sparc-nat.c compatiblity defines.
5693 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5694 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5695 * config/sparc/tm-nbsd64.h: New file.
5696 * config/sparc/tm-nbsdaout.h: Remove.
5697 * config/sparc/xm-nbsd.h: Remove.
5699 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5701 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5702 * sparc-tdep.c: Include osabi.h.
5703 (gdbarch_tdep): Add osabi member.
5704 (_initialize_sparc_tdep): Use gdbarch_register.
5705 (sparc_gdbarch_init): Use generic OS ABI framework.
5706 (sparc_dump_tdep): New function.
5708 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5710 * corefile.c (do_captured_read_memory_integer): Return non-zero
5712 (safe_read_memory_integer): Copy result of memory read when
5713 status is non-zero. Also, add comments.
5715 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5717 * Makefile.in (ppc_tdep_h): Define.
5720 (rs6000-tdep.o): Use $(ppc_tdep_h).
5723 (ppcnbsd-tdep.o): New dependency lists.
5724 * ppc-tdep.h: Use generic OS ABI framework.
5725 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5726 (ppc_linux_init_abi): New functions.
5727 (ppc_sysv_abi_broken_use_struct_convention)
5728 (ppc_sysv_abi_use_struct_convention)
5729 (ppc_sysv_abi_push_arguments): Move to...
5730 * ppc-sysv-tdep.c: ...here.
5731 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5732 * rs6000-tdep.c (process_note_abi_tag_sections)
5733 (get_elfosabi): Remove.
5734 (rs6000_gdbarch_init): Use generic OS ABI framework.
5735 (rs6000_dump_tdep): New function.
5736 (_initialize_rs6000_tdep): Use gdbarch_register.
5737 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5738 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5739 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5740 of ppc-linux-tdep.o.
5741 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5742 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5743 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5744 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5745 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5746 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5748 2002-05-29 Jim Blandy <jimb@redhat.com>
5750 * macroscope.c (default_macro_scope): Put `void' in empty argument
5753 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5755 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5756 * arch-utils.c: Include "sim-regno.h".
5757 * gdbarch.sh: Don't include "sim-regno.h".
5758 * gdbarch.h, gdbarch.c: Regenerate.
5759 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5761 * arch-utils.h (legacy_register_sim_regno): To here.
5762 * remote-sim.c (legacy_register_sim_regno): Move function from
5764 * arch-utils.c (legacy_register_sim_regno): To here.
5766 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5768 * sim-regno.h: New file.
5769 * Makefile.in (sim_regno_h): Define.
5770 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5771 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5772 (legacy_register_sim_regno): New function.
5773 (one2one_register_sim_regno): New function.
5774 (gdbsim_fetch_register): Rewrite.
5775 (gdbsim_store_register): Only store a register when
5776 REGISTER_SIM_REGNO is valid.
5777 * d10v-tdep.c: Include "sim-regno.h".
5778 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5779 (d10v_ts3_register_sim_regno): Ditto.
5780 * gdbarch.sh: Include "sim-regno.h".
5781 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5782 * gdbarch.h, gdbarch.c: Regenerate.
5783 * arch-utils.h (default_register_sim_regno): Delete declaration.
5784 * arch-utils.c (default_register_sim_regno): Delete function.
5786 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5788 * ppcnbsd-nat.c: Rewrite.
5789 * ppcnbsd-tdep.c: New file.
5790 * ppcnbsd-tdep.h: New file.
5791 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5792 solib.o, and solib-svr4.o.
5793 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5794 nbsd-tdep.o, and corelow.o.
5796 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5798 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5799 `tr' and `sed'. Mention that `broken' targets are not expected to
5802 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5804 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5805 Let PC point right after the prologue before looking up symbols.
5807 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5809 * i386-tdep.c (i386_register_virtual_type): Return
5810 builtin_type_vec128i for SSE registers.
5812 * gdbtypes.h (builtin_type_vec128i): Declare.
5814 * gdbtypes.c (build_builtin_type_vec128i): New function.
5815 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5816 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5817 (build_gdbtypes): Initialize new builtin vector types.
5818 (_initialize_gdbtypes): Register new vector types with gdbarch.
5820 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5822 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5823 since it has been multi-arch'd.
5824 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5825 Move Alpha and VAX multi-arch news entries to same section
5826 as other multi-arch news.
5828 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5830 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5831 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5832 static. Rename some register numbers to put them in ns32k-tdep
5834 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5835 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5837 (_initialize_ns32k_tdep): Use gdbarch_register.
5838 * ns32k-tdep.h: New file.
5839 * ns32knbsd-tdep.c: New file.
5840 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5841 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5842 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5843 REGISTER_BYTES, REGISTER_BYTE): Remove.
5844 * config/ns32k/tm-ns32k.h: New file.
5845 * config/ns32k/tm-umax.h: Remove.
5847 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5849 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5850 ns32k_store_struct_return, ns32k_extract_return_value,
5851 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5853 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5854 ns32k_saved_pc_after_call.
5855 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5856 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5857 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5858 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5859 ns32k_extract_struct_value_address.
5861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5863 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5864 ns32k_fix_call_dummy): New.
5865 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5866 ns32k_call_dummy_words.
5867 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5868 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5869 CALL_DUMMY_NARGS): Remove.
5870 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5872 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5874 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5875 ns32k_frame_saved_pc, ns32k_frame_args_address,
5876 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5877 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5878 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5879 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5880 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5881 (BREAKPOINT): Remove..
5882 (FRAME_CHAIN): Define as ns32k_frame_chain.
5883 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5884 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5885 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5886 (FRAME_FIND_SAVED_REGS): Remove.
5887 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5888 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5889 (POP_FRAME): Define as ns32k_pop_frame.
5891 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5893 * ns32k-tdep.c (ns32k_register_byte_32082,
5894 ns32k_register_byte_32382, ns32k_register_raw_size,
5895 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5897 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5898 ns32k_register_byte_32382.
5899 * config/ns32k/tm-umax.h: Update copyright years.
5900 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5901 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5902 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5903 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5904 (ns32k_get_enter_addr): Fix prototype.
5906 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5908 * ns32k-tdep.c: Update copyright years.
5909 (ns32k_register_name_32082): New function.
5910 (ns32k_register_name_32382): Ditto.
5911 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5912 (REGISTER_NAME): Define as ns32k_register_name_32382.
5913 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5914 (REGISTER_NAME): Define as ns32k_register_name_32082.
5916 2002-05-24 Jim Blandy <jimb@redhat.com>
5918 * dwarf2read.c (free_line_header): Use xfree, not free.
5920 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5922 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5923 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5925 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5927 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5929 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5931 From Ross Alexander at NEC Europe:
5932 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5934 2002-05-23 Michael Snyder <msnyder@redhat.com>
5936 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5937 for input, rather than parse_and_eval_address.
5939 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5941 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5942 * Makefile.in (sim_d10v_h): Update definition.
5944 2002-05-24 Andrew Cagney <cagney@redhat.com>
5946 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5947 change `2002-05-22 Michael Snyder' below.
5948 (d10v_push_arguments): Ditto.
5949 (d10v_extract_return_value): Ditto.
5951 2002-05-23 Jim Blandy <jimb@redhat.com>
5953 * macrotab.c (check_for_redefinition): Don't complain if the new
5954 definition is the same as the previous one. Take more arguments
5955 to allow the comparison.
5956 (macro_define_object, macro_define_function): Pass more arguments
5957 to check_for_redefinition.
5959 2002-05-22 Michael Snyder <msnyder@redhat.com>
5961 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5962 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5963 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5964 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5965 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5966 Add a temp variable to save a call (and a memory read).
5967 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5968 if possible (so that PC_IN_CALL_DUMMY will work).
5970 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5972 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5974 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5976 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5978 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5979 (dwarf2_build_frame_info): Add offset to fde->initial_location
5980 so that frames of shared libraries are mapped correctly.
5981 (execute_stack_op): Change type of 'result' from ULONGEST to
5984 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5986 * config/alpha/tm-nbsd.h: Include solib.h.
5988 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5990 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5991 assumptions about the host's byte order.
5993 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5995 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5997 * alphanbsd-tdep.c: Include solib-svr4.h.
5998 * shnbsd-tdep.c: Ditto.
6000 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6002 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6003 nbsd-tdep.h to dependency list.
6004 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6005 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6006 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6007 nbsdaout.mh and nbsdelf.mh consistently.
6008 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6009 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6010 nbsdaout.mt and nbsdelf.mh consistently.
6011 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6012 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6013 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6014 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6015 a.out shared library stuff from here...
6016 * config/nm-nbsdaout.h: ...to here.
6017 * config/tm-nbsd.h: Remove.
6018 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6019 * config/arm/nbsd.mh: Remove.
6020 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6022 * config/arm/nbsdaout.mh: New file.
6023 * config/arm/nbsdelf.mh: New file.
6024 * config/arm/nm-nbsdaout.h: New file.
6025 * config/i386/nbsd.mh: Remove.
6026 * config/i386/nbsd.mt: Remove.
6027 * config/i386/nbsdaout.mh: New file.
6028 * config/i386/nbsdaout.mt: New file.
6029 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6030 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6031 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6032 i386_register_u_addr): Remove.
6033 * config/i386/nm-nbsdaout.h: New file.
6034 * config/i386/nm-nbsdelf.h: Remove.
6035 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6036 (USE_STRUCT_CONVENTION): Remove.
6037 * config/i386/tm-nbsdaout.h: New file.
6038 * config/i386/tm-nbsdelf.h: Remove.
6039 * config/m68k/nbsd.mh: Remove.
6040 * config/m68k/nbsd.mt: Remove.
6041 * config/m68k/nbsdaout.mh: New file.
6042 * config/m68k/nbsdaout.mt: New file.
6043 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6044 * config/m68k/nm-nbsdaout.h: New file.
6045 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6046 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6047 * config/ns32k/nbsd.mh: Remove.
6048 * config/ns32k/nbsd.mt: Remove.
6049 * config/ns32k/nbsdaout.mh: New file.
6050 * config/ns32k/nbsdaout.mt: New file.
6051 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6052 * config/ns32k/nm-nbsdaout.h: New file.
6053 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6054 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6055 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6056 (SVR4_SHARED_LIBS): Remove.
6057 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6058 * config/sparc/nbsd.mh: Remove.
6059 * config/sparc/nbsd.mt: Remove.
6060 * config/sparc/nbsdaout.mh: New file.
6061 * config/sparc/nbsdaout.mt: New file.
6062 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6063 * config/sparc/nbsdelf.mt: New file.
6064 * config/sparc/nm-nbsdaout.h: New file.
6065 * config/sparc/nm-nbsdelf.h: Remove.
6066 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6067 * config/sparc/tm-nbsdaout.h: New file.
6069 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6071 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6073 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6075 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6077 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6079 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6081 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6083 * NEWS: Note new MIPS NetBSD native configuration.
6084 * configure.host (mips*-*-netbsd*): New host.
6085 * configure.tgt (mips*-*-netbsd*): New target.
6086 * mipsnbsd-nat.c: New file.
6087 * mipsnbsd-tdep.c: New file.
6088 * mipsnbsd-tdep.h: New file.
6089 * config/mips/nbsd.mh: New file.
6090 * config/mips/nbsd.mt: New file.
6091 * config/mips/nm-nbsd.h: New file.
6092 * config/mips/tm-nbsd.h: New file.
6094 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6096 * Makefile.in (SFILES): Add osabi.c.
6097 (COMMON_OBS): Add osabi.o.
6098 (osabi.o): New dependency list.
6099 * osabi.c: New file.
6100 * osabi.h: New file.
6101 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6103 * Makefile.in (alpha_tdep_h): Define and use instead of
6105 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6106 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6108 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6109 * alpha-tdep.h: Include osabi.h.
6110 (alpha_abi): Remove.
6111 (gdbarch_tdep): Use generic OS ABI framework.
6112 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6113 gdbarch_register_osabi.
6114 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6115 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6116 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6118 * Makefile.in (sh_tdep_h): Add osabi.h.
6119 * sh-tdep.h (sh_osabi): Remove.
6120 (gdbarch_tdep): Use generic OS ABI framework.
6121 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6122 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6123 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6124 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6126 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6127 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6128 gdbarch_register_osabi.
6129 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6130 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6131 (get_elfosabi): Rename to...
6132 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6133 ABI framework support routines.
6134 (arm_gdbarch_init): Use generic OS ABI framework.
6135 (arm_dump_tdep): Likewise.
6136 (_initialize_arm_tdep): Likewise.
6137 * arm-tdep.h: Include osabi.h.
6139 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6141 (arm_gdbarch_register_os_abi): Remove prototype.
6142 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6143 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6145 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6146 * mips-tdep.c: Include osabi.h.
6147 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6150 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6152 * h8300-tdep.c: Fix formatting.
6154 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6156 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6157 printing vector registers.
6159 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6161 From Fernando Nasser:
6162 * remote.c (remote_async_open_1): Re-throw the exception when the
6164 (remote_cisco_open): Ditto.
6165 (remote_open_1): Ditto.
6167 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6169 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6170 (remote_start_remote): Add uiout parameter. Pass through to
6171 remote_start_remote_dummy.
6172 (remote_open_1): Use catch_exception instead of catch_errors.
6173 (remote_async_open_1): Ditto.
6174 (remote_cisco_open): Ditto.
6176 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6178 * remote.c (remote_start_remote): Replace PTR with void pointer.
6179 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6182 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6184 * gdb_indent.sh: Allow the script to be run in the sim directory.
6186 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6188 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6189 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6191 * corelow.c (core_open): Only call set_gdbarch_from_file if
6194 2002-05-17 Andrey Volkov <avolkov@transas.com>
6196 * h8300-tdep.c: Add support of EXR register
6197 * config/h8300/tm-h8300.h: Ditto.
6199 2002-05-17 Andrey Volkov <avolkov@transas.com>
6201 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6203 2002-05-17 Andrey Volkov <avolkov@transas.com>
6205 * h8300-tdep.c: Change literal regnums to REGNO.
6207 2002-05-17 Jim Blandy <jimb@redhat.com>
6209 * NEWS: Note addition of macro support.
6211 Expand preprocessor macros in C expressions.
6212 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6213 (scan_macro_expansion, scanning_macro_expansion,
6214 finished_macro_expansion): New function declarations.
6215 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6216 variable declarations.
6217 * parser-defs.h (expression_context_pc): New declaration.
6218 * parse.c (expression_context_pc): New variable.
6219 (parse_exp_1): Set expression_context_pc, as well as
6220 expression_context_block.
6221 * c-exp.y (yylex): If we're not already reading the result of a
6222 macro expansion, try to macro-expand the next token. When we're
6223 done scanning a macro expansion, switch back to the mainline text.
6224 Commas and `if's in a macro's expansion don't terminate the input.
6225 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6226 (macro_original_text, macro_expanded_text,
6227 expression_macro_lookup_func, expression_macro_lookup_baton): New
6229 (scan_macro_expansion, scanning_macro_expansion,
6230 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6231 c_preprocess_and_parse): New functions.
6232 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6233 c_preprocess_and_parse, instead of c_parse.
6234 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6235 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6237 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6239 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6240 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6241 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6243 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6245 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6247 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6249 * Makefile.in (sh_tdep_h): Define and use.
6250 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6251 register enum): Move to...
6252 * * sh-tdep.h: ...here.
6253 * sh-tdep.c: Include sh-tdep.h.
6254 * sh3-rom.c: Likewise.
6255 * shnbsd-tdep.c: Likewise.
6257 2002-05-16 Michael Snyder <msnyder@redhat.com>
6259 * arm-tdep.c: Spelling fix in comment.
6261 2002-05-16 Jim Blandy <jimb@redhat.com>
6263 Add commands for manually expanding macros and showing their
6265 * macrocmd.c, macroscope.c, macroscope.h: New files.
6266 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6267 (macroscope_h): New variable.
6268 (HFILES_NO_SRCDIR): Add macroscope.h.
6269 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6270 (macroscope.o, macrocmd.o): New rules.
6272 Teach the Dwarf 2 reader to read macro information.
6273 * dwarf2read.c: #include "macrotab.h".
6274 (dwarf_macinfo_buffer): New variable.
6275 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6277 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6278 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6279 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6280 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6281 dwarf2_macro_spaces_in_definition): New complaints.
6282 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6283 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6284 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6285 the partial symbol table.
6286 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6287 from what's recorded in the partial symbol table.
6288 (read_file_scope): If the compilation unit has a
6289 `DW_AT_macro_info' attribute, read its macro information.
6290 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6292 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6295 * ser-tcp.c: Don't include <netinet/udp.h>.
6297 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6299 * MAINTAINERS: Update my email address.
6301 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6303 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6304 include file of the same name.
6306 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6308 * configure.tgt: Mark v850 as multi-arched.
6309 * config/v850/tm-v850.h: Remove file.
6310 * config/v850/v850.mt: Eliminate TM_FILE.
6312 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6314 * v850-tdep.c: Full multi-arch.
6315 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6316 Define GDB_MULTI_ARCH to 2.
6318 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6320 * p-exp.y (current_type): New static variable.
6321 Carries the type of the expression at the position that is parsed.
6322 (push_current_type, pop_current_type): Two new functions. Used
6323 to store/restore current_type in expression on specific tokens.
6324 (search_field): New static variable. Set to one after parsing a point
6325 as at that point only a FIELDNAME token should be searched.
6326 (FIELDNAME): New token. After a point only a token belonging to
6327 current_type type definition is allowed.
6328 (all over token rules): reset and change current_type according
6330 (exp '[' rule): insert implicit array index field if
6331 exp is a pascal string type.
6333 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6335 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6336 frame info. Use frame_info's saved_regs instead of matching member
6337 in extra_frame_info throughout.
6338 (v850_frame_init_saved_regs): New function.
6339 (v850_init_extra_frame_info): Move most functionality into
6340 v850_frame_init_saved_regs().
6341 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6342 (v850_frame_find_saved_regs): Remove declaration.
6343 (FRAME_FIND_SAVED_REGS): Remove definition.
6344 (v850_frame_init_saved_regs): Add declaration.
6345 (FRAME_INIT_SAVED_REGS): Add definition.
6347 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6349 * v850-tdep.c: Begin multi-arch'ing v850.
6350 (v850_target_architecture_hook): Remove function.
6351 (v850_gdbarch_init): New function. Add code previously in
6352 v850_target_architecture_hook().
6353 (_initialize_v850_tdep): Don't set target_architecture_hook.
6354 Call register_gdbarch_init() instead.
6356 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6358 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6359 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6360 (fixup_class_method_type): Likewise.
6362 2002-05-15 Jim Blandy <jimb@redhat.com>
6364 Add macro structures to GDB's symbol tables. Nobody puts anything
6366 * symtab.h (struct symtab): New member: `macro_table'.
6367 * buildsym.h (pending_macros): New global variable.
6368 * buildsym.c: #include "macrotab.h".
6369 (buildsym_init): Initialize `pending_macros'.
6370 (end_symtab): If we found macro information while reading a CU's
6371 debugging info, do build a symtab structure for it. Make the
6372 symtab point to the macro information, and clear the
6373 `pending_macros' pointer which held it while we were reading the
6375 (really_free_pendings): Free any pending macro table.
6376 * objfiles.h (struct objfile): New member: `macro_cache'.
6377 * objfiles.c (allocate_objfile): Set allocate and free functions
6378 for the macro cache's objstack.
6379 (free_objfile): Empty the macro cache's obstack.
6380 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6381 set new allocate and free functions for it.
6382 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6383 free functions for the macro cache's objstack. (Why is this
6384 function building its own objfile?)
6385 * symmisc.c (print_objfile_statistics): Print statistics on the
6387 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6389 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6391 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6392 (REGISTER_U_ADDR): Delete definition.
6393 (arm_register_u_addr): Delete declaration.
6395 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6397 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6398 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6400 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6402 * regcache.c (register_valid): Revise comments refering to "Not
6403 available" and "unavailable".
6404 * frame.c (frame_register_read): Ditto.
6405 * findvar.c (value_of_register): Ditto.
6407 2002-05-15 Andrew Cagney <cagney@redhat.com>
6409 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6410 (remote-sim.o): Update dependencies.
6411 (d10v-tdep.o): Specify dependencies.
6412 (sim_d10v_h): Define.
6414 2002-05-14 Jim Blandy <jimb@redhat.com>
6416 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6417 * macrotab.c (macro_lookup_inclusion, find_definition,
6418 new_macro_table): Same.
6420 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6421 not `! strcmp ()'. This is a dubious improvement.
6422 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6424 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6425 although it's not necessary, to avoid a warning.
6427 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6429 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6430 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6431 TYPE_INSTANCE_FLAGS.
6432 (struct main_type): New.
6433 (struct type): Move most members to struct main_type. Change
6434 cv_type and as_type to new type_chain member. Add instance_flags.
6435 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6436 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6437 (finish_cv_type): Remove prototype.
6438 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6440 (alloc_type_instance): New function.
6441 (smash_type): New function.
6442 (make_pointer_type, make_reference_type, make_function_type)
6443 (smash_to_member_type, smash_to_method_type): Call smash_type.
6444 (make_qualified_type): New function.
6445 (make_type_with_address_space): Call make_qualified_type.
6446 (make_cv_type): Likewise.
6447 (finish_cv_type): Remove unnecessary function.
6448 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6449 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6450 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6451 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6452 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6453 * hpread.c (hpread_read_struct_type): Likewise.
6454 * stabsread.c (read_struct_type): Likewise.
6456 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6458 * configure.tgt: Add a catch all sh* target, for cases like
6459 sh[2,3,4]-elf and sh-hms.
6461 2002-05-14 Keith Seitz <keiths@redhat.com>
6463 * event-loop.c (create_file_handler): Don't do anything but
6464 update data when we are given a fd which we are already
6467 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6469 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6470 (update_context): Use __func__ in warnings.
6472 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6474 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6475 and tcp_close to net_open and net_close.
6476 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6477 using UDP if requested. Don't try to disable Nagle on UDP
6479 * remote.c (remote_serial_open): New function. Warn about UDP.
6480 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6482 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6484 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6486 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6488 * configure.tgt: Remove sh-hms target.
6489 * MAINTAINERS: Don't list sh-hms as a separate target.
6491 2002-05-13 Jim Blandy <jimb@redhat.com>
6493 Add first preprocessor macro-expansion files.
6494 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6495 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6496 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6497 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6498 (COMMON_OBS): Add macrotab.o, macroexp.o.
6499 (macroexp.o, macrotab.o): New rules.
6501 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6503 * config/m88k/tm-m88k.h: Update copyright.
6504 (m88k_target_write_pc): Declare
6505 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6506 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6507 (SHIFT_INST_REGS): Update definition.
6508 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6509 using old definition of TARGET_WRITE_PC.
6510 * regcache.c (generic_target_write_pc): Delete code handling
6512 * gdbarch.sh (NNPC_REGNUM): Delete.
6513 * gdbarch.h, gdbarch.c: Regenerate.
6515 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6517 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6520 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6522 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6523 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6524 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6526 * c-typeprint.c (cp_type_print_method_args): Likewise.
6527 (c_type_print_args): Likewise.
6528 * d10v-tdep.c (d10v_push_arguments): Likewise.
6529 (d10v_extract_return_value): Likewise.
6530 * expprint.c (print_subexp): Likewise.
6531 * gdbtypes.c (lookup_primitive_typename): Likewise.
6532 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6533 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6534 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6535 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6536 (TYPE_VECTOR): Likewise.
6537 * hpread.c (hpread_read_struct_type)
6538 (fix_static_member_physnames, fixup_class_method_type)
6539 (hpread_type_lookup): Likewise.
6540 * mdebugread.c (parse_symbol, parse_type): Likewise.
6541 * p-lang.c (is_pascal_string_type): Likewise.
6542 * valops.c (hand_function_call): Likewise.
6543 * x86-64-tdep.c (classify_argument): Likewise.
6545 * hpread.c (hpread_read_function_type)
6546 (hpread_read_doc_function_type): Call replace_type.
6547 * dstread.c (create_new_type): Delete.
6548 (decode_dst_structure, process_dst_function): Call alloc_type.
6549 Use type access macros.
6551 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6553 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6554 the're not supported by the current architecture.
6555 (i387_fill_fxsave): Likewise.
6557 2002-05-12 Fred Fish <fnf@redhat.com>
6559 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6560 sect_index_xxx members to index the first slot in section_offsets
6561 if all of the section_offsets are zero.
6563 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6565 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6566 checked in with last change.
6568 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6570 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6571 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6574 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6576 * Makefile.in: Update dependencies.
6578 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6580 * language.c (local_hex_string_custom): Simplify. Do not depend
6581 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6583 * memattr.c (mem_info_command): Replace calls to
6584 longest_local_hex_string and longest_local_hex_string_custom.
6585 * buildsym.c (make_blockvector): Ditto.
6586 * solib.c (info_sharedlibrary_command): Ditto.
6587 * tracepoint.c (tracepoints_info): Ditto.
6588 * symtab.c (print_msymbol_info): Ditto.
6590 * language.c (local_hex_string): Delete.
6591 (local_hex_string_custom): Delete.
6592 (longest_local_hex_string): Rename to local_hex_string.
6593 (longest_local_hex_string_custom): Rename to
6594 local_hex_string_custom.
6595 * language.h (local_hex_string): Change parameter type to LONGEST.
6596 (local_hex_string_custom): Ditto.
6597 (longest_local_hex_string): Delete declaration.
6598 (longest_local_hex_string_custom): Ditto.
6600 * solib.c: Update copyright.
6601 * memattr.c: Update copyright.
6603 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6605 * arch-utils.h (legacy_register_to_value): Declare.
6606 (legacy_value_to_register): Declare.
6607 (legacy_convert_register_p): Declare.
6608 * arch-utils.c (legacy_register_to_value): New function.
6609 (legacy_value_to_register): New function.
6610 (legacy_convert_register_p): New function.
6612 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6613 (VALUE_TO_REGISTER): Define.
6614 (CONVERT_REGISTER_P): Define.
6615 * gdbarch.h, gdbarch.c: Regenerate.
6617 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6619 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6622 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6623 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6625 * Makefile.in: Update dependencies for valops.c.
6626 * valops.c: Include "gdb_assert.h".
6627 (typecmp): Skip THIS parameter to methods.
6628 (find_method_list): Remove static_memfuncp argument,
6629 update callers. Check for stub methods.
6630 (find_value_oload_method_list): Don't set *static_memfuncp.
6631 (find_overload_match): Don't check for stub methods. Assert
6632 that methods are not stubbed. Handle static methods.
6633 (value_find_oload_method_list): Remove static_memfuncp argument.
6634 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6635 to the argument list for static stub methods.
6636 * value.h (value_find_oload_method_list): Update prototype.
6638 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6640 * arch-utils.h (generic_register_size): Declare.
6641 (generic_register_raw_size, generic_register_virtual_size): Delete
6643 * arch-utils.c (generic_register_raw_size): Delete.
6644 (generic_register_size): New function.
6645 (generic_register_virtual_size): Delete.
6647 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6648 default generic_register_size.
6649 * gdbarch.h, gdbarch.c: Re-generate.
6651 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6652 register_virtual_size.
6653 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6656 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6658 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6659 * gdbarch.h, gdbarch.c: Regenerate.
6660 * gnu-v3-abi.c: Update copyright.
6661 (vtable_address_point_offset): Update.
6662 (gnuv3_rtti_type): Update.
6663 (gnuv3_baseclass_offset): Update.
6664 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6665 (init_fetch_link_map_offsets): Update.
6666 * remote.c (get_remote_state): Update.
6668 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6670 * TODO: Remove value_headof/value_from_vtable_info comment.
6671 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6672 * values.c (value_headof, value_from_vtable_info): Delete.
6673 * value.h (value_from_vtable_info): Delete prototype.
6675 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6677 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6678 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6680 (gdb_assert_h): Define.
6681 (gdb_wait_h): Define.
6682 (gdb_regex_h): Define.
6684 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6686 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6687 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6689 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6691 * nbsd-tdep.c: Fix comment.
6693 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6695 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6696 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6697 (nbsd-tdep.o): New dependency list.
6698 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6700 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6701 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6702 * nbsd-tdep.c: New file.
6703 * nbsd-tdep.h: New file.
6704 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6706 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6707 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6708 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6709 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6711 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6713 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6714 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6715 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6716 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6717 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6718 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6720 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6722 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6723 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6724 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6725 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6726 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6727 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6728 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6730 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6732 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6733 fetch_elfcore_registers to...
6734 * i386nbsd-tdep.c: ...here.
6735 (i386nbsd_use_struct_convention): Rename to...
6736 (i386nbsd_aout_use_struct_convention): ...this.
6737 (i386nbsd_supply_reg): New function.
6738 (i386nbsd_fill_reg): New function.
6739 (fetch_core_registers): Use i386nbsd_supply_reg.
6740 (fetch_elfcore_registers): Likewise.
6741 (_initialize_i386nbsd_tdep): New function.
6742 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6743 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6744 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6745 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6746 (i386nbsd_aout_use_struct_convention): ...this.
6748 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6750 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6751 (store_inferior_registers): Use shnbsd_fill_reg.
6752 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6753 sh_nbsd_supply_register): Collapse into...
6754 (shnbsd_supply_reg): ...this.
6755 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6756 (shnbsd_fill_reg): ...this.
6757 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6758 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6759 (fetch_core_registers): Use shnbsd_supply_reg.
6760 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6761 (sh_nbsd_core_fns): Rename to...
6762 (shnbsd_core_fns): ...this.
6763 (sh_nbsd_elfcore_fns): Rename to...
6764 (shnbsd_elfcore_fns): ...this.
6765 (sh_nbsd_init_abi): Rename to...
6766 (shnbsd_init_abi): ...this.
6767 (_initialize_sh_nbsd_tdep): Rename to...
6768 (_initialize_shnbsd_tdep): ...this.
6769 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6770 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6771 sh_nbsd_fill_register): Remove prototypes.
6772 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6774 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6776 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6777 (i387-nat.o): Delete dependency list.
6778 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6779 (x86-64-linux-nat.o): Likewise.
6780 * i387-nat.c: Delete file, moving contents to...
6781 * i387-tdep.c: ...here.
6782 * i387-nat.h: Rename...
6783 * i387-tdep.h: ...to this.
6784 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6785 * i386-linux-nat.c: Likewise.
6786 * i386bsd-nat.c: Likewise.
6787 * i386gnu-nat.c: Likewise.
6788 * i386nbsd-nat.c: Likewise.
6789 * i386v4-nat.c: Likewise.
6790 * x86-64-linux-nat.c: Likewise.
6791 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6792 * config/i386/go32.mh (NATDEPFILES): Likewise.
6793 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6794 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6795 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6796 * config/i386/linux.mh (NATDEPFILES): Likewise.
6797 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6798 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6799 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6800 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6802 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6804 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6805 (alphanbsd-nat.o): Remove dependency list.
6806 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6807 * alphanbsd-nat.c: Delete. Contents moved to...
6808 * alphanbsd-tdep.c: ...here.
6809 (_initialize_alphanbsd_tdep): Register core functions.
6810 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6812 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6814 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6815 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6816 (alphanbsd-nat.o): Likewise.
6817 (alphabsd-tdep.o): New dependency list.
6818 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6819 (fill_gregset): Use alphabsd_fill_reg.
6820 (supply_fpregset): Use alphabsd_supply_fpreg.
6821 (fill_fpregset): Use alphabsd_fill_fpreg.
6822 (fetch_inferior_registers): Use struct reg and struct fpreg
6823 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6824 and alphabsd_supply_fpreg.
6825 (store_inferior_registers): Use struct reg and struct fpreg
6826 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6827 and alphabsd_fill_fpreg.
6828 * alphabsd-tdep.c: New file.
6829 * alphabsd-tdep.h: New file.
6830 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6831 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6832 alphabsd_supply_fpreg.
6833 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6834 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6836 2002-05-11 Eric Christopher <echristo@redhat.com>
6838 * mips-tdep.c (mips_double_register_type): Fix thinko.
6839 (mips_single_register_type): Ditto.
6840 * MAINTAINERS: Add self.
6842 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6844 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6845 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6846 right thing on architectures with different endianness and/or
6849 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6851 From Christian Limpach <chris@Pin.LU>
6852 * configure.in: Change sed expression which comments out
6853 NATDEPFILES to also comment out continuation lines.
6854 * configure: Regenerate.
6856 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6858 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6861 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6863 * sh-tdep.c: Include correct file.
6865 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6867 New support for sh64-elf (sh5) target.
6869 * configure.tgt: For sh64-elf target, default to sh-elf.
6871 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6872 (struct gdbarch_tdep): Add new fields for new registers and ABI
6875 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6876 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6877 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6878 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6879 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6880 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6881 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6882 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6883 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6884 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6885 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6886 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6887 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6888 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6889 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6890 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6891 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6892 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6893 sign_extend, sh64_nofp_frame_init_saved_regs,
6894 sh64_init_extra_frame_info, sh64_get_saved_register,
6895 sh64_extract_struct_value_address, sh64_pop_frame,
6896 sh64_push_arguments, sh64_extract_return_value,
6897 sh64_store_return_value, sh64_show_media_regs,
6898 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6899 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6900 sh_sh64_register_virtual_type,
6901 sh_sh64_register_convert_to_virtual,
6902 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6903 sh64_register_read, sh64_pseudo_register_write,
6904 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6905 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6906 sh64_do_pseudo_register, sh_compact_do_registers_info,
6907 sh64_do_registers_info, sh_gdbarch_init): New functions.
6909 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6911 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6913 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6915 * linespec.c (decode_line_1): Check for a double quote after
6916 a filename correctly.
6918 2002-05-10 Jim Blandy <jimb@redhat.com>
6920 Properly track the size of the current objfile's .debug_line section.
6921 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6922 (DWARF_LINE_SIZE): New macro.
6923 (dwarf2_build_psymtabs_hard): Record the line section's size in
6924 the partial symbol table.
6925 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6928 2002-05-10 Petr Sorfa <petrs@caldera.com>
6930 * ia64-tdep.c: Handle breakpoints on L instruction type
6931 in MLX instruction bundle by moving the breakpoint to
6932 the third slot (X instruction type) as L holds only data.
6934 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6936 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6937 (process_one_symbol): Complain about discarding local symbols
6938 due to a misplaced N_LBRAC entry.
6940 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6942 From Daniel Berlin <dan@cgsoftware.com>
6943 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6944 decrease the depth we are at, in the case of templates.
6946 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6948 * mips-tdep.c (mips_float_register_type): New function.
6949 (mips_double_register_type): New function.
6950 (mips_print_register): Use them.
6951 (do_fp_register_row): Likewise.
6953 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6955 * signals/signals.c (signals): Remove conditional compilation around
6956 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6957 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6959 2002-05-09 Michael Snyder <msnyder@redhat.com>
6961 * remote-rdp.c (remote_rdp_can_run): Remove.
6963 2002-05-09 Tom Tromey <tromey@redhat.com>
6965 * jv-valprint.c (java_val_print): Handle `char' as a special case
6968 2002-05-09 Michael Snyder <msnyder@redhat.com>
6970 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6971 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6972 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6973 str r(0123),[sp,#nn].
6974 (arm_skip_prologue): Ditto. Also make disassembly
6975 order-independent by placing it in a loop.
6977 2002-05-06 Michael Snyder <msnyder@redhat.com>
6979 * stabsread.c (read_type): Add recognition for new attribute:
6980 "@V;" means that an array type is actually a vector.
6981 This is analogous to the vector flag that's been added to dwarf2.
6983 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6985 * i386-tdep.h (i386_abi): New enum.
6986 (struct gdbarch_tdep): Replace os_ident member with abi.
6987 (i386_gdbarch_register_os_abi): New prototype.
6988 * i386-tdep.c (i386_abi_names): New array.
6989 (process_note_abi_tag_sections): Removed.
6990 (process_note_sections): New function.
6991 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6992 (struct i386_abi_handler): New struct.
6993 (i386_abi_handler_list): New variable.
6994 (i386_gdbarch_register_os_abi): New function.
6995 (i386_gdbarch_init): Adapt for the changes given above.
6997 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6999 * gregset.h: Say "GNU/Linux".
7001 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7003 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7004 (build_gdbtypes): Build builtin_type_v2_float.
7005 (_initialize_gdbtypes): Register new builtin type.
7007 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7009 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7010 (clear_gdbarch_swap): New function.
7011 (initialize_non_multiarch): Call.
7012 (gdbarch_update_p): Before calling init(), swap out and clear the
7013 existing architecture.
7014 * gdbarch.c: Regenerate.
7016 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7018 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7021 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7023 * sh-nbsd-nat.c: Rename to...
7024 * shnbsd-nat.c: ...this.
7025 * sh-nbsd-tdep.c: Rename to...
7026 * shnbsd-tdep.c: ...this.
7027 * sh-nbsd-tdep.h: Rename to...
7028 * shnbsd-tdep.h: ...this.
7029 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7030 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7032 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7034 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7035 concatenation for command help messages.
7037 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7039 * NEWS: Note new sh*-*-netbsdelf* configuration.
7040 * configure.host: Set gdb_host_cpu to sh for all sh*.
7041 (sh*-*-netbsdelf*): New host.
7042 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7043 (sh*-*-netbsdelf*): New target.
7044 * sh-nbsd-nat.c: New file.
7045 * sh-nbsd-tdep.c: New file.
7046 * sh-nbsd-tdep.h: New file.
7047 * config/sh/nbsd.mh: New file.
7048 * config/sh/nbsd.mt: New file.
7049 * config/sh/nm-nbsd.h: New file.
7050 * config/sh/tm-nbsd.h: New file.
7052 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7054 * sh-tdep.c (sh_osabi_names): Declare.
7055 (process_note_abi_tag_sections): New function.
7056 (get_elfosabi): Ditto.
7057 (sh_gdbarch_register_os_abi): Ditto.
7058 (sh_dump_tdep): Ditto.
7059 _initialize_sh_tdep): Use gdbarch_register to register
7060 sh_gdbarch_init and sh_dump_tdep.
7061 * config/sh/tm-sh.h (sh_osabi): Declare.
7062 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7064 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7066 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7067 (thumb_scan_prologue): Ditto.
7068 (arm_find_callers_reg): Ditto.
7069 (arm_frame_chain): Ditto.
7070 (arm_init_extra_frame_info): Ditto.
7071 (arm_frame_saved_pc): Ditto.
7072 (arm_pop_frame): Ditto.
7073 (arm_push_return_address): New function.
7074 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7075 call_dummy_location, call_dummy_breakpoint_offset_p,
7076 call_dummy_breakpoint_offset, call_dummy_p,
7077 call_dummy_stack_adjust_p, call_dummy_words,
7078 sizeof_call_dummy_words, call_dummy_start_offset,
7079 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7080 call_dummy_address, push_return_address and push_dummy_frame for
7081 generic dummy frames.
7083 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7085 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7086 size computation for alloca.
7087 (sh_fp_frame_init_saved_regs): Likewise.
7089 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7091 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7092 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7093 * arm-tdep.c (arm_store_return_value): Use them.
7094 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7095 * remote-rdp.c (remote_rdp_fetch_register): Use
7096 ARM_MAX_REGISTER_RAW_SIZE.
7097 (remote_rdp_store_register): Likewise.
7099 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7101 * dwarf2cfi.c: Code cleanup, removed unused variables,
7102 added default labels to switch {} statements.
7103 * x86-64-tdep.c: Ditto.
7104 * x86-64-linux-nat.c: Ditto.
7106 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7108 * solib.h: Protect against multiple inclusion.
7110 2002-05-06 Jim Blandy <jimb@redhat.com>
7112 Add first preprocessor macro-expansion files.
7113 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7114 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7115 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7116 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7117 (COMMON_OBS): Add macrotab.o, macroexp.o.
7118 (macroexp.o, macrotab.o): New rules.
7120 Separate the job of reading the line number info statement program
7121 header (...expialidocious) out into its own function.
7122 * dwarf2read.c (struct line_head, struct filenames, struct
7123 directories): Replace with...
7124 (struct line_header): New structure, containing the full
7125 contents of the statement program header, including the
7126 include directory and file name tables.
7127 (read_file_scope): If we have line number info, instead of just
7128 calling dwarf_decode_lines to do all the work, call
7129 dwarf_decode_line_header first to get a `struct line_header'
7130 containing the data in the statement program header, and then
7131 pass that to dwarf_decode_lines, which will pick up where that
7132 left off. Be sure to clean up the `struct line_header' object.
7133 (dwarf_decode_line_header, free_line_header, add_include_dir,
7134 add_file_name): New functions.
7135 (dwarf_decode_lines): Move all the code to read the statement
7136 program header into dwarf_decode_line_header. Take the line
7137 header it built as the first argument, instead of the offset to
7138 the compilation unit's line number info. Use the new `struct
7139 line_header' type instead of the old structures. No need to do
7140 cleanups here now, since we don't allocate anything.
7141 (dwarf2_statement_list_fits_in_line_number_section,
7142 dwarf2_line_header_too_long): New complaints.
7144 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7146 * gdbtypes.c (init_vector_type): New function.
7147 (build_builtin_type_vec128): Simplify the representation of SIMD
7149 (build_gdbtypes): Initialize new builtin vector types.
7150 (_initialize_gdbtypes): Register new vector types with gdbarch.
7151 (builtin_type_v4_float, builtin_type_v4_int32,
7152 builtin_type_v8_int16, builtin_type_v16_int8,
7153 builtin_type_v2_int32, builtin_type_v4_int16,
7154 builtin_type_v8_int8): New (renamed) SIMD types.
7156 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7158 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7159 (i387_fill_fxsave): Likewise.
7161 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7163 * alpha-tdep.c (alpha_extract_return_value): Don't use
7164 non-constant array size in prototype.
7166 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7168 From Brian Taylor <briant at model dot com>:
7169 * ui-out.c (ui_out_field_core_addr): Use the function
7170 longest_local_hex_string_custom'to format addresses > 32 bits
7173 * ui-out.c (ui_out_field_core_addr): Update comment.
7175 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7177 * stack.c (select_and_print_frame): Make static. Delete the
7179 (func_command): Update call.
7180 (select_frame_command): Delete code computing the frame level.
7181 * frame.h (select_and_print_frame): Delete declaration.
7183 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7185 * sparc-tdep.c (sparc_get_saved_register): Comment why
7186 get_prev_frame call is safe.
7188 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7190 * frame.h (select_frame): Delete level parameter.
7191 * stack.c (select_frame): Update. Use frame_relative_level to
7192 obtain the frame's level.
7193 (select_and_print_frame): Update call.
7194 (select_frame_command): Ditto.
7195 (up_silently_base): Ditto.
7196 (down_silently_base): Ditto.
7197 * ocd.c (ocd_start_remote): Ditto.
7198 * remote-rdp.c (remote_rdp_open): Ditto.
7199 * remote-mips.c (mips_initialize): Ditto.
7200 (common_open): Ditto.
7201 * remote-e7000.c (e7000_start_remote): Ditto.
7202 * m3-nat.c (select_thread): Ditto.
7203 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7204 (child_get_current_exception_event): Ditto.
7205 * varobj.c (varobj_create): Ditto.
7206 (varobj_update): Ditto.
7207 (c_value_of_root): Ditto.
7208 * tracepoint.c (finish_tfind_command): Ditto.
7209 * corelow.c (core_open): Ditto.
7210 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7211 * thread.c (info_threads_command): Ditto.
7212 (switch_to_thread): Ditto.
7213 * infrun.c (normal_stop): Ditto.
7214 (restore_selected_frame): Ditto.
7215 (restore_inferior_status): Ditto.
7216 * breakpoint.c (insert_breakpoints): Ditto.
7217 (watchpoint_check): Ditto.
7218 (bpstat_stop_status): Ditto.
7219 (do_enable_breakpoint): Ditto.
7220 * blockframe.c (flush_cached_frames): Ditto.
7221 (reinit_frame_cache): Ditto.
7223 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7225 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7228 2002-05-04 Jim Blandy <jimb@redhat.com>
7230 * gdbtypes.c (replace_type): Doc fix.
7232 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7234 * valprint.c (strcat_longest): Delete commented out function.
7237 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7239 * MAINTAINERS: Mark a29k as deleted.
7240 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7241 Move new configurations to the top.
7242 * configure.tgt: Remove a29k.
7243 * config/a29k/tm-vx29k.h: Delete.
7244 * config/a29k/vx29k.mt: Delete.
7245 * config/a29k/tm-a29k.h: Delete.
7246 * config/a29k/a29k-udi.mt: Delete.
7247 * config/a29k/a29k.mt: Delete.
7248 * a29k-tdep.c: Delete.
7249 * remote-udi.c: Delete.
7250 * remote-mm.c: Delete.
7251 * remote-eb.c: Delete.
7252 * remote-adapt.c: Delete.
7253 * Makefile.in: Remove obsolete code.
7254 * config/s390/s390x.mt: Ditto.
7255 * config/s390/s390.mt: Ditto.
7256 * config/sparc/sparclynx.mh: Ditto.
7257 * config/sparc/linux.mh: Ditto.
7258 * config/pa/hppaosf.mh: Ditto.
7259 * config/pa/hppabsd.mh: Ditto.
7260 * config/ns32k/nbsd.mt: Ditto.
7261 * config/mips/vr5000.mt: Ditto.
7262 * config/m68k/sun3os4.mh: Ditto.
7263 * config/m68k/nbsd.mt: Ditto.
7264 * config/m68k/m68klynx.mh: Ditto.
7265 * config/m32r/m32r.mt: Ditto.
7266 * config/i386/x86-64linux.mt: Ditto.
7267 * config/i386/nbsdelf.mt: Ditto.
7268 * config/i386/nbsd.mt: Ditto.
7269 * config/i386/i386lynx.mh: Ditto.
7271 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7273 * target.c (debug_print_register): New function. Handle oversize
7275 (debug_to_fetch_registers): Call.
7276 (debug_to_store_registers): Call.
7278 2002-05-03 Jim Blandy <jimb@redhat.com>
7280 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7281 (read_type): Doc fix.
7282 * gdbtypes.c (replace_type): Doc fix.
7284 * stabsread.c (multiply_defined_struct): New complaint.
7285 (read_struct_type): If the type we were passed isn't empty, or
7286 incomplete, don't read the new struct type into it; complain,
7287 and return the original type unchanged. Take a new `type_code'
7288 argument, which is the type code for the new type.
7289 (read_type): Rather than storing the type's type code here, pass
7290 it as an argument to read_struct_type, and let that take care of
7291 storing it. That way, we don't overwrite the original type code,
7292 so read_struct_type can use it to decide whether we're overwriting
7293 something we shouldn't.
7294 (complain_about_struct_wipeout): New function.
7296 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7298 * gdbarch.sh: Assert that gdbarch is non-NULL.
7299 * gdbarch.c: Regenerate.
7301 2002-05-03 Jason Merrill <jason@redhat.com>
7303 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7306 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7308 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7309 (x86_64_dwarf2gdb_regno_map_length),
7310 (x86_64_dwarf2_reg_to_regnum): Added.
7311 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7312 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7313 (_initialize_x86_64_tdep): Synced with the change above.
7314 (x86_64_skip_prologue): Reformulated message.
7316 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7318 * f-exp.y: Also use new prev_lexptr variable
7319 to improve error reporting. Based on Michael Snyder
7320 2002-04-24 dated patch to c-exp.y.
7321 * jv-exp.y: Likewise.
7322 * m2-exp.y: Likewise.
7324 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7326 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7327 we are dealing with vectors.
7329 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7331 * config/m68k/tm-nbsd.h: Obvious fix,
7332 correct machine name.
7334 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7336 * p-typeprint.c (pascal_type_print_base): Add support
7337 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7339 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7341 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7342 for fondamental pascal 'char' type.
7344 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7346 * p-lang.h (is_pascal_string_type): Declaration changed,
7347 new sixth argument of type char ** added.
7348 * p-lang.c (is_pascal_string_type): Implementation
7349 changed. Args length_pos, length_size, string_pos, char_size
7350 can now be NULL. New argument arrayname set to the field
7351 name of the char array. Return value set to char array
7352 field index plus one.
7353 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7354 is_pascal_string_type function.
7356 2002-05-02 Andrew Cagney <cagney@redhat.com>
7358 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7359 <cagney@redhat.com> change.
7360 * gdbarch.c: Regenerate.
7362 2002-05-02 Andrew Cagney <cagney@redhat.com>
7364 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7365 before probing for a new one. Detect errorenous gdbarch_init
7367 * gdbarch.c: Regenerate.
7369 2002-05-01 Andrew Cagney <cagney@redhat.com>
7371 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7372 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7373 * config/v850/tm-v850.h: Ditto. Update copyright.
7375 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7377 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7380 2002-04-30 Michael Snyder <msnyder@redhat.com>
7382 * arm-tdep.c: Whitespace clean-ups.
7383 (arm_skip_prologue): Fix thinko; two lines
7384 should have been removed as part of 4/24 change.
7386 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7388 * rs6000-tdep.c: Added comment describing how fpscr register
7389 numbers were chosen.
7391 2002-04-30 Michael Snyder <msnyder@redhat.com>
7393 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7395 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7397 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7398 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7399 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7401 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7403 From Louis Hamilton <hamilton@redhat.com>:
7404 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7405 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7406 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7407 not bfd-private xcoff data, to determine wordsize.
7408 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7410 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7412 GDB 5.2 released from 5.2 branch.
7414 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7416 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7417 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7418 (x86_64_register_info_table): Added comments with register numbers.
7420 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7422 * rs6000-tdep.c (rs6000_extract_return_value,
7423 rs6000_store_return_value): Handle returning vectors.
7424 (rs6000_gdbarch_init): Use
7425 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7426 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7428 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7430 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7431 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7433 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7435 * hpread.c (hpread_psymtab_to_symtab_1,
7436 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7437 with fprintf_unfiltered (gdb_stderr,...).
7439 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7441 * remote-array.c (printf_monitor, write_monitor,
7442 array_insert_breakpoint, array_remove_breakpoint ):
7443 Replace fprintf (stderr,...
7444 with fprintf_unfiltered (gdb_stderr,....
7445 * remote-es.c: Likewise.
7446 * remote-os9k.c: Likewise.
7447 * remote-st.c: Likewise.
7449 2002-04-28 Andreas Schwab <schwab@suse.de>
7451 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7452 linux-proc.o and gcore.o.
7454 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7456 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7457 code without frame pointers.
7459 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7461 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7464 2002-04-26 Ben Elliston <bje@redhat.com>
7466 * target.c (do_xfer_memory): Correct reference to the new option
7467 "trust-readonly-sections".
7469 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7471 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7472 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7473 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7475 (read_array_type): Record the fact that this array type is really a
7476 vector (i.e. are passed in by value).
7478 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7480 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7481 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7482 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7483 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7484 * alpha-linux-tdep.c: Include frame.h.
7485 (alpha_linux_sigcontext_addr): New function.
7486 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7487 alpha_linux_sigcontext_addr.
7488 * alpha-osf1-tdep.c: Include gdbcore.h.
7489 (alpha_osf1_sigcontext_addr): New function.
7490 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7491 alpha_osf1_sigcontext_addr.
7492 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7493 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7495 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7497 * stack.c (selected_frame_level):
7498 (select_frame): Do not set selected_frame_level.
7499 * frame.h (selected_frame_level): Delete declaration.
7501 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7503 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7504 convert_from_func_ptr-addr when AIX / PowerOpen.
7506 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7508 * valops.c (hand_function_call): Call
7509 generic_save_call_dummy_addr.
7510 * frame.h (generic_save_call_dummy_addr): Declare.
7511 * blockframe.c (struct dummy_frame): Add fields call_lo and
7513 (generic_find_dummy_frame): Check for PC in range call_lo to
7514 call_hi instead of entry_point_address.
7515 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7516 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7517 (generic_save_call_dummy_addr): New function.
7519 2002-04-24 David S. Miller <davem@redhat.com>
7521 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7522 sparc_skip_prologue.
7523 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7524 information to find prologue when possible.
7525 (sparc_prologue_frameless_p): Call examine_prologue directly.
7526 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7527 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7529 (SKIP_PROLOGUE): Likewise.
7531 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7533 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7534 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7535 indicate that the condition it was testing is always true.
7536 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7537 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7538 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7540 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7542 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7543 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7544 tdep->jb_pc and tdep->jb_elt_size.
7545 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7546 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7547 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7548 * alpha-nat.c (get_longjmp_target): Remove.
7549 (JB_ELEMENT_SIZE): Ditto.
7551 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7552 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7553 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7554 to alpha_get_longjmp_target.
7555 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7556 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7557 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7559 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7561 * README: Update to GDB 5.2.
7563 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7565 * gdbarch.sh (LC_ALL): Set to `c'.
7567 2002-04-25 Theodore A. Roth <troth@verinet.com>
7569 * avr-tdep.c: Ran through gdb_indent.sh.
7571 2002-04-25 Theodore A. Roth <troth@verinet.com>
7573 * MAINTAINERS: Add myself as AVR maintainer.
7574 * NEWS: Note new target avr.
7576 2002-04-25 Theodore A. Roth <troth@verinet.com>
7578 * Makefile.in: Add support for AVR target.
7579 * configure.tgt: Add support for AVR target.
7580 * avr-tdep.c: New file
7581 * config/avr/avr.mt: New file.
7583 2002-04-25 Theodore A. Roth <troth@verinet.com>
7585 * MAINTAINERS: Add myself to write-after-approval.
7587 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7589 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7590 with fprintf_unfiltered (gdb_stderr,....
7592 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7595 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7597 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7599 * p-exp.y: Also use new prev_lexptr variable
7600 to improve error reporting. Based on Michael Snyder
7601 2002-04-24 dated patch to c-exp.y.
7603 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7605 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7606 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7607 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7609 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7611 (FUNCTION_START_OFFSET): Remove.
7612 (BREAKPOINT): Ditto.
7614 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7616 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7619 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7621 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7622 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7623 alpha_linux_pc_in_sigtramp.
7624 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7625 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7626 alpha_osf1_pc_in_sigtramp.
7627 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7628 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7629 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7630 alphafbsd_pc_in_sigtramp.
7631 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7632 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7633 alphanbsd_pc_in_sigtramp.
7634 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7635 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7637 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7639 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7641 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7643 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7645 (alphanbsd-nat.o): New dependency list.
7646 (alphanbsd-tdep.o): Ditto.
7647 * NEWS: Note new native NetBSD/alpha configuration.
7648 * alphanbsd-nat.c: New file.
7649 * alphanbsd-tdep.c: Ditto.
7650 * configure.host (alpha*-*-netbsd*): New host.
7651 * configure.tgt (alpha*-*-netbsd*): New target.
7652 * config/alpha/nbsd.mh: New file.
7653 * config/alpha/nbsd.mt: Ditto.
7654 * config/alpha/nm-nbsd.h: Ditto.
7655 * config/alpha/tm-nbsd.h: Ditto.
7657 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7659 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7660 (alpha-osf1-tdep.o): New dependency list.
7661 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7662 and skip_sigtramp_frame members.
7663 * alpha-linux-tdep.c: Include gdbcore.h.
7664 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7665 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7666 * alpha-osf1-tdep.c: New file.
7667 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7669 (alpha_frame_past_sigtramp_frame): New function.
7670 (alpha_dynamic_sigtramp_offset): Ditto.
7671 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7672 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7673 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7674 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7675 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7676 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7677 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7678 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7679 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7680 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7681 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7682 to find_solib_trampoline_target.
7683 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7684 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7685 (SKIP_TRAMPOLINE_CODE): Remove.
7686 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7687 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7688 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7689 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7690 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7691 (PROC_SIGTRAMP_MAGIC): Ditto.
7692 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7693 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7694 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7695 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7696 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7698 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7700 * NEWS: Note that Alpha targets are now multi-arch.
7702 2002-04-24 Michael Snyder <msnyder@redhat.com>
7704 * parser-defs.h (prev_lexptr): New external variable.
7705 * parse.c (parse_exp_1): Set prev_lexptr to null before
7706 calling the language-specific parser.
7707 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7708 (yyerror): Use prev_lexptr in error reporting.
7710 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7712 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7713 * gregset.h: If FILL_FPXREGSET is defined, provide
7714 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7715 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7716 is defined, call fill_fpxregset.
7718 2002-04-24 Roland McGrath <roland@frob.com>
7720 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7721 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7722 (supply_gregset, supply_fpregset): New functions.
7724 * gnu-nat.c (gnu_find_memory_regions): New function.
7725 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7726 (gnu_xfer_memory): Add a cast.
7728 2002-04-24 Michael Snyder <msnyder@redhat.com>
7730 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7731 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7732 of argument regs ("str r(0123), [r11, #-nn"]).
7733 (arm_skip_prologue): Better handling for frameless functions.
7734 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7735 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7737 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7739 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7740 NUM_PSEUDO_REGS can be used.
7742 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7744 * arch-utils.h: Update copyright.
7746 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7747 * gdbarch.h, gdbarch.c: Re-generate.
7749 * inferior.h (IN_SIGTRAMP): Delete definition.
7750 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7751 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7753 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7754 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7755 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7756 (find_proc_framesize): Ditto.
7757 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7758 (alpha_init_extra_frame_info): Ditto.
7759 * infrun.c (handle_inferior_event): Ditto.
7760 (handle_inferior_event): Ditto.
7761 (check_sigtramp2): Ditto.
7762 * blockframe.c (create_new_frame): Ditto.
7763 (get_prev_frame): Ditto.
7764 * ppc-linux-tdep.c: Update comments.
7765 * i386-linux-tdep.c: Update comments.
7766 * breakpoint.c (bpstat_what): Update comment.
7768 2002-04-24 David S. Miller <davem@redhat.com>
7770 * i960-tdep.c (register_in_window_p): New function.
7771 (i960_find_saved_register): Use it instead of
7772 REGISTER_IN_WINDOW_P.
7773 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7775 * symtab.h (find_stab_function_addr): Kill extern.
7776 * minsyms.c (find_stab_function_addr): Remove from here...
7777 * dbxread.c: ... to here, and mark it static.
7779 2002-04-20 David S. Miller <davem@redhat.com>
7781 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7782 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7784 2002-04-21 David S. Miller <davem@redhat.com>
7786 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7787 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7788 (vx_write_register): Likewise.
7790 2002-04-23 J. Brobecker <brobecker@gnat.com>
7792 * source.c (is_regular_file): New function.
7793 (openp): Check wether file to open is a regular file
7794 to avoid opening directories.
7796 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7798 * findvar.c (extract_signed_integer): Cast printf argument
7799 to suppress format warning.
7800 (extract_unsigned_integer): Likewise.
7801 * infcmd.c (registers_info): Likewise.
7802 * top.c (get_prompt_1): Likewise.
7803 * valops.c (value_assign): Likewise.
7804 * valprint.c (print_decimal): Likewise.
7806 2002-04-22 H.J. Lu (hjl@gnu.org)
7808 * c-exp.y (typebase): Support
7810 [long|long long|short] [signed|unsigned] [int|]
7814 signed [long|long long|short] int
7816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7818 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7820 * vax-tdep.h: New file.
7821 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7822 Make several routines static.
7823 (vax_get_saved_register): New function.
7824 (vax_gdbarch_init): New function.
7825 (_initialize_vax_tdep): Register vax_gdbarch_init.
7826 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7827 Remove macros now under the control of gdbarch.
7829 2002-04-22 Michael Snyder <msnyder@redhat.com>
7831 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7832 Some whitespace and coding standards tweaks.
7834 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7836 * vax-tdep.c: Include regcache.h.
7837 (vax_call_dummy_words): New.
7838 (sizeof_vax_call_dummy_words): New.
7839 (vax_fix_call_dummy): New function.
7840 (vax_saved_pc_after_call): Ditto.
7841 * config/vax/tm-vax.h: Don't include regcache.h.
7842 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7843 (CALL_DUMMY): Remove.
7844 (CALL_DUMMY_WORDS): Define.
7845 (SIZEOF_CALL_DUMMY_WORDS): Define.
7846 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7848 2002-04-18 Michael Snyder <msnyder@redhat.com>
7850 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7852 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7854 * vax-tdep.c (vax_frame_chain): New function.
7855 (vax_push_dummy_frame): Ditto.
7856 (vax_pop_frame): Ditto.
7857 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7858 (FRAMELESS_FUNCTION_INVOCATION): Use
7859 generic_frameless_function_invocation_not.
7860 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7861 (POP_FRAME): Use vax_pop_frame.
7863 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7865 * vax-tdep.c (vax_store_struct_return): New function.
7866 (vax_extract_return_value): Ditto.
7867 (vax_store_return_value): Ditto.
7868 (vax_extract_struct_value_address): Ditto.
7869 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7870 vax_store_struct_return.
7871 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7872 (STORE_RETURN_VALUE): Use vax_store_return_value.
7873 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7875 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7877 * vax-tdep.c (vax_frame_saved_pc): New function.
7878 (vax_frame_args_address_correct): Ditto.
7879 (vax_frame_args_address): Ditto.
7880 (vax_frame_locals_address): Ditto.
7881 (vax_frame_num_args): Move code to be in proximity to
7882 other frame-related functions.
7883 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7884 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7885 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7886 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7887 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7889 2002-04-22 H.J. Lu (hjl@gnu.org)
7891 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7894 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7896 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7897 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7898 (FRAME_INIT_SAVED_REGS): New macro.
7900 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7902 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7904 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7906 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7908 (fetch_osf_core_registers): Likewise.
7909 (supply_gregset): Likewise.
7911 2002-04-22 J. Brobecker <brobecker@gnat.com>
7913 * symfile.h (get_section_index): Define.
7914 * symfile.c (get_section_index): New function.
7915 * mdebugread.c (SC_IS_SBSS): New macro.
7916 (SC_IS_BSS): Return true for the scBss storage class only, as
7917 the scSBss storage class refers to the .sbss section.
7918 (parse_partial_symbols): Discard the symbols which associated
7919 section does not exist.
7920 Make sure to use the .sbss section index for symbols which
7921 storage class is scBss, rather than using the .bss section index.
7923 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7925 * vax-tdep.c: Update copyright years.
7926 (vax_register_name): New function.
7927 (vax_register_byte): Ditto.
7928 (vax_register_raw_size): Ditto.
7929 (vax_register_virtual_size): Ditto.
7930 (vax_register_virtual_type): Ditto.
7931 * config/vax/tm-vax.h: Update copyright years.
7932 (REGISTER_NAMES): Remove.
7933 (REGISTER_NAME): Define.
7934 (REGISTER_BYTE): Use vax_register_byte.
7935 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7936 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7937 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7939 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7941 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7943 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7945 2002-04-21 David S. Miller <davem@redhat.com>
7947 * arch-utils.c (generic_prologue_frameless_p): Kill
7948 SKIP_PROLOGUE_FRAMELESS_P code.
7949 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7951 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7952 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7953 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7955 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7956 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7957 (sparc_gdbarch_init): Pass it to
7958 set_gdbarch_prologue_frameless_p.
7960 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7962 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7963 (alphabsd-nat.o): New dependency list.
7965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7967 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7969 (alpha-linux-tdep.o): New dependency list.
7970 (alphafbsd-tdep.o): Likewise.
7972 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7974 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7976 * alpha-tdep.c: ...from here.
7977 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7979 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7981 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7982 prototype from here...
7983 * alpha-tdep.h: ...to here.
7985 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7987 * frame.h (selected_frame_level): Document as deprecated.
7988 (frame_relative_level): Declare.
7989 * stack.c (frame_relative_level): New function.
7990 (selected_frame_level): Document as deprecated.
7991 (select_frame): Do not set the selected_frame_level.
7993 * stack.c (frame_info, record_selected_frame): Update.
7994 (frame_command, current_frame_command): Update.
7995 (up_silently_base, up_command, down_silently_base): Update.
7996 (down_command): Update.
7997 * inflow.c (kill_command): Update.
7998 * tracepoint.c (finish_tfind_command): Update.
7999 * corelow.c (core_open): Update.
8000 * thread.c (info_threads_command): Update.
8001 (do_captured_thread_select): Update.
8002 * infcmd.c (finish_command): Update.
8003 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8005 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8007 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8009 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8011 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8014 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8016 * alphafbsd-tdep.c: Update copyright years. Include
8018 (alphafbsd_use_struct_convention): Make static.
8019 (alphafbsd_init_abi): New function.
8020 (_initialize_alphafbsd_tdep): New function.
8021 * config/alpha/tm-fbsd.h: Update copyright years.
8022 (USE_STRUCT_CONVENTION): Remove.
8024 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8026 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8027 an Alpha ABI variant.
8028 (alpha_abi_handler_list): Declare.
8029 (alpha_gdbarch_register_os_abi): New function.
8030 (alpha_gdbarch_init): Give registered ABI variant handlers a
8031 chance to tweak the gdbarch once we have set up defaults.
8032 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8034 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8036 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8037 to standard_coerce_float_to_double.
8038 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8040 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8042 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8043 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8044 from gdbarch_tdep rather than a constant.
8045 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8046 the default text address for all Alpha Unix ABIs.
8047 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8048 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8050 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8052 * alpha-tdep.h: New file. Includes several Alpha target constants
8054 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8055 let gdbarch deal with.
8056 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8057 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8059 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8060 Alpha target register names.
8061 * alphabsd-nat.c: Likewise.
8062 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8063 Alpha target register names. Make serveral routines static.
8064 (alpha_get_saved_register): New function.
8065 (alpha_abi_names): New.
8066 (process_note_abi_tag_sections): New function.
8067 (get_elfosabi): New function.
8068 (alpha_gdbarch_init): New function.
8069 (alpha_dump_tdep): New function.
8070 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8072 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8074 * frame.c (find_saved_register): Delete #ifdef
8075 HAVE_REGISTER_WINDOWS code.
8076 * config/sparc/tm-sparc.h: Update comments.
8077 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8079 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8081 * i960-tdep.c (i960_find_saved_register): New function.
8082 (i960_get_saved_register): New function.
8083 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8084 (i960_get_saved_register): Declare.
8085 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8087 2002-04-20 David S. Miller <davem@redhat.com>
8089 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8091 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8093 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8094 instead of NUM_PSEUDO_REGS.
8096 2002-04-20 David S. Miller <davem@redhat.com>
8098 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8099 GDB_MULTI_ARCH_PARTIAL
8100 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8101 define, let tm-sp64.h do it.
8103 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8105 * frame.c (find_saved_register): Avoid a NULL pointer
8106 dereference and actually walk the frame list.
8108 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8110 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8111 sorted in most most-recent-used order. Document.
8112 * gdbarch.h, gdbarch.c: Regenerate.
8114 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8116 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8118 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8119 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8120 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8123 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8126 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8127 (build_builtin_type_vec128): Ditto.
8128 (append_composite_type_field): Fix calculation of type length in
8131 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8133 * config/djgpp/README: Update.
8135 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8138 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8140 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8141 (alpha_setup_arbitrary_frame): ...to this.
8142 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8143 for alpha_setup_arbitrary_frame.
8145 2002-04-18 Andrew Cagney <cagney@redhat.com>
8147 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8148 * gdbarch.h, gdbarch.c: Regenerate.
8150 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8151 * target.h (memory_breakpoint_from_pc): Update declaration.
8152 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8154 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8155 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8156 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8157 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8158 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8159 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8160 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8161 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8162 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8163 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8164 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8165 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8167 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8169 * monitor.c (monitor_insert_breakpoint): Ditto.
8170 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8172 * config/mcore/tm-mcore.h: Update copyright.
8173 * mem-break.c: Ditto.
8174 * xstormy16-tdep.c: Ditto.
8176 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8178 * p-exp.y: Add precedence rule for '^' token.
8179 This removes the shift/reduce conflicts.
8180 Remove the comment concerning these shift/reduce conflicts.
8182 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8184 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8185 (registers_powerpc_nofp): New register set for processors
8186 without floating point unit.
8188 2002-04-18 David S. Miller <davem@redhat.com>
8190 * MAINTAINERS: Add myself to write-after-approval.
8192 2002-04-17 Michael Snyder <msnyder@redhat.com>
8194 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8196 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8198 * rs6000-tdep.c (frame_initial_stack_address): Use
8199 frame_register_read to read the alloca_reg.
8201 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8203 * frame.c (find_saved_register): Find saved registers in the next
8207 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8209 * gdbarch.sh (LANG): Set to ``c''.
8211 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8213 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8215 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8217 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8220 * hpread.c (hpread_get_lntt): Add declaration.
8221 Also fix PR gdb/391.
8223 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8225 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8226 * aclocal.m4, configure: Re-generate.
8229 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8231 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8232 instead of tm_print_insn.
8234 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8236 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8238 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8240 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8241 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8242 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8244 2002-04-12 Don Howard <dhoward@redhat.com>
8246 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8247 max_user_call_depth.
8248 (init_cmd_lists): Initialize the new value;
8249 * cli/cli-script.c (execute_user_command): Limit the call depth of
8250 user defined commands. This avoids a core-dump when user commands
8251 are infinitly recursive.
8253 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8255 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8256 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8257 from tdep struct instead of DEFAULT_LR_SAVE.
8258 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8259 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8260 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8262 2002-04-12 Michael Snyder <msnyder@redhat.com>
8264 * Remote.c: Spelling fix.
8265 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8266 If no symbol found for "sbrk", try "_sbrk".
8267 (make_output_phdrs): Use bfd_section_name.
8268 (gcore_copy_callback): Use bfd_section_name.
8269 * eval.c: Indentation fix-ups.
8270 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8271 in case it gets applied to an address that is already
8272 in the instruction space.
8273 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8274 * symfile.c: Fix indentation, long lines.
8275 * source.c: White space fix-up.
8277 2002-04-12 Andrew Cagney <cagney@redhat.com>
8279 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8280 * frame.c (frame_register_read): New function. Return non-zero on
8282 (read_relative_register_raw_bytes_for_frame): Delete.
8283 (read_relative_register_raw_bytes): Delete.
8284 * frame.h (frame_register_read): Declare.
8285 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8287 * infcmd.c (do_registers_info): Ditto.
8288 * hppa-tdep.c: Ditto.
8289 * rs6000-tdep.c: Ditto.
8290 * h8500-tdep.c: Ditto.
8291 * mips-tdep.c: Ditto.
8292 * h8300-tdep.c: Ditto.
8293 * z8k-tdep.c: Ditto.
8295 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8297 From Jimi X <jimix@watson.ibm.com>:
8298 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8301 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8303 From Jimi X <jimix@watson.ibm.com>:
8304 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8307 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8309 From Jimi X <jimix@watson.ibm.com>:
8310 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8311 register sets for these processor variants.
8313 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8315 * regformats/reg-ppc.dat: Support FPSCR.
8317 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8319 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8320 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8321 Add fpscr as an invalid/unfetchable register.
8322 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8323 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8324 (fill_fpregset): Add support for register fpscr.
8325 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8326 (fill_gregset): Account for the fact that register ``mq'' might
8328 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8329 (registers_power): Add fpscr to register set at slot 71.
8330 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8331 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8333 2002-04-11 Michael Snyder <msnyder@redhat.com>
8335 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8336 * configure: Regenerate.
8337 * config.in: Regenerate.
8338 * acconfig.h: Add define for _SYSCALL32.
8339 * core-sol2.c: Remove #define _SYSCALL32.
8340 * solib-legacy.c: Remove #define _SYSCALL32.
8342 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8344 * stack.c (select_frame): Cleanup internal error message, do not
8347 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8349 * stack.c (select_frame): Check that selected_frame and the
8350 specified level are as expected.
8351 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8353 * frame.h (struct frame_info): Add field `level'. Update
8355 Work-in-progress PR gdb/464.
8357 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8359 * maint.c (maint_print_section_info): Rename print_section_info.
8360 (print_bfd_section_info, print_objfile_section_info): Update.
8361 * inferior.h (struct gdbarch): Add opaque declaration.
8362 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8363 * gdbarch.h: Regenerate.
8365 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8367 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8368 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8369 (kernel_u_size): Added.
8370 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8371 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8373 2002-04-04 Jim Ingham <jingham@apple.com>
8375 * valarith.c (find_size_for_pointer_math): New function, either returns
8376 the size for a pointer's target, returns 1 for void *, or errors for
8378 (value_add, value_sub): use find_size_for_pointer_math.
8380 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8382 * linux-low.c (linux_look_up_symbols): New hook.
8383 (linux_target_ops): Add linux_look_up_symbols.
8384 * remote-utils.c (decode_address): New function.
8385 (look_up_one_symbol): New function.
8386 * server.c (handle_query): Call target look_up_symbols hook.
8387 * server.h (look_up_one_symbol): Add prototype.
8388 * target.h (struct target_ops): Add look_up_symbols hook.
8390 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8392 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8393 override FP_REGNUM with frame->fp. Update copyright.
8394 * parse.c (num_std_regs, std_regs): Delete.
8395 (target_map_name_to_register): Do not search std_regs. Update
8396 function description.
8397 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8398 declarations. Update copyright.
8401 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8403 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8404 after the last symbol in a block.
8406 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8408 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8409 is non zero as a found symbol.
8411 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8413 * findvar.c: Include "builtin-regs.h".
8414 (value_of_register): Call value_of_builtin_reg when applicable.
8415 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8416 (target_map_name_to_register): Call
8417 builtin_reg_map_name_to_regnum.
8418 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8419 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8420 (builtin_regs_h): Define.
8421 (builtin-regs.o): New target.
8422 (findvar.o): Add $(builtin_regs_h).
8423 * builtin-regs.c, builtin-regs.h: New files.
8424 * std-regs.c: New file.
8425 Partial fix for PR gdb/251.
8427 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8429 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8430 it's no longer required.
8432 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8434 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8436 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8438 From Jimi X <jimix@watson.ibm.com>:
8439 * rs6000-tdep.c (rs6000_software_single_step): Use
8440 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8441 and size. Use target_insert_breakpoint() and
8442 target_remove_breakpoint() to insert and remove breakpoints
8443 instead of explicit memory reads and writes.
8445 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8447 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8448 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8449 ELF_OBJECT_FORMAT ifdef.
8451 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8453 From Jimi X <jimix@watson.ibm.com>:
8454 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8456 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8458 From Jimi X <jimix@watson.ibm.com>:
8459 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8460 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8462 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8464 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8465 s/asprintf/xasprintf/.
8466 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8468 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8470 I believe Jeff Law denies responsability for this one:
8471 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8472 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8473 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8474 Work-around for PR gdb/366.
8476 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8478 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8479 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8480 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8482 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8484 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8485 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8488 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8490 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8493 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8495 * README (Reporting Bugs in GDB): Document the bug web page as the
8496 prefered way of submitting bugs.
8499 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8501 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8503 * gdbarch.h, gdbarch.c: Re-generate.
8505 2002-04-07 Andreas Schwab <schwab@suse.de>
8507 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8508 buffer to regcache_collect.
8510 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8512 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8513 * gdbarch.c, gdbarch.h: Re-generate.
8515 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8517 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8518 declaration. Fix -Werror.
8520 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8522 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8523 * gdbarch.c: Regenerate.
8525 2002-04-05 Michael Snyder <msnyder@redhat.com>
8527 * breakpoint.c (clear_command): Rewrite middle section to
8528 combine two loops with identical control conditions.
8529 Add a cleanup to eliminate a memory leak.
8530 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8532 2002-04-05 H.J. Lu (hjl@gnu.org)
8534 * solib-svr4.c (bkpt_names): Add "__start".
8536 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8538 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8539 as test for 64 bit target.
8541 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8543 * h8500-tdep.c (h8500_write_fp): Delete function.
8544 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8545 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8546 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8548 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8549 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8551 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8552 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8553 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8554 (d10v_write_fp): Delete function.
8555 * inferior.h (write_fp, generic_target_write_fp): Delete
8557 * regcache.c (generic_target_write_fp): Delete function.
8558 (write_fp): Delete function.
8559 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8560 * gdbarch.h, gdbarch.c: Regenerate.
8561 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8562 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8563 (sparc64_write_fp): Delete declaration.
8564 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8565 (h8500_write_fp): Delete declaration.
8567 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8569 * sparc-tdep.c (sparc64_write_fp): Delete.
8570 (sparc_push_dummy_frame): Replace write_fp call with code to store
8572 (sparc_gdbarch_init): Do not initialize write_fp.
8574 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8576 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8579 2002-03-29 Jim Blandy <jimb@redhat.com>
8581 * stack.c (get_selected_block): Add new argument `addr_in_block',
8582 used to return the exact code address we used to select the block,
8584 * blockframe.c (get_frame_block, get_current_block): Same.
8585 * frame.h (get_frame_block, get_current_block,
8586 get_selected_block): Update declarations.
8587 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8588 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8590 2002-04-05 Michael Snyder <msnyder@redhat.com>
8592 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8595 2002-04-05 J. Brobecker <brobecker@gnat.com>
8597 * utils.c (xfullpath): New function.
8598 * defs.h (xfullpath): Add declaration.
8599 * source.c (openp): Use xfullpath in place of gdb_realpath to
8600 avoid resolving the basename part of filenames when the
8601 associated file is a symbolic link. This fixes a potential
8602 inconsistency between the filenames known to GDB and the
8603 filenames it prints in the annotations.
8604 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8605 to be able to match a filename with either the real filename, or
8606 the name of any symbolic link to this file.
8607 (lookup_partial_symtab): Ditto.
8609 2002-04-04 Michael Snyder <msnyder@redhat.com>
8611 * breakpoint.c: Add support for hardware breakpoints in overlays.
8612 (overlay_events_enabled): New state variable.
8613 (insert_breakpoints): Use overlay_events_enabled to decide
8614 whether to attempt to set a breakpoint at the overlay load addr.
8615 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8616 (remove_breakpoint): Use overlay_events_enabled to decide
8617 whether breakpoints need to be removed from overlay load addr.
8618 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8619 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8620 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8621 disable_overlay_breakpoints): Update overlay_events_enabled.
8623 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8625 * dwarf2read.c (struct function_range): New.
8626 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8627 (check_cu_functions): New.
8628 (read_file_scope): Initialize global function lists.
8629 Call dwarf_decode_line after processing children.
8630 (read_func_scope): Add to global function list.
8631 (dwarf_decode_lines): Call check_cu_functions everywhere
8632 record_line is called. Call record_line with a linenumber
8633 of 0 to mark sequence ends.
8635 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8637 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8638 change sync with glibc.
8640 2002-04-03 Jim Blandy <jimb@redhat.com>
8642 * configure.in: Call AC_C_INLINE.
8643 * configure: Regenerated.
8645 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8647 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8648 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8650 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8652 * NEWS: Mention gcore support on FreeBSD/i386.
8654 * fbsd-proc.c: New file.
8655 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8656 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8658 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8661 2002-03-29 Jim Blandy <jimb@redhat.com>
8663 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8664 unescaped newlines in string literals, but newer ones don't. So
8667 2002-03-26 Michael Snyder <msnyder@redhat.com>
8668 Andrew Cagney <cagney@redhat.com>
8670 * cli/cli-dump.c: New file. Dump memory to file,
8671 restore file to memory.
8672 * cli/cli-dump.h: New file.
8673 * Makefile.in: Add rules, dependencies for cli-dump.o.
8674 * NEWS: Mention new commands.
8676 2002-03-28 Michael Snyder <msnyder@redhat.com>
8678 * symfile.c (symbol_file_add): Move test for null symbols to later.
8680 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8682 From veksler at il.ibm.com:
8683 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8684 the xstrduped original path.
8687 2002-03-27 Michael Snyder <msnyder@redhat.com>
8689 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8690 * infcmd.c (_initialize_infcmd): Ditto.
8691 * language.c (_initialize_language): Ditto.
8692 * symfile.c (_initialize_symfile): Ditto.
8693 * top.c (_init_main): Ditto.
8694 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8696 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8698 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8699 vector registers handling.
8700 (skip_prologue): Handle new AltiVec instructions. Fill in new
8701 fields of frame data.
8702 (frame_get_saved_regs): Fill in information for AltiVec registers.
8704 2002-03-27 Jim Blandy <jimb@redhat.com>
8706 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8707 a function; leave this macro here to invoke that function.
8708 (symbol_init_mangled_name): Declaration for that function.
8709 * symtab.c (symbol_init_mangled_name): New function.
8711 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8713 * valarith.c: Replace strerror with safe_strerror.
8714 * tracepoint.c: Ditto.
8716 * go32-nat.c: Ditto.
8720 2002-03-27 Andreas Schwab <schwab@suse.de>
8722 * event-top.c (command_line_handler): Remove useless if.
8724 2002-03-27 Andreas Jaeger <aj@suse.de>
8726 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8729 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8731 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8732 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8733 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8734 (x86_64_linux_dr_get_status, supply_gregset),
8735 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8736 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8737 (x86_64_register_info_table): Add.
8738 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8739 (x86_64_register_raw_size, x86_64_register_virtual_type),
8740 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8741 general x86_64_register_info_table.
8742 (i386_gdbarch_init): gdbarch_register_bytes is now set
8743 dynamicaly during initialization.
8744 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8745 * gdbserver/linux-x86-64-low.c: Ditto.
8747 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8749 * gdbserver/server.c (main): Call target_signal_to_host_p
8750 and target_signal_to_host on signals received from the remote.
8751 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8752 target_signal_from_host on signals sent to the remote.
8753 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8754 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8756 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8758 * signals/signals.c: Include "server.h" in gdbserver build.
8759 (target_signal_from_name): Don't use STREQ.
8760 (_initialize_signals): Likewise. Don't include function in
8763 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8765 * signals.c: Moved to...
8766 * signals/signals.c: Here.
8767 * Makefile (signals.o): Update.
8769 2002-03-26 Jeff Law (law@redhat.com)
8771 * somread.c (som_symtab_read): Remove some commented out code and
8772 updated related comments. Do not set the minimal symbol table to
8773 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8774 in a dynamic executable.
8775 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8776 where we are unable to find the minimal symbol for the given
8779 2002-03-25 Jeff Law (law@redhat.com)
8781 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8783 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8785 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8787 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8789 * command.h: Update copyright.
8790 (struct cmd_list_element): Replace definition with opaque
8792 (enum cmd_types): Document that it will eventually be moved to
8794 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8795 (MALLOCED_REPLACEMENT): Delete macro.
8796 * Makefile.in (cli_decode_h): Add $(command_h).
8797 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8798 * top.c: Include "cli/cli-decode.h".
8799 * completer.c: Include "cli/cli-decode.h".
8800 * maint.c: Include "cli/cli-decode.h".
8801 * cli/cli-decode.h: Include "command.h".
8802 (enum command_class): Delete.
8803 (enum cmd_types): Comment out.
8804 (enum cmd_auto_boolean): Delete.
8805 (enum var_types): Delete.
8807 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8809 * cli/cli-decode.c: Include "gdb_assert.h".
8810 (add_set_or_show_cmd): New static function.
8811 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8812 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8813 all fields, such as func, from the set command.
8815 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8817 * MAINTAINERS (sh-elf): Change warning flag to -w.
8819 2002-03-23 Andrew Cagney <cagney@redhat.com>
8821 * defs.h (error): Add printf format attribute.
8822 * thread-db.c (thread_from_lwp): Fix error format string.
8823 * stack.c (parse_frame_specification): Ditto.
8824 * cli/cli-decode.c (undef_cmd_error): Ditto.
8825 * scm-lang.c (scm_lookup_name): Ditto.
8826 * tracepoint.c (trace_error): Ditto.
8827 * remote-utils.c (usage): Ditto.
8828 * remote.c (compare_sections_command): Ditto.
8831 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8833 * gdbtypes.c (append_composite_type_field): New function.
8834 (init_composite_type): New function.
8835 * gdbtypes.h (append_composite_type_field): Declare.
8836 (init_composite_type): Ditto.
8838 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8840 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8842 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8843 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8844 structure returning convention for SYSV ABI case, but not
8845 for GNU/Linux, FreeBSD, or NetBSD.
8847 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8849 * symtab.h (lookup_block_symbol): Add mangled_name argument
8852 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8853 with new mangled_name argument.
8854 * linespec.c (decode_line_1): Likewise.
8855 * valops (value_of_this): Likewise.
8856 * symtab.c (lookup_transparent_type): Likewise.
8857 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8858 (lookup_symbol): If we are given a mangled name, pass it down
8859 to lookup_symbol_aux.
8860 (lookup_block_symbol): If we are given a mangled name to check
8861 against, only return symbols which match it.
8863 2002-03-22 Christopher Faylor <cgf@redhat.com>
8865 * win32-nat.c (child_create_inferior): Check for proper shell to use
8866 here, in case the user changes it on the fly.
8867 (_initialize_inftarg): Remove shell path considerations.
8869 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8871 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8872 for gdbarch_max_register_raw_size and max_register_virtual_size.
8873 Adjust copyright year.
8875 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8877 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8878 in a function to cover the entire beginning of the function
8879 as well if it does not already.
8881 2002-03-21 Tom Rix <trix@redhat.com>
8883 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8884 (rs6000_ptrace64): Renamed from ptrace64.
8886 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8888 * gdbserver/remote-utils.c (remote_open): Don't call
8889 getprotobyname, we're all using TCP here so just use
8891 * gdbserver/gdbreplay.c (remote_open): Ditto.
8893 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8895 * regcache.c (_initialize_regcache): No need to call
8896 build_regcache() at this time; it gets called whenever
8897 the gdbarch changes.
8899 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8901 * sparc-nat.c: Include sys/param.h where possible.
8903 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8906 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8907 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8908 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8910 * stabsread.c (rs6000_builtin_type): Likewise.
8911 (read_sun_floating_type): Likewise.
8913 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8915 * stabsread.c (read_member_functions): Remove skip code for duplicate
8916 constructor/destructor methods. Use standard parsing for these
8917 methods and just do not chain them to the list of methods after
8920 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8922 * coffread.c: Remove redundant static declarations. Replace
8923 occurrences of `PTR' with `void *'.
8924 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8925 * top.h (quit_cover): Likewise.
8926 * defs.h (catch_errors): Likewise.
8928 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8930 * defs.h (XMALLOC): Define.
8931 * gdb-events.sh (XMALLOC): Delete macro.
8932 * gdb-events.c, gdb-events.h: Regenerate.
8933 * gdbarch.sh (XMALLOC): Delete macro.
8934 * gdbarch.c: Regenerate.
8935 * serial.c (XMALLOC): Delete macro.
8936 * ui-file.c (XMALLOC): Ditto.
8937 * ser-unix.h (XMALLOC): Ditto.
8938 * sh-tdep.c (XMALLOC): Ditto.
8939 * ui-out.c (XMALLOC): Ditto.
8940 * utils.c (XMALLOC): Ditto.
8941 * i386-tdep.c (XMALLOC): Ditto.
8942 * gdb-events.c (XMALLOC): Ditto.
8943 * d10v-tdep.c (XMALLOC): Ditto.
8944 * cli-out.c (XMALLOC): Ditto.
8946 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8947 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8948 * ui-file.c, ui-out.c: Ditto.
8950 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8952 * command.h (struct cmd_list_element): Add field context.
8953 (set_cmd_context, get_cmd_context): Declare.
8954 * cli/cli-decode.h: Ditto.
8955 * cli/cli-decode.c (get_cmd_context): New function.
8956 (set_cmd_context): New function.
8957 (add_cmd): Initialize context.
8958 Part of fixing PR gdb/145 and PR gdb/146.
8960 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8962 * cli/cli-decode.c (cmd_type): New function.
8963 * command.h (cmd_type): Declare.
8964 * infrun.c (set_schedlock_func): Call function cmd_type.
8965 * kod.c (kod_set_os): Call cmd_type.
8966 * cris-tdep.c (cris_version_update): Use function cmd_type.
8967 (cris_mode_update, cris_abi_update): Ditto.
8969 * command.h: (execute_cmd_post_hook): Declare.
8970 (execute_cmd_pre_hook): Declare.
8971 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8972 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8973 functions. Execute pre/post hook while ensuring that afterwords
8975 * top.c (execute_command): Use execute_cmd_post_hook, and
8976 execute_cmd_pre_hook to execute pre/post commands.
8977 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8979 (hook_stop_stub): Call execute_cmd_pre_hook.
8981 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8983 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8984 set'' and this leads to a core dump. Move xstrdup of
8985 operating_system to after check that it is not NULL.
8987 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8989 * kod.c (kod_set_os): Remove unnecessary check that
8990 ``command->type'' is set_cmd.
8992 * valprint.c (set_input_radix): Use input_radix.
8993 (set_output_radix): Use output_radix.
8994 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8997 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8999 * value.h (struct value): Delete field ``substring_addr''. Change
9000 aligner fields to force_doublest_align, force_longest_align,
9001 force_core_addr_align and force_pointer_aligh.
9003 * value.h (struct value): Fix typo in above change.
9005 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9007 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9008 to fix internal_error from ``maintenance print architecture''.
9010 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9012 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9013 for gcc versions after gcc-2.8.1.
9015 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9017 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9018 for method resolution. Restore adjustment of ``this'' pointer after
9019 calling value_struct_elt, which was accidentally removed during the
9022 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9024 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9026 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9028 * value.h (value_of_register): Update.
9030 2002-03-14 Richard Henderson <rth@redhat.com>
9032 * configure.in: Detect declaration for canonicalize_file_name.
9033 * utils.c (canonicalize_file_name): Declare, if needed.
9034 (gdb_realpath): Prefer realpath if available and usable.
9035 * config.in, configure: Rebuild.
9037 2002-03-14 Richard Henderson <rth@redhat.com>
9039 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9040 a constant array bound.
9042 * MAINTAINERS: Add myself to write-after-approval.
9044 2002-03-14 Michael Snyder <msnyder@redhat.com>
9046 * symfile.c (syms_from_objfile): Return immediately if no syms.
9047 (symbol_file_add): Return immediately if no syms.
9048 (find_sym_fns): Return immediately if no syms.
9050 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9052 * gdbserver/remote-util.c (remote_open): Print remote-side's
9053 IP address when remote debugging over the network.
9055 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9057 * config/sparc/fbsd.mh: Fix copyright.
9058 * config/sparc/fbsd.mt: Likewise.
9060 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9062 * MAINTAINERS: Fix typo in name of gdb warnings option.
9063 (x86-64): Fix formating so that this can be parsed by awk.
9065 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9067 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9068 * defs.h: Include "gdb/signals.h".
9069 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9071 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9073 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9074 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9077 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9078 Don Howard <dhoward@redhat.com>
9080 * mips-tdep.c (ST0_FR): Define.
9081 (mips2_fp_compat): New function, temporarily disabled.
9082 (mips_read_fp_register_single): New function.
9083 (mips_read_fp_register_double): New function.
9084 (mips_print_register): Use them.
9085 (do_fp_register_row): Likewise.
9087 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9089 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9092 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9094 * stabsread.c (read_member_functions): Fix is_stub test for
9095 static member functions, improve comment.
9097 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9099 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9100 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9101 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9102 commands that set boolean values.
9103 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9104 (arm_rdi_resume): Always initialize PC.
9105 (arm_rdi_open): Don't use rslt as a boolean.
9106 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9107 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9108 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9109 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9111 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9113 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9114 * configure: Rebuilt.
9116 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9118 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9119 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9121 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9123 * cli/cli-decode.c (set_cmd_completer): New function.
9124 * command.h (set_cmd_completer): Declare.
9125 * cli/cli-decode.h (set_cmd_completer): Ditto.
9127 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9128 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9129 * win32-nat.c (_initialize_inftarg): Ditto.
9130 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9131 * proc-api.c (_initialize_proc_api): Ditto.
9132 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9133 * source.c (_initialize_source): Ditto.
9134 * exec.c (_initialize_exec): Ditto.
9135 * solib.c (_initialize_solib): Ditto.
9136 * top.c (init_main): Ditto.
9137 * tracepoint.c (_initialize_tracepoint): Ditto.
9138 * symfile.c (_initialize_symfile): Ditto.
9139 * printcmd.c (_initialize_printcmd): Ditto.
9140 * infcmd.c (_initialize_infcmd): Ditto.
9141 * corefile.c (_initialize_core): Ditto.
9143 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9145 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9147 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9149 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9151 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9153 * NEWS: Update headings, 5.2 has branched.
9155 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9157 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9158 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9159 (register_addr, REGISTER_RAW_SIZE): Likewise.
9160 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9161 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9163 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9165 * MAINTAINERS (x86-64): Add myself.
9166 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9167 changed value_ptr -> struct value *
9169 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9171 * configure.host (sparc64-*-freebsd): Add.
9172 * configure.tgt: Likewise.
9173 * config/sparc/fbsd.mh: New file.
9174 * config/sparc/fbsd.mt: Likewise.
9175 * config/sparc/nm-fbsd.h: Likewise.
9176 * config/sparc/tm-fbsd.h: Likewise.
9178 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9180 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9181 regformats/reg-s390x.dat.
9183 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9185 * utils.c: Add FIXME explaining true/false problem.
9187 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9189 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9191 2002-02-28 Michael Chastain <mec@shout.net>
9193 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9195 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9197 * gdbserver/linux-s390-low.c: New file.
9198 * regformats/reg-s390.dat: New file.
9199 * regformats/reg-s390x.dat: New file.
9200 * gdbserver/configure.srv: Add S/390.
9201 * gdbserver/Makefile.in: Add S/390.
9202 * configure.tgt: Enable gdbserver for S/390.
9204 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9206 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9207 first line of the doc string for "info dos", except at the end of
9208 the sentence, since the short help stops at the first period.
9210 2002-02-28 Jason Merrill <jason@redhat.com>
9212 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9214 2002-02-27 Fred Fish <fnf@redhat.com>
9216 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9217 comment (dumy -> dummy).
9219 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9221 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9223 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9225 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9227 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9229 * gdbserver/acconfig.h: New file.
9230 * gdbserver/i387-fp.c: New file.
9231 * gdbserver/i387-fp.h: New file.
9232 * gdbserver/linux-x86-64.c: New file.
9233 * regformats/reg-x86-64.dat: New file.
9234 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9235 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9236 * gdbserver/configure.in: Add support for regsets.
9237 * gdbserver/config.in: Regenerate.
9238 * gdbserver/configure: Regenerate.
9239 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9240 * gdbserver/linux-low.h: New file.
9241 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9243 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9244 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9245 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9246 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9247 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9248 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9249 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9250 "i387-fp.h". Add PTRACE_GETREGS and friends.
9251 * gdbserver/regcache.c (supply_register): New function.
9252 (supply_register_by_name): New function.
9253 (collect_register): New function.
9254 (collect_register_by_name): New function.
9256 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9258 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9259 (config.status): Add configure.srv dependency.
9260 (server_h): Add config.h dependency.
9262 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9264 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9265 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9266 * gdbserver/configure.srv: Change i386-*-linux* to use
9269 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9271 * x86-64-tdep.c: Re-indent. Update copyright date.
9273 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9275 From Michal Ludvig <mludvig@suse.cz>:
9276 * x86-64-tdep.c (value.h): Delete.
9277 (gdb_assert.h): Include.
9278 (x86_64_register_convert_to_virtual,
9279 x86_64_register_convert_to_raw ): Add check which lets only
9280 floating-point values to be converted.
9281 (value_push): Delete.
9282 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9283 (i386_gdbarch_init): Number of register_bytes fixed.
9285 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9287 * MAINTAINERS: Add x86-64 target.
9289 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9291 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9292 * osfsolib.c (solib_map_sections): Ditto.
9293 * irix5-nat.c (solib_map_sections): Ditto.
9294 * corelow.c (gdb_check_format): Ditto.
9295 * symfile.c (symfile_bfd_open): Ditto.
9296 * solib.c (solib_map_sections): Ditto.
9299 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9301 * remote.c (_initialize_remote): By default, disable ``e'' and
9302 ``E'' step out-of-range packets.
9304 2002-02-26 Andreas Schwab <schwab@suse.de>
9306 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9307 m68k_linux_frame_saved_pc.
9308 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9310 (SIGCONTEXT_PC_OFFSET): Remove.
9311 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9312 m68k_linux_sigtramp_saved_pc): New functions.
9313 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9314 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9315 (UCONTEXT_PC_OFFSET): Define.
9316 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9317 non-RT and RT signal trampolines.
9319 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9321 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9322 (TARGET_NBPG, STACK_END_ADDR): Delete
9323 (VARIABLES_INSIDE_BLOCK): Delete.
9325 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9327 * utils.c (perror_with_name): Make string parameter constant.
9328 (print_sys_errmsg): Ditto.
9330 * defs.h (perror_with_name): Update.
9331 (print_sys_errmsg): Update.
9334 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9336 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9337 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9339 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9341 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9342 if it already matches the current architecture from the exec file.
9343 Include arch-utils.h for gdbarch_info_init prototype.
9344 * Makefile.in (rs6000-nat.o): Update dependencies.
9346 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9348 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9349 list of exported variables.
9351 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9353 * gdbserver/configure.srv: New file.
9354 * gdbserver/configure.in: Use configure.srv instead
9355 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9357 * gdbserver/configure: Regenerated.
9358 * gdbserver/terminal.h: New file.
9359 * gdbserver/Makefile.in: Update for configure changes. Remove
9360 more unneeded include paths.
9362 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9364 From wiz at danbala:
9365 * config/sparc/tm-sp64.h: Fix grammar and typos.
9368 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9370 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9371 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9372 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9373 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9374 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9375 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9376 * s390-tdep.c: Ditto.
9377 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9378 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9379 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9380 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9381 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9382 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9383 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9384 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9385 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9386 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9389 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9391 * lin-thread.c: Delete file.
9392 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9393 to gdb_proc_service.h.
9394 * configure: Re-generate.
9396 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9397 * serial.c (serial_open): Delete check for "ocd".
9400 * Makefile.in (linux-thread.o): Delete target.
9401 * linux-thread.c: Delete file.
9403 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9404 renamed SH files to be consistent.
9406 * symtab.c (sort_search_symbols): Use xfree.
9408 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9410 * arm-linux-tdep.c (arm_linux_init_abi): Register
9411 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9412 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9413 definition with undef, since we don't want the sysvr4 definition.
9414 (SKIP_TRAMPOLINE_CODE): Likewise.
9416 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9418 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9420 * configure.in: (AC_CHECK_FUNCS) Added test for
9421 canonicalize_file_name Regenerated.
9422 * config.in, configure: Regenerated.
9423 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9424 defined use canonicalize_file_name.
9426 2002-02-23 Michael Chastain <mec@shout.net>
9428 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9432 * README: Remove references to cygnus.com.
9433 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9434 dot com'' form. Remove references to cygnus.com and sourceware.
9436 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9438 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9439 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9440 1003.1-2001 no longer allows "head -1".
9441 * gdb/Makefile.in (version.c): Likewise.
9442 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9443 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9444 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9446 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9448 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9449 * command.h (cmd_cfunc_eq): Declare.
9450 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9452 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9453 ``struct cmd_list_element *''.
9454 * cli/cli-cmds.c (is_complete_command): Update. Use
9456 * top.c (execute_command): Pass the command to
9457 is_complete_command.
9458 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9460 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9462 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9463 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9464 architecture defines.
9465 * s390-tdep.c (s390_gdbarch_init): Likewise.
9467 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9469 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9470 (arm_linux_push_arguments): Likewise.
9471 (arm_linux_init_abi): Register them. Also register linux-specific
9473 (find_minsym_and_objfile): Use strcmp, not STREQ.
9474 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9475 (arm_linux_call_dummy_words): Delete declaration.
9476 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9477 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9479 (LOWEST_PC): Delete.
9481 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9483 * maint.c (print_section_info): Do not prepend `0x' to filepos
9484 output, it will be handled by local_hex_string_custom.
9486 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9488 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9489 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9490 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9492 2002-02-22 Jim Blandy <jimb@redhat.com>
9494 Indicate that the bcache functions don't change the strings
9496 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9497 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9499 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9501 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9503 2002-02-21 Christopher Faylor <cgf@redhat.com>
9505 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9506 find the complete path to a loaded DLL.
9508 2002-02-21 Fred Fish <fnf@redhat.com>
9510 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9511 that marks the end of the range of a function, enter a line number
9512 entry that has a line number of zero and a PC offset that matches
9513 the end of the function. This starts a range of PC's for which no
9514 line number information is known.
9515 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9516 PC's for which no line number info is found (line number is zero)
9517 then we didn't find any valid line information.
9518 * symtab.h: Document use of zero line number entry.
9520 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9522 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9523 (have_ptrace_getvrregs): Define for run time checks.
9524 (gdb_vrregset_t): New type for Altivec register handling.
9525 (fetch_register, store_register): Fetch/store altivec register
9527 (fetch_altivec_register, store_altivec_register): New functions.
9528 (supply_vrregset, fill_vrregset): New functions.
9529 (fetch_altivec_registers, store_altivec_registers): New functions.
9530 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9533 2002-02-21 Jiri Smid <smid@suse.cz>
9535 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9537 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9539 * Makefile.in (armnbsd-nat.o): Update dependencies.
9540 * armnbsd-nat.c (supply_gregset): New function. Common code to
9541 supply the integer register set.
9542 (supply_fparegset): New function. Similar for FPA registers.
9543 (fetch_regs, fetch_fp_regs): Use them.
9544 (fetch_core_registers): Likewise.
9545 (fetch_elfcore_registers): New function.
9546 (arm_netbsd_elfcore_fns): New core-file type specification.
9547 (_initialize_arm_netbsd_nat): Register it.
9549 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9551 * armnbsd-nat.c: Include gdbcore.h.
9552 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9553 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9554 'void' to declaration, to shut up ARI.
9555 (fetch_core_registers): Make static. Rewrite using supply_register.
9556 (arm_netbsd_core_fns): New core-file type specification.
9557 (_initialize_arm_netbsd_nat): New function.
9559 2002-02-21 Christopher Faylor <cgf@redhat.com>
9561 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9564 2002-02-20 Christopher Faylor <cgf@redhat.com>
9566 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9569 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9571 * jv-exp.y (parse_number): Change type of implicit longs
9572 to builtin_type_uint64.
9574 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9576 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9577 to be an integer instead of a `union wait'.
9579 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9581 * mips-linux-nat.c: Call the operating system GNU/Linux.
9582 * mips-linux-tdep.c: Likewise.
9583 * mips-tdep.c: Likewise.
9585 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9588 * jv-exp.y (parse_number): Handle 64-bit integers.
9590 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9592 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9593 AC_STDC_HEADERS to AC_HEADER_STDC.
9594 * gdbserver/configure: Regenerated.
9596 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9598 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9600 * sparc-tdep.c (get_longjmp_target): Likewise.
9602 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9604 * News: Add news about ARM and Multi-arch. Mention the new target
9607 2002-02-19 Jim Blandy <jimb@redhat.com>
9609 * stabsread.c (error_type_complaint): Improve error message.
9611 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9613 * gdbserver/README: Update documentation.
9614 * gdbserver/configure.in: Update configury to match documentation.
9615 * gdbserver/Makefile.in: Likewise.
9616 * gdbserver/configure: Regenerated.
9617 * gdbserver/aclocal.m4: New file, generated by aclocal.
9618 * gdbserver/config.in: New file, generated by autoheader.
9620 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9622 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9625 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9627 * arm-tdep.h (enum arm_float_model): New enum.
9628 (struct gdbarch_tdep): Add fp_model.
9629 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9630 up floating-point conversions until we know the floating-point model
9631 in use by the inferior. Don't complain about being unable to
9632 determine the ABI of the inferior when we don't have one.
9633 (arm_extract_return_value): Support different floating-point models.
9634 (arm_store_return_value): Likewise.
9635 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9637 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9639 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9641 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9642 of ``current_gdbarch''.
9644 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9646 * armnbsd-nat.c : ANSIfy all function declarations.
9647 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9648 (fetch_inferior_registers): Re-implement in terms of above.
9649 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9650 (store_inferior_registers): Re-implement in terms of above.
9652 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9654 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9656 * arm-linux-tdep.c: Likewise.
9657 * config/arm/tm-linux.h: Likewise.
9659 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9661 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9662 * config/arm/nbsd.mt (TM_FILE): Delete.
9663 * config/arm/tm-nbsd.h: Delete.
9665 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9667 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9668 Initialize CALL_DUMMY_LENGTH.
9670 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9672 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9674 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9675 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9676 defines one thing and that is incorrect for this port.
9677 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9679 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9681 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9683 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9685 * win32-nat.c (display_selector): New function. Displays information
9686 about the information returned by GetThreadSelectorEntry API function.
9687 (display_selectors): New function. Displays the infomation of
9688 the selector given as argument, or of CS, DS ans FS selectors
9689 if no argument is given.
9690 ( _initialize_inftarg): Add "w32" as info prefix command.
9691 Add "info w32 selector" as command calling display_selectors.
9693 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9695 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9696 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9699 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9701 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9703 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9705 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9706 (arm_fix_call_dummy): Call it.
9707 (arm_call_dummy_breakpoint_offset): Delete.
9708 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9709 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9711 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9713 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9714 Default to func_frame_chain_valid.
9715 * gdbarch.h, gdbarch.c: Re-generate.
9716 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9718 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9720 * ppc-linux-nat.c: Update copyright.
9721 (fetch_register, store_register): Add tid parameter, don't compute
9723 (fetch_ppc_registers, store_ppc_registers): Add tid
9724 parameter. Pass it along to callees.
9725 (fetch_inferior_registers, store_inferior_registers): Compute tid
9726 here, and pass it to calleed functions.
9727 (fill_gregset, supply_fpregset): Clean up formatting.
9729 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9731 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9732 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9734 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9736 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9737 * gdbarch.c gdbarch.h: Regenerate.
9738 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9740 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9741 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9742 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9744 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9745 * arm-tdep.c (arm_get_longjmp_target): New function.
9746 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9747 this to a positive value register arm_get_longjmp_target as the
9749 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9750 (arm_linux_init_abi): Set up longjmp description in tdep.
9751 * armnbsd-nat.c (get_longjmp_target): Delete.
9752 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9753 description in tdep.
9754 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9755 (get_longjmp_target): Delete declaration.
9756 (GET_LONGJMP_TARGET): Delete.
9757 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9758 (GET_LONGJMP_TARGET): Delete.
9760 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9762 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9763 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9764 of ``current_gdbarch''.
9766 2002-02-17 Tom Tromey <tromey@redhat.com>
9768 * cli/cli-cmds.c (compare_strings): New function.
9769 (complete_command): Only print each unique item once.
9770 * completer.h (complete_line): Declare.
9771 * completer.c (complete_line): New function.
9772 (line_completion_function): Use it.
9774 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9776 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9777 * gdbarch.h, gdbarch.c: Re-generate.
9779 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9781 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9783 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9785 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9786 * valops.c (value_arg_coerce): Don't take the address of a reference
9787 to convert an argument to a reference.
9789 2002-02-15 Christopher Faylor <cgf@redhat.com>
9791 * win32-nat.c (get_image_name): New function.
9792 (handle_load_dll): Use get_image_name function.
9793 (get_child_debug_event): Avoid registering debug events until possibly
9794 execed process is started.
9795 (child_create_inferior): Allow invocation via shell so that command
9796 line redirection, etc. works ok.
9797 (_initialize_inftarg): Add new command: "set shell" to control whether
9798 a shell is used to start a process.
9800 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9802 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9803 instead of find_register_by_number.
9804 (cannot_store_register): Likewise.
9806 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9808 * dwarf2read.c: Replace fprintf (stderr, ...) by
9809 fprintf_unfiltered (gdb_stderr, ...).
9811 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9813 * gdbserver/gdbserver.1: Document --attach.
9815 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9817 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9819 * arm-tdep.c (arm_default_arm_le_breakpoint)
9820 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9821 (arm_default_thumb_be_breakpoint): New. Initialize them from
9822 traditional breakpoint defines.
9823 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9824 (arm_gdbarch_init): Initialize new breakpoint variables.
9825 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9826 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9827 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9828 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9830 (arm_netbsd_init_abi_common): ... here; new function.
9831 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9832 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9833 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9834 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9836 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9838 * arm-tdep.h (enum arm_abi): New enum.
9839 (struct gdbarch_tdep): New structure.
9840 (LOWEST_PC): Provide a default.
9841 (arm_gdbarch_register_os_abi): Declare new function.
9842 * arm-tdep.c (arm_abi_names): New array.
9843 (process_note_abi_tag_sections): New function.
9844 (get_elfosabi): New function.
9845 (arm_gdbarch_register_os_abi): New function.
9846 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9847 support for that ABI has been built in, then call the appropriate
9848 configuration routine. Use gdbarch_num_regs() to get the number
9850 (arm_dump_tdep): New function.
9851 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9852 place-holder functions.
9853 (_initialize_arm_tdep): Register them.
9854 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9856 * armnbsd-tdep.c: New file.
9857 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9858 * config/arm/nbsd.mt (TDEPFILES): Add it.
9859 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9861 * armnbsd-nat.c: Include regcache.h.
9862 * Makefile.in (armnbsd-nat.o): Update dependency list.
9864 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9866 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9868 * gdbserver/Makefile.in: Fix typos in target rules.
9870 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9872 Fix part of PR gdb/267.
9873 * linespec.c (find_methods): Handle constructors specially for now.
9875 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9877 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9879 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9880 standard_coerce_float_to_double().
9882 2002-02-14 Christopher Faylor <cgf@redhat.com>
9884 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9887 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9889 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9890 find_variant_by_name, because it confuses the multiarch
9891 framework. Return NULL if there isn't an architecture with the
9892 user supplied name, instead of forcing a different one without
9893 recording the change with the multiarch machinery.
9894 (find_variant_by_name): Delete.
9896 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9898 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9899 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9901 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9903 * stack.c (print_frame_info_base): When calling
9904 print_frame_info_listing_hook, set current_source_symtab.
9906 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9908 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9909 and remove unused $(INCLUDE_DIR).
9910 Add regcache.c to OBS.
9911 Add generated register protocol files to clean target.
9912 Update dependencies for new objects, obsolete old target code.
9914 * gdbserver/linux-low.c: Remove all platform-specific code to
9915 new files. Remove various dead code. Update to use regcache
9917 * gdbserver/remote-utils.c (fromhex): Add return statement
9919 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9921 (input_interrupt): Add integer parameter to match prototype
9922 of a signal handler.
9923 (outreg): Use register_data ().
9924 (prepare_resume_reply): Use gdbserver_expedite_regs.
9925 * gdbserver/server.c (main): Dynamically allocate own_buf because
9926 PBUFSIZ is no longer constant. Use registers_to_string () and
9927 registers_from_string ().
9928 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9929 for error (), fatal (), and warning (). Update definition of
9930 PBUFSIZ to use regcache functionality. Add include guard.
9931 * gdbserver/utils.c (fatal): Add missing ``const''.
9932 (warning): New function.
9934 * regformats/regdat.sh: Include "regcache.h" in generated files.
9935 Provide init_registers () function.
9936 * regformats/regdef.h: Add prototype for set_register_cache ().
9939 * gdbserver/linux-arm-low.c: New file.
9940 * gdbserver/linux-i386-low.c: New file.
9941 * gdbserver/linux-ia64-low.c: New file.
9942 * gdbserver/linux-m68k-low.c: New file.
9943 * gdbserver/linux-mips-low.c: New file.
9944 * gdbserver/linux-ppc-low.c: New file.
9945 * gdbserver/linux-sh-low.c: New file.
9947 * gdbserver/regcache.c: New file.
9948 * gdbserver/regcache.h: New file.
9950 * gdbserver/low-linux.c: Removed obsolete file.
9952 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9954 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9955 * config/i386/linux.mt: Likewise.
9956 * config/ia64/linux.mt: Likewise.
9957 * config/m68k/linux.mh: Likewise.
9958 * config/powerpc/linux.mh: Likewise.
9959 * config/mips/linux.mt: Likewise.
9961 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9963 * config/i386/i386lynx.mh: Mark gdbserver variables
9964 as (currently) obsolete for this target.
9965 * config/i386/nbsd.mt: Likewise.
9966 * config/i386/nbsdelf.mt: Likewise.
9967 * config/m32r/m32r.mt: Likewise.
9968 * config/m68k/m68klynx.mh: Likewise.
9969 * config/m68k/nbsd.mt: Likewise.
9970 * config/m68k/sun3os4.mh: Likewise.
9971 * config/mips/vr5000.mt: Likewise.
9972 * config/ns32k/nbsd.mt: Likewise.
9973 * config/pa/hppabsd.mh: Likewise.
9974 * config/pa/hppaosf.mh: Likewise.
9975 * config/powerpc/nbsd.mt: Likewise.
9976 * config/rs6000/rs6000lynx.mh: Likewise.
9977 * config/s390/s390.mt: Likewise.
9978 * config/s390/s390x.mt: Likewise.
9979 * config/sparc/sparclynx.mh: Likewise.
9980 * config/sparc/sun4os4.mh: Likewise.
9981 * config/i386/x86-64linux.mt: Likewise.
9982 * config/sparc/linux.mh: Likewise.
9984 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9986 * configure.tgt: Configure gdbserver only for known working
9987 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9988 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9989 SUBDIRS if it is configured. Update comment for ${nativefile}.
9990 * configure: Regenerated.
9992 2002-02-13 Michael Snyder <msnyder@redhat.com>
9994 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9996 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9997 (default_gcore_mach): Just return 0, work around a problem in bfd.
9998 (default_gcore_target): OK to return NULL if exec_bfd is null.
9999 (make_mem_sec): Use a cast, avoid a warning.
10001 * procfs.c (find_memory_regions_callback): Use a cast instead of
10002 calling host_pointer_to_address (which complains if
10003 sizeof (host pointer) != sizeof (target pointer)).
10004 (procfs_make_note_section): Avoid overflow in psargs string.
10006 * procfs.c (procfs_make_note_section): Make the default
10007 implementation return an error.
10009 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10011 * procfs.c (procfs_make_note_section): Provide a default definition
10012 (for alpha-dec-osf4.0f). Fix typos.
10014 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10016 * linux-proc.c: Add include of regcache.h.
10017 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10019 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10021 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10022 * memattr.c (create_mem_region): Disallow useless empty region.
10023 Regions are half-open intervals, so allow [A..B) [B..C) as
10026 2002-02-13 Michael Chastain <mec@shout.net>
10028 * defs.h: Kill CONST_PTR.
10029 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10030 * c-lang.c (c_builtin_types): Likewise.
10031 * ch-lang.c (ch_builtin_types): Likewise.
10032 * f-lang.c (f_builtin_types): Likewise.
10033 * language.c (unknown_builtin_types): Likewise.
10034 * m2-lang.c (m2_builtin_types): Likewise.
10035 * p-lang.c (pascal_builtin_types): Likewise.
10036 * scm-lang.c (c_builtin_types): Likewise.
10038 2002-02-13 Keith Seitz <keiths@redhat.com>
10040 * arm-tdep.h (arm_get_next_pc): Add declaration.
10042 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10044 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10045 with other related struct-returning functions.
10046 (arm_extract_struct_value_address): New function.
10047 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10048 initialize float_format, double_format and long_double_format as
10049 appropriate to the endianness of the target.
10050 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10051 (arm_use_struct_convention): Delete declaration.
10052 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10054 2002-02-13 Keith Seitz <keiths@redhat.com>
10056 * defs.h (core_addr_to_string_nz): New function.
10058 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10060 Apply missing bits of 2002-01-15 patch.
10061 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10062 (fill_fpregset): Use i387_fill_fsave.
10064 2002-02-12 Keith Seitz <keiths@redhat.com>
10066 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10067 (core_addr_to_string_nz): New function.
10069 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10071 * arm-linux-nat.c: Really include arm-tdep.h.
10072 * config/arm/tm-linux.h (struct type, struct value): Declare.
10074 2002-02-11 Michael Snyder <msnyder@redhat.com>
10076 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10077 (gcore section): Ifdef for Solaris and Unixware only.
10078 (procfs_do_thread_registers): Unixware needs one lwpstatus
10079 per thread (not one prstatus or pstatus).
10080 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10081 not over all gdb threads. For unixware, call elfcore_write_pstatus
10082 once before iterating over threads.
10084 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10086 * arm-tdep.h: New file.
10087 * arm-tdep.c: Include arm-tdep.h.
10088 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10089 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10090 (arm_print_float_info, arm_register_type, convert_to_extended)
10091 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10092 (arm_extract_return_value, arm_register_name): Make static.
10093 (arm_software_single_step): Similarly. Fix types in declaration.
10094 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10095 (arm_store_return_value, arm_store_struct_return): New functions.
10096 (arm_gdbarch_init): Register the above functions. Also register
10097 call_dummy_start_offset, sizeof_call_dummy_words,
10098 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10099 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10100 max_register_virtual_size, register_size. Set up
10101 prologue_cache.saved_regs here, rather than ...
10102 (_initialize_arm_tdep): ... here.
10103 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10105 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10106 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10107 (arm_print_float_info, arm_register_type, convert_to_extended)
10108 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10109 (arm_extract_return_value, arm_register_name): Delete declarations.
10110 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10111 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10112 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10113 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10114 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10115 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10116 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10117 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10118 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10119 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10120 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10121 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10123 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10124 * remote-rdi.c remote-rdp.c: Likewise.
10125 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10126 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10127 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10130 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10131 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10132 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10133 from non-ARM_ prefixed definitions.
10134 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10136 * remote-rdi.c remote-rdp.c: Likewise.
10137 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10139 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10141 * arm-tdep.c (arm_frameless_function_invocation)
10142 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10143 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10144 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10145 (arm_pop_frame, arm_get_next_pc): Make static.
10146 (arm_gdbarch_init): Register above in gdbarch structure.
10147 (arm_read_fp): Renamed from arm_target_read_fp.
10148 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10149 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10150 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10151 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10152 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10153 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10154 (arm_pc_is_thumb_dummy): Delete declarations.
10155 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10156 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10157 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10158 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10160 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10162 * symtab.c (compare_search_syms): New function.
10163 (sort_search_symbols): New function.
10164 (search_symbols): Sort symbols after searching rather than
10167 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10169 * NEWS: Linux -> GNU/Linux.
10171 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10173 * gdbarch.sh: For for level one methods, disallow a definition
10174 when partially multi-arched. Add comments explaining rationale.
10175 * gdbarch.h: Re-generate.
10177 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10179 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10180 multi-arch partial.
10182 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10184 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10185 field. Use diff -u.
10186 * gdbarch.c: Re-generate.
10188 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10190 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10191 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10194 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10196 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10197 multi-arch partial.
10198 (PUSH_ARGUMENTS): Switch to using predefault.
10199 * gdbarch.c: Regenerate.
10201 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10203 * valops.c (PUSH_ARGUMENTS): Delete definition.
10204 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10205 partial. Default to default_push_arguments.
10206 * gdbarch.h, gdbarch.c: Regenerate.
10208 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10210 * defs.h (throw_exception): Rename return_to_top_level. Update
10212 * utils.c (error_stream, internal_verror, quit): Ditto.
10213 * top.c (throw_exception, catcher): Ditto.
10214 * sparclet-rom.c (sparclet_load): Ditto.
10215 * remote.c (interrupt_query, minitelnet): Ditto.
10216 * remote-sds.c (interrupt_query): Ditto.
10217 * remote-mips.c (mips_error, mips_kill): Ditto.
10218 * ocd.c (interrupt_query): Ditto.
10219 * monitor.c (monitor_interrupt_query): Ditto.
10220 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10221 * target.h: Update comment.
10223 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10225 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10227 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10228 default_double_format.
10229 * gdbarch.h, gdbarch.c: Re-generate.
10230 * findvar.c (floatformat_unknown): Delete variable definition.
10231 * doublest.h (floatformat_unknown): Delete variable declaration.
10233 2002-02-09 Jim Blandy <jimb@redhat.com>
10235 * stabsread.c (read_type): Add code to parse Sun's syntax for
10236 prototyped function types.
10238 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10240 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10241 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10243 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10245 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10246 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10247 now _initialize_xcoffsolib gets called again and overrides the
10248 commands from solib.c in a native configuration.
10250 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10252 * doublest.c (store_typed_floating): Don't try to return a value.
10255 2002-02-08 Jim Blandy <jimb@redhat.com>
10257 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10258 is prototyped and has no arguments, print its argument list as
10261 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10263 * MAINTAINERS (write-after-approval): Add myself.
10264 (paper-trail): I've escaped!
10266 2002-02-08 Christopher Faylor <cgf@redhat.com>
10268 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10270 (_initialize_check_for_gdb_ini): Ditto.
10272 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10274 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10275 xaprintf -> xasprintf.
10277 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10279 * win32-nat.c: Remove use of printf and sprintf functions.
10281 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10283 * arm-tdep.c (arm_frame_chain_valid): Make static.
10284 (arm_push_arguments): Likewise.
10285 (arm_gdbarch_init): New function.
10286 (_initialize_arm_tdep): Call it.
10287 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10288 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10289 (FRAME_CHAIN_VALID): Delete.
10290 (arm_frame_chain_valid): Delete declaration.
10291 (PUSH_ARGUMENTS): Delete.
10292 (arm_push_arguments): Delete declaration.
10293 (CALL_DUMMY_P): Delete.
10295 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10296 Corinna Vinschen <vinschen@redhat.com>
10298 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10299 on builtin float types.
10301 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10303 * utils.c: Include <curses.h> before "bfd.h".
10304 * tui/tui-hooks.c: Likewise.
10305 * tui/tui.c: Likewise.
10306 * tui/tuiCommand.c: Likewise.
10307 * tui/tuiData.c: Likewise.
10308 * tui/tuiDataWin.c: Likewise.
10309 * tui/tuiDisassem.c: Likewise.
10310 * tui/tuiGeneralWin.c: Likewise.
10311 * tui/tuiIO.c: Likewise.
10312 * tui/tuiLayout.c: Likewise.
10313 * tui/tuiRegs.c: Likewise.
10314 * tui/tuiSource.c: Likewise.
10315 * tui/tuiSourceWin.c: Likewise.
10316 * tui/tuiStack.c: Likewise.
10317 * tui/tuiWin.c: Likewise.
10319 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10321 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10322 to include space for pseudoregs as well. Update loops accordingly.
10323 (sh_fp_frame_init_saved_regs): Ditto.
10324 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10326 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10328 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10329 Add Richard Earnshaw to Arm maintainers.
10331 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10333 * defs.h (warning_begin): Delete declaration.
10335 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10338 2002-02-07 Michael Snyder <msnyder@redhat.com>
10340 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10341 Logic bug, remove misplaced else.
10343 2002-02-07 Klee Dienes <klee@apple.com>
10345 * fork-inferior.c (fork_inferior): Add '!' to the list of
10346 characters that need to be quoted when building a string for the
10347 shell. Quote '!' specifically with a backslash, since CSH chokes
10348 when trying to evaluate "str!str".
10350 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10352 * rdi-share/host.h: Only provide a typedef for bool if it is not
10355 2002-02-04 Michael Snyder <msnyder@redhat.com>
10357 * breakpoint.h (enum bptype): Add new overlay event bp type.
10358 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10360 * breakpoint.c (create_internal_breakpoint): New function.
10361 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10362 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10363 (create_thread_event_breakpoint): Ditto.
10364 (create_solib_event_breakpoint): Ditto.
10365 (create_overlay_event_breakpoint): New function.
10366 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10367 (update_breakpoints_after_exec): Delete and re-initialize
10368 overlay event breakpoints after an exec. Add FIXME comment
10369 about longjmp breakpoint.
10370 (print_it_typical): Ignore overlay event breakpoints.
10371 (print_one_breakpoint): Ditto.
10373 (bpstat_what): Do not stop for overlay event breakpoints.
10374 (delete_breakpoint): Don't delete overlay event breakpoints.
10375 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10376 (breakpoint_re_set): Re-create overlay event breakpoint.
10378 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10379 (overlay_manual_command): Disable overlay breakpoints.
10380 (overlay_off_command): Disable overlay breakpoints.
10382 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10384 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10385 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10386 to here from config/tm-arm.h.
10387 (coff_sym_is_thumb): Make static.
10388 (arm_elf_make_msymbol_special): New function.
10389 (arm_coff_make_msymbol_special): New function.
10390 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10391 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10392 (coff_sym_is_thumb): Delete declaration.
10393 (arm_elf_make_msymbol_special): Declare.
10394 (arm_coff_make_msymbol_special): Declare.
10395 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10396 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10398 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10400 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10402 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10404 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10405 * gdbarch.c gdbarch.h: Regenerate.
10406 * arch-utils.c (default_print_float_info): New function.
10407 * arch-utils.h (default_print_float_info): Prototype it.
10408 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10409 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10410 (PRINT_FLOAT_INFO): Document it.
10412 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10413 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10414 (PRINT_FLOAT_INFO): Define.
10416 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10418 * win32-nat.c (_initialize_check_for_gdb_ini):
10419 Add typecast to sprintf argument to suppress a warning.
10421 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10423 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10424 to allow easier handling of pass state.
10425 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10426 that gives exception name and address.
10427 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10428 and set last_sig value to ourstatus->value.sig. Some missing
10430 (child_continue): Correctly report continue_status.
10431 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10432 TARGET_SIGNAL_0 (new default value).
10433 (child_resume): consider sig argument passed to decide if
10434 the exception should be passed to debuggee or not.
10436 2002-02-05 Michael Snyder <msnyder@redhat.com>
10438 * regcache.c (fetch_register): Call target_fetch_register
10439 only if we don't call FETCH_PSEUDO_REGISTER.
10440 (store_register): Call target_store_register only if we
10441 don't call STORE_PSEUDO_REGISTER.
10443 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10445 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10446 ELF_MAKE_MSYMBOL_SPECIAL.
10447 * gdbarch.c, gdbarch.h: Regenerate.
10448 * arch-utils.c (default_make_msymbol_special): New function.
10449 * arch-utils.h (default_make_msymbol_special): Export.
10450 * elfread.c (elf_symtab_read): Compile use of
10451 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10453 * coffread.c (coff_symtab_read): Ditto, for
10454 COFF_MAKE_MSYMBOL_SPECIAL.
10456 2002-02-05 Jim Blandy <jimb@redhat.com>
10458 * solib-svr4.c (svr4_truncate_ptr): New function.
10459 (svr4_relocate_section_addresses): Do the address arithmetic with
10460 the appropriate truncation for target addresses, even when
10461 CORE_ADDR is larger than a target address.
10463 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10465 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10468 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10470 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10473 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10475 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10477 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10479 * gdbserver/linux-low.c: Remove unused include files.
10481 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10483 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10484 (read_inferior_memory): Use it.
10485 (write_inferior_memory): Likewise.
10487 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10489 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10490 grubbing through sys_errlist.
10492 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10494 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10496 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10497 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10499 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10501 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10502 (do_sfunc, set_cmd_sfunc): New functions.
10504 * command.h (struct cmd_list_element): Add field func.
10505 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10506 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10507 * cli/cli-decode.h: Ditto.
10509 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10510 (help_all, help_cmd_list): Ditto.
10511 (find_cmd, complete_on_cmdlist): Ditto.
10512 * top.c (execute_command): Ditto.
10514 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10517 * infcmd.c (notice_args_read): Fix function signature.
10519 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10520 * cli/cli-decode.c (add_set_cmd): Ditto.
10521 * utils.c (initialize_utils): Ditto.
10522 * maint.c (_initialize_maint_cmds): Ditto.
10523 * infrun.c (_initialize_infrun): Ditto.
10524 * demangle.c (_initialize_demangler): Ditto.
10525 * remote.c (add_packet_config_cmd): Ditto.
10526 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10527 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10528 * proc-api.c (_initialize_proc_api): Ditto.
10529 * kod.c (_initialize_kod): Ditto.
10530 * valprint.c (_initialize_valprint): Ditto.
10531 * top.c (init_main): Ditto.
10532 * infcmd.c (_initialize_infcmd): Ditto.
10533 * corefile.c (_initialize_core): Ditto.
10534 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10535 * arch-utils.c (initialize_current_architecture): Ditto.
10536 (_initialize_gdbarch_utils): Ditto.
10537 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10539 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10540 * wince.c (_initialize_inftarg): Ditto.
10541 * symfile.c (_initialize_symfile): Ditto.
10542 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10543 * language.c (_initialize_language): Ditto.
10544 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10546 2002-02-04 Michael Snyder <msnyder@redhat.com>
10548 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10550 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10552 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10553 Add rules for building the register data files.
10555 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10557 * regformats/regdat.sh: Add braces to the definition of
10558 expedite_regs_${arch}.
10560 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10562 * regformats/regdef.h (struct reg): Add comment describing the
10563 requirements for offset and size fields.
10565 2002-02-04 Andreas Schwab <schwab@suse.de>
10567 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10568 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10570 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10572 * gdbarch.sh (copyright): Update years in generated header.
10573 (SMASH_TEXT_ADDRESS): Add rule.
10574 * gdbarch.h, gdbarch.c: Re-generate.
10575 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10576 * dbxread.c: Likewise.
10577 * dwarfread.c: Likewise.
10578 * elfread.c: Likewise.
10579 * somread.c: Likewise.
10581 * arm-tdep.c (arm_smash_text_address): New function.
10582 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10584 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10586 Add support for hardware watchpoints on win32 native.
10587 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10588 CONTEXT_DEBUG_REGISTERS.
10589 (dr variable): New variable. Static array containing a local copy
10590 of debug registers.
10591 (debug_registers_changed): New variable. Reflects when debug registers
10592 are changed and need to be written to inferior.
10593 (debug_registers_used): New variable. Reflects when any debug register
10594 was set, used when new threads are created.
10595 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10597 (thread_rec): Set dr array if id is the thread of current_event .
10598 (child_continue, child_resume): Change the debug registers for all
10599 threads if debug_registers_changed.
10600 (child_add_thread): Change the debug registers if debug_registers_used.
10601 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10602 Link nm.h to new nm-cygwin.h file.
10603 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10604 of hardware registers.
10606 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10608 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10609 Restore behavour broken by 2002-01-20 Andrew Cagney
10610 <ac131313@redhat.com> IEEE_FLOAT removal.
10612 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10614 * c-valprint.c (c_val_print): Pass a proper valaddr to
10615 cp_print_class_method.
10616 * valops.c (search_struct_method): If there is only one method
10617 and args is NULL, return that method.
10619 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10621 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10622 accessing tag_name directly.
10624 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10626 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10627 of accessing tag_name directly.
10629 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10632 * gdbtypes.c (replace_type): New function.
10633 * gdbtypes.h (replace_type): Add prototype.
10634 * stabsread.c (read_type): Use replace_type.
10636 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10638 * Makefile.in (memattr.o): Add missing dependencies rule.
10640 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10642 * breakpoint.c (break_at_finish_command): Really export.
10643 (break_at_finish_at_depth_command): Ditto.
10644 (tbreak_at_finish_command): Ditto.
10645 * hppa-tdep.c: Include completer.h.
10646 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10647 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10649 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10651 * utils.c (do_write): New function.
10652 (error_stream): Rewrite combining the code from error_begin and
10654 (verror): Rewrite using error_stream.
10655 (error_begin): Delete function.
10657 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10659 * utils.c (error_begin): Make static.
10660 * defs.h (error_begin): Delete declaration.
10662 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10663 (decode_line_1): Use cplusplus_error instead of error_begin,
10664 cplusplus_hint and return_to_top_level.
10665 * coffread.c (coff_symfile_read): Use error instead of error_begin
10666 and return_to_top_level.
10667 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10669 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10671 * language.h (type_error, range_error): Make string parameter
10673 * language.c (warning_pre_print): Delete extern declaration.
10674 * dwarfread.c (warning_pre_print): Ditto.
10675 * language.c (type_error, range_error): Rewrite to use verror and
10676 vwarning instead of warning_begin.
10678 2002-02-01 Michael Snyder <msnyder@redhat.com>
10680 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10681 (set_ignore_count): Move misplaced comment back where it belongs.
10683 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10685 * command.h (NO_FUNCTION): Delete macro.
10686 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10687 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10688 * tracepoint.c (_initialize_tracepoint): Ditto.
10689 * cli/cli-decode.c (add_set_cmd): Ditto.
10690 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10692 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10694 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10695 Update ``this'' pointer when calling virtual functions.
10697 2002-02-01 Michael Snyder <msnyder@redhat.com>
10699 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10700 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10702 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10704 * regformats/reg-arm.dat: New file.
10705 * regformats/reg-i386.dat: New file.
10706 * regformats/reg-ia64.dat: New file.
10707 * regformats/reg-m68k.dat: New file.
10708 * regformats/reg-mips.dat: New file.
10709 * regformats/reg-ppc.dat: New file.
10710 * regformats/reg-sh.dat: New file.
10711 * regformats/regdef.h: New file.
10712 * regformats/regdat.sh: New file.
10714 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10716 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10717 (arm_frame_args_address, arm_frame_locals_address): New functions.
10718 (arm_frame_num_args): New function.
10719 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10720 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10721 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10723 2002-01-31 Michael Snyder <msnyder@redhat.com>
10725 * breakpoint.c (break_at_finish_command): Export.
10726 (break_at_finish_at_depth_command): Export.
10727 (tbreak_at_finish_command): Export.
10728 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10729 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10730 "txbreak" commands, which are HPPA specific.
10732 * printcmd.c (disassemble_command): Remove an ancient
10733 artifact of an old merge.
10735 * symfile.h (enum overlay_debugging_state):
10736 Define enum constant values for overlay mode.
10737 * symfile.c (overlay_debugging): Use enums instead of literals.
10738 (overlay_is_mapped, overlay_auto_command,
10739 overlay_manual_command): Ditto.
10741 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10742 breakpoint_here_p, breakpoint_inserted_here_p,
10743 breakpoint_thread_match, bpstat_stop_status,
10744 describe_other_breakpoints, check_duplicates, clear_command):
10745 Coding standard fixes.
10747 * target.c (target_xfer_memory): Add spaces, coding standard.
10748 (do_xfer_memory): Add missing line to trust-readonly
10749 code: check bfd SEC_READONLY flag for section.
10751 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10753 * PROBLEMS: Fix typo, 5.1->5.1.1.
10755 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10757 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10758 data symbols, since we search based on textlow and texthigh.
10759 (find_pc_sect_symtab): Likewise.
10761 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10763 * defs.h (vwarning): Declare.
10764 * utils.c (vwarning): New function.
10765 (warning): Call vwarning.
10766 (warning_begin): Delete function.
10768 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10769 the warning message.
10770 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10773 2002-01-30 Michael Snyder <msnyder@redhat.com>
10775 * NEWS: Mention "set trust-readonly-sections" command.
10776 Mention generate-core-file command.
10778 2002-01-15 Michael Snyder <msnyder@redhat.com>
10780 * target.c: New command, "set trust-readonly-sections on".
10781 (do_xfer_memory): Honor the suggestion to trust readonly sections
10782 by reading them from the object file instead of from the target.
10783 (initialize_targets): Register command "set trust-readonly-sections".
10785 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10787 * parse.c (target_map_name_to_register): Simplify, search regs and
10788 pseudo-regs using a single loop.
10790 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10792 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10794 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10796 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10797 * config/i386/i386v42mp.mh: Add i387-nat.o .
10798 * i386v4-nat.c: Include i387-nat.h.
10799 (supply_fpregset): Use i387_supply_fsave.
10800 (fill_fpregset): Use i387_fill_fsave.
10802 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10804 * arm-tdep.c (arm_call_dummy_words): Define.
10805 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10806 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10807 (CALL_DUMMY_WORDS): Define.
10808 (arm_call_dummy_words): Declare.
10809 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10810 (arm_linux_call_dummy_words): Declare.
10812 2002-01-30 Andreas Schwab <schwab@suse.de>
10814 * m68klinux-nat.c: Fix last change to use regcache_collect
10815 instead of referencing registers[] directly.
10817 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10819 * parse.c (target_map_name_to_register): Delete code wrapped in
10820 #ifdef REGISTER_NAME_ALIAS_HOOK.
10822 2002-01-28 Michael Snyder <msnyder@redhat.com>
10824 * regcache.c (legacy_read_register_gen): Need to be able to
10825 read pseudo-register as well as real register.
10826 (legacy_write_register_gen): Ditto.
10828 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10830 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10831 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10832 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10833 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10834 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10835 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10836 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10837 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10838 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10839 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10840 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10841 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10842 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10843 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10844 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10845 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10846 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10847 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10848 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10849 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10851 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10853 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10854 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10855 (initialize_current_architecture): Update target_byte_order using
10856 information from BFD.
10857 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10858 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10860 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10862 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10863 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10865 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10866 #ifdef INVALID_FLOAT.
10867 * infcmd.c (do_registers_info): Ditto.
10868 * values.c (unpack_double): Ditto. Add comment.
10870 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10871 already commented out.
10873 2002-01-26 Andreas Schwab <schwab@suse.de>
10875 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10876 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10877 registers and add support for PTRACE_GETREGS.
10879 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10881 GDB 5.1.1 released from 5.1 branch.
10882 * NEWS: Add 5.1.1 news.
10883 * README: Sync with 5.1 branch.
10885 2002-01-23 Fred Fish <fnf@redhat.com>
10887 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10888 stabstring on initial malloc. Reallocing will copy it for us,
10891 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10893 * Makefile.in (hpread_h): Delete.
10894 (HFILES_NO_SRCDIR): Remove hpread.h.
10895 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10896 (hpread.o): Update dependencies.
10897 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10899 * hp-psymtab-read.c: Remove file.
10900 * hp-symtab-read.c: Remove file.
10901 * hpread.h: Remove file.
10903 * hpread.c: Merge all contents of hp-psymtab-read.c,
10904 hp-symtab-read.c and hpread.h into this file, as it was prior to
10907 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10908 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10909 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10910 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10912 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10914 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10915 fill_gregset): Call gdbarch_tdep() just once, assign result to
10916 variable and use that, instead of calling the function several
10919 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10921 * configure.host: Accept sparcv9 as alias for sparc64.
10922 * configure.tgt: Likewise.
10924 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10926 * solib-aix5.c (build_so_list_from_mapfile)
10927 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10928 arguments is not reversed.
10929 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10930 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10932 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10934 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10935 modified version of obsolete sh_fetch_pseudo_register.
10936 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10937 (sh4_register_read): New function.
10938 (sh_pseudo_register_write): New function. Renamed and modified
10939 version of obsolete sh_store_pseudo_register.
10940 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10941 (sh4_register_write): New function.
10942 (sh_gdbarch_init): Remove setting of gdbarch function
10943 fetch_pseudo_register and store_pseudo_register. Remove setting of
10944 register_convert_to_raw, register_convert_to_virtual,
10945 register_convertible.
10946 (sh_sh4_register_convertible): Delete. No longer needed. All is
10947 taken care by architecture specific functions
10948 register_read/register_write.
10949 (sh_sh4_register_convert_to_virtual): Make static.
10950 (sh_sh4_register_convert_to_raw): Ditto.
10952 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10954 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10955 (floatformat_is_nan, floatformat_mantissa): Ditto.
10957 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10958 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10959 builtin_type_ieee_double_little,
10960 builtin_type_ieee_double_littlebyte_bigword,
10961 builtin_type_m68881_ext, builtin_type_i960_ext,
10962 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10963 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10964 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10965 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10967 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10969 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10970 parameter. Set frameless flag if it exists and depended of
10971 whether the scanned function is frameless or not.
10972 (xstormy16_skip_prologue): If function is frameless, return
10973 result of xstormy16_scan_prologue().
10974 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10977 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10979 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10980 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10981 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10982 sh_sh4_register_byte, sh_sh4_register_raw_size,
10983 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10984 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10985 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10986 sh_store_pseudo_register, sh_do_pseudo_register): Call
10987 gdbarch_tdep() just once, assign result to variable and use that,
10988 instead of calling the function several times.
10990 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10992 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10993 macros instead of LAST_FPU_CTRL_REGNUM.
10994 (store_register): Likewise.
10996 2002-01-21 Jim Blandy <jimb@redhat.com>
10998 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10999 is up-to-date before running the program, not just when a program
11002 2002-01-21 Fred Fish <fnf@redhat.com>
11004 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11005 when we have found all instructions we are looking for.
11007 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11009 * arm-tdep.c (arm_register_name): New function.
11010 (arm_registers_names): Make static.
11011 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11012 (arm_register_name): Declare.
11013 (REGISTER_NAME): Use it.
11015 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11016 Kevin Buettner <kevinb@redhat.com>
11018 Convert arm targets to new FRAME interface.
11019 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11020 (arm_frame_find_save_regs): Delete.
11021 (arm_frame_init_saved_regs): New.
11022 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11023 Allocate extra_info as required. Convert all uses of fsr.regs
11024 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11026 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11027 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11028 (check_prologue_cache, save_prologue_cache): Likewise.
11029 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11030 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11031 (FRAME_FIND_SAVED_REGS): Delete.
11032 (arm_frame_find_saved_regs): Delete prototype.
11033 (arm_frame_init_saved_regs): New prototype.
11034 (FRAME_INIT_SAVED_REGS): Define.
11036 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11038 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11040 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11042 From Jeff Law <law@redhat.com>:
11043 * infttrace.c: Include <sys/pstat.h>.
11044 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11045 exec file if the ttrace equivalent fails.
11047 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11049 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11050 (closeLogFile): Ditto.
11052 2002-01-20 Michael Chastain <mec@shout.net>
11054 * top.c (print_gdb_version): Bump copyright year to 2002.
11056 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11058 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11059 Zannoni and Eli Zaretskii.
11061 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11063 * buildsym.c: Update copyright years.
11064 * c-typeprint.c: Likewise.
11065 * dwarf2read.c: Likewise.
11066 * f-typeprint.c: Likewise.
11067 * gdbtypes.c: Likewise.
11068 * gdbtypes.h: Likewise.
11069 * hp-symtab-read.c: Likewise.
11070 * hpread.c: Likewise.
11071 * mdebugread.c: Likewise.
11072 * p-typeprint.c: Likewise.
11074 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11076 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11077 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11078 byte-order selectable.
11079 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11080 * arch-utils.c: Ditto.
11081 (set_endian): Ditto.
11082 (set_endian_from_file): Ditto.
11083 * gdbserver/low-sim.c (create_inferior): Ditto.
11084 * gdbarch.sh: Ditto.
11085 * gdbarch.h: Re-generate.
11086 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11087 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11088 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11089 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11090 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11091 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11092 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11093 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11095 * config/mips/tm-wince.h: Remove #undef of macro
11096 TARGET_BYTE_ORDER_SELECTABLE.
11097 * config/sh/tm-wince.h: Ditto.
11099 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11101 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11102 member function fields. Add accessor macro
11103 TYPE_FN_FIELD_ARTIFICIAL.
11104 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11105 * c-typeprint.c (c_type_print_base): Skip artificial member
11108 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11110 * f-typeprint.c: Delete unused function f_type_print_args.
11111 * p-typeprint.c: Delete unused function pascal_type_print_args.
11113 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11115 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11116 comment. Add ``artificial'' to ``union field_location''.
11118 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11120 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11121 * mdebugread.c (parse_symbol): Likewise.
11122 * stabsread.c (define_symbol): Likewise.
11123 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11124 initializing TYPE_FIELD_BITPOS to n (obsolete).
11125 (hpread_doc_function_type): Likewise.
11126 * hpread.c (hpread_function_type): Likewise.
11128 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11130 * configure.in (host_makefile_frag): Only require a host makefile
11131 fragment when a native build.
11132 * configure: Re-generate.
11134 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11136 * doublest.h (floatformat_from_type): Declare.
11137 * doublest.c (floatformat_from_type): New function.
11138 (convert_typed_floating): Use.
11140 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11141 call to function floatformat_from_type.
11143 * gdbarch.sh (IEEE_FLOAT): Delete.
11144 * gdbarch.h, gdbarch.c: Re-generate.
11145 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11146 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11147 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11148 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11149 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11150 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11151 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11152 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11153 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11154 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11155 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11156 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11158 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11159 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11160 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11161 * sh-tdep.c (sh_gdbarch_init): Ditto.
11162 * mips-tdep.c (mips_gdbarch_init): Ditto.
11163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11164 * cris-tdep.c (cris_gdbarch_init): Ditto.
11166 2002-01-20 Jiri Smid <smid@suse.cz>
11168 * configure.host, configure.tgt: Support x86-64.
11169 * NEWS: Note new target x86-64.
11171 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11172 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11173 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11174 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11175 x86-64-linux-nat.o): Fix dependencies.
11177 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11179 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11180 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11181 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11182 * config/sparc/xm-sun4os4.h: Delete file.
11183 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11185 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11187 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11188 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11189 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11190 * config/i386/i386lynx.mh (XM_FILE): Delete.
11191 * config/rs6000/xm-rs6000ly.h: Delete file.
11192 * config/sparc/xm-sparclynx.h: Delete file.
11193 * config/m68k/xm-m68klynx.h: Delete file.
11194 * config/i386/xm-i386lynx.h: Delete file.
11195 * config/xm-lynx.h: Delete file.
11196 * config/djgpp/fnchange.lst: Update.
11198 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11200 * alpha-tdep.c (alpha_register_byte): New function.
11201 (alpha_register_raw_size): Ditto.
11202 (alpha_register_virtual_size): Ditto.
11203 (alpha_skip_prologue_internal): Renamed from
11204 alpha_skip_prologue.
11205 (alpha_skip_prologue): New version that calls
11206 alpha_skip_prologue_internal.
11207 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11208 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11209 second argument from alpha_skip_prologue.
11210 (REGISTER_BYTE): Use alpha_register_byte.
11211 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11212 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11213 (FRAMELESS_FUNCTION_INVOCATION): Use
11214 generic_frameless_function_invocation_not.
11215 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11216 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11218 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11220 * config/mips/xm-news-mips.h: Delete file.
11221 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11223 * config/m88k/xm-m88k.h: Delete file.
11224 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11225 * config/m88k/xm-delta88v4.h: Ditto.
11226 * config/m88k/xm-delta88.h: Ditto.
11228 * config/alpha/xm-fbsd.h: Delete file.
11229 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11231 * config/sparc/xm-sparc.h: Delete file.
11232 * Makefile.in (xm-sun4os4.h): Delete dependency.
11233 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11234 * config/sparc/xm-sun4os4.h: Ditto.
11235 * config/sparc/xm-linux.h: Ditto.
11237 * config/i386/xm-windows.h: Delete file.
11239 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11241 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11242 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11244 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11246 * alpha-tdep.c (alpha_call_dummy_words): New.
11247 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11248 (CALL_DUMMY_P): Define.
11249 (CALL_DUMMY_WORDS): Define.
11250 (SIZEOF_CALL_DUMMY_WORDS): Define.
11252 2002-01-19 Per Bothner <per@bothner.com>
11254 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11255 isn't NULL, which can happen with some gcj-3.x-produced code.
11257 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11259 * alpha-tdep.c (alpha_register_virtual_type): New function.
11260 (alpha_init_frame_pc_first): Ditto.
11261 (alpha_fix_call_dummy): Ditto.
11262 (alpha_store_struct_return): Ditto.
11263 (alpha_extract_struct_value_address): Ditto.
11264 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11265 alpha_register_virtual_type.
11266 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11267 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11268 alpha_extract_struct_value_address.
11269 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11270 (INIT_FRAME_PC): Use init_frame_pc_noop.
11271 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11273 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11275 * i386gnu-nat.c: Include "i386-tdep.h".
11276 (fetch_fpregs): Simplify code dealing with uninitialized floating
11277 point states such that it doesn't require FP7_REGNUM.
11279 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11281 * alpha-tdep.c (frame_extra_info): New.
11282 (alpha_find_saved_regs): Make static. Use
11284 (alpha_frame_init_saved_regs): New function.
11285 (alpha_frame_saved_pc): Use frame->extra_info.
11286 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11287 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11288 (init_extra_frame_info): Rename to...
11289 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11290 (alpha_print_extra_frame_info): New function.
11291 (alpha_frame_locals_address): Ditto.
11292 (alpha_frame_args_address): Ditto.
11293 (alpha_pop_frame): Use frame->extra_info.
11294 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11295 alpha_frame_args_address.
11296 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11297 (alpha_find_saved_regs): Remove prototype.
11298 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11299 (EXTRA_FRAME_INFO): Remove.
11300 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11301 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11303 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11305 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11306 (alpha_cannot_fetch_register): Ditto.
11307 (alpha_cannot_store_register): Ditto.
11308 (alpha_register_convertible): Ditto.
11309 (alpha_use_struct_convention): Ditto.
11310 * config/alpha/tm-alpha.h: Update copyright years.
11311 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11312 (INNER_THAN): Use core_addr_lessthan.
11313 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11314 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11315 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11316 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11317 (FRAME_CHAIN): Remove unnecessary cast.
11319 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11321 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11324 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11326 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11327 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11328 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11329 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11330 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11331 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11332 * x86-64-linux-nat.c: Ditto.
11334 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11336 * alpha-tdep.c (alpha_register_name): New function.
11337 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11338 (REGISTER_NAME): Define.
11340 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11342 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11344 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11346 * alpha-tdep.c: Update copyright years.
11347 (alpha_next_pc): New function.
11348 (alpha_software_single_step): Ditto.
11349 * config/alpha/tm-alpha.h: Add prototype for
11350 alpha_software_single_step.
11352 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11354 * alphabsd-nat.c: Update copyright years.
11355 (fill_gregset): Use regcache_collect.
11356 (fill_fpregset): Likewise.
11357 (fetch_inferior_registers): Only fetch integer registers
11358 if requested to do so.
11359 (store_inferior_registers): Only store integer registers
11360 if requested to do so.
11362 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11364 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11365 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11366 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11367 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11368 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11369 * config/arm/linux.mh (XDEPFILES): Delete.
11370 * config/arm/nbsd.mh (XDEPFILES): Delete.
11371 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11372 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11373 * config/i386/i386m3.mh (XDEPFILES): Delete.
11374 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11375 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11376 * config/i386/fbsd.mh (XDEPFILES): Delete.
11377 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11378 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11379 * config/i386/i386v4.mh (XDEPFILES): Delete.
11380 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11381 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11382 * config/i386/i386aix.mh (XDEPFILES): Delete.
11383 * config/i386/go32.mh (XDEPFILES): Delete.
11384 * config/i386/cygwin.mh (XDEPFILES): Delete.
11385 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11386 * config/i386/i386mach.mh (XDEPFILES): Delete.
11387 * config/i386/i386v32.mh (XDEPFILES): Delete.
11388 * config/i386/linux.mh (XDEPFILES): Delete.
11389 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11390 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11391 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11392 * config/i386/i386sco.mh (XDEPFILES): Delete.
11393 * config/i386/i386v.mh (XDEPFILES): Delete.
11394 * config/i386/nbsd.mh (XDEPFILES): Delete.
11395 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11396 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11397 * config/i386/symmetry.mh (XDEPFILES): Delete.
11398 * config/i386/obsd.mh (XDEPFILES): Delete.
11399 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11400 * config/ia64/linux.mh (XDEPFILES): Delete.
11401 * config/ia64/aix.mh (XDEPFILES): Delete.
11402 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11403 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11404 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11405 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11406 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11407 * config/m68k/linux.mh (XDEPFILES): Delete.
11408 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11409 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11410 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11411 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11412 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11413 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11414 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11415 * config/m88k/delta88.mh (XDEPFILES): Delete.
11416 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11417 * config/m88k/m88k.mh (XDEPFILES): Delete.
11418 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11419 * config/mips/linux.mh (XDEPFILES): Delete.
11420 * config/mips/irix6.mh (XDEPFILES): Delete.
11421 * config/mips/irix5.mh (XDEPFILES): Delete.
11422 * config/mips/irix4.mh (XDEPFILES): Delete.
11423 * config/mips/irix3.mh (XDEPFILES): Delete.
11424 * config/mips/decstation.mh (XDEPFILES): Delete.
11425 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11426 (NATDEPFILES): Move core-aout.o to here.
11427 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11428 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11429 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11430 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11431 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11432 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11433 * config/pa/hpux11.mh (XDEPFILES): Delete.
11434 * config/powerpc/aix.mh (XDEPFILES): Delete.
11435 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11436 * config/powerpc/linux.mh (XDEPFILES): Delete.
11437 * config/romp/rtbsd.mh: Rename XDEPFILES.
11438 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11439 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11440 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11441 * config/s390/s390.mh (XDEPFILES): Delete.
11442 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11443 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11444 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11445 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11446 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11447 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11448 * config/sparc/linux.mh (XDEPFILES): Delete.
11449 * config/vax/vaxult.mh (XDEPFILES): Delete.
11450 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11451 * Makefile.in (DEPFILES): Remove XDEPFILES.
11453 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11455 * utils.c (internal_verror): Fix comments, default is yes not no.
11456 Update queries to match. Default to quit and dump core.
11458 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11460 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11462 * defs.h, event-top.c, gdbcmd.h: Ditto.
11463 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11464 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11465 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11466 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11467 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11468 * mi/mi-main.c:Ditto.
11470 * stack.c, symfile.c: Update copyright.
11472 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11474 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11475 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11476 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11477 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11479 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11481 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11482 * gdbserver/low-lynx.c (myattach): Likewise.
11483 * gdbserver/low-nbsd.c (myattach): Likewise.
11484 * gdbserver/low-sim.c (myattach): Likewise.
11485 * gdbserver/low-sparc.c (myattach): Likewise.
11486 * gdbserver/low-sun3.c (myattach): Likewise.
11488 * gdbserver/low-linux.c (myattach): New function.
11490 * gdbserver/server.c (attach_inferior): New function.
11491 (main): Handle "--attach".
11493 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11495 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11498 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11500 * c-typeprint.c (is_type_conversion_operator): Add additional
11501 check for non-conversion operators.
11503 2002-01-15 Michael Snyder <msnyder@redhat.com>
11505 * linux-proc.c: Add "info proc" command, a la procfs.c.
11506 (read_mapping): New function, abstract and re-use code.
11507 (linux_find_memory_regions): Use new func read_mapping.
11508 (linux_info_proc_cmd): New function, implement "info proc".
11509 (_initialize_linux_proc): Add new command "info proc".
11511 2002-01-15 Michael Snyder <msnyder@redhat.com>
11513 * symfile.c (generic_load): Use bfd_map_over_sections method
11514 instead of manipulating bfd structure members directly.
11515 (add_section_size_callback): New function, bfd sections callback
11516 used by generic_load.
11517 (load_sections_callback): New function, bfd sections callback
11518 used by generic_load.
11520 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11522 [Based on work by Jim Blandy]
11523 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11524 (builtin_type_vec128): Export.
11525 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11527 (builtin_type_vec128): New builtin type for 128 bit vector
11529 (build_gdbtypes): Initialize builtin_type_v16qi and
11530 builtin_type_v8hi. Create the vec128 register builtin type
11532 (build_builtin_type_vec128): New function.
11533 (_initialize_gdbtypes): Register builtin_type_v16qi and
11534 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11535 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11536 AltiVec register to new builtin type.
11538 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11540 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11543 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11545 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11546 CLEAN_UP_REGISTER_VALUE.
11547 * regcache.c (supply_register): Update only call.
11549 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11551 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11552 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11553 a29k-*-vxworks* targets as obsolete.
11555 2002-01-14 Michael Snyder <msnyder@redhat.com>
11557 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11558 until we can resolve portability issues.
11559 * gregset.h: Remove references to fpxregs.
11560 * gcore.c (gcore_command): Initialize note_sec to NULL.
11562 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11564 * signals.c (target_signal_to_name): Rewrite. Only use
11565 signals[].name when in bounds and non-NULL.
11567 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11569 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11570 * signals.c (target_signal_to_name): Verify that SIG is within the
11571 bounds of the signals array.
11573 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11575 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11577 2002-01-13 Keith Seitz <keiths@redhat.com>
11579 * stack.c (print_frame_info_base): Print the frame's pc
11580 only if when print_frame_info_listing_hook is not defined.
11582 2002-01-13 Keith Seitz <keiths@redhat.com>
11584 * varobj.c (varobj_set_value): Make sure that there were no
11585 errors evaluating the object before attempting to set its
11587 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11588 so this offset adjustment is no longer necessary.
11589 (create_child): Don't set the error flag if the child is
11590 a CPLUS_FAKE_CHILD.
11591 (value_of_child): If value_fetch_lazy fails, return NULL
11592 so that callers will be notified that an error occurred.
11593 (c_value_of_variable): Delay check of variable's validity
11594 until later. We actually want all structs and unions to have
11596 Do not return "???" for variables which could not be evaluated.
11597 This error condition must be returned to the caller so that it
11598 can get the error condition from gdb.
11599 (cplus_name_of_child): Adjust index for vptr before figuring
11600 out the name of the child.
11601 (cplus_value_of_child): If a child's (real) parent is not valid,
11602 don't even bother trying to give a value for it. Just return
11603 an error. Change all instances in this function.
11604 (cplus_type_of_child): If our parent is one of the "fake"
11605 parents, we need to get at the type of the real parent, and
11606 derive the child's true type using this information.
11608 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11610 From 2002-01-09 John Marshall <johnm@falch.net>:
11611 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11612 sources.redhat.com, and tweak some related URLs which had
11613 suffered from linkrot.
11615 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11618 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11619 structures passed in registers.
11621 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11623 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11624 white space which prevented compilation. Reported by DSK
11625 <dsk@student.unsw.edu.au>.
11627 2002-01-11 Michael Snyder <msnyder@redhat.com>
11629 * symfile.c (build_section_addr_info_from_section_tab):
11630 Use bfd access method instead of manipulating bfd directly.
11631 (syms_from_objfile): Ditto.
11632 (simple_overlay_update_1): Ditto.
11633 (simple_overlay_update): Ditto.
11634 (generic_load): Ditto.
11635 (overlay_unmapped_address): FIXME comment, bfd access methods.
11636 (sections_overlap): FIXME comment, bfd access methods.
11637 (pc_in_mapped_range): FIXME comment, bfd access methods.
11638 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11639 (section_is_mapped): FIXME comment, bfd access methods.
11640 (section_is_overlay): FIXME comment, bfd access methods.
11642 * symfile.c (generic_load): Whitespace and long line cleanups.
11643 Remove duplicate variable, change several local variables to
11644 more appropriate data types.
11645 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11647 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11649 From Peter Schauer:
11650 * language.c (longest_local_hex_string_custom): Use phex_nz to
11651 convert NUM to a hex string.
11653 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11655 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11657 Update Copyright year.
11659 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11661 * language.c (longest_raw_hex_string): Delete unused function.
11663 2002-01-11 Petr Sorfa <petrs@caldera.com>
11665 * MAINTAINERS (write-after-approval): Add myself.
11666 * dwarf2read.c (read_tag_string_type): Handling of
11668 (read_tag_string_type): FORTRAN fix to prevent propagation of
11670 (set_cu_language): Handling of DW_LANG_Fortran95
11672 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11674 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11675 GETPID(inferior_ptid).
11676 (store_inferior_registers): Likewise.
11678 2002-01-10 Jason Merrill <jason@redhat.com>
11680 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11683 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11685 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11686 and bfd/elf32-sh-nbsd.c.
11688 2002-01-10 Michael Snyder <msnyder@redhat.com>
11690 * NEWS: Mention --pid and corefile/proc-id behavior change.
11692 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11693 * gcore.c: Include cli/cli-decode.h instead of command.h.
11695 * main.c (captured_main): Add new command line option "--pid".
11696 If the second command line argument (following the symbol-file)
11697 begins with a digit, try to attach to it before trying to open
11699 (print_gdb_help): Document the "--pid" argument.
11701 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11703 * completer.c (command_completer): New function.
11705 * completer.h <command_completer>: Add prototype.
11707 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11708 completer for the "help" command.
11710 2002-01-09 Jason Merrill <jason@redhat.com>
11712 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11714 2002-01-09 Michael Snyder <msnyder@redhat.com>
11716 * i386-linux-nat.c (fill_fpxregset): Make global.
11717 (store_fpxregset): Ditto.
11719 * gregset.h (gdb_fpxregset_t): Define.
11720 (supply_fpxregset): Prototype.
11721 (fill_fpxregset): Prototype.
11723 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11725 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11727 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11728 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11729 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11731 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11733 * MAINTAINERS: Update target maintainer rules so that any
11734 Maintainer can approve a tested patch for a maintenance-only
11737 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11739 * MAINTAINERS (write-after-approval): Add myself.
11741 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11744 2002-01-08 Michael Snyder <msnyder@redhat.com>
11746 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11747 real name of the executable, rather than the /proc name.
11749 2002-01-03 Michael Snyder <msnyder@redhat.com>
11751 Implement a "generate-core-file" command in gdb, save target state.
11752 * gcore.c: New file. Implement new command 'generate-core-file'.
11753 Save a corefile image of the current state of the inferior.
11754 * linux-proc.c: Add linux-specific code for saving corefiles.
11755 * target.h (struct target_ops): Add new target vectors for saving
11756 corefiles; to_find_memory_regions and to_make_corefile_notes.
11757 (target_find_memory_regions): New macro.
11758 (target_make_corefile_notes): New macro.
11759 * target.c (update_current_target): Inherit new target methods.
11760 (dummy_find_memory_regions): New place-holder method.
11761 (dummy_make_corefile_notes): New place-holder method.
11762 (init_dummy_target): Initialize new dummy target vectors.
11763 * exec.c (exec_set_find_memory_regions): New function.
11764 Allow the exec_ops vector for memory regions to be taken over.
11765 (exec_make_note_section): New function, target vector method.
11766 * defs.h (exec_set_find_memory_regions): Export prototype.
11767 * procfs.c (proc_find_memory_regions): New function, corefile method.
11768 (procfs_make_note_section): New function, corefile method.
11769 (init_procfs_ops): Set new target vector pointers.
11770 (find_memory_regions_callback): New function.
11771 (procfs_do_thread_registers): New function.
11772 (procfs_corefile_thread_callback): New function.
11773 * sol-thread.c (sol_find_memory_regions): New function.
11774 (sol_make_note_section): New function.
11775 (init_sol_thread_ops): Initialize new target vectors.
11776 * inftarg.c (inftarg_set_find_memory_regions): New function.
11777 Allow to_find_memory_regions vector to be taken over.
11778 (inftarg_set_make_corefile_notes): New function.
11779 Allow to_make_corefile_notes vector to be taken over.
11780 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11781 interface layer if not target_has_execution (may be a corefile).
11782 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11783 * config/sparc/sun4sol2.mh: Ditto.
11784 * config/alpha/alpha-linux.mh: Ditto.
11785 * config/arm/linux.mh: Ditto.
11786 * config/i386/x86-64linux.mh: Ditto.
11787 * config/ia64/linux.mh: Ditto.
11788 * config/m68k/linux.mh: Ditto.
11789 * config/mips/linux.mh: Ditto.
11790 * config/powerpc/linux.mh: Ditto.
11791 * config/sparc/linux.mh: Ditto.
11793 2002-01-07 Michael Snyder <msnyder@redhat.com>
11795 * arm-linux-nat.c: Remove references to regcache.c internal data
11796 (registers[] and register_valid[]).
11798 2002-01-07 Michael Snyder <msnyder@redhat.com>
11800 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11801 so that attaching to a pid will automatically read the process's
11802 symbol file and shlibs.
11803 * Makefile.in: Add rule for linux-proc.o.
11804 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11805 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11806 * config/arm/linux.mh: Ditto.
11807 * config/i386/linux.mh: Ditto.
11808 * config/i386/x86-64linux.mh: Ditto.
11809 * config/ia64/linux.mh: Ditto.
11810 * config/m68k/linux.mh: Ditto.
11811 * config/mips/linux.mh: Ditto.
11812 * config/powerpc/linux.mh: Ditto.
11813 * config/sparc/linux.mh: Ditto.
11815 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11817 * win32-nat.c: Add i386-tdep.h dependency.
11819 2002-01-07 Michael Snyder <msnyder@redhat.com>
11821 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11822 instead of bfd_get_arch_size. Don't bail out just because
11823 there's no exec_bfd.
11825 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11826 * p-valprint.c (pascal_object_print_value): Ditto.
11827 * somread.c (som_symtab_read): Ditto.
11828 * symfile.c (simple_free_overlay_region_table): Ditto.
11829 * valops.c (value_assign): Ditto.
11831 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11832 use tilde_expand and strerror for opening save-tracepoints file.
11834 * thread-db.c (thread_db_new_objfile): Indendation fix.
11836 * infptrace.c (GDB_MAX_ALLOCA): New define.
11837 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11838 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11839 can be overridden with whatever value is appropriate to the host).
11840 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11841 alloca to allocate potentially large buffer.
11842 * rs6000-nat.c (child_xfer_memory): Ditto.
11843 * symm-nat.c (child_xfer_memory): Ditto.
11844 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11846 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11848 From Nick Clifton <nickc@redhat.com>
11849 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11851 2002-01-07 Michael Snyder <msnyder@redhat.com>
11853 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11854 Don't use exec_bfd if it's NULL.
11856 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11858 * valops.c (value_arg_coerce): Fix formatting.
11860 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11862 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11863 * gnu-nat.c: Ditto.
11865 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11867 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11868 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11869 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11870 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11871 z8k-coff have not been multi-arched. Update z8k-coff build
11874 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11876 * MAINTAINERS: Mark a29k target as obsolete.
11877 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11878 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11880 * NEWS: Note that a29k targets are obsolete.
11881 * a29k-tdep.c: Mark as obsolete.
11882 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11883 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11884 a29k-*-vxworks* targets as obsolete.
11885 * remote-adapt.c: Obsolete.
11886 * remote-eb.c: Obsolete.
11887 * remote-mm.c: Obsolete.
11888 * remote-udi.c: Obsolete.
11889 * config/a29k/a29k-udi.mt: Obsolete.
11890 * config/a29k/a29k.mt: Obsolete.
11891 * config/a29k/tm-a29k.h: Obsolete.
11892 * config/a29k/tm-vx29k.h: Obsolete.
11893 * config/a29k/vx29k.mt: Obsolete.
11895 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11897 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11898 with BFD_ENDIAN_BIG.
11900 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11902 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11903 * configure, config.in: Re-generate.
11904 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11905 * defs.h: Do not include <endian.h>.
11907 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11909 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11910 * config.in: Regenerate.
11911 * configure.in: Update copyright years.
11912 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11913 * configure: Regenerate.
11914 * i386bsd-nat.c: Update copyright years.
11915 (fill_gregset): Use regcache_collect.
11916 (fetch_inferior_registers): Only fetch integer registers
11917 if requested to do so. Add support for XMM registers
11918 using PT_GETXMMREGS.
11919 (store_inferior_registers): Only store integer registers
11920 if requested to do so. Add support for XMM registers
11921 using PT_SETXMMREGS.
11922 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11923 (store_inferior_registers): Remove.
11924 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11925 (fetch_elfcore_registers): New function.
11926 (i386nbsd_elfcore_fns): New.
11927 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11928 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11930 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11931 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11932 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11933 * config/i386/tm-nbsd.h: Update copyright years.
11934 (HAVE_SSE_REGS): Define.
11935 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11936 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11937 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11938 (SIGCONTEXT_PC_OFFSET): Remove.
11939 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11941 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11943 * configure.tgt: Remove powerpc-*-macos* target.
11944 * config/m68k/xm-mpw.h: Delete file.
11945 * config/xm-mpw.h: Delete file.
11946 * ser-mac.c: Delete file.
11947 * mpw-make.sed: Delete file.
11948 * mpw-config.in: Delete file.
11949 * mac-xdep.c: Delete file.
11950 * mac-gdb.r: Delete file.
11951 * mac-defs.h: Delete file.
11952 * mac-nat.c: Delete file.
11953 * config/powerpc/macos.mh: Delete file.
11954 * config/powerpc/macos.mt: Delete file.
11955 * config/powerpc/nm-macos.h: Delete file.
11956 * config/powerpc/tm-macos.h: Delete file.
11957 * source.c (openp, open_source_file): Remove obsolete code.
11958 * top.c (gdb_readline): Ditto.
11959 * utils.c (query): Ditto.
11960 * event-top.c (display_gdb_prompt): Ditto.
11961 * Makefile.in (ser-mac.o): Delete obsolete target.
11964 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11966 * defs.h (BIG_ENDIAN): Delete macro definition.
11967 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11968 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11969 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11970 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11971 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11972 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11973 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11974 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11975 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11976 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11977 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11978 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11979 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11980 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11981 * gdbarch.c: Re-generate.
11983 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11985 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11988 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11990 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11992 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11994 * value.h (value_ptr): Delete typedef.
11996 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11998 * i386nbsd-nat.c: Update copyright years.
11999 Include i386-tdep.h.
12001 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12003 * stabsread.c: Update copyright years.
12005 From Debashis Mahata <debashis.mahata@wipro.com>:
12006 (read_struct_fields): Deal with Sun C compiler erroneous stab
12007 output for structs and unions.
12010 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12012 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12015 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12017 * cp-abi.c: Fix whitespace.
12018 (baseclass_offset): New wrapper function.
12019 * cp-abi.h (baseclass_offset): Add prototype.
12020 (struct cp_abi_ops): Add baseclass_offset pointer.
12022 * valops.c (vb_match): Move to...
12023 * gnu-v2-abi.c (vb_match): here.
12024 * valops.c (baseclass_offset): Move to...
12025 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12027 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12029 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12030 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12031 * hpacc-abi.c (init_hpacc_ops): Likewise.
12033 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12035 * valops.c (find_overload_match): Accept obj as a
12036 reference parameter. Update it before returning.
12037 * value.h (find_overload_match): Update prototype.
12038 * eval.c (evaluate_subexp_standard): Pass object to
12039 find_overload_match by reference.
12041 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12043 * valarith.c: Replace value_ptr with struct value pointer. Remove
12044 register attribute from value declarations.
12047 * scm-lang.c (scm_lookup_name): Ditto.
12049 2002-01-03 Michael Snyder <msnyder@redhat.com>
12051 Abstract the functionality of iterating over mapped memory
12052 regions into a general purpose iterator function.
12053 * procfs.c (iterate_over_mappings): New function, general purpose
12054 iterator for memory sections.
12055 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12056 (solib_mappings_callback): New function, callback for above.
12057 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12058 (info_mappings_callback): New function, callback for above.
12060 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12062 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12064 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12065 * i386-tdep.c: Include "elf-bfd.h".
12066 (process_note_abi_tag_sections): New function.
12067 (i386_gdbarch_init): Add code to recognize various OS/ABI
12070 * maint.c (_initialize_maint_cmds): Add missing \ in
12073 For older changes see ChangeLog-2001
12079 version-control: never