1 2002-10-23 David Carlton <carlton@math.stanford.edu>
3 * symtab.c: Delete cplusplus_hint.
4 Delete prototype for find_template_name_end.
6 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
8 * symtab.h: Update comment.
10 2002-10-23 Michael Snyder <msnyder@redhat.com>
12 * printcmd.c (address_info): Restore quotes in output.
13 * valops.c (value_of_local): Restore quotes in error message.
15 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
17 * symtab.c (symbol_demangled_name): New function.
18 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
19 turning most of it into a function.
20 (symbol_demangled_name): Export.
22 2002-10-23 Michael Snyder <msnyder@redhat.com>
24 * valops.c (value_of_local): Restore quotes in error message.
26 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
28 * symtab.c (symbol_init_language_specific): New function.
29 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
30 turning most of it into a function.
31 (symbol_init_language_specific): Export.
33 2002-10-23 David Carlton <carlton@math.stanford.edu>
35 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
36 (dwarf_attr_name): Ditto.
37 (dwarf_type_encoding_name): Ditto.
38 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
39 (process_die): Handle DW_TAG_namespace,
40 DW_TAG_imported_declaration, DW_TAG_imported_module.
41 (read_namespace): New function.
43 2002-10-22 Joel Brobecker <brobecker@gnat.com>
45 * configure.in: Define NEW_PROC_API on Interix too.
46 * configure: Regenerate.
48 2002-10-21 Joel Brobecker <brobecker@gnat.com>
50 * configure: Regenerate using the proper version of autoconf.
52 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
54 * findvar.c (read_var_value): Temporarily disable TLS code, until
55 complete TLS support is added.
57 2002-10-21 Jim Blandy <jimb@redhat.com>
58 Elena Zannoni <ezannoni@redhat.com>
60 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
61 for thread local storage locations.
62 (struct symbol): Add objfile field.
63 (SYMBOL_OBJFILE): Define.
64 * dwarf2read.c (is_thread_local): New static variable.
65 (new_symbol): If variable is in thread local fill in address class
66 and objfile appropriately.
67 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
69 * printcmd.c (address_info): Print the information for thread
70 local storage variable.
71 * findvar.c (read_var_value): In case of thread local variable,
72 defer to the target vector code to compute address.
74 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
76 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
77 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
79 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
81 * symtab.h (address_class): Rename
82 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
83 * hpread.c (hpread_process_one_debug_symbol): Ditto.
84 * printcmd.c (address_info): Ditto.
85 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
87 2002-10-20 Mark Kettenis <kettenis@gnu.org>
89 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
90 DBREG_DRX macro to acces debug registers.
92 * Makefile.in (i386obsd-tdep.o): New target.
94 * solib-sunos.c: Include "bcache.h" and "regcache.h".
95 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
97 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
98 * config/i386/obsd.mt: New file.
99 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
100 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
101 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
102 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
103 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
104 * i386obsd-tdep.c: New file.
106 2002-10-19 Adam Fedor <fedor@gnu.org>
108 * objc-exp.y (name_not_typename): Fix invalid comment.
110 2002-10-20 Mark Kettenis <kettenis@gnu.org>
112 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
113 to allocate partial syms and macro byte caches.
115 2002-10-18 David Carlton <carlton@math.stanford.edu>
117 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
119 2002-10-18 Adam Fedor <fedor@gnu.org>
121 * stabsread.c (find_name_end): New function.
122 (define_symbol): Use it.
124 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
126 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
127 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
128 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
129 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
131 2002-10-17 David Carlton <carlton@math.stanford.edu>
133 * symfile.h: Add opaque declaration for struct obstack.
134 Declare obsavestring to take a const char *.
135 * symfile.c (obsavestring): Make first argument a const char *.
137 2002-10-16 Adam Fedor <fedor@gnu.org>
139 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
140 names when matching breakpoints in current file.
142 2002-10-16 Kevin Buettner <kevinb@redhat.com>
144 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
145 (read_tag_pointer_type): Add address class support.
146 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
147 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
149 * gdbarch.h, gdbarch.c: Regenerate.
150 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
151 (make_type_with_address_space, recursive_type_dump): Add address
153 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
154 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
155 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
157 2002-10-16 Klee Dienes <kdienes@apple.com>
159 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
160 to get the last character of a char[] buffer, not
161 name[sizeof(vptr_name)-1].
163 2002-10-14 Adam Fedor <fedor@gnu.org>
165 * symtab.h: New objc_specific struct.
166 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
167 (SYMBOL_DEMANGLED_NAME): Likewise.
169 2002-10-14 Adam Fedor <fedor@gnu.org>
171 * symfile.c (init_filename_language_table): Add ObjC file extension.
173 2002-10-14 Adam Fedor <fedor@gnu.org>
175 * utils.c (puts_filtered_tabular): New function.
176 (fprintf_symbol_filtered): Get ObjC demangled name.
177 * defs.h (puts_filtered_tabular): Declared.
179 2002-10-14 Kevin Buettner <kevinb@redhat.com>
181 * c-lang.h (c_type_print_varspec_prefix): Delete.
182 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
183 ``need_post_space'' parameter. Adjust all callers.
185 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
187 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
188 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
189 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
190 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
192 2002-10-13 Adam Fedor <fedor@gnu.org>
194 * source.c (print_source_lines): Update comments.
196 2002-10-13 Adam Fedor <fedor@gnu.org>
198 * valops.c (value_of_local): New function.
199 (value_of_this): Use it.
200 * value.h (value_of_local): Declared.
202 2002-10-13 Adam Fedor <fedor@gnu.org>
204 * parse.c: (length_of_subexp, prefixify_subexp): Handle
205 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
207 2002-10-12 Adam Fedor <fedor@gnu.org>
209 * language.c (binop_result_type): Add language_objc to case.
210 (integral_type): Likewise.
211 (character_type): Likewise.
212 (string_type): Likewise.
213 (boolean_type): Likewise.
214 (structured_type): Likewise.
215 (binop_type_check): Likewise.
217 2002-10-11 Adam Fedor <fedor@gnu.org>
219 * printcmd.c (address_info): Print 'self' for ObjC.
221 2002-10-11 Adam Fedor <fedor@gnu.org>
223 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
226 2002-10-11 Adam Fedor <fedor@gnu.org>
228 * language.h (CAST_IS_CONVERSION): Add language_objc.
230 2002-10-11 Adam Fedor <fedor@gnu.org>
232 * defs.h (enum language): Add language_objc.
234 2002-10-11 Klee Dienes <kdienes@apple.com>
236 * findvar.c (read_memory_typed_address): New function.
237 * gdbcore.h (read_memory_typed_address): Add prototype.
238 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
239 to read a value destined for a CORE_ADDR, not read_memory_integer.
240 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
241 (f77_get_dynamic_lowerbound): Ditto.
243 2002-10-11 Martin M. Hunt <hunt@redhat.com>
245 * utils.c (string_to_core_addr): After turning string into
246 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
247 which will do necessary sign-extension, etc.
249 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
251 * c-exp.y (THIS): Delete token and grammar rule.
252 (yylex): Don't return THIS.
253 * cp-valprint.c (vtbl_ptr_name_old): Delete.
254 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
255 * demangle.c (cplus_markers): Update comment. Put '$'
256 first. Remove CPLUS_MARKER.
257 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
258 * jv-exp.y (THIS): Delete token and grammar rule.
259 (yylex): Don't return THIS.
260 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
261 * objc-exp.y (THIS): Delete token and grammar rule.
262 (yylex): Don't return THIS.
263 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
264 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
265 (read_member_functions): Likewise for opname.
266 (read_tilde_fields): Use is_cplus_marker.
268 * defs.h (CPLUS_MARKER): Don't define.
269 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
270 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
271 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
272 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
273 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
275 * config/i386/tm-i386v4.h: Delete file.
276 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
277 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
278 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
279 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
280 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
281 * config/i386/i386sco5.mt (TM_FILE): Likewise.
282 * config/i386/i386v4.mt (TM_FILE): Likewise.
283 * config/i386/ncr3000.mt (TM_FILE): Likewise.
285 2002-10-10 Marko Mlinar <markom@opencores.org>
287 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
288 accidentially not commited 2002-10-09
289 * gdbarch.h, gdbarch.c: Re-generate.
291 2002-10-09 Marko Mlinar <markom@opencores.org>
293 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
294 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
295 * gdbarch.h, gdbarch.c: Re-generate.
297 2002-10-08 Petr Sorfa <petrs@caldera.com>
299 Revised and re-submitted by John Wolfe <jlw@caldera.com>
301 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
302 so we can work on more than one compilation unit at a time. This
303 helps prepare GDB to handle inter-CU die references.
304 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
305 the code to be defined before struct comp_unit_head.
306 (comp_unit_head): Added new members - offset, cu_head,
307 begin_die, next and dwarf2_abbrevs.
308 (dwarf2_abbrevs): Removed single static var; now member of
309 struct comp_unit_head.
310 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
312 (psymtab_to_symtab_1): Changed to work with the new
313 struct comp_unit_head.
314 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
315 constructs the dwarf2_abbrevs[] inside the cu_header.
316 (dwarf2_empty_abbrev_table): Now expects a ptr to a
317 dwarf2_abbrev table to clean up.
318 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
319 handling of dwarf2_abbrevs inside the cu_header.
320 (read_partial_die): Now supports the call to the new
321 dwarf2_lookup_abbrev.
322 (read_full_die): Now supports the call to the new
323 dwarf2_lookup_abbrev.
325 2002-10-06 Christopher Faylor <cgf@redhat.com>
327 * Makefile.in (install-gdbtk): Add missing continuation backslash to
328 insure that shell variables, such as "transformed_name" are propagated
329 to later shell statements in rule.
331 2002-10-06 Mark Kettenis <kettenis@gnu.org>
333 * config/i386/nm-i386sco.h: Add protection against
334 multiple-inclusion. Include "i386/nm-i386v.h".
335 (REGISTER_U_ADDR): Remove define.
336 (i386_register_u_addr): Remove prototype.
338 2002-10-04 Michael Snyder <msnyder@redhat.com>
340 * m32r-stub.c (handle_exception): Make sure exception is "trap"
341 before treating it as a single-step event.
343 2002-10-03 Adam Fedor <fedor@gnu.org>
345 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
346 (objc_demangle): Remove assignment in if statements, Replace
348 (add_msglist): Likewise.
349 (end_msglist): Likewise.
350 (complare_selectors): Likewise.
351 (selectors_info): Likewise.
352 (compare_classes): Likewise.
353 (classes_info): Likewise.
354 (print_object_command): Likewise.
355 (find_objc_msgcall_submethod): Replace PTR with void *.
356 * objc-lang.h: Remove check for __STDC__.
358 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
360 * ui-out.h (ui_out_field_fmt_int): New prototype.
361 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
362 of field width and alignment.
363 * stack.c (print_frame_info_base): When printing frame level, use
364 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
367 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
369 * MAINTAINERS: Add self to Write After Approval list.
371 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
373 * infcmd.c (interrupt_target_command_wrapper): Delete.
374 (interrupt_target_command): Make non static.
375 (nofp_registers_info): Make static.
376 * stack.c (return_command_wrapper): Delete.
377 (return_command): Make non static.
379 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
381 * event-top.c (gdb_setup_readline): New function. Code moved from
382 _initialize_event_loop().
383 (_initialize_event_loop): Call gdb_setup_readline().
385 2002-10-02 Andrew Cagney <ac131313@redhat.com>
387 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
388 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
389 * gdbarch.h, gdbarch.c: Re-generate.
391 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
394 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
396 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
397 of fill_in_vptr_fieldno.
399 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
401 * inferior.h (registers_info, stepi_command, nexti_command,
402 continue_command, interrupt_target_command): Export from infcmd.c.
403 * frame.h (args_info, selected_frame_level_changed_hook,
404 return_command): Export from stack.c.
405 * v850ice.c (stepi_command, nexti_command, continue_command): use
406 prototypes from inferior.h.
407 * tracepoint.c (registers_info, args_info, locals_info): Use
408 prototypes from frame.h and inferior.h.
409 * Makefile.in (mi-main.o): Add dependency on frame.h.
411 2002-10-02 Andrew Cagney <ac131313@redhat.com>
413 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
414 value in register 3 adjusted by ppc_gp0_regnum.
416 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
418 2002-10-02 Marko Mlinar <markom@opencores.org>
420 * MAINTAINERS: Add myself to the Write After Approval list.
422 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
424 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
425 of the section for the N64 ABI, fixed.
427 * config/mips/tm-irix6.h: Include solib.h.
429 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
431 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
434 2002-10-01 Andrew Cagney <ac131313@redhat.com>
436 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
437 and that "mi0" syntax has been removed.
439 2002-09-30 David Carlton <carlton@math.stanford.edu>
441 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
442 * ppc-sysv-tdep.c: #include "gdb_string.h".
443 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
446 2002-10-01 Andrew Cagney <ac131313@redhat.com>
448 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
449 "vrsave"'s register number.
451 2002-09-30 Andrew Cagney <ac131313@redhat.com>
453 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
454 use frame_unwind_signed_register to obtain the PC.
455 (mips_frame_chain): Handle a generic dummy frame.
456 (mips_init_extra_frame_info): When a generic dummy frame, don't
457 re-compute the frame base.
458 (mips_pop_frame): Handle generic dummy frames.
459 (mips_gdbarch_init): When generic dummy frames, set
460 use_generic_dummy_frames, push_dummy_frame to
461 generic_push_dummy_frame, pc_in_call_dummy to
462 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
463 generic_save_dummy_frame_tos.
465 2002-09-30 Andrew Cagney <ac131313@redhat.com>
467 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
468 against TOP when TOP was explictly set.
469 (generic_push_dummy_frame): Set TOP to zero.
471 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
473 * event-loop.c (start_event_loop): Rename variable 'result' to
474 'gdb_result', to avoid conflicts with upcoming intepreters changes.
476 2002-09-30 Keith Seitz <keiths@redhat.com>
478 * gdb-events.sh (selected_thread_changed): New event.
479 * gdb-events.c: Regenerated.
480 * gdb-events.h: Regenerated.
482 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
484 * MAINTAINERS: Add self to Write After Approval list.
486 2002-09-30 Fernando Nasser <fnasser@redhat.com>
488 * disasm.c: New file.
489 * disasm.h: New file.
490 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
491 (compare_lines): Ditto.
493 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
495 (do_assembly_only): Ditto.
496 (do_disassembly): Renamed to gdb_disassembly and moved to
497 disasm.c. Sdded uiout argument.
498 * Makefile.in: Add new files. Reorder SFILES list. Update
499 dependencies. Include libgdb.a later in the insight executable.
501 2002-09-29 Andrew Cagney <ac131313@redhat.com>
503 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
504 bfd/elf64-alpha-fbsd.c.
506 2002-09-29 Andrew Cagney <ac131313@redhat.com>
508 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
511 2002-09-29 Andrew Cagney <ac131313@redhat.com>
513 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
515 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
517 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
518 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
519 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
520 (S_msg_sig_post_reply): Ditto.
522 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
524 * sh-tdep.c (sh_use_struct_convention): Use definition according
526 (sh_push_arguments): Store in register with correct endianess.
527 (sh_default_store_return_value): Ditto.
528 (sh_gdbarch_init): Set sizeof long double to 8.
530 2002-09-27 Mark Kettenis <kettenis@gnu.org>
532 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
533 Fix some whitespace problems.
535 2002-09-27 David Carlton <carlton@math.stanford.edu>
537 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
538 (mcore-tdep.o): Ditto.
539 (ns32k-tdep.o): Ditto.
540 (ns32knbsd-tdep.o): Ditto.
543 * cris-tdep.c: #include "gdb_string.h"
544 * mcore-tdep.c: Ditto.
545 * ns32k-tdep.c: Ditto.
546 * ns32knbsd-tdep.c: Ditto.
550 2002-09-27 David Carlton <carlton@math.stanford.edu>
552 * config/djgpp/fnchange.lst: Add entries for
553 gdb/testsuite/gdb.c++/m-static files.
555 2002-09-27 Jim Wilson <wilson@redhat.com>
557 * MAINTAINERS: Add myself to the Write After Approval list.
559 2002-09-26 Martin M. Hunt <hunt@redhat.com>
561 * mips-tdep.c (find_proc_desc): Initialize startaddr.
564 2002-09-26 Andrew Cagney <ac131313@redhat.com>
566 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
569 2002-09-26 Andrew Cagney <ac131313@redhat.com>
571 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
572 (rs6000_struct_return_address): Delete variable.
573 (rs6000_store_struct_return): Update.
574 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
575 deprecated_extract_struct_value_address.
576 (rs6000_frame_align): New function.
577 (rs6000_gdbarch_init): Set frame_align.
579 2002-09-26 Andrew Cagney <ac131313@redhat.com>
581 From Grace Sainsbury <graces@redhat.com>:
582 * Makefile.in (gdbtk-main.o): New target.
585 (main.o): Update dependencies.
586 (gdb$(EXEEXT)): Add gdb.o.
587 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
588 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
589 (SUBDIR_GDBTK_CLEAN): Set.
590 (install-gdbtk): Install the insight binary.
591 (uninstall-gdbtk): New target.
592 (all-gdbtk, clean-gdbtk): New rule.
593 * top.c (use_windows): Default to zero.
594 * main.c: Include "main.h".
596 (struct captured_main_args): Delete.
597 (gdb_main): New function.
601 2002-09-25 Andrew Cagney <cagney@redhat.com>
603 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
604 (frame_map_regnum_to_name): New function.
605 (frame_map_name_to_regnum): New function.
606 * frame.h (frame_map_name_to_regnum): Declare.
607 (frame_map_regnum_to_name): Declare.
608 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
609 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
610 * parse.c: Do not include "builtin-regs.h".
611 (target_map_name_to_register): Delete function.
612 (write_dollar_variable): Use frame_map_name_to_regnum.
613 * parser-defs.h (target_map_name_to_register): Delete declaration.
614 * expprint.c: Include "frame.h".
615 (print_subexp): Use frame_map_regnum_to_name.
616 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
617 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
619 2002-09-25 Andrew Cagney <ac131313@redhat.com>
621 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
622 wasn't saved, and the next innermost frame is a dummy, return the
623 dummy frame's link register.
625 2002-09-24 Jim Blandy <jimb@redhat.com>
628 * main.c (captured_main): Add a `break' after the case for 'b'.
630 2002-09-24 Keith Seitz <keiths@redhat.com>
632 * varobj.c (c_type_of_child): Use get_target_type instead
635 2002-09-22 Fernando Nasser <fnasser@redhat.com>
637 * source.c (get_current_or_default_source_symtab_and_line): Remove
639 (set_default_source_symtab_and_line): New function. Attempts to
640 determine a source file to list lines from if one is not currently
642 (get_current_source_symtab_and_line): Initialize sal.pc and
644 (set_current_source_symtab_and_line): Mark argument as const.
645 * source.h: Update declarations and comments.
646 * linespec.c (decode_line_1): Replace call to removed routine above.
647 * stack.c (print_frame_info_base): Ditto.
648 * cli/cli-cmds.c (edit_command): Ditto.
649 (list_command): Ditto.
651 2002-09-22 Fernando Nasser <fnasser@redhat.com>
653 * source.c (get_current_or_default_source_symtab_and_line): Initialize
654 sal.pc and sal.end fields.
655 (get_current_or_default_source_symtab_and_line): Ditto.
656 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
657 so we do not cause a new source symtab to be searched for (reverting an
658 unintentional change from the 2002-09-20 patch).
659 * scm-lang.c (scm_unpac): Ditto.
661 2002-09-21 Andrew Cagney <cagney@redhat.com>
663 * complaints.c (symfile_explanations): Remove new-line from
664 ``isolated_message''.
665 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
666 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
668 2002-09-20 Nick Clifton <nickc@redhat.com>
670 * NEWS: Announce that V850EA ISA is no longer supported.
671 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
673 2002-09-20 David Carlton <carlton@math.stanford.edu>
675 * Makefile.in (c-lang.o): Correct dependencies.
676 (utils.o): Gather dependencies.
678 * c-lang.c: #include "gdb_string.h"
680 2002-09-20 Fernando Nasser <fnasser@redhat.com>
682 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
683 * cli/cli-cmds.c (list_command): New function. Implements the new
685 (_init_cli_cmds): Add new command definition.
686 * gdb.1: Document edit command.
687 * doc/gdb.texinfo: Document edit command.
689 2002-09-20 Fernando Nasser <fnasser@redhat.com>
691 * source.c: Make global variables current_source_symtab and
692 current_source_line static.
693 (list_command): Moved to cli/cli-cmds.c.
694 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
695 (get_first_line_listed): New accessor function.
696 (get_lines_to_list): New accessor function.
697 (get_current_source_symtab_and_line): New function. Retrieves the
698 position in the source code that we consider current.
699 (get_current_or_default_source_symtab_and_line): New function.
700 Like the above but attempts to determine a default position if one
701 is not currently defined.
702 (set_current_source_symtab_and_line): New function. Sets the source
703 code position considered current and returns the previously set one.
704 (clear_current_source_symtab_and_line): Reset stored information about
705 a current source line.
706 (_initialize_source): Remove registration for the "list" command and
708 * source.h: Add declarations for the new functions above.
709 * symtab.h: Remove declarations for the global variables mentioned
711 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
712 obtain current source line.
713 * linespec.c (decode_line_1): Ditto.
714 * macroscope.c (default_macro_scope): Ditto.
715 * scm-lang.c (scm_unpac): Ditto.
716 * stack.c (print_frame_info_base): Ditto.
717 * symfile.c (clear_symtab_users): Ditto.
718 * symtab.c (decode_line_spec): Ditto.
719 * cli/cli-cmds.c (list_command): Moved here from source.c.
720 (ambiguous_line_spec): Moved here from source.c.
721 (_init_cli_cmds): Add definition for "list" and its alias.
722 * Makefile.in: Update dependencies.
724 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
726 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
727 with what gcc thinks is correct.
729 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
731 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
732 multiple register push instruction.
734 2002-09-19 Jim Blandy <jimb@redhat.com>
736 Add support for distinct host and target character sets.
737 * charset.c, charset.h: New files.
738 * c-exp.y: #include "charset.h".
739 (yylex): Convert character and string literals to the target
740 character set, before returning them as the semantic value of the
742 * c-lang.c: #include "charset.h".
743 (c_emit_char): Use charset-specific methods to recognize
744 characters with backslash escape forms, to decide which characters
745 to print literally and which to print using numeric escape
746 sequences, and to convert target characters to host characters
748 * utils.c: #include "charset.h".
749 (no_control_char_error): New function.
750 (parse_escape): Use charset-specific methods to recognize
751 backslash escapes, parse `control character' notation, and convert
752 characters from the host character set to the target character set.
753 * configure.in: Set the default host character set.
754 Check where to find iconv, and what its argument types might be.
755 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
756 * Makefile.in (SFILES): List charset.c.
757 (COMMON_OBS): List charset.o.
758 (charset.o): New rule.
759 (charset_h): New header dependency variable.
760 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
761 (LIBICONV): New variable, set by configure.
762 (CLIBS): Include $(LIBICONV) here.
763 * aclocal.m4, config.in, configure: Regenerated.
765 2002-09-19 Joel Brobecker <brobecker@gnat.com>
767 * ada-exp.y: Add missing semicolons to end rules. Fixes a
770 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
772 * gdb_mbuild.sh: New file.
774 2002-09-19 Andrew Cagney <ac131313@redhat.com>
776 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
778 2002-09-18 Andrew Cagney <ac131313@redhat.com>
780 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
781 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
782 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
783 valops.c, value.h: Revert previous change.
785 2002-09-18 Michael Snyder <msnyder@redhat.com>
787 Preliminary support for Objective-C:
788 * defs.h (language_objc): New enum value.
789 (puts_filtered_tabular): Declaration only, exported from utils.c.
790 (skip_quoted): Delete, declared in completer.h.
791 * c-exp.y: Include completer.h.
794 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
795 New operator enum values.
796 * language.h (CAST_IS_CONVERSION): Test for language_objc.
797 * language.c (binop_result_type): Handle language_objc case.
798 (integral_type, character_type, string_type, boolean_type,
799 structured_type, binop_type_check): Ditto.
800 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
801 (struct objc_specific): Add to general_symbol_info.
802 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
803 (SYMBOL_DEMANGLED_NAME): Handle objc case.
804 * parser-defs.h (struct objc_class_str): New struct type.
805 (start_msglist, end_msglist, add_msglist): Declaration only,
806 exported from objc-lang.c.
807 * value.h (value_of_local, value_nsstring,
808 call_function_by_hand_expecting_type): Exported from valops.c.
809 * valops.c (find_function_addr): Export.
810 (call_function_by_hand_expecting_type): New function.
811 (value_of_local): New function.
812 * symfile.c (init_filename_language_table): Add ".m" extension
814 * utils.c (puts_filtered_tabular): New function.
815 (fprintf_symbol_filtered): Add objc demangling support (disabled).
816 (set/show demangle): Extend help-string to refer to ObjC.
817 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
818 * stabsread.c (symbol_reference_defined): Objective-C symbols
819 may contain colons: make allowances when scanning stabs strings
821 (objc_find_colon): New function.
822 * printcmd.c (address_info): If language == objc then print
823 "self" instead of "this".
824 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
825 OP_NSSTRING, and OP_SELF.
826 (prefixify_subexp): Ditto.
827 * source.c (print_source_lines): Mention objc in comment.
828 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
831 2002-09-18 Andrew Cagney <ac131313@redhat.com>
833 * complaints.h: Update copyright.
834 (struct complaints): Declare.
835 (struct complaint): Make `message' constant.
836 (internal_complaint): Declare.
837 (complaint): Declare.
838 (complaint_root): Delete declaration.
839 (symfile_complaints): Delete declaration.
840 (struct complaints): Add opaque declaration.
841 (clear_complaints): Add a complaints parameter.
842 * complaints.c: Update copyright.
843 (enum complaint_series): Define.
844 (complaint_root): Delete.
845 (struct complaints): Define.
846 (complaint_sentinel, symfile_complaint_book): New variables.
847 (symfile_explanations, symfile_complaints): New variables.
849 (get_complaints): New function.
850 (vcomplaint): New function.
851 (complaint): New function.
852 (internal_complaint): New function.
853 (complain): Call vcomplain with symfile_complaint.
854 (clear_complaints): Rewrite.
855 (_initialize_complaints): Use add_setshow_command.
856 * Makefile.in (complaints.o): Update dependencies.
857 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
858 to call to clear_complaints.
859 (new_symfile_objfile, reread_symbols): Ditto.
860 (oldsyms_complaint): Delete.
861 (empty_symtab_complaint, unknown_option_complaint): Delete.
862 (free_named_symtabs): Use complaint instead of complain.
864 2002-09-18 Michael Snyder <msnyder@redhat.com>
866 Contributed by Apple Computer, Inc. Merged with current sources
867 by Adam Fedor <fedor@doc.com> [cagney].
869 * objc-lang.c: First clean-up round: comments, indentation.
870 * objc-lang.h: Ditto.
871 * objc-lang.y: Ditto.
873 2002-09-18 Andrew Cagney <ac131313@redhat.com>
875 * maint.c (maintenance_internal_error): Print the parameter as the
877 (maintenance_internal_warning): New function.
878 (_initialize_maint_cmds): Add command `maint internal-warning'.
880 * defs.h (internal_warning, internal_vwarning): Declare.
881 * utils.c (struct internal_problem): Define.
882 (internal_vproblem): New function.
883 (internal_warning): New function.
884 (internal_vwarning): New function.
885 (internal_warning_problem, internal_error_problem): New variables.
886 (internal_verror): Just call internal_vproblem.
888 2002-09-18 Michael Snyder <msnyder@redhat.com>
890 * objc-lang.c: New file, support for Objective-C.
891 Preliminary check-in, not yet integrated into gdb.
892 * objc-lang.h: New file.
893 * objc-exp.y: New file.
895 2002-09-18 Andrew Cagney <ac131313@redhat.com>
897 * infrun.c (signal_stop_update): Convert definition to ISO C.
898 (signal_print_update): Ditto.
899 (signal_pass_update): Ditto.
900 * inflow.c (terminal_save_ours): Ditto.
902 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
905 * config/djgpp/fnchange.lst: Handle name clashes between
906 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
909 * i386-linux-tdep.h: Fix tipo.
911 2002-09-18 Adam Fedor <fedor@gnu.org>
913 * MAINTAINERS: Add myself to the Write After Approval list.
915 2002-09-18 Jim Blandy <jimb@redhat.com>
917 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
918 texthigh and textlow to reader-specific structs caused
919 objfile_relocate to miss them. This is fixable, but the work that
920 the change was supposed to prepare GDB for never got done anyway.
922 2002-09-18 David Carlton <carlton@math.stanford.edu>
924 * MAINTAINERS: Alphabetize Write After Approval list.
926 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
929 * values.c (value_static_field): Call read_var_value.
931 2002-09-18 Andrew Cagney <ac131313@redhat.com>
933 * valops.c (hand_function_call): Align the initial stack pointer
934 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
935 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
937 * mips-tdep.c (mips_frame_align): New function.
938 (mips_gdbarch_init): Set frame_align.
939 * gdbarch.sh (FRAME_ALIGN): New method.
940 * gdbarch.h, gdbarch.c: Re-generate.
942 2002-09-18 Michal Ludvig <mludvig@suse.cz>
944 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
947 2002-09-17 Andrew Cagney <ac131313@redhat.com>
949 * NEWS: Mention that MIPS $fp behavior changed.
950 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
951 reference to FP_REGNUM.
952 (mipsnbsd_cannot_store_register): Ditto.
953 * mips-linux-nat.c: Update copyright.
954 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
955 (mips_linux_cannot_store_register): Ditto.
956 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
957 * config/mips/tm-mips.h: Update copyright.
958 (FP_REGNUM): Delete macro.
959 (MIPS_REGISTER_NAMES): Replace "fp" with "".
960 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
961 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
962 (mips_r3041_reg_names, mips_r3051_reg_names)
963 (mips_r3081_reg_names): Replace "fp" with "".
966 2002-09-17 Theodore A. Roth <troth@verinet.com>
968 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
969 generic_read_register_dummy() (PR gdb/703).
970 (avr_push_return_address): #if 0 out unused vars.
971 (avr_gdbarch_init): Enable use of avr_push_return_address().
973 2002-09-17 Michael Snyder <msnyder@redhat.com>
975 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
976 RTE will take care of it.
978 2002-09-17 Andrew Cagney <ac131313@redhat.com>
980 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
981 invalid, return SP_REGNUM.
983 2002-09-17 Michael Snyder <msnyder@redhat.com>
985 * mips-tdep.c (mips_pop_frame): Read saved values of floating
986 point registers without sign extension.
988 2002-09-17 Andrew Cagney <cagney@redhat.com>
990 * blockframe.c (deprecated_read_register_dummy): Rename
991 generic_read_register_dummy.
992 * frame.c (frame_unwind_signed_register): New function.
993 (frame_unwind_unsigned_register): New function.
994 * frame.h (frame_unwind_signed_register): Declare.
995 (frame_unwind_unsigned_register): Declare.
996 (deprecated_read_register_dummy): Rename
997 generic_read_register_dummy.
999 * h8300-tdep.c (h8300_frame_chain): Update.
1000 (h8300_frame_saved_pc): Update.
1001 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1002 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1003 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1004 (s390_frame_chain): Update.
1005 * v850-tdep.c (v850_find_callers_reg): Update.
1006 (v850_frame_saved_pc): Update.
1007 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1008 (m32r_find_callers_reg): Update.
1009 (m32r_frame_saved_pc): Update.
1010 * sh-tdep.c (sh_find_callers_reg): Update.
1011 (sh64_get_saved_pr): Update.
1012 (sh_init_extra_frame_info): Update.
1013 (sh_init_extra_frame_info): Update.
1014 (sh64_init_extra_frame_info): Update.
1015 (sh64_init_extra_frame_info): Update.
1016 * mcore-tdep.c (mcore_find_callers_reg): Update.
1017 (mcore_frame_saved_pc): Update.
1018 (mcore_init_extra_frame_info): Update.
1019 * i386-tdep.c (i386_frame_saved_pc): Update.
1020 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1021 (ia64_init_extra_frame_info): Update.
1022 (ia64_init_extra_frame_info): Update.
1023 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1024 * cris-tdep.c (cris_init_extra_frame_info): Update.
1025 * avr-tdep.c (avr_frame_chain): Update.
1026 (avr_init_extra_frame_info): Update.
1027 (avr_frame_saved_pc): Update.
1028 * arm-tdep.c (arm_find_callers_reg): Update.
1029 (arm_init_extra_frame_info): Update.
1030 (arm_frame_saved_pc): Update.
1032 2002-09-17 Tom Tromey <tromey@redhat.com>
1034 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1037 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1039 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1040 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1042 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1045 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1047 * osfsolib.c: Remove file, replaced by solib-osf.c.
1048 * Makefile.in: Remove compilation rules for osfsolib.c.
1050 2002-09-16 David Carlton <carlton@math.stanford.edu>
1052 * cp-valprint.c (cp_print_class_method): Correct args to
1053 check_stub_method_group.
1055 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1057 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1058 `set architecture'. Unify naming convention of functions.
1059 (h8300_skip_prologue): Improve prologue analysis.
1060 (h8300_push_arguments): Rewritten to more closely match GCC's
1061 bizarre argument-passing behavior, along with the comment describing
1063 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1064 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1065 sim, remote-e7000.c, remote-hms.c and remote.c
1067 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1069 * i386-tdep.c (gdb_print_insn_i386): Removed.
1070 (i386_print_insn): New function.
1071 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1072 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1075 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1077 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1080 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1082 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1083 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1084 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1086 2002-09-13 Christopher Faylor <cgf@redhat.com>
1088 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1090 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1092 * gdbtypes.c (check_stub_method): Make static.
1093 (check_stub_method_group): New function.
1094 * gdbtypes.h: Update prototypes.
1095 * cp-support.c: New file.
1096 * cp-support.h: New file.
1098 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1099 (update_method_name_from_physname): New function.
1100 (read_member_functions): Correct method names for operators
1101 and v3 constructors/destructors. Separate v2 constructors and
1103 * Makefile.in (stabsread.o): Update dependencies.
1104 (SFILES): Add cp-support.c.
1105 (COMMON_OBS): Add cp-support.o.
1106 (cp_support_h, cp-support.o): Add.
1108 * cp-valprint.c (cp_print_class_method): Call
1109 check_stub_method_group instead of check_stub_method. Remove
1111 * p-valprint.c (pascal_object_print_class_method): Likewise.
1112 * valops.c (search_struct_method): Likewise.
1113 (find_method_list, value_struct_elt_for_reference): Likewise.
1115 2002-09-13 Andrew Cagney <cagney@redhat.com>
1117 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1118 * gdbarch.h, gdbarch.c: Regenerate.
1120 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1122 * frame.c (find_saved_register): Delete function.
1123 * frame.h (find_saved_register): Delete declaration.
1126 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1128 * mips-tdep.c (read_next_frame_reg): Re-hack using
1129 frame_register_unwind.
1131 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1133 * mips-tdep.c (mips_get_saved_register): Re-hack using
1134 frame_register_unwind.
1136 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1138 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1139 vector. Will be useful for Interix.
1140 * gdbarch.h, gdbarch.c: Regenerate.
1142 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1143 name of the malloc function by NAME_OF_MALLOC.
1145 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1147 * value.h (find_function_in_inferior): Add const keyword to
1148 one of the parameters. Allows us to invoke this function with
1150 * valops.c (find_function_in_inferior): Likewise.
1152 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1154 * exec.c (xfer_memory): Fix compilation warning with old versions
1156 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1158 2002-09-12 David Carlton <carlton@math.stanford.edu>
1160 * symtab.h: Run through gdb_indent.h.
1161 Add 2002 to Copyright year list.
1163 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1165 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1167 * MAINTAINERS: Add myself to write after approval list.
1169 2002-09-11 J. Brobecker <brobecker@gnat.com>
1171 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1173 2002-09-11 J. Brobecker <brobecker@gnat.com>
1175 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1178 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1180 * procfs.c (do_detach): Clear current signal, not just fault.
1181 Corrects problem with breakpoint trap signal leaking to detached
1184 2002-09-10 Michael Snyder <msnyder@redhat.com>
1186 * buildsym.c (finish_block): Protect against null pointer.
1188 2002-09-10 Andrew Cagney <cagney@redhat.com>
1190 * infcmd.c (default_print_registers_info): Send all output to
1191 ``file'' instead of ``gdb_stdout''.
1193 2002-09-10 Michael Snyder <msnyder@redhat.com>
1195 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1196 LONGEST, and use signed register read (addresses are sign-
1199 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1201 * event-loop.c (gdb_do_one_event): Make public.
1202 * event-loop.h (gdb_do_one_event): Declare.
1204 2002-09-10 Jeff Law <law@redhat.com>
1206 * infttrace.c (child_resume): Simplify and rework to avoid
1209 2002-09-09 Fred Fish <fnf@intrinsity.com>
1211 * printcmd.c (print_scalar_formatted): "len" is the number of
1212 target bytes, NOT the number of target bits.
1214 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1216 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1217 * top.c (init_main): Set rl_terminal_name.
1219 2002-09-08 Aidan Skinner <aidan@velvet.net>
1221 * ada-lang.c (ada_array_bound, ada_type_match,
1222 _initialize_ada_language): Fix K&R definitions.
1223 * ada-tasks.c (get_current_task): Fix K&R definitions.
1224 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1226 2002-09-07 Christopher Faylor <cgf@redhat.com>
1228 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1231 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1233 * i386-tdep.c (i386_register_virtual_type,
1234 i386_register_convertible, i386_register_convert_to_virtual,
1235 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1236 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1237 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1238 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1239 Don't set push_arguments twice.
1241 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1242 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1243 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1244 sigtramp_end to NULL.
1245 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1247 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1249 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1252 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1253 * gdbarch.h, gdbarch.c: Re-generate.
1254 * blockframe.c (find_pc_sect_partial_function): Convert to use
1255 SIGTRAMP_START_P predicate.
1257 2002-09-05 Michael Snyder <msnyder@redhat.com>
1259 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1260 generic_dummy_frame method and old method. Also distinguish
1261 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1262 (arm_extract_return_value): Use new regcache method.
1264 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1265 adjustment that doesn't conform to the ABI.
1266 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1267 saved regcache, not from current regcache.
1269 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1271 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1274 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1276 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1277 if arm_apcs_32 is false.
1279 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1281 GDB 5.3 branch created.
1283 2002-09-03 Theodore A. Roth <troth@verinet.com>
1285 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1286 generic_unwind_get_saved_register.
1288 2002-09-03 David Carlton <carlton@math.stanford.edu>
1290 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1291 argument (PR gdb/653). Update call to smash_to_method_type.
1292 (read_structure_scope): Update call to dwarf2_add_member_fn.
1294 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1296 * x86-64-linux-tdep.c: Include gdb_string.h
1297 * x86-64-linux-nat.c: Ditto.
1299 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1301 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1302 when YYDEBUG is set to 1.
1303 * c-exp.y: Likewise.
1304 * f-exp.y: Likewise.
1305 * jv-exp.y: Likewise.
1306 * m2-exp.y: Likewise.
1307 * p-exp.y: Likewise.
1309 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1311 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1313 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1314 solib_svr4_fetch_link_map_offsets to
1315 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1316 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1317 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1318 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1319 solib-svr4.o, and solib-legacy.o.
1320 * config/i386/tm-nbsd.h: Include solib.h.
1322 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1324 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1325 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1326 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1327 comment noting that this needs its own target configuration.
1328 * config/i386/nbsd.mt: New file.
1329 * config/i386/nbsdaout.mt: Remove.
1330 * config/i386/nbsdelf.mt: Ditto.
1331 * config/i386/tm-nbsdaout.h: Ditto.
1333 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1335 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1336 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1337 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1339 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1340 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1341 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1343 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1345 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1346 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1347 * i386-tdep.h (i386bsd_init_abi): New prototype.
1348 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1349 function declaration.
1350 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1351 for NetBSD-a.out or NetBSD-ELF.
1352 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1353 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1354 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1355 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1357 (i386nbsd_pc_in_sigtramp): New function.
1358 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1359 i386nbsd_pc_in_sigtramp.
1360 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1361 and i386nbsdelf_init_abi OS ABI handlers.
1362 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1363 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1365 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1367 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1368 registers if the target really has them.
1370 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1372 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1375 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1377 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1379 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1380 (alphanbsd_skip_sigtramp_frame): New functions.
1381 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1382 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1383 to alphanbsd_sigcontext_addr.
1385 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1387 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1389 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1390 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1391 nbsd_pc_in_sigtramp.
1392 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1393 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1394 * nbsd-tdep.c: Include gdb_string.h.
1395 (nbsd_pc_in_sigtramp): New function.
1396 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1397 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1398 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1399 ppcnbsd_pc_in_sigtramp.
1400 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1401 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1402 shnbsd_pc_in_sigtramp.
1403 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1404 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1405 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1407 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1409 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1410 watchpoints to NULL.
1411 (insert_breakpoints): set val field of watchpoints if NULL.
1414 2002-08-29 Jim Blandy <jimb@redhat.com>
1416 * symtab.c (lookup_symbol_aux): In the cases where we find a
1417 minimal symbol of an appropriate name and use its address to
1418 select a symtab to read and search, use `name' (as passed to us)
1419 as the demangled name when searching the symtab's global and
1420 static blocks, not the minsym's name.
1422 2002-08-29 Keith Seitz <keiths@redhat.com>
1424 * stack.c (print_frame_info_base): Always set current_source_symtab
1425 and current_source_line.
1427 2002-08-29 Donn Terry <donnte@microsoft.com>
1429 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1431 2002-08-28 Keith Seitz <keiths@redhat.com>
1433 * stack.c (select_frame): Add FIXME concerning selected-frame
1435 (select_frame_command): Send selected-frame-level-changed
1436 event notification, but only if the level actually changed.
1437 (up_silently_base): Add selected-frame-level-changed event
1439 (down_silently_base): Likewise.
1441 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1443 * Makefile.in: Update dependencies for all gdb/*.c files.
1445 2002-08-27 Tom Tromey <tromey@redhat.com>
1447 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1448 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1449 Update dependencies.
1450 * i387-tdep.c: Include gdb_string.h.
1451 * osabi.c: Likewise.
1452 * i386-linux-nat.c: Likewise.
1453 * lin-lwp.c: Likewise.
1454 * ax-gdb.c: Likewise.
1455 * signals/signals.c: Likewise.
1456 * jv-valprint.c: Likewise.
1457 * p-lang.c: Likewise.
1458 * c-valprint.c: Likewise.
1459 * cp-abi.c: Likewise.
1461 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1463 * cli/cli-script.h (copy_command_lines): Export.
1464 * breakpoint.c: Include cli/cli-script.h.
1465 * Makefile.in (breakpoint.o): Update dependencies.
1467 2002-08-26 Michael Snyder <msnyder@redhat.com>
1469 * breakpoint.c (insert_breakpoints): Protect all references
1470 to 'process_warning'. Shorten long lines.
1472 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1474 * cli/cli-script.c (copy_command_lines): New function.
1475 * defs.h (copy_command_lines): Export.
1476 * testsuite/gdb.base/commands.exp: New tests for commands
1477 attached to a temporary breakpoint, and for commands that
1478 delete the breakpoint they are attached to.
1480 2002-08-26 Michael Snyder <msnyder@redhat.com>
1482 * breakpoint.c (bpstat_stop_status): Instead of copying the
1483 pointer to the breakpoint commands struct, make a new copy
1484 of the struct and point to that.
1485 (bpstat_clear): Free the commands struct.
1486 (bpstat_clear_actions): Free the commands struct.
1487 (bpstat_do_actions): Free the command actions. Also execute
1488 the local cleanups, instead of deleting them.
1489 (delete_breakpoint): Leave the commands field of the bpstat
1490 chain alone -- it will be freed later.
1492 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1494 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1495 deleted in 2002-08-20 commit. This function is still used by
1498 2002-08-26 Keith Seitz <keiths@redhat.com>
1500 * gdb-events.sh: Add selected-frame-level-changed event.
1501 * gdb-events.c: Regenerated.
1502 * gdb-events.h: Regenerated.
1504 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1507 * inflow.c (terminal_save_ours): New function to save terminal
1509 * inferior.h (terminal_save_ours): Declare.
1510 * target.c (debug_to_terminal_save_ours): New function.
1511 (cleanup_target): Defaults to_terminal_save_ours.
1512 (update_current_target): Inherit to_terminal_save_ours.
1513 (setup_target_debug): Set to_terminal_save_ours.
1514 * target.h (target_terminal_save_ours): New to save terminal settings.
1515 (target_ops): New member to_terminal_save_ours.
1516 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1517 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1518 * inftarg.c (init_child_ops): Likewise.
1519 * m3-nat.c (init_m3_ops): Likewise.
1520 * procfs.c (init_procfs_ops): Likewise.
1521 * wince.c (init_child_ops): Likewise.
1522 * win32-nat.c (init_child_ops): Likewise.
1523 * sol-thread.c (init_sol_thread_ops): Likewise.
1525 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1527 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1528 use regcache_* functions.
1529 (i386_gdbarch_init): Set store_return_value instead of
1530 deprecated_store_return_value.
1532 * regcache.c (regcache_raw_write_signed,
1533 regcache_raw_write_unsigned): New functions.
1534 * regcache.h (regcache_raw_write_signed,
1535 regcache_raw_write_unsigned): New prototypes.
1537 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1539 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1540 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1541 source file dependencies. Cleanup corresponding generator rules.
1543 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1545 * regcache.h (register_offset_hack): Declare.
1546 (regcache_cooked_read_using_offset_hack): Declare.
1547 (regcache_cooked_write_using_offset_hack): Declare.
1549 * regcache.c (register_offset_hack): New function.
1550 (regcache_cooked_read_using_offset_hack): New function.
1551 (regcache_cooked_write_using_offset_hack): New function.
1552 (regcache_dump): Check that the registers, according to their
1553 offset, are packed hard against each other.
1554 (cooked_xfer_using_offset_hack): New function.
1556 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1558 * regcache.c (struct regcache_descr): Add field register_type.
1559 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1561 (init_regcache_descr): Initialize register_type. Pass the descr
1562 to init_legacy_regcache_descr. Use register_type instead of
1563 REGISTER_VIRTUAL_TYPE.
1564 (register_type): New function.
1565 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1566 * regcache.h (register_type): Declare.
1568 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1570 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1571 instead of deprecated_store_return_value. Fix fallout from
1572 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1574 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1576 * regcache.c (max_register_size): New function.
1577 (init_legacy_regcache_descr): Ensure that max_register_size is
1578 large enough for REGISTER_VIRTUAL_SIZE.
1579 * regcache.h (max_register_size): Declare.
1581 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1583 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1585 (e500_extract_return_value): Change type of valbuf pointer to
1588 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1590 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1593 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1594 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1595 long long) to prevent compiler warning on 64-bit systems.
1597 2002-08-23 Andrew Cagney <cagney@redhat.com>
1599 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1600 (DEPRECATED_STORE_RETURN_VALUE): New method.
1601 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1602 * gdbarch.h, gdbarch.c: Re-generate.
1604 * values.c (set_return_value): Pass current_regcache to
1606 * arch-utils.h (legacy_store_return_value): Declare.
1607 * arch-utils.c (legacy_store_return_value): New function.
1608 (legacy_extract_return_value): Update parameters.
1610 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1612 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1613 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1614 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1615 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1616 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1617 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1618 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1619 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1620 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1621 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1624 * i386-tdep.c (i386_extract_return_value): Update.
1625 * arch-utils.c (legacy_extract_return_value): Update.
1626 * frv-tdep.c (frv_gdbarch_init): Update.
1627 * cris-tdep.c (cris_gdbarch_init): Update.
1628 * d10v-tdep.c (d10v_gdbarch_init): Update.
1629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1630 * m68k-tdep.c (m68k_gdbarch_init): Update.
1631 * mcore-tdep.c (mcore_gdbarch_init): Update.
1632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1633 * s390-tdep.c (s390_gdbarch_init): Update.
1634 * sparc-tdep.c (sparc_gdbarch_init): Update.
1635 * sh-tdep.c (sh_gdbarch_init): Update.
1636 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1637 * v850-tdep.c (v850_gdbarch_init): Update.
1638 * avr-tdep.c (avr_gdbarch_init): Update.
1639 * ia64-tdep.c (ia64_gdbarch_init): Update.
1640 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1641 * vax-tdep.c (vax_gdbarch_init): Update.
1642 * alpha-tdep.c (alpha_gdbarch_init): Update.
1643 * arm-tdep.c (arm_gdbarch_init): Update.
1644 * mips-tdep.c (mips_gdbarch_init): Update.
1645 * i386-tdep.c (i386_gdbarch_init): Update.
1647 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1649 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1650 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1652 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1654 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1657 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1659 * infrun.c (handle_inferior_event): Move a comment outside of a
1660 function call, in order to avoid indent reformatting this part
1661 of the code in an unreadable way.
1663 2002-08-23 Grace Sainsbury <graces@redhat.com>
1665 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1666 when breakpoints fail. Move general breakpoint error messages to
1668 * breakpoint.c (insert_breakpoints): Change warnings when
1669 breakpoints are nto inserted to specify the type. Remove call to
1670 memory_error when hardware breakpoints can't be inserted. Remove
1671 multiple calls to warning so all messages are sent to the user at
1673 (delete_breakpoints): Make insert error messsages more explicit.
1675 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1677 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1678 gdbserver/ChangeLog.
1680 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1682 * i386-tdep.c: Include "objfiles.h".
1683 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1684 skip_trampoline_code.
1685 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1686 (CPLUS_MARKER): Define to '.'.
1688 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1690 (linux_corefile_thread_callback): Increase args->num_notes.
1691 (linux_make_note_section): Initialize thread_args.num_notes, and
1692 use it to determine whether notes for any threads were created.
1694 2002-08-23 Donn Terry <donnte@microsoft.com>
1696 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1697 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1699 (write_with_trace): Conditionalize out the switch branch handling
1700 PCSHOLD if the corresponding macro is not defined. Likewise for
1701 PRSABORT and PRSTOP.
1702 This change will be needed by the Interix port.
1704 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1706 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1707 write_register wherever possible instead of manipulating the
1708 register bytes directly.
1709 Assign VALUE_CONTENTS to a variable and use that.
1710 The GPR numbers are now dependent on the architecture.
1712 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1714 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1716 (skip_prologue): Add support for BookE/e500 instructions.
1717 (e500_extract_return_value): New function.
1718 (frame_get_saved_regs): Add support for saving ev registers and
1720 (e500_store_return_value): New function.
1721 (rs6000_gdbarch_init): Move up default intializations of
1722 deprecated_extract_return_value and store_return_value. Overwrite
1723 init of store_return_value with e500 specific version.
1724 Set extract_return_value for e500.
1726 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1728 * blockframe.c (generic_call_dummy_register_unwind): Use
1729 regcache_cooked_read to catch cases in which the variable is
1730 stored in a pseudo register.
1732 2002-08-22 Andrew Cagney <cagney@redhat.com>
1734 * NEWS: Mention that the i960 has been made obsolete.
1735 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1737 (remote-nrom.o): Obsolete target.
1738 (remote-nindy.o, i960-tdep.o): Ditto.
1739 * remote-nrom.c: Make file obsolete.
1740 * remote-nindy.c, remote-vx960.c: Ditto.
1741 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1742 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1743 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1744 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1745 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1746 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1747 i960-*-vxworks* obsolete.
1748 * MAINTAINERS: Note that the i960 is obsolete.
1750 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1752 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1753 detach to allow reinitialization.
1755 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1757 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1760 2002-08-22 Jim Blandy <jimb@redhat.com>
1762 * coffread.c (coff_symfile_read): Don't try to read the line
1763 number table from disk if the image file doesn't have a symbol
1764 table; we'll never actually look at the info anyway, and Windows
1765 ships DLL's with bogus file offsets for the line number data.
1767 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1769 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1772 2002-08-21 Michael Snyder <msnyder@redhat.com>
1774 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1775 (MSYMBOL_SIZE): Replace macro with function.
1776 (DEFAULT_MIPS_TYPE): Delete unused macro.
1777 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1778 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1780 2002-08-21 Jim Blandy <jimb@redhat.com>
1782 * valops.c (value_cast): Simplify and correct logic for doing a
1783 static cast from a pointer to a base class to a pointer to a
1786 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1788 * infcmd.c (default_print_registers_info): Replace
1790 (registers_info): Use gdbarch_print_registers_info instead of
1792 * inferior.h (default_print_registers_info): Replace
1794 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1795 (DO_REGISTERS_INFO): Change to a predicate function.
1796 * gdbarch.h, gdbarch.c: Regenerate.
1798 2002-08-21 Keith Seitz <keiths@redhat.com>
1800 * gdb-events.sh: Add target-changed event.
1801 * gdb-events.c: Regenerated.
1802 * gdb-events.c: Regenerated.
1803 * valops.c (value_assign): Add target-changed event notification
1804 to inlval_register, lval_memory, and lval_reg_frame_relative.
1806 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1808 * NEWS: Add an entry regarding the improvement of the next/step
1809 operation on Alpha Tru64 multi-processor machines.
1811 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1813 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1815 * Makefile.in: Update all _h macro definitions.
1816 * Makefile.in (install-gdbtk): Move to install section.
1817 (rdi-share/libangsd.a): Move to end of file.
1819 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1821 * frame.c (frame_register_unwind): When a register, set addrp to
1822 the register's byte.
1824 2002-08-20 Michael Snyder <msnyder@redhat.com>
1826 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1827 used locally, so move them from the target machine header to here.
1828 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1829 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1831 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1833 2002-08-20 Andrew Cagney <cagney@redhat.com>
1835 * NEWS: Mention that the Apollo line was made obsolete.
1836 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1837 m68*-hp-hpux* obsolete.
1838 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1839 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1840 * buildsym.c (make_blockvector): Make static.
1841 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1842 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1843 (ALLDEPFILES): Remove dstread.c.
1844 (dstread.o): Obsolete make rule.
1845 * dstread.c: Makefile obsolete.
1847 * config/m68k/hp300hpux.mt: Ditto.
1848 * config/m68k/hp300hpux.mh: Ditto.
1849 * config/m68k/hp300bsd.mt: Ditto.
1850 * config/m68k/hp300bsd.mh: Ditto.
1851 * config/m68k/apollo68b.mt: Ditto.
1852 * config/m68k/apollo68v.mh: Ditto.
1853 * config/m68k/apollo68b.mh: Ditto.
1855 2002-08-20 Michael Snyder <msnyder@redhat.com>
1857 * mips-tdep.c (mips_in_return_stub): Make static.
1858 (mips_gdbarch_init): Set in_solib_return_trampoline.
1859 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1861 2002-08-20 Michael Snyder <msnyder@redhat.com>
1863 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1864 * gdbarch.c, gdbarch.h: Regenerate.
1865 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1867 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1869 2002-08-20 Michael Snyder <msnyder@redhat.com>
1871 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1872 (mips_gdbarch_init): Set skip_trampoline_code,
1873 in_solib_call_trampoline.
1874 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1875 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1877 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1879 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1881 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1882 vector type for ev registers.
1883 (e500_pseudo_register_read): New function.
1884 (e500_pseudo_register_write): New function.
1885 (e500_dwarf2_reg_to_regnum): New function.
1886 (PPC_UISA_NOFP_SPRS): New macro.
1887 (PPC_EV_REGS): New macro.
1888 (PPC_GPRS_PSEUDO_REGS): New macro.
1889 (registers_e500): New register set for e500.
1890 (variants): Add e500 variant.
1891 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1892 before setting architectural dependent variations. Initialize ev
1893 registers numbers. Add case for e500 architecture. Set the
1894 number of pseudo registers.
1896 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1898 * rs6000-tdep.c: Clean up comments.
1900 2002-08-20 Andrew Cagney <cagney@redhat.com>
1902 * h8300-tdep.c: Re-indent file.
1904 2002-08-20 Jim Blandy <jimb@redhat.com>
1906 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1909 2002-08-20 Keith Seitz <keiths@redhat.com>
1911 * breakpoints.c (watch_command_1): Use internal breakpoint
1912 when setting a watchpoint_scope breakpoint.
1914 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1916 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1917 (build_builtin_type_vec64i): Ditto.
1918 (build_builtin_type_vec128): Ditto.
1919 (build_builtin_type_vec128i): Ditto.
1921 2002-08-19 Michael Snyder <msnyder@redhat.com>
1923 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1924 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1925 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1926 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1927 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1928 CALL_DUMMY_ADDRESS): Delete.
1929 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1930 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1931 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1932 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1933 push_return_address.
1934 (mips_register_raw_size, mips_eabi_use_struct_convention,
1935 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1936 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1937 mips_init_extra_frame_info, mips_eabi_push_arguments,
1938 mips_n32n64_push_arguments, mips_push_return_address,
1939 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1940 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1942 2002-08-19 Michael Snyder <msnyder@redhat.com>
1944 * mips-tdep.c (mips_frame_num_args): New function.
1945 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1946 frame_saved_pc, frame_args_address, frame_locals_address,
1947 frame_num_args, and frame_args_skip.
1948 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1949 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1950 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1951 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1953 2002-08-20 Michael Snyder <msnyder@redhat.com>
1955 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1956 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1957 * mips-tdep.c (mips_store_struct_return): New function.
1958 (mips_extract_struct_value_address): New function.
1959 (mips_gdbarch_init): Set store_struct_return and
1960 extract_struct_value_address.
1962 2002-08-20 David Carlton <carlton@math.stanford.edu>
1964 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1965 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1966 (read_file_scope): Check that line_header is nonzero before
1967 decoding macro information.
1969 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1971 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1972 flag the general-purpose registers as floating-point on targets
1973 that don't support the floating-point registers.
1975 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1977 * rs6000-tdep.c (altivec_register_p): Delete.
1978 (rs6000_do_altivec_registers): Delete.
1979 (rs6000_altivec_registers_info): Delete.
1980 (rs6000_do_registers_info): Delete.
1981 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1982 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1984 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1986 * infcmd.c (do_registers_info): Print vector registers in hex
1988 (print_vector_info): Check that printing registers
1990 (print_float_info): Ditto.
1992 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1994 * mips-tdep.c (mips_gdbarch_init): Update.
1995 (mips_o32_extract_return_value): Rewrite.
1996 (mips_o32_store_return_value): Rewrite.
1997 (mips_o32_xfer_return_value): New function.
1998 (mips_xfer_register): Tweak debug print message. Allow for
1999 buf_offset when dumping the value transfered.
2001 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2003 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2004 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2005 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2006 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2007 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2009 2002-08-14 Michael Snyder <msnyder@redhat.com>
2011 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2013 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2015 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2017 (P): New macro to define a register as a pseudo register.
2018 (R, R4, R8, R16, FR32, R64, R0): Updated.
2019 (struct variant): Add new fields for number of pseudo registers
2020 and number of total registers.
2021 (tot_num_registers): New macro replacing....
2022 (num_registers): ...deleted macro.
2023 (num_registers): New function.
2024 (num_pseudo_registers): New function.
2025 (variants): Update all variants to intialize new fields correctly.
2026 Postpone initialization of number of pseudo regs and real regs.
2027 (init_variants): New function.
2028 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2031 2002-08-19 David Carlton <carlton@math.stanford.edu>
2033 * valops.c (search_struct_field): Change error message to treat
2034 return value of 0 from value_static_field as meaning that field is
2036 (value_struct_elt_for_reference): Ditto.
2037 * values.c (value_static_field): Treat an unresolved location the
2038 same as a nonexistent symbol. Fix PR gdb/635.
2039 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2040 enclosed. Fix PR gdb/574.
2041 * MAINTAINERS: Add self to Write After Approval list.
2043 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2045 * mips-tdep.c (mips_xfer_register): New function.
2046 (mips_n32n64_extract_return_value): Rewrite.
2047 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2048 instead of deprecated_extract_return_value.
2050 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2052 * rs6000-tdep.c (TDEP): Delete macro.
2053 (branch_dest): Replace use of TDEP macro with its body.
2054 (rs6000_pop_frame): Ditto.
2055 (rs6000_push_arguments): Ditto.
2056 (rs6000_skip_trampoline_code): Ditto.
2057 (rs6000_frame_saved_pc): Ditto.
2058 (rs6000_frame_chain): Ditto.
2059 (rs6000_register_name): Ditto.
2060 (rs6000_register_byte): Ditto.
2061 (rs6000_register_raw_size): Ditto.
2062 (rs6000_register_virtual_type): Ditto.
2063 (rs6000_register_convertible): Ditto.
2064 (rs6000_convert_from_func_ptr_addr): Ditto.
2066 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2068 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2070 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2071 MIPS_LINUX_JB_ELEMENT_SIZE.
2072 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2073 for MAX_REGISTER_RAW_SIZE arrays.
2074 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2075 MIPS_LINUX_JB_ELEMENT_SIZE.
2077 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2079 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2081 2002-08-19 Aidan Skinner <aidan@velvet.net>
2083 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2084 ada-valprint.c ada-tasks.c.
2085 (YYFILES): Add ada-exp.y.
2086 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2087 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2088 (ada-exp.tab.o): New target.
2090 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2092 * regcache.c (regcache_xfer_part): New function.
2093 (regcache_raw_read_part): New function.
2094 (regcache_raw_write_part): New function.
2095 (regcache_cooked_read_part): New function.
2096 (regcache_cooked_write_part): New function.
2097 * regcache.h (regcache_raw_read_part): Declare.
2098 (regcache_raw_write_part): Declare.
2099 (regcache_cooked_read_part): Declare.
2100 (regcache_cooked_write_part): Declare.
2102 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2104 * remote.c (remote_open_1): Add async_p.
2105 (remote_async_open_1): Delete.
2106 (open_remote_target): Delete.
2107 (remote_open, extended_remote_open): Update calls to remote_open_1.
2108 (remote_async_open, extended_remote_async_open): Call
2109 remote_open_1 instead of remote_async_open_1.
2111 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2113 * blockframe.c: Fix a few coding standard violations.
2115 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2117 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2119 * config/i386/tm-i386sco5.h: ... here. File removed.
2120 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2122 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2123 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2124 (TM_FILE): Set to tm-i386.h.
2125 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2126 * config/i386/tm-i386v.h: Remove file.
2127 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2128 instead of "i386/tm-i386v.h".
2129 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2130 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2132 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2133 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2136 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2138 * config/i386/nm-i386v.h: Add protection against
2140 (i386_register_u_addr): Remove prototype.
2141 (register_u_addr): New prototype.
2142 (REGISTER_U_ADDR): Redefine accordingly.
2143 * i386v-nat.c: Improve several comments.
2144 (i386_register_u_addr): Change signature and rename to
2145 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2148 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2150 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2151 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2152 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2153 deprecated_extract_return_value.
2154 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2155 rename mips_o32o64_push_arguments.
2156 (mips_gdbarch_init): Update.
2157 (mips_extract_return_value): Delete.
2158 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2159 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2160 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2161 (mips_n32n64_extract_return_value): Clone
2162 mips_extract_return_value.
2163 (mips_store_return_value): Delete.
2164 (mips_o32_store_return_value): Clone mips_store_return_value.
2165 (mips_o64_store_return_value): Clone mips_store_return_value.
2166 (mips_eabi_store_return_value): Clone mips_store_return_value.
2167 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2169 2002-08-18 Aidan Skinner <aidan@velvet.net>
2171 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2172 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2174 2002-08-18 Aidan Skinner <aidan@velvet.net>
2176 * ada-lang.c: Run through gdb_indent.sh.
2177 * ada-lang.h: Run through gdb_indent.sh.
2178 * ada-tasks.c: Run through gdb_indent.sh.
2179 * ada-typeprint.c: Run through gdb_indent.sh.
2180 * ada-valprint.c: Run through gdb_indent.sh.
2182 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2184 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2187 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2189 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2191 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2192 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2194 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2195 write_register_gen instead of write_register_bytes.
2197 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2198 i[3456]-*-osf1mk* configurations have been made obsolete.
2199 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2200 i[3456]86-*-osf1mk* hosts obsolete.
2201 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2203 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2204 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2205 config/i386/i386m3.mt, config/i386/nm-m3.h,
2206 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2207 config/i386/i386mk.mh, config/i386/i386mk.mt,
2208 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2210 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2211 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2212 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2214 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2216 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2217 (hppa_value_returned_from_stack): Declare.
2218 (hppa_extract_return_value): Declare.
2219 * config/pa/hppa.mt: New file.
2220 * configure.tgt: Recognize hppa*-*-*.
2221 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2223 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2225 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2228 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2230 * top.c (gdb_rl_operate_and_get_next): Make sure
2231 operate-and-get-next functions correctly even when the history
2232 list is completely filled.
2234 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2236 * MAINTAINERS (Target Instruction Set Architectures): Rename
2237 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2238 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2239 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2240 already listed under Host/Native.
2242 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2243 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2246 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2248 * config/ia64/ia64.mt: New file.
2249 * config/alpha/alpha.mt: New file.
2250 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2251 ia64-linux-gnu. Mention that ia64-elf is broken.
2252 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2254 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2256 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2257 generic_func_frame_valid instead of func_frame_valid.
2259 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2261 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2262 procfs appears to be broken when debugging on multi-processor
2263 machines. So enable software single stepping in order to avoid
2264 using the procfs interface to do next/step operations, using
2265 internal breakpoints instead.
2267 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2268 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2269 make this pc address equal to the value it would have if the
2270 system stepping capability was used. Also set a new flag used
2271 to ensure that we don't readjust the PC one more time later.
2273 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2274 address by DECR_PC_AFTER_BREAK when software single step is
2275 in use for this architecture, as this has already been taken
2276 care of in handle_inferior_event().
2278 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2280 * infrun.c (handle_inferior_event): Minor reformatting, to make
2281 a rather long condition expression easier to read.
2283 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2285 * Makefile.in (gdbtk.o): Move to end of file.
2286 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2287 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2288 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2289 (gdbtk-wrapper.o, gdbres.o): Ditto.
2291 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2293 * Makefile.in (copying.o): Separate out compile rule.
2294 (hpux-thread.o, procfs.o, signals.o): Ditto.
2295 (v850ice.o, z8k-tdep.o): Ditto.
2296 (tui-file.o): Move to TUI section.
2297 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2298 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2300 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2302 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2303 skip_trampoline_code, for better namespace-proofing.
2305 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2307 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2309 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2311 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2313 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2314 signal, check whether we hit a breakpoint before checking for a
2315 single step breakpoint. Otherwise, GDB fails to notice that a
2316 breakpoint has been hit when stepping onto a breakpoint.
2318 2002-08-16 Keith Seitz <keiths@redhat.com>
2320 * gdb-events.sh (clear_gdb_event_hooks): New function.
2321 * gdb-events.c: Regenerate.
2322 * gdb-events.h: Regenerate.
2324 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2326 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2327 not_a_sw_breakpoint.
2328 * breakpoint.h (bpstat_stop_status): Add parameter names.
2330 2002-08-16 Grace Sainsbury <graces@redhat.com>
2332 * remote.c (remote_insert_hw_breakpoint)
2333 (remote_remove_hw_breakpoint): Fix calculation of length field
2336 2002-08-15 Michael Snyder <msnyder@redhat.com>
2338 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2339 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2340 (supply_fpregset): Ditto.
2342 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2343 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2344 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2345 (TARGET_READ_SP): Delete.
2346 (DO_REGISTERS_INFO): Delete.
2347 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2349 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2350 from macros to functions.
2352 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2353 (mips_register_convertible, mips_register_convert_to_virtual,
2354 mips_register_convert_to_raw): Make static.
2355 (mips_read_sp): New function.
2356 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2357 (mips_do_registers_info): Make static.
2358 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2359 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2360 (mips_register_convert_from_type, mips_register_convert_to_type):
2362 (mips_gdbarch_init): Set up function_start_offset,
2363 register_virtual_size, pc_in_sigtramp.
2365 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2367 * infcmd.c (vector_info): New function.
2368 (_initialize_infcmd): Add command "info vector".
2369 (print_vector_info): New function.
2371 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2372 * gdbarch.h, gdbarch.c: Regenerate.
2374 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2376 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2377 ``print_all''. Only print vector registers when ``print_all''.
2379 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2381 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2382 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2384 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2385 Add `args' parameter.
2386 * gdbarch.h, gdbarch.c: Regenerate.
2388 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2390 * infcmd.c (float_info): Call print_float_info.
2391 (print_float_info): New function. By default, print the
2392 floating-point registers.
2394 * arch-utils.h (default_print_float_info): Delete declaration.
2395 * arch-utils.c (default_print_float_info): Delete function.
2397 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2399 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2402 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2405 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2406 * configure.host: Make i[3456]86-*-aix host obsolete.
2407 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2408 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2409 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2410 config/i386/xm-i386aix.h: Make files obsolete.
2411 * i386aix-nat.c: Make file obsolete.
2412 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2413 (i386aix-nat.o): Make target obsolete.
2415 * config/i386/nm-gnu.h: Removed.
2416 * config/i386/nm-i386gnu.h: New file.
2417 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2418 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2420 * config/i386/tm-i386gnu.h: ... here. Removed.
2421 * config/i386/xm-i386gnu.h: Removed.
2422 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2423 (NAT_FILE): Set to nm-i386gnu.h.
2424 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2425 * i386-tdep.c: New file.
2426 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2427 (i386gnu-tdep.o): Specify dependencies.
2429 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2431 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2432 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2433 Adjust a few comments to reflect reality a bit closer.
2434 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2435 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2436 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2437 target_insert_watchpoint, target_remove_watchpoint):
2439 * config/i386/nm-i386sco5.h: ... here.
2440 (kernel_u_size): Add prototype. Improve a few comments and add
2441 protection against multiple inclusion.
2443 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2446 * uw-thread.c (SP_ARG0): Define if not already defined.
2447 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2449 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2451 * config/i386/tm-i386.h: Don't include "regcache.h".
2453 * i387-tdep.h (i387_print_float_info): New prototype.
2454 * i387-tdep.c (print_i387_value, print_i387_ext,
2455 print_i387_status_word, print_i387_control_word): Add `struct
2456 ui_file *' argument and use it for output.
2457 (i387_print_float_info): Renamed from i387_float_info. Add
2458 `struct gdbarch *' and `struct ui_file *' arguments and use the
2460 * i386-tdep.c: Include "i387-tdep.h".
2461 (i386_gdbarch_init): Set print_float_info.
2462 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2463 (FLOAT_INFO): Remove define.
2465 2002-08-13 Michael Snyder <msnyder@redhat.com>
2467 * mips-tdep.c (mips_push_arguments): Rename to
2468 mips_eabi_push_arguments, and tune for EABI.
2469 (MIPS_REGS_HAVE_HOME_P): Delete.
2470 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2471 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2472 Delete references to mips_regs_have_home_p.
2474 2002-08-14 Keith Seitz <keiths@redhat.com>
2476 * Makefile.in (install-gdbtk): Create insight plugin directory.
2477 Install plugins.tcl file.
2479 2002-08-14 Keith Seitz <keiths@redhat.com>
2481 * configure.in: Move SUBDIRS to near top of the file so that
2482 --enable options may add things to it.
2483 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2484 * configure: Regenerate.
2486 2002-08-13 Michael Snyder <msnyder@redhat.com>
2488 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2489 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2490 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2492 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2494 * vax-tdep.c (vax_get_saved_register): Delete function.
2495 (vax_gdbarch_init): Update.
2496 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2497 (ns32k_gdbarch_init): Update.
2498 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2499 (alpha_gdbarch_init): Update.
2501 2002-08-13 Andrew Cagney <cagney@redhat.com>
2503 * regcache.c (init_regcache_descr): Overallocate the
2504 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2505 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2507 (set_register_cached): Add range checking assertions. Use
2510 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2512 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2513 numbers for MMX registers.
2515 2002-08-13 Andrew Cagney <cagney@redhat.com>
2517 * i386-tdep.c (i386_gdbarch_init): Use
2518 generic_unwind_get_saved_register.
2520 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2522 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2523 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2525 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2526 Delete. Add comment regarding this now-deleted target method.
2528 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2530 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2531 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2532 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2533 real PC and the page number (if it's within the memory bank window).
2534 (m68hc11_pseudo_register_write): Likewise when saving.
2535 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2536 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2537 (m68hc11_register_raw_size): And use 32-bit for it.
2538 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2539 16K memory bank is used by the prog; also use the virtual pc.
2541 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2543 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2544 (m68hc11_gdbarch_init): Install it in gdbarch.
2545 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2546 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2547 (MSYMBOL_SIZE): New for documentation.
2548 (insn_return_kind): Enum to specify how a function returns.
2549 (frame_extra_info): Cleanup and record the return mode.
2550 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2551 register in address computation.
2552 (m68hc11_get_return_insn): New to obtain the return instruction used
2554 (m68hc11_frame_init_saved_regs): Take into account the return
2555 instruction used by the function for far and interrupt functions.
2556 (m68hc11_init_extra_frame_info): Take into account page register.
2557 (m68hc11_frame_args_address): Adjust according to the return mode.
2558 (show_regs): Print page register only when it's used.
2560 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2562 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2563 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2564 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2566 (m68hc11_register_raw_size): Likewise.
2568 2002-08-13 Andrew Cagney <cagney@redhat.com>
2570 * i386-tdep.c (i386_register_name): Handle mmx registers.
2571 (mmx_regnum_p): New function.
2572 (i386_mmx_names): New array.
2573 (mmx_num_regs): New variable.
2574 (i386_pseudo_register_read): New function.
2575 (i386_pseudo_register_write): New function.
2576 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2578 * regcache.c (regcache_raw_read_unsigned): New function.
2579 (regcache_raw_read_signed): New function.
2580 * regcache.h (regcache_raw_read_unsigned): Declare.
2581 (regcache_raw_read_signed): Declare.
2583 2002-08-13 Andrew Cagney <cagney@redhat.com>
2585 * regcache.c (regcache_raw_read_as_address): Delete function.
2586 (regcache_cooked_read_signed): New function.
2587 (regcache_cooked_read_unsigned): New function.
2588 * regcache.h (regcache_cooked_read_signed): Declare.
2589 (regcache_cooked_read_unsigned): Declare.
2590 (regcache_raw_read_as_address): Delete declaration.
2592 * blockframe.c (generic_read_register_dummy): Use
2593 regcache_cooked_read_unsigned.
2594 * i386-tdep.c (i386_extract_struct_value_address): Use
2595 regcache_cooked_read_unsigned.
2597 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2600 double sizes according to ELF ABI flags.
2601 (gdbarch_tdep): Record elf_flags.
2603 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2605 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2606 (m6812_prolog): They can appear in 68HC12 function prologue.
2607 (m68hc11_frame_chain): Cleanup.
2609 2002-08-12 Andrew Cagney <cagney@redhat.com>
2611 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2613 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2614 (i386_linux_register_raw_size): Delete function.
2615 (i386_linux_init_abi): Update.
2616 * i386-tdep.c (i386_register_raw_size): Delete function.
2617 (i386_register_byte): Delete function.
2618 (i386_gdbarch_init): Update.
2619 (i386_register_size): Delete array.
2620 (i386_register_offset): Delete array.
2622 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2623 (REGISTER_RAW_SIZE): Delete macro.
2624 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2625 (REGISTER_BYTE): Delete macro.
2627 2002-08-11 Aidan Skinner <aidan@velvet.net>
2629 * ada-lang.c (ada_lookup_partial_symbol)
2630 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2631 prototype names so that grep ^func works properly.
2633 * ada-lang.c (ada_array_element_type)
2634 (ada_lookup_partial_symbol): Fix typos in parameter list.
2636 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2637 Fix prototype names so that grep ^func works properly.
2639 2002-08-10 Andrew Cagney <cagney@redhat.com>
2640 Elena Zannoni <ezannoni@redhat.com>
2641 Martin M. Hunt <hunt@redhat.com>
2643 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2644 (build_builtin_type_vec128i): Set the vector bit.
2645 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2646 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2647 (build_builtin_type_vec64): New function.
2648 (build_builtin_type_vec64i): New function.
2649 (build_gdbtypes): Initialize builtin_type_vec64 and
2650 builtin_type_vec64i.
2652 2002-08-09 Andrew Cagney <cagney@redhat.com>
2654 * regcache.c (regcache_dump): Compare the register offset
2656 * arch-utils.c (generic_register_byte): New function.
2657 * arch-utils.h (generic_register_byte): Declare.
2658 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2659 * gdbarch.h, gdbarch.c: Regenerate.
2661 2002-08-09 Andrew Cagney <cagney@redhat.com>
2663 * regcache.c: Include "gdbcmd.h"
2664 (_initialize_regcache): Add commands "maintenance print
2665 registers", "maintenance print raw-registers" and "maintenance
2666 print cooked-registers".
2667 (enum regcache_dump_what): Define.
2668 (dump_endian_bytes): New function.
2669 (regcache_dump): New function.
2670 (regcache_print): New function.
2671 (maintenance_print_registers): New function.
2672 (maintenance_print_raw_registers): New function.
2673 (maintenance_print_cooked_registers): New function.
2674 * Makefile.in (regcache.o): Update dependencies.
2676 2002-08-09 Michael Snyder <msnyder@redhat.com>
2678 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2679 (mips_push_arguments): Correct some comments. Use paddr_nz
2680 for printing addresses in debug output. Replace static
2681 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2682 (mips_n32n64_push_arguments): New function, cloned from
2683 mips_push_arguments and tuned for the n32/n64 ABI.
2684 (mips_push_register): Buffer needs dynamic allocation.
2685 (mips_print_register): Ditto.
2686 (do_gp_register_row): Ditto.
2687 (mips_store_return_value): Ditto.
2688 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2690 2002-08-09 Don Howard <dhoward@redhat.com>
2692 * memattr.c (mem_info_command): Print special case of upper bound
2693 as max CORE_ADDR + 1.
2695 2002-08-08 Michael Snyder <msnyder@redhat.com>
2697 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2698 returns structs by ref if they're too big to fit in two registers.
2700 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2702 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2704 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2705 mips_find_saved_regs().
2706 (mips_pop_frame): Likewise.
2708 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2710 * blockframe.c (frame_saved_regs_register_unwind): Revise
2711 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2714 2002-08-09 Grace Sainsbury <graces@redhat.com>
2716 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2717 T-packets; the 'a' is not taken as a register number.
2718 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2719 (remote_stopped_data_address): New functions; add to target
2721 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2722 prototypes to match other implementations of this
2723 function. replace integer argument with pointer -- the length
2724 field in the Z-packet is the length of what is pointed to or 1 if
2725 pointer is null. Add to target vector.
2726 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2730 * remote.c (remote_wait): Add support to extract optional
2731 watchpoint information from T-packet. Ignore unrecognized
2732 optional info in T-packet.
2733 (remote_async_wait): Ditto.
2735 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2737 * cli/cli-dump.c: Change fopen modes to use binary open modes
2738 as defined in include/fopen-bin.h throughout.
2740 2002-08-08 Michael Snyder <msnyder@redhat.com>
2742 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2744 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2746 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2747 assertion failure by returning early after a warning.
2749 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2751 * mips-tdep.c (mips_find_saved_regs): Make static.
2752 (mips_frame_init_saved_regs): New function.
2753 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2754 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2755 (mips_find_saved_regs): Delete declaration.
2757 2002-08-08 Grace Sainsbury <graces@redhat.com>
2759 * remote.c (remote_wait, remote_async_wait): Change
2760 thread_num from int to ULONGEST.
2761 (unpack_varlen_hex): Change result parameter from
2762 int * to ULONGEST *.
2764 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2766 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2767 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2769 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2771 2002-08-08 Andrew Cagney <cagney@redhat.com>
2773 * gcore.c (override_derive_stack_segment): Delete variable.
2774 (preempt_derive_stack_segment): Delete function.
2775 (derive_stack_segment): Delete function.
2776 (default_derive_stack_segment): Renamed to derive_stack_segment.
2777 (override_derive_heap_segment): Delete variable.
2778 (preempt_derive_heap_segment): Delete function.
2779 (derive_heap_segment): Delete function.
2780 (default_derive_heap_segment): Rename to derive_heap_segment.
2782 2002-08-06 Michael Snyder <msnyder@redhat.com>
2784 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2785 * mips-tdep.c (mips_EABI_use_struct_convention,
2786 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2787 New functions. (mips_use_struct_convention): Delete.
2788 (mips_gdbarch_init): set use_gdbarch_convention.
2790 2002-08-06 Michael Snyder <msnyder@redhat.com>
2792 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2793 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2794 mips_o32_reg_struct_has_addr): New functions.
2795 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2797 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2799 * regcache.c (pseudo_register): Delete function.
2800 (fetch_register): Delete function.
2801 (store_register): Delete function.
2802 (regcache_raw_read, legacy_read_register_gen): Use
2803 target_fetch_registers instead of fetch_register.
2804 (legacy_write_register_gen, regcache_raw_write): Use
2805 target_store_register instead of store_register.
2806 (write_register_bytes): Ditto.
2808 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2809 (STORE_PSEUDO_REGISTER): Delete.
2810 * gdbarch.h, gdbarch.c: Regenerate.
2812 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2814 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2815 write dump file binary.
2817 2002-08-05 Michael Snyder <msnyder@redhat.com>
2819 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2820 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2821 (mips_gdbarch_init): Set N32 target to be mips64.
2823 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2825 * frame.c (find_saved_register): Break out of loop once saved
2826 register address is found. Don't mention sparc in loop comment
2829 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2831 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2832 mips_default_saved_regsize to 8.
2834 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2836 * gcore.c: Do not include <sys/procfs.h>.
2837 * Makefile.in (gcore.o): Update dependencies.
2839 2002-08-06 Andrew Cagney <cagney@redhat.com>
2841 * configure.tgt: Make arc-*-* obsolete.
2842 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2843 * MAINTAINERS: Make arc-elf obsolete.
2844 * arc-tdep.c: Make file obsolete.
2845 * config/arc/arc.mt: Ditto.
2846 * config/arc/tm-arc.h: Ditto.
2848 2002-08-05 Theodore A. Roth <troth@verinet.com>
2850 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2852 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2854 * mcore-tdep.c (mcore_gdbarch_init): Use
2855 generic_unwind_get_saved_register instead of
2856 generic_get_saved_register.
2857 * v850-tdep.c (v850_gdbarch_init): Ditto.
2858 * frv-tdep.c (frv_gdbarch_init): Ditto.
2859 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2860 * s390-tdep.c (s390_gdbarch_init): Ditto.
2861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2862 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2863 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2865 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2867 * objfiles.h: Add missing #include "symfile.h"
2869 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2871 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2873 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2874 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2877 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2879 * NEWS: Cleanup and nitpick.
2881 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2883 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2885 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2887 * Makefile.in (gdbtk-bp.o): Update dependencies.
2888 (gdbtk-register.o): Ditto.
2889 (gdbtk-varobj.o): Ditto.
2891 2002-08-03 Andrew Cagney <cagney@redhat.com>
2893 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2894 m68hc11_fetch_pseudo_register.
2895 (m68hc11_pseudo_register_write): Replace
2896 m68hc11_store_pseudo_register.
2897 (m68hc11_gdbarch_init): Update.
2899 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2901 * gdbarch.sh: Include "gdb_string.h".
2902 * gdbarch.c: Regenerate.
2904 * regcache.c: Include "gdb_string.h".
2905 * ax-general.c: Ditto.
2907 * std-regs.c: Ditto.
2908 * fbsd-proc.c: Ditto.
2911 * Makefile.in (regcache.o): Update dependencies.
2912 (thread.o, gdbarch.o): Ditto.
2913 (ax-general.o, gdbarch.o): Ditto.
2914 (varobj.o, std-regs.o): Ditto.
2915 (fbsd-proc.o): Specify dependencies.
2917 2002-08-02 Andrew Cagney <cagney@redhat.com>
2919 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2921 (regcache_cooked_write): Ditto.
2923 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2925 * regcache.c (regcache_cooked_read): New function.
2926 (regcache_cooked_write): New function.
2927 (read_register_gen): Rewrite using regcache_cooked_read.
2928 (write_register_gen): Rewrite using regcache_cooked_write.
2930 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2933 2002-08-02 Andrew Cagney <cagney@redhat.com>
2935 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2936 Replace the architecture methods register_read and register_write.
2937 * gdbarch.h, gdbarch.c: Regenerate.
2938 * regcache.c (init_regcache_descr): Update.
2939 (read_register_gen): Update.
2940 (write_register_gen): Update.
2941 (supply_register): Update comment.
2943 * sh-tdep.c (sh_gdbarch_init): Update.
2944 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2945 `regcache' and `gdbarch' parameters. Make `buffer' a void
2946 pointer. Update code.
2947 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2948 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2949 void pointer. Update code.
2950 (sh64_register_write): Delete.
2951 (sh4_register_read): Delete.
2952 (sh64_register_read): Delete.
2953 (sh4_register_write): Delete.
2954 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2955 void pointer, `to' parameter a void pointer.
2956 (sh_sh64_register_convert_to_raw): Ditto.
2958 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2960 * mips-tdep.c (mips_register_virtual_type): Use architecture
2961 invariant return values.
2963 2002-08-01 Andrew Cagney <cagney@redhat.com>
2965 * linux-proc.c: Include "gdb_string.h".
2966 * Makefile.in (linux-proc.o): Update dependency list.
2968 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2970 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2973 2002-08-01 Grace Sainsbury <graces@redhat.com>
2975 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2976 to_insert_watchpoint, to_remove_watchpoint,
2977 to_stopped_by_watchpoint, to_stopped_data_address,
2978 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2979 target vecctor. Define their corresponding macros so they call
2982 * target.c: Add default and debug versions of for
2983 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2984 to_insert_watchpoint, to_remove_watchpoint,
2985 to_stopped_by_watchpoint, to_stopped_data_address,
2986 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2988 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2990 * mips-tdep.c (mips_register_virtual_type): New function.
2991 (mips_gdbarch_init): Register mips_register_virtual_type()
2992 with gdbarch machinery.
2993 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2994 this file instead of tm-bigmips.h.
2995 (MIPS_REGSIZE): Delete this macro.
2996 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2997 multiarch version in mips-tdep.c will be found.
2999 2002-08-01 Andrew Cagney <cagney@redhat.com>
3001 * NEWS: Menion that CHILL has been made obsolete.
3003 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3004 * stabsread.c (read_range_type): Ditto.
3005 * gdbtypes.h: Ditto.
3006 * language.c (binop_type_check): Ditto.
3007 (binop_result_type): Ditto.
3008 (integral_type): Ditto.
3009 (character_type): Ditto.
3010 (string_type): Ditto.
3011 (boolean_type): Ditto.
3012 (structured_type): Ditto.
3013 (lang_bool_type): Ditto.
3014 (binop_type_check): Ditto.
3015 * language.h (_LANG_chill): Ditto.
3016 * dwarfread.c (set_cu_language): Ditto.
3017 * dwarfread.c (CHILL_PRODUCER): Ditto.
3018 * dwarfread.c (handle_producer): Ditto.
3019 * expression.h (enum exp_opcode): Ditto.
3020 * eval.c: Ditto for comments.
3021 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3022 * expprint.c (print_subexp): Ditto.
3023 (print_subexp): Ditto.
3024 * valops.c (value_cast): Ditto.
3025 (search_struct_field): Ditto.
3026 * value.h (COERCE_VARYING_ARRAY): Ditto.
3027 * symfile.c (init_filename_language_table): Ditto.
3028 (add_psymbol_with_dem_name_to_list): Ditto.
3029 * valarith.c (value_binop): Ditto.
3031 * valops.c (value_slice): Ditto.
3032 * symtab.h (union language_specific): Ditto.
3033 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3034 (SYMBOL_DEMANGLED_NAME): Ditto.
3035 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3036 * defs.h (enum language): Ditto.
3037 * symtab.c (got_symtab): Ditto.
3038 * utils.c (fprintf_symbol_filtered): Ditto.
3040 * ch-typeprint.c: Make file obsolete.
3041 * ch-valprint.c: Make file obsolete.
3042 * ch-lang.h: Make file obsolete.
3043 * ch-exp.c: Make file obsolete.
3044 * ch-lang.c: Make file obsolete.
3046 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3048 (TARGET_FLAGS_TO_PASS): Ditto.
3049 (CHILLFLAGS): Obsolete.
3051 (CHILL_FOR_TARGET): Obsolete.
3052 (CHILL_LIB): Obsolete.
3053 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3055 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3056 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3058 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3061 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3063 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3064 This does not change anything at the moment, but will be helpful
3065 later when full Ada support is integrated.
3067 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3069 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3072 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3074 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3075 and save it in a local variable. Use variable in later test.
3077 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3079 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3080 test. (Thanks to Daniel Jacobowitz.)
3082 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3084 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3085 (mips_abi_strings): Add "n64".
3086 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3088 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3090 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3091 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3093 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3095 * utils.c (host_pointer_to_address, address_to_host_pointer):
3096 Use gdb_assert() instead of explicit call to internal_error().
3098 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3100 * Makefile.in (rs6000-nat.o): Update dependencies.
3102 From Nicholas Duffek:
3103 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3104 (aix-thread.o): New rule.
3105 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3106 * config/powerpc/aix432.mh: New file.
3108 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3110 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3111 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3112 (fetch_core_registers, ppc_linux_supply_gregset)
3113 (ppc_linux_supply_fpregset): New functions.
3114 (ppc_linux_regset_core_fns): New.
3115 (_initialize_ppc_linux_tdep): Call add_core_fns.
3116 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3117 and ppc_linux_supply_gregset.
3118 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3119 (supply_fpregset): Call ppc_linux_supply_fpregset.
3120 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3122 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3124 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3126 * symtab.c (lookup_symbol): Demangle before lowercasing.
3128 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3130 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3132 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3133 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3134 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3135 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3137 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3138 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3139 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3140 (avr-tdep.o, mon960-rom.o): Ditto.
3141 (aout_stabs_gnu_h): Define.
3142 (symtab_h): Remove $(gdb_obstack_h).
3144 2002-07-30 Jim Blandy <jimb@redhat.com>
3146 Patch from David Carlton <carlton@math.stanford.edu>:
3147 * gdbinit.in: Move the `dir' commands that add GDB's own source
3148 directory to the search path to the end, so that the `gdb' source
3149 directory will be searched first.
3151 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3153 * gdb_obstack.h: New file.
3154 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3155 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3156 * objfiles.h: Include "gdb_obstack.h".
3157 * Makefile.in (gdb_obstack_h): Define.
3158 (symtab_h): Add $(gdb_obstack_h).
3159 (objfiles_h): Add $(gdb_obstack_h).
3161 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3162 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3163 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3164 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3165 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3166 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3167 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3168 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3170 * Makefile.in (bcache.o): Update dependencies.
3171 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3172 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3173 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3174 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3175 (stabsread.o, symfile.o, symmisc.o): Ditto.
3176 (symtab.o, typeprint.o, macroexp.o): Ditto.
3177 (macrotab.o, mdebugread.o): Ditto.
3178 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3179 (coff_ecoff_h, aout_aout64_h): Define.
3180 (aout_stabs_gnu_h, libaout_h): Define.
3182 2002-07-29 Andrew Cagney <cagney@redhat.com>
3184 * regcache.c (struct regcache_descr): Rename nr_registers to
3185 nr_cooked_registers. Revise comments describing the structure
3187 (init_regcache_descr): Update.
3188 (init_legacy_regcache_descr): Update.
3189 (read_register_gen, write_register_gen): When a cooked register in
3190 the raw register range, directly access the value from the raw
3193 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3195 * z8k-tdep.c: Do not include "obstack.h".
3196 * h8300-tdep.c, h8500-tdep.c: Ditto.
3197 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3198 * valprint.c, v850-tdep.c: Ditto.
3199 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3200 * mn10200-tdep.c: Ditto.
3202 * Makefile.in (z8k-tdep.o): Update dependencies.
3203 (m68hc11-tdep.o, valprint.o): Ditto.
3204 (v850-tdep.o, d10v-tdep.o): Ditto.
3205 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3206 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3207 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3208 (sh_opc_h, gdb_sim_sh_h): Define.
3209 (elf_sh_h, elf_bfd_h): Define.
3210 (opcode_m68hc11_h): Define.
3211 (OPCODES_SRC, OPCODES_DIR): define.
3212 (OPCODES): Use $(OPCODES_DIR).
3213 (gdb_sim_d10v_h): Rename sim_d10v_h.
3214 (gdb_sim_arm_h): Rename sim_arm_h.
3216 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3218 * utils.c (host_pointer_to_address, address_to_host_pointer):
3219 Change internal_error() message to indicate function responsible
3222 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3224 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3225 calls to local_hex_string_custom().
3227 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3229 * irix5-nat.c: Move IRIX shared library support from here...
3230 * solib-irix.c: ...to here. Revised substantially to work with
3231 generic solib framework.
3233 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3234 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3235 * mips-irix-tdep.c: New file.
3237 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3238 (mips-irix-tdep.o, solib-irix.o): New rules.
3239 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3241 * config/mips/irix6.mt (TDEPFILES): Likewise.
3242 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3244 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3246 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3247 disabled (via ``#if 0'') includes.
3249 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3251 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3252 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3253 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3254 Add support for the fpscr register.
3255 * rs6000-nat.c (regmap, fetch_inferior_registers)
3256 (store_inferior_registers, fetch_core_registers): Likewise.
3258 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3260 * rs6000-nat.c (language.h): Include.
3261 (special_regs): Delete this array.
3262 (regmap): New function.
3263 (fetch_register, store_register): Use regmap() to map gdb
3264 register numbers to ptrace register numbers. Also, use
3265 outputs from regmap() to make decisions regarding type of
3266 ptrace() call to make. In particular, don't compare against
3267 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3268 (fetch_inferior_registers, store_inferior_registers): Where
3269 possible, obtain register numbers from tdep struct. Don't
3270 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3271 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3272 (LAST_UISA_SP_REGNUM): Delete.
3274 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3276 * rs6000-nat.c (ppc-tdep.h): Include.
3277 (fetch_registers, store_register, fetch_core_registers): Don't
3278 access registers[] directly. Instead, use supply_register() or
3279 regcache_collect() as appropriate.
3280 (find_toc_address): Format hex address with local_hex_string().
3282 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3284 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3287 2002-07-24 Tom Tromey <tromey@redhat.com>
3289 * jv-exp.y: Marked all strings with _().
3290 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3292 (MethodInvocation, CastExpression, parse_number, yyerror,
3293 java_type_from_name, push_expression_name, yylex): Typo fixes.
3295 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3297 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3298 (tee_file_flush, tee_file_write, tee_file_fputs)
3299 (tee_file_isatty): New.
3300 * ui-file.h (tee_file_new): Add prototype.
3302 2002-07-24 Aidan Skinner <aidan@velvet.net>
3304 * ada-lang.c: Change k&r style function definitions to prototyped
3306 * ada-typeprint.c: Change k&r style function definitions to prototyped
3308 * ada-valprint.c: Change k&r style function definitions to prototyped
3311 2002-07-24 Andrew Cagney <cagney@redhat.com>
3313 * README: Remove reference to remote-bug.
3314 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3316 (m88k-nat.o): Delete rule.
3317 (m88k-tdep.o): Delete rule.
3318 (remote-bug.o): Delete rule.
3319 * MAINTAINERS: Mark as obsolete.
3320 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3321 * m88k-tdep.c: Make file obsolete.
3322 * config/m88k/m88k.mh: Ditto.
3323 * config/m88k/delta88v4.mh: Ditto.
3324 * config/m88k/delta88v4.mt: Ditto.
3325 * config/m88k/delta88.mt: Ditto.
3326 * config/m88k/delta88.mh: Ditto.
3327 * remote-bug.c: Ditto.
3328 * config/m88k/tm-delta88.h: Ditto.
3329 * config/m88k/nm-delta88v4.h: Ditto.
3330 * config/m88k/xm-delta88.h: Ditto.
3331 * config/m88k/xm-dgux.h: Ditto.
3332 * config/m88k/tm-m88k.h: Ditto.
3333 * config/m88k/nm-m88k.h: Ditto.
3334 * config/m88k/tm-delta88v4.h: Ditto.
3335 * m88k-nat.c: Ditto.
3336 * cxux-nat.c: Ditto.
3337 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3338 and m88*-*-* obsolete.
3339 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3342 2002-07-24 Andrew Cagney <cagney@redhat.com>
3344 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3345 constant. Same for local pointer variables.
3346 (extract_signed_integer): Ditto.
3347 * defs.h (extract_unsigned_integer): Update.
3348 (extract_signed_integer): Update.
3350 2002-07-24 Andrew Cagney <cagney@redhat.com>
3352 * regcache.c (regcache_raw_write): Change buf parameter to a
3353 constant void pointer.
3354 (regcache_raw_read): Change buf parameter to a void pointer.
3355 (legacy_write_register_gen): Change myaddr parameter a constant
3357 (supply_register): Change val parameter to a const void pointer.
3358 * regcache.h (regcache_raw_write): Update declaration.
3359 (regcache_raw_read): Update declaration.
3360 (supply_register): Update declaration.
3362 2002-07-24 Tom Tromey <tromey@redhat.com>
3364 * defs.h (gdb_readline_wrapper): Declare.
3365 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3366 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3367 * top.c (gdb_readline_wrapper): New function.
3368 (command_line_input): Use it.
3370 2002-07-24 Andrew Cagney <cagney@redhat.com>
3372 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3373 regcache_read and regcache_write.
3374 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3375 * regcache.c: Update.
3376 * sh-tdep.c (sh64_push_arguments): Update comment.
3377 (sh_pseudo_register_read): Update.
3378 (sh_pseudo_register_write): Update.
3379 (sh4_register_read): Update.
3380 (sh4_register_write): Update.
3381 (sh64_pseudo_register_read): Update.
3382 (sh64_pseudo_register_write): Update.
3383 (sh64_register_read): Update.
3384 (sh64_register_write): Update.
3385 * i386-tdep.c (i386_extract_return_value): Update.
3386 (i386_extract_struct_value_address): Update.
3387 (i386_extract_return_value): Update.
3388 * blockframe.c (generic_read_register_dummy): Update.
3389 (generic_call_dummy_register_unwind): Update
3390 * infrun.c (write_inferior_status_register): Update.
3392 2002-07-23 Jim Blandy <jimb@redhat.com>
3394 * parser-defs.h (expression_context_pc): Make this extern.
3395 (Thanks to Michael Snyder.)
3397 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3399 GDB 5.2.1 released from 5.2 branch.
3400 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3401 * README: Update to mention 5.2.1.
3403 2002-07-23 Mark Salter <msalter@redhat.com>
3405 * remote.c (remote_read_bytes): Fix check for error.
3407 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3409 * aix-thread.c (language.h): Include.
3410 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3411 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3412 Print newlines at end of debug messages.
3413 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3414 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3416 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3418 * aix-thread.c (ppc-tdep.h): Include.
3419 (special_register_p): New function.
3420 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3421 (store_regs_user_thread): Use register number information from
3422 gdbarch_tdep struct instead of hardcoded offsets relative to
3423 FIRST_UISA_SP_REGNUM.
3424 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3425 special_register_p() instead of using FPLAST_REGNUM and
3426 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3427 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3428 will be MQ's register number.
3430 2002-07-22 Michael Snyder <msnyder@redhat.com>
3432 * aix-thread.c (ops): Rename to aix_thread_ops.
3433 (base_ops): Rename to base_target.
3434 (ops_attach): Rename to aix_thread_attach.
3435 (ops_detach): Rename to aix_thread_detach.
3436 (ops_resume): Rename to aix_thread_detach.
3437 (ops_wait): Rename to aix_thread_wait.
3438 (ops_kill): Rename to aix_thread_kill.
3439 (init_ops): Rename to init_aix_thread_ops.
3440 (ops_fetch_register): Rename to aix_thread_fetch_register.
3441 (ops_store_register): Rename to aix_thread_store_register.
3442 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3443 (ops_thread_alive): Rename to aix_thread_thread_alive.
3444 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3445 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3446 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3447 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3448 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3449 (store_regs_lib): Rename to store_regs_user_thread.
3450 (store_regs_kern): Rename to store_regs_kernel_thread.
3452 2002-07-22 Michael Snyder <msnyder@redhat.com>
3454 * aix-thread.c (ops_prepare_to_store): Eliminate.
3455 (init_ops): Don't initialize ops.prepare_to_store.
3456 (store_regs_kern): Pre-fetch register buffers from child,
3457 because some registers may not be in the cache. Copy
3458 regs from register cache only if they are cached.
3459 (store_regs_lib): Copy regs from register cache only
3461 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3462 fill_gprs64): Ditto.
3464 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3466 * aix-thread.c (gdb_assert.h): Include.
3467 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3468 register sizes (from register cache) match size of buffer holding
3470 (fill_sprs32): Change parameter types to match those in the ptrace()
3472 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3473 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3475 2002-07-22 Michael Snyder <msnyder@redhat.com>
3477 * aix-thread.c (supply_sprs64): Cosmetic change.
3478 (supply_sprs32): Cosmetic change.
3479 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3480 (fill_sprs64): Use regcache_collect instead of read_register.
3481 (store_regs_lib): Use regcache_collect instead of
3482 read_register. Use fill_sprs32 instead of fill_sprs64,
3483 if debugging a 32-bit architecture.
3484 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3485 out of the register cache, instead of passing a pointer into
3486 the register cache directly to ptrace. Use regcache_collect
3487 insteaad of read_register.
3488 (ops_prepare_to_store): Use target_read_registers instead
3489 of read_register_bytes.
3491 2002-07-20 Aidan Skinner <aidan@velvet.net>
3493 * MAINTAINERS: Add self under write after approval.
3495 2002-07-20 Aidan Skinner <aidan@velvet.net>
3497 * ada-tasks.c: Change k&r style function definitions to prototyped
3500 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3502 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3503 * x86-64-tdep.c: Include "objfiles.h".
3504 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3505 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3507 2002-07-17 Michal Ludvig <michal@suse.cz>
3509 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3510 (update_context): Initialise cfa variable.
3512 2002-07-17 Michael Snyder <msnyder@redhat.com>
3514 * aix-thread.c: Shorten some long lines.
3515 Bring comments into line with code spec.
3517 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3519 * infrun.c: Re-indent using gdb_indent.sh.
3521 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3523 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3524 Leave the indentation temporarily untouched, to minimize the diffs.
3526 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3528 * stabsread.c: Make os9k sections of the code obsolete,
3530 * stabsread.h: Make os9k sections of the code obsolete.
3532 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3534 * linux-low.c (regsets_store_inferior_registers): Add free()
3535 at the end of a loop to prevent memory leak.
3536 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3537 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3538 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3540 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3542 2002-07-17 Jim Blandy <jimb@redhat.com>
3544 * macrocmd.c (info_macro_command): Remove newline from error
3547 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3549 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3550 (sh_gdbarch_init): Use it for sh-dsp.
3552 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3554 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3555 64-bit DWARF2 format.
3557 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3559 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3560 <sys/proc.h> when not available.
3562 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3564 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3565 * stabsread.c: Make os9k sections of the code obsolete.
3566 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3567 * config/i386/i386os9k.mt: Make file obsolete.
3568 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3569 (COMMON_OBS): Remove os9kread.o
3570 (SFILES): Remove os9kread.c.
3571 (os9kread.o, remote-os9k.o): Make target obsolete.
3572 * remote-os9k.c: Make file obsolete.
3573 * os9kread.c: Make file obsolete.
3576 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3578 * NEWS: Mention that the FR30 has been made obsolete.
3579 * fr30-tdep.c: Make file obsolete.
3580 * config/fr30/tm-fr30.h: Ditto.
3581 * config/fr30/fr30.mt: Ditto.
3582 * configure.tgt: Make fr30-*-elf obsolete.
3583 * MAINTAINERS: Make fr30-elf obsolete.
3585 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3587 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3588 found is not inside a section.
3590 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3592 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3594 (pdc_realloc): Use xrealloc() instead of realloc().
3596 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3598 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3599 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3600 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3603 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3605 * aix-thread.c (ptrace_check): Eliminate goto.
3606 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3609 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3611 * aix-thread.c (gdbcmd.h): Include.
3612 (DEBUG, DBG, DBG2, dbg): Eliminate.
3613 (debug_aix_thread): New static global.
3614 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3615 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3616 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3617 invocations to DBG and DBG2 macros to test against
3618 ``debug_aix_thread'' and call fprintf_unfiltered().
3619 (_initialize_aix_thread): Add new command "set debug aix-thread".
3621 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3623 From Gerhard Tonn <TON@de.ibm.com>:
3624 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3625 instead of supply_register.
3627 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3629 * dwarf2cfi.c: Include "gdb_assert.h".
3630 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3632 (update_context): Do not use __func__. Add missing ``break''.
3633 (update_context): Do not use __func__.
3635 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3637 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3638 and its setting. Set gdbarch instruction printing functions
3639 directly. For non-rs6000 case use new function
3640 gdb_print_insn_powerpc.
3641 (gdb_print_insn_powerpc): New function.
3643 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3645 * NEWS: Mention that the d30v has been marked obsolete.
3646 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3647 * configure.tgt: Mark d30v-*-* as obsolete.
3648 * d30v-tdep.c: Mark file as obsolete.
3649 * config/d30v/d30v.mt: Ditto.
3650 * config/d30v/tm-d30v.h: Ditto.
3652 2002-07-13 Aidan Skinner <aidan@velvet.net>
3654 * ada-tasks.c (add_task_entry): replace calls to
3655 malloc() with xmalloc
3656 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3658 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3659 ada_finish_decode_line_1, all_sals_for_line
3660 ada_breakpoint_rewrite): replace calls to free() with xfree()
3662 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3664 From Nicholas Duffek (with minor changes by Martin Hunt,
3665 Louis Hamilton, and Kevin Buettner):
3666 * aix-thread.c: New file.
3668 2002-07-12 Petr Sorfa <petrs@caldera.com>
3670 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3671 complaint for invalid attribute class or form.
3672 (read_func_scope): DW_AT_frame_base
3673 better handling of DW_AT_block*.
3674 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3675 better handling of DW_AT_block*.
3676 (read_common_block): DW_AT_location
3677 better handling of DW_AT_block*.
3678 (read_partial_die): DW_AT_location better handling
3680 (new_symbol): DW_AT_external better handling of
3681 DW_AT_block*. Proper initialization of variable
3683 (attr_form_is_block): New function that returns true
3684 if the attribute's form is of DW_FORM_block*.
3686 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3688 * valops.c (find_method_list): Remove comment about
3689 removed STATIC_MEMFUNCP argument.
3690 (value_find_oload_method_list): Likewise.
3692 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3694 From Nicholas Duffek:
3695 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3696 target_new_objfile_hook.
3698 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3700 From Nicholas Duffek:
3701 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3704 2002-07-12 Andrew Cagney <cagney@redhat.com>
3706 * MAINTAINERS: Mention --enable-sim-build-warnings.
3707 (m68hc11-elf): Disable sim build warnings.
3708 (m32r-elf): Mark as broken obsolete candidate.
3709 (x86_64-linux-gnu): Mark as buildable with -Werror.
3710 (arm-elf): Change -w to ``,'' which enables warnings but not
3713 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3715 * bcache.h: Update copyright.
3716 (struct bstring, struct bcache): Move definition to "bcache.c".
3717 Replaced by opaque declaration.
3718 (bcache_xfree): Replace free_bcache.
3719 (bcache_xmalloc, bcache_memory_used): Declare.
3721 * bcache.c: Update copyright.
3722 (struct bstring, struct bcache): Moved to here from "bcache.h".
3724 (bcache_xmalloc, bcache_memory_used): New functions.
3725 (bcache_xfree): Replace function free_bcache.
3727 * Makefile.in (objfiles.o): Add $(bcache_h).
3728 (objfiles_h): Remove $(bcache_h).
3729 (symfile.o): Add $(bcache_h).
3731 * symmisc.c: Update copyright.
3732 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3733 (print_objfile_statistics): Use bcache_memory_used.
3735 * symfile.c: Include "bcache.h".
3736 (reread_symbols): Use bcache_xfree.
3737 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3738 (add_psymbol_to_list): Pass psymbol_cache by value.
3739 (add_psymbol_with_dem_name_to_list): Ditto.
3741 * objfiles.h: Update copyright.
3742 (struct bcache): Declare opaque. Do not include "bcache.h".
3743 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3745 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3747 * objfiles.c: Include "bcache.h". Update copyright.
3748 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3750 (free_objfile): Use bcache_xfree.
3752 2002-07-11 Grace Sainsbury <graces@redhat.com>
3754 * monitor.c (monitor_fetch_register): Make name a constant.
3755 (monitor_store_register): Same.
3757 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3759 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3760 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3761 (finish_block) For non-function blocks, hash the symbol table. For
3762 function blocks, mark the symbol table as unhashed.
3763 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3764 (msymbol_hash_iw): Likewise.
3765 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3767 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3768 (lookup_minimal_symbol): Likewise for both.
3769 * symtab.h (struct block): Add `hashtable' flag. Comment the
3771 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3772 (ALL_BLOCK_SYMBOLS): Update.
3773 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3774 (struct symbol): Add `hash_next' pointer.
3775 * symtab.c (lookup_block_symbol): Search using the hash table when
3777 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3778 (search_symbols, find_addr_symbol): Likewise.
3780 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3781 (read_dst_symtab): Likewise.
3782 * jv-lang.c (get_java_class_symtab): Likewise.
3783 * mdebugread.c: Include "gdb_assert.h".
3784 (shrink_block): Assert that the block being modified is not hashed.
3785 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3786 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3788 (dump_symtab): Recognize hashed blocks.
3789 * printcmd.c (print_frame_args): Assert that function blocks do not
3790 have hashed symbol tables.
3791 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3792 (fill_in_ada_prototype, debug_print_block): Likewise.
3793 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3795 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3797 * stack.c (print_frame): Use result of frame_address_in_block()
3798 instead of fi->pc when evaluating symbols.
3799 (backtrace_command_1): Ditto.
3801 2002-07-11 Andrew Cagney <cagney@redhat.com>
3803 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3806 * arm-tdep.c (arm_register_name): Make return type constant.
3808 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3810 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3812 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3813 * s390-tdep.c (s390_fp_regnum): Ditto.
3814 (s390_read_fp): Ditto.
3815 (s390_pop_frame): Ditto.
3816 (_initialize_s390_tdep): Ditto.
3817 * remote.c (get_remote_state): Ditto.
3818 * procfs.c (mappingflags): Ditto.
3819 * memattr.c (_initialize_mem): Ditto.
3820 * mcore-tdep.c (mcore_pop_frame): Ditto.
3821 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3822 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3823 * language.c (set_case_str): Ditto.
3824 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3825 * frv-tdep.c (new_variant): Ditto.
3826 (frv_stopped_data_address): Ditto.
3827 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3828 (context_alloc): Ditto.
3829 (frame_state_alloc): Ditto.
3830 (unwind_tmp_obstack_init): Ditto.
3831 (unwind_tmp_obstack_free): Ditto.
3832 (cfi_read_fp): Ditto.
3833 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3834 (cris_pop_frame): Ditto.
3835 * c-lang.c (scanning_macro_expansion): Ditto.
3836 (finished_macro_expansion): Ditto.
3837 (c_preprocess_and_parse): Ditto.
3838 * gdbarch.sh: Ditto.
3839 * gdbarch.h, gdbarch.c: Regenerate.
3840 * config/mn10200/tm-mn10200.h: Adjust indentation.
3841 * target.c: Adjust indentation.
3842 * symtab.h: Adjust indentation.
3843 * stabsread.h: Adjust indentation.
3844 * remote-es.c: Adjust indentation.
3845 * os9kread.c: Adjust indentation.
3847 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3849 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3850 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3852 2002-07-10 Grace Sainsbury <graces@redhat.com>
3854 * NEWS: Mention m68k, mcore multi-arching.
3855 * MAINTAINERS: Change status of m68k, mcore to reflect
3858 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3860 * valops.c (find_overload_match): Free oload_syms.
3862 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3864 Define HAVE_SYS_PROC_H if sys/proc.h exists
3865 * configure.in: Add check for sys/proc.h
3866 * config.in: Regenerate.
3867 * configure: Regenerate.
3869 2002-07-09 Grace Sainsbury <graces@redhat.com>
3871 * config/m68k/tm-m68k.h: Remove macros wrapped in
3872 #if !GDB_MULTI_ARCH.
3874 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3876 * config.in, configure: Regenerate.
3878 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3880 * dwarf2cfi.c: Include "gcore.h".
3881 (execute_stack_op): Fix implementation of the
3882 DW_OP_deref and DW_OP_deref_size operators by letting do their
3883 lookup in the target.
3885 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3887 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3888 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3891 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3893 Fix PR gdb/595, gdb/602
3894 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3895 Don't call value_cast, just read the vtable pointer; update comments
3898 2002-07-05 Grace Sainsbury <graces@redhat.com>
3900 * config/mcore/tm-mcore.h: Remove file.
3901 * config/mcore/mcore.mt: Remove definition of TM_FILE
3902 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3904 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3906 * i386bsd-tdep.c: Include "gdb_string.h".
3908 2002-07-04 Grace Sainsbury <graces@redhat.com>
3910 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3911 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3913 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3914 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3915 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3916 (RETVAL_REGNUM): Move macros from tm-mcore.h
3917 (mcore_reg_struct_has_addr): New function.
3918 (mcore_gdbarch_init): Added initializations for the macros removed
3921 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3923 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3924 traditonal string branding within the ELF header.
3926 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3928 * symtab.c (remove_params): New function.
3929 (make_symbol_overload_list): Use it instead of cplus_demangle.
3930 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3932 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3934 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3936 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3938 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3939 and tdep->sigtramp_end.
3940 * i386obsd-nat.c: New file.
3941 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3943 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3944 Don't call get_current_frame().
3946 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3948 * i386-nat.c (child_post_startup_inferior): New function
3949 calling i386_cleanup_dregs if
3950 I386_USE_GENERIC_WATCHPOINTS is defined.
3951 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3952 conditional to acknowledge that i386-nat.c has its
3953 own child_post_startup_inferior function.
3955 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3957 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3958 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3959 instead of MAX_REGISTER_RAW_SIZE.
3960 (i386_extract_return_value, i386_extract_struct_value_address):
3961 Convert to use regcache.
3962 (i386_gdbarch_init): Set max_register_raw_size and
3963 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3964 Set extract_return_value and extract_struct_value_address instead
3965 of their deprecated variants.
3967 Convert i386 target to generic dummy frames.
3968 * i386-tdep.c: Include "symfile.h".
3969 (i386_frameless_signal_p): Consider a function to be frameless if
3970 the pc points at the first instruction of the function.
3971 (i386_frame_chain): Handle (generic) call dummies.
3972 (i386_frame_saved_pc): Likewise.
3973 (i386_frame_init_saved_regs): Remove code dealing with call
3974 dummies on the stack.
3975 (i386_push_dummy_frame): Removed.
3976 (i386_call_dummy_words): Removed.
3977 (i386_fix_call_dummy): Removed.
3978 (i386_push_return_address): New function.
3979 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3980 parameter, and don't call get_current_frame.
3981 (i386_pop_frame): New function.
3982 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3983 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3984 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3985 call_dummy_length to 0, set call_dummy_words to NULL, set
3986 sizeof_call_dummy_words to 0, set fix_call_dummy to
3987 generic_fix_call_dummy, set pc_in_call_dummy to
3988 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3989 generic_push_dummy_frame, set push_return_address to
3990 i386_push_return_address and set frame_chain_valid to
3991 generic_file_frame_chain_valid.
3993 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3995 * gdbarch.sh (struct regcache): Add opaque declaration.
3996 (EXTRACT_RETURN_VALUE): New architecture method.
3997 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3998 * gdbarch.h, gdbarch.c: Regenerate.
3999 * arch-utils.c (legacy_extract_return_value): New function.
4000 * arch-utils.h (legacy_extract_return_value): Declare.
4001 * values.c (value_being_returned): Re-enable code handling
4002 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4003 deprecated_grub_regcache_for_registers call to block handling
4004 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4005 (EXTRACT_RETURN_VALUE): Do not define.
4007 2002-07-03 Grace Sainsbury <graces@redhat.com>
4009 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4010 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4011 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4012 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4013 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4014 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4015 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4016 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4017 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4018 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4019 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4020 argument so the function fits the prototype in the architecture
4022 (mcore_pop_frame): Remove argument so the function fits the
4023 prototype. Use get_current_frame instead of the argument.
4024 (mcore_push_arguments): Change type of struct_return so the
4025 function can be used in the architecture vector.
4026 (mcore_store_struct_return): Add.
4027 (mcore_frame_init_saved_regs): Add.
4028 (mcore_gdbarch_init): Add function calls to replace the macros
4029 removed from tm-mcore.h
4031 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4033 * infcmd.c (print_return_value): Remove compatibility code calling
4034 deprecated_grub_regcache_for_registers.
4036 * values.c: Include "regcache.h".
4037 (value_being_returned): Update. Use
4038 deprecated_grub_regcache_for_registers to extract the register
4040 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4041 ``struct regcache''.
4042 * Makefile.in (values.o): Add dependency on $(regcache_h).
4044 * inferior.h (run_stack_dummy): Change type of second parameter to
4045 a ``struct regcache''.
4046 * valops.c (hand_function_call): Change type of retbuf to ``struct
4047 regcache''. Allocate using regcache_xmalloc, clean using
4048 make_cleanup_regcache_xfree.
4049 * infcmd.c (run_stack_dummy): Update. Use
4050 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4052 * regcache.c (do_regcache_xfree): New function.
4053 (make_cleanup_regcache_xfree): New function.
4054 * regcache.h (make_cleanup_regcache_xfree): Declare.
4056 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4058 * event-top.c (command_line_handler): Don't read past
4059 beginning of buffer.
4061 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4063 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4065 (varobj_create): Store frame_id for root.
4066 (varobj_gen_name): Use xasprintf.
4067 (varobj_update): Save and restore frame using get_frame_id() and
4069 (create_child): Use xasprintf.
4070 (new_root_variable): Initialize frame_id.
4071 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4072 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4073 to prevent memory leak.
4075 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4077 * valops.c (hand_function_call): Move declaration of retbuf to
4078 start of function, allocate using malloc, add a cleanup but before
4079 the inf_status cleanup, cleanup the buffer. Rename local variable
4080 old_chain to inf_status_cleanup.
4082 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4084 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4086 * cli/cli-decode.c (cmd_func_p): New function.
4087 (cmd_func): New function.
4089 * command.h: Add cmd_func() and cmd_func_p().
4091 2002-07-03 Grace Sainsbury <graces@redhat.com>
4093 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4094 (REGISTER_SIZE): Remove.
4095 (MAX_REGISTER_RAW_SIZE): Remove.
4096 (REGISTER_VIRTUAL_TYPE): Remove.
4097 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4098 (REGISTER_NAME): Remove.
4099 (USE_GENERIC_DUMMY_FRAMES): Remove.
4100 (CALL_DUMMY): Remove.
4101 (CALL_DUMMY_START_OFFSET): Remove.
4102 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4103 (CALL_DUMMY_LOCATION): Remove.
4104 (FIX_CALL_DUMMY): Remove.
4105 (CALL_DUMMY_ADDRESS): Remove.
4106 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4107 (SAVE_DUMMY_FRAME_TOS): Remove.
4108 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4109 (mcore_register_virtual_type): New function.
4110 (mcore_register_byte): New function.
4111 (mcore_register_size): New function.
4112 (mcore_register_name): New function.
4113 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4114 macros removed from tm-mcore.h.
4115 (mcore_dump_tdep): Add.
4116 (_initialize_mcore_tdep): Add gdbarch_register call.
4118 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4120 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4121 frameless_look_for_prologue, such that we actually call this
4124 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4126 * frame.h (frame_address_in_block): New function.
4128 * blockframe.c (frame_address_in_block): New function extracted
4129 from get_frame_block().
4130 (get_frame_block): Use frame_address_in_block().
4131 (block_innermost_frame): Use frame_address_in_block() to match
4132 the frame pc address against the block boundaries rather than
4133 the frame pc directly. This prevents a failure when a frame pc
4134 is actually a return-address pointing immediately after the end
4137 2002-07-02 Grace Sainsbury <graces@redhat.com>
4139 * MAINTAINERS: Add self under write after approval.
4141 2002-07-02 Grace Sainsbury <graces@redhat.com>
4143 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4144 used in architecture vector. The default is
4145 m68k_local_breakpoint_from_pc.
4146 (m68k_local_breakpoint_from_pc): Add.
4147 (enum): Add register numbers from tm-m68k.h.
4148 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4150 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4151 GDB_MULTI_ARCH_PARTIAL.
4152 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4153 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4155 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4156 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4157 to enum in m68k-tdep.c
4159 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4161 * solib-osf.c (open_map): Compute the list of shared libraries
4162 loaded by the inferior, rather than the list of libraries loaded
4163 by GDB itself. Otherwise, GDB ends up reading the symbols from
4164 the wrong shared libraries...
4166 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4168 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4169 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4171 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4173 (FRAMELESS_SIGNAL): Remove function.
4174 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4175 i386_linux_saved_pc_after_call): Removed.
4176 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4177 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4178 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4180 * i386-tdep.c (i386_frameless_signal_p): New function.
4181 (i386_frame_chain): Deal with frameless signals.
4182 (i386_sigtramp_saved_sp): New function.
4183 (i386_frame_saved_pc): Deal with frameless signals.
4184 (i386_saved_pc_after_call): Make sure the correct value is
4185 returned just after entry into a sigtramp.
4186 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4187 i386fbsd4_sc_sp_offset): New variables.
4188 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4189 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4190 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4191 similiar to what we already did for sc_pc_offset.
4192 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4195 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4197 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4199 * config/i386/tm-x86-64linux.h: New.
4200 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4202 * config/i386/nm-x86-64.h: Rename to ...
4203 * config/i386/nm-x86-64linux.h: ... this one.
4204 * config/i386/x86-64linux.mh: Reflect the above change.
4206 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4208 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4209 with sigcontext_addr. Add sc_sp_offset.
4210 (i386bsd_sigtramp_saved_pc): Remove prototype.
4211 (i386bsd_sicontext_addr): Add prototype.
4212 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4213 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4214 (i386_svr4_sigtramp_saved_pc): Removed.
4215 (i386_svr4_sigcontext_addr): New function.
4216 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4217 Initialize tdep->sigcontext_addr instead. Initialize
4218 tdep->sc_pc_offset and tdep->sc_sp_offset.
4219 (i386_gdbarch_init): Likewise.
4220 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4222 (i386bsd_sigtramp_saved_pc): Remove function.
4223 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4224 Initialize tdep->sigcontext_addr instead. Initialize
4226 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4227 of tdep->sigtramp_saved_pc.
4228 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4229 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4232 * i386-tdep.c (i386_frameless_function_invocation,
4233 i386_frame_num_args, i386_frame_init_saved_regs,
4234 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4235 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4236 i386_extract_return_value, i386_store_return_value,
4237 i386_extract_struct_value_address, i386_register_virtual_type,
4238 i386_register_convertible, i386_register_convert_to_virtual,
4239 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4240 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4243 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4245 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4247 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4248 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4249 this macro. Include "value.h".
4251 2002-06-30 Aidan Skinner <aidan@velvet.net>
4253 * ada-exp.tab.c: remove as it's a generated file
4254 * ada-lex.c: remove as it's a generated file
4256 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4258 * config/i386/tm-i386.h (struct frame_info, struct
4259 frame_saved_regs, struct value, struct type): Remove forward
4262 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4263 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4264 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4265 (FILL_FPXREGSET): Define.
4267 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4269 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4270 i[3456]86-*-netbsd* case.
4271 * config/i386/tm-obsd.h: Removed.
4272 * config/i386/obsd.mt: Removed.
4273 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4275 (MH_CFLAGS): Add -DYYDEBUG=0.
4277 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4278 i386nbsd_sc_pc_offset on OpenBSD too.
4280 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4281 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4282 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4284 * i386bsd-tdep.c: Include "arch-utils.h".
4285 (i386bsd_aout_in_solib_call_trampoline): New function.
4286 (i386bsd_init_abi): Set in_solib_call_trampoline to
4287 i386bsd_aout_in_solib_call_trampoline.
4288 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4289 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4291 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4293 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4294 (struct obstack, struct bcache): Add opaque declarations.
4295 * Makefile.in (macrotab_h): Update
4297 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4299 * blockframe.c (generic_find_dummy_frame): Change return type to
4300 ``struct regcache''.
4301 (struct dummy_frame): Replace field ``registers'' with regcache, a
4302 struct regcache object.
4303 (generic_find_dummy_frame): Update.
4304 (generic_push_dummy_frame): Update. Use regcache_xfree,
4305 regcache_xmalloc and regcache_cpy.
4306 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4308 (deprecated_generic_find_dummy_frame): Update.
4309 (generic_read_register_dummy): Update. Use
4310 regcache_read_as_address.
4311 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4312 (generic_get_saved_register): Update. Use regcache_read.
4314 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4316 * Makefile.in (objfiles_h): Add $(bcache_h).
4317 * objfiles.h: Include "bcache.h".
4319 * Makefile.in (symtab_h): Remove $(bcache_h).
4320 * symtab.h: Do not include "bcache.h".
4322 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4324 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4325 generic_func_frame_chain_valid.
4327 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4329 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4330 * config/i386/tm-fbsd.h: Likewise.
4332 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4334 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4335 generic_unwind_get_saved_register.
4337 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4339 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4340 * regcache.c (supply_register): Add missing argument to
4341 register_buffer call.
4343 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4345 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4346 Solaris /bin/grep does not not like it. From Peter Schauer.
4348 2002-06-26 Tom Tromey <tromey@redhat.com>
4350 * command.h (add_setshow_cmd): Declare.
4351 (add_setshow_cmd_full): Declare.
4352 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4353 returns void. Use add_setshow_cmd_full.
4354 (add_setshow_cmd_full): New function.
4355 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4356 (add_setshow_boolean_cmd): Likewise.
4358 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4360 * config/vax/tm-vax.h: Protect from multiple inclusion.
4361 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4362 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4363 * config/vax/tm-vaxbsd.h: ...here. New file.
4364 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4366 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4368 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4369 (BELIEVE_PCC_PROMOTION): Remove.
4370 (AP_REGNUM): Move to...
4371 * config/vax/nm-vax.h: ...here.
4372 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4373 (vax_breakpoint_from_pc): New function.
4374 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4375 and gdbarch_believe_pcc_promotion.
4377 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4379 * Makefile.in (vax_tdep_h): Define.
4380 (vax-tdep.o): Use $(vax_tdep_h).
4381 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4382 (vax_dump_tdep): New function.
4383 (_initialize_vax_tdep): Register vax_dump_tdep.
4384 * vax-tdep.h: Include osabi.h.
4385 (struct gdbarch_tdep): New.
4387 2002-06-26 Andrew Cagney <cagney@redhat.com>
4389 * frame.h (deprecated_generic_find_dummy_frame): Rename
4390 generic_find_dummy_frame.
4391 * blockframe.c (generic_find_dummy_frame): Make static.
4392 (deprecated_generic_find_dummy_frame): New function.
4393 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4394 generic_find_dummy_frame with deprecated_find_dummy_frame.
4395 (sh64_nofp_frame_init_saved_regs): Ditto.
4396 (sh_fp_frame_init_saved_regs): Ditto.
4397 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4398 (s390_frame_chain): Ditto.
4399 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4401 2002-06-26 Grace Sainsbury <graces@redhat.com>
4403 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4404 gdbarch vector are at the top.
4406 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4407 (FRAME_ARGS_ADDRESS): Remove.
4408 (FRAME_LOCALS_ADDRESS): Remove.
4409 (FRAME_NUM_ARGS): Remove.
4410 (FRAME_ARGS_SKIP): Remove.
4411 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4412 (m68k_gdbarch_init): Add gdbarch initializations for macros
4413 undefined in tm-m68k.h
4415 2002-06-26 Grace Sainsbury <graces@redhat.com>
4417 * monitor.h: Add the function regname to monitor_ops
4418 structure. This way NUM_REGS does not have to be a constant.
4419 * monitor.c (monitor_fetch_register): Added support for regname
4420 function. The function is called if the array regnames is NULL.
4421 (monitor_store_register): Same.
4422 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4424 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4425 cpu32bug_cmds.regname to point to new function.
4426 * abug-rom.c (abug_regname): Same as above.
4427 (init_abug_cmds): Same.
4428 * dbug-rom.c (dbug_regname): Same as above.
4429 (init_dbug_cmds): Same.
4430 * remote-est.c (est_regname): Same.
4431 (init_est_cmds): Same.
4432 * rom68k-rom.c (rom68k_regname): Same.
4433 (init_rom68k_cmds): Same.
4435 2002-06-25 Tom Tromey <tromey@redhat.com>
4437 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4439 2002-06-25 Andrew Cagney <cagney@redhat.com>
4441 * infrun.c (stop_registers): Change variable's type to ``struct
4443 (xmalloc_inferior_status): Delete function.
4444 (free_inferior_status): Delete function.
4445 (normal_stop): Use regcache_cpy.
4446 (struct inferior_status): Change type of fields ``stop_registers''
4447 and ``registers'' to ``struct regcache''.
4448 (write_inferior_status_register): Use regcache_write.
4449 (save_inferior_status): Instead of calling
4450 xmalloc_inferior_status, allocate the inf_status buffer directly.
4451 Use regcache_dup_no_passthrough and regcache_dup to save the
4453 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4454 Replace the stop_registers regcache instead of overriding it. Use
4455 regcache_xfree. Instead of calling free_inferior_status, xfree
4456 the buffer directly.
4457 (discard_inferior_status): Use regcache_xfree. Instead of calling
4458 free_inferior_status, xfree the buffer directly.
4459 (build_infrun): Use regcache_xmalloc.
4460 (_initialize_infrun): Delete redundant call to build_infrun.
4462 * Makefile.in (infcmd.o): Add $(regcache_h).
4464 * infcmd.c: Include "regcache.h".
4465 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4466 obtain the address of `stop_registers' register buffer.
4467 (print_return_value): Ditto.
4469 * inferior.h (struct regcache): Add opaque declaration.
4470 (stop_registers): Change variable's declared type to ``struct
4473 2002-06-24 Tom Tromey <tromey@redhat.com>
4475 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4476 * target.c (initialize_targets): Fixed typo in
4477 trust-readonly-sections `show' documentation.
4479 * main.c: Marked all strings with _().
4481 2002-06-24 Don Howard <dhoward@redhat.com>
4483 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4484 that means max CORE_ADDR+1.
4485 (lookup_mem_region): Ditto.
4486 (mem_info_command): Ditto.
4488 2002-06-24 Grace Sainsbury <graces@redhat.com>
4490 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4491 (REGISTER_BYTES_OK): Remove.
4492 (REGISTER_BYTES): Remove.
4493 (STORE_STRUCT_RETURN): Remove.
4494 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4495 (STORE_RETURN_VALUE): Remove.
4496 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4497 (FRAME_CHAIN): Remove.
4498 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4499 (FRAME_SAVED_PC): Remove.
4500 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4501 (m68k_store_struct_return): Add.
4502 (m68k_deprecated_extract_return_value): Add.
4503 (m68k_deprecated_extract_struct_value_address): Add.
4504 (m68k_store_return_value): Add.
4505 (m68k_frame_chain): Add.
4506 (m68k_frameless_function_invocation): Add.
4507 (m68k_frame_saved_pc): Add.
4508 (m68k_gdbarch_init): added set_gdbarch calls for new
4509 functions and deleted macros.
4511 2002-06-23 Tom Tromey <tromey@redhat.com>
4513 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4514 (ALLDEPFILES): Likewise.
4515 (udiheaders): Removed.
4516 (udip2soc.o): Likewise.
4517 (udi2go32.o): Likewise.
4519 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4521 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4523 * infrun.c (_initialize_infrun): Delete unnecessary call to
4526 * regcache.h: Update comments describing the regcache_cpy family
4528 (regcache_save, regcache_restore): Delete declaration.
4529 (regcache_save_no_passthrough): Delete declaration.
4530 (regcache_restore_no_passthrough): Delete declaration.
4531 * regcache.c (regcache_save): Delete function.
4532 (regcache_save_no_passthrough): Delete function.
4533 (regcache_restore): Delete function.
4534 (regcache_restore_no_passthrough): Delete function.
4536 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4538 * config/m68k/tm-m68k.h: Fix typo.
4539 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4540 (m68k_frame_init_saved_regs): Declare.
4542 2002-06-21 Jim Blandy <jimb@redhat.com>
4544 Remove some vestiges of Harris 88k support.
4545 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4546 register numbering quirk.
4547 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4548 odd symbols occurring in Harris 88k ELF targets.
4550 2002-06-21 Tom Tromey <tromey@redhat.com>
4552 * gdb_locale.h: New file.
4553 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4554 (defs_h): Added gdb_locale.h.
4555 * configure, config.in: Rebuilt.
4556 * configure.in (PACKAGE): Define.
4557 * defs.h: Include gdb_locale.h.
4558 * main.c (captured_main): Call setlocale, bindtextdomain,
4561 2002-06-21 Dave Brolley <brolley@redhat.com>
4563 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4564 * config/frv/frv.mt: New file.
4565 * config/frv/tm-frv.h: New file.
4566 * configure.tgt: Support frv-*-*.
4567 * Makefile.in (frv-tdep.o): New target.
4568 * frv-tdep.c: New file.
4569 * NEWS: Mention frv.
4571 2002-06-21 Dave Brolley <brolley@redhat.com>
4573 * MAINTAINERS: Add self to "Write After Approval" list.
4575 2002-06-21 Grace Sainsbury <graces@redhat.com>
4577 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4578 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4579 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4580 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4581 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4583 * m68k-tdep.c: Include arch-utils.h
4584 (m68k_register_raw_size): Add.
4585 (m68k_register_virtual_size): Add.
4586 (m68k_register_virtual_type): Add.
4587 (m68k_register_name): Add.
4588 (m68k_stack_align): Add.
4589 (m68k_register_byte): Add.
4590 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4593 2002-06-21 Grace Sainsbury <graces@redhat.com>
4595 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4596 m68k_find_saved_regs.
4597 (m68k_pop_frame): Removed saved_regs structure, and replaced
4598 references to it with frame->saved_regs.
4599 (m68k_gdbarch_init): Added function calls to initialize the
4601 (m68k_fix_call_dummy): Add.
4602 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4603 (CALL_DUMMY): Remove.
4604 (CALL_DUMMY_LENGTH): Remove.
4605 (CALL_DUMMY_START_OFFSET): Remove.
4606 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4607 (FIX_CALL_DUMMY): Remove.
4608 (PUSH_DUMMY_FRAME): Remove.
4609 (POP_FRAME): Remove.
4611 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4613 * parse.c (parse_fprintf): New function used to avoid calls to
4614 fprintf in bison parser generated debug code.
4615 * parser-defs.h: Declaration of new parse_fprintf function.
4616 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4617 Set YYDEBUG to 1 by default.
4618 Set YYFPRINTF as parse_fprintf.
4620 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4622 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4624 (pointer_encoding, enum ptr_encoding): New.
4625 (execute_cfa_program): Take care about pointer encoding.
4626 (dwarf2_build_frame_info): Only call parse_frame_info for
4627 .debug_frame and .eh_frame.
4628 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4629 fixed augmentation handling, added relative addressing,
4630 ignore duplicate FDEs. Added comments.
4631 * dwarf2cfi.c: Reindented.
4633 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4635 * event-top.c (command_handler): Don't use space_at_cmd_start
4636 unless there is sbrk() on the host. Assign time and space data
4637 to union fields of the appropriate length.
4639 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4641 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4642 x86_64_register_name. Return type changed to 'const char *'.
4643 (x86_64_register_name2nr): Rename to x86_64_register_number.
4644 (x86_64_gdbarch_init): Update to reflect the change.
4645 * x86-64-tdep.h: Ditto.
4646 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4647 (supply_fpregset): Ditto.
4649 2002-06-19 Andrew Cagney <cagney@redhat.com>
4651 * regcache.h: Update copyright.
4652 (struct regcache, struct gdbarch): Add opaque declarations.
4653 (current_regcache): Declare global variable.
4654 (regcache_read, regcache_write): Add gdbarch parameter.
4655 (regcache_save, regcache_save_no_passthrough)
4656 (regcache_restore, regcache_restore_no_passthrough)
4657 (regcache_dup, regcache_dup_no_passthrough)
4658 (regcache_cpy, regcache_cpy_no_passthrough)
4659 (deprecated_grub_regcache_for_registers)
4660 (deprecated_grub_regcache_for_register_valid)
4661 (regcache_valid_p): Add function declarations.
4663 * regcache.c: Update copyright.
4664 (regcache_descr_handle): New global variable.
4665 (struct regcache_descr): Define.
4666 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4667 (regcache_descr, xfree_regcache_descr): New functions.
4668 (struct regcache): Define.
4669 (regcache_xmalloc, regcache_xfree): New functions.
4670 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4671 (regcache_dup, regcache_dup_no_passthrough): New functions.
4672 (regcache_valid_p, regcache_read_as_address): New functions.
4673 (deprecated_grub_regcache_for_registers): New function.
4674 (deprecated_grub_regcache_for_register_valid): New function.
4675 (current_regcache): New global variable.
4676 (register_buffer): Add regcache parameter. Update calls.
4677 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4678 (read_register_gen, write_register_gen): Update register_buffer
4679 call. Test for legacy_p instead of gdbarch_register_read_p or
4680 gdbarch_register_write_p.
4681 (regcache_collect): Update register_buffer call.
4682 (build_regcache): Rewrite. Use deprecated grub functions.
4683 (regcache_save, regcache_save_no_passthrough): New functions.
4684 (regcache_restore, regcache_restore_no_passthrough): New
4686 (_initialize_regcache): Create the regcache_data_handle. Swap
4687 current_regcache global variable.
4689 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4690 parameter to regcache_read and regcache_write calls.
4691 (sh4_register_read): Ditto.
4692 (sh64_pseudo_register_read): Ditto.
4693 (sh64_register_read): Ditto.
4694 (sh_pseudo_register_write): Ditto.
4695 (sh4_register_write): Ditto.
4696 (sh64_pseudo_register_write): Ditto.
4697 (sh64_register_write): Ditto.
4699 * defs.h (XCALLOC): Define.
4701 2002-06-19 Grace Sainsbury <graces@redhat.com>
4703 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4704 * m68k-tdep.c (m68k_gdbarch_init): Added.
4705 (m68k_dump_tdep): Added.
4707 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4709 * ada-lang.c (fill_in_ada_prototype): Update comment.
4711 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4713 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4715 (mips_abi_string, mips_abi_strings): New.
4716 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4717 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4718 tdep->mips_abi_string. Honor mips_abi_string. Default to
4719 O32 if no ABI is found.
4720 (mips_dump_tdep): Use mips_abi_strings.
4721 (mips_abi_update): New function.
4722 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4723 ``set mips abi'' and ``show mips abi''. Check the size of
4726 2002-06-19 Andrew Cagney <cagney@redhat.com>
4728 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4731 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4733 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4734 current frame using only the first stack size adjustment. All
4735 subsequent size adjustments are not considered to be part of
4736 the "static" part of the current frame.
4737 Compute the address of the saved registers relative to the
4738 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4739 in use in this frame.
4741 2002-06-18 Don Howard <dhoward@redhat.com>
4743 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4744 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4745 suggesting this solution.
4747 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4749 * config/romp/xm-rtbsd.h: Delete file.
4750 * config/romp/rtbsd.mh: Delete file.
4752 2002-06-18 Keith Seitz <keiths@redhat.com>
4754 * breakpoint.c (condition_command): Post breakpoint_modify
4755 when a condition is added to an existing breakpoint.
4756 (commands_command): Likewise for commands.
4757 (set_ignore_count): Likewise for ignore counts.
4758 If no tty, do not simply return, still need to send event
4760 (ignore_command): Only print a newline if the command came
4762 Don't call breakpoints_changed, since this is now properly
4763 handled by set_ignore_count.
4765 2002-06-18 Andrew Cagney <cagney@redhat.com>
4767 * MAINTAINERS: Note that cris-elf target can be compiled with
4769 * cris-tdep.c (cris_register_name): Make return type constant.
4770 (cris_breakpoint_from_pc): Ditto.
4772 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4774 * frame.h (struct frame_info): Change type of context to
4777 2002-06-17 Andrew Cagney <cagney@redhat.com>
4779 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4781 * gdbarch.h, gdbarch.c: Regenerate.
4782 * config/mips/tm-mips.h (mips_register_name): Update.
4783 * i386-tdep.h (i386_register_name): Update.
4784 * mips-tdep.c (mips_register_name): Update
4785 * alpha-tdep.c (alpha_register_name): Update.
4786 * arch-utils.c (legacy_register_name): Update.
4787 * arch-utils.h (legacy_register_name): Update.
4788 * avr-tdep.c (avr_register_name): Update.
4789 * ia64-tdep.c (ia64_register_name): Update.
4790 * i386-tdep.c (i386_register_name): Update.
4791 * sparc-tdep.c (sparc32_register_name): Update.
4792 (sparc64_register_name): Update.
4793 (sparclite_register_name): Update.
4794 (sparclet_register_name): Update.
4795 * sh-tdep.c (sh_generic_register_name): Update.
4796 (sh_sh_register_name): Update.
4797 (sh_sh3_register_name): Update.
4798 (sh_sh3e_register_name): Update.
4799 (sh_sh_dsp_register_name): Update.
4800 (sh_sh3_dsp_register_name): Update.
4801 (sh_sh4_register_name): Update.
4802 (sh_sh64_register_name): Update.
4803 * s390-tdep.c (s390_register_name): Update.
4804 * rs6000-tdep.c (rs6000_register_name): Update.
4805 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4806 (ns32k_register_name_32382): Update.
4807 * d10v-tdep.c (d10v_ts2_register_name): Update.
4808 (d10v_ts3_register_name): Update.
4809 * xstormy16-tdep.c (xstormy16_register_name): Update.
4810 * vax-tdep.c (vax_register_name): Update.
4811 * v850-tdep.c (v850_register_name): Update.
4812 * m68hc11-tdep.c (m68hc11_register_name): Update.
4813 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4814 (am33_register_name): Update.
4816 2002-06-17 Grace Sainsbury <graces@redhat.com>
4818 * m68k-tdep.c: Reindented.
4820 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4822 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4823 list of predefined types.
4825 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4827 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4828 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4829 REGISTER_CONVERT_TO_RAW): Remove defines.
4830 (i386_register_virtual_type, i386_register_convertible,
4831 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4833 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4834 macros mentioned above.
4836 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4837 (i386lynx_saved_pc_after_call): Remove prototype.
4838 * i386ly-tdep.c: Include "i386-tdep.h".
4839 (i386lynx_saved_pc_after_call): Make static. Use
4840 read_memory_nobpt instead of read_memory. Use
4841 read_memory_unsigned_integer instead of read_memory_integer.
4842 (i386lynx_init_abi): New function.
4843 (i386lynx_coff_osabi_sniffer): New function.
4844 (_initialize_i386bsd_tdep): New function.
4846 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4847 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4848 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4849 (i386_fix_call_dummy): Remove prototype.
4850 * i386-tdep.c (i386_call_dummy_words): New variable.
4851 (i386_gdbarch_init): Adjust for removal of the
4852 macros mentioned above.
4854 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4856 * command.h (add_setshow_auto_boolean_cmd): Replace
4857 add_set_auto_boolean_cmd.
4858 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4859 add_set_auto_boolean_cmd.
4860 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4861 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4862 mask-address'' command.
4863 (show_mask_address): Add cmd parameter.
4864 * remote.c (add_packet_config_cmd): Update. Change type of
4865 set_func and show_func to cmd_sfunc_ftype.
4866 (_initialize_remote): Update `set remote Z-packet'
4867 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4868 (show_remote_protocol_e_packet_cmd): Ditto.
4869 (show_remote_protocol_E_packet_cmd): Ditto.
4870 (show_remote_protocol_P_packet_cmd): Ditto.
4871 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4872 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4873 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4874 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4875 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4876 (show_remote_protocol_Z_packet_cmd): Ditto.
4877 (show_remote_protocol_binary_download_cmd): Ditto.
4878 (show_remote_cmd): Pass NULL to all of above.
4880 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4882 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4883 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4884 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4885 POP_FRAME): Remove defines.
4886 (i386_push_arguments, i386_store_struct_return,
4887 i386_extract_return_value, i386_store_return_value,
4888 i386_extract_struct_value_address, i386_push_dummy_frame,
4889 i386_pop_frame): Renove prototypes.
4890 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4891 macros mentioned above.
4893 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4895 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4896 add_set_boolean_cmd.
4897 (add_setshow_cmd): New function.
4898 * command.h (add_setshow_boolean_cmd): Replace
4899 add_set_boolean_cmd.
4900 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4901 and ``set rdiromatzero''.
4902 * maint.c (_initialize_maint_cmds): Update commented out code.
4903 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4904 * target.c (initialize_targets): Update `set
4905 trust-readonly-sections'.
4906 * remote.c (_initialize_remote): Update `set remotebreak'.
4908 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4910 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4911 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4912 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4913 fit into multi-arch framework.
4914 (i386_breakpoint_from_pc): New function.
4915 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4918 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4919 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4920 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4921 (i386_frameless_function_invocation, i386_frame_num_args,
4922 i386_frame_init_saved_regs): Remove prototypes.
4923 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4924 macros mentioned above.
4926 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4928 * cli/cli-decode.c (set_cmd_cfunc): Update.
4929 (set_cmd_sfunc): Update.
4930 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4931 (set_cmd_sfunc, set_cmd_cfunc): Update.
4932 * cli/cli-decode.h: Update.
4934 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4936 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4937 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4939 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4941 * defs.h (auto_boolean): Declare enum.
4942 * command.h (cmd_auto_boolean): Delete enum.
4943 * mips-tdep.c (mask_address_var): Update.
4944 (mips_mask_address_p): Update.
4945 (show_mask_address): Update.
4946 * remote.c (struct packet_config): Update.
4947 (update_packet_config): Update.
4948 (show_packet_config_cmd): Update.
4949 (packet_ok): Update.
4950 (add_packet_config_cmd): Update.
4951 (_initialize_remote):
4952 * command.h: Update.
4953 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4954 (do_setshow_command): Update.
4955 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4956 * cli/cli-decode.h: Update.
4958 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4960 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4961 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4962 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4963 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4964 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4965 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4967 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4968 list of DJGPP COFF targets.
4970 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4971 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4972 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4973 (FP0_REGNUM): Remove define.
4974 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4975 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4976 (i386_register_virtual_size): Remove protoype.
4977 * i386-tdep.c (i386_register_virtual_size): Removed.
4978 (i386_extract_return_value, i386_store_return_value): Use
4979 FP0_REGNUM instead of NUM_FREGS to determine whether the
4980 floating-point registers are available.
4981 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4982 Adjust for removal of macros mentioned above.
4984 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4986 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4988 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4990 (supply_gregset, fill_gregset): Remove use of register keyword and
4991 remove declaration for regmap. Use I386_NUM_GREGS instead of
4992 NUM_REGS and NUM_FREGS.
4993 (FPREGSET_FSAVE_OFFSET): Remove.
4994 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4995 NUM_FREGS to determine whether the floating-point registers are
4998 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4999 gnu_store_registers): Replace usage of NUM_GREGS with
5002 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5003 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5004 usage of NUM_GREGS with I386_NUM_GREGS.
5006 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5008 * i386bsd-nat.c: Include "i386-tdep.h".
5009 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5012 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5013 and associated comment. They no longer make any sense, since we
5014 don't use this file anymore on Linux.
5016 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5017 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5018 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5019 elements in these arrays.
5020 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5023 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5025 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5026 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5028 2002-06-14 Andrew Cagney <cagney@redhat.com>
5030 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5031 EXTRACT_RETURN_VALUE.
5032 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5033 EXTRACT_STRUCT_VALUE_ADDRESS.
5034 * gdbarch.h, gdbarch.c: Regenerate.
5036 * values.c (value_being_returned): Handle
5037 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5038 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5040 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5041 * arm-tdep.c (arm_gdbarch_init): Update.
5042 * avr-tdep.c (avr_gdbarch_init): Update.
5043 * cris-tdep.c (cris_gdbarch_init): Update.
5044 * d10v-tdep.c (d10v_gdbarch_init): Update.
5045 * ia64-tdep.c (ia64_gdbarch_init): Update.
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5048 * s390-tdep.c (s390_gdbarch_init): Update.
5049 * sh-tdep.c (sh_gdbarch_init): Update.
5050 * s390-tdep.c (s390_gdbarch_init): Update.
5051 * sparc-tdep.c (sparc_gdbarch_init): Update.
5052 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5053 * v850-tdep.c (v850_gdbarch_init): Update.
5054 * vax-tdep.c (vax_gdbarch_init): Update.
5055 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5058 * config/arc/tm-arc.h: Update.
5059 * config/d30v/tm-d30v.h: Update.
5060 * config/fr30/tm-fr30.h: Update.
5061 * config/h8300/tm-h8300.h: Update.
5062 * config/h8500/tm-h8500.h: Update.
5063 * config/i386/tm-i386.h: Update.
5064 * config/i386/tm-ptx.h: Update.
5065 * config/i386/tm-symmetry.h: Update.
5066 * config/i960/tm-i960.h: Update.
5067 * config/m32r/tm-m32r.h: Update.
5068 * config/m68k/tm-delta68.h: Update.
5069 * config/m68k/tm-linux.h: Update.
5070 * config/m68k/tm-m68k.h: Update.
5071 * config/m88k/tm-m88k.h: Update.
5072 * config/mcore/tm-mcore.h: Update.
5073 * config/mips/tm-mips.h: Update.
5074 * config/mn10200/tm-mn10200.h: Update.
5075 * config/pa/tm-hppa.h: Update.
5076 * config/pa/tm-hppa64.h: Update.
5077 * config/sparc/tm-sp64.h: Update.
5078 * config/sparc/tm-sparc.h: Update.
5079 * config/sparc/tm-sparclet.h: Update.
5080 * config/z8k/tm-z8k.h: Update.
5082 2002-06-14 Andrew Cagney <cagney@redhat.com>
5084 * Makefile.in (i386_linux_tdep_h): Define.
5085 (i386_tdep_h, i387_tdep_h): Define.
5086 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5087 $(i386_tdep_h) and $(i387_tdep_h).
5088 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5090 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5092 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5093 Already covered by the default.
5095 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5096 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5097 (i386_gdbarch_init): Initialize long_double_format and long_double
5100 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5101 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5103 * config/i386/i386sol2.mh: ... here.
5104 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5105 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5106 (SIGCONTEXT_PC_OFFSET): Remove define.
5107 (IN_SIGTRAMP): Remove define.
5108 * i386-sol2-tdep.c: New file.
5110 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5111 * config/i386/tm-i386nw.h: Removed.
5113 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5114 USE_STRUCT_CONVENTION): Remove defines.
5115 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5116 (get_longjmp_target): Remove prototype.
5117 (IN_SIGTRAMP): Remove define.
5118 (i386bsd_in_sigtramp): Remove prototype.
5119 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5120 function. Update comment accordingly
5121 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5122 (FRAME_SAVED_PC): Remove define.
5123 (i386bsd_frame_saved_pc): Remove prototype.
5124 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5125 GET_LONGJMP_TARGET): Remove defines.
5126 (get_longjmp_target): Remove prototype.
5127 (IN_SIGTRAMP): Remove define.
5128 (i386bsd_in_sigtramp): Remove prototype.
5129 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5130 function. Update comment accordingly
5131 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5132 (FRAME_SAVED_PC): Remove define.
5133 (i386bsd_frame_saved_pc): Remove prototype.
5134 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5136 (USE_STRUCT_CONVENTION): Remove prototype.
5137 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5139 (_initialize_i386bsd_nat): Revise logic to determine some
5140 constants at compile time when compiling a native GDB. Warn if
5141 things don't match up with what we expect.
5142 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5144 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5145 to use date stored in `struct gdbarch_tdep'.
5146 (i386bsd_sigcontext_offset): Remove varaible.
5147 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5148 stored in `struct gdbarch_tdep'.
5149 (i386bsd_frame_saved_pc): Make static.
5150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5151 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5152 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5153 i386fbsd4_sc_pc_offset): New variables.
5154 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5155 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5157 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5159 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5160 Modify the value of i386fbsd_sigtramp_start and
5161 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5162 i386fbsd_sigtramp_end.
5163 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5166 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5167 define to i386-linux-tdep.h.
5168 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5169 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5171 (i386_linux_register_name, i386_linux_register_byte,
5172 i386_linux_register_raw_size): Remove prototypes.
5173 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5174 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5175 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5176 TARGET_WRITE_PC): Remove defines.
5177 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5178 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5179 i386_linux_write_pc): Remove prototypes.
5180 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5181 (get_longjmp_target): Remove prototype.
5182 * i386-linux-tdep.h: New file.
5183 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5184 * i386-linux-tdep.c: Include "i386-tdep.h" and
5185 "i386-linux-tdep.h".
5186 (i386_linux_register_name, i386_linux_register_byte,
5187 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5188 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5190 (i386_linux_init_abi): New function.
5191 (_initialize_i386_linux_tdep): New function.
5193 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5194 (i386_saved_pc_after_call): Remove prototype.
5195 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5196 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5197 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5198 (i386_register_name, i386_stab_reg_to_regnum,
5199 i386_dwarf_reg_to_regnum): Remove prototypes.
5200 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5201 SIZEOF_SSE_REGS): Remove defines.
5202 (REGISTER_BYTES): Remove define.
5203 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5204 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5205 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5206 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5207 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5208 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5209 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5210 (get_longjmp_target): Remove prototype.
5211 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5212 (sigtramp_saved_pc): Remove define.
5213 (i386v4_sigtramp_saved_pc): Remove prototype.
5214 * config/i386/tm-go32.h (FRAME_CHAIN,
5215 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5216 (i386go32_frame_saved_pc): Remove prototype.
5217 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5218 (get_longjmp_target): Remove prototype.
5219 * i386-tdep.h: Include "osabi.h".
5220 (enum i386_abi): Removed.
5221 (enum struct_return): New enum.
5222 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5223 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5224 sc_pc_offset members.
5225 (i386_gdbarch_register_os_abi): Remove prototype.
5226 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5227 I386_SSE_NUM_REGS): New defines.
5228 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5229 I386_SSE_SIZEOF_REGS): New defines.
5230 (i386_register_name, i386_register_byte, i386_register_raw_size):
5232 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5233 (i386bsd_sigtramp_saved_pc): New prototype.
5234 * i386-tdep.c: Don't include "elf-bfd.h".
5235 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5236 i386_frame_chain, i386_saved_pc_after_call): Make static.
5237 (i386_frame_saved_pc): Rewrite to call architecture dependent
5238 function to deal with signal handlers. Make static.
5239 (i386go32_frame_saved_pc): Removed.
5240 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5242 (i386_get_longjmp_target): New function.
5243 (default_struct_convention, pcc_struct_convention,
5244 reg_struct_convention, valid_conventions, struct_convention): New
5246 (i386_use_struct_convention): New function.
5247 (i386v4_sigtramp_saved_pc): Renamed to
5248 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5249 (i386_pc_in_sigtramp): New function.
5250 (i386_abi_names): Removed.
5251 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5252 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5254 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5255 i386_gdbarch_register_os_abi): Removed.
5256 (struct i386_abi_handler): Removed.
5257 (i386_abi_handler_list): Removed.
5258 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5260 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5261 i386_nw_init_abi): New functions.
5262 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5263 Use set_gdbarch_xxx() calls instead of relying on macros for a
5265 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5266 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5267 Register the various architecture variants defined in this file.
5269 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5271 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5272 (struct main_type): Remove arg_types member. Update comments for
5274 (TYPE_ARG_TYPES): Remove.
5275 (TYPE_FN_FIELD_ARGS): Update.
5276 (smash_to_method_type): Update prototype.
5278 * c-typeprint.c (cp_type_print_method_args): Take method type
5279 instead of argument list. Use new argument layout. Simplify.
5280 (c_type_print_args): Use new argument layout. Simplify.
5281 (c_type_print_base): Update call to cp_type_print_method_args.
5282 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5283 argument; use die->type instead. Update call to
5284 smash_to_method_type.
5285 (read_structure_scope): Update call to dwarf2_add_member_fn.
5286 * gdbtypes.c (allocate_stub_method): Update comment.
5287 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5288 Use new argument layout.
5289 (check_stub_method): Use new argument layout. Don't count
5290 void as an argument.
5291 (print_arg_types): Update comments. Use new argument layout.
5292 (recursive_dump_type): Don't print arg_types member.
5293 * hpread.c (hpread_read_struct_type): Use new argument layout.
5294 (fixup_class_method_type): Likewise.
5295 (hpread_type_lookup): Likewise.
5296 * stabsread.c (read_type): Update calls to read_args and
5297 smash_to_method_type.
5298 (read_args): Use new argument layout. Simplify.
5299 * valops.c (typecmp): Use new argument layout. Update parameters
5300 and comments. Simplify.
5301 (hand_function_call): Use new argument layout.
5302 (search_struct_method): Update call to typecmp.
5303 (find_overload_match): Use new argument layout.
5305 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5307 * NEWS: Mention multithreaded debug support for gdbserver.
5309 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5311 * MAINTAINERS: Mention NEWS.
5313 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5315 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5316 (struct mips_objfile_private, compare_pdr_entries): New.
5317 (non_heuristic_proc_desc): Read the ".pdr" section if it
5320 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5322 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5323 (arm_debug): New static variable.
5324 (_initialize_arm_tdep): Add ``set debug arm'' command.
5326 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5328 * Makefile.in (sim_arm_h): Define.
5329 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5330 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5331 (arm_register_sim_regno): New function, map an internal REGNUM
5332 onto a simulator register number.
5333 (arm_gdbarch_init): Set register_sim_regno.
5335 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5337 * MAINTAINERS: Add self.
5339 2002-06-11 Jim Blandy <jimb@redhat.com>
5341 * source.c (source_info): Mention whether the symtab has
5342 information about preprocessor macros.
5344 Call the command `info macro', not `show macro'.
5345 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5347 (_initialize_macrocmd): Register `info_macro_command' in
5348 `infolist', not `showlist'.
5350 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5352 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5353 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5354 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5355 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5356 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5358 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5359 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5360 (_initialize_mips_tdep): Remove dead code.
5361 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5362 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5363 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5364 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5365 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5366 MIPS_LAST_FP_ARG_REGNUM): Remove.
5368 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5370 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5371 (unwind_tmp_obstack_free, parse_frame_info)
5372 (update_context, cfi_read_fp, cfi_write_fp)
5373 (cfi_frame_chain, cfi_init_extra_frame_info)
5374 (cfi_virtual_frame_pointer): Use the above function.
5375 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5377 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5379 * v850-tdep.c (v850_type_is_scalar): New function.
5380 (v850_use_struct_convention): Match current gcc implementation
5381 as close as possible.
5382 (v850_push_arguments): Fix stack_offset handling. Don't write
5383 struct_addr into register. This is done by v850_store_struct_return.
5384 (v850_extract_return_value): Care for structs.
5385 (v850_store_return_value): Ditto.
5386 (v850_store_struct_return): Actually write address.
5388 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5390 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5391 without debug information too.
5393 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5395 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5396 Make multi-arch pure.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * arm-tdep.c (arm_print_float_info): Update.
5399 * arch-utils.h (default_print_float_info): Update.
5400 * arch-utils.c (default_print_float_info): Update.
5401 * infcmd.c (float_info): Update call.
5403 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5405 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5406 the front of the initialize list.
5408 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5410 * infrun.c (struct inferior_status): Replace fields
5411 selected_frame_address and selected_level with field
5413 (save_inferior_status): Update. Use get_frame_id.
5414 (struct restore_selected_frame_args): Delete.
5415 (restore_selected_frame): Update. Use frame_find_by_id.
5416 (restore_inferior_status): Update.
5418 * breakpoint.h (struct breakpoint): Change type of
5419 watchpoint_frame to frame_id.
5420 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5421 call to get_current_frame.
5422 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5424 (watchpoint_check): Use frame_find_by_id.
5426 * frame.h (record_selected_frame): Delete declaration.
5427 * stack.c (record_selected_frame): Delete function.
5429 * frame.h (struct frame_id): Define.
5430 (get_frame_id): Declare.
5431 (frame_find_by_id): Declare.
5432 * frame.c (frame_find_by_id): New function.
5433 (get_frame_id): New function.
5435 2002-06-10 Andrey Volkov <avolkov@transas.com>
5437 * ser-e7kpc.c: Fix duplicated define and call of
5438 _initialize_ser_e7000pc
5440 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5442 * signals/signals.c (target_signal_from_host): Fix #ifdef
5444 (do_target_signal_to_host): Likewise.
5446 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5448 * mips-tdep.c (mips_find_abi_section): New function.
5449 (mips_gdbarch_init): Call it.
5451 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5453 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5454 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5455 after Andrew's 2002-06-08 gdbarch change.
5457 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5459 * i386-linux-nat.c (suppy_gregset): Don't supply
5460 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5462 (fill_gregset): Don't fetch it under the same circumstances.
5464 2002-06-09 Andrew Cagney <cagney@redhat.com>
5466 * Makefile.in (callback_h): Define.
5467 (remote_sim_h): Update path to remote-sim.h.
5468 (remote-rdp.o): Add $(callback_h).
5469 (remote-sim.o): Use $(callback_h).
5470 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5471 * remote-rdp.c: Include "gdb/callback.h".
5473 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5475 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5476 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5478 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5480 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5481 * rdi-share/serpardr.c: Ditto.
5482 * rdi-share/unixcomm.c: Ditto.
5483 * rdi-share/serdrv.c: Ditto.
5484 * rdi-share/hostchan.h: Ditto.
5485 * rdi-share/hostchan.c: Ditto.
5486 * rdi-share/host.h: Ditto.
5487 * rdi-share/devsw.c: Ditto.
5489 * objfiles.h: Change type of obj_private to void pointer.
5490 * pa64solib.c: Update copyright. Don't include "assert.h", use
5491 strcmp instead of STREQ, use LONGEST, do not use PTR
5492 * somsolib.c: Ditto.
5494 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5495 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5496 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5498 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5500 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5501 (default_get_saved_register): Delete function.
5502 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5503 generic_unwind_get_saved_register.
5504 * gdbarch.h, gdbarch.c: Re-generate.
5506 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5508 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5509 generic_func_frame_chain_valid.
5510 * gdbarch.h, gdbarch.c: Re-generate.
5511 * blockframe.c (generic_func_frame_chain_valid): Only check
5512 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5513 passing FP to PC_IN_CALL_DUMMY.
5516 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5518 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5519 (register_gdbarch_data): Initialize init_p.
5520 (gdbarch_data): Initialize data pointer using the init function.
5521 (init_gdbarch_data): Delete function.
5522 (gdbarch_update_p): Update.
5523 (initialize_non_multiarch): Update.
5524 (struct gdbarch): Add field initialized_p.
5525 * gdbarch.h, gdbarch.c: Re-generate.
5527 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5529 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5530 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5531 better do the things actually here.
5532 * x86-64-tdep.c (x86_64_register_name2nr): New.
5533 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5534 (x86_64_gdbarch_init): Respect the above change.
5535 * x86-64-tdep.h (x86_64_register_name2nr)
5536 (x86_64_register_nr2name): Add prototypes.
5537 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5539 2002-06-06 Michael Snyder <msnyder@redhat.com>
5541 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5542 Delete extra braces and re-indent.
5543 (d10v_store_return_value): Char return values
5544 must be shifted over by one byte in R0.
5545 (d10v_extract_return_value): Delete extra braces, re-indent.
5547 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5549 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5550 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5551 (d10v_integer_to_address): Rewrite.
5552 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5553 the d10v specific functions which take care of converting to the
5556 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5558 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5559 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5561 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5563 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5565 * config/tm-linux.h: Ditto.
5566 * config/alpha/tm-alphalinux.h: Ditto.
5567 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5568 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5569 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5570 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5571 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5572 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5573 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5574 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5575 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5576 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5577 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5578 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5579 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5580 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5581 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5582 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5583 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5584 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5585 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5586 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5587 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5588 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5589 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5590 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5591 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5592 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5593 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5594 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5595 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5596 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5597 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5598 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5599 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5600 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5601 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5602 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5603 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5605 2002-05-04 Aidan Skinner <aidan@velvet.net>
5607 * ada-exp.tab.c: New file
5608 * ada-exp.y: New file
5609 * ada-lang.c: New file
5610 * ada-lang.h: New file
5611 * ada-lex.c: New file
5612 * ada-lex.l: New file
5613 * ada-tasks.c: New file
5614 * ada-typeprint.c: New file
5615 * ada-valprint.c: New file
5617 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5619 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5620 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5622 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5624 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5625 insetead of ppc-linux-tdep.o.
5626 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5627 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5629 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5631 2002-05-07 Christian Groessler <chris@groessler.org>
5632 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5633 bit register contents for little endian hosts.
5635 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5637 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5640 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5642 * gdbarch.h: Regenerate.
5644 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5646 * MAINTAINERS: Add everyone to write-after-approval list.
5648 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5650 * stack.c (frame_info): Use frame_register_unwind instead of
5651 saved_regs. Mention when the SP is on the stack or in a register.
5653 * frame.h (frame_register_unwind_ftype): Define. Document.
5654 (struct frame_info): Add field register_unwind and
5655 register_unwind_cache.
5656 (frame_register_unwind): Declare.
5657 (generic_unwind_get_saved_register): Declare.
5659 * frame.c (frame_register_unwind): New function.
5660 (generic_unwind_get_saved_register): New function.
5662 * blockframe.c (generic_call_dummy_register_unwind): New function.
5663 (frame_saved_regs_register_unwind): New function.
5664 (set_unwind_by_pc): New function.
5665 (create_new_frame): New function.
5666 (get_prev_frame): New function.
5668 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5670 * a29k-share/: Delete directory.
5671 * remote-vx29k.c: Delete file.
5673 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5675 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5676 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5678 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5680 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5681 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5684 (sparcnbsd-tdep.o): New dependency lists.
5685 * NEWS: Note new UltraSPARC NetBSD native configuration.
5686 * configure.host (sparc64-*-netbsd*): New host.
5687 * configure.tgt (sparc-*-netbsdelf*)
5688 (sparc-*-netbsd*): Set gdb_target to nbsd.
5689 (sparc64-*-netbsd*): New target.
5690 * sparc64nbsd-nat.c: New file.
5691 * sparcnbsd-nat.c: New file.
5692 * sparcnbsd-tdep.c: New file.
5693 * sparcnbsd-tdep.h: New file.
5694 * config/sparc/nbsd.mt: New file.
5695 * config/sparc/nbsd64.mh: New file.
5696 * config/sparc/nbsd64.mt: New file.
5697 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5698 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5700 * config/sparc/nbsdaout.mt: Remove.
5701 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5702 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5704 * config/sparc/nbsdelf.mt: Remove.
5705 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5706 sparc-nat.c compatiblity defines.
5707 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5708 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5709 * config/sparc/tm-nbsd64.h: New file.
5710 * config/sparc/tm-nbsdaout.h: Remove.
5711 * config/sparc/xm-nbsd.h: Remove.
5713 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5715 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5716 * sparc-tdep.c: Include osabi.h.
5717 (gdbarch_tdep): Add osabi member.
5718 (_initialize_sparc_tdep): Use gdbarch_register.
5719 (sparc_gdbarch_init): Use generic OS ABI framework.
5720 (sparc_dump_tdep): New function.
5722 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5724 * corefile.c (do_captured_read_memory_integer): Return non-zero
5726 (safe_read_memory_integer): Copy result of memory read when
5727 status is non-zero. Also, add comments.
5729 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5731 * Makefile.in (ppc_tdep_h): Define.
5734 (rs6000-tdep.o): Use $(ppc_tdep_h).
5737 (ppcnbsd-tdep.o): New dependency lists.
5738 * ppc-tdep.h: Use generic OS ABI framework.
5739 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5740 (ppc_linux_init_abi): New functions.
5741 (ppc_sysv_abi_broken_use_struct_convention)
5742 (ppc_sysv_abi_use_struct_convention)
5743 (ppc_sysv_abi_push_arguments): Move to...
5744 * ppc-sysv-tdep.c: ...here.
5745 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5746 * rs6000-tdep.c (process_note_abi_tag_sections)
5747 (get_elfosabi): Remove.
5748 (rs6000_gdbarch_init): Use generic OS ABI framework.
5749 (rs6000_dump_tdep): New function.
5750 (_initialize_rs6000_tdep): Use gdbarch_register.
5751 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5752 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5753 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5754 of ppc-linux-tdep.o.
5755 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5756 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5757 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5758 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5759 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5760 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5762 2002-05-29 Jim Blandy <jimb@redhat.com>
5764 * macroscope.c (default_macro_scope): Put `void' in empty argument
5767 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5769 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5770 * arch-utils.c: Include "sim-regno.h".
5771 * gdbarch.sh: Don't include "sim-regno.h".
5772 * gdbarch.h, gdbarch.c: Regenerate.
5773 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5775 * arch-utils.h (legacy_register_sim_regno): To here.
5776 * remote-sim.c (legacy_register_sim_regno): Move function from
5778 * arch-utils.c (legacy_register_sim_regno): To here.
5780 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5782 * sim-regno.h: New file.
5783 * Makefile.in (sim_regno_h): Define.
5784 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5785 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5786 (legacy_register_sim_regno): New function.
5787 (one2one_register_sim_regno): New function.
5788 (gdbsim_fetch_register): Rewrite.
5789 (gdbsim_store_register): Only store a register when
5790 REGISTER_SIM_REGNO is valid.
5791 * d10v-tdep.c: Include "sim-regno.h".
5792 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5793 (d10v_ts3_register_sim_regno): Ditto.
5794 * gdbarch.sh: Include "sim-regno.h".
5795 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5796 * gdbarch.h, gdbarch.c: Regenerate.
5797 * arch-utils.h (default_register_sim_regno): Delete declaration.
5798 * arch-utils.c (default_register_sim_regno): Delete function.
5800 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5802 * ppcnbsd-nat.c: Rewrite.
5803 * ppcnbsd-tdep.c: New file.
5804 * ppcnbsd-tdep.h: New file.
5805 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5806 solib.o, and solib-svr4.o.
5807 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5808 nbsd-tdep.o, and corelow.o.
5810 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5812 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5813 `tr' and `sed'. Mention that `broken' targets are not expected to
5816 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5818 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5819 Let PC point right after the prologue before looking up symbols.
5821 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5823 * i386-tdep.c (i386_register_virtual_type): Return
5824 builtin_type_vec128i for SSE registers.
5826 * gdbtypes.h (builtin_type_vec128i): Declare.
5828 * gdbtypes.c (build_builtin_type_vec128i): New function.
5829 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5830 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5831 (build_gdbtypes): Initialize new builtin vector types.
5832 (_initialize_gdbtypes): Register new vector types with gdbarch.
5834 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5836 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5837 since it has been multi-arch'd.
5838 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5839 Move Alpha and VAX multi-arch news entries to same section
5840 as other multi-arch news.
5842 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5844 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5845 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5846 static. Rename some register numbers to put them in ns32k-tdep
5848 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5849 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5851 (_initialize_ns32k_tdep): Use gdbarch_register.
5852 * ns32k-tdep.h: New file.
5853 * ns32knbsd-tdep.c: New file.
5854 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5855 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5856 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5857 REGISTER_BYTES, REGISTER_BYTE): Remove.
5858 * config/ns32k/tm-ns32k.h: New file.
5859 * config/ns32k/tm-umax.h: Remove.
5861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5863 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5864 ns32k_store_struct_return, ns32k_extract_return_value,
5865 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5867 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5868 ns32k_saved_pc_after_call.
5869 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5870 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5871 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5872 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5873 ns32k_extract_struct_value_address.
5875 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5877 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5878 ns32k_fix_call_dummy): New.
5879 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5880 ns32k_call_dummy_words.
5881 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5882 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5883 CALL_DUMMY_NARGS): Remove.
5884 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5886 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5888 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5889 ns32k_frame_saved_pc, ns32k_frame_args_address,
5890 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5891 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5892 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5893 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5894 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5895 (BREAKPOINT): Remove..
5896 (FRAME_CHAIN): Define as ns32k_frame_chain.
5897 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5898 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5899 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5900 (FRAME_FIND_SAVED_REGS): Remove.
5901 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5902 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5903 (POP_FRAME): Define as ns32k_pop_frame.
5905 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5907 * ns32k-tdep.c (ns32k_register_byte_32082,
5908 ns32k_register_byte_32382, ns32k_register_raw_size,
5909 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5911 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5912 ns32k_register_byte_32382.
5913 * config/ns32k/tm-umax.h: Update copyright years.
5914 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5915 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5916 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5917 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5918 (ns32k_get_enter_addr): Fix prototype.
5920 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5922 * ns32k-tdep.c: Update copyright years.
5923 (ns32k_register_name_32082): New function.
5924 (ns32k_register_name_32382): Ditto.
5925 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5926 (REGISTER_NAME): Define as ns32k_register_name_32382.
5927 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5928 (REGISTER_NAME): Define as ns32k_register_name_32082.
5930 2002-05-24 Jim Blandy <jimb@redhat.com>
5932 * dwarf2read.c (free_line_header): Use xfree, not free.
5934 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5936 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5937 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5939 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5941 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5943 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5945 From Ross Alexander at NEC Europe:
5946 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5948 2002-05-23 Michael Snyder <msnyder@redhat.com>
5950 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5951 for input, rather than parse_and_eval_address.
5953 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5955 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5956 * Makefile.in (sim_d10v_h): Update definition.
5958 2002-05-24 Andrew Cagney <cagney@redhat.com>
5960 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5961 change `2002-05-22 Michael Snyder' below.
5962 (d10v_push_arguments): Ditto.
5963 (d10v_extract_return_value): Ditto.
5965 2002-05-23 Jim Blandy <jimb@redhat.com>
5967 * macrotab.c (check_for_redefinition): Don't complain if the new
5968 definition is the same as the previous one. Take more arguments
5969 to allow the comparison.
5970 (macro_define_object, macro_define_function): Pass more arguments
5971 to check_for_redefinition.
5973 2002-05-22 Michael Snyder <msnyder@redhat.com>
5975 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5976 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5977 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5978 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5979 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5980 Add a temp variable to save a call (and a memory read).
5981 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5982 if possible (so that PC_IN_CALL_DUMMY will work).
5984 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5986 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5988 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5990 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5992 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5993 (dwarf2_build_frame_info): Add offset to fde->initial_location
5994 so that frames of shared libraries are mapped correctly.
5995 (execute_stack_op): Change type of 'result' from ULONGEST to
5998 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6000 * config/alpha/tm-nbsd.h: Include solib.h.
6002 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6004 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6005 assumptions about the host's byte order.
6007 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6009 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6011 * alphanbsd-tdep.c: Include solib-svr4.h.
6012 * shnbsd-tdep.c: Ditto.
6014 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6016 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6017 nbsd-tdep.h to dependency list.
6018 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6019 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6020 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6021 nbsdaout.mh and nbsdelf.mh consistently.
6022 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6023 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6024 nbsdaout.mt and nbsdelf.mh consistently.
6025 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6026 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6027 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6028 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6029 a.out shared library stuff from here...
6030 * config/nm-nbsdaout.h: ...to here.
6031 * config/tm-nbsd.h: Remove.
6032 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6033 * config/arm/nbsd.mh: Remove.
6034 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6036 * config/arm/nbsdaout.mh: New file.
6037 * config/arm/nbsdelf.mh: New file.
6038 * config/arm/nm-nbsdaout.h: New file.
6039 * config/i386/nbsd.mh: Remove.
6040 * config/i386/nbsd.mt: Remove.
6041 * config/i386/nbsdaout.mh: New file.
6042 * config/i386/nbsdaout.mt: New file.
6043 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6044 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6045 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6046 i386_register_u_addr): Remove.
6047 * config/i386/nm-nbsdaout.h: New file.
6048 * config/i386/nm-nbsdelf.h: Remove.
6049 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6050 (USE_STRUCT_CONVENTION): Remove.
6051 * config/i386/tm-nbsdaout.h: New file.
6052 * config/i386/tm-nbsdelf.h: Remove.
6053 * config/m68k/nbsd.mh: Remove.
6054 * config/m68k/nbsd.mt: Remove.
6055 * config/m68k/nbsdaout.mh: New file.
6056 * config/m68k/nbsdaout.mt: New file.
6057 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6058 * config/m68k/nm-nbsdaout.h: New file.
6059 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6060 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6061 * config/ns32k/nbsd.mh: Remove.
6062 * config/ns32k/nbsd.mt: Remove.
6063 * config/ns32k/nbsdaout.mh: New file.
6064 * config/ns32k/nbsdaout.mt: New file.
6065 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6066 * config/ns32k/nm-nbsdaout.h: New file.
6067 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6068 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6069 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6070 (SVR4_SHARED_LIBS): Remove.
6071 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6072 * config/sparc/nbsd.mh: Remove.
6073 * config/sparc/nbsd.mt: Remove.
6074 * config/sparc/nbsdaout.mh: New file.
6075 * config/sparc/nbsdaout.mt: New file.
6076 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6077 * config/sparc/nbsdelf.mt: New file.
6078 * config/sparc/nm-nbsdaout.h: New file.
6079 * config/sparc/nm-nbsdelf.h: Remove.
6080 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6081 * config/sparc/tm-nbsdaout.h: New file.
6083 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6085 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6087 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6089 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6091 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6093 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6095 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6097 * NEWS: Note new MIPS NetBSD native configuration.
6098 * configure.host (mips*-*-netbsd*): New host.
6099 * configure.tgt (mips*-*-netbsd*): New target.
6100 * mipsnbsd-nat.c: New file.
6101 * mipsnbsd-tdep.c: New file.
6102 * mipsnbsd-tdep.h: New file.
6103 * config/mips/nbsd.mh: New file.
6104 * config/mips/nbsd.mt: New file.
6105 * config/mips/nm-nbsd.h: New file.
6106 * config/mips/tm-nbsd.h: New file.
6108 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6110 * Makefile.in (SFILES): Add osabi.c.
6111 (COMMON_OBS): Add osabi.o.
6112 (osabi.o): New dependency list.
6113 * osabi.c: New file.
6114 * osabi.h: New file.
6115 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6117 * Makefile.in (alpha_tdep_h): Define and use instead of
6119 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6120 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6122 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6123 * alpha-tdep.h: Include osabi.h.
6124 (alpha_abi): Remove.
6125 (gdbarch_tdep): Use generic OS ABI framework.
6126 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6127 gdbarch_register_osabi.
6128 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6129 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6130 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6132 * Makefile.in (sh_tdep_h): Add osabi.h.
6133 * sh-tdep.h (sh_osabi): Remove.
6134 (gdbarch_tdep): Use generic OS ABI framework.
6135 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6136 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6137 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6138 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6140 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6141 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6142 gdbarch_register_osabi.
6143 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6144 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6145 (get_elfosabi): Rename to...
6146 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6147 ABI framework support routines.
6148 (arm_gdbarch_init): Use generic OS ABI framework.
6149 (arm_dump_tdep): Likewise.
6150 (_initialize_arm_tdep): Likewise.
6151 * arm-tdep.h: Include osabi.h.
6153 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6155 (arm_gdbarch_register_os_abi): Remove prototype.
6156 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6157 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6159 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6160 * mips-tdep.c: Include osabi.h.
6161 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6164 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6166 * h8300-tdep.c: Fix formatting.
6168 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6170 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6171 printing vector registers.
6173 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6175 From Fernando Nasser:
6176 * remote.c (remote_async_open_1): Re-throw the exception when the
6178 (remote_cisco_open): Ditto.
6179 (remote_open_1): Ditto.
6181 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6183 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6184 (remote_start_remote): Add uiout parameter. Pass through to
6185 remote_start_remote_dummy.
6186 (remote_open_1): Use catch_exception instead of catch_errors.
6187 (remote_async_open_1): Ditto.
6188 (remote_cisco_open): Ditto.
6190 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6192 * remote.c (remote_start_remote): Replace PTR with void pointer.
6193 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6196 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6198 * gdb_indent.sh: Allow the script to be run in the sim directory.
6200 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6202 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6203 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6205 * corelow.c (core_open): Only call set_gdbarch_from_file if
6208 2002-05-17 Andrey Volkov <avolkov@transas.com>
6210 * h8300-tdep.c: Add support of EXR register
6211 * config/h8300/tm-h8300.h: Ditto.
6213 2002-05-17 Andrey Volkov <avolkov@transas.com>
6215 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6217 2002-05-17 Andrey Volkov <avolkov@transas.com>
6219 * h8300-tdep.c: Change literal regnums to REGNO.
6221 2002-05-17 Jim Blandy <jimb@redhat.com>
6223 * NEWS: Note addition of macro support.
6225 Expand preprocessor macros in C expressions.
6226 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6227 (scan_macro_expansion, scanning_macro_expansion,
6228 finished_macro_expansion): New function declarations.
6229 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6230 variable declarations.
6231 * parser-defs.h (expression_context_pc): New declaration.
6232 * parse.c (expression_context_pc): New variable.
6233 (parse_exp_1): Set expression_context_pc, as well as
6234 expression_context_block.
6235 * c-exp.y (yylex): If we're not already reading the result of a
6236 macro expansion, try to macro-expand the next token. When we're
6237 done scanning a macro expansion, switch back to the mainline text.
6238 Commas and `if's in a macro's expansion don't terminate the input.
6239 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6240 (macro_original_text, macro_expanded_text,
6241 expression_macro_lookup_func, expression_macro_lookup_baton): New
6243 (scan_macro_expansion, scanning_macro_expansion,
6244 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6245 c_preprocess_and_parse): New functions.
6246 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6247 c_preprocess_and_parse, instead of c_parse.
6248 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6249 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6251 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6253 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6254 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6255 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6257 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6259 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6261 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6263 * Makefile.in (sh_tdep_h): Define and use.
6264 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6265 register enum): Move to...
6266 * * sh-tdep.h: ...here.
6267 * sh-tdep.c: Include sh-tdep.h.
6268 * sh3-rom.c: Likewise.
6269 * shnbsd-tdep.c: Likewise.
6271 2002-05-16 Michael Snyder <msnyder@redhat.com>
6273 * arm-tdep.c: Spelling fix in comment.
6275 2002-05-16 Jim Blandy <jimb@redhat.com>
6277 Add commands for manually expanding macros and showing their
6279 * macrocmd.c, macroscope.c, macroscope.h: New files.
6280 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6281 (macroscope_h): New variable.
6282 (HFILES_NO_SRCDIR): Add macroscope.h.
6283 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6284 (macroscope.o, macrocmd.o): New rules.
6286 Teach the Dwarf 2 reader to read macro information.
6287 * dwarf2read.c: #include "macrotab.h".
6288 (dwarf_macinfo_buffer): New variable.
6289 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6291 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6292 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6293 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6294 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6295 dwarf2_macro_spaces_in_definition): New complaints.
6296 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6297 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6298 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6299 the partial symbol table.
6300 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6301 from what's recorded in the partial symbol table.
6302 (read_file_scope): If the compilation unit has a
6303 `DW_AT_macro_info' attribute, read its macro information.
6304 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6306 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6309 * ser-tcp.c: Don't include <netinet/udp.h>.
6311 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6313 * MAINTAINERS: Update my email address.
6315 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6317 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6318 include file of the same name.
6320 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6322 * configure.tgt: Mark v850 as multi-arched.
6323 * config/v850/tm-v850.h: Remove file.
6324 * config/v850/v850.mt: Eliminate TM_FILE.
6326 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6328 * v850-tdep.c: Full multi-arch.
6329 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6330 Define GDB_MULTI_ARCH to 2.
6332 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6334 * p-exp.y (current_type): New static variable.
6335 Carries the type of the expression at the position that is parsed.
6336 (push_current_type, pop_current_type): Two new functions. Used
6337 to store/restore current_type in expression on specific tokens.
6338 (search_field): New static variable. Set to one after parsing a point
6339 as at that point only a FIELDNAME token should be searched.
6340 (FIELDNAME): New token. After a point only a token belonging to
6341 current_type type definition is allowed.
6342 (all over token rules): reset and change current_type according
6344 (exp '[' rule): insert implicit array index field if
6345 exp is a pascal string type.
6347 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6349 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6350 frame info. Use frame_info's saved_regs instead of matching member
6351 in extra_frame_info throughout.
6352 (v850_frame_init_saved_regs): New function.
6353 (v850_init_extra_frame_info): Move most functionality into
6354 v850_frame_init_saved_regs().
6355 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6356 (v850_frame_find_saved_regs): Remove declaration.
6357 (FRAME_FIND_SAVED_REGS): Remove definition.
6358 (v850_frame_init_saved_regs): Add declaration.
6359 (FRAME_INIT_SAVED_REGS): Add definition.
6361 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6363 * v850-tdep.c: Begin multi-arch'ing v850.
6364 (v850_target_architecture_hook): Remove function.
6365 (v850_gdbarch_init): New function. Add code previously in
6366 v850_target_architecture_hook().
6367 (_initialize_v850_tdep): Don't set target_architecture_hook.
6368 Call register_gdbarch_init() instead.
6370 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6372 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6373 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6374 (fixup_class_method_type): Likewise.
6376 2002-05-15 Jim Blandy <jimb@redhat.com>
6378 Add macro structures to GDB's symbol tables. Nobody puts anything
6380 * symtab.h (struct symtab): New member: `macro_table'.
6381 * buildsym.h (pending_macros): New global variable.
6382 * buildsym.c: #include "macrotab.h".
6383 (buildsym_init): Initialize `pending_macros'.
6384 (end_symtab): If we found macro information while reading a CU's
6385 debugging info, do build a symtab structure for it. Make the
6386 symtab point to the macro information, and clear the
6387 `pending_macros' pointer which held it while we were reading the
6389 (really_free_pendings): Free any pending macro table.
6390 * objfiles.h (struct objfile): New member: `macro_cache'.
6391 * objfiles.c (allocate_objfile): Set allocate and free functions
6392 for the macro cache's objstack.
6393 (free_objfile): Empty the macro cache's obstack.
6394 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6395 set new allocate and free functions for it.
6396 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6397 free functions for the macro cache's objstack. (Why is this
6398 function building its own objfile?)
6399 * symmisc.c (print_objfile_statistics): Print statistics on the
6401 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6403 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6405 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6406 (REGISTER_U_ADDR): Delete definition.
6407 (arm_register_u_addr): Delete declaration.
6409 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6411 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6412 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6414 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6416 * regcache.c (register_valid): Revise comments refering to "Not
6417 available" and "unavailable".
6418 * frame.c (frame_register_read): Ditto.
6419 * findvar.c (value_of_register): Ditto.
6421 2002-05-15 Andrew Cagney <cagney@redhat.com>
6423 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6424 (remote-sim.o): Update dependencies.
6425 (d10v-tdep.o): Specify dependencies.
6426 (sim_d10v_h): Define.
6428 2002-05-14 Jim Blandy <jimb@redhat.com>
6430 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6431 * macrotab.c (macro_lookup_inclusion, find_definition,
6432 new_macro_table): Same.
6434 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6435 not `! strcmp ()'. This is a dubious improvement.
6436 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6438 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6439 although it's not necessary, to avoid a warning.
6441 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6443 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6444 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6445 TYPE_INSTANCE_FLAGS.
6446 (struct main_type): New.
6447 (struct type): Move most members to struct main_type. Change
6448 cv_type and as_type to new type_chain member. Add instance_flags.
6449 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6450 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6451 (finish_cv_type): Remove prototype.
6452 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6454 (alloc_type_instance): New function.
6455 (smash_type): New function.
6456 (make_pointer_type, make_reference_type, make_function_type)
6457 (smash_to_member_type, smash_to_method_type): Call smash_type.
6458 (make_qualified_type): New function.
6459 (make_type_with_address_space): Call make_qualified_type.
6460 (make_cv_type): Likewise.
6461 (finish_cv_type): Remove unnecessary function.
6462 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6463 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6464 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6465 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6466 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6467 * hpread.c (hpread_read_struct_type): Likewise.
6468 * stabsread.c (read_struct_type): Likewise.
6470 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6472 * configure.tgt: Add a catch all sh* target, for cases like
6473 sh[2,3,4]-elf and sh-hms.
6475 2002-05-14 Keith Seitz <keiths@redhat.com>
6477 * event-loop.c (create_file_handler): Don't do anything but
6478 update data when we are given a fd which we are already
6481 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6483 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6484 (update_context): Use __func__ in warnings.
6486 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6488 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6489 and tcp_close to net_open and net_close.
6490 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6491 using UDP if requested. Don't try to disable Nagle on UDP
6493 * remote.c (remote_serial_open): New function. Warn about UDP.
6494 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6496 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6498 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6500 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6502 * configure.tgt: Remove sh-hms target.
6503 * MAINTAINERS: Don't list sh-hms as a separate target.
6505 2002-05-13 Jim Blandy <jimb@redhat.com>
6507 Add first preprocessor macro-expansion files.
6508 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6509 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6510 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6511 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6512 (COMMON_OBS): Add macrotab.o, macroexp.o.
6513 (macroexp.o, macrotab.o): New rules.
6515 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6517 * config/m88k/tm-m88k.h: Update copyright.
6518 (m88k_target_write_pc): Declare
6519 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6520 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6521 (SHIFT_INST_REGS): Update definition.
6522 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6523 using old definition of TARGET_WRITE_PC.
6524 * regcache.c (generic_target_write_pc): Delete code handling
6526 * gdbarch.sh (NNPC_REGNUM): Delete.
6527 * gdbarch.h, gdbarch.c: Regenerate.
6529 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6531 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6534 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6536 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6537 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6538 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6540 * c-typeprint.c (cp_type_print_method_args): Likewise.
6541 (c_type_print_args): Likewise.
6542 * d10v-tdep.c (d10v_push_arguments): Likewise.
6543 (d10v_extract_return_value): Likewise.
6544 * expprint.c (print_subexp): Likewise.
6545 * gdbtypes.c (lookup_primitive_typename): Likewise.
6546 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6547 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6548 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6549 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6550 (TYPE_VECTOR): Likewise.
6551 * hpread.c (hpread_read_struct_type)
6552 (fix_static_member_physnames, fixup_class_method_type)
6553 (hpread_type_lookup): Likewise.
6554 * mdebugread.c (parse_symbol, parse_type): Likewise.
6555 * p-lang.c (is_pascal_string_type): Likewise.
6556 * valops.c (hand_function_call): Likewise.
6557 * x86-64-tdep.c (classify_argument): Likewise.
6559 * hpread.c (hpread_read_function_type)
6560 (hpread_read_doc_function_type): Call replace_type.
6561 * dstread.c (create_new_type): Delete.
6562 (decode_dst_structure, process_dst_function): Call alloc_type.
6563 Use type access macros.
6565 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6567 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6568 the're not supported by the current architecture.
6569 (i387_fill_fxsave): Likewise.
6571 2002-05-12 Fred Fish <fnf@redhat.com>
6573 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6574 sect_index_xxx members to index the first slot in section_offsets
6575 if all of the section_offsets are zero.
6577 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6579 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6580 checked in with last change.
6582 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6584 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6585 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6588 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6590 * Makefile.in: Update dependencies.
6592 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6594 * language.c (local_hex_string_custom): Simplify. Do not depend
6595 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6597 * memattr.c (mem_info_command): Replace calls to
6598 longest_local_hex_string and longest_local_hex_string_custom.
6599 * buildsym.c (make_blockvector): Ditto.
6600 * solib.c (info_sharedlibrary_command): Ditto.
6601 * tracepoint.c (tracepoints_info): Ditto.
6602 * symtab.c (print_msymbol_info): Ditto.
6604 * language.c (local_hex_string): Delete.
6605 (local_hex_string_custom): Delete.
6606 (longest_local_hex_string): Rename to local_hex_string.
6607 (longest_local_hex_string_custom): Rename to
6608 local_hex_string_custom.
6609 * language.h (local_hex_string): Change parameter type to LONGEST.
6610 (local_hex_string_custom): Ditto.
6611 (longest_local_hex_string): Delete declaration.
6612 (longest_local_hex_string_custom): Ditto.
6614 * solib.c: Update copyright.
6615 * memattr.c: Update copyright.
6617 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6619 * arch-utils.h (legacy_register_to_value): Declare.
6620 (legacy_value_to_register): Declare.
6621 (legacy_convert_register_p): Declare.
6622 * arch-utils.c (legacy_register_to_value): New function.
6623 (legacy_value_to_register): New function.
6624 (legacy_convert_register_p): New function.
6626 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6627 (VALUE_TO_REGISTER): Define.
6628 (CONVERT_REGISTER_P): Define.
6629 * gdbarch.h, gdbarch.c: Regenerate.
6631 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6633 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6636 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6637 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6639 * Makefile.in: Update dependencies for valops.c.
6640 * valops.c: Include "gdb_assert.h".
6641 (typecmp): Skip THIS parameter to methods.
6642 (find_method_list): Remove static_memfuncp argument,
6643 update callers. Check for stub methods.
6644 (find_value_oload_method_list): Don't set *static_memfuncp.
6645 (find_overload_match): Don't check for stub methods. Assert
6646 that methods are not stubbed. Handle static methods.
6647 (value_find_oload_method_list): Remove static_memfuncp argument.
6648 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6649 to the argument list for static stub methods.
6650 * value.h (value_find_oload_method_list): Update prototype.
6652 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6654 * arch-utils.h (generic_register_size): Declare.
6655 (generic_register_raw_size, generic_register_virtual_size): Delete
6657 * arch-utils.c (generic_register_raw_size): Delete.
6658 (generic_register_size): New function.
6659 (generic_register_virtual_size): Delete.
6661 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6662 default generic_register_size.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6665 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6666 register_virtual_size.
6667 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6670 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6672 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6673 * gdbarch.h, gdbarch.c: Regenerate.
6674 * gnu-v3-abi.c: Update copyright.
6675 (vtable_address_point_offset): Update.
6676 (gnuv3_rtti_type): Update.
6677 (gnuv3_baseclass_offset): Update.
6678 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6679 (init_fetch_link_map_offsets): Update.
6680 * remote.c (get_remote_state): Update.
6682 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6684 * TODO: Remove value_headof/value_from_vtable_info comment.
6685 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6686 * values.c (value_headof, value_from_vtable_info): Delete.
6687 * value.h (value_from_vtable_info): Delete prototype.
6689 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6691 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6692 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6694 (gdb_assert_h): Define.
6695 (gdb_wait_h): Define.
6696 (gdb_regex_h): Define.
6698 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6700 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6701 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6703 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6705 * nbsd-tdep.c: Fix comment.
6707 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6709 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6710 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6711 (nbsd-tdep.o): New dependency list.
6712 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6714 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6715 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6716 * nbsd-tdep.c: New file.
6717 * nbsd-tdep.h: New file.
6718 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6720 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6721 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6722 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6723 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6725 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6727 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6728 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6729 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6730 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6731 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6732 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6734 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6736 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6737 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6738 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6739 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6740 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6741 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6742 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6744 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6746 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6747 fetch_elfcore_registers to...
6748 * i386nbsd-tdep.c: ...here.
6749 (i386nbsd_use_struct_convention): Rename to...
6750 (i386nbsd_aout_use_struct_convention): ...this.
6751 (i386nbsd_supply_reg): New function.
6752 (i386nbsd_fill_reg): New function.
6753 (fetch_core_registers): Use i386nbsd_supply_reg.
6754 (fetch_elfcore_registers): Likewise.
6755 (_initialize_i386nbsd_tdep): New function.
6756 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6757 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6758 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6759 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6760 (i386nbsd_aout_use_struct_convention): ...this.
6762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6764 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6765 (store_inferior_registers): Use shnbsd_fill_reg.
6766 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6767 sh_nbsd_supply_register): Collapse into...
6768 (shnbsd_supply_reg): ...this.
6769 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6770 (shnbsd_fill_reg): ...this.
6771 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6772 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6773 (fetch_core_registers): Use shnbsd_supply_reg.
6774 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6775 (sh_nbsd_core_fns): Rename to...
6776 (shnbsd_core_fns): ...this.
6777 (sh_nbsd_elfcore_fns): Rename to...
6778 (shnbsd_elfcore_fns): ...this.
6779 (sh_nbsd_init_abi): Rename to...
6780 (shnbsd_init_abi): ...this.
6781 (_initialize_sh_nbsd_tdep): Rename to...
6782 (_initialize_shnbsd_tdep): ...this.
6783 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6784 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6785 sh_nbsd_fill_register): Remove prototypes.
6786 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6788 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6790 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6791 (i387-nat.o): Delete dependency list.
6792 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6793 (x86-64-linux-nat.o): Likewise.
6794 * i387-nat.c: Delete file, moving contents to...
6795 * i387-tdep.c: ...here.
6796 * i387-nat.h: Rename...
6797 * i387-tdep.h: ...to this.
6798 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6799 * i386-linux-nat.c: Likewise.
6800 * i386bsd-nat.c: Likewise.
6801 * i386gnu-nat.c: Likewise.
6802 * i386nbsd-nat.c: Likewise.
6803 * i386v4-nat.c: Likewise.
6804 * x86-64-linux-nat.c: Likewise.
6805 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6806 * config/i386/go32.mh (NATDEPFILES): Likewise.
6807 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6808 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6809 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6810 * config/i386/linux.mh (NATDEPFILES): Likewise.
6811 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6812 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6813 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6814 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6816 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6818 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6819 (alphanbsd-nat.o): Remove dependency list.
6820 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6821 * alphanbsd-nat.c: Delete. Contents moved to...
6822 * alphanbsd-tdep.c: ...here.
6823 (_initialize_alphanbsd_tdep): Register core functions.
6824 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6826 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6828 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6829 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6830 (alphanbsd-nat.o): Likewise.
6831 (alphabsd-tdep.o): New dependency list.
6832 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6833 (fill_gregset): Use alphabsd_fill_reg.
6834 (supply_fpregset): Use alphabsd_supply_fpreg.
6835 (fill_fpregset): Use alphabsd_fill_fpreg.
6836 (fetch_inferior_registers): Use struct reg and struct fpreg
6837 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6838 and alphabsd_supply_fpreg.
6839 (store_inferior_registers): Use struct reg and struct fpreg
6840 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6841 and alphabsd_fill_fpreg.
6842 * alphabsd-tdep.c: New file.
6843 * alphabsd-tdep.h: New file.
6844 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6845 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6846 alphabsd_supply_fpreg.
6847 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6848 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6850 2002-05-11 Eric Christopher <echristo@redhat.com>
6852 * mips-tdep.c (mips_double_register_type): Fix thinko.
6853 (mips_single_register_type): Ditto.
6854 * MAINTAINERS: Add self.
6856 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6858 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6859 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6860 right thing on architectures with different endianness and/or
6863 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6865 From Christian Limpach <chris@Pin.LU>
6866 * configure.in: Change sed expression which comments out
6867 NATDEPFILES to also comment out continuation lines.
6868 * configure: Regenerate.
6870 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6872 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6875 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6877 * sh-tdep.c: Include correct file.
6879 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6881 New support for sh64-elf (sh5) target.
6883 * configure.tgt: For sh64-elf target, default to sh-elf.
6885 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6886 (struct gdbarch_tdep): Add new fields for new registers and ABI
6889 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6890 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6891 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6892 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6893 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6894 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6895 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6896 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6897 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6898 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6899 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6900 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6901 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6902 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6903 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6904 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6905 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6906 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6907 sign_extend, sh64_nofp_frame_init_saved_regs,
6908 sh64_init_extra_frame_info, sh64_get_saved_register,
6909 sh64_extract_struct_value_address, sh64_pop_frame,
6910 sh64_push_arguments, sh64_extract_return_value,
6911 sh64_store_return_value, sh64_show_media_regs,
6912 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6913 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6914 sh_sh64_register_virtual_type,
6915 sh_sh64_register_convert_to_virtual,
6916 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6917 sh64_register_read, sh64_pseudo_register_write,
6918 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6919 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6920 sh64_do_pseudo_register, sh_compact_do_registers_info,
6921 sh64_do_registers_info, sh_gdbarch_init): New functions.
6923 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6925 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6927 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6929 * linespec.c (decode_line_1): Check for a double quote after
6930 a filename correctly.
6932 2002-05-10 Jim Blandy <jimb@redhat.com>
6934 Properly track the size of the current objfile's .debug_line section.
6935 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6936 (DWARF_LINE_SIZE): New macro.
6937 (dwarf2_build_psymtabs_hard): Record the line section's size in
6938 the partial symbol table.
6939 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6942 2002-05-10 Petr Sorfa <petrs@caldera.com>
6944 * ia64-tdep.c: Handle breakpoints on L instruction type
6945 in MLX instruction bundle by moving the breakpoint to
6946 the third slot (X instruction type) as L holds only data.
6948 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6950 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6951 (process_one_symbol): Complain about discarding local symbols
6952 due to a misplaced N_LBRAC entry.
6954 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6956 From Daniel Berlin <dan@cgsoftware.com>
6957 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6958 decrease the depth we are at, in the case of templates.
6960 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6962 * mips-tdep.c (mips_float_register_type): New function.
6963 (mips_double_register_type): New function.
6964 (mips_print_register): Use them.
6965 (do_fp_register_row): Likewise.
6967 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6969 * signals/signals.c (signals): Remove conditional compilation around
6970 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6971 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6973 2002-05-09 Michael Snyder <msnyder@redhat.com>
6975 * remote-rdp.c (remote_rdp_can_run): Remove.
6977 2002-05-09 Tom Tromey <tromey@redhat.com>
6979 * jv-valprint.c (java_val_print): Handle `char' as a special case
6982 2002-05-09 Michael Snyder <msnyder@redhat.com>
6984 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6985 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6986 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6987 str r(0123),[sp,#nn].
6988 (arm_skip_prologue): Ditto. Also make disassembly
6989 order-independent by placing it in a loop.
6991 2002-05-06 Michael Snyder <msnyder@redhat.com>
6993 * stabsread.c (read_type): Add recognition for new attribute:
6994 "@V;" means that an array type is actually a vector.
6995 This is analogous to the vector flag that's been added to dwarf2.
6997 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6999 * i386-tdep.h (i386_abi): New enum.
7000 (struct gdbarch_tdep): Replace os_ident member with abi.
7001 (i386_gdbarch_register_os_abi): New prototype.
7002 * i386-tdep.c (i386_abi_names): New array.
7003 (process_note_abi_tag_sections): Removed.
7004 (process_note_sections): New function.
7005 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7006 (struct i386_abi_handler): New struct.
7007 (i386_abi_handler_list): New variable.
7008 (i386_gdbarch_register_os_abi): New function.
7009 (i386_gdbarch_init): Adapt for the changes given above.
7011 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7013 * gregset.h: Say "GNU/Linux".
7015 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7017 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7018 (build_gdbtypes): Build builtin_type_v2_float.
7019 (_initialize_gdbtypes): Register new builtin type.
7021 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7023 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7024 (clear_gdbarch_swap): New function.
7025 (initialize_non_multiarch): Call.
7026 (gdbarch_update_p): Before calling init(), swap out and clear the
7027 existing architecture.
7028 * gdbarch.c: Regenerate.
7030 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7032 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7035 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7037 * sh-nbsd-nat.c: Rename to...
7038 * shnbsd-nat.c: ...this.
7039 * sh-nbsd-tdep.c: Rename to...
7040 * shnbsd-tdep.c: ...this.
7041 * sh-nbsd-tdep.h: Rename to...
7042 * shnbsd-tdep.h: ...this.
7043 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7044 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7046 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7048 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7049 concatenation for command help messages.
7051 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7053 * NEWS: Note new sh*-*-netbsdelf* configuration.
7054 * configure.host: Set gdb_host_cpu to sh for all sh*.
7055 (sh*-*-netbsdelf*): New host.
7056 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7057 (sh*-*-netbsdelf*): New target.
7058 * sh-nbsd-nat.c: New file.
7059 * sh-nbsd-tdep.c: New file.
7060 * sh-nbsd-tdep.h: New file.
7061 * config/sh/nbsd.mh: New file.
7062 * config/sh/nbsd.mt: New file.
7063 * config/sh/nm-nbsd.h: New file.
7064 * config/sh/tm-nbsd.h: New file.
7066 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7068 * sh-tdep.c (sh_osabi_names): Declare.
7069 (process_note_abi_tag_sections): New function.
7070 (get_elfosabi): Ditto.
7071 (sh_gdbarch_register_os_abi): Ditto.
7072 (sh_dump_tdep): Ditto.
7073 _initialize_sh_tdep): Use gdbarch_register to register
7074 sh_gdbarch_init and sh_dump_tdep.
7075 * config/sh/tm-sh.h (sh_osabi): Declare.
7076 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7078 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7080 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7081 (thumb_scan_prologue): Ditto.
7082 (arm_find_callers_reg): Ditto.
7083 (arm_frame_chain): Ditto.
7084 (arm_init_extra_frame_info): Ditto.
7085 (arm_frame_saved_pc): Ditto.
7086 (arm_pop_frame): Ditto.
7087 (arm_push_return_address): New function.
7088 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7089 call_dummy_location, call_dummy_breakpoint_offset_p,
7090 call_dummy_breakpoint_offset, call_dummy_p,
7091 call_dummy_stack_adjust_p, call_dummy_words,
7092 sizeof_call_dummy_words, call_dummy_start_offset,
7093 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7094 call_dummy_address, push_return_address and push_dummy_frame for
7095 generic dummy frames.
7097 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7099 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7100 size computation for alloca.
7101 (sh_fp_frame_init_saved_regs): Likewise.
7103 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7105 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7106 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7107 * arm-tdep.c (arm_store_return_value): Use them.
7108 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7109 * remote-rdp.c (remote_rdp_fetch_register): Use
7110 ARM_MAX_REGISTER_RAW_SIZE.
7111 (remote_rdp_store_register): Likewise.
7113 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7115 * dwarf2cfi.c: Code cleanup, removed unused variables,
7116 added default labels to switch {} statements.
7117 * x86-64-tdep.c: Ditto.
7118 * x86-64-linux-nat.c: Ditto.
7120 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7122 * solib.h: Protect against multiple inclusion.
7124 2002-05-06 Jim Blandy <jimb@redhat.com>
7126 Add first preprocessor macro-expansion files.
7127 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7128 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7129 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7130 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7131 (COMMON_OBS): Add macrotab.o, macroexp.o.
7132 (macroexp.o, macrotab.o): New rules.
7134 Separate the job of reading the line number info statement program
7135 header (...expialidocious) out into its own function.
7136 * dwarf2read.c (struct line_head, struct filenames, struct
7137 directories): Replace with...
7138 (struct line_header): New structure, containing the full
7139 contents of the statement program header, including the
7140 include directory and file name tables.
7141 (read_file_scope): If we have line number info, instead of just
7142 calling dwarf_decode_lines to do all the work, call
7143 dwarf_decode_line_header first to get a `struct line_header'
7144 containing the data in the statement program header, and then
7145 pass that to dwarf_decode_lines, which will pick up where that
7146 left off. Be sure to clean up the `struct line_header' object.
7147 (dwarf_decode_line_header, free_line_header, add_include_dir,
7148 add_file_name): New functions.
7149 (dwarf_decode_lines): Move all the code to read the statement
7150 program header into dwarf_decode_line_header. Take the line
7151 header it built as the first argument, instead of the offset to
7152 the compilation unit's line number info. Use the new `struct
7153 line_header' type instead of the old structures. No need to do
7154 cleanups here now, since we don't allocate anything.
7155 (dwarf2_statement_list_fits_in_line_number_section,
7156 dwarf2_line_header_too_long): New complaints.
7158 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7160 * gdbtypes.c (init_vector_type): New function.
7161 (build_builtin_type_vec128): Simplify the representation of SIMD
7163 (build_gdbtypes): Initialize new builtin vector types.
7164 (_initialize_gdbtypes): Register new vector types with gdbarch.
7165 (builtin_type_v4_float, builtin_type_v4_int32,
7166 builtin_type_v8_int16, builtin_type_v16_int8,
7167 builtin_type_v2_int32, builtin_type_v4_int16,
7168 builtin_type_v8_int8): New (renamed) SIMD types.
7170 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7172 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7173 (i387_fill_fxsave): Likewise.
7175 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7177 * alpha-tdep.c (alpha_extract_return_value): Don't use
7178 non-constant array size in prototype.
7180 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7182 From Brian Taylor <briant at model dot com>:
7183 * ui-out.c (ui_out_field_core_addr): Use the function
7184 longest_local_hex_string_custom'to format addresses > 32 bits
7187 * ui-out.c (ui_out_field_core_addr): Update comment.
7189 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7191 * stack.c (select_and_print_frame): Make static. Delete the
7193 (func_command): Update call.
7194 (select_frame_command): Delete code computing the frame level.
7195 * frame.h (select_and_print_frame): Delete declaration.
7197 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7199 * sparc-tdep.c (sparc_get_saved_register): Comment why
7200 get_prev_frame call is safe.
7202 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7204 * frame.h (select_frame): Delete level parameter.
7205 * stack.c (select_frame): Update. Use frame_relative_level to
7206 obtain the frame's level.
7207 (select_and_print_frame): Update call.
7208 (select_frame_command): Ditto.
7209 (up_silently_base): Ditto.
7210 (down_silently_base): Ditto.
7211 * ocd.c (ocd_start_remote): Ditto.
7212 * remote-rdp.c (remote_rdp_open): Ditto.
7213 * remote-mips.c (mips_initialize): Ditto.
7214 (common_open): Ditto.
7215 * remote-e7000.c (e7000_start_remote): Ditto.
7216 * m3-nat.c (select_thread): Ditto.
7217 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7218 (child_get_current_exception_event): Ditto.
7219 * varobj.c (varobj_create): Ditto.
7220 (varobj_update): Ditto.
7221 (c_value_of_root): Ditto.
7222 * tracepoint.c (finish_tfind_command): Ditto.
7223 * corelow.c (core_open): Ditto.
7224 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7225 * thread.c (info_threads_command): Ditto.
7226 (switch_to_thread): Ditto.
7227 * infrun.c (normal_stop): Ditto.
7228 (restore_selected_frame): Ditto.
7229 (restore_inferior_status): Ditto.
7230 * breakpoint.c (insert_breakpoints): Ditto.
7231 (watchpoint_check): Ditto.
7232 (bpstat_stop_status): Ditto.
7233 (do_enable_breakpoint): Ditto.
7234 * blockframe.c (flush_cached_frames): Ditto.
7235 (reinit_frame_cache): Ditto.
7237 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7239 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7242 2002-05-04 Jim Blandy <jimb@redhat.com>
7244 * gdbtypes.c (replace_type): Doc fix.
7246 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7248 * valprint.c (strcat_longest): Delete commented out function.
7251 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7253 * MAINTAINERS: Mark a29k as deleted.
7254 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7255 Move new configurations to the top.
7256 * configure.tgt: Remove a29k.
7257 * config/a29k/tm-vx29k.h: Delete.
7258 * config/a29k/vx29k.mt: Delete.
7259 * config/a29k/tm-a29k.h: Delete.
7260 * config/a29k/a29k-udi.mt: Delete.
7261 * config/a29k/a29k.mt: Delete.
7262 * a29k-tdep.c: Delete.
7263 * remote-udi.c: Delete.
7264 * remote-mm.c: Delete.
7265 * remote-eb.c: Delete.
7266 * remote-adapt.c: Delete.
7267 * Makefile.in: Remove obsolete code.
7268 * config/s390/s390x.mt: Ditto.
7269 * config/s390/s390.mt: Ditto.
7270 * config/sparc/sparclynx.mh: Ditto.
7271 * config/sparc/linux.mh: Ditto.
7272 * config/pa/hppaosf.mh: Ditto.
7273 * config/pa/hppabsd.mh: Ditto.
7274 * config/ns32k/nbsd.mt: Ditto.
7275 * config/mips/vr5000.mt: Ditto.
7276 * config/m68k/sun3os4.mh: Ditto.
7277 * config/m68k/nbsd.mt: Ditto.
7278 * config/m68k/m68klynx.mh: Ditto.
7279 * config/m32r/m32r.mt: Ditto.
7280 * config/i386/x86-64linux.mt: Ditto.
7281 * config/i386/nbsdelf.mt: Ditto.
7282 * config/i386/nbsd.mt: Ditto.
7283 * config/i386/i386lynx.mh: Ditto.
7285 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7287 * target.c (debug_print_register): New function. Handle oversize
7289 (debug_to_fetch_registers): Call.
7290 (debug_to_store_registers): Call.
7292 2002-05-03 Jim Blandy <jimb@redhat.com>
7294 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7295 (read_type): Doc fix.
7296 * gdbtypes.c (replace_type): Doc fix.
7298 * stabsread.c (multiply_defined_struct): New complaint.
7299 (read_struct_type): If the type we were passed isn't empty, or
7300 incomplete, don't read the new struct type into it; complain,
7301 and return the original type unchanged. Take a new `type_code'
7302 argument, which is the type code for the new type.
7303 (read_type): Rather than storing the type's type code here, pass
7304 it as an argument to read_struct_type, and let that take care of
7305 storing it. That way, we don't overwrite the original type code,
7306 so read_struct_type can use it to decide whether we're overwriting
7307 something we shouldn't.
7308 (complain_about_struct_wipeout): New function.
7310 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7312 * gdbarch.sh: Assert that gdbarch is non-NULL.
7313 * gdbarch.c: Regenerate.
7315 2002-05-03 Jason Merrill <jason@redhat.com>
7317 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7320 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7322 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7323 (x86_64_dwarf2gdb_regno_map_length),
7324 (x86_64_dwarf2_reg_to_regnum): Added.
7325 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7326 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7327 (_initialize_x86_64_tdep): Synced with the change above.
7328 (x86_64_skip_prologue): Reformulated message.
7330 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7332 * f-exp.y: Also use new prev_lexptr variable
7333 to improve error reporting. Based on Michael Snyder
7334 2002-04-24 dated patch to c-exp.y.
7335 * jv-exp.y: Likewise.
7336 * m2-exp.y: Likewise.
7338 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7340 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7341 we are dealing with vectors.
7343 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7345 * config/m68k/tm-nbsd.h: Obvious fix,
7346 correct machine name.
7348 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7350 * p-typeprint.c (pascal_type_print_base): Add support
7351 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7353 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7355 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7356 for fondamental pascal 'char' type.
7358 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7360 * p-lang.h (is_pascal_string_type): Declaration changed,
7361 new sixth argument of type char ** added.
7362 * p-lang.c (is_pascal_string_type): Implementation
7363 changed. Args length_pos, length_size, string_pos, char_size
7364 can now be NULL. New argument arrayname set to the field
7365 name of the char array. Return value set to char array
7366 field index plus one.
7367 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7368 is_pascal_string_type function.
7370 2002-05-02 Andrew Cagney <cagney@redhat.com>
7372 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7373 <cagney@redhat.com> change.
7374 * gdbarch.c: Regenerate.
7376 2002-05-02 Andrew Cagney <cagney@redhat.com>
7378 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7379 before probing for a new one. Detect errorenous gdbarch_init
7381 * gdbarch.c: Regenerate.
7383 2002-05-01 Andrew Cagney <cagney@redhat.com>
7385 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7386 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7387 * config/v850/tm-v850.h: Ditto. Update copyright.
7389 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7391 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7394 2002-04-30 Michael Snyder <msnyder@redhat.com>
7396 * arm-tdep.c: Whitespace clean-ups.
7397 (arm_skip_prologue): Fix thinko; two lines
7398 should have been removed as part of 4/24 change.
7400 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7402 * rs6000-tdep.c: Added comment describing how fpscr register
7403 numbers were chosen.
7405 2002-04-30 Michael Snyder <msnyder@redhat.com>
7407 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7409 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7411 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7412 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7413 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7415 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7417 From Louis Hamilton <hamilton@redhat.com>:
7418 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7419 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7420 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7421 not bfd-private xcoff data, to determine wordsize.
7422 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7424 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7426 GDB 5.2 released from 5.2 branch.
7428 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7430 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7431 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7432 (x86_64_register_info_table): Added comments with register numbers.
7434 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7436 * rs6000-tdep.c (rs6000_extract_return_value,
7437 rs6000_store_return_value): Handle returning vectors.
7438 (rs6000_gdbarch_init): Use
7439 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7440 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7442 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7444 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7445 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7447 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7449 * hpread.c (hpread_psymtab_to_symtab_1,
7450 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7451 with fprintf_unfiltered (gdb_stderr,...).
7453 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7455 * remote-array.c (printf_monitor, write_monitor,
7456 array_insert_breakpoint, array_remove_breakpoint ):
7457 Replace fprintf (stderr,...
7458 with fprintf_unfiltered (gdb_stderr,....
7459 * remote-es.c: Likewise.
7460 * remote-os9k.c: Likewise.
7461 * remote-st.c: Likewise.
7463 2002-04-28 Andreas Schwab <schwab@suse.de>
7465 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7466 linux-proc.o and gcore.o.
7468 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7470 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7471 code without frame pointers.
7473 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7475 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7478 2002-04-26 Ben Elliston <bje@redhat.com>
7480 * target.c (do_xfer_memory): Correct reference to the new option
7481 "trust-readonly-sections".
7483 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7485 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7486 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7487 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7489 (read_array_type): Record the fact that this array type is really a
7490 vector (i.e. are passed in by value).
7492 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7494 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7495 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7496 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7497 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7498 * alpha-linux-tdep.c: Include frame.h.
7499 (alpha_linux_sigcontext_addr): New function.
7500 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7501 alpha_linux_sigcontext_addr.
7502 * alpha-osf1-tdep.c: Include gdbcore.h.
7503 (alpha_osf1_sigcontext_addr): New function.
7504 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7505 alpha_osf1_sigcontext_addr.
7506 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7507 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7509 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7511 * stack.c (selected_frame_level):
7512 (select_frame): Do not set selected_frame_level.
7513 * frame.h (selected_frame_level): Delete declaration.
7515 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7517 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7518 convert_from_func_ptr-addr when AIX / PowerOpen.
7520 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7522 * valops.c (hand_function_call): Call
7523 generic_save_call_dummy_addr.
7524 * frame.h (generic_save_call_dummy_addr): Declare.
7525 * blockframe.c (struct dummy_frame): Add fields call_lo and
7527 (generic_find_dummy_frame): Check for PC in range call_lo to
7528 call_hi instead of entry_point_address.
7529 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7530 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7531 (generic_save_call_dummy_addr): New function.
7533 2002-04-24 David S. Miller <davem@redhat.com>
7535 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7536 sparc_skip_prologue.
7537 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7538 information to find prologue when possible.
7539 (sparc_prologue_frameless_p): Call examine_prologue directly.
7540 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7541 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7543 (SKIP_PROLOGUE): Likewise.
7545 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7547 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7548 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7549 indicate that the condition it was testing is always true.
7550 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7551 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7552 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7554 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7556 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7557 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7558 tdep->jb_pc and tdep->jb_elt_size.
7559 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7560 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7561 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7562 * alpha-nat.c (get_longjmp_target): Remove.
7563 (JB_ELEMENT_SIZE): Ditto.
7565 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7566 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7567 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7568 to alpha_get_longjmp_target.
7569 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7570 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7571 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7573 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7575 * README: Update to GDB 5.2.
7577 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7579 * gdbarch.sh (LC_ALL): Set to `c'.
7581 2002-04-25 Theodore A. Roth <troth@verinet.com>
7583 * avr-tdep.c: Ran through gdb_indent.sh.
7585 2002-04-25 Theodore A. Roth <troth@verinet.com>
7587 * MAINTAINERS: Add myself as AVR maintainer.
7588 * NEWS: Note new target avr.
7590 2002-04-25 Theodore A. Roth <troth@verinet.com>
7592 * Makefile.in: Add support for AVR target.
7593 * configure.tgt: Add support for AVR target.
7594 * avr-tdep.c: New file
7595 * config/avr/avr.mt: New file.
7597 2002-04-25 Theodore A. Roth <troth@verinet.com>
7599 * MAINTAINERS: Add myself to write-after-approval.
7601 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7603 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7604 with fprintf_unfiltered (gdb_stderr,....
7606 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7609 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7611 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7613 * p-exp.y: Also use new prev_lexptr variable
7614 to improve error reporting. Based on Michael Snyder
7615 2002-04-24 dated patch to c-exp.y.
7617 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7619 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7620 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7621 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7623 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7625 (FUNCTION_START_OFFSET): Remove.
7626 (BREAKPOINT): Ditto.
7628 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7630 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7633 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7635 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7636 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7637 alpha_linux_pc_in_sigtramp.
7638 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7639 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7640 alpha_osf1_pc_in_sigtramp.
7641 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7642 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7643 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7644 alphafbsd_pc_in_sigtramp.
7645 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7646 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7647 alphanbsd_pc_in_sigtramp.
7648 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7649 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7651 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7653 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7655 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7657 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7659 (alphanbsd-nat.o): New dependency list.
7660 (alphanbsd-tdep.o): Ditto.
7661 * NEWS: Note new native NetBSD/alpha configuration.
7662 * alphanbsd-nat.c: New file.
7663 * alphanbsd-tdep.c: Ditto.
7664 * configure.host (alpha*-*-netbsd*): New host.
7665 * configure.tgt (alpha*-*-netbsd*): New target.
7666 * config/alpha/nbsd.mh: New file.
7667 * config/alpha/nbsd.mt: Ditto.
7668 * config/alpha/nm-nbsd.h: Ditto.
7669 * config/alpha/tm-nbsd.h: Ditto.
7671 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7673 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7674 (alpha-osf1-tdep.o): New dependency list.
7675 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7676 and skip_sigtramp_frame members.
7677 * alpha-linux-tdep.c: Include gdbcore.h.
7678 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7679 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7680 * alpha-osf1-tdep.c: New file.
7681 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7683 (alpha_frame_past_sigtramp_frame): New function.
7684 (alpha_dynamic_sigtramp_offset): Ditto.
7685 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7686 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7687 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7688 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7689 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7690 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7691 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7692 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7693 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7694 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7695 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7696 to find_solib_trampoline_target.
7697 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7698 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7699 (SKIP_TRAMPOLINE_CODE): Remove.
7700 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7701 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7702 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7703 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7704 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7705 (PROC_SIGTRAMP_MAGIC): Ditto.
7706 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7707 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7708 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7709 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7710 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7712 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7714 * NEWS: Note that Alpha targets are now multi-arch.
7716 2002-04-24 Michael Snyder <msnyder@redhat.com>
7718 * parser-defs.h (prev_lexptr): New external variable.
7719 * parse.c (parse_exp_1): Set prev_lexptr to null before
7720 calling the language-specific parser.
7721 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7722 (yyerror): Use prev_lexptr in error reporting.
7724 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7726 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7727 * gregset.h: If FILL_FPXREGSET is defined, provide
7728 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7729 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7730 is defined, call fill_fpxregset.
7732 2002-04-24 Roland McGrath <roland@frob.com>
7734 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7735 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7736 (supply_gregset, supply_fpregset): New functions.
7738 * gnu-nat.c (gnu_find_memory_regions): New function.
7739 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7740 (gnu_xfer_memory): Add a cast.
7742 2002-04-24 Michael Snyder <msnyder@redhat.com>
7744 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7745 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7746 of argument regs ("str r(0123), [r11, #-nn"]).
7747 (arm_skip_prologue): Better handling for frameless functions.
7748 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7749 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7751 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7753 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7754 NUM_PSEUDO_REGS can be used.
7756 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7758 * arch-utils.h: Update copyright.
7760 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7763 * inferior.h (IN_SIGTRAMP): Delete definition.
7764 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7765 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7767 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7768 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7769 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7770 (find_proc_framesize): Ditto.
7771 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7772 (alpha_init_extra_frame_info): Ditto.
7773 * infrun.c (handle_inferior_event): Ditto.
7774 (handle_inferior_event): Ditto.
7775 (check_sigtramp2): Ditto.
7776 * blockframe.c (create_new_frame): Ditto.
7777 (get_prev_frame): Ditto.
7778 * ppc-linux-tdep.c: Update comments.
7779 * i386-linux-tdep.c: Update comments.
7780 * breakpoint.c (bpstat_what): Update comment.
7782 2002-04-24 David S. Miller <davem@redhat.com>
7784 * i960-tdep.c (register_in_window_p): New function.
7785 (i960_find_saved_register): Use it instead of
7786 REGISTER_IN_WINDOW_P.
7787 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7789 * symtab.h (find_stab_function_addr): Kill extern.
7790 * minsyms.c (find_stab_function_addr): Remove from here...
7791 * dbxread.c: ... to here, and mark it static.
7793 2002-04-20 David S. Miller <davem@redhat.com>
7795 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7796 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7798 2002-04-21 David S. Miller <davem@redhat.com>
7800 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7801 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7802 (vx_write_register): Likewise.
7804 2002-04-23 J. Brobecker <brobecker@gnat.com>
7806 * source.c (is_regular_file): New function.
7807 (openp): Check wether file to open is a regular file
7808 to avoid opening directories.
7810 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7812 * findvar.c (extract_signed_integer): Cast printf argument
7813 to suppress format warning.
7814 (extract_unsigned_integer): Likewise.
7815 * infcmd.c (registers_info): Likewise.
7816 * top.c (get_prompt_1): Likewise.
7817 * valops.c (value_assign): Likewise.
7818 * valprint.c (print_decimal): Likewise.
7820 2002-04-22 H.J. Lu (hjl@gnu.org)
7822 * c-exp.y (typebase): Support
7824 [long|long long|short] [signed|unsigned] [int|]
7828 signed [long|long long|short] int
7830 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7832 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7834 * vax-tdep.h: New file.
7835 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7836 Make several routines static.
7837 (vax_get_saved_register): New function.
7838 (vax_gdbarch_init): New function.
7839 (_initialize_vax_tdep): Register vax_gdbarch_init.
7840 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7841 Remove macros now under the control of gdbarch.
7843 2002-04-22 Michael Snyder <msnyder@redhat.com>
7845 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7846 Some whitespace and coding standards tweaks.
7848 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7850 * vax-tdep.c: Include regcache.h.
7851 (vax_call_dummy_words): New.
7852 (sizeof_vax_call_dummy_words): New.
7853 (vax_fix_call_dummy): New function.
7854 (vax_saved_pc_after_call): Ditto.
7855 * config/vax/tm-vax.h: Don't include regcache.h.
7856 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7857 (CALL_DUMMY): Remove.
7858 (CALL_DUMMY_WORDS): Define.
7859 (SIZEOF_CALL_DUMMY_WORDS): Define.
7860 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7862 2002-04-18 Michael Snyder <msnyder@redhat.com>
7864 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7866 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7868 * vax-tdep.c (vax_frame_chain): New function.
7869 (vax_push_dummy_frame): Ditto.
7870 (vax_pop_frame): Ditto.
7871 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7872 (FRAMELESS_FUNCTION_INVOCATION): Use
7873 generic_frameless_function_invocation_not.
7874 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7875 (POP_FRAME): Use vax_pop_frame.
7877 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7879 * vax-tdep.c (vax_store_struct_return): New function.
7880 (vax_extract_return_value): Ditto.
7881 (vax_store_return_value): Ditto.
7882 (vax_extract_struct_value_address): Ditto.
7883 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7884 vax_store_struct_return.
7885 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7886 (STORE_RETURN_VALUE): Use vax_store_return_value.
7887 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7891 * vax-tdep.c (vax_frame_saved_pc): New function.
7892 (vax_frame_args_address_correct): Ditto.
7893 (vax_frame_args_address): Ditto.
7894 (vax_frame_locals_address): Ditto.
7895 (vax_frame_num_args): Move code to be in proximity to
7896 other frame-related functions.
7897 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7898 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7899 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7900 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7901 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7903 2002-04-22 H.J. Lu (hjl@gnu.org)
7905 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7908 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7910 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7911 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7912 (FRAME_INIT_SAVED_REGS): New macro.
7914 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7916 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7918 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7920 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7922 (fetch_osf_core_registers): Likewise.
7923 (supply_gregset): Likewise.
7925 2002-04-22 J. Brobecker <brobecker@gnat.com>
7927 * symfile.h (get_section_index): Define.
7928 * symfile.c (get_section_index): New function.
7929 * mdebugread.c (SC_IS_SBSS): New macro.
7930 (SC_IS_BSS): Return true for the scBss storage class only, as
7931 the scSBss storage class refers to the .sbss section.
7932 (parse_partial_symbols): Discard the symbols which associated
7933 section does not exist.
7934 Make sure to use the .sbss section index for symbols which
7935 storage class is scBss, rather than using the .bss section index.
7937 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7939 * vax-tdep.c: Update copyright years.
7940 (vax_register_name): New function.
7941 (vax_register_byte): Ditto.
7942 (vax_register_raw_size): Ditto.
7943 (vax_register_virtual_size): Ditto.
7944 (vax_register_virtual_type): Ditto.
7945 * config/vax/tm-vax.h: Update copyright years.
7946 (REGISTER_NAMES): Remove.
7947 (REGISTER_NAME): Define.
7948 (REGISTER_BYTE): Use vax_register_byte.
7949 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7950 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7951 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7953 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7955 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7957 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7959 2002-04-21 David S. Miller <davem@redhat.com>
7961 * arch-utils.c (generic_prologue_frameless_p): Kill
7962 SKIP_PROLOGUE_FRAMELESS_P code.
7963 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7965 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7966 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7967 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7969 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7970 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7971 (sparc_gdbarch_init): Pass it to
7972 set_gdbarch_prologue_frameless_p.
7974 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7976 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7977 (alphabsd-nat.o): New dependency list.
7979 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7981 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7983 (alpha-linux-tdep.o): New dependency list.
7984 (alphafbsd-tdep.o): Likewise.
7986 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7988 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7990 * alpha-tdep.c: ...from here.
7991 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7993 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7995 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7996 prototype from here...
7997 * alpha-tdep.h: ...to here.
7999 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8001 * frame.h (selected_frame_level): Document as deprecated.
8002 (frame_relative_level): Declare.
8003 * stack.c (frame_relative_level): New function.
8004 (selected_frame_level): Document as deprecated.
8005 (select_frame): Do not set the selected_frame_level.
8007 * stack.c (frame_info, record_selected_frame): Update.
8008 (frame_command, current_frame_command): Update.
8009 (up_silently_base, up_command, down_silently_base): Update.
8010 (down_command): Update.
8011 * inflow.c (kill_command): Update.
8012 * tracepoint.c (finish_tfind_command): Update.
8013 * corelow.c (core_open): Update.
8014 * thread.c (info_threads_command): Update.
8015 (do_captured_thread_select): Update.
8016 * infcmd.c (finish_command): Update.
8017 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8019 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8021 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8023 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8025 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8028 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8030 * alphafbsd-tdep.c: Update copyright years. Include
8032 (alphafbsd_use_struct_convention): Make static.
8033 (alphafbsd_init_abi): New function.
8034 (_initialize_alphafbsd_tdep): New function.
8035 * config/alpha/tm-fbsd.h: Update copyright years.
8036 (USE_STRUCT_CONVENTION): Remove.
8038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8040 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8041 an Alpha ABI variant.
8042 (alpha_abi_handler_list): Declare.
8043 (alpha_gdbarch_register_os_abi): New function.
8044 (alpha_gdbarch_init): Give registered ABI variant handlers a
8045 chance to tweak the gdbarch once we have set up defaults.
8046 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8048 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8050 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8051 to standard_coerce_float_to_double.
8052 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8054 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8056 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8057 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8058 from gdbarch_tdep rather than a constant.
8059 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8060 the default text address for all Alpha Unix ABIs.
8061 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8062 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8064 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8066 * alpha-tdep.h: New file. Includes several Alpha target constants
8068 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8069 let gdbarch deal with.
8070 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8071 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8073 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8074 Alpha target register names.
8075 * alphabsd-nat.c: Likewise.
8076 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8077 Alpha target register names. Make serveral routines static.
8078 (alpha_get_saved_register): New function.
8079 (alpha_abi_names): New.
8080 (process_note_abi_tag_sections): New function.
8081 (get_elfosabi): New function.
8082 (alpha_gdbarch_init): New function.
8083 (alpha_dump_tdep): New function.
8084 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8086 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8088 * frame.c (find_saved_register): Delete #ifdef
8089 HAVE_REGISTER_WINDOWS code.
8090 * config/sparc/tm-sparc.h: Update comments.
8091 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8093 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8095 * i960-tdep.c (i960_find_saved_register): New function.
8096 (i960_get_saved_register): New function.
8097 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8098 (i960_get_saved_register): Declare.
8099 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8101 2002-04-20 David S. Miller <davem@redhat.com>
8103 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8105 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8107 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8108 instead of NUM_PSEUDO_REGS.
8110 2002-04-20 David S. Miller <davem@redhat.com>
8112 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8113 GDB_MULTI_ARCH_PARTIAL
8114 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8115 define, let tm-sp64.h do it.
8117 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8119 * frame.c (find_saved_register): Avoid a NULL pointer
8120 dereference and actually walk the frame list.
8122 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8124 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8125 sorted in most most-recent-used order. Document.
8126 * gdbarch.h, gdbarch.c: Regenerate.
8128 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8130 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8132 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8133 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8134 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8137 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8140 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8141 (build_builtin_type_vec128): Ditto.
8142 (append_composite_type_field): Fix calculation of type length in
8145 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8147 * config/djgpp/README: Update.
8149 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8152 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8154 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8155 (alpha_setup_arbitrary_frame): ...to this.
8156 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8157 for alpha_setup_arbitrary_frame.
8159 2002-04-18 Andrew Cagney <cagney@redhat.com>
8161 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8162 * gdbarch.h, gdbarch.c: Regenerate.
8164 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8165 * target.h (memory_breakpoint_from_pc): Update declaration.
8166 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8168 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8169 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8170 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8171 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8172 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8173 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8174 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8175 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8176 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8177 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8178 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8179 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8181 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8183 * monitor.c (monitor_insert_breakpoint): Ditto.
8184 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8186 * config/mcore/tm-mcore.h: Update copyright.
8187 * mem-break.c: Ditto.
8188 * xstormy16-tdep.c: Ditto.
8190 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8192 * p-exp.y: Add precedence rule for '^' token.
8193 This removes the shift/reduce conflicts.
8194 Remove the comment concerning these shift/reduce conflicts.
8196 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8198 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8199 (registers_powerpc_nofp): New register set for processors
8200 without floating point unit.
8202 2002-04-18 David S. Miller <davem@redhat.com>
8204 * MAINTAINERS: Add myself to write-after-approval.
8206 2002-04-17 Michael Snyder <msnyder@redhat.com>
8208 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8210 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8212 * rs6000-tdep.c (frame_initial_stack_address): Use
8213 frame_register_read to read the alloca_reg.
8215 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8217 * frame.c (find_saved_register): Find saved registers in the next
8221 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8223 * gdbarch.sh (LANG): Set to ``c''.
8225 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8227 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8229 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8231 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8234 * hpread.c (hpread_get_lntt): Add declaration.
8235 Also fix PR gdb/391.
8237 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8239 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8240 * aclocal.m4, configure: Re-generate.
8243 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8245 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8246 instead of tm_print_insn.
8248 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8250 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8252 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8254 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8255 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8256 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8258 2002-04-12 Don Howard <dhoward@redhat.com>
8260 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8261 max_user_call_depth.
8262 (init_cmd_lists): Initialize the new value;
8263 * cli/cli-script.c (execute_user_command): Limit the call depth of
8264 user defined commands. This avoids a core-dump when user commands
8265 are infinitly recursive.
8267 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8269 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8270 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8271 from tdep struct instead of DEFAULT_LR_SAVE.
8272 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8273 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8274 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8276 2002-04-12 Michael Snyder <msnyder@redhat.com>
8278 * Remote.c: Spelling fix.
8279 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8280 If no symbol found for "sbrk", try "_sbrk".
8281 (make_output_phdrs): Use bfd_section_name.
8282 (gcore_copy_callback): Use bfd_section_name.
8283 * eval.c: Indentation fix-ups.
8284 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8285 in case it gets applied to an address that is already
8286 in the instruction space.
8287 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8288 * symfile.c: Fix indentation, long lines.
8289 * source.c: White space fix-up.
8291 2002-04-12 Andrew Cagney <cagney@redhat.com>
8293 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8294 * frame.c (frame_register_read): New function. Return non-zero on
8296 (read_relative_register_raw_bytes_for_frame): Delete.
8297 (read_relative_register_raw_bytes): Delete.
8298 * frame.h (frame_register_read): Declare.
8299 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8301 * infcmd.c (do_registers_info): Ditto.
8302 * hppa-tdep.c: Ditto.
8303 * rs6000-tdep.c: Ditto.
8304 * h8500-tdep.c: Ditto.
8305 * mips-tdep.c: Ditto.
8306 * h8300-tdep.c: Ditto.
8307 * z8k-tdep.c: Ditto.
8309 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8311 From Jimi X <jimix@watson.ibm.com>:
8312 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8315 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8317 From Jimi X <jimix@watson.ibm.com>:
8318 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8321 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8323 From Jimi X <jimix@watson.ibm.com>:
8324 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8325 register sets for these processor variants.
8327 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8329 * regformats/reg-ppc.dat: Support FPSCR.
8331 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8333 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8334 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8335 Add fpscr as an invalid/unfetchable register.
8336 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8337 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8338 (fill_fpregset): Add support for register fpscr.
8339 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8340 (fill_gregset): Account for the fact that register ``mq'' might
8342 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8343 (registers_power): Add fpscr to register set at slot 71.
8344 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8345 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8347 2002-04-11 Michael Snyder <msnyder@redhat.com>
8349 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8350 * configure: Regenerate.
8351 * config.in: Regenerate.
8352 * acconfig.h: Add define for _SYSCALL32.
8353 * core-sol2.c: Remove #define _SYSCALL32.
8354 * solib-legacy.c: Remove #define _SYSCALL32.
8356 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8358 * stack.c (select_frame): Cleanup internal error message, do not
8361 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8363 * stack.c (select_frame): Check that selected_frame and the
8364 specified level are as expected.
8365 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8367 * frame.h (struct frame_info): Add field `level'. Update
8369 Work-in-progress PR gdb/464.
8371 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8373 * maint.c (maint_print_section_info): Rename print_section_info.
8374 (print_bfd_section_info, print_objfile_section_info): Update.
8375 * inferior.h (struct gdbarch): Add opaque declaration.
8376 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8377 * gdbarch.h: Regenerate.
8379 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8381 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8382 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8383 (kernel_u_size): Added.
8384 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8385 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8387 2002-04-04 Jim Ingham <jingham@apple.com>
8389 * valarith.c (find_size_for_pointer_math): New function, either returns
8390 the size for a pointer's target, returns 1 for void *, or errors for
8392 (value_add, value_sub): use find_size_for_pointer_math.
8394 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8396 * linux-low.c (linux_look_up_symbols): New hook.
8397 (linux_target_ops): Add linux_look_up_symbols.
8398 * remote-utils.c (decode_address): New function.
8399 (look_up_one_symbol): New function.
8400 * server.c (handle_query): Call target look_up_symbols hook.
8401 * server.h (look_up_one_symbol): Add prototype.
8402 * target.h (struct target_ops): Add look_up_symbols hook.
8404 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8406 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8407 override FP_REGNUM with frame->fp. Update copyright.
8408 * parse.c (num_std_regs, std_regs): Delete.
8409 (target_map_name_to_register): Do not search std_regs. Update
8410 function description.
8411 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8412 declarations. Update copyright.
8415 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8417 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8418 after the last symbol in a block.
8420 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8422 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8423 is non zero as a found symbol.
8425 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8427 * findvar.c: Include "builtin-regs.h".
8428 (value_of_register): Call value_of_builtin_reg when applicable.
8429 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8430 (target_map_name_to_register): Call
8431 builtin_reg_map_name_to_regnum.
8432 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8433 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8434 (builtin_regs_h): Define.
8435 (builtin-regs.o): New target.
8436 (findvar.o): Add $(builtin_regs_h).
8437 * builtin-regs.c, builtin-regs.h: New files.
8438 * std-regs.c: New file.
8439 Partial fix for PR gdb/251.
8441 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8443 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8444 it's no longer required.
8446 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8448 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8450 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8452 From Jimi X <jimix@watson.ibm.com>:
8453 * rs6000-tdep.c (rs6000_software_single_step): Use
8454 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8455 and size. Use target_insert_breakpoint() and
8456 target_remove_breakpoint() to insert and remove breakpoints
8457 instead of explicit memory reads and writes.
8459 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8461 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8462 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8463 ELF_OBJECT_FORMAT ifdef.
8465 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8467 From Jimi X <jimix@watson.ibm.com>:
8468 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8470 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8472 From Jimi X <jimix@watson.ibm.com>:
8473 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8474 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8476 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8478 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8479 s/asprintf/xasprintf/.
8480 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8482 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8484 I believe Jeff Law denies responsability for this one:
8485 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8486 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8487 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8488 Work-around for PR gdb/366.
8490 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8492 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8493 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8494 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8496 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8498 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8499 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8502 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8504 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8507 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8509 * README (Reporting Bugs in GDB): Document the bug web page as the
8510 prefered way of submitting bugs.
8513 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8515 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8517 * gdbarch.h, gdbarch.c: Re-generate.
8519 2002-04-07 Andreas Schwab <schwab@suse.de>
8521 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8522 buffer to regcache_collect.
8524 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8526 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8527 * gdbarch.c, gdbarch.h: Re-generate.
8529 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8531 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8532 declaration. Fix -Werror.
8534 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8536 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8537 * gdbarch.c: Regenerate.
8539 2002-04-05 Michael Snyder <msnyder@redhat.com>
8541 * breakpoint.c (clear_command): Rewrite middle section to
8542 combine two loops with identical control conditions.
8543 Add a cleanup to eliminate a memory leak.
8544 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8546 2002-04-05 H.J. Lu (hjl@gnu.org)
8548 * solib-svr4.c (bkpt_names): Add "__start".
8550 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8552 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8553 as test for 64 bit target.
8555 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8557 * h8500-tdep.c (h8500_write_fp): Delete function.
8558 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8559 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8560 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8562 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8563 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8565 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8566 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8567 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8568 (d10v_write_fp): Delete function.
8569 * inferior.h (write_fp, generic_target_write_fp): Delete
8571 * regcache.c (generic_target_write_fp): Delete function.
8572 (write_fp): Delete function.
8573 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8574 * gdbarch.h, gdbarch.c: Regenerate.
8575 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8576 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8577 (sparc64_write_fp): Delete declaration.
8578 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8579 (h8500_write_fp): Delete declaration.
8581 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8583 * sparc-tdep.c (sparc64_write_fp): Delete.
8584 (sparc_push_dummy_frame): Replace write_fp call with code to store
8586 (sparc_gdbarch_init): Do not initialize write_fp.
8588 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8590 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8593 2002-03-29 Jim Blandy <jimb@redhat.com>
8595 * stack.c (get_selected_block): Add new argument `addr_in_block',
8596 used to return the exact code address we used to select the block,
8598 * blockframe.c (get_frame_block, get_current_block): Same.
8599 * frame.h (get_frame_block, get_current_block,
8600 get_selected_block): Update declarations.
8601 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8602 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8604 2002-04-05 Michael Snyder <msnyder@redhat.com>
8606 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8609 2002-04-05 J. Brobecker <brobecker@gnat.com>
8611 * utils.c (xfullpath): New function.
8612 * defs.h (xfullpath): Add declaration.
8613 * source.c (openp): Use xfullpath in place of gdb_realpath to
8614 avoid resolving the basename part of filenames when the
8615 associated file is a symbolic link. This fixes a potential
8616 inconsistency between the filenames known to GDB and the
8617 filenames it prints in the annotations.
8618 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8619 to be able to match a filename with either the real filename, or
8620 the name of any symbolic link to this file.
8621 (lookup_partial_symtab): Ditto.
8623 2002-04-04 Michael Snyder <msnyder@redhat.com>
8625 * breakpoint.c: Add support for hardware breakpoints in overlays.
8626 (overlay_events_enabled): New state variable.
8627 (insert_breakpoints): Use overlay_events_enabled to decide
8628 whether to attempt to set a breakpoint at the overlay load addr.
8629 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8630 (remove_breakpoint): Use overlay_events_enabled to decide
8631 whether breakpoints need to be removed from overlay load addr.
8632 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8633 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8634 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8635 disable_overlay_breakpoints): Update overlay_events_enabled.
8637 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8639 * dwarf2read.c (struct function_range): New.
8640 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8641 (check_cu_functions): New.
8642 (read_file_scope): Initialize global function lists.
8643 Call dwarf_decode_line after processing children.
8644 (read_func_scope): Add to global function list.
8645 (dwarf_decode_lines): Call check_cu_functions everywhere
8646 record_line is called. Call record_line with a linenumber
8647 of 0 to mark sequence ends.
8649 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8651 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8652 change sync with glibc.
8654 2002-04-03 Jim Blandy <jimb@redhat.com>
8656 * configure.in: Call AC_C_INLINE.
8657 * configure: Regenerated.
8659 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8661 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8662 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8664 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8666 * NEWS: Mention gcore support on FreeBSD/i386.
8668 * fbsd-proc.c: New file.
8669 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8670 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8672 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8675 2002-03-29 Jim Blandy <jimb@redhat.com>
8677 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8678 unescaped newlines in string literals, but newer ones don't. So
8681 2002-03-26 Michael Snyder <msnyder@redhat.com>
8682 Andrew Cagney <cagney@redhat.com>
8684 * cli/cli-dump.c: New file. Dump memory to file,
8685 restore file to memory.
8686 * cli/cli-dump.h: New file.
8687 * Makefile.in: Add rules, dependencies for cli-dump.o.
8688 * NEWS: Mention new commands.
8690 2002-03-28 Michael Snyder <msnyder@redhat.com>
8692 * symfile.c (symbol_file_add): Move test for null symbols to later.
8694 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8696 From veksler at il.ibm.com:
8697 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8698 the xstrduped original path.
8701 2002-03-27 Michael Snyder <msnyder@redhat.com>
8703 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8704 * infcmd.c (_initialize_infcmd): Ditto.
8705 * language.c (_initialize_language): Ditto.
8706 * symfile.c (_initialize_symfile): Ditto.
8707 * top.c (_init_main): Ditto.
8708 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8710 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8712 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8713 vector registers handling.
8714 (skip_prologue): Handle new AltiVec instructions. Fill in new
8715 fields of frame data.
8716 (frame_get_saved_regs): Fill in information for AltiVec registers.
8718 2002-03-27 Jim Blandy <jimb@redhat.com>
8720 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8721 a function; leave this macro here to invoke that function.
8722 (symbol_init_mangled_name): Declaration for that function.
8723 * symtab.c (symbol_init_mangled_name): New function.
8725 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8727 * valarith.c: Replace strerror with safe_strerror.
8728 * tracepoint.c: Ditto.
8730 * go32-nat.c: Ditto.
8734 2002-03-27 Andreas Schwab <schwab@suse.de>
8736 * event-top.c (command_line_handler): Remove useless if.
8738 2002-03-27 Andreas Jaeger <aj@suse.de>
8740 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8743 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8745 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8746 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8747 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8748 (x86_64_linux_dr_get_status, supply_gregset),
8749 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8750 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8751 (x86_64_register_info_table): Add.
8752 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8753 (x86_64_register_raw_size, x86_64_register_virtual_type),
8754 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8755 general x86_64_register_info_table.
8756 (i386_gdbarch_init): gdbarch_register_bytes is now set
8757 dynamicaly during initialization.
8758 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8759 * gdbserver/linux-x86-64-low.c: Ditto.
8761 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8763 * gdbserver/server.c (main): Call target_signal_to_host_p
8764 and target_signal_to_host on signals received from the remote.
8765 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8766 target_signal_from_host on signals sent to the remote.
8767 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8768 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8770 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8772 * signals/signals.c: Include "server.h" in gdbserver build.
8773 (target_signal_from_name): Don't use STREQ.
8774 (_initialize_signals): Likewise. Don't include function in
8777 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8779 * signals.c: Moved to...
8780 * signals/signals.c: Here.
8781 * Makefile (signals.o): Update.
8783 2002-03-26 Jeff Law (law@redhat.com)
8785 * somread.c (som_symtab_read): Remove some commented out code and
8786 updated related comments. Do not set the minimal symbol table to
8787 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8788 in a dynamic executable.
8789 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8790 where we are unable to find the minimal symbol for the given
8793 2002-03-25 Jeff Law (law@redhat.com)
8795 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8797 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8799 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8801 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8803 * command.h: Update copyright.
8804 (struct cmd_list_element): Replace definition with opaque
8806 (enum cmd_types): Document that it will eventually be moved to
8808 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8809 (MALLOCED_REPLACEMENT): Delete macro.
8810 * Makefile.in (cli_decode_h): Add $(command_h).
8811 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8812 * top.c: Include "cli/cli-decode.h".
8813 * completer.c: Include "cli/cli-decode.h".
8814 * maint.c: Include "cli/cli-decode.h".
8815 * cli/cli-decode.h: Include "command.h".
8816 (enum command_class): Delete.
8817 (enum cmd_types): Comment out.
8818 (enum cmd_auto_boolean): Delete.
8819 (enum var_types): Delete.
8821 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8823 * cli/cli-decode.c: Include "gdb_assert.h".
8824 (add_set_or_show_cmd): New static function.
8825 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8826 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8827 all fields, such as func, from the set command.
8829 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8831 * MAINTAINERS (sh-elf): Change warning flag to -w.
8833 2002-03-23 Andrew Cagney <cagney@redhat.com>
8835 * defs.h (error): Add printf format attribute.
8836 * thread-db.c (thread_from_lwp): Fix error format string.
8837 * stack.c (parse_frame_specification): Ditto.
8838 * cli/cli-decode.c (undef_cmd_error): Ditto.
8839 * scm-lang.c (scm_lookup_name): Ditto.
8840 * tracepoint.c (trace_error): Ditto.
8841 * remote-utils.c (usage): Ditto.
8842 * remote.c (compare_sections_command): Ditto.
8845 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8847 * gdbtypes.c (append_composite_type_field): New function.
8848 (init_composite_type): New function.
8849 * gdbtypes.h (append_composite_type_field): Declare.
8850 (init_composite_type): Ditto.
8852 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8854 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8856 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8857 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8858 structure returning convention for SYSV ABI case, but not
8859 for GNU/Linux, FreeBSD, or NetBSD.
8861 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8863 * symtab.h (lookup_block_symbol): Add mangled_name argument
8866 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8867 with new mangled_name argument.
8868 * linespec.c (decode_line_1): Likewise.
8869 * valops (value_of_this): Likewise.
8870 * symtab.c (lookup_transparent_type): Likewise.
8871 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8872 (lookup_symbol): If we are given a mangled name, pass it down
8873 to lookup_symbol_aux.
8874 (lookup_block_symbol): If we are given a mangled name to check
8875 against, only return symbols which match it.
8877 2002-03-22 Christopher Faylor <cgf@redhat.com>
8879 * win32-nat.c (child_create_inferior): Check for proper shell to use
8880 here, in case the user changes it on the fly.
8881 (_initialize_inftarg): Remove shell path considerations.
8883 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8885 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8886 for gdbarch_max_register_raw_size and max_register_virtual_size.
8887 Adjust copyright year.
8889 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8891 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8892 in a function to cover the entire beginning of the function
8893 as well if it does not already.
8895 2002-03-21 Tom Rix <trix@redhat.com>
8897 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8898 (rs6000_ptrace64): Renamed from ptrace64.
8900 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8902 * gdbserver/remote-utils.c (remote_open): Don't call
8903 getprotobyname, we're all using TCP here so just use
8905 * gdbserver/gdbreplay.c (remote_open): Ditto.
8907 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8909 * regcache.c (_initialize_regcache): No need to call
8910 build_regcache() at this time; it gets called whenever
8911 the gdbarch changes.
8913 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8915 * sparc-nat.c: Include sys/param.h where possible.
8917 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8920 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8921 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8922 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8924 * stabsread.c (rs6000_builtin_type): Likewise.
8925 (read_sun_floating_type): Likewise.
8927 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8929 * stabsread.c (read_member_functions): Remove skip code for duplicate
8930 constructor/destructor methods. Use standard parsing for these
8931 methods and just do not chain them to the list of methods after
8934 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8936 * coffread.c: Remove redundant static declarations. Replace
8937 occurrences of `PTR' with `void *'.
8938 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8939 * top.h (quit_cover): Likewise.
8940 * defs.h (catch_errors): Likewise.
8942 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8944 * defs.h (XMALLOC): Define.
8945 * gdb-events.sh (XMALLOC): Delete macro.
8946 * gdb-events.c, gdb-events.h: Regenerate.
8947 * gdbarch.sh (XMALLOC): Delete macro.
8948 * gdbarch.c: Regenerate.
8949 * serial.c (XMALLOC): Delete macro.
8950 * ui-file.c (XMALLOC): Ditto.
8951 * ser-unix.h (XMALLOC): Ditto.
8952 * sh-tdep.c (XMALLOC): Ditto.
8953 * ui-out.c (XMALLOC): Ditto.
8954 * utils.c (XMALLOC): Ditto.
8955 * i386-tdep.c (XMALLOC): Ditto.
8956 * gdb-events.c (XMALLOC): Ditto.
8957 * d10v-tdep.c (XMALLOC): Ditto.
8958 * cli-out.c (XMALLOC): Ditto.
8960 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8961 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8962 * ui-file.c, ui-out.c: Ditto.
8964 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8966 * command.h (struct cmd_list_element): Add field context.
8967 (set_cmd_context, get_cmd_context): Declare.
8968 * cli/cli-decode.h: Ditto.
8969 * cli/cli-decode.c (get_cmd_context): New function.
8970 (set_cmd_context): New function.
8971 (add_cmd): Initialize context.
8972 Part of fixing PR gdb/145 and PR gdb/146.
8974 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8976 * cli/cli-decode.c (cmd_type): New function.
8977 * command.h (cmd_type): Declare.
8978 * infrun.c (set_schedlock_func): Call function cmd_type.
8979 * kod.c (kod_set_os): Call cmd_type.
8980 * cris-tdep.c (cris_version_update): Use function cmd_type.
8981 (cris_mode_update, cris_abi_update): Ditto.
8983 * command.h: (execute_cmd_post_hook): Declare.
8984 (execute_cmd_pre_hook): Declare.
8985 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8986 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8987 functions. Execute pre/post hook while ensuring that afterwords
8989 * top.c (execute_command): Use execute_cmd_post_hook, and
8990 execute_cmd_pre_hook to execute pre/post commands.
8991 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8993 (hook_stop_stub): Call execute_cmd_pre_hook.
8995 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8997 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8998 set'' and this leads to a core dump. Move xstrdup of
8999 operating_system to after check that it is not NULL.
9001 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9003 * kod.c (kod_set_os): Remove unnecessary check that
9004 ``command->type'' is set_cmd.
9006 * valprint.c (set_input_radix): Use input_radix.
9007 (set_output_radix): Use output_radix.
9008 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9011 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9013 * value.h (struct value): Delete field ``substring_addr''. Change
9014 aligner fields to force_doublest_align, force_longest_align,
9015 force_core_addr_align and force_pointer_aligh.
9017 * value.h (struct value): Fix typo in above change.
9019 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9021 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9022 to fix internal_error from ``maintenance print architecture''.
9024 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9026 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9027 for gcc versions after gcc-2.8.1.
9029 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9031 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9032 for method resolution. Restore adjustment of ``this'' pointer after
9033 calling value_struct_elt, which was accidentally removed during the
9036 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9038 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9040 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9042 * value.h (value_of_register): Update.
9044 2002-03-14 Richard Henderson <rth@redhat.com>
9046 * configure.in: Detect declaration for canonicalize_file_name.
9047 * utils.c (canonicalize_file_name): Declare, if needed.
9048 (gdb_realpath): Prefer realpath if available and usable.
9049 * config.in, configure: Rebuild.
9051 2002-03-14 Richard Henderson <rth@redhat.com>
9053 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9054 a constant array bound.
9056 * MAINTAINERS: Add myself to write-after-approval.
9058 2002-03-14 Michael Snyder <msnyder@redhat.com>
9060 * symfile.c (syms_from_objfile): Return immediately if no syms.
9061 (symbol_file_add): Return immediately if no syms.
9062 (find_sym_fns): Return immediately if no syms.
9064 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9066 * gdbserver/remote-util.c (remote_open): Print remote-side's
9067 IP address when remote debugging over the network.
9069 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9071 * config/sparc/fbsd.mh: Fix copyright.
9072 * config/sparc/fbsd.mt: Likewise.
9074 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9076 * MAINTAINERS: Fix typo in name of gdb warnings option.
9077 (x86-64): Fix formating so that this can be parsed by awk.
9079 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9081 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9082 * defs.h: Include "gdb/signals.h".
9083 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9085 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9087 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9088 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9091 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9092 Don Howard <dhoward@redhat.com>
9094 * mips-tdep.c (ST0_FR): Define.
9095 (mips2_fp_compat): New function, temporarily disabled.
9096 (mips_read_fp_register_single): New function.
9097 (mips_read_fp_register_double): New function.
9098 (mips_print_register): Use them.
9099 (do_fp_register_row): Likewise.
9101 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9103 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9106 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9108 * stabsread.c (read_member_functions): Fix is_stub test for
9109 static member functions, improve comment.
9111 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9113 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9114 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9115 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9116 commands that set boolean values.
9117 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9118 (arm_rdi_resume): Always initialize PC.
9119 (arm_rdi_open): Don't use rslt as a boolean.
9120 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9121 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9122 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9123 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9125 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9127 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9128 * configure: Rebuilt.
9130 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9132 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9133 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9135 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9137 * cli/cli-decode.c (set_cmd_completer): New function.
9138 * command.h (set_cmd_completer): Declare.
9139 * cli/cli-decode.h (set_cmd_completer): Ditto.
9141 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9142 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9143 * win32-nat.c (_initialize_inftarg): Ditto.
9144 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9145 * proc-api.c (_initialize_proc_api): Ditto.
9146 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9147 * source.c (_initialize_source): Ditto.
9148 * exec.c (_initialize_exec): Ditto.
9149 * solib.c (_initialize_solib): Ditto.
9150 * top.c (init_main): Ditto.
9151 * tracepoint.c (_initialize_tracepoint): Ditto.
9152 * symfile.c (_initialize_symfile): Ditto.
9153 * printcmd.c (_initialize_printcmd): Ditto.
9154 * infcmd.c (_initialize_infcmd): Ditto.
9155 * corefile.c (_initialize_core): Ditto.
9157 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9159 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9161 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9163 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9165 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9167 * NEWS: Update headings, 5.2 has branched.
9169 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9171 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9172 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9173 (register_addr, REGISTER_RAW_SIZE): Likewise.
9174 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9175 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9177 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9179 * MAINTAINERS (x86-64): Add myself.
9180 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9181 changed value_ptr -> struct value *
9183 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9185 * configure.host (sparc64-*-freebsd): Add.
9186 * configure.tgt: Likewise.
9187 * config/sparc/fbsd.mh: New file.
9188 * config/sparc/fbsd.mt: Likewise.
9189 * config/sparc/nm-fbsd.h: Likewise.
9190 * config/sparc/tm-fbsd.h: Likewise.
9192 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9194 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9195 regformats/reg-s390x.dat.
9197 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9199 * utils.c: Add FIXME explaining true/false problem.
9201 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9203 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9205 2002-02-28 Michael Chastain <mec@shout.net>
9207 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9209 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9211 * gdbserver/linux-s390-low.c: New file.
9212 * regformats/reg-s390.dat: New file.
9213 * regformats/reg-s390x.dat: New file.
9214 * gdbserver/configure.srv: Add S/390.
9215 * gdbserver/Makefile.in: Add S/390.
9216 * configure.tgt: Enable gdbserver for S/390.
9218 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9220 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9221 first line of the doc string for "info dos", except at the end of
9222 the sentence, since the short help stops at the first period.
9224 2002-02-28 Jason Merrill <jason@redhat.com>
9226 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9228 2002-02-27 Fred Fish <fnf@redhat.com>
9230 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9231 comment (dumy -> dummy).
9233 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9235 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9237 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9239 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9241 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9243 * gdbserver/acconfig.h: New file.
9244 * gdbserver/i387-fp.c: New file.
9245 * gdbserver/i387-fp.h: New file.
9246 * gdbserver/linux-x86-64.c: New file.
9247 * regformats/reg-x86-64.dat: New file.
9248 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9249 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9250 * gdbserver/configure.in: Add support for regsets.
9251 * gdbserver/config.in: Regenerate.
9252 * gdbserver/configure: Regenerate.
9253 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9254 * gdbserver/linux-low.h: New file.
9255 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9257 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9258 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9259 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9260 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9261 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9262 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9263 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9264 "i387-fp.h". Add PTRACE_GETREGS and friends.
9265 * gdbserver/regcache.c (supply_register): New function.
9266 (supply_register_by_name): New function.
9267 (collect_register): New function.
9268 (collect_register_by_name): New function.
9270 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9272 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9273 (config.status): Add configure.srv dependency.
9274 (server_h): Add config.h dependency.
9276 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9278 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9279 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9280 * gdbserver/configure.srv: Change i386-*-linux* to use
9283 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9285 * x86-64-tdep.c: Re-indent. Update copyright date.
9287 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9289 From Michal Ludvig <mludvig@suse.cz>:
9290 * x86-64-tdep.c (value.h): Delete.
9291 (gdb_assert.h): Include.
9292 (x86_64_register_convert_to_virtual,
9293 x86_64_register_convert_to_raw ): Add check which lets only
9294 floating-point values to be converted.
9295 (value_push): Delete.
9296 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9297 (i386_gdbarch_init): Number of register_bytes fixed.
9299 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9301 * MAINTAINERS: Add x86-64 target.
9303 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9305 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9306 * osfsolib.c (solib_map_sections): Ditto.
9307 * irix5-nat.c (solib_map_sections): Ditto.
9308 * corelow.c (gdb_check_format): Ditto.
9309 * symfile.c (symfile_bfd_open): Ditto.
9310 * solib.c (solib_map_sections): Ditto.
9313 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9315 * remote.c (_initialize_remote): By default, disable ``e'' and
9316 ``E'' step out-of-range packets.
9318 2002-02-26 Andreas Schwab <schwab@suse.de>
9320 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9321 m68k_linux_frame_saved_pc.
9322 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9324 (SIGCONTEXT_PC_OFFSET): Remove.
9325 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9326 m68k_linux_sigtramp_saved_pc): New functions.
9327 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9328 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9329 (UCONTEXT_PC_OFFSET): Define.
9330 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9331 non-RT and RT signal trampolines.
9333 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9335 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9336 (TARGET_NBPG, STACK_END_ADDR): Delete
9337 (VARIABLES_INSIDE_BLOCK): Delete.
9339 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9341 * utils.c (perror_with_name): Make string parameter constant.
9342 (print_sys_errmsg): Ditto.
9344 * defs.h (perror_with_name): Update.
9345 (print_sys_errmsg): Update.
9348 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9350 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9351 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9353 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9355 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9356 if it already matches the current architecture from the exec file.
9357 Include arch-utils.h for gdbarch_info_init prototype.
9358 * Makefile.in (rs6000-nat.o): Update dependencies.
9360 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9362 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9363 list of exported variables.
9365 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9367 * gdbserver/configure.srv: New file.
9368 * gdbserver/configure.in: Use configure.srv instead
9369 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9371 * gdbserver/configure: Regenerated.
9372 * gdbserver/terminal.h: New file.
9373 * gdbserver/Makefile.in: Update for configure changes. Remove
9374 more unneeded include paths.
9376 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9378 From wiz at danbala:
9379 * config/sparc/tm-sp64.h: Fix grammar and typos.
9382 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9384 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9385 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9386 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9387 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9388 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9389 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9390 * s390-tdep.c: Ditto.
9391 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9392 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9393 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9394 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9395 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9396 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9397 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9398 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9399 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9400 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9403 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9405 * lin-thread.c: Delete file.
9406 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9407 to gdb_proc_service.h.
9408 * configure: Re-generate.
9410 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9411 * serial.c (serial_open): Delete check for "ocd".
9414 * Makefile.in (linux-thread.o): Delete target.
9415 * linux-thread.c: Delete file.
9417 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9418 renamed SH files to be consistent.
9420 * symtab.c (sort_search_symbols): Use xfree.
9422 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9424 * arm-linux-tdep.c (arm_linux_init_abi): Register
9425 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9426 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9427 definition with undef, since we don't want the sysvr4 definition.
9428 (SKIP_TRAMPOLINE_CODE): Likewise.
9430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9432 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9434 * configure.in: (AC_CHECK_FUNCS) Added test for
9435 canonicalize_file_name Regenerated.
9436 * config.in, configure: Regenerated.
9437 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9438 defined use canonicalize_file_name.
9440 2002-02-23 Michael Chastain <mec@shout.net>
9442 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9444 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9446 * README: Remove references to cygnus.com.
9447 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9448 dot com'' form. Remove references to cygnus.com and sourceware.
9450 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9452 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9453 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9454 1003.1-2001 no longer allows "head -1".
9455 * gdb/Makefile.in (version.c): Likewise.
9456 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9457 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9458 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9460 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9462 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9463 * command.h (cmd_cfunc_eq): Declare.
9464 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9466 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9467 ``struct cmd_list_element *''.
9468 * cli/cli-cmds.c (is_complete_command): Update. Use
9470 * top.c (execute_command): Pass the command to
9471 is_complete_command.
9472 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9474 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9476 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9477 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9478 architecture defines.
9479 * s390-tdep.c (s390_gdbarch_init): Likewise.
9481 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9483 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9484 (arm_linux_push_arguments): Likewise.
9485 (arm_linux_init_abi): Register them. Also register linux-specific
9487 (find_minsym_and_objfile): Use strcmp, not STREQ.
9488 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9489 (arm_linux_call_dummy_words): Delete declaration.
9490 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9491 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9493 (LOWEST_PC): Delete.
9495 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9497 * maint.c (print_section_info): Do not prepend `0x' to filepos
9498 output, it will be handled by local_hex_string_custom.
9500 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9502 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9503 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9504 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9506 2002-02-22 Jim Blandy <jimb@redhat.com>
9508 Indicate that the bcache functions don't change the strings
9510 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9511 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9513 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9515 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9517 2002-02-21 Christopher Faylor <cgf@redhat.com>
9519 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9520 find the complete path to a loaded DLL.
9522 2002-02-21 Fred Fish <fnf@redhat.com>
9524 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9525 that marks the end of the range of a function, enter a line number
9526 entry that has a line number of zero and a PC offset that matches
9527 the end of the function. This starts a range of PC's for which no
9528 line number information is known.
9529 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9530 PC's for which no line number info is found (line number is zero)
9531 then we didn't find any valid line information.
9532 * symtab.h: Document use of zero line number entry.
9534 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9536 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9537 (have_ptrace_getvrregs): Define for run time checks.
9538 (gdb_vrregset_t): New type for Altivec register handling.
9539 (fetch_register, store_register): Fetch/store altivec register
9541 (fetch_altivec_register, store_altivec_register): New functions.
9542 (supply_vrregset, fill_vrregset): New functions.
9543 (fetch_altivec_registers, store_altivec_registers): New functions.
9544 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9547 2002-02-21 Jiri Smid <smid@suse.cz>
9549 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9551 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9553 * Makefile.in (armnbsd-nat.o): Update dependencies.
9554 * armnbsd-nat.c (supply_gregset): New function. Common code to
9555 supply the integer register set.
9556 (supply_fparegset): New function. Similar for FPA registers.
9557 (fetch_regs, fetch_fp_regs): Use them.
9558 (fetch_core_registers): Likewise.
9559 (fetch_elfcore_registers): New function.
9560 (arm_netbsd_elfcore_fns): New core-file type specification.
9561 (_initialize_arm_netbsd_nat): Register it.
9563 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9565 * armnbsd-nat.c: Include gdbcore.h.
9566 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9567 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9568 'void' to declaration, to shut up ARI.
9569 (fetch_core_registers): Make static. Rewrite using supply_register.
9570 (arm_netbsd_core_fns): New core-file type specification.
9571 (_initialize_arm_netbsd_nat): New function.
9573 2002-02-21 Christopher Faylor <cgf@redhat.com>
9575 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9578 2002-02-20 Christopher Faylor <cgf@redhat.com>
9580 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9583 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9585 * jv-exp.y (parse_number): Change type of implicit longs
9586 to builtin_type_uint64.
9588 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9590 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9591 to be an integer instead of a `union wait'.
9593 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9595 * mips-linux-nat.c: Call the operating system GNU/Linux.
9596 * mips-linux-tdep.c: Likewise.
9597 * mips-tdep.c: Likewise.
9599 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9602 * jv-exp.y (parse_number): Handle 64-bit integers.
9604 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9606 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9607 AC_STDC_HEADERS to AC_HEADER_STDC.
9608 * gdbserver/configure: Regenerated.
9610 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9612 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9614 * sparc-tdep.c (get_longjmp_target): Likewise.
9616 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9618 * News: Add news about ARM and Multi-arch. Mention the new target
9621 2002-02-19 Jim Blandy <jimb@redhat.com>
9623 * stabsread.c (error_type_complaint): Improve error message.
9625 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9627 * gdbserver/README: Update documentation.
9628 * gdbserver/configure.in: Update configury to match documentation.
9629 * gdbserver/Makefile.in: Likewise.
9630 * gdbserver/configure: Regenerated.
9631 * gdbserver/aclocal.m4: New file, generated by aclocal.
9632 * gdbserver/config.in: New file, generated by autoheader.
9634 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9636 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9639 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9641 * arm-tdep.h (enum arm_float_model): New enum.
9642 (struct gdbarch_tdep): Add fp_model.
9643 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9644 up floating-point conversions until we know the floating-point model
9645 in use by the inferior. Don't complain about being unable to
9646 determine the ABI of the inferior when we don't have one.
9647 (arm_extract_return_value): Support different floating-point models.
9648 (arm_store_return_value): Likewise.
9649 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9651 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9653 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9655 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9656 of ``current_gdbarch''.
9658 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9660 * armnbsd-nat.c : ANSIfy all function declarations.
9661 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9662 (fetch_inferior_registers): Re-implement in terms of above.
9663 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9664 (store_inferior_registers): Re-implement in terms of above.
9666 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9668 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9670 * arm-linux-tdep.c: Likewise.
9671 * config/arm/tm-linux.h: Likewise.
9673 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9675 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9676 * config/arm/nbsd.mt (TM_FILE): Delete.
9677 * config/arm/tm-nbsd.h: Delete.
9679 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9681 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9682 Initialize CALL_DUMMY_LENGTH.
9684 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9686 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9688 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9689 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9690 defines one thing and that is incorrect for this port.
9691 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9693 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9695 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9697 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9699 * win32-nat.c (display_selector): New function. Displays information
9700 about the information returned by GetThreadSelectorEntry API function.
9701 (display_selectors): New function. Displays the infomation of
9702 the selector given as argument, or of CS, DS ans FS selectors
9703 if no argument is given.
9704 ( _initialize_inftarg): Add "w32" as info prefix command.
9705 Add "info w32 selector" as command calling display_selectors.
9707 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9709 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9710 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9713 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9715 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9717 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9719 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9720 (arm_fix_call_dummy): Call it.
9721 (arm_call_dummy_breakpoint_offset): Delete.
9722 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9723 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9725 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9727 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9728 Default to func_frame_chain_valid.
9729 * gdbarch.h, gdbarch.c: Re-generate.
9730 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9732 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9734 * ppc-linux-nat.c: Update copyright.
9735 (fetch_register, store_register): Add tid parameter, don't compute
9737 (fetch_ppc_registers, store_ppc_registers): Add tid
9738 parameter. Pass it along to callees.
9739 (fetch_inferior_registers, store_inferior_registers): Compute tid
9740 here, and pass it to calleed functions.
9741 (fill_gregset, supply_fpregset): Clean up formatting.
9743 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9745 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9746 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9748 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9750 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9751 * gdbarch.c gdbarch.h: Regenerate.
9752 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9754 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9755 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9756 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9758 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9759 * arm-tdep.c (arm_get_longjmp_target): New function.
9760 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9761 this to a positive value register arm_get_longjmp_target as the
9763 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9764 (arm_linux_init_abi): Set up longjmp description in tdep.
9765 * armnbsd-nat.c (get_longjmp_target): Delete.
9766 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9767 description in tdep.
9768 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9769 (get_longjmp_target): Delete declaration.
9770 (GET_LONGJMP_TARGET): Delete.
9771 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9772 (GET_LONGJMP_TARGET): Delete.
9774 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9776 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9777 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9778 of ``current_gdbarch''.
9780 2002-02-17 Tom Tromey <tromey@redhat.com>
9782 * cli/cli-cmds.c (compare_strings): New function.
9783 (complete_command): Only print each unique item once.
9784 * completer.h (complete_line): Declare.
9785 * completer.c (complete_line): New function.
9786 (line_completion_function): Use it.
9788 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9790 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9791 * gdbarch.h, gdbarch.c: Re-generate.
9793 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9795 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9797 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9799 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9800 * valops.c (value_arg_coerce): Don't take the address of a reference
9801 to convert an argument to a reference.
9803 2002-02-15 Christopher Faylor <cgf@redhat.com>
9805 * win32-nat.c (get_image_name): New function.
9806 (handle_load_dll): Use get_image_name function.
9807 (get_child_debug_event): Avoid registering debug events until possibly
9808 execed process is started.
9809 (child_create_inferior): Allow invocation via shell so that command
9810 line redirection, etc. works ok.
9811 (_initialize_inftarg): Add new command: "set shell" to control whether
9812 a shell is used to start a process.
9814 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9816 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9817 instead of find_register_by_number.
9818 (cannot_store_register): Likewise.
9820 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9822 * dwarf2read.c: Replace fprintf (stderr, ...) by
9823 fprintf_unfiltered (gdb_stderr, ...).
9825 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9827 * gdbserver/gdbserver.1: Document --attach.
9829 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9831 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9833 * arm-tdep.c (arm_default_arm_le_breakpoint)
9834 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9835 (arm_default_thumb_be_breakpoint): New. Initialize them from
9836 traditional breakpoint defines.
9837 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9838 (arm_gdbarch_init): Initialize new breakpoint variables.
9839 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9840 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9841 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9842 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9844 (arm_netbsd_init_abi_common): ... here; new function.
9845 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9846 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9847 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9848 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9850 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9852 * arm-tdep.h (enum arm_abi): New enum.
9853 (struct gdbarch_tdep): New structure.
9854 (LOWEST_PC): Provide a default.
9855 (arm_gdbarch_register_os_abi): Declare new function.
9856 * arm-tdep.c (arm_abi_names): New array.
9857 (process_note_abi_tag_sections): New function.
9858 (get_elfosabi): New function.
9859 (arm_gdbarch_register_os_abi): New function.
9860 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9861 support for that ABI has been built in, then call the appropriate
9862 configuration routine. Use gdbarch_num_regs() to get the number
9864 (arm_dump_tdep): New function.
9865 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9866 place-holder functions.
9867 (_initialize_arm_tdep): Register them.
9868 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9870 * armnbsd-tdep.c: New file.
9871 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9872 * config/arm/nbsd.mt (TDEPFILES): Add it.
9873 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9875 * armnbsd-nat.c: Include regcache.h.
9876 * Makefile.in (armnbsd-nat.o): Update dependency list.
9878 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9880 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9882 * gdbserver/Makefile.in: Fix typos in target rules.
9884 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9886 Fix part of PR gdb/267.
9887 * linespec.c (find_methods): Handle constructors specially for now.
9889 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9891 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9893 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9894 standard_coerce_float_to_double().
9896 2002-02-14 Christopher Faylor <cgf@redhat.com>
9898 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9901 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9903 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9904 find_variant_by_name, because it confuses the multiarch
9905 framework. Return NULL if there isn't an architecture with the
9906 user supplied name, instead of forcing a different one without
9907 recording the change with the multiarch machinery.
9908 (find_variant_by_name): Delete.
9910 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9912 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9913 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9915 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9917 * stack.c (print_frame_info_base): When calling
9918 print_frame_info_listing_hook, set current_source_symtab.
9920 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9922 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9923 and remove unused $(INCLUDE_DIR).
9924 Add regcache.c to OBS.
9925 Add generated register protocol files to clean target.
9926 Update dependencies for new objects, obsolete old target code.
9928 * gdbserver/linux-low.c: Remove all platform-specific code to
9929 new files. Remove various dead code. Update to use regcache
9931 * gdbserver/remote-utils.c (fromhex): Add return statement
9933 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9935 (input_interrupt): Add integer parameter to match prototype
9936 of a signal handler.
9937 (outreg): Use register_data ().
9938 (prepare_resume_reply): Use gdbserver_expedite_regs.
9939 * gdbserver/server.c (main): Dynamically allocate own_buf because
9940 PBUFSIZ is no longer constant. Use registers_to_string () and
9941 registers_from_string ().
9942 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9943 for error (), fatal (), and warning (). Update definition of
9944 PBUFSIZ to use regcache functionality. Add include guard.
9945 * gdbserver/utils.c (fatal): Add missing ``const''.
9946 (warning): New function.
9948 * regformats/regdat.sh: Include "regcache.h" in generated files.
9949 Provide init_registers () function.
9950 * regformats/regdef.h: Add prototype for set_register_cache ().
9953 * gdbserver/linux-arm-low.c: New file.
9954 * gdbserver/linux-i386-low.c: New file.
9955 * gdbserver/linux-ia64-low.c: New file.
9956 * gdbserver/linux-m68k-low.c: New file.
9957 * gdbserver/linux-mips-low.c: New file.
9958 * gdbserver/linux-ppc-low.c: New file.
9959 * gdbserver/linux-sh-low.c: New file.
9961 * gdbserver/regcache.c: New file.
9962 * gdbserver/regcache.h: New file.
9964 * gdbserver/low-linux.c: Removed obsolete file.
9966 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9968 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9969 * config/i386/linux.mt: Likewise.
9970 * config/ia64/linux.mt: Likewise.
9971 * config/m68k/linux.mh: Likewise.
9972 * config/powerpc/linux.mh: Likewise.
9973 * config/mips/linux.mt: Likewise.
9975 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9977 * config/i386/i386lynx.mh: Mark gdbserver variables
9978 as (currently) obsolete for this target.
9979 * config/i386/nbsd.mt: Likewise.
9980 * config/i386/nbsdelf.mt: Likewise.
9981 * config/m32r/m32r.mt: Likewise.
9982 * config/m68k/m68klynx.mh: Likewise.
9983 * config/m68k/nbsd.mt: Likewise.
9984 * config/m68k/sun3os4.mh: Likewise.
9985 * config/mips/vr5000.mt: Likewise.
9986 * config/ns32k/nbsd.mt: Likewise.
9987 * config/pa/hppabsd.mh: Likewise.
9988 * config/pa/hppaosf.mh: Likewise.
9989 * config/powerpc/nbsd.mt: Likewise.
9990 * config/rs6000/rs6000lynx.mh: Likewise.
9991 * config/s390/s390.mt: Likewise.
9992 * config/s390/s390x.mt: Likewise.
9993 * config/sparc/sparclynx.mh: Likewise.
9994 * config/sparc/sun4os4.mh: Likewise.
9995 * config/i386/x86-64linux.mt: Likewise.
9996 * config/sparc/linux.mh: Likewise.
9998 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10000 * configure.tgt: Configure gdbserver only for known working
10001 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10002 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10003 SUBDIRS if it is configured. Update comment for ${nativefile}.
10004 * configure: Regenerated.
10006 2002-02-13 Michael Snyder <msnyder@redhat.com>
10008 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10010 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10011 (default_gcore_mach): Just return 0, work around a problem in bfd.
10012 (default_gcore_target): OK to return NULL if exec_bfd is null.
10013 (make_mem_sec): Use a cast, avoid a warning.
10015 * procfs.c (find_memory_regions_callback): Use a cast instead of
10016 calling host_pointer_to_address (which complains if
10017 sizeof (host pointer) != sizeof (target pointer)).
10018 (procfs_make_note_section): Avoid overflow in psargs string.
10020 * procfs.c (procfs_make_note_section): Make the default
10021 implementation return an error.
10023 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10025 * procfs.c (procfs_make_note_section): Provide a default definition
10026 (for alpha-dec-osf4.0f). Fix typos.
10028 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10030 * linux-proc.c: Add include of regcache.h.
10031 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10033 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10035 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10036 * memattr.c (create_mem_region): Disallow useless empty region.
10037 Regions are half-open intervals, so allow [A..B) [B..C) as
10040 2002-02-13 Michael Chastain <mec@shout.net>
10042 * defs.h: Kill CONST_PTR.
10043 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10044 * c-lang.c (c_builtin_types): Likewise.
10045 * ch-lang.c (ch_builtin_types): Likewise.
10046 * f-lang.c (f_builtin_types): Likewise.
10047 * language.c (unknown_builtin_types): Likewise.
10048 * m2-lang.c (m2_builtin_types): Likewise.
10049 * p-lang.c (pascal_builtin_types): Likewise.
10050 * scm-lang.c (c_builtin_types): Likewise.
10052 2002-02-13 Keith Seitz <keiths@redhat.com>
10054 * arm-tdep.h (arm_get_next_pc): Add declaration.
10056 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10058 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10059 with other related struct-returning functions.
10060 (arm_extract_struct_value_address): New function.
10061 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10062 initialize float_format, double_format and long_double_format as
10063 appropriate to the endianness of the target.
10064 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10065 (arm_use_struct_convention): Delete declaration.
10066 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10068 2002-02-13 Keith Seitz <keiths@redhat.com>
10070 * defs.h (core_addr_to_string_nz): New function.
10072 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10074 Apply missing bits of 2002-01-15 patch.
10075 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10076 (fill_fpregset): Use i387_fill_fsave.
10078 2002-02-12 Keith Seitz <keiths@redhat.com>
10080 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10081 (core_addr_to_string_nz): New function.
10083 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10085 * arm-linux-nat.c: Really include arm-tdep.h.
10086 * config/arm/tm-linux.h (struct type, struct value): Declare.
10088 2002-02-11 Michael Snyder <msnyder@redhat.com>
10090 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10091 (gcore section): Ifdef for Solaris and Unixware only.
10092 (procfs_do_thread_registers): Unixware needs one lwpstatus
10093 per thread (not one prstatus or pstatus).
10094 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10095 not over all gdb threads. For unixware, call elfcore_write_pstatus
10096 once before iterating over threads.
10098 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10100 * arm-tdep.h: New file.
10101 * arm-tdep.c: Include arm-tdep.h.
10102 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10103 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10104 (arm_print_float_info, arm_register_type, convert_to_extended)
10105 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10106 (arm_extract_return_value, arm_register_name): Make static.
10107 (arm_software_single_step): Similarly. Fix types in declaration.
10108 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10109 (arm_store_return_value, arm_store_struct_return): New functions.
10110 (arm_gdbarch_init): Register the above functions. Also register
10111 call_dummy_start_offset, sizeof_call_dummy_words,
10112 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10113 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10114 max_register_virtual_size, register_size. Set up
10115 prologue_cache.saved_regs here, rather than ...
10116 (_initialize_arm_tdep): ... here.
10117 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10119 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10120 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10121 (arm_print_float_info, arm_register_type, convert_to_extended)
10122 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10123 (arm_extract_return_value, arm_register_name): Delete declarations.
10124 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10125 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10126 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10127 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10128 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10129 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10130 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10131 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10132 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10133 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10134 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10135 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10137 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10138 * remote-rdi.c remote-rdp.c: Likewise.
10139 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10140 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10141 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10144 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10145 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10146 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10147 from non-ARM_ prefixed definitions.
10148 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10150 * remote-rdi.c remote-rdp.c: Likewise.
10151 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10153 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10155 * arm-tdep.c (arm_frameless_function_invocation)
10156 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10157 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10158 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10159 (arm_pop_frame, arm_get_next_pc): Make static.
10160 (arm_gdbarch_init): Register above in gdbarch structure.
10161 (arm_read_fp): Renamed from arm_target_read_fp.
10162 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10163 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10164 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10165 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10166 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10167 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10168 (arm_pc_is_thumb_dummy): Delete declarations.
10169 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10170 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10171 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10172 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10174 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10176 * symtab.c (compare_search_syms): New function.
10177 (sort_search_symbols): New function.
10178 (search_symbols): Sort symbols after searching rather than
10181 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10183 * NEWS: Linux -> GNU/Linux.
10185 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10187 * gdbarch.sh: For for level one methods, disallow a definition
10188 when partially multi-arched. Add comments explaining rationale.
10189 * gdbarch.h: Re-generate.
10191 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10193 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10194 multi-arch partial.
10196 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10198 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10199 field. Use diff -u.
10200 * gdbarch.c: Re-generate.
10202 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10204 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10205 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10208 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10210 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10211 multi-arch partial.
10212 (PUSH_ARGUMENTS): Switch to using predefault.
10213 * gdbarch.c: Regenerate.
10215 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10217 * valops.c (PUSH_ARGUMENTS): Delete definition.
10218 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10219 partial. Default to default_push_arguments.
10220 * gdbarch.h, gdbarch.c: Regenerate.
10222 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10224 * defs.h (throw_exception): Rename return_to_top_level. Update
10226 * utils.c (error_stream, internal_verror, quit): Ditto.
10227 * top.c (throw_exception, catcher): Ditto.
10228 * sparclet-rom.c (sparclet_load): Ditto.
10229 * remote.c (interrupt_query, minitelnet): Ditto.
10230 * remote-sds.c (interrupt_query): Ditto.
10231 * remote-mips.c (mips_error, mips_kill): Ditto.
10232 * ocd.c (interrupt_query): Ditto.
10233 * monitor.c (monitor_interrupt_query): Ditto.
10234 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10235 * target.h: Update comment.
10237 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10239 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10241 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10242 default_double_format.
10243 * gdbarch.h, gdbarch.c: Re-generate.
10244 * findvar.c (floatformat_unknown): Delete variable definition.
10245 * doublest.h (floatformat_unknown): Delete variable declaration.
10247 2002-02-09 Jim Blandy <jimb@redhat.com>
10249 * stabsread.c (read_type): Add code to parse Sun's syntax for
10250 prototyped function types.
10252 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10254 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10255 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10257 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10259 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10260 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10261 now _initialize_xcoffsolib gets called again and overrides the
10262 commands from solib.c in a native configuration.
10264 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10266 * doublest.c (store_typed_floating): Don't try to return a value.
10269 2002-02-08 Jim Blandy <jimb@redhat.com>
10271 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10272 is prototyped and has no arguments, print its argument list as
10275 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10277 * MAINTAINERS (write-after-approval): Add myself.
10278 (paper-trail): I've escaped!
10280 2002-02-08 Christopher Faylor <cgf@redhat.com>
10282 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10284 (_initialize_check_for_gdb_ini): Ditto.
10286 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10288 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10289 xaprintf -> xasprintf.
10291 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10293 * win32-nat.c: Remove use of printf and sprintf functions.
10295 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10297 * arm-tdep.c (arm_frame_chain_valid): Make static.
10298 (arm_push_arguments): Likewise.
10299 (arm_gdbarch_init): New function.
10300 (_initialize_arm_tdep): Call it.
10301 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10302 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10303 (FRAME_CHAIN_VALID): Delete.
10304 (arm_frame_chain_valid): Delete declaration.
10305 (PUSH_ARGUMENTS): Delete.
10306 (arm_push_arguments): Delete declaration.
10307 (CALL_DUMMY_P): Delete.
10309 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10310 Corinna Vinschen <vinschen@redhat.com>
10312 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10313 on builtin float types.
10315 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10317 * utils.c: Include <curses.h> before "bfd.h".
10318 * tui/tui-hooks.c: Likewise.
10319 * tui/tui.c: Likewise.
10320 * tui/tuiCommand.c: Likewise.
10321 * tui/tuiData.c: Likewise.
10322 * tui/tuiDataWin.c: Likewise.
10323 * tui/tuiDisassem.c: Likewise.
10324 * tui/tuiGeneralWin.c: Likewise.
10325 * tui/tuiIO.c: Likewise.
10326 * tui/tuiLayout.c: Likewise.
10327 * tui/tuiRegs.c: Likewise.
10328 * tui/tuiSource.c: Likewise.
10329 * tui/tuiSourceWin.c: Likewise.
10330 * tui/tuiStack.c: Likewise.
10331 * tui/tuiWin.c: Likewise.
10333 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10335 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10336 to include space for pseudoregs as well. Update loops accordingly.
10337 (sh_fp_frame_init_saved_regs): Ditto.
10338 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10340 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10342 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10343 Add Richard Earnshaw to Arm maintainers.
10345 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10347 * defs.h (warning_begin): Delete declaration.
10349 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10352 2002-02-07 Michael Snyder <msnyder@redhat.com>
10354 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10355 Logic bug, remove misplaced else.
10357 2002-02-07 Klee Dienes <klee@apple.com>
10359 * fork-inferior.c (fork_inferior): Add '!' to the list of
10360 characters that need to be quoted when building a string for the
10361 shell. Quote '!' specifically with a backslash, since CSH chokes
10362 when trying to evaluate "str!str".
10364 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10366 * rdi-share/host.h: Only provide a typedef for bool if it is not
10369 2002-02-04 Michael Snyder <msnyder@redhat.com>
10371 * breakpoint.h (enum bptype): Add new overlay event bp type.
10372 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10374 * breakpoint.c (create_internal_breakpoint): New function.
10375 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10376 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10377 (create_thread_event_breakpoint): Ditto.
10378 (create_solib_event_breakpoint): Ditto.
10379 (create_overlay_event_breakpoint): New function.
10380 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10381 (update_breakpoints_after_exec): Delete and re-initialize
10382 overlay event breakpoints after an exec. Add FIXME comment
10383 about longjmp breakpoint.
10384 (print_it_typical): Ignore overlay event breakpoints.
10385 (print_one_breakpoint): Ditto.
10387 (bpstat_what): Do not stop for overlay event breakpoints.
10388 (delete_breakpoint): Don't delete overlay event breakpoints.
10389 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10390 (breakpoint_re_set): Re-create overlay event breakpoint.
10392 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10393 (overlay_manual_command): Disable overlay breakpoints.
10394 (overlay_off_command): Disable overlay breakpoints.
10396 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10398 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10399 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10400 to here from config/tm-arm.h.
10401 (coff_sym_is_thumb): Make static.
10402 (arm_elf_make_msymbol_special): New function.
10403 (arm_coff_make_msymbol_special): New function.
10404 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10405 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10406 (coff_sym_is_thumb): Delete declaration.
10407 (arm_elf_make_msymbol_special): Declare.
10408 (arm_coff_make_msymbol_special): Declare.
10409 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10410 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10412 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10414 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10416 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10418 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10419 * gdbarch.c gdbarch.h: Regenerate.
10420 * arch-utils.c (default_print_float_info): New function.
10421 * arch-utils.h (default_print_float_info): Prototype it.
10422 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10423 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10424 (PRINT_FLOAT_INFO): Document it.
10426 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10427 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10428 (PRINT_FLOAT_INFO): Define.
10430 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10432 * win32-nat.c (_initialize_check_for_gdb_ini):
10433 Add typecast to sprintf argument to suppress a warning.
10435 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10437 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10438 to allow easier handling of pass state.
10439 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10440 that gives exception name and address.
10441 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10442 and set last_sig value to ourstatus->value.sig. Some missing
10444 (child_continue): Correctly report continue_status.
10445 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10446 TARGET_SIGNAL_0 (new default value).
10447 (child_resume): consider sig argument passed to decide if
10448 the exception should be passed to debuggee or not.
10450 2002-02-05 Michael Snyder <msnyder@redhat.com>
10452 * regcache.c (fetch_register): Call target_fetch_register
10453 only if we don't call FETCH_PSEUDO_REGISTER.
10454 (store_register): Call target_store_register only if we
10455 don't call STORE_PSEUDO_REGISTER.
10457 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10459 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10460 ELF_MAKE_MSYMBOL_SPECIAL.
10461 * gdbarch.c, gdbarch.h: Regenerate.
10462 * arch-utils.c (default_make_msymbol_special): New function.
10463 * arch-utils.h (default_make_msymbol_special): Export.
10464 * elfread.c (elf_symtab_read): Compile use of
10465 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10467 * coffread.c (coff_symtab_read): Ditto, for
10468 COFF_MAKE_MSYMBOL_SPECIAL.
10470 2002-02-05 Jim Blandy <jimb@redhat.com>
10472 * solib-svr4.c (svr4_truncate_ptr): New function.
10473 (svr4_relocate_section_addresses): Do the address arithmetic with
10474 the appropriate truncation for target addresses, even when
10475 CORE_ADDR is larger than a target address.
10477 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10479 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10482 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10484 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10487 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10489 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10491 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10493 * gdbserver/linux-low.c: Remove unused include files.
10495 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10497 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10498 (read_inferior_memory): Use it.
10499 (write_inferior_memory): Likewise.
10501 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10503 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10504 grubbing through sys_errlist.
10506 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10508 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10510 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10511 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10513 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10515 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10516 (do_sfunc, set_cmd_sfunc): New functions.
10518 * command.h (struct cmd_list_element): Add field func.
10519 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10520 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10521 * cli/cli-decode.h: Ditto.
10523 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10524 (help_all, help_cmd_list): Ditto.
10525 (find_cmd, complete_on_cmdlist): Ditto.
10526 * top.c (execute_command): Ditto.
10528 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10531 * infcmd.c (notice_args_read): Fix function signature.
10533 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10534 * cli/cli-decode.c (add_set_cmd): Ditto.
10535 * utils.c (initialize_utils): Ditto.
10536 * maint.c (_initialize_maint_cmds): Ditto.
10537 * infrun.c (_initialize_infrun): Ditto.
10538 * demangle.c (_initialize_demangler): Ditto.
10539 * remote.c (add_packet_config_cmd): Ditto.
10540 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10541 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10542 * proc-api.c (_initialize_proc_api): Ditto.
10543 * kod.c (_initialize_kod): Ditto.
10544 * valprint.c (_initialize_valprint): Ditto.
10545 * top.c (init_main): Ditto.
10546 * infcmd.c (_initialize_infcmd): Ditto.
10547 * corefile.c (_initialize_core): Ditto.
10548 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10549 * arch-utils.c (initialize_current_architecture): Ditto.
10550 (_initialize_gdbarch_utils): Ditto.
10551 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10553 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10554 * wince.c (_initialize_inftarg): Ditto.
10555 * symfile.c (_initialize_symfile): Ditto.
10556 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10557 * language.c (_initialize_language): Ditto.
10558 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10560 2002-02-04 Michael Snyder <msnyder@redhat.com>
10562 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10564 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10566 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10567 Add rules for building the register data files.
10569 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10571 * regformats/regdat.sh: Add braces to the definition of
10572 expedite_regs_${arch}.
10574 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10576 * regformats/regdef.h (struct reg): Add comment describing the
10577 requirements for offset and size fields.
10579 2002-02-04 Andreas Schwab <schwab@suse.de>
10581 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10582 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10584 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10586 * gdbarch.sh (copyright): Update years in generated header.
10587 (SMASH_TEXT_ADDRESS): Add rule.
10588 * gdbarch.h, gdbarch.c: Re-generate.
10589 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10590 * dbxread.c: Likewise.
10591 * dwarfread.c: Likewise.
10592 * elfread.c: Likewise.
10593 * somread.c: Likewise.
10595 * arm-tdep.c (arm_smash_text_address): New function.
10596 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10598 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10600 Add support for hardware watchpoints on win32 native.
10601 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10602 CONTEXT_DEBUG_REGISTERS.
10603 (dr variable): New variable. Static array containing a local copy
10604 of debug registers.
10605 (debug_registers_changed): New variable. Reflects when debug registers
10606 are changed and need to be written to inferior.
10607 (debug_registers_used): New variable. Reflects when any debug register
10608 was set, used when new threads are created.
10609 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10611 (thread_rec): Set dr array if id is the thread of current_event .
10612 (child_continue, child_resume): Change the debug registers for all
10613 threads if debug_registers_changed.
10614 (child_add_thread): Change the debug registers if debug_registers_used.
10615 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10616 Link nm.h to new nm-cygwin.h file.
10617 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10618 of hardware registers.
10620 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10622 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10623 Restore behavour broken by 2002-01-20 Andrew Cagney
10624 <ac131313@redhat.com> IEEE_FLOAT removal.
10626 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10628 * c-valprint.c (c_val_print): Pass a proper valaddr to
10629 cp_print_class_method.
10630 * valops.c (search_struct_method): If there is only one method
10631 and args is NULL, return that method.
10633 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10635 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10636 accessing tag_name directly.
10638 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10640 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10641 of accessing tag_name directly.
10643 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10646 * gdbtypes.c (replace_type): New function.
10647 * gdbtypes.h (replace_type): Add prototype.
10648 * stabsread.c (read_type): Use replace_type.
10650 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10652 * Makefile.in (memattr.o): Add missing dependencies rule.
10654 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10656 * breakpoint.c (break_at_finish_command): Really export.
10657 (break_at_finish_at_depth_command): Ditto.
10658 (tbreak_at_finish_command): Ditto.
10659 * hppa-tdep.c: Include completer.h.
10660 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10661 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10663 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10665 * utils.c (do_write): New function.
10666 (error_stream): Rewrite combining the code from error_begin and
10668 (verror): Rewrite using error_stream.
10669 (error_begin): Delete function.
10671 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10673 * utils.c (error_begin): Make static.
10674 * defs.h (error_begin): Delete declaration.
10676 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10677 (decode_line_1): Use cplusplus_error instead of error_begin,
10678 cplusplus_hint and return_to_top_level.
10679 * coffread.c (coff_symfile_read): Use error instead of error_begin
10680 and return_to_top_level.
10681 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10683 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10685 * language.h (type_error, range_error): Make string parameter
10687 * language.c (warning_pre_print): Delete extern declaration.
10688 * dwarfread.c (warning_pre_print): Ditto.
10689 * language.c (type_error, range_error): Rewrite to use verror and
10690 vwarning instead of warning_begin.
10692 2002-02-01 Michael Snyder <msnyder@redhat.com>
10694 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10695 (set_ignore_count): Move misplaced comment back where it belongs.
10697 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10699 * command.h (NO_FUNCTION): Delete macro.
10700 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10701 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10702 * tracepoint.c (_initialize_tracepoint): Ditto.
10703 * cli/cli-decode.c (add_set_cmd): Ditto.
10704 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10706 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10708 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10709 Update ``this'' pointer when calling virtual functions.
10711 2002-02-01 Michael Snyder <msnyder@redhat.com>
10713 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10714 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10716 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10718 * regformats/reg-arm.dat: New file.
10719 * regformats/reg-i386.dat: New file.
10720 * regformats/reg-ia64.dat: New file.
10721 * regformats/reg-m68k.dat: New file.
10722 * regformats/reg-mips.dat: New file.
10723 * regformats/reg-ppc.dat: New file.
10724 * regformats/reg-sh.dat: New file.
10725 * regformats/regdef.h: New file.
10726 * regformats/regdat.sh: New file.
10728 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10730 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10731 (arm_frame_args_address, arm_frame_locals_address): New functions.
10732 (arm_frame_num_args): New function.
10733 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10734 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10735 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10737 2002-01-31 Michael Snyder <msnyder@redhat.com>
10739 * breakpoint.c (break_at_finish_command): Export.
10740 (break_at_finish_at_depth_command): Export.
10741 (tbreak_at_finish_command): Export.
10742 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10743 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10744 "txbreak" commands, which are HPPA specific.
10746 * printcmd.c (disassemble_command): Remove an ancient
10747 artifact of an old merge.
10749 * symfile.h (enum overlay_debugging_state):
10750 Define enum constant values for overlay mode.
10751 * symfile.c (overlay_debugging): Use enums instead of literals.
10752 (overlay_is_mapped, overlay_auto_command,
10753 overlay_manual_command): Ditto.
10755 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10756 breakpoint_here_p, breakpoint_inserted_here_p,
10757 breakpoint_thread_match, bpstat_stop_status,
10758 describe_other_breakpoints, check_duplicates, clear_command):
10759 Coding standard fixes.
10761 * target.c (target_xfer_memory): Add spaces, coding standard.
10762 (do_xfer_memory): Add missing line to trust-readonly
10763 code: check bfd SEC_READONLY flag for section.
10765 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10767 * PROBLEMS: Fix typo, 5.1->5.1.1.
10769 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10771 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10772 data symbols, since we search based on textlow and texthigh.
10773 (find_pc_sect_symtab): Likewise.
10775 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10777 * defs.h (vwarning): Declare.
10778 * utils.c (vwarning): New function.
10779 (warning): Call vwarning.
10780 (warning_begin): Delete function.
10782 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10783 the warning message.
10784 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10787 2002-01-30 Michael Snyder <msnyder@redhat.com>
10789 * NEWS: Mention "set trust-readonly-sections" command.
10790 Mention generate-core-file command.
10792 2002-01-15 Michael Snyder <msnyder@redhat.com>
10794 * target.c: New command, "set trust-readonly-sections on".
10795 (do_xfer_memory): Honor the suggestion to trust readonly sections
10796 by reading them from the object file instead of from the target.
10797 (initialize_targets): Register command "set trust-readonly-sections".
10799 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10801 * parse.c (target_map_name_to_register): Simplify, search regs and
10802 pseudo-regs using a single loop.
10804 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10806 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10808 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10810 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10811 * config/i386/i386v42mp.mh: Add i387-nat.o .
10812 * i386v4-nat.c: Include i387-nat.h.
10813 (supply_fpregset): Use i387_supply_fsave.
10814 (fill_fpregset): Use i387_fill_fsave.
10816 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10818 * arm-tdep.c (arm_call_dummy_words): Define.
10819 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10820 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10821 (CALL_DUMMY_WORDS): Define.
10822 (arm_call_dummy_words): Declare.
10823 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10824 (arm_linux_call_dummy_words): Declare.
10826 2002-01-30 Andreas Schwab <schwab@suse.de>
10828 * m68klinux-nat.c: Fix last change to use regcache_collect
10829 instead of referencing registers[] directly.
10831 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10833 * parse.c (target_map_name_to_register): Delete code wrapped in
10834 #ifdef REGISTER_NAME_ALIAS_HOOK.
10836 2002-01-28 Michael Snyder <msnyder@redhat.com>
10838 * regcache.c (legacy_read_register_gen): Need to be able to
10839 read pseudo-register as well as real register.
10840 (legacy_write_register_gen): Ditto.
10842 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10844 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10845 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10846 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10847 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10848 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10849 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10850 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10851 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10852 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10853 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10854 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10855 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10856 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10857 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10858 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10859 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10860 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10861 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10862 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10863 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10865 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10867 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10868 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10869 (initialize_current_architecture): Update target_byte_order using
10870 information from BFD.
10871 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10872 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10874 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10876 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10877 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10879 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10880 #ifdef INVALID_FLOAT.
10881 * infcmd.c (do_registers_info): Ditto.
10882 * values.c (unpack_double): Ditto. Add comment.
10884 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10885 already commented out.
10887 2002-01-26 Andreas Schwab <schwab@suse.de>
10889 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10890 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10891 registers and add support for PTRACE_GETREGS.
10893 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10895 GDB 5.1.1 released from 5.1 branch.
10896 * NEWS: Add 5.1.1 news.
10897 * README: Sync with 5.1 branch.
10899 2002-01-23 Fred Fish <fnf@redhat.com>
10901 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10902 stabstring on initial malloc. Reallocing will copy it for us,
10905 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10907 * Makefile.in (hpread_h): Delete.
10908 (HFILES_NO_SRCDIR): Remove hpread.h.
10909 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10910 (hpread.o): Update dependencies.
10911 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10913 * hp-psymtab-read.c: Remove file.
10914 * hp-symtab-read.c: Remove file.
10915 * hpread.h: Remove file.
10917 * hpread.c: Merge all contents of hp-psymtab-read.c,
10918 hp-symtab-read.c and hpread.h into this file, as it was prior to
10921 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10922 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10923 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10924 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10926 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10928 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10929 fill_gregset): Call gdbarch_tdep() just once, assign result to
10930 variable and use that, instead of calling the function several
10933 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10935 * configure.host: Accept sparcv9 as alias for sparc64.
10936 * configure.tgt: Likewise.
10938 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10940 * solib-aix5.c (build_so_list_from_mapfile)
10941 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10942 arguments is not reversed.
10943 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10944 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10946 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10948 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10949 modified version of obsolete sh_fetch_pseudo_register.
10950 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10951 (sh4_register_read): New function.
10952 (sh_pseudo_register_write): New function. Renamed and modified
10953 version of obsolete sh_store_pseudo_register.
10954 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10955 (sh4_register_write): New function.
10956 (sh_gdbarch_init): Remove setting of gdbarch function
10957 fetch_pseudo_register and store_pseudo_register. Remove setting of
10958 register_convert_to_raw, register_convert_to_virtual,
10959 register_convertible.
10960 (sh_sh4_register_convertible): Delete. No longer needed. All is
10961 taken care by architecture specific functions
10962 register_read/register_write.
10963 (sh_sh4_register_convert_to_virtual): Make static.
10964 (sh_sh4_register_convert_to_raw): Ditto.
10966 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10968 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10969 (floatformat_is_nan, floatformat_mantissa): Ditto.
10971 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10972 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10973 builtin_type_ieee_double_little,
10974 builtin_type_ieee_double_littlebyte_bigword,
10975 builtin_type_m68881_ext, builtin_type_i960_ext,
10976 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10977 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10978 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10979 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10981 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10983 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10984 parameter. Set frameless flag if it exists and depended of
10985 whether the scanned function is frameless or not.
10986 (xstormy16_skip_prologue): If function is frameless, return
10987 result of xstormy16_scan_prologue().
10988 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10991 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10993 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10994 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10995 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10996 sh_sh4_register_byte, sh_sh4_register_raw_size,
10997 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10998 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10999 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11000 sh_store_pseudo_register, sh_do_pseudo_register): Call
11001 gdbarch_tdep() just once, assign result to variable and use that,
11002 instead of calling the function several times.
11004 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11006 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11007 macros instead of LAST_FPU_CTRL_REGNUM.
11008 (store_register): Likewise.
11010 2002-01-21 Jim Blandy <jimb@redhat.com>
11012 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11013 is up-to-date before running the program, not just when a program
11016 2002-01-21 Fred Fish <fnf@redhat.com>
11018 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11019 when we have found all instructions we are looking for.
11021 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11023 * arm-tdep.c (arm_register_name): New function.
11024 (arm_registers_names): Make static.
11025 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11026 (arm_register_name): Declare.
11027 (REGISTER_NAME): Use it.
11029 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11030 Kevin Buettner <kevinb@redhat.com>
11032 Convert arm targets to new FRAME interface.
11033 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11034 (arm_frame_find_save_regs): Delete.
11035 (arm_frame_init_saved_regs): New.
11036 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11037 Allocate extra_info as required. Convert all uses of fsr.regs
11038 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11040 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11041 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11042 (check_prologue_cache, save_prologue_cache): Likewise.
11043 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11044 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11045 (FRAME_FIND_SAVED_REGS): Delete.
11046 (arm_frame_find_saved_regs): Delete prototype.
11047 (arm_frame_init_saved_regs): New prototype.
11048 (FRAME_INIT_SAVED_REGS): Define.
11050 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11052 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11054 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11056 From Jeff Law <law@redhat.com>:
11057 * infttrace.c: Include <sys/pstat.h>.
11058 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11059 exec file if the ttrace equivalent fails.
11061 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11063 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11064 (closeLogFile): Ditto.
11066 2002-01-20 Michael Chastain <mec@shout.net>
11068 * top.c (print_gdb_version): Bump copyright year to 2002.
11070 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11072 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11073 Zannoni and Eli Zaretskii.
11075 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11077 * buildsym.c: Update copyright years.
11078 * c-typeprint.c: Likewise.
11079 * dwarf2read.c: Likewise.
11080 * f-typeprint.c: Likewise.
11081 * gdbtypes.c: Likewise.
11082 * gdbtypes.h: Likewise.
11083 * hp-symtab-read.c: Likewise.
11084 * hpread.c: Likewise.
11085 * mdebugread.c: Likewise.
11086 * p-typeprint.c: Likewise.
11088 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11090 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11091 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11092 byte-order selectable.
11093 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11094 * arch-utils.c: Ditto.
11095 (set_endian): Ditto.
11096 (set_endian_from_file): Ditto.
11097 * gdbserver/low-sim.c (create_inferior): Ditto.
11098 * gdbarch.sh: Ditto.
11099 * gdbarch.h: Re-generate.
11100 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11101 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11102 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11103 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11104 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11105 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11106 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11107 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11109 * config/mips/tm-wince.h: Remove #undef of macro
11110 TARGET_BYTE_ORDER_SELECTABLE.
11111 * config/sh/tm-wince.h: Ditto.
11113 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11115 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11116 member function fields. Add accessor macro
11117 TYPE_FN_FIELD_ARTIFICIAL.
11118 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11119 * c-typeprint.c (c_type_print_base): Skip artificial member
11122 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11124 * f-typeprint.c: Delete unused function f_type_print_args.
11125 * p-typeprint.c: Delete unused function pascal_type_print_args.
11127 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11129 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11130 comment. Add ``artificial'' to ``union field_location''.
11132 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11134 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11135 * mdebugread.c (parse_symbol): Likewise.
11136 * stabsread.c (define_symbol): Likewise.
11137 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11138 initializing TYPE_FIELD_BITPOS to n (obsolete).
11139 (hpread_doc_function_type): Likewise.
11140 * hpread.c (hpread_function_type): Likewise.
11142 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11144 * configure.in (host_makefile_frag): Only require a host makefile
11145 fragment when a native build.
11146 * configure: Re-generate.
11148 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11150 * doublest.h (floatformat_from_type): Declare.
11151 * doublest.c (floatformat_from_type): New function.
11152 (convert_typed_floating): Use.
11154 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11155 call to function floatformat_from_type.
11157 * gdbarch.sh (IEEE_FLOAT): Delete.
11158 * gdbarch.h, gdbarch.c: Re-generate.
11159 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11160 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11161 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11162 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11163 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11164 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11165 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11166 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11167 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11168 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11169 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11170 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11172 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11173 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11174 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11175 * sh-tdep.c (sh_gdbarch_init): Ditto.
11176 * mips-tdep.c (mips_gdbarch_init): Ditto.
11177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11178 * cris-tdep.c (cris_gdbarch_init): Ditto.
11180 2002-01-20 Jiri Smid <smid@suse.cz>
11182 * configure.host, configure.tgt: Support x86-64.
11183 * NEWS: Note new target x86-64.
11185 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11186 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11187 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11188 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11189 x86-64-linux-nat.o): Fix dependencies.
11191 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11193 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11194 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11195 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11196 * config/sparc/xm-sun4os4.h: Delete file.
11197 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11199 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11201 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11202 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11203 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11204 * config/i386/i386lynx.mh (XM_FILE): Delete.
11205 * config/rs6000/xm-rs6000ly.h: Delete file.
11206 * config/sparc/xm-sparclynx.h: Delete file.
11207 * config/m68k/xm-m68klynx.h: Delete file.
11208 * config/i386/xm-i386lynx.h: Delete file.
11209 * config/xm-lynx.h: Delete file.
11210 * config/djgpp/fnchange.lst: Update.
11212 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11214 * alpha-tdep.c (alpha_register_byte): New function.
11215 (alpha_register_raw_size): Ditto.
11216 (alpha_register_virtual_size): Ditto.
11217 (alpha_skip_prologue_internal): Renamed from
11218 alpha_skip_prologue.
11219 (alpha_skip_prologue): New version that calls
11220 alpha_skip_prologue_internal.
11221 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11222 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11223 second argument from alpha_skip_prologue.
11224 (REGISTER_BYTE): Use alpha_register_byte.
11225 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11226 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11227 (FRAMELESS_FUNCTION_INVOCATION): Use
11228 generic_frameless_function_invocation_not.
11229 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11230 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11232 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11234 * config/mips/xm-news-mips.h: Delete file.
11235 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11237 * config/m88k/xm-m88k.h: Delete file.
11238 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11239 * config/m88k/xm-delta88v4.h: Ditto.
11240 * config/m88k/xm-delta88.h: Ditto.
11242 * config/alpha/xm-fbsd.h: Delete file.
11243 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11245 * config/sparc/xm-sparc.h: Delete file.
11246 * Makefile.in (xm-sun4os4.h): Delete dependency.
11247 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11248 * config/sparc/xm-sun4os4.h: Ditto.
11249 * config/sparc/xm-linux.h: Ditto.
11251 * config/i386/xm-windows.h: Delete file.
11253 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11255 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11256 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11258 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11260 * alpha-tdep.c (alpha_call_dummy_words): New.
11261 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11262 (CALL_DUMMY_P): Define.
11263 (CALL_DUMMY_WORDS): Define.
11264 (SIZEOF_CALL_DUMMY_WORDS): Define.
11266 2002-01-19 Per Bothner <per@bothner.com>
11268 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11269 isn't NULL, which can happen with some gcj-3.x-produced code.
11271 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11273 * alpha-tdep.c (alpha_register_virtual_type): New function.
11274 (alpha_init_frame_pc_first): Ditto.
11275 (alpha_fix_call_dummy): Ditto.
11276 (alpha_store_struct_return): Ditto.
11277 (alpha_extract_struct_value_address): Ditto.
11278 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11279 alpha_register_virtual_type.
11280 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11281 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11282 alpha_extract_struct_value_address.
11283 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11284 (INIT_FRAME_PC): Use init_frame_pc_noop.
11285 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11287 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11289 * i386gnu-nat.c: Include "i386-tdep.h".
11290 (fetch_fpregs): Simplify code dealing with uninitialized floating
11291 point states such that it doesn't require FP7_REGNUM.
11293 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11295 * alpha-tdep.c (frame_extra_info): New.
11296 (alpha_find_saved_regs): Make static. Use
11298 (alpha_frame_init_saved_regs): New function.
11299 (alpha_frame_saved_pc): Use frame->extra_info.
11300 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11301 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11302 (init_extra_frame_info): Rename to...
11303 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11304 (alpha_print_extra_frame_info): New function.
11305 (alpha_frame_locals_address): Ditto.
11306 (alpha_frame_args_address): Ditto.
11307 (alpha_pop_frame): Use frame->extra_info.
11308 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11309 alpha_frame_args_address.
11310 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11311 (alpha_find_saved_regs): Remove prototype.
11312 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11313 (EXTRA_FRAME_INFO): Remove.
11314 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11315 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11317 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11319 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11320 (alpha_cannot_fetch_register): Ditto.
11321 (alpha_cannot_store_register): Ditto.
11322 (alpha_register_convertible): Ditto.
11323 (alpha_use_struct_convention): Ditto.
11324 * config/alpha/tm-alpha.h: Update copyright years.
11325 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11326 (INNER_THAN): Use core_addr_lessthan.
11327 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11328 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11329 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11330 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11331 (FRAME_CHAIN): Remove unnecessary cast.
11333 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11335 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11338 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11340 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11341 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11342 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11343 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11344 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11345 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11346 * x86-64-linux-nat.c: Ditto.
11348 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11350 * alpha-tdep.c (alpha_register_name): New function.
11351 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11352 (REGISTER_NAME): Define.
11354 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11356 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11358 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11360 * alpha-tdep.c: Update copyright years.
11361 (alpha_next_pc): New function.
11362 (alpha_software_single_step): Ditto.
11363 * config/alpha/tm-alpha.h: Add prototype for
11364 alpha_software_single_step.
11366 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11368 * alphabsd-nat.c: Update copyright years.
11369 (fill_gregset): Use regcache_collect.
11370 (fill_fpregset): Likewise.
11371 (fetch_inferior_registers): Only fetch integer registers
11372 if requested to do so.
11373 (store_inferior_registers): Only store integer registers
11374 if requested to do so.
11376 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11378 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11379 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11380 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11381 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11382 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11383 * config/arm/linux.mh (XDEPFILES): Delete.
11384 * config/arm/nbsd.mh (XDEPFILES): Delete.
11385 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11386 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11387 * config/i386/i386m3.mh (XDEPFILES): Delete.
11388 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11389 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11390 * config/i386/fbsd.mh (XDEPFILES): Delete.
11391 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11392 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11393 * config/i386/i386v4.mh (XDEPFILES): Delete.
11394 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11395 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11396 * config/i386/i386aix.mh (XDEPFILES): Delete.
11397 * config/i386/go32.mh (XDEPFILES): Delete.
11398 * config/i386/cygwin.mh (XDEPFILES): Delete.
11399 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11400 * config/i386/i386mach.mh (XDEPFILES): Delete.
11401 * config/i386/i386v32.mh (XDEPFILES): Delete.
11402 * config/i386/linux.mh (XDEPFILES): Delete.
11403 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11404 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11405 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11406 * config/i386/i386sco.mh (XDEPFILES): Delete.
11407 * config/i386/i386v.mh (XDEPFILES): Delete.
11408 * config/i386/nbsd.mh (XDEPFILES): Delete.
11409 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11410 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11411 * config/i386/symmetry.mh (XDEPFILES): Delete.
11412 * config/i386/obsd.mh (XDEPFILES): Delete.
11413 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11414 * config/ia64/linux.mh (XDEPFILES): Delete.
11415 * config/ia64/aix.mh (XDEPFILES): Delete.
11416 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11417 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11418 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11419 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11420 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11421 * config/m68k/linux.mh (XDEPFILES): Delete.
11422 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11423 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11424 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11425 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11426 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11427 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11428 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11429 * config/m88k/delta88.mh (XDEPFILES): Delete.
11430 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11431 * config/m88k/m88k.mh (XDEPFILES): Delete.
11432 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11433 * config/mips/linux.mh (XDEPFILES): Delete.
11434 * config/mips/irix6.mh (XDEPFILES): Delete.
11435 * config/mips/irix5.mh (XDEPFILES): Delete.
11436 * config/mips/irix4.mh (XDEPFILES): Delete.
11437 * config/mips/irix3.mh (XDEPFILES): Delete.
11438 * config/mips/decstation.mh (XDEPFILES): Delete.
11439 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11440 (NATDEPFILES): Move core-aout.o to here.
11441 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11442 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11443 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11444 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11445 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11446 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11447 * config/pa/hpux11.mh (XDEPFILES): Delete.
11448 * config/powerpc/aix.mh (XDEPFILES): Delete.
11449 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11450 * config/powerpc/linux.mh (XDEPFILES): Delete.
11451 * config/romp/rtbsd.mh: Rename XDEPFILES.
11452 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11453 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11454 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11455 * config/s390/s390.mh (XDEPFILES): Delete.
11456 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11457 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11458 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11459 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11460 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11461 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11462 * config/sparc/linux.mh (XDEPFILES): Delete.
11463 * config/vax/vaxult.mh (XDEPFILES): Delete.
11464 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11465 * Makefile.in (DEPFILES): Remove XDEPFILES.
11467 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11469 * utils.c (internal_verror): Fix comments, default is yes not no.
11470 Update queries to match. Default to quit and dump core.
11472 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11474 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11476 * defs.h, event-top.c, gdbcmd.h: Ditto.
11477 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11478 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11479 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11480 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11481 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11482 * mi/mi-main.c:Ditto.
11484 * stack.c, symfile.c: Update copyright.
11486 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11488 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11489 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11490 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11491 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11493 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11495 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11496 * gdbserver/low-lynx.c (myattach): Likewise.
11497 * gdbserver/low-nbsd.c (myattach): Likewise.
11498 * gdbserver/low-sim.c (myattach): Likewise.
11499 * gdbserver/low-sparc.c (myattach): Likewise.
11500 * gdbserver/low-sun3.c (myattach): Likewise.
11502 * gdbserver/low-linux.c (myattach): New function.
11504 * gdbserver/server.c (attach_inferior): New function.
11505 (main): Handle "--attach".
11507 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11509 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11512 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11514 * c-typeprint.c (is_type_conversion_operator): Add additional
11515 check for non-conversion operators.
11517 2002-01-15 Michael Snyder <msnyder@redhat.com>
11519 * linux-proc.c: Add "info proc" command, a la procfs.c.
11520 (read_mapping): New function, abstract and re-use code.
11521 (linux_find_memory_regions): Use new func read_mapping.
11522 (linux_info_proc_cmd): New function, implement "info proc".
11523 (_initialize_linux_proc): Add new command "info proc".
11525 2002-01-15 Michael Snyder <msnyder@redhat.com>
11527 * symfile.c (generic_load): Use bfd_map_over_sections method
11528 instead of manipulating bfd structure members directly.
11529 (add_section_size_callback): New function, bfd sections callback
11530 used by generic_load.
11531 (load_sections_callback): New function, bfd sections callback
11532 used by generic_load.
11534 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11536 [Based on work by Jim Blandy]
11537 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11538 (builtin_type_vec128): Export.
11539 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11541 (builtin_type_vec128): New builtin type for 128 bit vector
11543 (build_gdbtypes): Initialize builtin_type_v16qi and
11544 builtin_type_v8hi. Create the vec128 register builtin type
11546 (build_builtin_type_vec128): New function.
11547 (_initialize_gdbtypes): Register builtin_type_v16qi and
11548 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11549 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11550 AltiVec register to new builtin type.
11552 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11554 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11557 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11559 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11560 CLEAN_UP_REGISTER_VALUE.
11561 * regcache.c (supply_register): Update only call.
11563 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11565 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11566 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11567 a29k-*-vxworks* targets as obsolete.
11569 2002-01-14 Michael Snyder <msnyder@redhat.com>
11571 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11572 until we can resolve portability issues.
11573 * gregset.h: Remove references to fpxregs.
11574 * gcore.c (gcore_command): Initialize note_sec to NULL.
11576 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11578 * signals.c (target_signal_to_name): Rewrite. Only use
11579 signals[].name when in bounds and non-NULL.
11581 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11583 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11584 * signals.c (target_signal_to_name): Verify that SIG is within the
11585 bounds of the signals array.
11587 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11589 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11591 2002-01-13 Keith Seitz <keiths@redhat.com>
11593 * stack.c (print_frame_info_base): Print the frame's pc
11594 only if when print_frame_info_listing_hook is not defined.
11596 2002-01-13 Keith Seitz <keiths@redhat.com>
11598 * varobj.c (varobj_set_value): Make sure that there were no
11599 errors evaluating the object before attempting to set its
11601 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11602 so this offset adjustment is no longer necessary.
11603 (create_child): Don't set the error flag if the child is
11604 a CPLUS_FAKE_CHILD.
11605 (value_of_child): If value_fetch_lazy fails, return NULL
11606 so that callers will be notified that an error occurred.
11607 (c_value_of_variable): Delay check of variable's validity
11608 until later. We actually want all structs and unions to have
11610 Do not return "???" for variables which could not be evaluated.
11611 This error condition must be returned to the caller so that it
11612 can get the error condition from gdb.
11613 (cplus_name_of_child): Adjust index for vptr before figuring
11614 out the name of the child.
11615 (cplus_value_of_child): If a child's (real) parent is not valid,
11616 don't even bother trying to give a value for it. Just return
11617 an error. Change all instances in this function.
11618 (cplus_type_of_child): If our parent is one of the "fake"
11619 parents, we need to get at the type of the real parent, and
11620 derive the child's true type using this information.
11622 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11624 From 2002-01-09 John Marshall <johnm@falch.net>:
11625 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11626 sources.redhat.com, and tweak some related URLs which had
11627 suffered from linkrot.
11629 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11632 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11633 structures passed in registers.
11635 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11637 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11638 white space which prevented compilation. Reported by DSK
11639 <dsk@student.unsw.edu.au>.
11641 2002-01-11 Michael Snyder <msnyder@redhat.com>
11643 * symfile.c (build_section_addr_info_from_section_tab):
11644 Use bfd access method instead of manipulating bfd directly.
11645 (syms_from_objfile): Ditto.
11646 (simple_overlay_update_1): Ditto.
11647 (simple_overlay_update): Ditto.
11648 (generic_load): Ditto.
11649 (overlay_unmapped_address): FIXME comment, bfd access methods.
11650 (sections_overlap): FIXME comment, bfd access methods.
11651 (pc_in_mapped_range): FIXME comment, bfd access methods.
11652 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11653 (section_is_mapped): FIXME comment, bfd access methods.
11654 (section_is_overlay): FIXME comment, bfd access methods.
11656 * symfile.c (generic_load): Whitespace and long line cleanups.
11657 Remove duplicate variable, change several local variables to
11658 more appropriate data types.
11659 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11661 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11663 From Peter Schauer:
11664 * language.c (longest_local_hex_string_custom): Use phex_nz to
11665 convert NUM to a hex string.
11667 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11669 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11671 Update Copyright year.
11673 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11675 * language.c (longest_raw_hex_string): Delete unused function.
11677 2002-01-11 Petr Sorfa <petrs@caldera.com>
11679 * MAINTAINERS (write-after-approval): Add myself.
11680 * dwarf2read.c (read_tag_string_type): Handling of
11682 (read_tag_string_type): FORTRAN fix to prevent propagation of
11684 (set_cu_language): Handling of DW_LANG_Fortran95
11686 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11688 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11689 GETPID(inferior_ptid).
11690 (store_inferior_registers): Likewise.
11692 2002-01-10 Jason Merrill <jason@redhat.com>
11694 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11697 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11699 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11700 and bfd/elf32-sh-nbsd.c.
11702 2002-01-10 Michael Snyder <msnyder@redhat.com>
11704 * NEWS: Mention --pid and corefile/proc-id behavior change.
11706 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11707 * gcore.c: Include cli/cli-decode.h instead of command.h.
11709 * main.c (captured_main): Add new command line option "--pid".
11710 If the second command line argument (following the symbol-file)
11711 begins with a digit, try to attach to it before trying to open
11713 (print_gdb_help): Document the "--pid" argument.
11715 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11717 * completer.c (command_completer): New function.
11719 * completer.h <command_completer>: Add prototype.
11721 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11722 completer for the "help" command.
11724 2002-01-09 Jason Merrill <jason@redhat.com>
11726 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11728 2002-01-09 Michael Snyder <msnyder@redhat.com>
11730 * i386-linux-nat.c (fill_fpxregset): Make global.
11731 (store_fpxregset): Ditto.
11733 * gregset.h (gdb_fpxregset_t): Define.
11734 (supply_fpxregset): Prototype.
11735 (fill_fpxregset): Prototype.
11737 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11739 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11741 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11742 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11743 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11745 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11747 * MAINTAINERS: Update target maintainer rules so that any
11748 Maintainer can approve a tested patch for a maintenance-only
11751 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11753 * MAINTAINERS (write-after-approval): Add myself.
11755 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11758 2002-01-08 Michael Snyder <msnyder@redhat.com>
11760 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11761 real name of the executable, rather than the /proc name.
11763 2002-01-03 Michael Snyder <msnyder@redhat.com>
11765 Implement a "generate-core-file" command in gdb, save target state.
11766 * gcore.c: New file. Implement new command 'generate-core-file'.
11767 Save a corefile image of the current state of the inferior.
11768 * linux-proc.c: Add linux-specific code for saving corefiles.
11769 * target.h (struct target_ops): Add new target vectors for saving
11770 corefiles; to_find_memory_regions and to_make_corefile_notes.
11771 (target_find_memory_regions): New macro.
11772 (target_make_corefile_notes): New macro.
11773 * target.c (update_current_target): Inherit new target methods.
11774 (dummy_find_memory_regions): New place-holder method.
11775 (dummy_make_corefile_notes): New place-holder method.
11776 (init_dummy_target): Initialize new dummy target vectors.
11777 * exec.c (exec_set_find_memory_regions): New function.
11778 Allow the exec_ops vector for memory regions to be taken over.
11779 (exec_make_note_section): New function, target vector method.
11780 * defs.h (exec_set_find_memory_regions): Export prototype.
11781 * procfs.c (proc_find_memory_regions): New function, corefile method.
11782 (procfs_make_note_section): New function, corefile method.
11783 (init_procfs_ops): Set new target vector pointers.
11784 (find_memory_regions_callback): New function.
11785 (procfs_do_thread_registers): New function.
11786 (procfs_corefile_thread_callback): New function.
11787 * sol-thread.c (sol_find_memory_regions): New function.
11788 (sol_make_note_section): New function.
11789 (init_sol_thread_ops): Initialize new target vectors.
11790 * inftarg.c (inftarg_set_find_memory_regions): New function.
11791 Allow to_find_memory_regions vector to be taken over.
11792 (inftarg_set_make_corefile_notes): New function.
11793 Allow to_make_corefile_notes vector to be taken over.
11794 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11795 interface layer if not target_has_execution (may be a corefile).
11796 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11797 * config/sparc/sun4sol2.mh: Ditto.
11798 * config/alpha/alpha-linux.mh: Ditto.
11799 * config/arm/linux.mh: Ditto.
11800 * config/i386/x86-64linux.mh: Ditto.
11801 * config/ia64/linux.mh: Ditto.
11802 * config/m68k/linux.mh: Ditto.
11803 * config/mips/linux.mh: Ditto.
11804 * config/powerpc/linux.mh: Ditto.
11805 * config/sparc/linux.mh: Ditto.
11807 2002-01-07 Michael Snyder <msnyder@redhat.com>
11809 * arm-linux-nat.c: Remove references to regcache.c internal data
11810 (registers[] and register_valid[]).
11812 2002-01-07 Michael Snyder <msnyder@redhat.com>
11814 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11815 so that attaching to a pid will automatically read the process's
11816 symbol file and shlibs.
11817 * Makefile.in: Add rule for linux-proc.o.
11818 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11819 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11820 * config/arm/linux.mh: Ditto.
11821 * config/i386/linux.mh: Ditto.
11822 * config/i386/x86-64linux.mh: Ditto.
11823 * config/ia64/linux.mh: Ditto.
11824 * config/m68k/linux.mh: Ditto.
11825 * config/mips/linux.mh: Ditto.
11826 * config/powerpc/linux.mh: Ditto.
11827 * config/sparc/linux.mh: Ditto.
11829 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11831 * win32-nat.c: Add i386-tdep.h dependency.
11833 2002-01-07 Michael Snyder <msnyder@redhat.com>
11835 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11836 instead of bfd_get_arch_size. Don't bail out just because
11837 there's no exec_bfd.
11839 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11840 * p-valprint.c (pascal_object_print_value): Ditto.
11841 * somread.c (som_symtab_read): Ditto.
11842 * symfile.c (simple_free_overlay_region_table): Ditto.
11843 * valops.c (value_assign): Ditto.
11845 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11846 use tilde_expand and strerror for opening save-tracepoints file.
11848 * thread-db.c (thread_db_new_objfile): Indendation fix.
11850 * infptrace.c (GDB_MAX_ALLOCA): New define.
11851 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11852 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11853 can be overridden with whatever value is appropriate to the host).
11854 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11855 alloca to allocate potentially large buffer.
11856 * rs6000-nat.c (child_xfer_memory): Ditto.
11857 * symm-nat.c (child_xfer_memory): Ditto.
11858 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11860 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11862 From Nick Clifton <nickc@redhat.com>
11863 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11865 2002-01-07 Michael Snyder <msnyder@redhat.com>
11867 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11868 Don't use exec_bfd if it's NULL.
11870 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11872 * valops.c (value_arg_coerce): Fix formatting.
11874 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11876 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11877 * gnu-nat.c: Ditto.
11879 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11881 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11882 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11883 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11884 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11885 z8k-coff have not been multi-arched. Update z8k-coff build
11888 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11890 * MAINTAINERS: Mark a29k target as obsolete.
11891 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11892 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11894 * NEWS: Note that a29k targets are obsolete.
11895 * a29k-tdep.c: Mark as obsolete.
11896 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11897 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11898 a29k-*-vxworks* targets as obsolete.
11899 * remote-adapt.c: Obsolete.
11900 * remote-eb.c: Obsolete.
11901 * remote-mm.c: Obsolete.
11902 * remote-udi.c: Obsolete.
11903 * config/a29k/a29k-udi.mt: Obsolete.
11904 * config/a29k/a29k.mt: Obsolete.
11905 * config/a29k/tm-a29k.h: Obsolete.
11906 * config/a29k/tm-vx29k.h: Obsolete.
11907 * config/a29k/vx29k.mt: Obsolete.
11909 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11911 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11912 with BFD_ENDIAN_BIG.
11914 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11916 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11917 * configure, config.in: Re-generate.
11918 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11919 * defs.h: Do not include <endian.h>.
11921 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11923 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11924 * config.in: Regenerate.
11925 * configure.in: Update copyright years.
11926 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11927 * configure: Regenerate.
11928 * i386bsd-nat.c: Update copyright years.
11929 (fill_gregset): Use regcache_collect.
11930 (fetch_inferior_registers): Only fetch integer registers
11931 if requested to do so. Add support for XMM registers
11932 using PT_GETXMMREGS.
11933 (store_inferior_registers): Only store integer registers
11934 if requested to do so. Add support for XMM registers
11935 using PT_SETXMMREGS.
11936 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11937 (store_inferior_registers): Remove.
11938 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11939 (fetch_elfcore_registers): New function.
11940 (i386nbsd_elfcore_fns): New.
11941 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11942 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11944 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11945 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11946 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11947 * config/i386/tm-nbsd.h: Update copyright years.
11948 (HAVE_SSE_REGS): Define.
11949 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11950 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11951 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11952 (SIGCONTEXT_PC_OFFSET): Remove.
11953 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11955 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11957 * configure.tgt: Remove powerpc-*-macos* target.
11958 * config/m68k/xm-mpw.h: Delete file.
11959 * config/xm-mpw.h: Delete file.
11960 * ser-mac.c: Delete file.
11961 * mpw-make.sed: Delete file.
11962 * mpw-config.in: Delete file.
11963 * mac-xdep.c: Delete file.
11964 * mac-gdb.r: Delete file.
11965 * mac-defs.h: Delete file.
11966 * mac-nat.c: Delete file.
11967 * config/powerpc/macos.mh: Delete file.
11968 * config/powerpc/macos.mt: Delete file.
11969 * config/powerpc/nm-macos.h: Delete file.
11970 * config/powerpc/tm-macos.h: Delete file.
11971 * source.c (openp, open_source_file): Remove obsolete code.
11972 * top.c (gdb_readline): Ditto.
11973 * utils.c (query): Ditto.
11974 * event-top.c (display_gdb_prompt): Ditto.
11975 * Makefile.in (ser-mac.o): Delete obsolete target.
11978 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11980 * defs.h (BIG_ENDIAN): Delete macro definition.
11981 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11982 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11983 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11984 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11985 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11986 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11987 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11988 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11989 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11990 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11991 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11992 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11993 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11994 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11995 * gdbarch.c: Re-generate.
11997 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11999 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12002 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12004 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12006 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12008 * value.h (value_ptr): Delete typedef.
12010 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12012 * i386nbsd-nat.c: Update copyright years.
12013 Include i386-tdep.h.
12015 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12017 * stabsread.c: Update copyright years.
12019 From Debashis Mahata <debashis.mahata@wipro.com>:
12020 (read_struct_fields): Deal with Sun C compiler erroneous stab
12021 output for structs and unions.
12024 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12026 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12029 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12031 * cp-abi.c: Fix whitespace.
12032 (baseclass_offset): New wrapper function.
12033 * cp-abi.h (baseclass_offset): Add prototype.
12034 (struct cp_abi_ops): Add baseclass_offset pointer.
12036 * valops.c (vb_match): Move to...
12037 * gnu-v2-abi.c (vb_match): here.
12038 * valops.c (baseclass_offset): Move to...
12039 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12041 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12043 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12044 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12045 * hpacc-abi.c (init_hpacc_ops): Likewise.
12047 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12049 * valops.c (find_overload_match): Accept obj as a
12050 reference parameter. Update it before returning.
12051 * value.h (find_overload_match): Update prototype.
12052 * eval.c (evaluate_subexp_standard): Pass object to
12053 find_overload_match by reference.
12055 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12057 * valarith.c: Replace value_ptr with struct value pointer. Remove
12058 register attribute from value declarations.
12061 * scm-lang.c (scm_lookup_name): Ditto.
12063 2002-01-03 Michael Snyder <msnyder@redhat.com>
12065 Abstract the functionality of iterating over mapped memory
12066 regions into a general purpose iterator function.
12067 * procfs.c (iterate_over_mappings): New function, general purpose
12068 iterator for memory sections.
12069 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12070 (solib_mappings_callback): New function, callback for above.
12071 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12072 (info_mappings_callback): New function, callback for above.
12074 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12076 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12078 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12079 * i386-tdep.c: Include "elf-bfd.h".
12080 (process_note_abi_tag_sections): New function.
12081 (i386_gdbarch_init): Add code to recognize various OS/ABI
12084 * maint.c (_initialize_maint_cmds): Add missing \ in
12087 For older changes see ChangeLog-2001
12093 version-control: never